Sockets: building and testing a local protocol
Red TeamReassemble records read from a local socket pair, exercise the decoder against interruptions and distinguish application evidence from transit observations in the final review.
What you will produce
- Lab frame decoder
- Boundary and end-of-stream tests
- Application versus transit visibility matrix
Prerequisites
Or equivalent skills: Basic Python and experience reading logs..
Python workshop
Start in the starter folder. Run the tests, implement the missing function and investigate the first failure. Compare your solution with the reference implementation in the archive root.
Course modules
3 modules · 6 hours01Where records end in a byte streamFree
Reassemble three events from bytes and compare all possible cuts of a local stream.
Where records end in a byte streamTheoryKnowledge checks2 hoursOpen module02Failure reasons and unfinished tails
Distinguish unsupported lengths, unknown marker values and incomplete input.
Failure reasons and unfinished tailsTheoryKnowledge checks2 hoursOpen module03Application evidence and transit visibility
Evaluate a claim about a tunnel using three evidence sources and a time-scoped mapping.
Application evidence and transit visibilityTheoryKnowledge checks2 hoursOpen module
Sources and documentation
The remaining modules open after you buy the course.
About this course
Reassemble records read from a local socket pair, exercise the decoder against interruptions and distinguish application evidence from transit observations in the final review.
What you will learn
- Recover application record boundaries from a stream of bytes.
- Test decoder diagnostics across cuts and incomplete input.
- Substantiate a relationship between an application event and transit evidence.
Who this course is for
For anyone looking to build skills in this field and apply them at work. Explore the first module to see the level and learning format.
How you will learn
Work through the modules: study a case, complete the exercise, check your understanding and save your progress. The first module is open without an account.

