1.1 and 1.2 – OSI Reference Model Notes

1.1 Introduction to the OSI Reference Model

Purpose of the OSI Model

Why It’s Important

The 7 Layers of the OSI Model

Layer NumberLayer NameMain FunctionExamples
7ApplicationInterfaces with user applications and servicesHTTP, FTP, SMTP
6PresentationTranslates, encrypts, and compresses dataSSL/TLS, JPEG, MP3
5SessionEstablishes and maintains communication sessionsNetBIOS, RPC
4TransportProvides reliable or unreliable deliveryTCP, UDP
3NetworkRoutes packets between devicesIP, ICMP
2Data LinkHandles error detection and physical addressingEthernet, MAC addresses
1PhysicalTransmits raw bits over a physical mediumCables, Hubs, NICs

1.2 Key OSI Model Concepts

Encapsulation and Decapsulation

Encapsulation means wrapping data with protocol information at each layer before transmission.
Decapsulation means the reverse process at the receiving end, removing headers as data moves up the layers.

Example: An email message (Application Layer) becomes bits on a wire (Physical Layer) after passing through all layers.

Data Units by Layer

LayerData Unit Name
Application, Presentation, SessionData
TransportSegments (TCP) / Datagrams (UDP)
NetworkPackets
Data LinkFrames
PhysicalBits

Peer-to-Peer Communication

Each layer communicates with its peer layer on the receiving device using protocols.
Example: TCP on one computer communicates directly with TCP on another.

OSI vs. TCP/IP

OSI ModelTCP/IP Model
7 layers4 layers
Conceptual and detailedPractical and widely implemented
Transport layer uses TCP/UDPSame protocols
Examples: IP, ICMP, HTTPSame, but grouped differently

Benefits of the OSI Model