Computer Networksuniversity - Part 6
Computer Networksuniversity - Part 6
– PART 6
University Of Kurdistan
Dept. Of Engineering (Computer Group)
By: Khatereh Ahmadi
Khahmadi.uok@gmail.com
TRANSPORT LAYER
TRANSPORT LAYER
➢ Responsibilities of the transport layer
➢ Congestion Control
1
TRANSPORT LAYER
Provides logical communication between
application processes running on
different hosts .
121
TRANSPORT LAYER VS. NETWORK LAYER
Network layer services work as Host-to-Host protocols and can transfer
a data packet from the source host to the destination host.
While transport layer protocols are Port to Port Protocols and work at a higher
level.
3
TRANSPORT LAYER
TWO PRINCIPAL INTERNET TRANSPORT PROTOCOLS
4
TRANSPORT LAYER
PROTOCOLS
UDP (User Datagram Protocol)
➢ A connectionless protocol.
➢ UDP is used when reliability and security are of little importance
UDP segment (User Datagram) Format
5
TRANSPORT LAYER
PROTOCOLS
UDP key features
▪ Speed: UDP is faster than TCP because it has minimal error-checking and no
connection establishment.
▪ Low Overhead: UDP has a smaller header size (8 bytes) compared to TCP
(20-60 bytes), making it lightweight.
7
TRANSPORT LAYER
PROTOCOLS
TCP key features
➢Reliability: TCP guarantees the delivery of data packets in the correct order.
If any packets are lost, TCP will retransmit them.
➢ Flow Control: TCP manages the rate of data transmission to prevent
network congestion.
➢ Multiplexing: TCP protocol delivers packets to applications using logical
channels, referred to as "ports".
➢Full duplex: The TCP protocol provides a full duplex service.
8
TRANSPORT LAYER
Congestion Control
A method used by the TCP protocol to manage data flow over a network
and prevent congestion.
9
TRANSPORT LAYER
10
TRANSPORT LAYER
3. Congestion detection: two cases
3.1. Retransmission due to Timeout
11
TRANSPORT LAYER
Example
Assume a TCP protocol experiencing the behavior of slow start. At the 5th
transmission round with a threshold (ssthresh) value of 32.
receiver.
11
TRANSPORT LAYER
PROTOCOLS
Example
12