[Networking] Geneve tunnel conncheck#3277
Open
cheina97 wants to merge 1 commit intoliqotech:masterfrom
Open
Conversation
Collaborator
|
Hi @cheina97. Thanks for your PR! I am @adamjensenbot.
Make sure this PR appears in the liqo changelog, adding one of the following labels:
|
ee5dcff to
68f9eb6
Compare
Member
Author
|
/build |
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
This PR adds an active connectivity health-check (ping) mechanism for Geneve tunnels, tracking connection status and latency directly on the
GeneveTunnelCRD.What changed:
GeneveTunnelCRD extended — added aStatussubresource withvalue(Connected/Error) andlatencyfields, pluskubectl getprint columns for quick status inspection.InternalNodeReconciler— on reconcile, lazily initialises aConnCheckerbound to the gateway's inner Geneve IP; registers a UDP ping sender per tunnel and wires a callback that writes connectivity results back toGeneveTunnelstatus. Senders are stopped when the correspondingInternalNodeis deleted.InternalFabricReconciler— lazily starts aConnCheckerreceiver bound to the node's inner Geneve IP, so the fabric side can respond to pings from the gateway.ConnCheckerimprovements:BindIPoption), enabling per-interface isolation between Geneve and WireGuard ping traffic.PingLatencyAlphaoption, default 0.1) instead of using raw per-packet measurements.geneve-fabriccomponent):--geneve-ping-enabled(defaulttrue)--geneve-ping-port(default12346)--geneve-ping-interval(default2s)--geneve-ping-loss-threshold(default5)--geneve-ping-update-status-interval(default10s)--geneve-ping-latency-alpha(default0.1)--geneve-ping-portmust match the gateway value.--ping-latency-alphaapplies the same EWMA smoothing to WireGuard connection checks.How it works
When
--geneve-ping-enabled=falsethe status is set toConnectedimmediately without running the ping loop.Test plan
kubectl get genevetunnelsshowsConnectedand a latency value after a few seconds.InternalNode; verify no goroutine leak (sender is stopped).--geneve-ping-enabled=false; verify status is immediatelyConnected.