微软网络工具psping介绍

该工具功能主要包括:ICMP Ping、TCP Ping、延迟测试、带宽测试,而且它是微软出品的
下载地址: https://download.sysinternals.com/files/PSTools.zip
 http://technet.microsoft.com/en-us/sysinternals/jj729731
解压后把psping.exe丢到C:\Windows\System32文件夹下。
使用CMD命令行工具进入PSTools所在的文件夹路径,单独输入psping,可见psping四个主要功能的帮助命令,四个功能分别是ICMP Ping、TCP Ping、延迟测试、带宽测试。

C:\Users\j>psping

PsPing v2.10 - PsPing - ping, latency, bandwidth measurement utility
Copyright (C) 2012-2016 Mark Russinovich
Sysinternals - www.sysinternals.com

PsPing implements Ping functionality, TCP ping, UDP/TCP latency, and UDP / TCP
bandwidth measurement.

Help 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.
  -nobanner   Do not display the startup banner and copyright message.

C:\Users\j>
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.

【Part.1】ICMP ping功能

输入psping -? i获取ICMP ping相关参数
微软网络工具psping介绍_网络工具psping
psping -4 -n 10 -w 2 -h 10 119.29.97.131
-4代表强制使用IPv4联机
-n代表正式ping包的个数,或者定义使用秒s作为单位
-w代表热身ping包的个数,即正式测试前先进行多少次热身测试连接
-h代表最小与最大延迟毫秒数
微软网络工具psping介绍_网络工具psping_02
另外几个参数解释如下:
-i代表间隔秒数,快ping则设置为0
-l代表ping包大小,默认单位是byte。使用 k为单位代表kilobytes(KB),使用m为单位代表megabytes(MB)
-q代表ping过程中不一个个输出值
-t代表长ping不停
-6代表强制使用IPv6联机

psping -i 0 -4 -n 10 -w 2 -h 10 -q 221.195.1.233

由于设置了-i 0这个参数,瞬间出结果
设置了-q则不再显示中间的输出过程,直接输出结果
微软网络工具psping介绍_网络工具psping_03

psping -i 0 -4 -n 10 -w 2 -h 10 -q 119.29.97.131
微软网络工具psping介绍_网络工具psping_04
-l和-t和-6不在此演示了。

【Part.2】TCP Ping功能

使用psping -? t 获取帮助信息
微软网络工具psping介绍_网络工具psping_05
psping -n 10 -w 2 -h 10 119.29.97.131:80
微软网络工具psping介绍_网络工具psping_06
与ping功能相同的参数定义:

-n代表正式ping包的个数,或者定义使用秒s作为单位

-w代表热身ping包的个数,即正式测试前先进行多少次热身测试连接

-h代表最小与最大延迟毫秒数

-i代表间隔秒数,快ping则设置为0

-l代表ping包大小,默认单位是byte。使用 k为单位代表kilobytes(KB),使用m为单位代表megabytes(MB)

-q代表ping过程中不一个个输出值

-t代表长ping不停

-4代表强制使用IPv4联机

-6代表强制使用IPv6联机

psping -t 119.29.97.131:80
微软网络工具psping介绍_网络工具psping_07

【Part.3】延迟测试

使用psping -? l 获取延迟测试时的帮助信息。
微软网络工具psping介绍_网络工具psping_08
psping -l 1500 -n 300 -h 10 119.29.97.131:80
微软网络工具psping介绍_网络工具psping_09
微软网络工具psping介绍_网络工具psping_10
-l 1500代表我发送的数据包大小为每个1500 Bytes,TCP联机在Layer 2 Ethernet中的MTU (Maximum Transmission Unit)通常以1500 Bytes为一个单位
-n 300代表放松300个封包

【Part.4】带宽测试

微软网络工具psping介绍_网络工具psping_11

psping -b -l 1500 -n 15000 119.29.97.131:80
-b代表将进行带宽测试
-l 1500代表使用大小1500Bytes的数据包
-n 15000代表使用15000个数据包

输出结果显示我测试我的PC与我的腾讯云主机之间带宽为219KB/s
微软网络工具psping介绍_网络工具psping_12
参考文档:
 http://blog.51cto.com/winhe/1742633
 https://linwm.com/56.html

还有一个在禁止ping的情况下可以在windows上部署tcping64.exe或者tcping.exe工具来检测服务器端口是否开放
windows下tcping工具,将tcping.exe或者tcping64.exe放到C:\Windows\System32目录下,即可在cmd命令窗口执行命令
tcping64 -t 119.29.97.131 80
微软网络工具psping介绍_网络工具psping_13

posted @   勤奋的蓝猫  阅读(23)  评论(0编辑  收藏  举报  
相关博文:
阅读排行:
· CSnakes vs Python.NET:高效嵌入与灵活互通的跨语言方案对比
· DeepSeek “源神”启动!「GitHub 热点速览」
· 我与微信审核的“相爱相杀”看个人小程序副业
· Plotly.NET 一个为 .NET 打造的强大开源交互式图表库
· 上周热点回顾(2.17-2.23)
点击右上角即可分享
微信分享提示