Guide

How to measure packet loss on Windows and Linux

To know whether your game's lag is packet loss you do not need to install anything. The operating system has the tools.

Published: 2 min read

ping with a hundred packets

On Windows open Command Prompt and type ping -n 100 address. Put the game server's IP in place of address, or, if you do not have it, the IP of a steady server such as 1.1.1.1. On Linux and Mac the command is ping -c 100 address.

At the end you see a summary with the packets sent, received and lost and the percentage lost. Below it are the lowest, highest and average ping. If the highest is far from the average, you have jitter.

pathping: where the loss starts

On Windows pathping address measures the route hop by hop and gives the loss for each. It takes a few minutes. On Linux the equivalent is mtr -rw address, which you can install from your package repository if it is missing.

The first hop that shows loss which then continues to the end of the route is where the trouble is. If the very first hop, your modem or router, shows loss, the problem is at home.

What gets misread

  • Some routers in the middle of a route do not answer ping, or answer late. Loss seen at one middle hop that disappears afterwards is usually not a real problem.
  • ping uses the ICMP protocol, while games mostly send UDP. The network may treat the two a little differently.
  • A hundred packets is a small sample. One clean run does not mean the line is always clean. Measure several times and at different hours, especially in the evening.

Before you conclude

Measure once on a cable and once on Wi-Fi, then on mobile data. If you lose packets only on Wi-Fi, the trouble is the Wi-Fi link, not the provider. A few ways to cut it are in this post.

Most games show ping and packet loss inside the game, in the settings or with a shortcut key. The in-game figure is the most trustworthy, because it measures exactly the game's own path.