Professional Documents
Culture Documents
UDP
UDP provides a simple end-to-end data transfer service
Unreliable & connectionless
Internet Checksum
An error-detection mechanism used by UDP and TCP (and IP)
TCP
Reliable data transfer service
Ensure that data is delivered from sender to receiver in-order and correctly
Error checking, sequencing, acknowledgment, retransmission
Flow control
Prevent overflowing the buffer at receiving host
Congestion control
Prevents any one TCP connection from generating excessive traffic and overflowing the buffer resources in
packet switches along communication path
Connection management
Services not offered
delay guarantees
bandwidth guarantees
Connectionless
no need to set up a connection between UDP sender & receiver
If sender wants to send, just sends
As connectionless, a UDP peer (socket) can send to and receive from any UDP peer (socket)
Less overhead in managing this logical communication channel
8 bytes
UDP length (16-bit)
Total number of bytes in segment (including header)
8 bytes ≤ length ≤ 216
Checksum (16-bit)
Based on Internet Checksum calculation
The algorithm that used by IP, TCP & UDP is called Internet Checksum,
which is selected because of
Ease of implementation in software
Is easy to recompute the checksum if there are minor changes in the packet
The result should be zero if no transmission error; otherwise, the message is corrupted
That is, it gets all 1s, which, after complementing, is all 0s and shows that there is no
error.