The OSI (Open Systems Interconnection) Model is a conceptual framework used to understand and standardize how different computer systems communicate over a network. The OSI model divides the communication process into seven distinct layers, each responsible for a specific aspect of communication, from physical transmission to application-level services. By structuring network communication in layers, the OSI model helps ensure interoperability between different systems and technologies, and allows for modular design and troubleshooting.
The seven layers of the OSI model, from the lowest to the highest, are:
Purpose: The physical layer is responsible for the actual transmission of raw bits (0s and 1s) over a physical medium (e.g., cables, fiber optics, radio waves). It defines the hardware elements involved in communication, including the electrical signals, mechanical connectors, and data transmission rates.
Key Functions:
Devices: Hubs, network adapters, cables, repeaters, and modems.
Example: The actual physical connection between a computer and a network switch using an Ethernet cable.
Purpose: The data link layer is responsible for creating a reliable link between two directly connected nodes (devices). It packages raw bits from the physical layer into frames, detects errors in transmission, and manages access to the physical medium.
Key Functions:
Devices: Switches, network interface cards (NICs), bridges.
Protocols: Ethernet, PPP (Point-to-Point Protocol), ARP (Address Resolution Protocol), and Wi-Fi.
Example: Ethernet frames in a local network, where data is packaged into frames and sent to the appropriate network device.
Purpose: The network layer is responsible for routing data across the network, determining the best path from the source to the destination. It handles addressing, packet forwarding, and routing between different networks.
Key Functions:
Devices: Routers, Layer 3 switches.
Protocols: IP (Internet Protocol), ICMP (Internet Control Message Protocol), and routing protocols like OSPF, BGP, RIP.
Example: An IP packet is routed through several routers across different networks to reach its destination.
Purpose: The transport layer ensures reliable data transfer between two devices on different hosts. It manages flow control, error detection, and retransmission of lost or corrupted data.
Key Functions:
Protocols: TCP (Transmission Control Protocol) and UDP (User Datagram Protocol).
Example: TCP ensures that a web page request from a browser is received correctly by a server, and that all data is delivered in the correct order.
Purpose: The session layer manages the establishment, maintenance, and termination of communication sessions between two devices. It ensures that data is properly synchronized during a session and that the communication is orderly.
Key Functions:
Protocols: NetBIOS, RPC (Remote Procedure Call), SMB (Server Message Block).
Example: A video conference session uses the session layer to establish, maintain, and terminate the connection.
Purpose: The presentation layer is responsible for translating, encrypting, and compressing data. It ensures that data is in a format that the application layer can understand, independent of the data’s internal representation.
Key Functions:
Protocols: SSL/TLS (for encryption), JPEG, GIF, and other formats for data encoding/decoding.
Example: When you access a secure website, the presentation layer handles encryption and decryption of the HTTPS communication.
Purpose: The application layer is the topmost layer, where user-level interactions with network services occur. It provides the interface between the user and the network, and allows software applications to communicate over the network.
Key Functions:
Protocols: HTTP/HTTPS, FTP, SMTP, IMAP, POP3, DNS, DHCP, SNMP.
Example: When you use a web browser to access a website, HTTP or HTTPS protocols operate at this layer to enable communication between the browser and the web server.
| Layer | Name | Key Functions | Protocols/Technologies | Devices |
|---|---|---|---|---|
| 1. Physical | Physical Layer | Transmits raw bits over physical medium | Ethernet, Fiber, Bluetooth, Wi-Fi, DSL | Hubs, Repeaters, Cables |
| 2. Data Link | Data Link Layer | Frames data, error detection, and manages access to media | Ethernet, PPP, ARP, MAC | Switches, Network Interface Cards |
| 3. Network | Network Layer | Routes packets, IP addressing, and manages path selection | IP, ICMP, RIP, OSPF, BGP | Routers |
| 4. Transport | Transport Layer | Ensures reliable data transfer, error correction, flow control | TCP, UDP | Gateways, Firewalls |
| 5. Session | Session Layer | Manages sessions, synchronization, and dialog control | NetBIOS, RPC, SMB | Firewalls, Load Balancers |
| 6. Presentation | Presentation Layer | Data translation, compression, encryption | SSL/TLS, JPEG, GIF, ASCII, EBCDIC | Gateways, Proxy Servers |
| 7. Application | Application Layer | Provides network services to applications, user interface | HTTP, FTP, DNS, SMTP, IMAP, SNMP, DHCP | End-user Devices (PCs, Servers) |
Standardization: The OSI model provides a standard way to describe network protocols and their interactions. It helps ensure that different network devices and software from different manufacturers can work together.
Troubleshooting: The layered approach helps network professionals diagnose issues by isolating them to specific layers of the model. This makes it easier to pinpoint problems related to hardware, software, or configuration.
Network Design: The OSI model helps engineers design networks by ensuring that each layer performs a distinct set of tasks, and that each protocol or service works within its appropriate layer.
Interoperability: By abstracting network functions into layers, the OSI model facilitates interoperability between different systems, devices, and technologies.
The OSI model remains a critical conceptual framework, though modern networks tend to follow the TCP/IP model, which is more streamlined and closely aligned with the protocols used in the internet. Despite this, the OSI model remains useful for understanding and categorizing networking concepts.
Open this section to load past papers