fix(lab): flood deception-syncookie with reduced-set spec (fix throughput flake) #262
No reviewers
Labels
No labels
bug
deploy
documentation
duplicate
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
femboy/blackwall!262
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/deception-syncookie-reduced-spec"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Root cause
deception-syncookiefloods the victim while a real client verifies thesyn-cookie banner still serves under load. Its real assertion —
ok 3 - ... /dev/tcp/10.0.0.1/8080returnsSTATELESS-COOKIE-OK— passed inevery run. The gate failed only on trafficgen's
sendfidelity precondition:The victim runs the NFQUEUE responder per packet (parse + cookie + raw
sendtothat
ENETUNREACHes for every spoofed source) and competes with the co-locatedgenerator for host CPU on the shared runner.
full-set's 77k pps is simplyunreachable there (observed 30-36k across runs), so the self-check flakes. This
is host-CPU contention, not a product defect.
An earlier attempt to cut the victim's CPU by throttling its per-packet drop log
(#260) did not move the number (36344 throttled vs 30-35k not) - so this fixes
the precondition directly instead.
Change
reduced-setspec:full-setscaled to 1/5 (15.4k pps), same patternmix. It sits ~2x under the generator's contended ceiling, so fidelity holds.
deception-syncookiescenario atreduced-set. Still a realspoofed-SYN flood (4k SYN-pps x 10s = 40k SYNs exercise the cookie path), so
the gate keeps verifying banner-served-under-flood - unlike quarantining it,
which would make the gate verify nothing.
Verification
clippy/fmt/unit tests green forblackwall-trafficgen(newreduced_set_is_full_set_at_one_fifthtest). The lab gate itself is confirmedby CI - on a branch that also carries the flow-live hsflowd fix (#259) this run
should be the first fully-green lab.