Bitzu

CC ยท Network security fundamentals

OSI model: seven layers

The seven layers, what each does, devices and attacks per layer.

Key points

  • From the bottom: 1 Physical (bits, cables, hubs), 2 Data Link (frames, MAC addresses, switches), 3 Network (packets, IP addresses, routers), 4 Transport (segments, ports, TCP/UDP), 5 Session, 6 Presentation (formatting, encryption), 7 Application (user-facing protocols).
  • Typical attacks: tapping at 1, MAC flooding at 2, IP spoofing at 3, SYN floods at 4, SQL injection at 7.

Practice questions

Single choice

Which OSI layer is responsible for routing packets between different networks using IP addresses?

  1. Data Link
  2. Transport
  3. Network
  4. Session
Show answer

Answer: C. Network

The Network layer (3) handles logical addressing and routing. Data Link works with MAC addresses inside one network segment; Transport handles end-to-end delivery and ports.

Select all that apply

Which of the following are attacks that operate at the OSI Application layer?

  1. SQL injection
  2. Cross-site scripting
  3. ARP spoofing
  4. SYN flood
  5. Cable tapping
Show answer

Answer: A. SQL injection, B. Cross-site scripting

SQL injection and cross-site scripting abuse application logic (Layer 7). ARP spoofing is Layer 2, SYN flooding is Layer 4 and cable tapping is Layer 1.

True or false

A standard network switch forwards traffic based on IP addresses at Layer 3.

Show answer

Answer: False

False. A standard switch works at Layer 2 using MAC addresses. Routers (and multilayer switches) are what use IP addresses.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More CC topics in this module