BuildTheNet

Opening your workspace

Your learning content and tools are loading.

Learning paths › CCNA › 1. Network Fundamentals

TCP/IP & OSI Models

Master the 5-layer TCP/IP model, 7-layer OSI model, encapsulation/decapsulation, PDUs, and adjacent-layer vs same-layer interactions.

About 10 minutes

Why it matters

The layer models give troubleshooters a shared vocabulary. Saying a fault is at Layer 2 or Layer 3 immediately narrows what you test next.

Layered Network Architectures & Data Wrapping

Protocols define specific communication rules; standards are industrially agreed-upon protocol sets that enable vendor-neutral interoperability.

TCP/IP has 5 layers: Application (5), Transport (4), Internet (3), Data Link (2), and Physical (1).

Encapsulation wraps data with headers from Layer 5 down to Layer 1; decapsulation strips headers from Layer 1 up to Layer 5.

Layer 2 is the ONLY layer that adds both a header AND a trailer (the FCS/CRC error check).

The TCP/IP 5-Layer Stack Explained

• Application Layer (5): Uses protocols to allow applications to communicate. Formats data (e.g. HTTP headers for web pages). Not for delivery, but formatting. • Transport Layer (4): Manages end-to-end communication between software applications using Port Numbers (e.g. TCP, UDP). • Internet Layer (3): Manages host-to-host delivery across multiple networks using IP Addresses (IPv4, IPv6, ICMP). Routers operate here. • Data Link Layer (2): Provides hop-to-hop delivery across a single physical link. Uses MAC Addresses to identify interfaces. Switches operate here. • Physical Layer (1): Transmits raw bits as electrical, optical, or radio signals across the physical medium.

Encapsulation and Decapsulation

As data travels down the stack: 1. Application data is created. 2. Transport layer adds an L4 header (creating a Segment or Datagram). 3. Internet layer adds an L3 header with Source & Destination IP (creating a Packet). 4. Data Link layer adds an L2 header with Source & Destination MAC, and appends an L2 Trailer (FCS/CRC) to check for transmission errors (creating a Frame). 5. Physical layer converts the frame into bits and transmits them over the wire.

The receiving host reverses this exact process (Decapsulation), inspecting and stripping each header layer by layer until the pure application payload reaches the receiving software.

TCP/IP 5-Layer Model vs. OSI 7-Layer Model

OSI Layer #: 7 · OSI Layer Name: Application · TCP/IP Layer Name: Application (Layer 5) · Primary PDU Name: Data · Example Protocols: HTTP, HTTPS, DNS, DHCP, Telnet, SSH, SNMP

OSI Layer #: 6 · OSI Layer Name: Presentation · TCP/IP Layer Name: Application (Layer 5) · Primary PDU Name: Data · Example Protocols: ASCII, JPEG, TLS/SSL encryption

OSI Layer #: 5 · OSI Layer Name: Session · TCP/IP Layer Name: Application (Layer 5) · Primary PDU Name: Data · Example Protocols: RPC, SQL session setup and teardown

OSI Layer #: 4 · OSI Layer Name: Transport · TCP/IP Layer Name: Transport (Layer 4) · Primary PDU Name: Segment (TCP) / Datagram (UDP) · Example Protocols: TCP, UDP

OSI Layer #: 3 · OSI Layer Name: Network · TCP/IP Layer Name: Internet (Layer 3) · Primary PDU Name: Packet · Example Protocols: IPv4, IPv6, ICMP, ARP

OSI Layer #: 2 · OSI Layer Name: Data Link · TCP/IP Layer Name: Data Link / Local Network (Layer 2) · Primary PDU Name: Frame · Example Protocols: Ethernet (802.3), Wi-Fi (802.11), PPP, HDLC

OSI Layer #: 1 · OSI Layer Name: Physical · TCP/IP Layer Name: Physical (Layer 1) · Primary PDU Name: Bits · Example Protocols: Copper UTP, Fiber optics, RF radio waves

Standard Organizations

Organization: IETF (Internet Engineering Task Force) · Primary Responsibility: Internet protocols and standards, e.g. TCP/IP, HTTP, DNS (RFCs)

Organization: IEEE (Institute of Electrical and Electronics Engineers) · Primary Responsibility: Standards for networking hardware and electrical/electronic technologies, e.g. Ethernet (802.3), Wi-Fi (802.11)

The words you need

Protocol — A set of rules that defines how data should be transferred in a network between devices.

Standard — The industry-agreed open specification for protocols (vendor-neutral, allowing all devices to communicate).

Encapsulation — The process where each descending layer wraps the payload from the layer above with its own header (and trailer at Layer 2).

Decapsulation — The reverse process where a receiving device unpacks the message, stripping headers as data moves up the stack.

PDU — Protocol Data Unit. The generic term for data plus header at any layer: L4 PDU = Segment/Datagram, L3 PDU = Packet, L2 PDU = Frame, L1 = Bits.

Trailer — Information placed at the end of a Layer 2 frame (FCS - Frame Check Sequence) to verify data integrity.

Takeaways

Next: Switch Interfaces

More free lessons in 1. Network Fundamentals