Hub (hub), What is the difference between switches and routers
"Hubs and Switches are used to create networks. Routers are used to connect networks." Hubs and switches are used to build the network, and routers are used to connect different networks (routers now also has a function to build the network).
A. Appearance
Hub (hub):
switch:
router:
II. The difference between action and
2.1 hub hub
- All devices on the hub can be packet
- Packet enters a port, the hub will be broadcast to each port (unsafe, wasteful traffic bandwidth)
- With 2, because it is broadcast, the legend can not be specific ports
2.2 Switches
Switch is an upgrade hub, within as it has a MAC address table, that is connected to the switch to when each device will be switched "on request" own MAC address, MAC address and then create a mapping table in the interior
This is the biggest difference with the hub can be customized to a specific port up.
2.3 Routing
Routing to determine its own network or another network, the router is basically a network gateway
Summary: hubs and switches to create a network, and routers connect to the network:
The difference between hubs and switches
Hubs operate at the physical layer only; Hub HUB described as an example
when a collision domain requires three communications, the addition of a hub HUB, to form a larger impact Yu: as follows:
Note: Use Ethernet hub logically shared bus the need to use CSMA / CD protocol to coordinate the contention host bus; only work in half-duplex mode, which is hand made frame can not be performed at the same time
However, the use of hubs is not flexible enough, will broadcast each node: took the emergence of Ethernet switches, it will send a message to the destination host
during the broadcast, both in form as;
Comparative hub transmission case and extended network switch
Unicast is a switch in obvious advantages
In broadcasting, both in form as;
Regardless Ethernet hubs or switches to expand, each of the extended Ethernet hosts in a broadcast domain belong to the same ; only the extended Ethernet hubs, logically shared bus remains, and is formed as a larger collision domain (host bus involved in the competition more)
work in the data link layer Ethernet switches, its performance far exceeds operating at the hub of the physical layer, and the price is not expensive, and this is the hub gradually be eliminated .
Knowledge supplement
reference
Watch video: 1. What is the difference between hubs, switches, routers