mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-20 05:05:14 +02:00
test(e2e): widen the fast-path RTT bound to 100 ms via harness.FAST_RTT_MS
The 'impairment cleared' asserts used avg < 50 on three-packet IOS pings; the unimpaired baseline is 20-45 ms with 4 ms quantization, and host scheduling jitter pushed averages to 54/56 in two full-suite runs (esw, dynamips) — a margin, not an impairment (the qdisc asserts pass, success is 100 %). The contrasted delayed regime is >= 150 ms, so a 100 ms bound still separates the two cleanly. Docker's sub-millisecond veth asserts keep their 50 ms bound (three orders of magnitude of headroom, never observed to flake).
This commit is contained in:
7 files changed
+18
-9
No files matched your search
@@ -196,7 +196,7 @@ def test_iou_kernel_datapath():
|
||||
compute.call("PUT", f"/projects/{pid}/links/{lid}", {"filters": {}})
|
||||
assert "netem" not in harness.qdiscs(a1), harness.qdiscs(a1)
|
||||
fast = harness.wait_ping(c1, "10.1.1.2")
|
||||
assert fast["success"] == 100 and fast["avg"] < 50, fast
|
||||
assert fast["success"] == 100 and fast["avg"] < harness.FAST_RTT_MS, fast
|
||||
|
||||
# Classifier spot check on a TAP anchor (the Docker suite runs the
|
||||
# full matrix on veth host ends): cls_bpf match-drop and the eBPF
|
||||
@@ -300,7 +300,7 @@ def test_iou_kernel_datapath():
|
||||
assert survivor["avg"] >= 150, (baseline, survivor)
|
||||
compute.call("PUT", f"/projects/{pid}/links/{lid}", {"filters": {}})
|
||||
cleared = harness.ping(c1, "10.1.1.2", repeat=3)
|
||||
assert cleared["success"] == 100 and cleared["avg"] < 50, (baseline, cleared)
|
||||
assert cleared["success"] == 100 and cleared["avg"] < harness.FAST_RTT_MS, (baseline, cleared)
|
||||
|
||||
c1.close()
|
||||
c2.close()
|
||||
@@ -380,7 +380,7 @@ def test_iou_relay_control():
|
||||
assert delayed["avg"] >= 150, (relay_ping, delayed)
|
||||
compute.call("PUT", f"/projects/{pid}/links/{lid}", {"filters": {}})
|
||||
fast = harness.ping(c1, "10.1.1.2", repeat=3)
|
||||
assert fast["success"] == 100 and fast["avg"] < 50, (relay_ping, fast)
|
||||
assert fast["success"] == 100 and fast["avg"] < harness.FAST_RTT_MS, (relay_ping, fast)
|
||||
|
||||
# frequency_drop shares one counter between the port's two
|
||||
# directions: on an alternating ping stream one whole direction dies
|
||||
|
||||
Reference in new issue
Block a user