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
- Open (3 min)Tell students that in 1988 a program spread to thousands of computers overnight without anyone opening an email or clicking a link. Ask how it could get in. Collect a few guesses without correcting them.
- Mini-lesson (14 min)Teach Packets, Ports, and Protocols. Read it together, or assign it the night before. Under Packets and headers, read the laptop's table and the TCP and UDP paragraph, then ask the first question under Ask aloud. Under The worm's way in, stop at "Think about what those three ways in would have found" and give pairs a minute before reading on. At the end, go back to the opening guesses.
- Do together (5 min)Problem 5 🔒 🔒 Teacher notes: sign in as a teacher to see this🔒 Teacher notes: open the full plan to see this
- On their own (15 min)Problem 1 🔒 Problem 2 🔒 what a header carries · Problem 3 🔒 Problem 6 🔒 TCP and UDP · Problem 4 🔒 well-known ports · Problem 7 🔒 reading a scan · Problem 8 🔒 Problem 9 🔒 Problem 10 🔒 the Morris worm.
- Discuss (5 min)Problem 10 🔒 Problem 6 🔒 🔒 Teacher notes: sign in as a teacher to see this🔒 Teacher notes: open the full plan to see this
- Exit check (3 min)🔒 Teacher notes: sign in as a teacher to see this🔒 Teacher notes: open the full plan to see this
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.
🔒 Answer keyEvery problem's answer, the concept and essential knowledge it checks, and the trap it targets.Sign in as a teacher to see this🔒 Traps this set testsWhat each common wrong answer looks like, and one line to say when you see it.Sign in as a teacher to see this🔒 What to emphasizeThe points that decide the set's problems.Sign in as a teacher to see this🔒 Questions to ask aloudQuestions for the class discussion, with what to listen for.Sign in as a teacher to see this🔒 On the examHow the set's ideas appear on the AP exam, from the course framework.Sign in as a teacher to see this🔒 Your class so farLive results for your section: the problems a third or more missed on the first try, the most common wrong answer, and what it usually means.Sign in as a teacher to see this