Encapsulation is the process where data is wrapped layer by layer with headers (and sometimes trailers) so it can be transmitted across the network; decapsulation is the reverse process on receipt.

Encapsulation and decapsulation

Facts / key topics

Why does it exist? (problem definition)

How does it solve the problem?

How it works (step by step)

Step 1 – Initiation (sender): the application generates data (e.g. an HTTP request).

Step 2 – Encapsulation:

  1. L4: TCP/UDP header (src/dst port, seq/ack if TCP)
  2. L3: IP header (src/dst IP, TTL, protocol)
  3. L2: Ethernet header (src/dst MAC) + FCS
  4. L1: converted to bits on the media

Step 3 – Normal transit: a switch only looks at the L2 header; a router removes L2, reads L3 and builds a new L2 header (re-encapsulation).

Step 4 – Decapsulation (receiver): L2 → L3 → L4 → L7; data is delivered to the correct application via the port number.

Key concepts & terminology

Concept Explanation
Payload Data from higher layers
Header Control information added by a layer
Trailer e.g. FCS for error detection
Re-encapsulation New L2 header at every hop
MTU Maximum frame size including headers

Main elements (facts table)

Element Description CCNA CCNP
OSI layers Layering of functions
Headers Metadata per layer
Re-encapsulation New L2 per hop
MTU / overhead Fragmentation / tuning

Dependencies & special considerations

Advanced features (CCNP)

Configuration (Cisco IOS / IOS-XE)

No direct “encapsulation command” – the process is implicit. Related verification:

show interfaces
show ip route
show ip cef
ping / traceroute

Troubleshooting

Typical faults: ❌ wrong MTU → packet drops · ❌ ACL blocks based on L4/L3 headers · ❌ missing route → L3 packet dropped.

show interfaces
show ip route
show ip cef
debug ip packet

Design & best practices

Exam tips ⚠️

Quick summary

Level Expectation
CCNA Understand process and layers
CCNP Troubleshooting, design, edge cases