Computer ScienceChapter 1: Computer Systems
1.9.10 OSI Model
OSI Model:
Explanation level
This topic explains the Open Systems Interconnection (OSI) model, a conceptual framework that describes how different networking protocols work together to ensure proper data transmission.
Definition
OSI Model: The OSI (Open Systems Interconnection) model, developed by the International Standards Organization (ISO) in the 1970s, outlines a conceptual framework for how different networking protocols work together to ensure proper data transmission. The OSI model consists of seven layers. Each layer performs a specific task during data communication.
Core Concept
The OSI model is like a seven-step process for sending a letter internationally. Each step has a specific job: writing the letter (Application), translating it (Presentation), starting the conversation (Session), ensuring it arrives reliably (Transport), addressing the envelope (Network), packaging it for delivery (Data Link), and physically transporting it (Physical). Each layer only cares about its own job and passes the result to the next layer. This layered approach makes network communication organized, modular, and easier to understand.
Detailed Explanation
The Seven Layers of the OSI Model
The OSI model divides network communication into seven distinct layers, each with a specific function.
Layer 7: Application Layer
Function: Provides services to end-users, facilitating tasks like file transfers and message reading.
- Closest layer to the user.
- Provides network services to applications (web browsers, email clients).
- Examples: HTTP, FTP, SMTP, DNS.
Analogy: The Application Layer is like the person who writes the letter—it's the interface between the user and the network.
Layer 6: Presentation Layer
Function: Converts data into a format that can be understood by other layers, ensuring compatibility across systems.
- Handles data translation, encryption, and compression.
- Ensures data from one system can be read by another.
- Examples: SSL/TLS (encryption), JPEG, MPEG.
Analogy: The Presentation Layer is like a translator who ensures the letter is in a language the receiver understands.
Layer 5: Session Layer
Function: Manages the communication sessions between applications, handling security and connection establishment.
- Establishes, maintains, and terminates sessions.
- Manages dialogue control (who speaks when).
- Examples: RPC, NetBIOS.
Analogy: The Session Layer is like a moderator who starts and ends a conversation, making sure both parties take turns.
Layer 4: Transport Layer
Function: Ensures reliable data transfer, maintaining the order and integrity of data packets.
- Provides end-to-end communication.
- Handles segmentation, flow control, and error recovery.
- Examples: TCP (reliable), UDP (unreliable but fast).
Analogy: The Transport Layer is like a courier who ensures the letter arrives complete and in the correct order, resending if lost.
Layer 3: Network Layer
Function: Determines the optimal path for data transmission, using devices like routers.
- Handles logical addressing (IP addresses).
- Routes packets across networks.
- Examples: IP, ICMP, OSPF.
Analogy: The Network Layer is like a GPS that finds the best route from sender to receiver.
Layer 2: Data Link Layer
Function: Defines the format for data transmission, converting data into packets and verifying their accuracy.
- Handles physical addressing (MAC addresses).
- Provides error detection and correction.
- Examples: Ethernet, Wi-Fi (802.11), PPP.
Analogy: The Data Link Layer is like the envelope and packaging that ensures the letter is correctly addressed and protected.
Layer 1: Physical Layer
Function: Deals with the physical transmission of data, including hardware like cables and connectors.
- Transmits raw bits over a physical medium.
- Defines voltages, pin layouts, cables, and connectors.
- Examples: Ethernet cables, fiber optics, radio signals.
Analogy: The Physical Layer is like the postal truck and roads that physically carry the letter.
Summary of OSI Layers
| Layer | Name | Function | Examples |
|---|---|---|---|
| 7 | Application | Services to end-users | HTTP, FTP, SMTP |
| 6 | Presentation | Data format, encryption, compression | SSL/TLS, JPEG |
| 5 | Session | Manages sessions | RPC, NetBIOS |
| 4 | Transport | Reliable data transfer | TCP, UDP |
| 3 | Network | Routing, logical addressing | IP, ICMP |
| 2 | Data Link | Framing, MAC addressing | Ethernet, Wi-Fi |
| 1 | Physical | Physical transmission | Cables, connectors |
Intermediate Level
The OSI model has seven layers, each with a specific function. The Application Layer provides services to users (HTTP, FTP). The Presentation Layer handles data format, encryption, and compression. The Session Layer manages sessions. The Transport Layer ensures reliable data transfer (TCP, UDP). The Network Layer handles routing and logical addressing (IP). The Data Link Layer handles framing and MAC addressing (Ethernet). The Physical Layer transmits raw bits over cables or wireless. Data moves down the layers at the sender and up the layers at the receiver.
Important Points
- - OSI = Open Systems Interconnection.
- - Developed by ISO in the 1970s.
- - Seven layers: Physical, Data Link, Network, Transport, Session, Presentation, Application.
- - Each layer performs a specific task.
- - Data moves down at sender, up at receiver.
- - Encapsulation adds headers at each layer.
- - OSI is a conceptual model, not a protocol.
- - TCP/IP is the practical implementation.
Remember
- - OSI Layers (Top to Bottom): Application, Presentation, Session, Transport, Network, Data Link, Physical.
- - Mnemonic: All People Seem To Need Data Processing.
- - Application: User services.
- - Presentation: Format, encryption.
- - Session: Sessions.
- - Transport: Reliable transfer (TCP/UDP).
- - Network: Routing (IP).
- - Data Link: Framing, MAC.
- - Physical: Bits, cables.
Common Mistakes
- - Confusing OSI and TCP/IP: OSI is a 7-layer model; TCP/IP is a 4-layer model.
- - Mixing up layer order: Remember: Application, Presentation, Session, Transport, Network, Data Link, Physical.
- - Thinking OSI is a protocol: OSI is a conceptual framework, not a protocol.
- - Forgetting encapsulation: Each layer adds a header as data moves down.
- - Assuming all layers are equally important: Each layer has a specific role; some are more relevant to certain technologies.
Quick Revision
The OSI model is a seven-layer conceptual framework developed by ISO in the 1970s. It describes how data moves through a network: Application (user services), Presentation (format/encryption), Session (sessions), Transport (reliable transfer), Network (routing), Data Link (framing/MAC), and Physical (bits/cables). Each layer performs a specific task, and data is encapsulated as it moves down the layers and de-encapsulated as it moves up. TCP/IP is the practical implementation of this model.
60-Second Revision
- Application: User services (HTTP, FTP).
- Presentation: Format, encryption (SSL/TLS).
- Session: Sessions (RPC).
- Transport: Reliable transfer (TCP, UDP).
- Network: Routing (IP).
- Data Link: Framing, MAC (Ethernet).
- Physical: Bits, cables.
Did you understand this topic?
Your answer is saved with your learning record. It does not mark the topic as mastered.
Quick revision
Revision Zone
Review the key facts, formulas and checks before you move on.1.9.10 OSI Model
Sticky Notes · Quick Revision
Key Point 1
- OSI: 7 layers, ISO, 1970s.
Key Point 2
- Layers: Application, Presentation, Session, Transport, Network, Data Link, Physical.
Key Point 3
- Application: HTTP, FTP.
Key Point 4
- Presentation: SSL/TLS, JPEG.
Key Point 5
- Session: RPC, NetBIOS.
Key Point 6
- Transport: TCP, UDP.
Key Point 7
- Network: IP, ICMP.
Key Point 8
- Data Link: Ethernet, Wi-Fi.
Key Point 9
- Physical: Cables, signals.
Same supplied content as this Notes page (shared canonical source).