Hands-on simulation of Ping (Echo Request/Reply) & Traceroute concepts | For undergraduate CS students
ICMP is a core protocol of the Internet Protocol Suite, used primarily for error reporting and diagnostic functions. Unlike TCP/UDP, ICMP is not used for data transport but for network-layer control messages.
ping utility. Measures round-trip time and reachability.In this virtual lab, you will simulate ICMP Echo requests and visualize the packet structure. The traceroute simulation demonstrates how ICMP Time Exceeded messages reveal network paths.
Why ICMP matters: Network diagnostics, MTU discovery, and troubleshooting rely heavily on ICMP. Understanding its format and behavior is essential for network engineers.
✅ Attach at least 3 simulation logs showing different scenarios (successful ping, unreachable host, traceroute).
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Code | Checksum |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Identifier | Sequence Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Data (optional) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
This simulator constructs realistic ICMP packets. For each Echo Request, a random identifier (process ID) and sequence number increment. RTT is simulated between 15–65 ms based on network conditions. Traceroute sends probes with increasing TTL (Time To Live) and captures simulated ICMP Time Exceeded messages from intermediate "virtual routers".
All outputs emulate standard command-line tools (ping / traceroute).