Encapsulation and Decapsulation OSI Model
Encapsulation and Decapsulation OSI Model
1. Physical Layer
Encapsulation: Data is converted into electrical, optical, or radio signals suitable for
transmission over physical media.
Decapsulation: Received signals are converted back into bits for processing by the Data Link
Layer.
3. Network Layer
Encapsulation: Packets are formed by adding IP (Internet Protocol) headers, including
source and destination IP addresses.
Decapsulation: The packet's IP headers are removed, and the data is forwarded to the
Transport Layer.
4. Transport Layer
Encapsulation: Segments are created by adding transport layer headers (e.g., TCP or UDP)
that include port numbers for the source and destination.
Decapsulation: The transport headers are removed, and the data is sent to the Session
Layer.
5. Session Layer
Encapsulation: Adds session-specific information to establish, manage, or terminate a
session.
Decapsulation: Session-related information is removed, and the data is passed to the
Presentation Layer.
6. Presentation Layer
Encapsulation: Data is formatted, encrypted, or compressed to ensure proper
representation and transmission.
Decapsulation: Data is decrypted, decompressed, or reformatted to its original state.
7. Application Layer
Encapsulation: Application-specific data is prepared for transmission, including adding any
application-level protocol headers (e.g., HTTP, FTP).
Decapsulation: Application-level headers are removed, and the original user data is
delivered to the receiving application.
Conclusion
Encapsulation ensures that data is properly packaged for transmission, while decapsulation
ensures that the data is correctly extracted and interpreted by the receiving device. These
processes facilitate seamless communication across networks, adhering to the OSI model's
layered structure.