Cybersecurity — Level 2: Network & System Security
Free preview

The OSI and TCP/IP models

1 / 3

Why layers

  • Each layer has one job
  • Problems located layer by layer
  • Attacks target specific layers
2 / 3

OSI (7 layers)

  • Physical, Data link, Network, Transport
  • Session, Presentation, Application
3 / 3

TCP/IP (4 layers)

  • Link, Internet (IP), Transport (TCP/UDP), Application (HTTP, DNS)

Lecture notes

Networks are described in layers. Each layer provides a service to the layer above, which makes troubleshooting and security analysis systematic.

The OSI model

  1. Physical — cables, radio, signals.
  2. Data link — frames between neighbours, MAC addresses, switches, Wi-Fi.
  3. Network — IP addresses and routing between networks (routers).
  4. Transport — TCP (reliable) and UDP (fast) with port numbers.
  5. Session — opening and closing conversations.
  6. Presentation — encoding, compression, encryption (TLS is often placed here).
  7. Application — protocols used by programs: HTTP, DNS, SMTP.

Mnemonic (1→7): "Please Do Not Throw Sausage Pizza Away".

The TCP/IP model

The internet actually uses four layers: Link, Internet (IP), Transport (TCP/UDP) and Application.

Encapsulation

When you open a web page, the HTTP request is wrapped in a TCP segment, then an IP packet, then an Ethernet or Wi-Fi frame. The receiver unwraps it layer by layer.

Security by layer

  • Layer 2: ARP spoofing, rogue Wi-Fi access points.
  • Layer 3: IP spoofing, routing attacks.
  • Layer 4: port scanning, SYN floods.
  • Layer 7: phishing sites, SQL injection, malware downloads.
Want to go further?
18 h · Enroll to access every lesson and earn the certificate.
Get Started Free