Topics in this domain

OSI Model

Operations · 3 min read

Sending a parcel

Sending a parcel abroad happens in layers. You write the letter (application). You translate it and seal it in an envelope (presentation). You agree to keep writing back and forth (session). You number the boxes so none go missing (transport). You address them to a city and street (network). The local van picks them up from your door (data link). And the van drives on the road (physical).

The OSI (Open Systems Interconnection) model splits network communication into those same seven layers. For the exam, it’s a shared vocabulary for where things happen: which device handles which traffic, and at which layer a control works.

The seven layers

The OSI model divides network communication into seven layers, each with its own job. The diagram shows them from the application at the top down to the physical cables and radio at the bottom, with the devices and controls that work at each layer. The table adds the unit of data at each layer and more examples.

The seven OSI layers from physical at the bottom to application at the top.
#LayerWhat it doesData unitExamples
7ApplicationNetwork services for applicationsDataHTTP, Simple Mail Transfer Protocol (SMTP), File Transfer Protocol (FTP), DNS, Simple Network Management Protocol (SNMP)
6PresentationFormat, encryption, compressionDataCharacter encoding, image formats, encryption
5SessionOpens, manages and closes conversationsDataRemote procedure call (RPC), NetBIOS, checkpoints
4TransportEnd-to-end delivery, error recovery, portsSegmentTransmission Control Protocol (TCP) (reliable), User Datagram Protocol (UDP) (fast, no guarantees)
3NetworkLogical (IP) addressing and routingPacketIP, Internet Control Message Protocol (ICMP), routers
2Data linkPhysical (MAC) addressing, framingFrameEthernet, Wi-Fi, switches, bridges
1PhysicalBits over a cable or radioBitsCables, fibre, radio, hubs, repeaters

Memory aid, from layer 1 up: Please Do Not Throw Sausage Pizza Away.

Devices by layer

Devices and example controls at each OSI layer.

A device can only filter what it can see:

  • Layer 1: hubs and repeaters just regenerate the signal and send it everywhere. They can’t filter anything.
  • Layer 2: switches and bridges forward frames by MAC address. Virtual LANs (VLANs) are set up here.
  • Layer 3: routers forward packets between networks by IP address. A layer 3 switch does both.
  • Layers 4 to 7: firewalls, proxies, load balancers and gateways. A gateway translates between different protocols or architectures and can work all the way up to layer 7.

Controls by layer

LayerExample controls
PhysicalCable protection, locked wiring closets, disabling unused ports
Data linkPort security, MAC filtering, 802.1X, VLAN segregation
NetworkRouter access control lists, packet-filtering firewalls, IPsec
TransportStateful firewalls, port restrictions
Presentation / applicationTransport Layer Security (TLS), application-layer firewalls, proxies, web application firewalls (WAF)

A packet-filtering firewall works at layers 3 and 4. An application firewall works at layer 7 and can see the actual request.

Example. A question asks which device would separate traffic between two departments based on IP address. A switch (layer 2) can create VLANs, but routing between them by IP address happens at layer 3. So the answer is a router, or a layer 3 switch with access control lists.

How the exam asks about it

If the question asks…The answer is usually…
Layer where routers operateNetwork (3)
Layer where switches operateData link (2)
Layer handling encryption and data formattingPresentation (6)
Layer of TCP and UDPTransport (4)
Device translating between different protocolsGateway

In short

  • The OSI model has seven layers: physical, data link, network, transport, session, presentation, application.
  • Layer 1 physical: cables, signals, hubs, repeaters. Layer 2 data link: frames, MAC addresses, switches, bridges.
  • Layer 3 network: IP addressing and routing, routers. Layer 4 transport: TCP and UDP, ports, reliability.
  • Layer 5 session manages dialogues; layer 6 presentation handles formatting, encryption and compression; layer 7 application is where user-facing protocols run.
  • Gateways can operate up to layer 7 and translate between different protocols.
  • Knowing the layer tells you which device or control acts on the traffic.

Exam traps

  • Switches work at layer 2 (MAC addresses); routers at layer 3 (IP addresses).
  • Hubs and repeaters are layer 1 and forward everything; they can't filter.
  • Encryption and data format conversion belong to the presentation layer in the OSI model.
  • A packet-filtering firewall works at layers 3 and 4; an application firewall at layer 7.

Check yourself

  1. At which OSI layer do switches operate?

  2. Which OSI layer handles encryption and data formatting?

  3. At which layers does a packet-filtering firewall work?

Slides

Click the slide and use the arrow keys. F toggles full screen.

Turn your phone sideways for a bigger view. Tap any diagram to enlarge it.

CISA · Domain 4 · Operations

OSI Model

The seven layers of network communication explained with a parcel delivery, which devices and protocols live at each layer, and why knowing the layer tells you what a control can do.

1 / 8

Turn your phone sideways or scroll to see all of it.