Presentation is loading. Please wait.

Presentation is loading. Please wait.

UDP: User Datagram Protocol. What Can IP Do? Deliver datagrams to hosts – The IP address in a datagram header identify a host – treats a computer as an.

Similar presentations


Presentation on theme: "UDP: User Datagram Protocol. What Can IP Do? Deliver datagrams to hosts – The IP address in a datagram header identify a host – treats a computer as an."— Presentation transcript:

1 UDP: User Datagram Protocol

2 What Can IP Do? Deliver datagrams to hosts – The IP address in a datagram header identify a host – treats a computer as an endpoint of communication Best effort delivery -- no guarantees

3 What Do Your Applications Need? Individual packets go to their own applications – Your machine may run multiple applications simultaneously Outlook, Firefox, Windows Media Player. Different levels of services – Every bit of information should be received correctly. Email – Can tolerate some information loss Streamed media

4 Transport Layer Services Transport layer provides end-to-end connectivity across the network – Virtual communications via TCP software

5 Layer 4 Packet: Segment Segments carry application data across the network Segments are carried within IP datagrams within frames 802.11App, e.g., HTTPIPTCP Frame Segment Datagram

6 Endpoint Identification with Protocol Port Numbers Port numbers – Independent of the OS Well-known port numbers: – 22: SSH – 25: SMTP – 80: HTTP – and more: http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers

7 Transport Layer Services TCP/IP suite contains two transport protocols. – User Datagram Protocol (UDP) – Transmission Control Protocol (TCP) UnreliableReliable MessagesUDP StreamTCP

8 Comparison of Transport Protocols TCP is full-featured, UDP is a glorified packet TCP (Stream)UDP (Message) ConnectionsConnectionless Point-to-point communicationArbitrary Interaction Bytes are delivered once, reliably, and in order Message may be lost, reordered, duplicated Arbitrary length contentLimited message size Flow control matches sender to receiver Can send regardless of receiver state Congestion control matches sender to network Can send regardless of network state

9 Why using UDP service? No connection establishment – Get straight to the point No connection state – A server can support more active clients simultaneously Fine application-level control over what data is sent, and when – Faster if application can tolerate some data loss – Avoid overly delayed segments

10 Some Examples ApplicationTCP or UDP? E-mailTCP Remote terminal accessTCP WebTCP File transferTCP Streaming multimediaUDP, TCP Internet telephonyUDP, TCP Name translationTypically UDP Remote file serverTypically UDP TCP today: >95% Internet traffic ~75% on-demand and live streaming

11 Discussion Why is it that 75% video traffic is sent over TCP rather than UDP in today’s network?


Download ppt "UDP: User Datagram Protocol. What Can IP Do? Deliver datagrams to hosts – The IP address in a datagram header identify a host – treats a computer as an."

Similar presentations


Ads by Google