Sub topic 2
Reading Ping Results and Tracing a Network Path
Assume you know what an IP address is, can open a command prompt or terminal, and understand that routers forward packets between networks.
Reading ping results
ping sends an ICMP Echo Request to a destination. A reachable destination normally returns an ICMP Echo Reply. The output reports:
- Reply: The destination answered.
- time or time=: The round-trip time (RTT), measured in milliseconds. It includes travel to the destination and back.
- TTL: The remaining time-to-live value in the reply.
- Request timed out: No reply arrived before the timeout. The destination may be offline, busy, or filtering ICMP.
- Destination host unreachable: A local system or router could not find a route to the destination.
- Packet loss: The percentage of requests without replies. Occasional loss may be congestion. Consistent loss needs investigation.
ping -n 10 8.8.8.8Compare the minimum, maximum, and average RTT. A high average or large difference between minimum and maximum can indicate congestion or an unstable link.
Ping by IP address versus ping by name
A name such as example.com must first be translated into an IP address by DNS, the Domain Name System. Comparing these commands separates DNS problems from network reachability problems:
ping 93.184.216.34
ping example.comIf the IP-address test succeeds but the name test reports that the name cannot be found, investigate DNS configuration or the DNS server. If both fail, investigate routing, filtering, or the destination.
How TTL limits a packet's lifetime
TTL, or hop limit in IPv6, prevents a packet from circulating forever. The sender sets a value. Each router decreases it by one. When it reaches zero, the router discards the packet and sends an ICMP Time Exceeded message.
Tracing the path
tracert and traceroute deliberately send probes with increasing TTL values. The first probe expires at the first router, the next at the second router, and so on. The resulting ICMP Time Exceeded messages reveal the path.
tracert -d -h 20 example.comtraceroute -n example.comEach row represents a hop. Several time values show separate probes. An asterisk means that a probe received no response. Asterisks do not automatically mean the path is broken because routers often filter or rate-limit diagnostic replies. Focus on where responses stop, and compare the result with a direct ping.
Exercise
A name-based ping fails, but pinging the resolved IP succeeds. What should you check first?
Show answer
Check DNS configuration or the DNS server. Basic IP connectivity is working.