Module 5: Network Protocols & Sockets: Mistake Clinic
This clinic turns wrong moves into reusable judgment. Use it after each practice page and again before the quiz or checkpoint.
Module-Specific Mistake Radar
Start with these traps. Replace or extend them with real mistakes from your own work.
| Mistake to look for | Where it shows up | Symptom | Repair evidence |
|---|---|---|---|
| Finishing Layered Model and Addressing Lab with only a final answer | Layered Model and Addressing Lab | The work has no failed case, trace, test, proof gap, or design stress point. | Add the smallest broken example and show the repair that changes the result. |
| Finishing Transport and Connection Clinic with only a final answer | Transport and Connection Clinic | The work has no failed case, trace, test, proof gap, or design stress point. | Add the smallest broken example and show the repair that changes the result. |
| Finishing HTTP, TLS, and Application Workshop with only a final answer | HTTP, TLS, and Application Workshop | The work has no failed case, trace, test, proof gap, or design stress point. | Add the smallest broken example and show the repair that changes the result. |
| Finishing Code Katas with only a final answer | Code Katas | The work has no failed case, trace, test, proof gap, or design stress point. | Add the smallest broken example and show the repair that changes the result. |
| Treating The Layered Model: Physical, Link, Network, Transport, Application as vocabulary instead of a tool | The Layered Model: Physical, Link, Network, Transport, Application | The explanation names the concept but cannot decide between two cases. | Write one example, one non-example, and the rule that separates them. |
| Treating Encapsulation: Headers, Payloads, and Protocol Stacks as vocabulary instead of a tool | Encapsulation: Headers, Payloads, and Protocol Stacks | The explanation names the concept but cannot decide between two cases. | Write one example, one non-example, and the rule that separates them. |
Practice Mistake Checks
Pull any miss from these checks into your mistake log.
Layered Model and Addressing Lab
Source: practice/01-layered-model-and-addressing-lab.md
For each statement, identify the error:
- "My MAC address identifies my laptop on the Internet."
- "
10.0.24.53/20includes10.0.33.10, because they start the same way." - "NAT is a firewall."
- "DNS resolution happens in the kernel, like TCP does."
- "Encapsulation adds headers only at the transport layer."
Transport and Connection Clinic
Source: practice/02-transport-and-connection-clinic.md
For each statement, identify the error:
- "UDP is unreliable, so it is for toy apps."
- "TCP makes all packets arrive in the order they were sent."
- "The sender's congestion window and the receiver's advertised window are the same thing."
- "
CLOSE_WAITmeans the kernel is closing the socket." - "Retransmissions only happen on timeout."
HTTP, TLS, and Application Workshop
Source: practice/03-http-tls-and-application-workshop.md
For each statement, identify the error:
- "HTTPS encrypts the URL."
- "HTTP/2 eliminates head-of-line blocking entirely."
- "A
500means the user did something wrong." - "
PUTandPOSTare interchangeable." - "TLS is just encryption -- authentication is a separate feature."
Repair Protocol
For each real mistake:
- Reproduce the failure on the smallest example, trace, proof, query, command, or design sketch.
- Name the hidden assumption.
- Repair the artifact.
- Save evidence that changed: failing then passing test, corrected proof step, revised diagram, safer command, benchmark, or review note.
- Add one retrieval card beginning with Check... before... or Do not use... when....
Mistake Log
| Date | Mistake | Symptom | Root cause | Repair evidence | Retrieval card |
|---|---|---|---|---|---|
| Starter | Pick one radar row above | Explain how it would fail in this module | Name the assumption | Add a counterexample or corrected artifact | Write the card before closing the page |
Completion Standard
- At least five real mistakes are logged.
- At least two mistakes include a counterexample or failing test.
- At least one mistake connects to an older semester skill.
- At least one correction changes code, a proof, a diagram, a command transcript, a query, or a design decision.