By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.
The OSI (Open Systems Interconnection) model and TCP/IP (Transmission Control Protocol/Internet Protocol) are foundational networking frameworks that define how data moves across networks. Understanding their security implications is critical because attackers exploit weaknesses at different layers (e.g., ARP spoofing at Layer 2, SQL injection at Layer 7, or TCP SYN floods at Layer 4). A real-world example: The 2017 Equifax breach exploited an unpatched Apache Struts vulnerability (Layer 7 – Application), allowing attackers to execute remote code and steal 147 million records of PII (Personally Identifiable Information). Security professionals must secure each layer to prevent such attacks.
Mnemonic: Please Do Not Throw Sausage Pizza Away (Physical → Data Link → Network → Transport → Session → Presentation → Application).
TCP/IP Model: A 4-layer practical model (Network Interface → Internet → Transport → Application) used in real-world networking (e.g., the Internet). Simpler than OSI but maps roughly as:
Application (OSI Layers 5-7)
Encapsulation/Decapsulation: Data is wrapped with headers/trailers as it moves down the OSI stack (encapsulation) and unwrapped as it moves up (decapsulation). Attackers exploit this (e.g., VLAN hopping by manipulating Layer 2 tags).
PDU (Protocol Data Unit): The "name" for data at each OSI layer:
Layers 5-7: Data (e.g., HTTP requests)
TCP (Transmission Control Protocol): A connection-oriented, reliable protocol (Layer 4) that uses 3-way handshake (SYN → SYN-ACK → ACK). Vulnerable to SYN floods (DoS) or session hijacking.
Ports: Well-known (0-1023), registered (1024-49151), dynamic (49152-65535).
UDP (User Datagram Protocol): A connectionless, fast protocol (Layer 4) used for DNS, VoIP, and streaming. No handshake = no built-in reliability or security (e.g., DNS amplification attacks).
IP (Internet Protocol): Layer 3 protocol for addressing/routing. IPv4 (32-bit, e.g., 192.168.1.1) and IPv6 (128-bit, e.g., 2001:db8::1). Vulnerabilities:
192.168.1.1
2001:db8::1
Fragmentation attacks (e.g., Teardrop – overlapping fragments crash systems).
ARP (Address Resolution Protocol): Layer 2 protocol that maps IP → MAC addresses. Vulnerable to ARP poisoning (MITRE T1557), where attackers redirect traffic to their machine (e.g., Man-in-the-Middle (MitM) attacks).
Defense: Static ARP entries, ARP inspection (Cisco), port security.
ICMP (Internet Control Message Protocol): Layer 3 protocol for error messages (e.g., ping, traceroute). Exploited in ICMP floods (DoS) or ping sweeps (reconnaissance).
ping
traceroute
Defense: Rate limiting, blocking ICMP echo requests (but breaks ping).
Ports & Services:
22 (SSH)
80 (HTTP)
443 (HTTPS)
53 (DNS)
3389 (RDP)
1433 (MSSQL)
Defense: Firewalls, port knocking, service hardening.
Firewalls & Layered Security:
iptables
Cisco ASA
Palo Alto
FortiGate
WAF (Web Application Firewall): Protects Layer 7 (e.g., ModSecurity, Cloudflare).
ModSecurity
Cloudflare
TLS/SSL (Transport Layer Security / Secure Sockets Layer): Layer 6 (Presentation) encryption for secure communication (e.g., HTTPS). Vulnerabilities:
Defense: Disable weak ciphers, TLS 1.2+, HSTS (HTTP Strict Transport Security).
DNS (Domain Name System): Layer 7 protocol that translates domains (e.g., google.com) to IPs. Attack vectors:
google.com
Telnet (23)
FTP (21)
RDP (3389)
✅ Correct Answer: BExplanation: ARP operates at Layer 2 (Data Link) and is vulnerable to ARP poisoning, which enables Man-in-the-Middle (MitM) attacks (e.g., intercepting traffic).
✅ Correct Answer: DExplanation: DNS tunneling (data exfiltration via DNS queries) is best mitigated by RPZ (blocking malicious domains) and monitoring/logging DNS traffic. DNSSEC (B) only validates responses, not content.
✅ Correct Answer: BExplanation: SYN floods exploit Layer 4 (Transport) by overwhelming a server with half-open TCP connections. SYN cookies (a TCP stack feature) mitigate this by not allocating resources until the ACK is received.
Join 4M+ learners. Unlock unlimited quizzes, wrong-answer tracking, flashcards + reminders, study guides, and 1-on-1 challenges.