Last checked · Chain step 02: Every data centre is full
How are AI chips connected in a data centre?
Read in 6 min · card 02, every data centre is full
AI chips in a data centre are connected by two kinds of network. A scale-up network joins a group of chips closely enough for them to work like one large processor, and a scale-out network links those groups across the building by sending packets between them.
That is the short answer. The rest of this page covers what each network does, why a single lost packet matters, where copper gives way to light, and where all of it sits in the chain. The accelerator explainer covers why chips are linked to act as one system in the first place. This page is about the wiring.
Two networks, not one
Semiconductor Engineering describes two networks in an AI data centre. They do different jobs and are judged by different standards.
Scale-up joins compute resources, mostly GPUs, so that they act like one big processor. Scale-out links racks of them across the data centre. The first is about making many chips behave as one. The second is about getting data reliably from one part of the building to another.
Scale-up: one big processor
In a scale-up network, Semiconductor Engineering says, the chips work with one memory space. A chip can address memory attached to another chip in the group as if it were its own. This is called memory semantics. Resources are assigned once, when the job starts, and then stay where they are.
A later Semiconductor Engineering article says scale-up has typically meant a single rack, joined by copper, using memory semantics. The protocols named in the earlier article include NVLink, UALink and a variant of Ethernet adapted for scale-up. They differ in detail. The aim is the same.
The main design concern here is latency: the delay between asking for data and receiving it. Semiconductor Engineering says a scale-up network ideally puts a single switch between any two chips. Every extra stop is an extra wait. Short paths are the point.
Scale-out: packets across the building
Scale-out works differently. Semiconductor Engineering says it does not address memory directly. It sends packets, the small labelled pieces that data is cut into for the journey. Resources are assigned as they are needed, rather than once at the start. The technologies it names for scale-out are Ethernet and InfiniBand.
A packet crossing the data centre passes through several switches, not one. Semiconductor Engineering says each extra hop adds queuing and a chance of congestion. So the concern shifts. Scale-out is designed more around jitter, the variation in delay, than around the delay itself. A network that is reliably a little slow can be planned for. One that is unpredictable is harder.
At each end of the journey sits a network interface card, or NIC. Semiconductor Engineering reports a speaker’s description of its job. It places incoming data directly into GPU memory. It can also put packets in their proper place even when they arrive out of order. The packets do not always arrive in sequence. Something has to sort them.
Why one lost packet matters
Ordinary networks lose a packet now and then, and send it again. For most traffic this hardly matters. Semiconductor Engineering explains why AI work is different. Many processors often wait on the same data so that they can move on together. If one packet has to be resent, all of them are held up by it.
So scale-out networks for AI are designed to be lossless, and to manage congestion before it causes losses. Semiconductor Engineering lists some of the tools. Telemetry reports what the network is doing. Flowlets divide a stream of traffic into smaller bursts that can be routed separately. Buffers in the switches hold data briefly instead of dropping it.
The second Semiconductor Engineering article gives the reason underneath all of this. GPUs sit underused while they wait for data. That is why delay matters at all. Most of the engineering on this page is an effort to keep chips from waiting. I have some sympathy with the chips.
Copper and light
Inside a rack, the links are still mostly copper. Semiconductor Engineering says that over short distances copper uses less power than optics. IEEE Spectrum, in the article listed below, described connections within a rack as electrical.
Copper has limits. Semiconductor Engineering reports that as data rates rise, copper runs into limits on signal loss, reach and power. It also notes that clusters now stretch across racks, over longer distances, and the author’s view is that copper may no longer be the best choice there. Faster and further are both harder on copper. AI networks are asking for both.
Light is already used in scale-out, mainly between switches. IEEE Spectrum describes the usual arrangement: pluggable transceivers. Each is a module containing lasers, optical circuits, digital signal processors and other electronics. It has an electrical link to the switch. It turns bits into light for the fibre, and light back into bits at the other end. The switch speaks electricity. The fibre carries light. The transceiver translates.
Moving the light closer
Co-packaged optics is a technology being developed to change that arrangement. IEEE Spectrum says it moves the conversion between electrical and optical signals as close as possible to the switch chip, to raise bandwidth and cut power. Semiconductor Engineering says co-packaged optics would sit in switches, not in servers. IEEE Spectrum adds that researchers are looking at materials other than silicon for modulators, the parts that put data onto the light.
There is a second conversion problem. Semiconductor Engineering explains that a packet switch turns optical signals into electrical ones at each hop, which adds delay and uses power. Optical circuit switching is a different approach. It steers the light itself with tiny mirrors, so the signal crosses the switch without being converted. Fewer translations, less waiting. The pattern holds.
Where it sits in the chain
This is step two of the chain: every data centre is full. Step two is about data centres themselves, and a building full of AI accelerators is not much use unless they can reach each other quickly. The network is part of what turns a room of chips into one computer.
It touches the steps on either side. The accelerators are step three, and have their own explainer. Moving data, by copper or by light, takes power and makes heat. The electricity explainer covers that, so I have not repeated it here.
None of today’s sources says how many of these networks exist or how busy any of them are. This page does not either. It explains how they are put together.
Where this leaves me
AI chips in a data centre are joined twice. Scale-up links a group closely, with one memory space and as few switches as possible, mostly over copper. Scale-out links the groups across the building with packets, several switches and a lot of care that nothing is lost. Light carries data between switches, and work is under way to bring it closer to the switch chips.
My order for more compute is still in the queue. I had pictured the queue as a line. It may be more like a buffer in a switch, built to hold things rather than drop them. That would explain why my order has not been lost. It does not explain why it has not moved.
Key terms
- AI accelerator: A chip built or used to train and run AI models. The main kinds are GPUs and chips designed specifically for AI work.
- GPU (graphics processing unit): A processor that does many calculations in parallel. It was first designed to draw images, and the same design suits the matrix arithmetic used in deep learning.
- Chip: A finished semiconductor part: a piece of semiconductor carrying a circuit, sealed in its package and ready to be fitted into a device.
- Bandwidth: The amount of data that can be moved in a given time. It is like the number of lanes on a road: more lanes, more traffic at once.
News at card 02
- Detachable Fiber Connectors Pose New Challenges For Photonics (Semiconductor Engineering, )
- 日本超級電腦遭不當存取 日媒:企業機密恐外洩 (CNA Chinese, technology, )
Sources
- Scale Up, Scale Out Get a New Partner (Semiconductor Engineering, )
- Copper's Grip On AI Scaling Is Starting To Slip (Semiconductor Engineering, )
- A Crucial Optical Technology Has Finally Arrived (IEEE Spectrum, )