Router vs. Switch vs. Bridges

I know Router is L3(Layer 3) device, switch is L2 device

my Q:

(1) What is the difference between switches and bridges?
(2) What is the difference between a L3 switch and a Router ?

thx
codenamecharlieAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NicBreyCommented:
Bridges and switches basicly perform the same function. Think of a switch as a bridge with much more ports.

A layer 3 switch perform the routing function (layer 3) in hardware, where a router would use CPU cycles and an operating system of some sort. The term "route one, switch many" apply with layer 3 switches. Only the first packet of a stream is passed to a router module or external router. The switch learn the destination address from the router and adds an entry to a table in memory. All packets of the same stream after that is switched between the input and output ports of the switch, completely bypassing the router.

Have a look at this link...
http://computer.howstuffworks.com/lan-switch.htm
0
sunray_2003Commented:
Check here ... you can know the difference

http://www.practicallynetworked.com/networking/bridge_types.htm

Sunray
0
praflikCommented:
In my opinion a bridge and switch have a major difference beyong the number of ports.

A bridge isolates traffic on a network segment.

A,B,C are ports on a bridge.  A1,A2,B1,B2,C1,C2 are workstations plugged into the network.

A1,A2===(A)Bridge(B)====B1,B2
                     (C)                
                       |
                       |
                    C1,C2

If A1 is sending a packet to A2 then the bridge will ignore that packet and not forward it because it knows that A1 & A2 are on the same segment.

If A1 is sending to B1 then the bridge will broadcast the packets to all other ports (B & C in this example).

In other words...if I'm  a bridge I will either ignore a packet or forward it to all ports.

A Switch will complete a circuit from sender to reciever instead of broadcasting on all ports when traffic crosses a segment.

A1,A2===(A)Switch(B)====B1,B2
                     (C)                
                       |
                       |
                    C1,C2

As with the bridge if A1 is sending a packet to A2 then the Switch will ignore that packet and not forward it because it knows that A1 & A2 are on the same segment.

If A1 is sending to B1 then the Switch will forward the packer to port (B) only.

Fundamentally the Bridge is only concerned with the source while the Swtches is concerned about the Source and Destination.

0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

barttCommented:
Hi codenamecharlie,

NicBrey is right about the difference between switches and bridges and the link he send in was good. Praflik doesn't the point really.

Both a bridge and a switch are working by the same principle and work with the following states:

- learning : the device is ready to accept packets
- flooding : the device broadcasts the packets because he doesn't know to which port the host is attached
- forwarding : the device knows which port
- filtering : just sending to traffic to right ports and if the hosts are on the same port the traffic will not go through the switch
- aging : delete old addresses from the MAC-table.

So IMHO a switch and a bridge have the same function except a switch has more ports.

Cheers
0
praflikCommented:
I thought the point was "What is the difference between switches and bridges?"

You say there is none I say there is, otherwise why not just call it a 12 Port Bridge.

Bridges don't forward they flood.  I think that is a significant differance.

The only time they would work the same is if you had a two port switch and were comparing it to a two port bridge.
0
praflikCommented:
One last thing.

Bridges are often used to connect unlike topologies (Ethernet-to-Token Ring) (Ethernet-Serial/T1).

Ethernet Switches only connect Ethernet Segements togther.
0
NicBreyCommented:
praflik,

I do not agree with you. Bridges also learns which MAC addresses are on different ports and forward only out the port where the MAC addresses are located. They do not flood out all ports.

Here is a link
http://www.cisco.com/en/US/about/ac123/ac147/ac174/ac203/about_cisco_ipj_archive_article09186a00800c836c.html

Consider a 12 port bridge...   does that not do pretty much what a switch does??  Only difference is a switch do it in hardware (chip speed)while a bridge in software.  
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
praflikCommented:
NiceBrey,

I don't think that there neccessarily is one answer for this question.  As is often the case in this business there is no one standard we can look to and get an exact answer to the question.  There have been many companies that have developed what they consider to be a bridge and maybe some of them had the same capabilities as a switch at some point in their evolution.  Maybe the 3Com bridges works like I said and the Cisco bridges worked like you say.

I was simply trying to get to the essence of codenamecharlies's question.  He wanted to know the difference between the devices.

By your own most recent posting there are a couple, switches work in hardware and process in parallel so there is a difference beyond the number of ports.

Also, I have never heard of a switch that joins two unlike topologies like a bridge will so yes I believe there is a difference and that is what codenamecharlie wanted to know.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Routers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.