Skip to content

Commit 61df371

Browse files
committed
Update Build Wiring Diagram page
Signed-off-by: Pau Capdevila <[email protected]>
1 parent c0bc7ef commit 61df371

File tree

1 file changed

+21
-42
lines changed

1 file changed

+21
-42
lines changed

docs/install-upgrade/build-wiring.md

+21-42
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,13 @@
11
# Build Wiring Diagram
22

3-
!!! warning ""
4-
Under construction.
3+
!!! note ""
4+
This documentation is actively maintained and updated.
55

66
## Overview
77

8-
A wiring diagram is a YAML file that is a digital representation of your network. You can find more YAML level details in the User Guide section [switch features and port naming](../user-guide/profiles.md) and the [api](../reference/api.md). It's mandatory for all switches to reference a `SwitchProfile` in the `spec.profile` of the `Switch` object. Only port naming defined by switch profiles could be used in the wiring diagram, NOS (or any other) port names aren't supported.
8+
A wiring diagram expresses your network topology in YAML format, serving as a blueprint for your infrastructure. For detailed YAML specifications, refer to the User Guide section [switch features and port naming](../user-guide/profiles.md) and the [api](../reference/api.md). All switches must reference a `SwitchProfile` in the `spec.profile` of the `Switch` object. Only port names defined by switch profiles can be used in the wiring diagram - NOS (or any other) port names are not supported.
99

10-
In the meantime, to have a look at working wiring diagram for Hedgehog Fabric, run the sample generator that produces
11-
working wiring diagrams:
12-
13-
```console
14-
ubuntu@sl-dev:~$ hhfab sample -h
15-
16-
NAME:
17-
hhfab sample - generate sample wiring diagram
18-
19-
USAGE:
20-
hhfab sample command [command options]
21-
22-
COMMANDS:
23-
spine-leaf, sl generate sample spine-leaf wiring diagram
24-
collapsed-core, cc generate sample collapsed-core wiring diagram
25-
help, h Shows a list of commands or help for one command
26-
27-
OPTIONS:
28-
--help, -h show help
29-
```
30-
31-
Or you can generate a wiring diagram for a VLAB environment with flags to customize number of switches, links, servers, etc.:
10+
To get started with Hedgehog Fabric, you can generate a wiring diagram for a VLAB environment with flags to customize number of switches, links, servers, etc.:
3211

