15-TL-UDP - UDP Use DatagramProtocol r UDP Use...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
UDP: User Datagram Protocol
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
UDP: User Datagram Protocol [RFC 768] “bare bones”, “best effort” transport protocol connectionless: no handshaking between UDP sender, receiver before packets start being exchanged each UDP segment handled independently of others Just provides multiplexing/demultiplexing Pros: No connection establishment No delay to start sending/receiving packets Simple no connection state at sender, receiver Small segment header Just 8 bytes of header Cons: “best effort” transport service means, UDP segments may be: lost de livered out of order to app no congestion control: UDP can blast away as fast as desired
Background image of page 2
UDP more often used for streaming multimedia apps loss tolerant rate sensitive other UDP uses DNS SNMP reliable transfer over UDP: add reliability at application layer application-specific error recovery! source port # dest port # 32 bits Application data (message) UDP segment format length checksum Length, in bytes of UDP segment, including header Used for Mux/Demux
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
UDP Demultiplexing Create sockets with port numbers: DatagramSocket mySocket1 = new DatagramSocket(6428); DatagramSocket mySocket2 = new DatagramSocket(4567); UDP socket identified by two-tuple: ( dest IP address, dest port number) When host receives UDP segment: checks destination port number in segment directs UDP segment to socket with that port number IP datagrams with different source IP addresses and/or source port numbers directed to same socket
Background image of page 4
UDP Demultiplexing Example Client IP:B P client IP: A P P server IP: C SP: 6428 DP: 9157 SP: 9157 DP: 6428 DP: 5775 SP: 5775
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/03/2009 for the course NET NET taught by Professor N/a during the Spring '09 term at Anadolu University.

Page1 / 18

15-TL-UDP - UDP Use DatagramProtocol r UDP Use...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online