ICMP is a fundamental protocol in networking. What is its main role?
Think about how devices report problems or status in IP networks.
ICMP is used mainly to send error messages and operational information, such as when a destination is unreachable or a packet's time has expired. It does not handle connection setup, encryption, or IP address assignment.
ping command use to check if a host is reachable?The ping command sends a specific ICMP message to test connectivity. Which one?
It asks the target to reply back to confirm it is alive.
Ping sends ICMP Echo Request messages and waits for Echo Reply messages to verify if the target host is reachable.
traceroute command primarily rely on to discover the path packets take to a destination?Traceroute uses a specific field in IP packets and ICMP messages to map the route. What is this mechanism?
Think about how routers handle packets with expired TTL.
Traceroute sends packets with TTL starting at 1 and increasing by 1 each time. When a router decrements TTL to zero, it sends back an ICMP Time Exceeded message, revealing its address and allowing traceroute to map the path.
ping and traceroute differ in their use of ICMP messages?Both tools use ICMP but in different ways. Which statement correctly describes their difference?
Consider what each tool tries to achieve and how ICMP helps.
Ping sends Echo Requests and waits for Echo Replies to check reachability. Traceroute sends packets with varying TTLs and listens for Time Exceeded messages from routers to map the path.
During a traceroute, you notice several consecutive hops report the same router IP. What does this indicate?
Think about what repeated IPs in traceroute hops usually mean in network paths.
Repeated IP addresses in traceroute hops usually indicate a routing loop, where packets circulate through the same router repeatedly due to misconfigured routing.