问题

如何获得从Windows到一个IP:PORT的网络延时?

工具

PsPing是微软提供的,实现了ping、tcp ping、延时与带宽测量的工具。

PS C:\Users\wanlinwang> C:\Users\wanlinwang\Downloads\PSTools\psping 192.168.1.2:3389

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

TCP connect to 192.168.1.2:3389:
5 iterations (warmup 1) ping test:
Connecting to 192.168.1.2:3389 (warmup): from 192.168.11.10:57712: 0.33ms
Connecting to 192.168.1.2:3389: from 192.168.11.10:57714: 0.31ms
Connecting to 192.168.1.2:3389: from 192.168.11.10:57716: 0.33ms
Connecting to 192.168.1.2:3389: from 192.168.11.10:57718: 0.34ms

  Sent = 3, Received = 3, Lost = 0 (0% loss),
  Minimum = 0.31ms, Maximum = 0.34ms, Average = 0.33ms
Control-C

参考资料

https://learn.microsoft.com/en-us/sysinternals/downloads/psping