Network Tool Output: Reading Fields and Warning Values Accurately

A field-by-field guide to network tool output: which value is normal, which signals a problem, and where common interpretations are misleading.

7 min Updated 23 Nov 2026

You've run a dig, the answer came back, but you don't know whether the number TTL 299 in the ANSWER section means cached or fresh; or in traceroute you've seen three stars in a row and need to decide whether the path is broken or it's the destination firewall. This text is for that exact moment: what each field of network tool output means and which value should make you stop.

dig output: the sections you actually need to read

dig output has four sections, and most people only read ANSWER. The first section (HEADER) tells you the response status. A line like ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41237 means the server responded without error. If you see status: NXDOMAIN, the name doesn't exist; if it's SERVFAIL, the resolver couldn't complete the answer and the problem is usually on the authoritative server, not your client.

In the ANSWER section, the number next to a record is the remaining cache TTL, not the record's original TTL. If a record is defined with TTL 3600 and you see 299, it came from an intermediate resolver's cache. To see the original value, query the name server directly:

dig @ns1.example.com example.com A +norecurse +noall +answer

The +norecurse flag prevents going to the cache, and +noall +answer limits output to just the record line. If you see the full TTL here and a lower one elsewhere, the issue is caching, not DNS.

HEADER flags that few people read

On that same HEADER line, flags: qr rd ra tells you the status. rd means a recursive request was sent, ra means the server accepts recursion. If ra is absent and the response is empty, the destination server doesn't do recursion and you need to choose another server. The aa flag means the answer came from an authoritative server; its absence in a direct response from your own NS is a sign of a zone configuration problem.

traceroute: stars don't always mean failure

Three stars in a row at a hop has two completely different meanings. If subsequent hops respond, that star means the intermediate router doesn't return ICMP TTL Exceeded; this is a common setting on many routers and isn't a problem. If from one hop onward everything is stars and the destination doesn't respond either, the path is genuinely down.

Second point: traceroute sends UDP by default and many firewalls drop it. Try with ICMP:

traceroute -I -n -q 3 -w 2 203.0.113.10

-I switches the protocol to ICMP, -n disables reverse name resolution (making it several times faster), -q 3 is the number of packets per hop, and -w 2 is a two-second wait time. If you get responses with ICMP but not with UDP, the path is healthy and it's just ICMP/UDP filtering in between.

Non-uniform RTT at intermediate hops

A sudden latency increase at an intermediate hop that returns to normal at the next hop almost always means that router has a different return path or high control-plane load. The data path is healthy. The only number that matters is the RTT of the last hop, since that reflects the actual path to the destination.

ping and mtr: which number to trust

In ping output, look at the line 3 packets transmitted, 3 received, 0% packet loss, time 2003ms with rtt min/avg/max/mdev = 41.2/43.8/47.1/2.1 ms. The mdev (standard deviation) number matters more than avg. mdev under 5 milliseconds means a stable path; mdev above 20 milliseconds with a low avg means jitter and causes trouble for VoIP and interactive SSH, even when no packets are lost.

To see path and packet loss simultaneously, mtr is better than combining ping and traceroute:

mtr -rwzc 100 203.0.113.10

-r for report output, -w for wide mode, -z to display each hop's ASN, and -c 100 for one hundred packets. Don't draw conclusions from 10 packets; 1% loss over 10 packets could be a single random packet.

tcpdump: reading line by line

Let's break down a line like 14:22:07.118432 IP 10.0.0.5.51234 > 10.0.0.9.3306: Flags [S], seq 3184729103, win 64240, options [mss 1460,sackOK,TS val 918273 ecr 0,nop,wscale 7], length 0. Flags [S] means SYN; if no response with [S.] comes back, the destination isn't listening on the port or the firewall is DROPping. If [R.] (RST) comes back, the port is closed or the service isn't listening. The difference between DROP and REJECT is exactly this: the first is silence, the second is RST.

win 64240 is the receive window. If this number keeps hitting zero during a high-traffic flow (zero window), the receiver is slow, not the network. length 0 in a SYN packet is normal since there's no data yet.

To see only incomplete handshakes:

tcpdump -ni eth0 'tcp[tcpflags] & tcp-syn != 0 and tcp[tcpflags] & tcp-ack == 0' -c 50

-n disables name resolution and -i eth0 specifies the interface. If this command shows dozens of SYNs without ACKs, the destination is rejecting the connection or the return path is broken.

Where people go wrong

The most common mistake: seeing 100% packet loss in ping to a server and concluding the server is down. In practice many servers block ICMP Echo in the firewall while the service is perfectly healthy. The real signs: the TCP port responds, SSH connects, but ping is silent. Before doing anything, check the higher-layer status with nc -zv host 443 or curl -I https://host.

Second mistake: interpreting TTL in ping output as "number of hops." The returned TTL value (e.g., 54) is subtracted from 64 or 128 or 255 to get an approximate hop count, but different operating systems have different initial values and this calculation is only a guess. Use traceroute to count hops.

Which tool to choose

SituationToolWhy
DNS not respondingdig +traceShows the full path from root to authoritative
Intermittent packet lossmtr -c 100Cumulative statistics per hop, not a single sample
TCP connection not establishingtcpdump on both endsDefinitively distinguishes DROP from REJECT
Slowness without packet lossping watching mdevReveals jitter that traceroute hides

If you had to pick one tool, mtr gives the most information in the least time. But for DNS problems there's no substitute for dig, and for connection issues only tcpdump has the final word.

When tool output isn't enough

If dig and mtr output is healthy but the user still reports slowness, the problem is usually at the application layer, not the network. At that stage, go to website speed testing and interpreting results and measure TTFB separately from download time. To check DNS records from outside, DNS and network tools speeds things up, and to compile results from several tools into one report, webmaster tools is a good starting point.

If you manage your own server and want to run these tools on that same machine, a Linux host with SSH access is enough; just make sure their packages are available in the system repository before installing mtr and tcpdump. Additional methods and more examples are in the documentation and knowledge base.

Frequently asked questions

Why does dig respond but the browser won't open the site?

Because dig only reads the DNS record and has nothing to do with the TCP and TLS layers. If the A record is correct but the browser gives a connection error, the problem is on port 443, the SSL certificate, or the firewall. Use curl -vI https://example.com to see at which stage it stops.

What does the TTL number in ping output show?

It's the remaining TTL of the ICMP packet, not cache time. The initial value is 64 on Linux and 128 on Windows, and each router decrements it by one. The difference from the initial value gives an approximate hop count, but since the initial value differs between operating systems, this calculation isn't precise.

Why does traceroute show stars at some hops?

If subsequent hops respond, that star means the intermediate router doesn't return ICMP packets and the path is healthy. If from one hop onward everything is stars and the destination doesn't respond either, the path is down. Try again with traceroute -I and then traceroute -T -p 443 to get past protocol filtering.

How many packets are enough to find packet loss?

At least one hundred packets. With ten packets, one lost packet shows 10% loss, which is statistically meaningless. Run mtr -c 100 or ping -c 100 and look at the Loss column at the last hop, not the intermediate hops.

Next step: run an mtr -rwzc 100 to the problematic destination right now and save the output. If the last hop shows loss, the problem is the path; if not, the next tool is tcpdump.

Was this page helpful?