ICMP Ping and Traceroute Notes

ICMP Overview

  • ICMP (Internet Control Message Protocol) is essential for network diagnostics.
    • Used for sending echo-request and echo-reply messages.
    • Provides feedback on IP packet processing issues.

Class Exercise - Module 13: PING vs. TRACEROUTE

  • Objective: Compare ping and traceroute commands to understand their use cases.
Step #1: Ping from PC2 to PC4
  • Outcome: Note the success/failure of the ping.
  • Important to count ICMP replies received.
Step #2: Traceroute from PC2 to PC4
  • Command: C>Tracert 10.20.4.10
  • Determine how many hops the ICMP packet goes through.
  • Identify how to know the number of hops (usually by counting the listed routers).
Step #3: Analyze Results
  • From Step #2 results, identify the Default Gateway of PC2.
  • This gateway is essential for forwarding traffic to other networks.
Step #4: Additional PING Command
  • On PC2, issue the ping command to IP 10.20.0.1 (Loopback 1 on R4).
  • Outcome: Note the failure and analyze potential reasons (e.g., misconfigured devices, network issues).
Step #5: TRACEROUTE Command Execution
  • On PC2, issue command: C>Tracert 10.20.0.1.
  • Outcome: If it fails, determine where troubleshooting should begin.
    • Reasons could include routing tables or firewall settings.

ICMPv4 Destination Unreachable Codes

  • Codes:
    • 0: Network unreachable
    • 1: Host unreachable
    • 2: Protocol unreachable
    • 3: Port unreachable

ICMPv6 Destination Unreachable Codes

  • Codes:
    • 0: No route to destination
    • 1: Communication administratively prohibited (e.g., firewall configuration)
    • 2: Beyond scope of source address
    • 3: Address unreachable
    • 4: Port unreachable

Summary

  • Familiarize with ICMP message types and how to interpret ping/traceroute outputs.
  • Understanding these protocols and codes is crucial for troubleshooting network issues efficiently.