Textbook language

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.

№LayerPDUKey functions and examples
7ApplicationMessageNetwork services for programs: HTTP, DNS, FTP, SMTP, DHCP, SMB
6PresentationDataSyntax 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)
5SessionDataDialogue management: simplex / half-duplex / full-duplex, recovery checkpoints
4TransportSegment / DatagramDelivery between processes (ports), segmentation, numbering, flow control, and reliability (TCP, UDP)
3NetworkPacketUnified transport system between different networks: IP addressing, routes (routed: IP; routing: RIP, OSPF)
2Data LinkFrameDelivery over a local link, MAC addresses, media access, CRC error checking (Ethernet, Wi-Fi). Sublayers: LLC Wi-Fi 6 MAC
1PhysicalBit / SignalBit 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)

Transport classes and selection: OSI describes 5 classes of transport service; in the TCP/IP stack, the most common are TCP (ordered byte stream, acknowledgments, retransmissions, flow and congestion control) and UDP (individual datagrams, without built-in handshaking and retransmissions). Applications over UDP can add their own reliability mechanisms, as QUIC does.

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).

StandardPurposeStandardPurpose
802.1Management, bridges, VLAN, STP802.7Broadband transmission
802.2LLC sublayer802.8Fiber Optic Advisory Group
802.3Ethernet (CSMA/CD, bus/star)802.9Integrated voice and data
802.4Token Bus802.10Security and encryption in LAN
802.5Token Ring802.11Wireless Wi-Fi (WLAN)
802.6Metropolitan Area Networks (historical DQDB)802.12100VG-AnyLAN (Demand Priority)