TCP/IP and OSI models
On this page
One request must reach the right program, on the right machine, through the right device on this link. If you treat those as one question, every failure looks like “the network is down.” Separate the questions and you can say which part of an exchange you are describing.
By the end, you can assign an observation to one of four questions and understand what someone means by “layer 2” or “layer 3.”
Before you start
Section titled “Before you start”Read Protocols and shared rules. Use its accepted and rejected requests as evidence. This lesson needs only your notes; there is no lab to run.
Ask one question at a time
Section titled “Ask one question at a time”The rejected request reached web. The server could read it well enough to report a syntax error. That observation concerns what the programs say. It is different from an unplugged cable preventing any message from leaving.
A layer is a group of related communication responsibilities. Each layer uses the work below it and provides something the layer above can use. Separating responsibilities lets you explain one part without solving every other part again.
For example, the program constructing the request needs a way to deliver it. It should not need to decide how a cable carries each signal. Equally, a device forwarding a message does not need to understand which file the application requested.
Use the course’s four questions
Section titled “Use the course’s four questions”The TCP/IP model organizes Internet communication into four layers. This course uses the names application, transport, internet, and link. Read the diagram from the programs’ purpose down toward the connection that carries the message.
The application question is what is being said. In the recorded exchange, that includes the file request and the server’s answer. It concerns the message’s meaning and format.
The transport question is which program the communication should reach on the machine. One computer can run several communicating programs. Finding the computer alone does not select the intended conversation.
The internet question is which machine to reach across connected networks. The request must still identify web when other devices stand between it and laptop.
The link question is which neighbor should receive the message on this link. That can be a router carrying the message toward another network. A working local connection does not by itself answer the other three questions.
The four diagram colors keep those identities throughout the course: application blue, transport amber, internet violet, and link pink. Read the names too; the color is a reading aid, not another fact to memorize.
Predict: a cable is unplugged. Which layer’s question can no longer be answered over that connection?
Check your answer
The link question. No message can be delivered over that disconnected link. This does not establish whether the intended application would have accepted the request.
Translate the numbered model
Section titled “Translate the numbered model”The OSI model, short for Open Systems Interconnection, describes seven layers. Its numbers appear in conversations about equipment and faults. The table is an approximate comparison between models, not a requirement that TCP/IP implement seven separate pieces.
| TCP/IP layer | OSI layer and spoken name |
|---|---|
| Application | 7 Application (“layer 7”) 6 Presentation (“layer 6”) 5 Session (“layer 5”) |
| Transport | 4 Transport (“layer 4”) |
| Internet | 3 Network (“layer 3”) |
| Link | 2 Data Link (“layer 2”) 1 Physical (“layer 1”) |
In this approximate mapping, TCP/IP Application groups OSI Application, Presentation and Session; Transport corresponds to Transport, Internet to Network, and Link groups Data Link and Physical.
The application and link rows each group several OSI layers. The transport and internet rows compare similar responsibilities, not identical specifications. TCP/IP does not require three application sublayers. Its link layer groups local delivery with the underlying connection. The OSI names and ordering come from ITU-T X.200, §6.1. Grouping them against four TCP/IP questions is a teaching comparison. When someone reports a “layer 3 problem,” ask for the actual observation about reaching a machine.
Mistakes to recognize
Section titled “Mistakes to recognize”“Knowing seven names is understanding networks.” A useful explanation connects the observation to a responsibility. Reciting the table does not explain the failed request.
“Every protocol belongs to exactly one layer.” These are models. Real mechanisms can connect responsibilities across their boundaries; do not force a label when describing the actual behavior is clearer.
“Layers are places inside the device.” A layer names work, not a shelf or a physical compartment. Several responsibilities can be implemented by software running on the same machine.
Try it yourself
Section titled “Try it yourself”Goal: Assign eight observations to the question each concerns. Write application, transport, internet, or link beside each one.
- The server rejects the request’s arrangement.
- The cable is disconnected.
- The request must reach a machine on the other network.
- The intended program is not receiving the conversation.
- A response supplies the wrong file’s contents.
- An interface cannot exchange signals with its neighbor.
- Delivery needs a path to a machine on another network.
- Two programs on one computer need separate conversations.
Expected: Eight layer assignments with a short reason for one of them.
Hint
Ask whether the observation concerns meaning, a program, a machine, or the current connection.
Solution
1 and 5: application. 2 and 6: link. 3 and 7: internet. 4 and 8: transport. For example, supplying the wrong file concerns the application’s answer even if delivery succeeded.
Leave for later
Section titled “Leave for later”Protocol details belong to later modules. For now, use the questions to organize an explanation rather than guessing how an unfamiliar protocol works.
- Four layer questions separate meaning, programs, machines, and local delivery.
- OSI numbers need their model’s context.
- The mapping is approximate; observations matter more than memorized labels.
Next, Encapsulation and decapsulation shows the layers in one captured request.
Further reading
Section titled “Further reading”- RFC 1122, §1.1.3: Internet protocol suite, for Internet protocol layering.
- ITU-T X.200: Basic Reference Model, §6.1 and Figure 8, for the seven OSI layers and their order.