tcp udp cyber notes
tcp udp cyber notes
The transport layer in the OSI and TCP/IP models ensures end-to-end
communication between applications running on different hosts. Two widely
used transport layer protocols are:
a. Addressing
Example:
o A client initiates communication with a web server to download a
webpage.
TCP Connection Release: A four-step process where both ends agree
to terminate the connection using FIN (finish) and ACK flags.
e. Crash Recovery
ARQ Variants:
a. Introduction to TCP
e. Transmission Policy
4. Mobile TCP
TCP adapted for mobile environments with unique challenges such as:
o High Latency: Delay in communication.
o Variable Bandwidth: Network speed fluctuates.
o Frequent Disconnections: Mobile devices often lose
connectivity.
Key Features:
a. Fairness
Slow Start:
o Starts with a small data rate and increases exponentially until
congestion is detected.
Congestion Avoidance:
o Maintains a steady data rate to prevent overwhelming the
network.
Fast Retransmit:
o Quickly resends data upon receiving duplicate acknowledgments,
indicating packet loss.
Fast Recovery:
o Reduces the transmission rate less aggressively to recover
quickly from packet loss.
Examples
TCP: Used for reliable applications such as file transfers (HTTP, FTP)
and emails (SMTP).
UDP: Used for speed-critical applications such as video streaming,
online gaming, and DNS lookups.