20.01.2014 Views

Lectures notes for 2010 - KTH

Lectures notes for 2010 - KTH

Lectures notes for 2010 - KTH

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

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>2010</strong>.03.21 Internetworking/Internetteknik

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

Saved successfully!

Ooh no, something went wrong!