All courses

Sockets: building and testing a local protocol

Red Team

Reassemble records read from a local socket pair, exercise the decoder against interruptions and distinguish application evidence from transit observations in the final review.

Advanced6 hFirst module free3 modules
Your deliverables

What you will produce

  • Lab frame decoder
  • Boundary and end-of-stream tests
  • Application versus transit visibility matrix
Before you start

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.

Sign in to download the project

Course modules

3 modules · 6 hours
  1. 01Where 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 stream
    TheoryKnowledge checks2 hours
    Open module
  2. 02Failure reasons and unfinished tails

    Distinguish unsupported lengths, unknown marker values and incomplete input.

    Failure reasons and unfinished tails
    TheoryKnowledge checks2 hours
    Open module
  3. 03Application evidence and transit visibility

    Evaluate a claim about a tunnel using three evidence sources and a time-scoped mapping.

    Application evidence and transit visibility
    TheoryKnowledge checks2 hours
    Open module
Curriculum updated: Duration is an estimate including independent practice.
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.

Materials, independent exercises, self-check questions, and account progress tracking are available.