25.02.2013 Views

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 3-34 ICMP: Router Solicitation<br />

Where:<br />

Number The number of entries in the message.<br />

Entry length The length of an entry in 32-bit units. This is 2 (32 bits for<br />

the <strong>IP</strong> address <strong>and</strong> 32 bits for the preference value).<br />

TTL The number of seconds that an entry will be considered<br />

valid.<br />

Router address One of the sender's <strong>IP</strong> addresses.<br />

Preference level A signed 32-bit level indicating the preference to be<br />

assigned to this address when selecting a default router.<br />

Each router on a subnet is responsible for advertising its<br />

own preference level. Larger values imply higher<br />

preference; smaller values imply lower. The default is<br />

zero, which is in the middle of the possible range. A value<br />

of X'80000000' (-231) indicates the router should never<br />

be used as a default router.<br />

The ICMP header code field is zero for both of these messages.<br />

These two messages are used if a host or a router supports the router discovery<br />

protocol. Routers periodically advertise their <strong>IP</strong> addresses on those subnets<br />

where they are configured to do so. Advertisements are made on the all-systems<br />

multicast address (224.0.0.1) or the limited broadcast address<br />

(255.255.255.255). The default behavior is to send advertisements every 10<br />

minutes with a TTL value of 1800 (30 minutes). Routers also reply to solicitation<br />

messages they receive. They might reply directly to the soliciting host, or they<br />

might wait a short r<strong>and</strong>om interval <strong>and</strong> reply with a multicast.<br />

Hosts can send solicitation messages. Solicitation messages are sent to the<br />

all-routers multicast address (224.0.0.2) or the limited broadcast address<br />

(255.255.255.255). Typically, three solicitation messages are sent at 3-second<br />

intervals. Alternatively, a host can wait for periodic advertisements. Each time a<br />

host receives an advertisement with a higher preference value, it updates its<br />

default router. The host also sets the TTL timer for the new entry to match the<br />

value in the advertisement. When the host receives a new advertisement for its<br />

current default router, it resets the TTL value to that in the new advertisement.<br />

114 <strong>TCP</strong>/<strong>IP</strong> <strong>Tutorial</strong> <strong>and</strong> <strong>Technical</strong> <strong>Overview</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!