A network stability test sends small packets continuously for minutes or hours and records every one that gets no reply, so you can see drops and latency swings that a one-off speed test misses. The simplest version is ping -t 1.1.1.1 on Windows or ping 1.1.1.1 on macOS and Linux, left running while you use the connection normally.
Stability here means two things: packets keep arriving (no loss), and they arrive in roughly the same time (low latency spread). The tests below measure both. For a single quick check and what each ping message means, see the ping command guide.
Step 1: Run a long ping to the internet
Pick a target that normally answers ping. A public DNS resolver such as 1.1.1.1 works. Start the test:
# Windows (runs until you stop it)
ping -t 1.1.1.1
# macOS / Linux (runs until Ctrl+C)
ping 1.1.1.1
On Windows, -t keeps sending until interrupted. Press Ctrl+Break to print the statistics so far and keep going, or Ctrl+C to print them and quit. Each request waits up to 4,000 ms (4 seconds) for a reply before Windows prints Request timed out., so a drop shows up as one or more timeout lines in the middle of normal replies.
For a fixed-length run, set a count. At the default of one packet per second, 600 packets take about 10 minutes:
# Windows
ping -n 600 1.1.1.1
# macOS / Linux
ping -c 600 1.1.1.1
On Windows, -n sets the number of requests (default 4). On Linux, -c stops after that many packets, and -i changes the wait between packets in seconds. Only the superuser can go below 2 ms.
Step 2: Test your router separately
Run the same test against your router's address (the default gateway, shown by ipconfig on Windows or ip route on Linux), preferably in a second window at the same time. Comparing the two runs tells you where the instability is:
| Router test | Internet test | Likely location |
|---|---|---|
| Clean | Clean | No fault during the test. If problems continue, run it longer or at the time they occur. |
| Drops | Drops | Your own network: Wi-Fi, cable, device or router. The internet test fails because everything passes through the same link. |
| Clean | Drops | Beyond your router: modem, provider or the remote path. |
To separate Wi-Fi from everything else, repeat the router test with the computer on an Ethernet cable. If the cable run is clean and the Wi-Fi run is not, the wireless link is the unstable part.
Step 3: Read the results
When you stop the test, ping prints a summary. Example output from Windows:
Ping statistics for 1.1.1.1:
Packets: Sent = 600, Received = 600, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 40ms, Maximum = 48ms, Average = 43ms
Example output from Linux:
--- 1.1.1.1 ping statistics ---
600 packets transmitted, 600 received, 0% packet loss, time 599812ms
rtt min/avg/max/mdev = 40.112/43.470/48.205/1.634 ms
These numbers are illustrative, not measurements from a specific connection. What to look at:
- Loss. Any steady loss over a long run is worth chasing. One lost packet in 600 may be noise; a cluster of losses at the same moment usually means a short outage or a Wi-Fi dropout.
- Maximum against average. A maximum many times larger than the average means occasional latency spikes, even when nothing was lost. Spikes make calls and games stutter.
- mdev (Linux). The man page defines it as the standard deviation of the round-trip times. A value that is large compared with the average means latency is jumping around.
Windows counts some error replies, such as Destination host unreachable, as received, so scan the reply lines as well as the summary.
Step 4: Log when the drops happen
If drops come and go, you need to know when. On Linux and macOS, many ping versions support -D, which the Linux man page describes as printing a timestamp (Unix time with microseconds) before each line. A common pattern is to save the whole run and filter it afterwards:
ping -D 1.1.1.1 | tee ping-log.txt
On Windows, redirecting ping -t output to a file records the replies but not the time of each one. Keep a note of the clock time when you start, and compare the position of the timeouts with the sequence of lines, one per second at the default rate. If you need real timestamps, use a tool that adds them rather than guessing.
Step 5: Find which hop is unstable with pathping or mtr
If the internet test shows loss but the router test does not, test every router on the path. On Windows use pathping:
pathping /n 1.1.1.1
It first traces the route, then sends 100 queries to each router by default (/q changes the count), 250 ms apart by default (/p changes the period in milliseconds). Microsoft says the statistics phase takes about 90 seconds, varying with the number of hops. For a longer sample, raise the count:
pathping /n /q 300 1.1.1.1
Microsoft's documentation explains how to read the table: loss shown on a link (the | lines) indicates congestion on that link, while loss shown on a router's own line may mean that router is overloaded, but it does not necessarily affect traffic being forwarded through it. The practical rule is that loss that starts at one hop and carries through to the final hop is real.
On Linux and macOS, mtr does the same job in one tool, if it is installed (it often is not by default):
mtr --report --report-cycles 100 --no-dns 1.1.1.1
--report runs for the number of cycles set by --report-cycles (one cycle per second by default interval), prints statistics and exits. The columns are Loss%, Snt (packets sent), Last, Avg, Best, Wrst and StDev. The mtr manual warns that some routers give lower priority to the packets mtr sends than to other traffic, so a single hop can look worse than it is. As with pathping, trust loss that persists to the end. For the traceroute side of this, see tracert and traceroute.
Test under load, because that is when many connections fail
A quiet link can look perfect. Run the long ping to the internet while another device starts a large upload or video call. If latency and loss jump only then, the link is saturated rather than faulty: the latency vs bandwidth guide explains why a full link hurts every other connection. Compare with a plain throughput test, which the internet speed test guide covers.
What to do with the result
- Router test shows drops: try Ethernet, move closer to the access point, change the Wi-Fi channel, swap the cable and restart the router. The packet loss guide has the full sequence.
- Only the internet test shows drops: keep the router test (clean), the internet test (lossy) and the pathping or mtr output, each with the time of day. That is the evidence a provider's support line needs.
- Everything is clean but the problem continues: the fault may be intermittent. Run the long ping for several hours around the time it normally happens, and check that the target you chose answers ping reliably. Some hosts drop ICMP on purpose, so a failing ping to one of them proves nothing.
Frequently asked questions
- How long should a network stability test run?
- Long enough to catch the problem. If drops happen every few minutes, 100 pings (under 2 minutes at one per second) is enough. If they happen once an hour or only in the evening, leave a continuous ping running for several hours and read the result afterwards. A test shorter than the gap between drops will always look clean.
- What counts as a stable connection?
- No standard defines one, so use a practical rule: 0% packet loss to your router over a long run, and round-trip times that stay close together. On Linux, ping reports the spread as mdev, which the man page describes as the standard deviation of the round-trip times. A higher mdev means more variable latency.
- Does a speed test measure stability?
- No. A speed test moves data for a few seconds and reports throughput. A connection can post a fast result and still drop packets or time out for a few seconds every few minutes. Stability needs a test that sends small packets continuously and records every one that fails.
- Why does the test show loss at one router but not the ones after it?
- Some routers give a lower priority to replies addressed to themselves than to the traffic they forward. The mtr manual warns that this can make a router look much less reliable than it is, and Microsoft's pathping documentation describes the same effect. Only loss that continues at every later hop and the destination is real.