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.