设为首页收藏本站

ZMX - IT技术交流论坛 - 无限Perfect,追求梦想 - itzmx.com

 找回密码
 注册论坛

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

用百度帐号登录

只需两步,快速登录

搜索
查看: 3183|回复: 2

[软件] Windows 微软官方出品 psping V2.01,利用CMD检测TCP网络延迟

[复制链接]
 成长值: 339

签到天数: 4738 天

[LV.Master]伴坛终老

发表于 2015/5/3 05:08 | 显示全部楼层 |阅读模式 |Google Chrome 41.0.2272.118|Windows 8.1
天涯海角搜一下: 百度 谷歌 360 搜狗 有道 雅虎 必应 即刻
Introduction

PsPing implements Ping functionality, TCP ping, latency and bandwidth measurement. Use the following command-line options to show the usage for each test type:
Installation

Copy PsPing onto your executable path. Typing "psping" displays its usage syntax.
Using PsPing

PsPing implements Ping functionality, TCP ping, latency and bandwidth measurement. Use the following command-line options to show the usage for each test type:
Usage: psping -? [i|t|l|b]
-? I        Usage for ICMP ping.
-? T        Usage for TCP ping.
-? L        Usage for latency test.
-? B        Usage for bandwidth test.

ICMP ping usage: psping [[-6]|[-4]] [-h [buckets | <val1>,<val2>,...]] [-i <interval>] [-l <requestsize>[k|m] [-q] [-t|-n <count>] [-w <count>] <destination>
-h        Print histogram (default bucket count is 20).
If you specify a single argument, it's interpreted as a bucket count and the histogram will contain that number of buckets covering the entire time range of values. Specify a comma-separated list of times to create a custom histogram (e.g. "0.01,0.05,1,5,10").
-i        Interval in seconds. Specify 0 for fast ping.
-l        Request size. Append 'k' for kilobytes and 'm' for megabytes.
-n        Number of pings or append 's' to specify seconds e.g. '10s'.
-q        Don't output during pings.
-t        Ping until stopped with Ctrl+C and type Ctrl+Break for statistics.
-w        Warmup with the specified number of iterations (default is 1).
-4        Force using IPv4.
-6        Force using IPv6.
For high-speed ping tests use -q and -i 0.

TCP ping usage: psping [[-6]|[-4]] [-h [buckets | <val1>,<val2>,...]] [-i <interval>] [-l <requestsize>[k|m] [-q] [-t|-n <count>] [-w <count>] <destination:destport>
-h        Print histogram (default bucket count is 20).
If you specify a single argument, it's interpreted as a bucket count and the histogram will contain that number of buckets covering the entire time range of values. Specify a comma-separated list of times to create a custom histogram (e.g. "0.01,0.05,1,5,10").
-i        Interval in seconds. Specify 0 for fast ping.
-l        Request size. Append 'k' for kilobytes and 'm' for megabytes.
-n        Number of pings or append 's' to specify seconds e.g. '10s'.
-q        Don't output during pings.
-t        Ping until stopped with Ctrl+C and type Ctrl+Break for statistics.
-w        Warmup with the specified number of iterations (default is 1).
-4        Force using IPv4.
-6        Force using IPv6.
For high-speed ping tests use -q and -i 0.

TCP and UCP latency usage:
server: psping [[-6]|[-4]] [-f] <-s source:sourceport>
client: psping [[-6]|[-4]] [-f] [-u] [-h [buckets | <val1>,<val2>,...]] [-r] <-l requestsize>[k|m]] <-n count> [-w <count>] <destination:destport>
-f        Open source firewall port during the run.
-u        UDP (default is TCP).
-h        Print histogram (default bucket count is 20).
If you specify a single argument, it's interpreted as a bucket count and the histogram will contain that number of buckets covering the entire time range of values. Specify a comma-separated list of times to create a custom histogram (e.g. "0.01,0.05,1,5,10").
-l        Request size. Append 'k' for kilobytes and 'm' for megabytes.
-n        Number of sends/receives. Append 's' to specify seconds e.g. '10s'
-r        Receive from the server instead of sending.
-w        Warmup with the specified number of iterations (default is 5).
-4        Force using IPv4.
-6        Force using IPv6.
-s        Server listening address and port.
The server can serve both latency and bandwidth tests and remains active until you terminate it with Control-C.
TCP and UCP bandwidth usage:
server: psping [[-6]|[-4]] [-f] <-s source:sourceport>
client: psping [[-6]|[-4]] [-f] [-u] [-h [buckets | <val1>,<val2>,...]] [-r] <-l requestsize>[k|m]] <-n count> [-i <outstanding>] [-w <count>] <destination:destport>
-f        Open source firewall port during the run.
-u        UDP (default is TCP).
-b        Bandwidth test.
-h        Print histogram (default bucket count is 20).
If you specify a single argument, it's interpreted as a bucket count and the histogram will contain that number of buckets covering the entire time range of values. Specify a comma-separated list of times to create a custom histogram (e.g. "0.01,0.05,1,5,10").
-i        Number of outstanding I/Os (default is min of 16 and 2x CPU cores).
-l        Request size. Append 'k' for kilobytes and 'm' for megabytes.
-n        Number of sends/receives. Append 's' to specify seconds e.g. '10s'
-r        Receive from the server instead of sending.
-w        Warmup for the specified iterations (default is 2x CPU cores).
-4        Force using IPv4.
-6        Force using IPv6.
-s        Server listening address and port.
The server can serve both latency and bandwidth tests and remains active until you terminate it with Control-C.
Examples

