I only have two nodes so I have not been able to test the below.
Today as we all know we can do 2-node and 3-node clusters using direct DAC cables keeping the latency very low. With 2-nodes we get good scaling with Tensor-parallel workloads and if you have 3-nodes then you are stuck with pipeline-parallel workloads not adding any speed. If you want 4-nodes or more a switch is required adding latency affecting Tensor-parallel workloads.
So what if we could do 4-nodes without the latency penalty?
With the two ConnectX-7 ports per unit we can do 3-nodes using 3 QSFP56 DAC cables. If you try 200G QSFP56 to 2x 100G QSFP56 breakout cables you run out of ports in the nodes before you have a full mesh since you can’t recombine the spare 100G ends together.
Let me introduce an option that can: 200GBASE-SR4 transceivers, they are the optical version of the DAC cable above but where you can break out and recombine the lanes as you want using basic MPO-12 to LC-LC breakout cables and LC-LC duplex couplers.
The connectivity is pretty straight forward. Plug in one transceiver in each of your 4 nodes. Plug in one breakout cable into each transceiver.
Join the breakout cables as following (LC-LC 5 and 6 are unused):
| Source node | Source cable | Destination node | Destination cable |
|---|---|---|---|
| Node-1 | LC-LC 1 | Node-2 | LC-LC 3 |
| Node-1 | LC-LC 2 | Node-2 | LC-LC 4 |
| Node-2 | LC-LC 1 | Node-3 | LC-LC 3 |
| Node-2 | LC-LC 2 | Node-3 | LC-LC 4 |
| Node-3 | LC-LC 1 | Node-4 | LC-LC 3 |
| Node-3 | LC-LC 2 | Node-4 | LC-LC 4 |
| Node-4 | LC-LC 1 | Node-1 | LC-LC 3 |
| Node-4 | LC-LC 2 | Node-1 | LC-LC 4 |
This gives us a ring of 100G links, for a full mesh we can add two regular QSFP56 DAC cables, one from Node-1 to Node-3 and one from Node-2 to Node 4.
With the full physical mesh established, configure /31 ranges on each point to point link like the the 2-node and 3-node clusters. If you used port 2 for the ring then you will have enP2p1s0f0np0 go to enP2p1s0f1np1 in one direction and enP2p1s0f1np1 to enP2p1s0f0np0 in the opposite direction.
This entire thing could be done using custom QSFP56 DAC cables as well, but as a quick test to see what the perfomance gains are, the above can be done using off the shelf parts.
The eagled eyed of you can have probably already figured out that this approach could be used to make a 5-node cluster, or offer 4x100G connectivity to a NAS.
