Wolfram Language

Systems-Level Functionality

Measure Network Latency by Pinging Hosts

ICMP echo packets (or "ping") can be used as a measure of connection response time. PingTime can be used to track and diagnose potential network routing and performance issues.

Ping wolfram.com.

In[1]:=
Click for copyable input
ping = PingTime["wolfram.com"]
Out[1]=

Convert the result to other units.

In[2]:=
Click for copyable input
UnitConvert[ping, "Seconds"]
Out[2]=
In[3]:=
Click for copyable input
UnitConvert[ping, "Minutes"]
Out[3]=
In[4]:=
Click for copyable input
UnitConvert[ping, "Eons"]
Out[4]=

Use a series of pings over time to periodically test network conditions.

In[5]:=
Click for copyable input
pings = PingTime["wolfram.com", 400]
In[6]:=
Click for copyable input
Histogram[pings]
Out[6]=

Related Examples

de es fr ja ko pt-br ru zh