Skip to content

The OSI Reference Model and Its 7 Layers

標準~42 min8 terms3 past questions

Goals of this unit

  • Explain why the OSI reference model (OSI基本参照モデル) divides communication functions into layers, and how the layers are numbered.
  • State the role of each layer from Layer 1 to Layer 7, matched to its layer number.
  • Tell apart the easily confused roles of neighboring layers by the scope they cover and what they handle.
Terms at a glance (8)
TermIn one lineLayerRelated terms
OSI基本参照モデルISO framework that sorts communication functions into seven layersSeven layers in totalCommunication protocols
物理層Turns bits into electrical or optical signals and sends them over the mediumLayer 1Cables, connectors, repeaters
データリンク層Passes data between directly connected devicesLayer 2Frames, MAC addresses, switches
ネットワーク層Chooses the route across networks to a distant destinationLayer 3Packets, IP addresses, routers
トランスポート層Manages end-to-end transfer and adds reliability when neededLayer 4TCP, port numbers
セション層Manages the flow of an exchange from start to finishLayer 5Session setup, sync points, closing
プレゼンテーション層Aligns data formats so both sides can read themLayer 6Character codes, compression, encryption
アプリケーション層Provides communication services to the applications people useLayer 7HTTP, SMTP, FTP

Terms

OSI基本参照モデルOSI reference model

Open in glossary OSI基本参照モデル

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.

LayerNameMain role
Layer 7Application layerProvides communication services to applications
Layer 6Presentation layerAligns formats such as character codes
Layer 5Session layerManages an exchange from start to finish
Layer 4Transport layerManages end-to-end transfer
Layer 3Network layerChooses routes across networks
Layer 2Data link layerPasses data between directly linked devices
Layer 1Physical layerTurns 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.

2 past questions on this term OSI基本参照モデル

物理層Physical layer

Open in glossary 物理層

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.

データリンク層Data link layer

Open in glossary データリンク層

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.

ネットワーク層Network layer

Open in glossary ネットワーク層

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.

Data link layer vs. Network layer

AspectData link layerNetwork layer
LayerLayer 2Layer 3
Key differenceDelivery rangeNeighboring nodes in the same networkDistant destinations across networks
How the destination is identifiedMAC addressIP address
Typical deviceSwitchRouter

トランスポート層Transport layer

Open in glossary トランスポート層

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.

セション層Session layer

Open in glossary セション層

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

AspectTransport layerSession layer
LayerLayer 4Layer 5
Key differenceWhat it handlesManages data transfer between end devicesManages the flow of an exchange from start to finish
Example of its workTCP resending lost data and restoring orderSetting up a session, placing sync points, closing it

プレゼンテーション層Presentation layer

Open in glossary プレゼンテーション層

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.

アプリケーション層Application layer

Open in glossary アプリケーション層

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.

1 past questions on this term アプリケーション層

Presentation layer vs. Application layer

AspectPresentation layerApplication layer
LayerLayer 6Layer 7
Key differenceWhat it handlesHow data is represented (format)Communication services for users
Example of its workCharacter code conversion, compression, encryptionWeb 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.

Check questions

3 past questions from this unit

Start the check questions

All past questions in this topic