Unit 6 NT (ii) UDP
Unit 6 NT (ii) UDP
d Used
– During startup
– For VoIP and some video applications
d Accounts for less than 10% of Internet traffic
d Blocked by some ISPs
d End-to-end
d Connectionless communication
d Message-oriented interface
d Best-effort semantics
d Arbitrary interaction
d Operating system independence
d No congestion or flow control
d UDP
– Accepts and delivers messages (blocks of data)
– Does not require all messages to be the same size, but
does define a maximum message size
– Places each outgoing User Datagram in a single IP
datagram for transmission
– Always delivers a complete message to receiving
application
d Sending application must divide outgoing data into
messages; UDP sends what it is given (or reports an error if
the message is too large)
IP Fragmentation!
Inefficiency!
d Questions
– Do best-effort semantics make any sense for
applications?
– Why would a programmer choose UDP?
d Answers
– Retransmitting a lost message does not make sense for
real-time audio and video applications because a
retransmitted packet arrives too late to be used
– Additional real-time protocols can be added to UDP to
handle out-of-order delivery (we will cover later in the
course)
...
IP SOURCE ADDRESS
IP DESTINATION ADDRESS
IP Header IP Payload