Skip to content

Commit 1f95511

Browse files
committed
DIAGRAMS-504: Layer 2 UDN diagram
1 parent 06c52f5 commit 1f95511

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

images/504_OpenShift_UDN_L2_0325.png

127 KB
Loading

modules/nw-udn-best-practices.adoc

-3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,3 @@ Before setting up a `UserDefinedNetwork` custom resource (CR), you should consid
4343
4444
* The cluster subnet and services CIDR for a `UserDefinedNetwork` CR cannot overlap with the default cluster subnet CIDR. OVN-Kubernetes network plugin uses `100.64.0.0/16` as the default join subnet for the network. You must not use that value to configure a `UserDefinedNetwork` CR's `joinSubnets` field. If the default address values are used anywhere in the network for the cluster you must override the default values by setting the `joinSubnets` field. For more information, see "Additional configuration details for user-defined networks".
4545
46-
* A layer 2 topology creates a virtual switch that is distributed across all nodes in a cluster. Virtual machines and pods connect to this virtual switch so that all these components can communicate with each other within the same subnet. If you decide not to specify a layer 2 subnet, then you must manually configure IP addresses for each pod in your cluster. When not specifying a layer 2 subnet, port security is limited to preventing Media Access Control (MAC) spoofing only, and does not include IP spoofing. A layer 2 topology creates a single broadcast domain that can be challenging in large network environments, whereby the topology might cause a broadcast storm that can degrade network performance.
47-
48-
* A layer 3 topology creates a unique layer 2 segment for each node in a cluster. The layer 3 routing mechanism interconnects these segments so that virtual machines and pods that are hosted on different nodes can communicate with each other. A layer 3 topology can effectively manage large broadcast domains by assigning each domain to a specific node, so that broadcast traffic has a reduced scope. To configure a layer 3 topology, you must configure `cidr` and `hostSubnet` parameters.

modules/nw-udn-l2-l3.adoc

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//module included in the following assembly:
2+
//
3+
// *networking/multiple_networks/about-user-defined-networks.adoc
4+
:_mod-docs-content-type: REFERENCE
5+
[id="nw-udn-l2-l3_{context}"]
6+
= Layer 2 and layer 3 topologies
7+
8+
A layer 2 topology creates a virtual switch that is distributed across all nodes in a cluster. Virtual machines and pods connect to this virtual switch so that all these components can communicate with each other within the same subnet. If you decide not to specify a layer 2 subnet, then you must manually configure IP addresses for each pod in your cluster. When you do not specify a layer 2 subnet, port security is limited to preventing Media Access Control (MAC) spoofing only, and does not include IP spoofing. A layer 2 topology creates a single broadcast domain that can be challenging in large network environments, where the topology might cause a broadcast storm that can degrade network performance.
9+
10+
The following diagram shows two nodes that use an UDN with a layer 2 topology to live migrate a pod from `Node 1` to `Node 2`. Each node includes two interfaces:
11+
12+
* A node interface, which is a compute node that connects networking components to the node.
13+
* An Open vSwitch (OVS) bridge such as `br-ex`, which creates an layer 2 OVN switch so that pods can communicate with each other and share resources.
14+
15+
An external switch connects these two interfaces, while the gateway or router handles routing traffic between the external switch and the layer 2 OVN switch. Pods in a node can use the UDN to communicate with each other. The layer 2 OVN switch handles node traffic over UDN so that live migrate of a pod from one node to another is possible.
16+
17+
.A user-defined network (UDN) that uses a layer 2 topology
18+
image::504_OpenShift_UDN_L2_0325.png[A UDN that uses a layer 2 topology for migrating a pod from node-1 to node-2]
19+
20+
A layer 3 topology creates a unique layer 2 segment for each node in a cluster. The layer 3 routing mechanism interconnects these segments so that virtual machines and pods that are hosted on different nodes can communicate with each other. A layer 3 topology can effectively manage large broadcast domains by assigning each domain to a specific node, so that broadcast traffic has a reduced scope. To configure a layer 3 topology, you must configure `cidr` and `hostSubnet` parameters.

networking/multiple_networks/primary_networks/about-user-defined-networks.adoc

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ include::modules/nw-udn-benefits.adoc[leveloffset=+1]
2727
//Limitations that users should consider for UDN.
2828
include::modules/nw-udn-limitations.adoc[leveloffset=+1]
2929

30+
// Layer 2 and layer 3 topologies
31+
include::modules/nw-udn-l2-l3.adoc[leveloffset=+1]
32+
3033
//About CUDN CR
3134
include::modules/nw-cudn-about.adoc[leveloffset=+1]
3235

0 commit comments

Comments
 (0)