A protocol toolkit

The problem

Write a toolkit that moves messages over an unreliable, chunked byte stream: a framer for messages, an integrity check, and a reliable sender that survives losses, with a simulation that proves it works.

Requirements

Technologies

Step by step

  1. Write the framer and test it with the stream cut at every possible position.
  2. Add a checksum to each message and test it by changing one character.
  3. Write a Go-Back-N simulation with a window and a list of packets lost the first time.
  4. Run the full pipeline on 20 messages with some losses and damage, and print the report.

Expected result

A toolkit and a report showing that every message arrives intact and in order even though some packets are lost or damaged.

How it is evaluated

Ways to improve it