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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The UDP datagram has an 8-byte header, as described in Figure 4-2 on<br />

page 148.<br />

Source Port<br />

Length<br />

Figure 4-2 UDP: Datagram format<br />

Where:<br />

Source Port Indicates the port of the sending process. It is the port to<br />

which replies are addressed.<br />

Destination Port Specifies the port of the destination process on the<br />

destination host.<br />

Length The length (in bytes) of this user datagram, including the<br />

header.<br />

Checksum An optional 16-bit one's complement of the one's<br />

complement sum of a pseudo-<strong>IP</strong> header, the UDP<br />

header, <strong>and</strong> the UDP data. In Figure 4-3, we see a<br />

pseudo-<strong>IP</strong> header. It contains the source <strong>and</strong> destination<br />

<strong>IP</strong> addresses, the protocol, <strong>and</strong> the UDP length.<br />

Figure 4-3 UDP: Pseudo-<strong>IP</strong> header<br />

The pseudo-<strong>IP</strong> header effectively extends the checksum to include the<br />

original (unfragmented) <strong>IP</strong> datagram.<br />

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

Data...<br />

Source <strong>IP</strong> address<br />

Destination <strong>IP</strong> address<br />

Destination Port<br />

Checksum<br />

Zero Protocol <strong>TCP</strong> Length

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

Saved successfully!

Ooh no, something went wrong!