Psping 实例

Psping 实例PsPingv2 1https docs microsoft com zh cn sysinternals downloads psping2016 06 294 分钟阅读时长 ByMarkRussin June29 2016Download 2 7MB Introduction

PsPing v2.1

By Mark Russinovich

Published: June 29, 2016

Download Download PsTools (2.7 MB)

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]

Parameter Description
-? I Usage for ICMP ping.
-? T Usage for TCP ping.
-? L Usage for latency test.
-? B Usage for bandwidth test.
Parameter Description
-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.

Parameter Description
-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 UDP latency usage:

server: psping [[-6]|[-4]] [-f] <-s source:sourceport>

client: psping [[-6]|[-4]] [-f] [-u] [-h [buckets |

,

,…]] [-r] <-l requestsize>[k|m]] <-n count> [-w

]



Parameter Description
-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 UDP bandwidth usage:

server: psping [[-6]|[-4]] [-f] <-s source:sourceport>

client: psping [[-6]|[-4]] [-f] [-u] [-h [buckets |

,

,…]] [-r] <-l requestsize>[k|m]] <-n count> [-i

] [-w

]




Parameter Description
-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

转载于:https://www.cnblogs.com/fatt/p/8359672.html

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/202713.html原文链接:https://javaforall.net

(0)
上一篇 2026年3月19日 下午11:29
下一篇 2026年3月19日 下午11:29


相关推荐

  • 提前免费!百度发布文心大模型4.5及X1

    提前免费!百度发布文心大模型4.5及X1

    2026年3月12日
    2
  • 回归分析——简单线性回归实例讲解(SPSS)

    回归分析——简单线性回归实例讲解(SPSS)什么是回归分析 回归分析是研究自变量与因变量之间数量变化关系的一种分析方法 它主要是通过因变量 Y 与影响它的自变量 Xi i1 2 3 之间的回归模型 衡量自变量 Xi 对因变量 Y 的影响能力的 进而可以用来预测因变量 Y 的发展趋势 相关分析与回归分析的联系与区别 联系 两者均为研究与测度两个或两个以上变量之间关系的方法 在实际工作中 一般先进行相关分析 计算相关函数 然后建立回归模型 最后用回归模型进行推算或预测 区别 相关分析研究的都是随机变量 并且不分自变量与因变量

    2026年3月19日
    2
  • idea2021.8.3激活码永久(JetBrains全家桶)「建议收藏」

    (idea2021.8.3激活码永久)好多小伙伴总是说激活码老是失效,太麻烦,关注/收藏全栈君太难教程,2021永久激活的方法等着你。https://javaforall.net/100143.htmlIntelliJ2021最新激活注册码,破解教程可免费永久激活,亲测有效,上面是详细链接哦~Z9LZO4ZKWA-eyJsaWNlbnNlSWQiOi…

    2022年3月22日
    85
  • css3实现进度条的模拟

    css3实现进度条的模拟

    2021年8月28日
    31
  • idea21.1 激活码生成【在线注册码/序列号/破解码】

    idea21.1 激活码生成【在线注册码/序列号/破解码】,https://javaforall.net/100143.html。详细ieda激活码不妨到全栈程序员必看教程网一起来了解一下吧!

    2022年3月18日
    189
  • Hyper-V 网络设置 虚拟机固定Ip

    Hyper-V 网络设置 虚拟机固定Ip转载自rai369963CSDN博客Hyper-V网络设置虚拟机固定Ipwin10下使用hyper-v在本机安装linux虚拟机后,网络访问上有如下两点需求:无论物理机的网络环境怎么变化,都需要保持虚拟机的IP地址不变,保证我本机使用xshell等终端访问始终用同一个IP地址,或者在安装了其他软件后,访问虚拟机的IP地址保持不变。物理机可访问虚拟机,虚拟机是否可访问网络都行。重点保证本机可访问虚拟机,以及虚拟机之间能互相访问。1、为了实现第一点,需给虚拟机设置一个固定的网段以及静态

    2022年7月15日
    33

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号