TCP端口检测、网络连接时延测试工具 tcping

介绍


在主流的linux系统中,通过yum或者apt也可安装tcping,不过通过源安装的tcping只能显示单次检测的结果,也没有具体的连接时延。现参考windows版tcping,用python写了一个linux环境下的类似工具。

使用方法

下载

输入如下命令下载安装。

wget http://www.szl724.com/xiazai/tool/tcping -O /usr/bin/tcping

chmod +x /usr/bin/tcping

参数介绍

必选参数:

destination a DNS name, an IP address

可选参数:

-h, --help show this help message and exit

-p PORT a numeric TCP port, 1-65535. If not specified, defaults to 80.

-t ping continuously until stopped via control-c.

-n NUMBER send count pings and then stop, default 4.

-i INTERVAL wait seconds between pings, default 1.

-w WAIT wait seconds for a response, default 2.

-v, --version print version and exit.

使用举例

tcping zhangnq.com

tcping 114.114.114.114 -t -p 53

tcping zhangnq.com -n 10 -p 443 -i 5 -w 1

结果

默认和ping一样只发送四个检测包,-t参数表示持续检测,ctrl+c退出。

附:Windows tcping下载

网址:https://elifulkerson.com/projects/tcping.php

下载


其他下载

下载地址: http://www.szl724.com/xiazai/tool/tcping