- ICMP Redirect Message
The ICMP type 5 contains a redirect message to send data packets on alternative route.ICMP Redirect is a mechanism for routers to convey routing information to hosts.The Redirect Message is an ICMP message which informs a host to redirect its routing information (to send packets on an alternate route). If the host tries to send data through a
router (R1) and R1 sends the data on another router (R2) then to reach the host, and a direct path from the host to R2 is available, the redirect will inform the host of such a route. The router will still send the originaldatagram to the intended destination. However, if the datagram contains routing information, this message will not be sent even if a better route is available. RFC1122 states that redirects should only be sent by gateways and should not be sent by Internet hosts.Type must be set to 5. The code, which specifies the reason for the redirection, include the following:
The IP address is the 32-bit address of the gateway to which the redirection should be sent. The additional data is included to allow the host to match the reply with the request the caused the redirection reply.
References
* RFC 792 - INTERNET CONTROL MESSAGE PROTOCOL
* RFC 1122 - Requirements for Internet Hosts -- Communication Layers [http://support.microsoft.com/kb/195686 Explanation of ICMP Redirect Behavior]
Wikimedia Foundation. 2010.