CultLib/packages/cultnet-rs/tests/impairment
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Meta Vens 858e6ec608 Add the cultnet_impair proxy example and a socketless media FEC loss matrix
cultnet_impair is a deterministic bidirectional UDP proxy for pressure
testing real CultNet RUDP sessions with seeded loss, burst, duplicate,
reorder, jitter and stall schedules. It is ported from the Odin donor
(80adfd3) as an example, not library surface. The decision policy (Profile,
Scheduler, seeded RNG) is split from the sockets into policy.rs, which the
proxy and the tests both compile, so a schedule has one owner. The ten
donor profiles live in tests/impairment/.

tests/impairment_policy.rs keeps the donor's six deterministic policy tests
(the burst test now pins the exact drops rather than a count) and adds
profile loading and rejection. tests/media_fec_loss.rs sends protected video
frames through those schedules with no sockets and asserts the guarantee: a
block recovers exactly when at most m of its records were lost, recovered
chunks equal what was sent, and a burst that the send order spreads under m
per block loses no frame. The recovered-frame ratios are printed, not
asserted; tests/impairment/loss-matrix.txt is that output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 20:17:46 +02:00
..
burst-4.toml Add the cultnet_impair proxy example and a socketless media FEC loss matrix 2026-09-29 20:17:46 +02:00
burst-8.toml Add the cultnet_impair proxy example and a socketless media FEC loss matrix 2026-09-29 20:17:46 +02:00
clean.toml Add the cultnet_impair proxy example and a socketless media FEC loss matrix 2026-09-29 20:17:46 +02:00
delay-jitter.toml Add the cultnet_impair proxy example and a socketless media FEC loss matrix 2026-09-29 20:17:46 +02:00
duplicate.toml Add the cultnet_impair proxy example and a socketless media FEC loss matrix 2026-09-29 20:17:46 +02:00
loss-1pct.toml Add the cultnet_impair proxy example and a socketless media FEC loss matrix 2026-09-29 20:17:46 +02:00
loss-3pct.toml Add the cultnet_impair proxy example and a socketless media FEC loss matrix 2026-09-29 20:17:46 +02:00
loss-5pct.toml Add the cultnet_impair proxy example and a socketless media FEC loss matrix 2026-09-29 20:17:46 +02:00
loss-matrix.txt Add the cultnet_impair proxy example and a socketless media FEC loss matrix 2026-09-29 20:17:46 +02:00
reorder.toml Add the cultnet_impair proxy example and a socketless media FEC loss matrix 2026-09-29 20:17:46 +02:00
stall-250ms.toml Add the cultnet_impair proxy example and a socketless media FEC loss matrix 2026-09-29 20:17:46 +02:00