From aee9eada19eb54203d776a61958e75e296767c0e Mon Sep 17 00:00:00 2001 From: eunhhu Date: Tue, 29 Sep 2026 14:43:30 +0100 Subject: Keep a sender's congestion state as one, so an episode undoes it whole The window, threshold, the start of recovery and CUBIC's four values were fields of their own, and an episode of congestion events copied each of the seven aside and back. Now they are one Congestion: an episode keeps a copy, and undoing it takes the copy back, the window grown since kept. test-link's results and the M6 simulator's are the same to the byte. --- research/experiments/020-lossy-paths/sim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'research') diff --git a/research/experiments/020-lossy-paths/sim.c b/research/experiments/020-lossy-paths/sim.c index 361db14..5852885 100644 --- a/research/experiments/020-lossy-paths/sim.c +++ b/research/experiments/020-lossy-paths/sim.c @@ -149,8 +149,8 @@ int main(int argc, char **argv) { } now = next > now ? next : now; while (now >= sample_at) { - window_sum += s->window, rtt_sum += s->smoothed_rtt, ++samples; - if (s->window < window_least) window_least = s->window; + window_sum += s->cc.window, rtt_sum += s->smoothed_rtt, ++samples; + if (s->cc.window < window_least) window_least = s->cc.window; sample_at += 100 * MS; } for (size_t k = 0; k < packet_count;) { -- cgit v1.2.3