TCP Client Server Communication
TCP Client Server Communication
The TCP/IP model has four layers, each responsible for specific tasks:
1. Application Layer
2. Transport Layer
3. Internet Layer
Protocol Layering
Example:
When you send an email:
The Network Access Layer sends it over the physical medium (like
Wi-Fi).
Each layer adds its own header (control information) to the data before
passing it down to the next layer — this is called encapsulation.
Client-Server Communication
How it works:
Examples:
Key Points:
How it works:
Key Features:
Common Applications:
How it works:
Key Features:
Common Applications:
o Online gaming
TCP = Telephone Call (both sides connect first, then talk reliably)
UDP = Postcard (you just send it; it may or may not arrive)
Channelization Protocols
In Random Access, any device can transmit at any time, without prior
coordination.
But because devices transmit freely, collisions (overlapping data) can
happen, so methods are needed to detect and handle them.
ALOHA
CSMA
CSMA/CD
CSMA/CA
ALOHA
1. Pure ALOHA
2. Slotted ALOHA
Summary:
Types of CSMA:
1-persistent CSMA: Continuously senses and sends as soon as
idle.
Steps:
Steps:
Main idea: Avoid collisions before sending large data by using small
control messages.