A network switch is a hardware device that connects devices within a local area network and forwards data frames between them based on MAC addresses at the data link layer. By learning which addresses sit on which ports, it forwards traffic only to its destination, improving efficiency over shared media. Switches are foundational building blocks of wired networks in offices, campuses and data centres.

Overview

  • A switch maintains a forwarding table mapping MAC addresses to physical ports.
  • Frames are forwarded only to the port for their destination, reducing collisions and contention.
  • Managed switches add VLANs, quality of service and monitoring capabilities.
  • In data centres, high-radix switches form the spine and leaf fabric carrying east-west traffic.

Key aspects

  • MAC learning and forwarding — The switch observes source addresses to build a table and forward frames to the correct egress port.
  • VLAN segmentation — Logical separation of ports into virtual LANs isolates traffic and improves security and management.
  • Quality of service — Prioritisation and scheduling support latency-sensitive flows over best-effort traffic.
  • Data-centre fabrics — Leaf-spine designs use switches to deliver low-latency, high-bandwidth interconnection at scale.

Applications

  • Connecting workstations, servers and peripherals on an office LAN.
  • Building data-centre fabrics that interconnect compute and storage.
  • Segmenting networks with VLANs for security and traffic isolation.
  • Carrying deterministic flows with time-sensitive networking.

Provenance