UDP: User Datagram Protocol [RFC 768 No frills, ""bare bones" Internet transport protocol *"Best effort"service, UDP segments may be * Lost Delivered out of order to app Connectionless No handshaking between UDP sender, receiver Each UDP segment handled independently of others 2021/2/8
UDP: User Datagram Protocol [RFC 768] “No frills,” “bare bones” Internet transport protocol “Best effort” service, UDP segments may be: Lost Delivered out of order to app Connectionless: No handshaking between UDP sender, receiver Each UDP segment handled independently of others 2021/2/8 6
Why is there a UDP? No connection establishment(which can add delay Simple: no connection state at sender recelver small header No congestion control: UDP can blast away as fast as desired 2021/2/8
Why is there a UDP? No connection establishment (which can add delay) Simple: no connection state at sender, receiver Small header No congestion control: UDP can blast away as fast as desired 2021/2/8 7
UDP Applications w Often used for streaming multimedia apps k Loss tolerant Rate sensitive w other UdP based apps k DNs, SNMP Reliable transfer over UdP Must be at application layer Application-specific error recovery 2021/2/8
UDP Applications Often used for streaming multimedia apps Loss tolerant Rate sensitive Other UDP based apps DNS, SNMP Reliable transfer over UDP Must be at application layer Application-specific error recovery 2021/2/8 8
UDP Segment Format 32 bits Source port dest port Length, in bytes ength Checksum of UDP segment, including header Application data (message UDP segment format 2021/2/8
UDP Segment Format 2021/2/8 9 Source port # Dest port # 32 bits Application data (message) UDP segment format Length Checksum Length, in bytes of UDP segment, including header
UDP Checksum Goal: detect errors"(e.g flipped bits) in transmitted segment Sender Treat segment contents as sequence of 16-bit integers Checksum: addition of segment contents Sender puts checksum value into UDP checksum field 2021/2/8
UDP Checksum Goal: detect “errors” (e.g., flipped bits) in transmitted segment Sender Treat segment contents as sequence of 16-bit integers Checksum: addition of segment contents Sender puts checksum value into UDP checksum field 2021/2/8 10