In a typical server rack, a single switch is mounted at the very top — hence the name: top of rack. Each server in the rack connects to it with a cable just a few metres long, and the ToR passes the accumulated traffic upstream, to the switches of the next network tier.
How the connection is set up
A typical ToR is a fixed switch one rack unit tall. For example, the Cisco Nexus 93180YC-FX provides 48 ports at 1/10/25 Gbit/s to the servers and up to six ports at 40/100 Gbit/s upstream. Cables inside the rack are short, so instead of expensive optical transceivers, fixed cable assemblies are often used:
| Cable | Distance | Typical use |
|---|---|---|
| DAC | metres, within a rack | server to switch, the simplest option |
| AOC | tens of metres | adjacent racks |
| Optical transceivers | hundreds of metres and more | links between rows and racks |
ToR, EoR and MoR
The access switch can be placed not only at the top of a rack but also at the end of a row of racks (EoR) or in the middle (MoR). With EoR, the racks are connected to a powerful row switch with long cables: there is less equipment, but more cable trays and more installation time.
| Option | Where it sits | What it provides |
|---|---|---|
| ToR | top of each rack | short cables; the rack is added together with its switch |
| EoR | end of a row of racks | fewer switches, long copper runs |
| MoR | middle of a row | a compromise on cable length between racks |
Fault tolerance
The ToR is a shared point for the whole rack, so its failure cuts the servers off from the network. For protection, servers are connected to a pair of ToR switches that work as one device (MLAG): if one fails, traffic goes through the other. A newer mechanism is the standards-based EVPN Multihoming: it also gives a server active links to two switches, but without a dedicated link between them.
Where it is used
ToR is the de facto standard for modern data centres: in a leaf-spine topology, each ToR acts as the leaf switch and connects to the spine switches of other racks. A rack of GPU servers is connected to the network through its own ToR in the same way, and high-speed links run between the racks.
Sources
the term is written from these pages- NVIDIA Cumulus Linux — Data Center Host to ToR Architecturedocs.nvidia.com/networking-ethernet-software/cumulus-linux-42/Network-Solutions/Data-Center-Host-to-ToR-Architecture/(opens in a new tab)
- Cisco Nexus 93180YC-FX Series Switches Data Sheetcisco.com/c/en/us/products/switches/nexus-93180yc-fx-switch/index.html(opens in a new tab)
Verified 9 Nov