Re: Hub versus switch



In news:44fqb7F218a5U1@xxxxxxxxxxxxxx,
Spin <Spin@xxxxxxxx> stated, which I commented on below:
Experts,

Given a hub with five computers connected to it. One computer
broadcasts and all others hear it. Now, given a switch with five
computers connected to it. One computer broadcasts. Do all others
hear it? Why or why not?

A switch is an OSI Layer 2 device (based on the MAC address). The higher you
go up the OSI model, the more intelligent the device is that works on that
layer. For example, a router is a Layer 3 device (the Network Layer where IP
lives).

Therefore, being intelligent enough to be aware of the MAC addresses, a
switch builds a "routing" table based on MAC addresses it is aware of when a
device is plugged into a port, but not IPs, since it's on the wrong layer.
HOwever at times, I don't usually like to use the word 'routing' in this
definition because it can be confused with a router, so we should look at it
as a 'destination lookup table' that keeps track of each port and the MAC
sitting on it. Some switches, like the Ciscos, can build a table with about
40,000 entries, if I remember correctly, and has a propeitary shared memory
pool that is able to transfer data independently between ports more
efficiently than other brands. Others don't do as well. Yes, you do get what
you pay for. Anyway, a switch will look at the source MAC and the
destination MAC in the packet. If the destination is a broadcast, make it
so. If it's directed transmission, say from a machine with a MAC address of
MAC1 on port 32 to a machine with a MAC address of MAC5 on port 15, then the
trafffic directed from only port 32 to port 15 and no others will 'hear' or
'see' that traffic.

Hubs are just repeaters that repeats traffic on all ports and have no
intelligence... cheapos now days.

btw- There are Layer 3 switches too. They are switches that you can define
each port to be 'switched' or routed, such as an IP router. They are of
course more expensive. I believe the Catalyst 2850 are Layer 3 switches,
where we can create IP subnet VLANs.

The higher you go up the OSI, the more intelligent, and the more expensive
the device is.

Hope that helps.

--
Ace

This posting is provided "AS-IS" with no warranties or guarantees and
confers no rights.

Having difficulty reading or finding responses to your post?
Instead of the website you're using, I suggest to use OEx (Outlook Express
or any other newsreader), and configure a news account, pointing to
news.microsoft.com. This is a direct link to the Microsoft Public
Newsgroups. It is FREE and requires NO ISP's Usenet account. OEx allows you
to easily find, track threads, cross-post, sort by date, poster's name,
watched threads or subject.

Not sure how? It's easy:
How to Configure OEx for Internet News
http://support.microsoft.com/?id=171164

Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT, MVP
Microsoft MVP - Windows Server Directory Services
Microsoft Certified Trainer
Assimilation Imminent. Resistance is Futile.
Infinite Diversities in Infinite Combinations.

The only thing in life is change. Anything less is a blackhole consuming
unnecessary energy.
===========================


.



Relevant Pages

  • RE: Exploit code for IP Smart Spoofing
    ... If there is a MAC violation, this is logged and the port is ... traffic of one other host on the switch. ... but there is no way to protect against ...
    (Bugtraq)
  • Re: route field
    ... it is possible to build a layer 2 switch in which every ... port has a dedicated "send" path to each other port (e.g., ... Note, by the way, that in networking, the word "route" usually ...
    (comp.dcom.lans.ethernet)
  • Re: route field
    ... it is possible to build a layer 2 switch in which every ... port has a dedicated "send" path to each other port (e.g., ... You have been asking a lot of questions about VLANs lately, ...
    (comp.dcom.lans.ethernet)
  • RE: mac duplication
    ... Another solution you could use depends on your switch. ... that allow you to do port mirroring. ... IP address map to MAC addresses via router tables. ... How do i set up mac duplication ...
    (Vuln-Dev)
  • Re: Network scanning
    ... that works with a radius server to auth mac address at port ... level before the switch will enable that port... ... new MAC and disable the port. ...
    (Security-Basics)