Bookmarks

ToR — ToR switch

Top of Rack

A network switch mounted at the top of a server rack, connecting all of its servers to the rest of the data centre network.

Also: top-of-rack switch, ToR switch, top of rack switch

checked 9 Nov

All terms

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:

CableDistanceTypical use
DACmetres, within a rackserver to switch, the simplest option
AOCtens of metresadjacent racks
Optical transceivershundreds of metres and morelinks 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.

OptionWhere it sitsWhat it provides
ToRtop of each rackshort cables; the rack is added together with its switch
EoRend of a row of racksfewer switches, long copper runs
MoRmiddle of a rowa 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

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

  • leaf-spine topology

    leaf-spine is a two-tier network design, while ToR is a switch position; in such a design the ToR usually is the leaf.

In depth in the references

where the topic is covered in detail