diff mbox series

[ovs-dev,3/3] ovn-nbctl.8: Document broadcasting behavior of 'switch' ports.

Message ID 20250212124149.3007842-4-i.maximets@ovn.org
State Accepted
Headers show
Series Fixes for broadcast behavior in Spine-Leaf topology. | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot-_Build_and_Test success github build: passed
ovsrobot/github-robot-_ovn-kubernetes success github build: passed
ovsrobot/github-robot-_Build_and_Test success github build: passed
ovsrobot/github-robot-_ovn-kubernetes success github build: passed

Commit Message

Ilya Maximets Feb. 12, 2025, 12:41 p.m. UTC
In a Spine-Leaf topology, initial packets for MAC addresses that
are not learned yet will be broadcasted within a spine switch.
It may be desirable for some configurations, because the nodes
don't need to be configured with all the addresses of all the ports
as with a single flat switch.  This improves control plane scalability,
provides locality of changes and allows to have more ports within a
single L2 network.  But the broadcast may also cause issues on the
dataplane side of things, so may not be desirable for other types
of setups or traffic patterns.

Document the broadcasting and learning behavior, so users can make
an informed choice while planning their virtual network topology.

Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
---
 utilities/ovn-nbctl.8.xml | 24 +++++++++++++++++++++---
 1 file changed, 21 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/utilities/ovn-nbctl.8.xml b/utilities/ovn-nbctl.8.xml
index 19f121142..aa0291375 100644
--- a/utilities/ovn-nbctl.8.xml
+++ b/utilities/ovn-nbctl.8.xml
@@ -758,9 +758,27 @@ 
 
           <dt><code>switch</code></dt>
           <dd>
-            A connection to another logical switch.  The optional argument
-            <code>peer</code> identifies a logical switch port that connects
-            to this one.
+            <p>
+              A connection to another logical switch.  The optional argument
+              <code>peer</code> identifies a logical switch port that connects
+              to this one.
+            </p>
+            <p>
+              All logical switch ports of that type have implicit 'unknown'
+              addresses and FDB learning enabled (unless port security is set).
+              This comes with all the positive and negative sides of the
+              'unknown' address.  Static addresses-to-port mappings don't need
+              to be maintained on each node and only the actually used mappings
+              are learned, but at a cost of broadcasting packets for which the
+              destination address is not learned yet.
+            <p>
+            </p>
+              FDB learning will also cause not learned yet packets to be sent
+              to controller from each switch-switch connection they traverse.
+              This should be taken into consideration while planning to have
+              many directly connected switches within a single availability
+              zone.
+            </p>
           </dd>
 
           <dt><code>localnet</code></dt>