What is OSI reference model?
A model that organizes communication functions into seven layers: physical, data link, network, transport, session, presentation and application. It serves as a common vocabulary for thinking about each layer's role separately.
Japanese name: OSI参照モデル
OSI reference model appears in 2 practice questions across 1 topic, including Computer Networking Basics.
Field: Computer Networking Basics
Roles of the seven layers
The lowest, layer 1 (physical), sends bits as signals over cables or radio. Layer 2 (data link) delivers frames to a neighboring device within the same network using MAC addresses. Layer 3 (network) uses IP addresses to choose routes across networks and relay packets. Layer 4 (transport) handles communication between applications on end hosts; TCP, for example, controls retransmission and ordering. Layers 5–7 (session, presentation and application) manage the start and end of communication, convert data representations and provide application functions.
Mapping to the four TCP/IP layers
The internet actually runs on the TCP/IP protocol suite, whose model has four layers: link, internet, transport and application. Roughly, the link layer corresponds to OSI layers 1–2, the internet layer to layer 3, the transport layer to layer 4 and the application layer to layers 5–7. The OSI protocols themselves never caught on, but the model's layer numbers are still used to say where equipment or functions operate, as in "L2 switch," "L3 switch" or "L7 load balancing."
Why divide into layers
Each layer uses only the services of the layer directly below and provides services to the layer directly above. On the sending side each layer wraps the data with a header (encapsulation), and the receiving side removes them starting from the bottom. As long as the interfaces between layers are respected, the technology of one layer can be replaced without changing the others. Replacing wired LAN with wireless LAN, for example, leaves IP, TCP and web browsers working unchanged.
FAQ
What are the seven layers of the OSI reference model, from the bottom?
Physical, data link, network, transport, session, presentation and application. Routers work mainly at layer 3, L2 switches at layer 2 and hubs at layer 1.
Should I learn the OSI reference model or the TCP/IP model?
It is best to know how they map to each other. The protocols actually in use are TCP/IP, but the position of equipment and functions is often expressed with OSI layer numbers, such as "layer 3" or "L7."