Skip to content

Computer Networks

The OSI model is a seven-layer conceptual framework that standardizes and describes the distinct functions of network communication - from physical bit transmission to application-level services - to guide interoperability, design, and troubleshooting.

No.OSI LayerResponsibilities
7ApplicationApplication-level services, end-user protocols
6PresentationData representation, encryption, compression
5SessionSession and connection management
4TransportEnd-to-end communication, reliability, flow control
3NetworkLogical addressing and routing
2Data LinkFraming, MAC addressing, error detection/correction
1PhysicalPhysical medium, bit transmission, connectors

As the OSI model is only conceptual, the TCP/IP is the most used for communication on network

TCP/IP LayerNameResponsibilitiesExamples
ApplicationApplication dataApplication protocols used by programs.
The application layer may live on top of a TLS (encryption) layer
HTTP, FTP, SMTP, DNS
TransportSegmentHost-to-host communication, ports, reliabilityTCP, UDP
InternetDatagram/PacketLogical addressing and routing (IP)IPv4, IPv6, ICMP
LinkFramePhysical addressing and local deliveryEthernet, Wi‑Fi
(part of Link)Bits/Cables, fiber
  • Personal Area Network (PAN)
  • Wireless LAN (WLAN)
  • Local Area Network (LAN)
  • Metropolitan Area Network (MAN)
  • Wide Area Network (WAN)

Access to the medium defines the mechanisms that allow multiple devices to share and coordinate the use of a communication link.

  • FDMA (Frequency Division Multiple Access): Each user is assigned a distinct frequency band for communication.
  • TDMA (Time Division Multiple Access): Users share the same frequency band but transmit in different time slots.
  • CDMA (Code Division Multiple Access): Each user is assigned a unique code, allowing multiple users to transmit simultaneously over the same frequency band.
  • OFDMA (Orthogonal Frequency Division Multiple Access): A variation of FDMA in which the subcarrier frequencies are selected to be orthogonal in the Fourier domain, improving spectral efficiency and reducing interference.
  • ALOHA: When a collision occurs, the transmitter waits for a randomly chosen delay before retransmitting.

  • Slotted ALOHA: An enhanced version of ALOHA where time is divided into slots, with T_slot ≥ T_propagation, reducing the probability of collisions.

  • CSMA (Carrier Sense Multiple Access): Stations listen to the channel and transmit only if it is free. If a collision occurs, the signal is corrupted for all stations, and the transmitter waits for a random delay before retrying.

  • CSMA/CD (Carrier Sense Multiple Access with Collision Detection): Transmission and collision detection occur simultaneously. The retransmission delay follows a Binary Exponential Backoff (BEB) algorithm, where the contention window starts at size 2 and doubles after each collision.

  • CSMA/CA (Carrier Sense Multiple Access with Collision Avoidance): An extension of CSMA/CD in which the station continues to sense the channel during the BEB delay to reduce the likelihood of collisions.