Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Difference between Layer 3 Switch & Router

Status
Not open for further replies.

okanyilmaz

IS-IT--Management
Oct 22, 2001
38
0
0
TR
Could you tell me what are the differences between a router and a layer 3 switch?
 
Layer 3 switch has routing and switching capabilities.
but a router just routes the traffic and can not be used as a switch.
 
;-) Can be used as a bridge tho....
so not totally true..but 90% right.
 
Sharb is correct. I would add... in moderm networking, a router is usually an edge device (LAN to WAN connections) with a small number of ports on it (one or two ethernet ports and one or more serial ports). It has low performance but great flexibility in the protocols it supports (IP, IPX, Appletalk...) A layer 3 switch is usually a core or distribution device with a large number of ethernet ports. The supported protocol(s) are usually limited to IP and sometimes IPX. This device has blazing fast performance, but is limited in it's flexibility.
 
Hold it... A router most certainly can switch depending on the model. remember something called CEF? Cisco Express Forwarding?? This is a form of fast switching which takes place at layer 3..


Normally a router will hold the entries in a cache and then decide where to route them.. A switch will do that for the first.. but after that, it's switching all the packets for the datastream. All occurs at layer 3 PACKETS.. unlike a normal switch which operates at layer 2 FRAMES..

If I had to make a distinction.. I would say that a layer 3 switch takes the first packet, builds the switch table/path from it and then switches the rest of the data stream. The router on the other hand, looks at each packet then routes it to the next hop. The big difference is the switch will be ALOT faster.. but like some pointed out.. it will be more limited to what it can do other then switch.

This short answer grossly simplifies all of it but it gets the point across that you can not make a blanket statement any more one way or the other. It's just not that simple in todays networks.

Also, on the 6500s, 8500s, the MSFC is a *switch* and a *router*.. so it's not just router with split personalities.

and the list goes on...

MikeS Find me at
"Diplomacy; the art of saying 'nice doggie' till you can find a rock" Wynn Catlin
 
The short answer is, a router routes packets via software, a layer 3 switch routes via hardware. They both have a "switching" function not really to be confused with layer 2 switching, but the internal switching that a router must do to get a packet or a frame from one interface to the other.
 
The short answer is, a router routes packets via software, a layer 3 switch routes via hardware. They both have a "switching" function not really to be confused with layer 2 switching, but the internal switching that a router must do to pass data from one interface to the other.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top