PsPing Network Latency Test

Although the web-based Azure speed test tool is helpful, it cannot measure latency with ICMP ping or TCP ping due to browser limitations. To measure ICMP ping latency to Azure datacenters, consider using PsPing from the PsTools suite. This command-line utility accurately measures network performance and implements Ping functionality, TCP ping, as well as latency and bandwidth measurement.

To use the PsPing tool for a network latency test, follow these steps:

  1. Download PsTools
  2. Extract the entire package and open a command prompt.
  3. Enter this command: psping target:port (replace "target" with an IP address or DNS name of publicly accessible virtual machines, storage, SQL databases, or other endpoints).
  4. Upon completion, you'll see output displaying latency results in milliseconds (as shown below when using a storage endpoint and port 80 as target):
    PsPing output example

Learn more

  • For a detailed understanding of each PsPing parameter, visit the webpage where you downloaded the tool.
  • As Azure blocks external ICMP protocol, the general ping.exe using ICMP won't function. However, PsPing can directly test connectivity to an unblocked specific TCP port.
  • To test latency between virtual machines in the same VNET or different VNETs across various regions, refer to Region to Region Latency and Test VM network latency .