4.1 TCP & UDP
4.1 TCP & UDP
INTRODUCTION TO UDP
Position of UDP in TCP/IP Protocol suite
UDP
UDP is a transport layer protocol responsible for
process-to-process communication.
16 bits long.
Length. This is a 16-bit field that defines
the total length of the user datagram,
header plus data. Checksum. This field is
used to detect errors over the entire user
datagram (header plus data).
UDP OPERATION
1. Process-to-process communication
2. Connectionless service
3. Flow and error control
4. Congestion control
5. Encapsulation & decapsulation
6. Multiplexing & demultiplexing
7. Queuing
CONNECTIONLESS SERVICE
multicasting.
Used for real-time applications that cannot
Process-to-process communication
Stream delivery service
Full duplex communication
Multiplexing & demultiplexing
Connection-oriented service
STREAM DELIVERY
SERVICE
TCP allows the sending process to deliver
data as a stream of bytes and allows the
receiving process to obtain data as a stream
of bytes.
Segments
Byte number
Sequence number
Acknowledgement number
Numbering system
Connection establishment
Data transfer and
Connection termination.
Connection Establishment
termination:
Three-way handshaking and
close option.
Three way handshaking
i) Client TCP sends FIN segment with FIN flag set to
server.
Can be a control or control+data segment. Data
Checksum,
acknowledgment, and
time-out.
Checksum
When a segment is
corrupted, lost, or delayed,
it is retransmitted.
There is no retransmission for
an ACK segment.
Out of Order Segments