pigpt-5.5 · 16 steps · 1m 43s · 3 filessession 15b7f89b-dd1@patrick-toulme

Implement a sliding-window reliable-delivery protocol simulator in Python in this directory. Files: protocol.py (Sender and Receiver classes implementing Go-Back-N with configurable window size, sequence numbers, cumulative ACKs, and retransmission on timeout, communicating through a SimulatedChannel with seeded deterministic packet loss, duplication, and reordering; a Clock abstraction drives timeouts without real sleeping), sim.py (runs a transfer of 10 KB through channels with 0%, 10%, and 30% loss and prints delivered-bytes checksums plus retransmission counts), test_protocol.py (plain-assert tests runnable with python3 test_protocol.py: in-order delivery under loss, no duplicate delivery, window never exceeded, checksum of delivered data matches sent data for every loss rate). Run the tests and fix failures until all pass.

Discussion

No comments yet. Start the discussion. Recorded by @patrick-toulme.

0
s7-proto