nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

difference between Layer 3 switch and Router

This is a discussion on difference between Layer 3 switch and Router within the Computer Networking and Internet/broadband forums, part of the The Lounge category; Dear All. Does anybody know what is difference between Layer 3 switch and Router ? I want technical answer. sorry ...


Go Back   nixCraft Linux Forum > The Lounge > Computer Networking and Internet/broadband

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 06-28-2006, 09:07 PM
Member
User
 
Join Date: Mar 2006
Posts: 63
Rep Power: 0
puppen
Default difference between Layer 3 switch and Router

Dear All.

Does anybody know what is difference between Layer 3 switch and Router ?

I want technical answer.

sorry for out of topic question.

Regards.
Puppen
__________________
someone somewhere is made for you.
LOVE is Journey not a destination.
ALL I want is EVERYTHING.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-29-2006, 12:15 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 554
Rep Power: 6
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

Layer 3 switch are almost same as a router with following differences
Layer 3 switch is optimized to data as fast as layer2 switch but it makes the decision on how to transmit traffic at layer 3 (just like a router)

Perfect in Lan environment as it is built on switching hardware. Another thing is it is faster than a router in LAN environment. Layer 3 use route once switch many policy. It means when it search for specific destination using a routing table, it creates a cache entry in a switch RAM. So next time it does not have to search again for a routing table for same source and destination address. It also picks up hop information from cache.
So you can say that Layer 3 switch has the ability to reprogram the hardware dynamically with the current Layer 3 routing information. That is why it is faster than a router.

To be frank many of Cisco’s layer 3 switch’s are actually routers

Layer 3 switch good for LAN

Routers good for WAN

Router has some advanced routing functionality which is not available in Layer 3 switch at all.

For more info see: http://www.foundrynet.com/services/f...ingRouter.html
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
  #3 (permalink)  
Old 06-29-2006, 12:31 PM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Rep Power: 0
tom is an unknown quantity at this point
Default

The main difference is how an IP packet is routed using a router or Layer 3 switch.
According to Cisco: the process of routing an IP packet can be divided into two distinct processes:

=> Control plane
=> Data plane

A traditional router uses the same general purpose CPU used to perform control plane operations to also implement data plane operations, meaning data plane operations are handled in software. A Layer 3 switch on the other hand uses an ASIC to perform data plane operations because it is very easy to program the very simple operations required for the data plane into an ASIC. In this respect, the data plane is implemented in hardware because a series of hardware operations are programmed into the ASIC that perform the data plane operations required for routing a packet.

If you don’t understand Control plane/ Data plane then I recommend studying following URL (above text is actually copied from same url):

http://www.ciscopress.com/articles/a...?p=102093&rl=1

Hope this helps.

PS:I think we need separate forum for networking discussion. Right now it is Linux only thingy. I hope vivek will add it sooner or later.
Reply With Quote
  #4 (permalink)  
Old 06-29-2006, 12:38 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 906
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

In lay mans language:
* A router may have more functions than a layer 3 switch like filtering, wan stuff, advanced routing options etc etc
* Generally a layer3 switch will route traffic between two subnets only

Tom / puppen ====> Ok I will create another sub-forum here to discuss networking related issues and I will move this topic.
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #5 (permalink)  
Old 06-29-2006, 12:47 PM
Administrator
Site Admin
 
Join Date: Jan 1970
Posts: 43
Rep Power: 10
vivek has disabled reputation
Default

Done

Topic moved to Computer Networking and Internet/broadband discussions. If you guys need other sub forum ping me back
Reply With Quote
  #6 (permalink)  
Old 06-29-2006, 12:53 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 481
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default Physical implementation

Tom you are right and URL is also correct. To sum up I can say:

1) ROUTER : In general-purpose routers, packet switching takes place using a microprocessor.

2) LAYER 3 SWITCH: In a Layer 3 switch performs this using application specific integrated circuit (ASIC) hardware

This is the major difference between the packet switching operation of a router and that of a Layer 3 switch is the physical implementation.

Quote:
Topic moved to Computer Networking and Internet/broadband discussions. If you guys need other sub forum ping me back
Please include *More Forum Topic*:
The World Wide Web :
=> Web site Hosting and Domains
=> Virus - Spyware Protection
=> Search Engines Optimization & Driving Internet Traffic

Gaming :
=> PC Gaming
=> Game Consoles - XBOX/Nintendo/Sony PS1/2

PHP/Perl programming topics
Reply With Quote
  #7 (permalink)  
Old 06-29-2006, 01:45 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 906
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

@monk, done as per your suggestion

… Stay tuned for new changes, sooner or later I will upgrade this forum to PHPBB v3.0. Once software upgraded, forum will automatically redirect all of you to new url/location forum.cyberciti.biz.
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Difference Between SAN and NAS Devices myfoot Linux hardware 2 03-24-2008 10:50 AM
difference between Swap and Virtual memory ricc Linux software 3 03-16-2007 01:35 AM
Difference between RUID and EUID. jithendra Linux software 1 10-17-2006 05:31 AM
percentage difference between 2 files stephen Shell scripting 1 11-16-2005 11:52 PM
The difference between the paths. Gorky Shell scripting 3 09-13-2005 02:37 PM


All times are GMT +5.5. The time now is 05:56 AM.


Powered by vBulletin® Version 3.7.2 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36