
Network engineers use layered models to describe what happens when two devices communicate. The models give everyone the same vocabulary and make problems easier to find, because you can ask at which layer something is going wrong.
The seven OSI layers
| Layer | Name | What it is about | Examples |
|---|---|---|---|
| 7 | Application | Services used by software | HTTP, DNS, SMTP |
| 6 | Presentation | Data formats and encryption | Character encoding, encryption |
| 5 | Session | Starting, managing and ending conversations | Dialogue control |
| 4 | Transport | End-to-end delivery | TCP, UDP |
| 3 | Network | Addressing and routing between networks | IP, routers |
| 2 | Data link | Delivery on one local network | Ethernet, MAC addresses, switches |
| 1 | Physical | Signals on cable, fibre or radio | Cables, connectors, Wi-Fi radio |
The OSI reference model is defined in the international standard ISO/IEC 7498-1.
The TCP/IP model
The internet protocols are usually described with four layers: link, internet, transport and application. The OSI application, presentation and session layers roughly correspond to the single TCP/IP application layer, and the OSI physical and data link layers correspond to the link layer. The IETF describes this layering in RFC 1122 (Requirements for Internet Hosts), which is also listed under References at the end of this article.
Using the layers to find faults
- Layer 1: Is the cable plugged in and is the link light on?
- Layer 2: Is the device on the right VLAN and does the switch see its MAC address?
- Layer 3: Does it have the right IP address, mask and gateway, and can it reach the gateway?
- Layer 4: Is the port allowed through the firewall and is the service listening?
- Layer 7: Does the application itself show an error?
Working upwards from layer 1 stops you from changing software settings when the real problem is a loose patch cable.
Where to go next
Layers 1 to 4 are the foundation of the Cisco CCNA topics. Our subnet calculator and the article on subnetting are good next steps.
References
- ISO/IEC 7498-1: OSI Basic Reference Model (ISO)
- RFC 1122: Requirements for Internet Hosts, Communication Layers (IETF)
- CCNA certification (Cisco)
General information, checked against the sources above (vendor documents, standards bodies and official guidance). Not professional advice. ARNSEC is independent; product names belong to their owners.
Last updated: . Articles are checked against trusted sources (vendor documentation, standards bodies and government guidance). General information only, not professional advice.