Depending on who you ask, the answer will be different. It seems everyone has an opinion about what a Layer 3 switch is. I have my own personal definition, which is based on the OSI model.
Also, some definitions really beat around the bush. All of this creates confusion in the mind of newbies people concerned and clearly, when you try to make it clear, the answer is not simple, although specialists usually manage to get out of it without too much trouble.
Let’s see what are different definitions we find of Layer 3 switching on the Internet.
1) A hardware router (ASIC)
When you type “L3 switch” on Google, the first link you find explains to you that it’s nothing else but a very fast router, where the software operations are made by some specialized hardware.
- it’s got the same number of interfaces (like 2 or 3),
- uses the same routing protocols and achieve the same goals,
- but “the key difference between Layer 3 switches and routers lies in the hardware technology used to build the unit. The hardware inside … replaces some of a router’s software logic with hardware to offer better performance in some situations.”
2) An Inter-VLAN switch
Now if you look further into Google, a L3 switch is a switch with routing capabilities:
- it’s got 24+ ports (like a Ethernet switch)
- there’s no WAN link
- ip routing is enabled on it
- … and it works very quickly (fortunately)
Then, a L3 switch is an Ethernet switch with ip routing capabilities.
3) A software-improved router
When you think about it, switching really is when you direct a bunch of data to a interface (and not a next-hop identified by a Layer 3 address), so in most cases, there’s a matching between a destination address and an output interface.For example :
- Ethernet switching : association between destination MAC address an output interface
- Frame-Relay : association between a DLCI and an output interface
- MPLS : association between a label and an output interface (in its original idea)
And guess what, it’s exactly what Fast Switching and CEF do!
PS : The fact that it can be done by ASIC rather than software does not matter. It’s not what it makes its essence. Anything can be done by ASICs, yet it does not transform them into some other type of machines (just faster ones).