The OSI reference model (OSI基本参照モデル) is an international framework defined by ISO that sorts the functions needed for computer-to-computer communication into seven layers.
Layer
Name
Main role
Layer 7
Application layer
Provides communication services to applications
Layer 6
Presentation layer
Aligns formats such as character codes
Layer 5
Session layer
Manages an exchange from start to finish
Layer 4
Transport layer
Manages end-to-end transfer
Layer 3
Network layer
Chooses routes across networks
Layer 2
Data link layer
Passes data between directly linked devices
Layer 1
Physical layer
Turns 0s and 1s into signals
The rules for the steps and formats of communication are called communication protocols (通信プロトコル), and each layer runs on protocols suited to its role. Each layer uses the functions of the layer directly below and serves the layer directly above, so swapping the method used in one layer has little effect on the others. Layers are counted from the bottom as Layer 1, Layer 2 and so on; lower numbers sit closer to signal transmission, and higher numbers sit closer to the user's applications.
AnalogyIt is like splitting parcel delivery among a packer, a label writer, and a driver. As long as each handoff follows the agreed rules, the packing stays the same even if the trucks are replaced by trains.
How to rememberOSI stands for Open Systems Interconnection. To recall the seven layers from the top down, use the phrase "All People Seem To Need Data Processing".
Exam points
ExamA communication protocol (通信プロトコル) is a set of rules for the steps and formats of communication, so devices from different makers or with different operating systems (OS) can still talk if they follow the same protocol.
ExamAn upper-layer protocol works by using the transfer functions provided by lower-layer protocols. So even a single exchange has protocols from several layers working at the same time, stacked on one another.
Mix-upThe OSI reference model (OSI基本参照モデル) is a seven-layer framework for reference, while the TCP/IP layer model actually used on the Internet has fewer layers.
The physical layer (物理層) is Layer 1 of the OSI reference model; it turns bits, the 0s and 1s, into electrical signals, light, or radio waves and sends them over the transmission medium.
It covers the physical connection standards, such as the shape of cables and connectors and the voltage and timing of signals. It does not care what the bit stream means. A repeater, which boosts a weakened signal so it can travel farther, is an example of a device working at this layer.
AnalogyIt is like paving a road so cars can drive on it. Which car carries what cargo is none of its concern.
How to rememberAs the name suggests, this bottom layer is about things you can touch, like cables and connectors.
Exam points
Mix-upThe physical layer (物理層) only sends bits as signals; working out which device the data is for is handled by Layer 2 and above.
The data link layer (データリンク層) is Layer 2; it reliably passes data between devices that are directly connected, such as by a cable.
A device connected to a network is called a node (ノード), and this layer groups bits into units called frames (フレーム) and sends them between neighboring nodes. It identifies the destination by the MAC address (MACアドレス) assigned to each device, and it also detects errors that occur during transmission. A switch (switching hub, スイッチングハブ), which reads the destination MAC address of a frame to pick the port to send it out of, is a device at this layer.
AnalogyIt is like a clerk in one building who checks the room number and hands papers to the room next door.
How to rememberA link is one ring in a chain. Picture it covering just one ring: the stretch between two neighbors.
Exam points
Mix-upThe data link layer (データリンク層) delivers only as far as the neighboring node within the same network; choosing the route that carries data across networks is the job of Layer 3.
The network layer (ネットワーク層) is Layer 3; it sends data across multiple networks by choosing a route that reaches a distant destination.
Choosing the path to the destination is called routing (ルーティング), and data travels in units called packets (パケット). The destination is identified by an IP address (IPアドレス). A router, which links networks together, is the device that decides where to forward each packet at this layer.
AnalogyIt is like a sorting center that reads the address and decides which relay stations a parcel must pass through.
How to rememberThis is the layer that connects networks to one another. The "route" in routing means the path to follow.
Exam points
Mix-upThe network layer (ネットワーク層) decides the route to the other end; managing the transfer itself between the two end devices is the work of Layer 4.
The transport layer (トランスポート層) is Layer 4; it manages data transfer between the sending and receiving devices and, when needed, makes up for lost or out-of-order data to ensure reliability.
Its best-known protocol, TCP, keeps end-to-end transfer in order by resending data lost on the way and putting received data back in sequence. A port number (ポート番号) tells which application inside a device the communication belongs to.
AnalogyIt is like an inspector at the receiving end who checks that every box of a split shipment has arrived and asks for any missing box to be sent again.
How to rememberTransport means carrying goods. Link it to a shipping company that carries freight all the way from sender to recipient.
Exam points
Mix-upA port number (ポート番号) is the doorway number that decides which process inside one device receives the incoming data, a different role from the IP address (IPアドレス), which works as a device's address on the network.
The session layer (セション層) is Layer 5; it manages the whole exchange from the start of communication to its end, called a session (セション).
It sets up a session with the other party, places sync points along the way as checkpoints, and finally carries out the closing steps. Coordinating how the exchange proceeds, such as whose turn it is to send, is also this layer's job.
AnalogyIt is like a phone call: you say hello, confirm each point is settled, and say goodbye before hanging up.
How to rememberA session is one sitting of a meeting. Link it to the chair who runs the meeting from opening to close.
Exam points
Mix-upThe transport layer (トランスポート層) manages data transfer between end devices, while the session layer (セション層) sits above it and manages the flow of an exchange from its start, through its checkpoints, to its end.
Transport layer vs. Session layer
Aspect
Transport layer
Session layer
Layer
Layer 4
Layer 5
Key differenceWhat it handles
Manages data transfer between end devices
Manages the flow of an exchange from start to finish
Example of its work
TCP resending lost data and restoring order
Setting up a session, placing sync points, closing it
The presentation layer (プレゼンテーション層) is Layer 6; it aligns the representation format of data, such as character codes and image formats, so both sender and receiver can understand it.
It converts data into a common format so it reads correctly even when sender and receiver represent it differently. Data compression and encryption are also given as examples of its role.
AnalogyIt is like an interpreter who keeps the content of a talk unchanged but puts it into a language the listener understands.
How to rememberPresentation means how something is shown. Link it to a layer that tidies the form, not the content.
Exam points
Mix-upThe presentation layer (プレゼンテーション層) deals with how data is represented; Layer 7 is what provides the services themselves, such as email and web browsing.
The application layer (アプリケーション層) is the topmost Layer 7; it provides communication services such as email and file transfer to the applications people use.
Each purpose has its own protocol; for instance, viewing web pages uses HTTP, and sending email uses SMTP. It is the layer closest to the user, and data created here is passed down through the lower layers in turn before reaching the other side.
AnalogyIt is like the front counter of a shop that deals with customers directly. Orders still get delivered even if the counter staff know nothing about the shipping system behind them.
How to rememberAn application is the app you use every day. Remember this as the top layer, the one nearest the app.
Exam points
ExamApplication layer (アプリケーション層) protocols used on the Internet for each purpose, such as sending email or transferring files, communicate by using the functions of TCP/IP, the shared foundation beneath them.
Character code conversion, compression, encryption
Web browsing with HTTP, sending email with SMTP
Key points
The OSI reference model (OSI基本参照モデル) is the ISO framework that splits communication functions into seven layers, counted from the bottom as Layer 1.
The lower the layer number, the closer it is to signal transmission; the higher the number, the closer it is to the user's applications.
Each layer uses the functions of the layer below and serves the layer above, so changing one layer's method has little effect on the others.
Relay devices along the way, such as routers, mainly look at information up to Layer 3 to forward data, and processing from Layer 4 up is mainly done by the two end devices that are communicating.