In practice they are combined: a star for the end devices, partially or fully meshed above it for redundancy, as in the models below.
The three-tier model
In company and campus networks a structure with three layers has proven itself:
Layer
Task
Typical devices
Core
switch quickly between the parts of the network, connection to the outside
layer 3 switches, routers
Distribution
aggregate access switches, routing between VLANs, rules (ACL)
layer 3 switches
Access
connect end devices, VLAN per port
switches, access points
Every layer has a clear task; faults and changes stay local, and the network grows by attaching more access switches at the bottom. Trunks carrying all VLANs run between the layers, often over fibre.
Collapsed core
In smaller networks core and distribution merge: a layer 3 switch routes between the VLANs and connects directly to the access switches. This saves devices and costs as long as the number of access switches stays manageable.
Leaf-spine in the data centre
In the data centre a lot of traffic flows between servers (“east-west”). Leaf-spine suits this: every leaf switch (where the servers are connected) is linked to every spine. Every path has the same length, and there is no spanning tree because everything is routed (often with BGP). VLANs spanning several leafs are carried by VXLAN.
In the showcase
The data centre network shows all three designs side by side: Zurich in three tiers, Bern with core and distribution in one rack, Basel as a collapsed core. The sites connect to the provider via modems and are linked with IPsec. Redundancy: port channels, Rapid Spanning Tree for the double access uplinks and in Zurich a load balancer in front of two web servers.
Redundancy
A network without backup fails with the first cable. That is why everything is doubled in the showcase:
Double links: core and distribution are connected with two fibres, bundled into a port channel with Port channel and LACP. Both carry traffic; if one fails, everything runs over the other.
Two ways up: every access switch is connected to both distribution switches. That creates a loop, so Spanning tree (STP) runs: the core is the root bridge, one uplink of every access switch is blocked and takes over if the other fails.
Collapsed core in Basel: two copper cables in a port channel between core and access.
In the simulation show spanning-tree on the access switch shows the blocked backup uplink, show etherchannel summary on the core the bundled links. Delete a cable or shut down a port and watch the network keep running.
Three data centres with racks, core and access switches
See an example
Company network: data centres and office
The leyoNET showcase: three data centres and an office, connected via IPsec. Zurich is built in three tiers (core, distribution, access), Bern with combined core and distribution, Basel as a collapsed core; everything redundant with port channels (LACP) and Rapid Spanning Tree, mounted in racks with VLAN colours. The Lucerne office is connected via mobile broadband and shows everyday use: firewall with zones, PoE switch, IP phones on the PBX in Zurich (QoS), camera, WLAN and DHCP. Central services: DNS, PBX, syslog and a load balancer in front of two web servers in Zurich, mail in Bern.
In a loop: Zurich pings Bern through the tunnel, phone 401 calls 402 (via the PBX in Zurich), monitoring opens the web page in Basel, PC Anna and PC Ben open web.zuerich (the load balancer spreads them over two web servers), a notebook on the WLAN pings the mail server, Anna sends Ben an e-mail, Bern queries DNS, Basel pings monitoring.
A data centre like those of large providers: two spines, three leafs, every leaf connected to both spines. The underlay routes with eBGP (one AS per leaf), the overlay extends VLAN 10 (web) and VLAN 20 (database) over all leafs with VXLAN.
First the switches set up their BGP sessions and learn the loopbacks. Then Web 1 pings Web 2 and DB 1 pings DB 2 – both within the same subnet, but across two routed hops. Filter “vxlan” or “bgp”.
★★★★★Data centre: leaf-spine with BGP and VXLAN· 5 goals · Worksheet (German)
★★★★☆Campus with layer 3 switch and fiber· 7 goals · Worksheet (German)
In leyoNET under Tools → Exercise catalogue. Every exercise checks itself.
Read on
Layer 3 switchA switch that also routes: VLAN interfaces (SVIs) as gateways, routing between VLANs, DHCP relay, OSPF and VXLAN.
VLANs and trunksOne switch, several separate networks: access ports, trunks with 802.1Q tag, native VLAN and routing between VLANs.
Spanning tree (STP)Redundant cables without a broadcast storm: root bridge, port roles, blocked ports and what happens without STP.
Documenting networksAreas with network and VLAN, notes, racks, floors, snapshots and reference prices: how a network plan is created that can also be handed in.