OSI & TCP/IP Network Architecture

Network defense requires mapping traffic across the OSI layers: Layer 2 (Data Link) uses 48-bit MAC addresses, Ethernet frames, ARP.

What to practice

  • Map protocols, headers, devices, and attacks to the exact OSI and TCP/IP layers.
  • Calculate subnet masks, network/broadcast addresses, and usable host counts from CIDR notation.
  • Identify insecure cleartext ports (21 FTP, 23 Telnet, 80 HTTP) from port-scan outputs and recommend encrypted replacements.

1. Core Concept Instruction

Network defense requires mapping traffic across the OSI layers: Layer 2 (Data Link) uses 48-bit MAC addresses, Ethernet frames, ARP, and switches; Layer 3 (Network) uses logical IP addresses, ICMP (ping), and routers; Layer 4 (Transport) uses TCP (connection-oriented 3-way handshake: SYN -> SYN-ACK -> ACK) or UDP (connectionless) and port numbers. In IPv4 CIDR notation (e.g., 192.168.10.0/26), a /p prefix uses p bits for the network ID and h = 32 - p bits for host addresses. The total number of IPv4 addresses in the subnet is 2^h, and the number of USABLE host IPs is 2^h - 2 (subtracting 1 for the network address where all host bits are 0, and 1 for the broadcast address where all host bits are 1). Memorize critical port numbers and their secure replacements: FTP (20/21 -> SFTP 22), Telnet (23 -> SSH 22), SMTP (25 -> 587 TLS), DNS (53), HTTP (80 -> HTTPS 443), POP3 (110 -> 995), IMAP (143 -> 993), RDP (3389).

2. Worked Examples

Worked IPv4 CIDR Subnet Calculation & Nmap Port Enumeration Audit

(a) A security engineer segments a VLAN using subnet 10.20.4.64/27. Find the subnet mask, total IP addresses, usable host IP count, network address, broadcast address, and usable host IP range. (b) An nmap scan shows TCP ports 21, 23, 80, and 443 open. Which services transmit credentials in cleartext?

Result:

TCP 3-Way Handshake Flag Sequence & Well-Known Service Port Hardening

During a packet capture on subnet 192.168.10.0/24, an analyst observes a client at 192.168.10.55 send a TCP segment with flags [SYN] to server port 23 (Telnet), followed by [SYN, ACK] and [ACK].

Result: SYN -> SYN-ACK -> ACK completes the TCP handshake; replace cleartext Telnet (TCP 23) with SSH (TCP 22)

Core Concept Review

Network defense requires mapping traffic across the OSI layers: Layer 2 (Data Link) uses 48-bit MAC addresses, Ethernet frames, ARP, and switches; Layer 3 (Network) uses logical IP addresses, ICMP (ping), and routers; Layer 4 (Transport) uses TCP (connection-oriented 3-way handshake: SYN -> SYN-ACK -> ACK) or UDP (connectionless) and port numbers. In IPv4 CIDR notation (e.g., 192.168.10.0/26), a /p prefix uses p bits for the network ID and h = 32 - p bits for host addresses. The total number of IPv4 addresses in the subnet is 2^h, and the number of USABLE host IPs is 2^h - 2 (subtracting 1 for the network address where all host bits are 0, and 1 for the broadcast address where all host bits are 1). Memorize critical port numbers and their secure replacements: FTP (20/21 -> SFTP 22), Telnet (23 -> SSH 22), SMTP (25 -> 587 TLS), DNS (53), HTTP (80 -> HTTPS 443), POP3 (110 -> 995), IMAP (143 -> 993), RDP (3389).

Extended Concept Analysis

Network defense requires mapping traffic across the OSI layers: Layer 2 (Data Link) uses 48-bit MAC addresses, Ethernet frames, ARP, and switches; Layer 3 (Network) uses logical IP addresses, ICMP (ping), and routers; Layer 4 (Transport) uses TCP (connection-oriented 3-way handshake: SYN -> SYN-ACK -> ACK) or UDP (connectionless) and port numbers. In IPv4 CIDR notation (e.g., 192.168.10.0/26), a /p prefix uses p bits for the network ID and h = 32 - p bits for host addresses. The total number of IPv4 addresses in the subnet is 2^h, and the number of USABLE host IPs is 2^h - 2 (subtracting 1 for the network address where all host bits are 0, and 1 for the broadcast address where all host bits are 1). Memorize critical port numbers and their secure replacements: FTP (20/21 -> SFTP 22), Telnet (23 -> SSH 22), SMTP (25 -> 587 TLS), DNS (53), HTTP (80 -> HTTPS 443), POP3 (110 -> 995), IMAP (143 -> 993), RDP (3389).

Worked Problem Walkthrough

Worked IPv4 CIDR Subnet Calculation & Nmap Port Enumeration Audit

(a) A security engineer segments a VLAN using subnet 10.20.4.64/27. Find the subnet mask, total IP addresses, usable host IP count, network address, broadcast address, and usable host IP range. (b) An nmap scan shows TCP ports 21, 23, 80, and 443 open. Which services transmit credentials in cleartext?

TCP 3-Way Handshake Flag Sequence & Well-Known Service Port Hardening

During a packet capture on subnet 192.168.10.0/24, an analyst observes a client at 192.168.10.55 send a TCP segment with flags [SYN] to server port 23 (Telnet), followed by [SYN, ACK] and [ACK].

Common Exam Traps & How to Avoid Them

  • Forgetting to subtract 2 (network ID and broadcast address) when asked for USABLE host IP addresses in a subnet.

  • Confusing Layer 2 MAC addresses (used by switches on the local link) with Layer 3 IP addresses (used by routers across networks).

Key Vocabulary

  • CIDR (/prefix): Classless Inter-Domain Routing notation specifying how many leading bits of an IP address identify the network prefix.

  • TCP Three-Way Handshake: The connection establishment sequence SYN -> SYN-ACK -> ACK used by TCP before transmitting application data.

Use this chapter companion

Review the lesson, attempt the original practice, then check the explanation. Your printed study guide remains complete without the website.

Independence

Skill by Skill Prep is independent. SAT® and AP® are trademarks registered by the College Board, which is not affiliated with, and does not endorse, this website or book. PSAT/NMSQT® is a registered trademark of the College Board and the National Merit Scholarship Corporation, which are not affiliated with, and do not endorse, this site. Bluebook™ is a trademark of the College Board. ACT® is a trademark of ACT Education Corp., which is not affiliated with and does not endorse this website or book. Desmos is a trademark of Desmos Studio PBC. Practice results describe these questions, not official scores or admission predictions.

Last updated .