20.01.2014 Views

Lectures notes for 2010 - KTH

Lectures notes for 2010 - KTH

Lectures notes for 2010 - KTH

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.

UDP Checksum and Pseudo-Header<br />

• UDP checksum covers more info than is present in the UDP datagram<br />

alone: pseudo-header and pad byte (0) {to even number of 16 bit words}.<br />

• Propose: to verify the UDP datagram reached its correct destination:<br />

right port number at the right IP address.<br />

• Pseudo-header and pad byte are not transmitted with the UDP<br />

datagram, only used <strong>for</strong> checksum computation.<br />

0 15 16 31<br />

32 bit IP source address<br />

32 bit IP destination address<br />

UDP Pseudo<br />

header<br />

zero 8 bit protocol (UDP = 17) 16 bit UDP length<br />

16 bit source port number 16 bit destination port number UDP header<br />

16 bit UDP length 16 bit UDP checksum<br />

data (if any)<br />

data<br />

Pad byte (0)<br />

Maguire UDP Checksum and Pseudo-Header 4: 7 of 74<br />

maguire@kth.se <strong>2010</strong>.03.21 Internetworking/Internetteknik

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

Saved successfully!

Ooh no, something went wrong!