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.

Timestamp Request (13) <strong>and</strong> Timestamp Reply (14)<br />

These two messages are for debugging <strong>and</strong> performance measurements. They<br />

are not used for clock synchronization.<br />

The sender initializes the identifier <strong>and</strong> sequence number (which is used if<br />

multiple time stamp requests are sent), sets the originate time stamp, <strong>and</strong> sends<br />

the datagram to the recipient. The receiving host fills in the receive <strong>and</strong> transmit<br />

time stamps, changes the type to time stamp reply, <strong>and</strong> returns it to the original<br />

sender. The datagram has two time stamps if there is a perceptible time<br />

difference between the receipt <strong>and</strong> transmit times. In practice, most<br />

implementations perform the two (receipt <strong>and</strong> reply) in one operation. This sets<br />

the two time stamps to the same value. Time stamps are the number of<br />

milliseconds elapsed since midnight UT (GMT).<br />

See Figure 3-37 for details.<br />

Figure 3-37 ICMP: Timestamp Request <strong>and</strong> Timestamp Reply<br />

Address Mask Request (17) <strong>and</strong> Address Mask Reply (18)<br />

An address mask request is used by a host to determine the subnet mask used<br />

on an attached network. Most hosts are configured with their subnet mask or<br />

masks. However some, such as diskless workstations, must obtain this<br />

information from a server. A host uses RARP (see 3.5, “Reverse Address<br />

Resolution Protocol (RARP)” on page 124) to obtain its <strong>IP</strong> address. To obtain a<br />

subnet mask, the host broadcasts an address mask request. Any host in the<br />

network that has been configured to send address mask replies will fill in the<br />

subnet mask, convert the packet to an address mask reply, <strong>and</strong> return it to the<br />

sender. The ICMP header code field is zero.<br />

See Figure 3-38 on page 117 for more details.<br />

116 <strong>TCP</strong>/<strong>IP</strong> <strong>Tutorial</strong> <strong>and</strong> <strong>Technical</strong> <strong>Overview</strong><br />

0 8 16 31<br />

identifier sequence number<br />

originate timestamp<br />

receive timestamp<br />

transmit timestamp

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

Saved successfully!

Ooh no, something went wrong!