This command executes an ICMP ping test for 10 iterations with 3 warmup iterations:
psping -n 10 -w 3 marklap
To execute a TCP connect test, specify the port number. The following command executes connect attempts against the target as quickly as possible, only printing a summary when finished with the 100 iterations and 1 warmup iteration:
psping -n 100 -i 0 -q marklap:80
To configure a server for latency and bandwidth tests, simply specify the -s option and the source address and port the server will bind to:
psping -s 192.168.2.2:5000
A buffer size is required to perform a TCP latency test. This example measures the round trip latency of sending an 8KB packet to the target server, printing a histogram with 100 buckets when completed:
psping -l 8k -n 10000 -h 100 192.168.2.2:5000
This command tests bandwidth to a PsPing server listening at the target IP address for 10 seconds and produces a histogram with 100 buckets. Note that the test must run for at least one second after warmup for a histogram to generate. Simply add -u to have PsPing perform a UDP bandwidth test.
psping -b -l 8k -n 10000 -h 100 192.168.2.2:5000


上面看不懂?tcp延迟简单用法
  1. psping -t www.baidu.com:443
复制代码

udp端口监听测试,响应则代表正常开放
  1. psping -u -l 1k 119.29.29.29:53
复制代码


下载:https://download.sysinternals.com/files/PSTools.zip

https://docs.microsoft.com/zh-cn/sysinternals/downloads/psping

简单教程
psping.exe复制到C:\Windows\System32目录即可,直接cmd,然后运行psping命令
或者设置环境变量到指定的解压目录下

评分

参与人数 1樱币 +2 收起 理由
krv + 2 很给力!

查看全部评分

欢迎光临IT技术交流论坛:http://bbs.itzmx.com/
回复

使用道具 举报

染指红颜泪 该用户已被删除
发表于 2015/5/3 05:27 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
欢迎光临IT技术交流论坛:http://bbs.itzmx.com/
回复 支持 反对

使用道具 举报

签到天数: 379 天

[LV.9]以坛为家II

发表于 2015/5/3 12:44 | 显示全部楼层 |Google Chrome 41.0.2272.118|Windows 8.1
好!     
欢迎光临IT技术交流论坛:http://bbs.itzmx.com/
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册论坛 新浪微博账号登陆用百度帐号登录

本版积分规则

手机版|Archiver|Mail me|网站地图|IT技术交流论坛 ( 闽ICP备13013206号-7 )

GMT+8, 2024/12/24 02:55 , Processed in 0.159575 second(s), 27 queries , MemCache On.

Powered by itzmx! X3.4

© 2011- sakura

快速回复 返回顶部 返回列表