Article ID: 195686 - View products that this article applies to.
This article was previously published under Q195686
The assumption on IP internetworks is that the IP hosts (nonrouters) only need minimal routing information and can rely on IP routers having knowledge of the topology of the internetwork and all of the best routes. Therefore, IP hosts are typically only configured with an IP address of a default router (also called a default gateway). Any remote traffic from the IP host is forwarded to the default IP router. While this makes it easier to configure the IP hosts, in IP internetworks where there are multiple routers on a given network, the behavior of sending all remote traffic to the same router can produce non-optimal host routing. To prevent the perpetuation of non-optimal host routing, IP routers can update the routing tables of hosts using an ICMP Redirect message.
The ICMP Redirect message is only sent in the following situation:
In the ICMP Redirect message:
Type - Set to 5. Code - Set to 0 - 3 (details below).
Router IP Address - The IP address of the router corresponding to the better route as determined by the router originally sent the IP datagram. The sending host uses this information to update its routing table to include this new route.
IP Header and First 64 Bits of Original IP Payload - To identify the forwarded packet for the source, the IP header and 64 bits of the IP payload are encapsulated and sent back to the source. Included in the encapsulated IP header is the IP Identification field uniquely identifying a specific IP packet as sent by the source and the destination IP address. Between the destination IP address stored here and the router IP address field in the ICMP header, a routing table entry is made.
Windows NT Specifics:
Code Value Meaning ---------- ------- 0 Redirected datagrams for the network (obsolete). 1 Redirected datagrams for the host. 2 Redirected datagrams for the Type of Service and the network. 3 Redirected datagrams for the Type of Service and the host.
A host route learned by means of an ICMP Redirect will be added to the route table for 10 minutes, after which time it is removed and must be relearned through another ICMP Redirect.
Article ID: 195686 - Last Review: January 23, 2007 - Revision: 2.2
Contact us for more help
Connect with Answer Desk for expert help.