The Open Systems Interconnection (OSI) model is a conceptual framework used to understand how different network protocols and technologies interact. It divides network communication into seven distinct layers.
The 7 Layers
- Physical (Layer 1): Deals with physical hardware—cables, switches, electrical signals, light, and radio frequencies.
- Data Link (Layer 2): Transfers data between adjacent network nodes. MAC addresses and basic switches operate here.
- Network (Layer 3): Handles routing data across multiple networks. IP addresses and routers operate here.
- Transport (Layer 4): Ensures reliable data delivery and handles flow control. TCP and UDP operate here.
- Session (Layer 5): Manages establishing, maintaining, and terminating sessions between applications.
- Presentation (Layer 6): Formats, encrypts, and compresses data so it can be understood by the application.
- Application (Layer 7): The interface used by network applications. HTTP, FTP, and DNS operate here.
Using the OSI Model for Troubleshooting
IT professionals use the OSI model to isolate problems. A common strategy is to work "bottom-up":
- Layer 1 check: Is the cable plugged in? Is there power?
- Layer 2 check: Is the switch port active? Is the MAC address learned?
- Layer 3 check: Can you ping the Default Gateway? (IP routing)
- Layer 4 check: Is a firewall blocking TCP port 443?
- Layer 7 check: Is the web server software actually running?
By logically checking each layer, you can avoid wasting time fixing a web server (Layer 7) when the actual problem is a broken cable (Layer 1).