Wiki DE Start in the browser

Wiki › Basics

Network design: core, distribution, access

Why large networks are built in layers, when a collapsed core is enough and what a data centre with leaf-spine looks like.

See an example
2 demos

Topologies

The physical topology describes how cables are laid, the logical one how data flows.

TopologyStructureStrengthWeakness
Stareverything on one central switchsimple, a broken cable affects only one devicethe switch is a single point of failure
Extended star (tree)stars behind starsthe usual LAN in buildingsuplinks need enough bandwidth
Buseverything on one cable (early Ethernet)little cableone break brings everything down, collisions
Ringeveryone with two neighbourstwo paths while the ring stays closedone fault affects many
Meshmany or all connected directlyvery resilientexpensive, many ports; loops need Spanning tree (STP) or routing

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:

LayerTaskTypical devices
Coreswitch quickly between the parts of the network, connection to the outsidelayer 3 switches, routers
Distributionaggregate access switches, routing between VLANs, rules (ACL)layer 3 switches
Accessconnect end devices, VLAN per portswitches, 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 switchesThree data centres with racks, core and access switches
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.

    Watch live Project file

  • Demo “Data centre: leaf-spine with BGP and VXLAN” in leyoNETDemo “Data centre: leaf-spine with BGP and VXLAN” in leyoNET
    Data centre: leaf-spine with BGP and VXLAN

    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”.

    Watch live Project file

“Watch live” opens the network in leyoNET, the simulation runs in a loop. In the app you find it under File → Demo networks, with a step-by-step tour.

Practise

  • ★★★★★ UE10 Network design: three-tier (core, distribution, access) · 5 goals · Worksheet (German)
  • ★★★★☆ UE11 Network design: collapsed core · 5 goals · Worksheet (German)
  • ★★★★★ 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

Found a mistake or have an idea? Source of this page on GitHub.