OSI model, TCP/IP stack, and IEEE 802 standards
To ensure equipment from different manufacturers understands each other, network interaction was divided into independent layers. Send a request through the entire OSI model and see why virtual connections, LLC/MAC sublayers, and TCP handshakes are needed.
Seven layers of the ISO/OSI reference model (1984)
Model OSI (Open System Interconnection) describes system interaction tools. Between identical layers of two nodes, there is a logical (virtual) connection, and real signal transmission occurs only at the 1st physical layer.
| № | Layer | PDU | Key functions and examples |
|---|---|---|---|
| 7 | Application | Message | Network services for programs: HTTP, DNS, FTP, SMTP, DHCP, SMB |
| 6 | Presentation | Data | Syntax and encoding (UTF-8, JSON, JPEG), compression, encryption (in the TCP/IP stack, the TLS protocol works over TCP/QUIC at the L4–L7 boundary) |
| 5 | Session | Data | Dialogue management: simplex / half-duplex / full-duplex, recovery checkpoints |
| 4 | Transport | Segment / Datagram | Delivery between processes (ports), segmentation, numbering, flow control, and reliability (TCP, UDP) |
| 3 | Network | Packet | Unified transport system between different networks: IP addressing, routes (routed: IP; routing: RIP, OSPF) |
| 2 | Data Link | Frame | Delivery over a local link, MAC addresses, media access, CRC error checking (Ethernet, Wi-Fi). Sublayers: LLC Wi-Fi 6 MAC |
| 1 | Physical | Bit / Signal | Bit transmission in the medium (copper, light, radio), encoding, connectors, voltage levels |
Encapsulation, decapsulation and the 4 layers of TCP/IP
When sending, data moves from top to bottom and at each step is "wrapped" in a layer header (encapsulation). At the receiver, the shells are removed from bottom to top (decapsulation). An intermediate device operates at the lower layers and performs the conversion twice: it raises the frame to the required level (L2 or L3) and re-encapsulates it for the output channel.
In the real TCP/IP stack there are 4 layers (the top 5–7 of OSI are combined into Application, and 1–2 into Network Access) and three types of addresses: physical (MAC), network (IP), and symbolic (domain names).
TCP vs UDP transport and IEEE Project 802 standards (1980)
IEEE 802 describes physical and data link layer technologies for local and metropolitan area networks, dividing the data link layer into MAC (media access control, at the bottom) and LLC (logical link control, at the top, connection to L3).
| Standard | Purpose | Standard | Purpose |
|---|---|---|---|
802.1 | Management, bridges, VLAN, STP | 802.7 | Broadband transmission |
802.2 | LLC sublayer | 802.8 | Fiber Optic Advisory Group |
802.3 | Ethernet (CSMA/CD, bus/star) | 802.9 | Integrated voice and data |
802.4 | Token Bus | 802.10 | Security and encryption in LAN |
802.5 | Token Ring | 802.11 | Wireless Wi-Fi (WLAN) |
802.6 | Metropolitan Area Networks (historical DQDB) | 802.12 | 100VG-AnyLAN (Demand Priority) |