20.01.2014 Views

Lectures notes for 2011

Lectures notes for 2011

Lectures notes for 2011

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.

Module 4: UDP and friends...................................................................... 1<br />

Outline.............................................................................................................................................. 2<br />

Transport layer protocols ................................................................................................................. 3<br />

Main Transport layer protocols........................................................................................................ 4<br />

User Datagram Protocol (UDP)....................................................................................................... 5<br />

UDP Header..................................................................................................................................... 6<br />

UDP Checksum and Pseudo-Header ............................................................................................... 7<br />

Reserved and Available UDP Port Numbers................................................................................... 8<br />

Port numbers in three groups ........................................................................................................... 9<br />

MTU and Datagram Fragmentation............................................................................................... 10<br />

Fragmentation Required................................................................................................................. 11<br />

Interaction between UDP and ARP ............................................................................................... 12<br />

Still a problem?.............................................................................................................................. 14<br />

With an even larger UDP packet ................................................................................................... 15<br />

Maximum UDP Datagram size...................................................................................................... 16<br />

Datagram truncation....................................................................................................................... 17<br />

Socket API ..................................................................................................................................... 18<br />

Learning about Socket programming............................................................................................. 19<br />

Simple UDP client ......................................................................................................................... 20<br />

UDP server design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21<br />

UDP listener example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22<br />

Changed the client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23<br />

Maguire xi of xlii<br />

maguire@kth.se <strong>2011</strong>.03.20 Internetworking/Internetteknik

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

Saved successfully!

Ooh no, something went wrong!