Hub Switch Bridge Router
Hub Switch Bridge Router
Although hubs and switches both glue the PCs in a network together, a switch is
more expensive and a network built with switches is generally considered faster than
one built with hubs. Why?
An Ethernet switch automatically divides the network into multiple segments, acts as
a high-speed, selective bridge between the segments, and supports simultaneous
connections of multiple pairs of computers which don't compete with other pairs of
computers for network bandwidth. It accomplishes this by maintaining a table of
each destination address and its port. When the switch receives a packet, it reads
the destination address from the header information in the packet, establishes a
temporary connection between the source and destination ports, sends the packet
on its way, and then terminates the connection.
Picture a switch as making multiple temporary crossover cable connections between
pairs of computers (the cables are actually straight-thru cables; the crossover
function is done inside the switch). High-speed electronics in the switch
automatically connect the end of one cable (source port) from a sending computer to
the end of another cable (destination port) going to the receiving computer on a per
packet basis. Multiple connections like this can occur simultaneously. It's as simple
as that. And like a crossover cable between two PCs, PC's on an Ethernet switch do
not share the transmission media, do not experience collisions or have to listen for
them, can operate in a full-duplex mode, have bandwidth as high as 200 Mbps, 100
Mbps each way, and do not share this bandwidth with other PCs on the switch. In
short, a switch is "more better."
In a word: intelligence.
Hubs, switches, and routers are all devices that let you connect one or more
computers to other computers, networked devices, or to other networks. Each has
two or more connectors called ports into which you plug in the cables to make the
connection. Varying degrees of magic happen inside the device, and therein lies the
difference. I often see the terms misused so let's clarify what each one really means.
A hub is typically the least expensive, least intelligent, and least complicated of the
three. Its job is very simple: anything that comes in one port is sent out to the
others. That's it. Every computer connected to the hub "sees" everything that every
other computer on the hub sees. The hub itself is blissfully ignorant of the data
being transmitted. For years, simple hubs have been quick and easy ways to connect
computers in small networks.
A switch does essentially what a hub does but more efficiently. By paying attention
to the traffic that comes across it, it can "learn" where particular addresses are. For
example, if it sees traffic from machine A coming in on port 2, it now knows that
machine A is connected to that port and that traffic to machine A needs to only be
sent to that port and not any of the others. The net result of using a switch over a
hub is that most of the network traffic only goes where it needs to rather than to
every port. On busy networks this can make the network significantly faster.
A quick note on one other thing that you'll often see mentioned with these devices
and that's network speed. Most devices now are capable of both 10mps (10 mega-
bits, or million bits, per second) as well as 100mbs and will automatically detect the
speed. If the device is labeled with only one speed then it will only be able to
communicate with devices that also support that speed. 1000mbs or "gigabit"
devices are starting to slowly become more common as well. Similarly many devices
now also include 802.11b or 802.11g wireless transmitters that simply act like
additional ports to the device.
…………………………………………………………………………………………………………………………………………………………….
Bridge
A bridge is used to break larger network segments into smaller network segments. It
works much like a repeater, but because a bridge works solely with Layer 2 protocols
and layer 2 MAC sub layer addresses, it operates at the Data Link layer.
• Bridges operate at Layer 2 and usually do not reduce broadcasts because a bridge
forwards broadcast packets to all of its ports except the port on which the broadcast
packet arrived. On the other hand, a router usually blocks broadcast packets.
• Bridges expand the distance of an Ethernet network because each segment can
be built to the maximum distance.
• Bridges filter some traffic based upon MAC addresses.
• Bandwidth is used more efficiently.
• Local traffic is kept local.
Switch
Layer-2 switching is shareware based, which means it uses the MAC address from
the host's NIC cards to filter the network. Layer-2 switches are fast because they do
not look at the Network layer header information, looking instead at the frame's
hardware addresses before deciding to either forward the frame or drop it.
Layer-2 switches are really just bridges with more ports. However, there are some
important differences you should be aware of:
• Bridges are software based, while switches are hardware based because they
use an ASICs chip to help make filtering decisions.
• Bridges can only have one spanning-tree instance per bridge, while switches
can have many.
• Bridges can only have up to 16 ports, whereas a switch can have hundreds.
Five steps of encapsulation that occur when a user uses a browser to open a Web
page:
1. The user requests that the browser open a Web page.
2. The transport layer adds a header indicating that an HTTP process is requested.
3. The Network layer puts a source and destination address into its packet header
that helps indicate the path across the network.
4. The Data Link layer frame puts in the hardware addresses of both the source
node and the next directly connected network device.
5. The frame is converted into bits for transmission over the media.
…………………………………………………………………………………………..