← All questions
Card 105 · Networking

Explain the difference between a switch and a router.

Answer

Switch

Router

In home “DSL routers”, switch, router, Wi-Fi and modem are combined in one device. Layer-3 switches can also route.

Diagram

SWITCHLayer 2MAC addressesSame networkforwards broadcastsMAC address tablemany portsROUTERLayer 3IP addressesDifferent networksblocks broadcastsRouting tableOSPF, BGP …

Key vocabulary

TermMeaningExample
switcha layer-2 device that connects devices in a LANAll PCs on this floor are connected to one switch.
MAC address tablethe list of which MAC is on which portThe switch learns its MAC address table automatically.
routing protocola protocol routers use to share routesOSPF is a common routing protocol.
uplinkthe connection to a higher-level deviceThe switch’s uplink goes to the core switch.
layer-3 switcha switch that can also routeWe route between VLANs on a layer-3 switch.
managed switcha switch that can be configured (VLANs, etc.)You need a managed switch for VLANs.

Useful phrases

Talk about it

  1. Your home “router” – which functions does it really include? Name them.
  2. When do you need a router, and when is a switch enough? Give two scenarios.
  3. What is a layer-3 switch, and why are they popular in company networks?

IHK hint

German: Switch: Schicht 2, MAC-Adressen, Ethernet-Frames, gleiches Netz. Router: Schicht 3, IP-Adressen, verbindet Netze, Routingprotokolle (OSPF, RIP, IS-IS, BGP).