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
Which OSI layer is responsible for routing packets between different networks using IP addresses?
- Data Link
- Transport
- Network
- 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.
Which of the following are attacks that operate at the OSI Application layer?
- SQL injection
- Cross-site scripting
- ARP spoofing
- SYN flood
- 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.
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.
