Switches are the most common network device deployed on MSP-managed networks, while routers are the least popularโ€”and not by a small margin.The Layer 3 switch can build both MAC and IP forwarding tables, enabling it to perform Layer 3 processing in hardwareโ€”meaning the Layer 3 switch is faster than a router.

The data in Auvikโ€™s recently published report, Managing Network Vendor Diversity: The MSP Challenge, shows switches represent almost half (48%) of all network devices on MSP-managed sites, while routers account for only 6% of the total.

Does this mean the death of the router is imminent? In short, noโ€”and hereโ€™s why.

Layer 2 vs Layer 3

Switches were built to connect devices on the same LAN and operate at Layer 2 of the OSI modelโ€”also known as the data link layer.

The main job of a Layer 2 switch is to process Ethernet data frames. And it does this far more efficiently than its ancestor, the old-school hub, which would simply retransmit packets in a blast without analyzing packet data.

By comparison, a Layer 2 switch has the ability to learn which ports correspond with which MAC addresses by using forwarding tables. This, combined with custom-built ASICs, means the switch can process packets at blazing speeds far superior to the hub.

Climbing up a layer on the OSI model, the router exists on Layer 3โ€”the IP layer. In most small and mid-sized business (SMB) environments, routers were traditionally provided by the internet service provider (ISP), and were used to connect users to the broader network outside the LAN.

But hereโ€™s where it gets a bit more complicated. The router could also be used internally to route between different VLANs the Layer 2 switch carry. Picture it as a gate between your neighborhood and the rest of town: The router lets you communicate outside your neighborhood using IP addresses.

Hereโ€™s an example. An old-school SMB network has two different VLANs on the same switchโ€”one for workstations, one for servers. For a workstation to access resources on a server, packets would have to cross from the workstation VLAN into the server VLAN. This requires routing since theyโ€™re two different neighborhoods.

The traffic would flow from the workstation VLAN to the router, and potentially back to that same switch as traffic returns from the server VLAN. Thatโ€™s a long journey for a packet, especially since both VLANs are carried on the same switch. To eliminate a step (and a device), an even smarter switch was created.

Layer 2 vs Layer 3 Switches

So what is a Layer 3 switch? Essentially, a Layer 3 switch combines the capabilities of the Layer 2 switch and the router. Since it can operate at both layers, the Layer 3 switch has two purposes:

  1. Connect devices on a LAN or VLAN using MAC addresses, and
  2. Connect LANs or VLANs to the broader network using IP addresses.

Pros and cons of the Layer 3 switch

While Layer 2 switches use custom-built ASICs that process traffic very quickly, routers have to process traffic using the software since they often connect different types of hardware at the network level. This means routers can be slower than switches, which is one benefit of the Layer 3 switch.

The Layer 3 switch was born once Ethernet was standardized as the data link layer protocol, and IP was standardized as the network layer protocol. With these protocols, it can build both MAC and IP forwarding tables, enabling it to perform Layer 3 processing in hardwareโ€”meaning the Layer 3 switch is faster than a router.

However, while a Layer 3 switch can do more with one box, it tends to be more expensive than a Layer 2 switch. So if your clientโ€™s business is growing, and they need more than one 24-port or 48-port switch, youโ€™ll have a decision to make. You can either create the network with several less expensive Layer 2 switches and a router or purchase several Layer 3 switches and eliminate the router.

Who needs a router?

The true necessity of a router depends on the structure of your clientโ€™s IT environment and their internal networking needs. On a small network with a couple of user devices that communicate mostly outbound, it likely makes economic sense to use an all-in-one box that includes Layer 2 routing (and firewall) functions without a dedicated switch.

Routers also make sense for large networks with hundreds of endpoints, as these businesses tend to require complex routing functions like quality of service (QoS) and network address translation (NAT) internally. While these capabilities may be available on high-end Layer 3 switches, theyโ€™re often too expensive compared to a dedicated router.

Of all types of client businesses, SMBs tend to need routers least. Thatโ€™s because the only router on most SMB networks today is provided by the ISP to connect to its network. A routerโ€™s basic functionality (and way more) is built into most firewallsโ€”so itโ€™s likely an SMB could eliminate the cost and necessity of a router by connecting a Layer 3 switch to a firewall.

Regardless of the network structure thatโ€™s right for your client, routing as a function isnโ€™t dying outโ€”there are just more options than the traditional standalone router.


Get your free 14-day Auvik trial.

Get templates for network assessment reports, presentations, pricing & moreโ€”designed just for MSPs.

Ebook cover - The Ultimate Guide to Selling Managed Network Services
  1. David Maggio Avatar
    David Maggio

    I disagree with your statement “You can either create the network with several less expensive Layer 2 switches and a router, or purchase several Layer 3 switches and eliminate the router”. You can build a flexible and cost effective network with several Layer 2 switches and one or just a few Layer 3 switches. You only need the Layer 3 IP capability when traversing between VLAN’s. A router is only really necessary when connecting to non-Ethernet circuits (ie. T1 or T3 circuits), if Network Address Translation (NAT) or Port Address Translation (PAT) is required, or if certain WAN routing protocols are needed (ie. IGRP, EIGRP, GRE, etc.).

    1. Steve Petryschuk Avatar
      Steve Petryschuk

      Good point. In this example, your Layer 3 switch is performing the same function as the router in the example provided. In many SMBs environments I work with, the routing is often left entirely up to the firewall, so there’d be no router or switch performing L3 functions at all. I think what you’ve rightly identified is that the need of a router depends on environment and the requirements of the client – and although most of the time a L3 switch will do the job, there are still some cases where you’ll need to put in a dedicated router.

  2. Gopi Shan Avatar
    Gopi Shan

    My personal experience is bulk of the time a router is only required when interfacing with TDM or any legacy WAN links. Cheers.

  3. Michale Avatar
    Michale

    Can a layer 3 switch utilize both MAC and IP address?

Leave a Reply

Your email address will not be published. Required fields are marked *