Presentation is loading. Please wait.

Presentation is loading. Please wait.

UDP: User Datagram Protocol Brian Jorgage CSC 8560 2/24/2004.

Similar presentations


Presentation on theme: "UDP: User Datagram Protocol Brian Jorgage CSC 8560 2/24/2004."— Presentation transcript:

1 UDP: User Datagram Protocol Brian Jorgage CSC 8560 2/24/2004

2 Resource Description http://www- net.cs.umass.edu/kurose/transport/UDP.htmlhttp://www- net.cs.umass.edu/kurose/transport/UDP.html Part of a networking tutorial from University of Massachusetts Tie in to class in Chapter 11: Transport Layer Summary: Overview of UDP Good high-level introduction Resource applicable for instruction on operation of various network protocols

3 Introduction Defined in RFC 768 One of two transport layer protocols – the other is TCP Provides bare-bones functionality Useful is situations requiring minimal overhead

4 TCP vs UDP TCP uses 3-way handshake UDP has no connection initiation Therefore less overhead – (e.g. DNS needs to be fast so it runs over UDP) TCP maintains connection state information vs UDP no connection state Advantage when many instances of an application need to be run from a server – connections are easier to maintain

5 TCP vs UDP (cont) TCP has 20 byte header vs UDP 4 byte header TCP has a congestion control mechanism vs UDP’s unregulated send rate Disadvantage to UDP: if network is congested, possible data loss due to buffer overflow in routers

6 Applications using TCP/UDP Email, telnet, web, ftp all run over TCP – they need the reliability of TCP DNS, network mgt (SNMP), VoIP, Routing table updates (RIP), NFS, multcasting - all run over UDP since they need the low overhead Note that reliability mechanisms can be built into the application layer if necessary

7 UDP Segment Structure {Header = 4 bytes} {Data…} Header fields: Source port, Destination port, Length, Checksum

8 UDP Checksum Used for error detection Compute the sum of all 16 bit words in UDP segment Calculate the one’s complement of the sum – this is now the checksum Example - one’s complement of 11110000 = 00001111 The sum of all words + checksum = 11111111 If the receiver does not compute the same value then an error occurred somewhere UDP does not attempt to recover from error – it may discard the segment or pass a warning along to application


Download ppt "UDP: User Datagram Protocol Brian Jorgage CSC 8560 2/24/2004."

Similar presentations


Ads by Google