← Networking

How data travels

The layer model

分层模型

To simplify how networks work, the job is split into layers, each with its own task and relying on the layer below. The OSI model has seven layers, while the TCP/IP model actually used on the internet has four.

The TCP/IP layers from the bottom: network access (cables, Wi-Fi, MAC addresses), internet (IP addresses and routing), transport (TCP and UDP), and application (HTTP, DNS, email).

When sending, each layer adds its own information to the data, like putting a letter in an envelope, the envelope in a box and the box in a truck. On receiving, the wrappers are opened in reverse order.

The benefit of layers is that each part can change on its own: you can move from a cable to Wi-Fi without changing your browser, because the application layer does not care how data is physically carried.

Engineers use layers when troubleshooting: Is the cable connected? Does the device have an IP address? Can it reach the server? Is the application working? They start at the bottom until they find the fault.

Ask the AI assistant

Ask anything about this lesson and get a simple answer with the terms in Chinese, Arabic and English.

The AI assistant runs on Google's Gemini model and can make mistakes. Do not write personal information. Available to signed-in learners, up to 30 requests a day.

The content is simplified and covers the basics only.