Pebellslearn by building
0%
RoadmapsMatrixCoursesSandboxSign in
The OSI and TCP/IP Models  ›  Lesson

The OSI Model: Physical, Data Link and Network

Data Link 15 minThe OSI model splits networking into seven layers, and the bottom three move bits over media, frames between neighbours by MAC, and packets between networks by IP.

The OSI Model: Physical, Data Link and Network

Kite Studio's help-desk ticket reads "the internet is broken". That could mean a loose cable, a confused switch, a wrong gateway, a DNS outage or a crashed app. The OSI model is a shared map that splits networking into seven layers, so engineers can say exactly where a problem lives and check the layers one at a time.

The rule

Seven layers, each serving the one above: build up, troubleshoot from the bottom.

The seven OSI layers, from the bottom:

# Layer Unit of data
7 Application data
6 Presentation data
5 Session data
4 Transport segment (TCP) / datagram (UDP)
3 Network packet
2 Data Link frame
1 Physical bits

A memory hook, bottom to top: Pune Designers Never Throw Spare Pencils Away.

This lesson covers the bottom three, the layers that actually move data between machines.

Layer 1 — Physical. Raw bits as signals: voltages on copper, pulses of light in fibre, radio waves in the air. Cables, connectors, signal strength and hubs live here. Question it answers: is there a working signal?

Layer 2 — Data Link. Frames between neighbours on one link, addressed by MAC, with a checksum to catch damaged frames. Ethernet and Wi-Fi are layer-2 technologies; switches and access points work here. Question: can I reach the next device on this link?

Layer 3 — Network. Packets between networks, addressed by IP, steered hop by hop by routers. ICMP, the protocol behind ping, belongs here too. Question: can I reach a device on another network?

The shortcut

Troubleshoot from the bottom up and stop at the first layer that fails. Everything above a broken layer will look broken too, so fixing a higher layer first wastes time.

"The internet is broken" at desk 14Step 1 of 4
  1. Layer 1: is there a link light?

    The port light on the laptop's dock is dark. Reseat the cable — the light comes on. Signal: working.

The trap is jumping straight to "reinstall the browser" when the real fault was a cable. Bottom up is slower to say and faster to fix.

Drills

Answer fast — trust the rule.

quick drill

At which OSI layer do switches forward frames by MAC address?

quick drill

What is the unit of data at layer 3?

quick drill

A fibre cable is bent too sharply and the light no longer gets through. Which layer has failed?

quick drill

Asha can ping 192.168.10.1 but not any address outside the office. Which layer should you look at first?

quick drill

Which device belongs to layer 3?

Remember

  • Seven layers, each serving the one above: build up, troubleshoot from the bottom.
  • Layer 1 bits and signals; layer 2 frames and MACs (switches); layer 3 packets and IPs (routers).
  • Stop at the first layer that fails — everything above it only looks broken.

Practice — level up

0/1 solved

Write your answer, then compare it with a rubric and a model answer.

ExplainTroubleshoot from the bottom

A designer reports 'the internet is broken'. Describe how you would check OSI layers 1, 2 and 3 in order, what each check tells you, and why you start at the bottom.