How to Test Evening Peak Packet Loss and Jitter: Home, ISP or Server
You can't pin down evening packet loss with a single test. Run the same procedure once during the day and once in the evening, then compare which segment got worse. Home Wi-Fi problems can show up at any hour. Congestion on the access or egress segments usually appears only in the evening. A problem with the target service itself has little to do with the time of day on your side. This article gives you a procedure you can follow: a wired baseline, an mtr run of 200 packets in the morning and evening, p50/p95 and standard deviation records, and a lookup table that tells you which segment the problem sits in.
(Context: "evening peak" refers to the daily window, roughly 20:00-23:00 in China, when residential traffic surges and ISP links are most likely to congest. The same method works anywhere your connection degrades at a predictable time of day.)
What are packet loss and jitter?
Packet loss rate: the share of packets you sent that never got a response. With ICMP ping, one lost packet is just one missing output line. With a TCP connection, loss triggers retransmission, which shows up as a request that suddenly stalls for a few hundred milliseconds to a few seconds.
Jitter: how much the round-trip time (RTT) fluctuates. There are two common ways to compute it: the average difference between consecutive RTTs, or the standard deviation of RTT directly (the StDev column in mtr output is this one). For troubleshooting, a more practical view is to compare p95 with p50. p50 is the "normal level" that half of requests achieve, and p95 is the threshold for the slowest 5%. The bigger the gap between them, the less stable the latency.
The same amount of loss and jitter affects different applications very differently:
| Scenario | Sensitivity to loss | Sensitivity to jitter | Typical symptom |
|---|---|---|---|
| Streaming API (SSE token output) | Medium: TCP retransmission stalls the output | Medium | Output arrives in fits and starts; in bad cases a middlebox treats the connection as timed out and drops it |
| SSH, remote terminal | Medium | High | Keystroke echo is sometimes fast, sometimes slow |
| Video calls, voice | High (usually UDP, so lost packets are not retransmitted) | High | Freezing, visual artifacts, choppy audio |
| Downloads, git clone, package installs | High: loss shrinks the TCP congestion window | Low | Speed can't climb; the progress bar alternates between moving and stalling |
A streaming response that disconnects midway is not necessarily caused by packet loss. Buffering in proxies and CDNs and idle timeouts can also cut the stream. For how to investigate that, see LLM streaming disconnects midway: troubleshooting SSE drops.
What packet loss and jitter are normal?
The numbers below are rules of thumb commonly used when troubleshooting. They are not cdnping statistics and not any standard. Different routes and different targets vary a lot, so the most reliable reference is your own daytime baseline.
| Metric | Barely noticeable | Noticeable | Clearly hurts usability |
|---|---|---|---|
| Last-hop loss (200 packets) | 0%, occasionally 1 packet | 1%-3% | Consistently above 3% |
| p95 / p50 | Within 1.5x | 1.5-3x | Above 3x |
| StDev (ms) | Under 10% of Avg | 10%-30% of Avg | Over 30% of Avg |
Two notes:
- Look only at the last hop. If one intermediate hop shows loss and the next hop returns to 0%, the router is most likely rate-limiting ICMP replies, not actually dropping packets. The details of this rule are in How to read traceroute and mtr results.
- You need enough samples. One lost packet out of 10 is 10%, which means nothing, so the steps below use 200 packets throughout.
How do you read the p95-to-p50 gap? An example from cdnping edge probes
cdnping's API status page probes each vendor's official API endpoint from the Cloudflare edge every 5 minutes and reports p50 and p95. We'll use that data as an example of how to read these two numbers.
About the data: the numbers below come from cdnping edge probes between 2026-10-17 08:40 and 10:05 UTC (16:40-18:05 Beijing time), 242 probes in total, from the Cloudflare Denver (DEN) node. cdnping only started collecting data on 2026-10-17, so the window is just over an hour. It illustrates the format and how to read it. It does not represent the long-term performance of any service, nor the latency you would see from within China.
| Target | p50 (ms) | p95 (ms) | p95 / p50 |
|---|---|---|---|
| Claude API (api.anthropic.com) | 73 | 84 | about 1.2 |
| OpenAI API (api.openai.com) | 96 | 194 | about 2.0 |
| Mistral API (api.mistral.ai) | 153 | 536 | about 3.5 |
| Kimi (Moonshot AI) open platform (api.moonshot.cn) | 375 | 1125 | 3.0 |
| Alibaba Cloud Model Studio (dashscope.aliyuncs.com) | 615 | 1152 | about 1.9 |
Two things stand out in this table:
- A high p50 does not mean instability. From Denver, a p50 for an endpoint in China is naturally high, and that is down to distance. Its stability is judged by p95 / p50.
- Two services with similar p50 but very different p95 feel very different. If one service has a p50 of 100 ms and a p95 of 120 ms, it feels smooth. If another has the same 100 ms p50 but a p95 of 400 ms, it stutters from time to time. Looking only at p50 or the average, you would treat the two as identical.
In the same data, the 24-hour availability field for the Kimi open platform is 94.4%, and every other endpoint is 100% (again, the window is just over an hour). If you want to judge whether "the evening slowness is the other side's problem," first check /en/status to see whether their endpoint degraded at the same time.
How do you run a time-of-day test?
The whole test has four steps. Do each step once during the day (for example 10:00-16:00) and once at the evening peak (for example 20:00-23:00), keeping everything else the same.
Step 1: Get a wired baseline first
Connect your computer directly to the router with an Ethernet cable (if your ISP gives you a modem that handles login itself, you can also connect directly to the modem), turn off any proxy and VPN, and run one test against each of two targets:
- The gateway: your router's LAN address, for example
192.168.1.1. - The target service: the domain that actually feels slow, such as the API endpoint you call.
Then switch back to Wi-Fi and run the same tests. If the wired connection is clean and Wi-Fi drops packets, there's no need to look further out. The problem is in your home.
Step 2: Run mtr -c 200 in the morning and evening
On macOS, install mtr with Homebrew. On Linux, use your package manager:
# Send 200 packets to the target, wide-format output, show ASN (-z)
sudo mtr -rwz -c 200 api.example.com > mtr-$(date +%Y%m%d-%H%M).txt
# If the target doesn't answer ICMP, probe with TCP 443 instead
sudo mtr -rwz -T -P 443 -c 200 api.example.com > mtr-tcp-$(date +%Y%m%d-%H%M).txt
Windows has no mtr. You can use the built-in pathping -q 200 api.example.com, which lists loss statistics for each hop at the end, or install WinMTR. If the target blocks ping, see ICMP ping vs tcping: testing port latency.
If you also want p50 and p95, run ping separately and compute them with awk:
ping -c 200 api.example.com \
| awk -F'time=' '/time=/{split($2,a," "); print a[1]}' \
| sort -n \
| awk '{v[NR]=$1} END{printf "n=%d p50=%.1f p95=%.1f\n", NR, v[int(NR*0.5)], v[int(NR*0.95)]}'
If n in the output is below 200, the difference is the number of lost packets.
Step 3: Fill in the record table
Fill in one row per time slot, and collect at least two or three days:
| Date | Time slot | Network | Target | Last-hop Loss% | Avg | StDev | p50 | p95 | First hop that degrades |
|---|---|---|---|---|---|---|---|---|---|
| (example format) | 14:00 | Wired | Gateway | ||||||
| 14:00 | Wired | Target service | |||||||
| 21:30 | Wired | Gateway | |||||||
| 21:30 | Wired | Target service | |||||||
| 21:30 | Wi-Fi | Target service |
The last column matters most. In the mtr report, find the hop where loss or latency rises and stays elevated through the last hop, and record that hop's address and ASN.
Step 4: Add an application-layer speed test in the browser
mtr measures the network layer, but the experience you actually get also depends on DNS, the TLS handshake and HTTP round trips. Open the cdnping online speed test and run it once in the morning and once in the evening. For each AI API it reports a "first connection" time (including DNS and the TLS handshake) and a "round trip" time (the median of 3 requests over a reused connection). If the evening first-connection time is clearly slower but the round trip is still normal, focus on DNS and the handshake. If the round trip slows down too, go back to mtr and see which segment is at fault. For how latency breaks down into stages, see AI API latency breakdown.
How do you tell which segment is at fault?
Put the morning and evening data side by side and check them against this table:
| What you observe | Most likely location | Next step |
|---|---|---|
| Wired is clean all day; Wi-Fi drops packets and has high StDev in the evening | Local Wi-Fi (many neighbor signals, crowded channel) | Switch to 5 GHz or change the channel, move the router, put key devices on Ethernet |
| Pinging the gateway already shows loss or high jitter in the evening | Home devices or the router (someone is downloading, router underpowered) | Disconnect other devices and test again; check the router's CPU and connection count |
| Gateway is clean; hops 2-4 (the ISP's metro network) start degrading and stay degraded | Access segment | Note the time and hop, and report it to your broadband provider with the mtr report attached |
| First few hops are clean; persistent loss begins at a backbone hop where traffic leaves the province or country | Egress segment or cross-network interconnect | Compare against daytime to confirm it is specific to the evening peak; check whether traffic detours across carriers |
| All hops are the same morning and evening, and only the last hop gets worse in the evening | The target service or its access line | Check the vendor's status page and whether cdnping /en/status degraded at the same time |
| Last-hop loss is high, but TCP 443 probing is normal and the application is fine | The target rate-limits ICMP | Not a problem; go by TCP probing and application-layer results |
A common cause of egress-segment problems is insufficient interconnect bandwidth between carriers, or congested international exits in the evening. To judge whether traffic is detouring across carriers, see Why cross-carrier access between China Telecom, China Unicom and China Mobile is slow. To understand which route each backbone ASN in your mtr output stands for, see What are CN2 GIA, 163, 9929 and CMI?
Common pitfalls when testing
- Testing with a proxy on. With a proxy on, mtr measures the path to the proxy entry point, not to the target service, and the conclusions will be completely different. Test a direct connection with the proxy off first, then test the path to the proxy entry separately. You can first use IP and environment check to confirm your current egress IP and routing status, so you don't test the wrong path.
- Too few samples, or testing only once. Evening congestion is somewhat random. Only draw conclusions after it reproduces on at least two or three evenings in a row.
- Looking only at intermediate hops. An intermediate hop showing 30% loss while the last hop shows 0% is not a problem.
- Someone at home is downloading or streaming video during the test. If your local uplink or downlink is saturated, jitter across the whole path gets large and looks like an outside problem.
- Mistaking a one-off outage at the target service for your own network problem. If the vendor's status page shows an incident at the same time, test again at a different time.
What data can you watch over the long term?
Your own mtr records tell you about your own line. For the target service's side, you can use cdnping's /en/status, which keeps 30 days of probe history so you can see whether an endpoint degraded at a given time. The weekly stability report, generated automatically every Monday, summarizes the previous week. The probing method and definitions are written up in Methodology. cdnping probes from the Cloudflare edge and reflects the state of the service endpoint itself. It cannot replace tests run from your own network.
If you confirm the problem is not the network but that the AI service itself is slow or returning errors, continue with Is ChatGPT down? A three-step check for service outage vs. your own network.