Understanding the OSI and TCP/IP Models: Layers, Protocols, and Key Concepts
This article explains the OSI reference model and the TCP/IP model, detailing each layer’s functions, associated protocols, key devices, and the data units they use, while also highlighting standardization bodies and essential networking concepts such as PDU types and data encapsulation processes.
OSI Reference Model
Application layer – provides an interface to applications.
Presentation layer – converts data formats to ensure interoperability.
Session layer – establishes, manages, and terminates sessions.
Transport layer – establishes, maintains, and terminates end‑to‑end data transfer, controlling flow and ordering.
Network layer – defines logical addressing and forwards packets.
Data link layer – encapsulates packets into frames for point‑to‑point or point‑to‑multipoint communication and performs error detection.
Physical layer – transmits bit streams over the medium.
TCP/IP Reference Model
Because the OSI stack is complex and TCP/IP is widely used, the TCP/IP model has become the mainstream reference for the Internet.
Key Devices
Switch – a Layer‑2 device that learns and forwards MAC addresses.
Router – a Layer‑3 device that forwards packets based on IP addresses.
Host – a Layer‑5 device that runs applications.
Firewall – can operate on multiple layers; examples include:
Network‑layer (Layer‑3) firewall – filters IP packets.
Application‑layer (Layer‑7) firewall – inspects application‑level protocols.
TCP/IP Protocol Suite
The TCP/IP protocol stack defines a series of standard protocols.
Application‑Layer Protocols
HTTP – transfers web pages and files.
FTP – file transfer.
SMTP – email transmission.
DNS – resolves domain names to IP addresses.
SNMP – network management.
SSH – encrypted terminal connections.
Telnet – remote terminal access.
DHCP – automatic IP address allocation.
TFTP – simple UDP‑based file transfer.
Transport‑Layer Protocols
TCP – reliable, connection‑oriented service with flow control and retransmission.
UDP – connectionless service without reliability guarantees, suitable for low‑latency applications.
Network‑Layer Protocols
IP – provides addressing and routing of packets.
ICMP – error reporting and diagnostics.
IGMP – multicast group management.
Data‑Link‑Layer Protocols
PPPoE – encapsulates PPP over Ethernet for broadband access.
Ethernet – defines frame format and access control for LANs.
PPP – point‑to‑point protocol for link control.
Physical‑Layer
Converts digital bits into optical, electrical, or electromagnetic signals for transmission.
Standardization Organizations
Internet Engineering Task Force (IETF) – develops Internet standards such as TCP/IP and HTTP.
Institute of Electrical and Electronics Engineers (IEEE) – creates standards like Ethernet.
International Organization for Standardization (ISO) – publishes worldwide standards across many fields.
Layer Details
Application Layer
Provides interfaces for application software; its PDU is called data.
Transport Layer
Encapsulates data from the application layer into segments; its PDU is a segment.
Network Layer
Handles host‑to‑host packet delivery; its PDU is a packet.
Data‑Link Layer
Provides frames to the network layer; its PDU is a frame. Ethernet is the most common protocol.
Physical Layer
Transmits bit streams over the medium; its PDU is a bitstream.
Protocol Data Units (PDUs)
Each OSI layer uses a specific PDU: Bit (Layer 1), Frame (Layer 2), Packet/Datagram (Layer 3), Segment/UDP Datagram (Layer 4), Session data (Layer 5), Representation data (Layer 6), Application data (Layer 7).
Data Encapsulation and Decapsulation
During transmission, the sender wraps data in successive PDUs from the application layer down to the physical layer, the network forwards the frames/packets, and the receiver unwraps them layer by layer to retrieve the original data.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
MaGe Linux Operations
Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
