Lesson plan: Foundations: Packets, Ports, and Protocols

AP Cybersecurity · Unit 3 Securing Networks · Topic Foundations (background for 3.1 to 3.5) · Practice set

At a glance

Suggested time
1 class period (45 min)
Pacing
Second of the unit's two Foundations sets, right after Foundations: Addresses and Local Networks and before Network Attack Catalog. The CED gives Unit 3 about 26 class periods: 6 for Topic 3.1, 3 for 3.2, 2 for 3.3, 8 for 3.4, and 7 for 3.5. This background sits outside the CED's content periods, and this plan suggests 1 extra day for it. The CED uses what this set teaches without teaching it. EK 3.4.A.2 says a stateless firewall filters on the IP addresses, ports, and protocols in packet headers, and the illustrative rule under EK 3.4.D.2 names TCP port 22. EK 3.5.E.7 lists unauthorized network scans and mismatched port-application traffic among network-based indicators of compromise.
Before this set
Foundations: Addresses and Local Networks (IP addresses, the local network, routing). Students should know that an IP address names one computer and that routers pass traffic along by it. The mini-lesson explains packet, header, port, TCP, UDP, open port, and scanning as it goes.
Skills
1.A Identify, with and without the support of AI, vulnerabilities, threats, and attack methods, and explain how they generate risk.
1.B Determine ways adversaries exploit vulnerabilities to compromise an asset.

The one idea: An IP address gets a packet to the right computer, and a port number gets it to the right program there. A port is open only where a program is listening, and every listening program is a possible way in.

Day by day

Day 1 · From a packet to a way in45 min

Differentiation

If students are struggling
Before Problem 5 🔒, have students label each row of the lesson's table: which side started the conversation, and which port is the well-known one. If time is short, do Problem 2 🔒 and Problem 3 🔒 as a class and hold Problem 9 🔒 for homework, but keep Problem 10 🔒 in class, since the Discuss step is built on it.
Extension
Students add a fifth computer to the table in Problem 10 🔒 that the worm could not get into for a different reason, and a partner checks it against the three ways in. Or they write a two-row netstat table of their own and a partner says which end of each row is listening.
Vocabulary support
packet, header, IP (Internet Protocol) address, port, well-known port, protocol, TCP (Transmission Control Protocol), UDP (User Datagram Protocol), connection, listening, open port, scanning, worm.