feat(replication): replace L2 broadcast with UDP unicast - #69
Open
defo89 wants to merge 3 commits into
Open
Conversation
defo89
force-pushed
the
feature/eliminate-l2-dependency
branch
4 times, most recently
from
May 1, 2026 12:54
53ffa61 to
bb8a559
Compare
defo89
force-pushed
the
feature/eliminate-l2-dependency
branch
3 times, most recently
from
May 1, 2026 17:26
5687854 to
e9adf6d
Compare
Two Kind clusters in separate Docker networks connected by a router container with MTU 1500 transit path. Simulates the real-world scenario of ICMP fragmentation-needed generation and go-pmtud UDP replication across L3 boundaries. Includes setup/teardown scripts, DaemonSet manifest, podinfo workload, traffic generation, tcpdump observation helpers, and e2e validation.
defo89
force-pushed
the
feature/eliminate-l2-dependency
branch
from
May 1, 2026 19:51
e9adf6d to
6eb7525
Compare
Merging this branch will increase overall coverage
Coverage by fileChanged files (no unit tests)
Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code. Changed unit test files
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Eliminates the Layer 2 adjacency requirement for ICMP fragmentation-needed packet replication between Kubernetes cluster nodes. Replaces raw Ethernet frame broadcasting (ARP + MAC resolution) with UDP unicast.
Changes
internal/arp/package, L2 config fields,--iface_names/--iface_mtu/--arp-timeout-seconds/--node-timeout-minutesflagsWriteTo), UDP receiver with TUN device injection,internal/packet/parser--replication-port(default 4390),--ignore-networksflagspmtud0deterministically; iptables NFLOG rule must exclude it (! -i pmtud0)Key Design Decisions
ip_input → icmp_rcv → icmp_unreach) to correctly update PMTU cache! -i pmtud0in iptables rule is the primary mechanism; peer IP filtering +--ignore-networksprovide defense-in-depthRequired iptables rule
Testing
go build ./...✓go test ./...✓go vet ./...✓