Skip to content

The CLI — Reading the Fabric · Part 6 of 10

Act 4 — Layer 4: Which rail, which port?

Building the model…

Layer 4 maps GPUs to rails: GPU n owns ConnectX-8 SuperNIC n and rear OSFP port n. Inspect the rear I/O bay to match PCIe addresses, mlx5 devices, and rail numbers.

So far you have read one port at a time. With eight per and hundreds of nodes, the first problem is often finding which port to read. You need a map from rails to to switch ports.

The rail map

Loading diagram…

On a real cluster the map comes from three places, and you should know how to use each:

  • LLDP. Every port learns its neighbour. nv show interface lists the neighbour host and port for every switch port, and lldpctl on the node does the same from the other side. LLDP is the ground truth for what is actually plugged in.
  • The cabling plan. The design that says rail 3 of node A goes to swp5 on leaf-rail3. When LLDP disagrees with the plan, the cable is in the wrong place.
  • Fabric management. on (netq show interfaces, netq check interfaces) or on shows every link in one view and flags the bad ones.

In the Lab 0 simulator, the UFM server terminal gives you that map with one command, show ufm topology. Its output is labelled as tutorial scaffolding: it is the map a NetQ or UFM view would give you, not literal output from either product.

Rail  Leaf Port        Node HCA  Node Netdev  Switch Port State
----  ---------------  --------  -----------  ------------------
0     leaf-rail0.swp2  mlx5_0    eth0       up
1     leaf-rail1.swp3  mlx5_1    eth1       up
2     leaf-rail2.swp4  mlx5_2    eth2       up
3     leaf-rail3.swp5  mlx5_3    eth3       protodown/linkflap   <- fault
4     leaf-rail4.swp6  mlx5_4    eth4       up
...

The map tells you where to look: rail 3, mlx5_3 / eth3 on the node, swp5 on leaf-rail3. Then you read both ends, exactly as in Act 1.

Recovering a port the switch disabled

What causes :

  • A failing optical (the most common cause at scale — optics fail often)
  • Damaged fibre (bent beyond minimum bend radius, crushed, contaminated connector)
  • A connector not fully seated
  • problems in the NIC or switch that make the link state machine oscillate

What to do:

  1. Clean and reseat the connector at both ends.
  2. Replace the optic with a known-good unit.
  3. If the problem persists, replace the cable.
  4. Only after the physical fault is fixed, clear the protodown state on the switch and confirm the port stays up:
bash
cumulus@leaf-rail3:~$ sudo ip link set swp5 protodown_reason linkflap off
cumulus@leaf-rail3:~$ sudo ip link set swp5 protodown off
cumulus@leaf-rail3:~$ nv show interface swp5 link     # oper-status up, protodown disabled

Clearing protodown before fixing the cause just restarts the flapping. Lab 9 walks through this recovery.


Read aloudPage 6