Encapsulation and decapsulation through the layers
Each layer on the sender adds its own header (and sometimes a trailer) as data moves down the layers. The receiver removes them in reverse order, which is called decapsulation.
Understanding Encapsulation and decapsulation through the layers in WA Computer Science ATAR Unit 1
What it does: Encapsulation at the transport layer wraps the application data with a header, which forms a segment. Only the frame has both a header and a trailer. The trailer marks the end of the frame and holds error-checking data. Decapsulation is the reverse process at the receiver. Each layer removes its own header and passes the rest up. The frame is the outermost wrapper added by the sender, so the receiver must strip it first before reaching the packet and segment.
Common mistakes: The Transport layer builds the segment, so it adds the TCP header, not the IP header. It should be segment = TCP_header + data. The IP header is added at the next layer down. Each layer wraps the unit from the layer above. The frame must wrap the packet, so it should be frame = MAC_header + packet. Skipping the packet would lose the IP header.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 315–470) and word search (Modules 100–470).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
encapsulationFill in the Blanks
Spot the Error
Student with a class code? Join your class →