View previous topic :: View next topic |
Author |
Message |
yucao89 Tux's lil' helper
Joined: 26 Feb 2003 Posts: 124 Location: madrid
|
Posted: Fri Mar 21, 2003 7:18 am Post subject: Diference between a Switch and a bridge |
|
|
Please tell me the diference between a switch and a bridge. |
|
Back to top |
|
|
Lnx_dork n00b
Joined: 10 Apr 2002 Posts: 28
|
Posted: Fri Mar 21, 2003 7:53 am Post subject: |
|
|
HI,
If by a bridge your refering to the bridge project for linux or any of the other bridging software, then a bridge and a switch are 2 different things.
I set up a linux bridge at work that provides a transparent firewall for my bosses win2k domain controllers. All of his DC's connect to a 100mbit switch on the inside of the bridge.
I don't know how to technically explain what a switch does, but basically if you have a 100mbit switch then each connection to the switch gets a 100mbit connection all to its own. On the otherhand if you have a 100mbit hub, then all connections are shared so if you have a lot of stuff on the hub then your connection will be slower. If you have a cable modem then you are effectivley hooked up to a really big hub.
A bridge is a transparent firewall, meaning that it has know identity (unless you give it one for admin reasons) so all traffic to and from the bridge will pass through it assuming it's allowed and neither side will know that it is going through a "middle man"
I've probably screwed up both of these explinations and some one will come in a tell me I'm all wrong and I'll live the rest of my life in shame, but that explains it to the best of my non-technical knowledge
Hope that answered your question some what |
|
Back to top |
|
|
de4d Apprentice
Joined: 12 Sep 2002 Posts: 181 Location: fr. i. br. (ger)
|
Posted: Fri Mar 21, 2003 8:04 am Post subject: |
|
|
switch:
should be obvious i think
bridge:
allows linking 2 physical netwoks to one logical.
that means u can extend a network over technical specifications of the used systems by adding more distance or some hosts.
additional u can add a firewall to filter data and/or prevent attaks/leaks to another segment.
imho this technique is designed to increase the size of networks using non-routable network protocols which is rather outdated...
=> bridge == 'low level router'
(could be wrong of course). _________________ void main(){fork();main();} |
|
Back to top |
|
|
gfunkmonk Tux's lil' helper
Joined: 10 Jul 2002 Posts: 129 Location: Freelandville, IN
|
Posted: Fri Mar 21, 2003 3:57 pm Post subject: |
|
|
A switch is a multi-port bridge, so they both do exactly the same thing. They are both used to segment networks, but bridges are rarley really used anymore. _________________ Slackware is Gentoo's bitch. |
|
Back to top |
|
|
splooge l33t
Joined: 30 Aug 2002 Posts: 636
|
Posted: Fri Mar 21, 2003 4:42 pm Post subject: |
|
|
Yep. Exactly what the guy said above. A switch is a multiport bridge. One reason they were used was to increase the number of collision domains for better network performance when hubs/10base2 were prominent. But since the cost of switches is now about the same cost of a hub, bridges are /basically/ useless.
On a shared network (hub) you will never acheive better than 66% efficiency.
Bridging 2 network with your linux box is basically turning your linux box into a switch. |
|
Back to top |
|
|
yucao89 Tux's lil' helper
Joined: 26 Feb 2003 Posts: 124 Location: madrid
|
Posted: Fri Mar 21, 2003 5:18 pm Post subject: But what it does? |
|
|
does the switch and bridges
checks the frame of an ethernet and send to all the segments or it just sends it to one segment according to the MAC address table. |
|
Back to top |
|
|
splooge l33t
Joined: 30 Aug 2002 Posts: 636
|
Posted: Fri Mar 21, 2003 6:15 pm Post subject: |
|
|
A switch will send a frame out to ALL ports until it learns which port the destination mac address is on, from then on it only sends that frame to the appropriate port. |
|
Back to top |
|
|
yucao89 Tux's lil' helper
Joined: 26 Feb 2003 Posts: 124 Location: madrid
|
Posted: Fri Mar 21, 2003 10:01 pm Post subject: So firstly... |
|
|
So firstly it will send a message to all ports and then it will know the appropiate. Do this also happens in the bridges.
and what about the routers |
|
Back to top |
|
|
yucao89 Tux's lil' helper
Joined: 26 Feb 2003 Posts: 124 Location: madrid
|
Posted: Sun Mar 23, 2003 8:45 am Post subject: |
|
|
CAN SOME ONE HELP ME??? |
|
Back to top |
|
|
easykill Apprentice
Joined: 07 Dec 2002 Posts: 230
|
Posted: Sun Mar 23, 2003 3:57 pm Post subject: |
|
|
what the hell do you need to know this for? are you having us write your school project for you?
a bridge is essentially a 2 port switch, so it really can't broadcast on all ports first.
I'm not sure if managed switches will broadcast on all ports, since they might already know which MAC is at which port... |
|
Back to top |
|
|
Crg Guru
Joined: 29 May 2002 Posts: 345 Location: London
|
Posted: Sun Mar 23, 2003 4:52 pm Post subject: |
|
|
yucao89 wrote: | CAN SOME ONE HELP ME??? |
Sure http://www.google.com |
|
Back to top |
|
|
splooge l33t
Joined: 30 Aug 2002 Posts: 636
|
Posted: Sun Mar 23, 2003 8:00 pm Post subject: |
|
|
easykill wrote: | a bridge is essentially a 2 port switch, so it really can't broadcast on all ports first.
I'm not sure if managed switches will broadcast on all ports, since they might already know which MAC is at which port... |
What's the difference between a managed switch and an unmanaged switch?
A switch will broadcast an ethernet frame until it learns which port contains the destination mac address. The switch learns the destination mac address when the destination computer sees the frame and responds for the first time.
I guess you could say that switches, bridges and hubs connect the physical network (layer 2 ethernet) while routers connect the logical (layer 3 IP) networks. |
|
Back to top |
|
|
easykill Apprentice
Joined: 07 Dec 2002 Posts: 230
|
Posted: Sun Mar 23, 2003 8:30 pm Post subject: |
|
|
in our managed switches where i work, we map MAC addresses to physical ports on the hub. Therefore it doesn't have to scan for the MAC unless it isn't where it's supposed to be |
|
Back to top |
|
|
|