3312
```console
3413
ubuntu@sl-dev:~$ hhfab vlab gen --help
@@ -79,13 +58,13 @@ spec:
7958
```
8059
8160
## Design Discussion
82-
This section is meant to help the reader understand how to assemble the primitives presented by the Fabric API into a functional fabric.
61+
This section helps you understand how to combine the Fabric API primitives into a functional fabric.
8362
8463
### VPC
8564
86-
A VPC allows for isolation at layer 3. This is the main building block for users when creating their architecture. Hosts inside of a VPC belong to the same broadcast domain and can communicate with each other, if desired a single VPC can be configured with multiple broadcast domains. The hosts inside of a VPC will likely need to connect to other VPCs or the outside world. To communicate between two VPC a *peering* will need to be created. A VPC can be a logical separation of workloads. By separating these workloads additional controls are available. The logical separation doesn't have to be the traditional database, web, and compute layers it could be development teams who need isolation, it could be tenants inside of an office building, or any separation that allows for better control of the network. Once your VPCs are decided, the rest of the fabric will come together. With the VPCs decided traffic can be prioritized, security can be put into place, and the wiring can begin. The fabric allows for the VPC to span more than one switch, which provides great flexibility.
65+
A VPC enables Layer 3 isolation and serves as the primary building block for network architecture. Hosts within a VPC belong to the same broadcast domain and can communicate with each other. If desired, a single VPC can be configured with multiple broadcast domains. For communication between VPCs, a *peering* connection must be established. VPCs can logically separate workloads, enabling additional controls. This separation isn't limited to traditional database, web, and compute layers - it can accommodate development teams requiring isolation, building tenants, or any other organizational structure that benefits from network control. Once VPCs are defined, you can establish traffic priorities, implement security measures, and plan the physical wiring. The fabric allows VPCs to span multiple switches, providing enhanced flexibility.
8766
88-
``` mermaid
67+
```mermaid
8968
graph TD
9069
L1([Leaf 1])
9170
L2([Leaf 2])
@@ -96,9 +75,9 @@ graph TD
9675
S3["Server 3
9776
192.168.18.85"]
9877

99-
L1 <--> S1
100-
L1 <--> S2
101-
L2 <--> S3
78+
L1 --- S1
79+
L1 --- S2
80+
L2 --- S3
10281

10382
subgraph VPC 1
10483
S1
@@ -108,16 +87,16 @@ graph TD
10887
```
10988
### Connection
11089

111-
A connection represents the physical wires in your data center. They connect switches to other switches or switches to servers.
90+
A connection represents the physical cabling in your data center. Connections link switches to other switches or switches to servers.
11291

11392
#### Server Connections
11493

115-
A server connection is a connection used to connect servers to the fabric. The fabric will configure the server-facing port according to the type of the connection (MLAG, Bundle, etc). The configuration of the actual server needs to be done by the server administrator. The server port names are not validated by the fabric and used as metadata to identify the connection. A server connection can be one of:
94+
A server connection links servers to the fabric. The fabric configures server-facing ports according to the connection type (MLAG, Bundle, etc). Server administrators must handle the configuration of the server side. Server port names serve as metadata to identify connections and are not validated by the fabric. Server connections include:
11695

117-
- *Unbundled* - A single cable connecting switch to server.
118-
- *Bundled* - Two or more cables going to a single switch, a LAG or similar.
119-
- *MCLAG* - Two cables going to two different switches, also called dual homing. The switches will need a fabric link between them.
120-
- *ESLAG* - Two to four cables going to different switches, also called multi-homing. If four links are used there will need to be four switches connected to a single server with four NIC ports.
96+
- *Unbundled* - A single cable connecting switch to server
97+
- *Bundled* - Two or more cables connecting to a single switch (LAG or similar)
98+
- *MCLAG* - Two cables connecting to two different switches (dual homing), requiring a fabric link between switches
99+
- *ESLAG* - Two to four cables connecting to different switches (multi-homing), requiring four switches when using four links
121100

122101
``` mermaid
123102
graph TD
@@ -170,12 +149,12 @@ graph TD
170149
```
171150
#### Fabric Connections
172151

173-
Fabric connections serve as connections between switches, they form the fabric of the network.
152+
Fabric connections link switches to form the network fabric.
174153

175154

176155
### VPC Peering
177156

178-
VPCs need VPC Peerings to talk to each other. VPC Peerings come in two varieties: local and remote.
157+
VPC peering enables communication between VPCs and comes in two forms: local and remote.
179158

180159
``` mermaid
181160
graph TD
@@ -206,7 +185,7 @@ graph TD
206185

207186
#### Local VPC Peering
208187

209-
When there is no dedicated border/peering switch available in the fabric we can use local VPC peering. This kind of peering tries sends traffic between the two VPC's on the switch where either of the VPC's has workloads attached. Due to limitation in the Sonic network operating system this kind of peering bandwidth is limited to the number of VPC loopbacks you have selected while initializing the fabric. Traffic between the VPCs will use the loopback interface, the bandwidth of this connection will be equal to the bandwidth of port used in the loopback.
188+
When no dedicated border/peering switch is available, local VPC peering enables direct communication between VPCs on switches where either VPC has connected workloads. Due to Sonic network operating system limitations, peering bandwidth depends on the number of VPC loopbacks configured during fabric initialization. Traffic uses the loopback interface, with bandwidth matching the loopback port's capacity.
210189

211190
``` mermaid
212191
graph TD
@@ -237,7 +216,7 @@ The dotted line in the diagram shows the traffic flow for local peering. The tra
237216

238217
#### Remote VPC Peering
239218

240-
Remote Peering is used when you need a high bandwidth connection between the VPCs, you will dedicate a switch to the peering traffic. This is either done on the border leaf or on a switch where either of the VPC's are not present. This kind of peering allows peer traffic between different VPC's at line rate and is only limited by fabric bandwidth. Remote peering introduces a few additional hops in the traffic and may cause a small increase in latency.
219+
Remote peering utilizes a dedicated switch for VPC traffic, implemented either on a border leaf or a switch without VPC presence. This enables line-rate communication between VPCs, limited only by fabric bandwidth. While introducing additional network hops may slightly increase latency, it provides higher throughput capacity.
241220

242221
``` mermaid
243222
graph TD
@@ -277,5 +256,5 @@ The dotted line in the diagram shows the traffic flow for remote peering. The tr
277256

278257
#### VPC Loopback
279258

280-
A VPC loopback is a physical cable with both ends plugged into the same switch, suggested but not required to be the adjacent ports. This loopback allows two different VPCs to communicate with each other. This is due to a Broadcom limitation.
259+
A VPC loopback consists of a physical cable with both ends connected to the same switch, typically using adjacent ports. This configuration enables communication between different VPCs, addressing a Broadcom limitation.
281260

0 commit comments

Comments
 (0)