Menu
Coddy logo textTech

Reading Ping Output

Lesson 16 of 47 in Coddy's Networking with the Terminal course.

Ping prints two useful things, and people usually read the wrong one.

The time on each reply is the round trip in milliseconds. It tells you how far away the machine is, in network terms. A few milliseconds is the same building, a couple of hundred is the other side of the world.

The loss figure in the summary matters more. Zero loss with a slow time means a distant but healthy connection. Partial loss, say 20 percent, is the genuinely bad sign: something is dropping messages, and that shows up as a connection that works, then stalls, then works again.

So: time tells you how far, loss tells you how healthy. When someone reports "the network is slow", the loss figure is the one that identifies a real fault.

challenge icon

Challenge

Hard

Pull one number out of the summary.

Ping 127.0.0.1 twice and print only the number of packets that came back, with no words around it. Expected output:

2

The summary reads 2 packets transmitted, 2 packets received, 0% packet loss. Find that line, then take the right column.

Try it yourself

Terminal
quiz iconTest yourself

This lesson includes a short quiz. Start the lesson to answer it and track your progress.

All lessons in Networking with the Terminal

Practice on your own: Terminal playground