Packet.School
HomeLevelsSandboxPricingAbout
XP1,240
L2 · OSI Model
Level 2
6 lessons
  • 01What is the OSI Model?
  • 027 Layers Detailed
  • 03TCP/IP Model
  • 04Packet Journey
  • 05Encapsulation
  • 06Level 2 Quiz
Levels/L2 · OSI Model/Lesson 02
Simulation · 02

7 Layers Detailed

A deeper dive into each layer with protocols, devices, and real-world examples. Keep the stack diagram from the previous lesson in mind — this is what happens inside each row.

Duration
6min
Level
L2
Type
Simulation
Progress
2/ 6

01Application layer

L7
Application Layer

The only layer a user or developer directly interacts with. It provides network services to applications — browsers, email clients, file transfer tools. No lower layers are visible here.

Key protocols
HTTP / HTTPS · 80/443 DNS · 53 SMTP · 25 FTP · 21 SSH · 22 IMAP · 143
What it does
  • Provides an interface for network-aware apps
  • Defines message format and syntax
  • Authentication and data privacy at app level
  • Example: browser sends GET / HTTP request

02Presentation layer

L6
Presentation Layer

Translates data between the application format and network format. Handles encryption, compression, and character encoding so both sides speak the same language.

Key formats
TLS / SSL JPEG · PNG ASCII · UTF-8 MPEG · MP3
What it does
  • Encrypts outgoing data (TLS handshake)
  • Decrypts incoming data
  • Compresses data to reduce size
  • Converts character sets (UTF-8 ↔ ASCII)

03Session layer

L5
Session Layer

Establishes, maintains, and terminates sessions between applications. Handles checkpointing and recovery — if a transfer breaks mid-way, it can resume from the last checkpoint.

Key protocols
NetBIOS RPC PPTP SIP
What it does
  • Opens and closes communication sessions
  • Sets checkpoints in data streams
  • Manages half-duplex / full-duplex
  • Example: video call session management

04Transport layer

L4
Transport Layer

End-to-end delivery between processes, identified by port numbers. TCP guarantees delivery and ordering; UDP sacrifices both for raw speed.

Protocols
TCP — reliable UDP — fast QUIC
What it does
  • Segments data into chunks
  • Assigns source + destination ports
  • TCP: flow control, error recovery
  • UDP: no handshake, low latency

05Network layer

L3
Network Layer

Moves packets across multiple networks using IP addresses. Routers operate here — they read the destination IP, consult their routing table, and forward the packet toward its destination.

Key protocols
IPv4 / IPv6 ICMP BGP / OSPF ARP
What it does
  • Logical addressing (IP)
  • Routing between networks
  • Fragmentation of large packets
  • Device: Router

06Data Link layer

L2
Data Link Layer

Node-to-node delivery on the same network segment. Uses MAC addresses to identify devices on the local network. Switches operate here — they learn which MAC is on which port.

Key protocols
Ethernet Wi-Fi (802.11) PPP VLAN
What it does
  • MAC addressing (48-bit hardware)
  • Frame construction + CRC error check
  • Media access control (CSMA/CD)
  • Device: Switch / Bridge

07Physical layer

L1
Physical Layer

Transmits raw bits as physical signals — electrical voltage on copper, light pulses on fiber, or radio waves in the air. Defines connectors, cable specs, and signal timing.

Media types
Twisted pair (Cat5/6) Fiber optic Wi-Fi 2.4/5 GHz Coaxial
What it does
  • Bit encoding (NRZ, Manchester)
  • Signal levels and timing
  • Connector and cable specs
  • Device: Hub / Repeater / NIC

08Summary

The OSI model is a troubleshooting map. When something breaks, you ask: "at which layer?" A cable problem is Layer 1. A wrong IP is Layer 3. An expired TLS certificate is Layer 6. A broken API is Layer 7. Knowing which layer owns the problem cuts debugging time dramatically.

Previous
What is the OSI Model?
Next
TCP/IP Model
On this page
  • Application layer
  • Presentation layer
  • Session layer
  • Transport layer
  • Network layer
  • Data Link layer
  • Physical layer
  • Summary
Packet.School

An open, interactive curriculum for computer networking.

v3.0 · MIT22 lessons live

Learn

  • Lessons
  • Sandbox
  • Levels
  • Pricing
  • About

Simulations

  • Packet Journey
  • DNS Lookup
  • DHCP Simulator
  • Subnet Calc
  • Network Builder
  • Terminal

Project

  • About
  • Changelog
  • GitHub
  • Contributing
  • Style guide

Newsletter

One short email when a new level ships. No tracking pixels.

© 2026 Packet.School — MIT licensed☕ Support with a coffeebuilt in the open · last updated 2026.05.14