What is the difference between hubs, switches, routers

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):
Here Insert Picture Description


switch:
Here Insert Picture Description


router:Here Insert Picture Description


II. The difference between action and

2.1 hub hub

  1. All devices on the hub can be packet
  2. Packet enters a port, the hub will be broadcast to each port (unsafe, wasteful traffic bandwidth)
  3. With 2, because it is broadcast, the legend can not be specific ports

Here Insert Picture Description


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
Here Insert Picture Description

This is the biggest difference with the hub can be customized to a specific port up.

Here Insert Picture Description

2.3 Routing

Routing to determine its own network or another network, the router is basically a network gateway
Here Insert Picture Description

Here Insert Picture DescriptionSummary: hubs and switches to create a network, and routers connect to the network:

Here Insert Picture Description


The difference between hubs and switches

Here Insert Picture DescriptionHubs operate at the physical layer only; Hub HUB described as an example
Here Insert Picture Descriptionwhen a collision domain requires three communications, the addition of a hub HUB, to form a larger impact Yu: as follows:
Here Insert Picture DescriptionNote: 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
Here Insert Picture DescriptionHere Insert Picture DescriptionHere Insert Picture Descriptionduring the broadcast, both in form as;


Comparative hub transmission case and extended network switch

Here Insert Picture DescriptionUnicast is a switch in obvious advantages

Here Insert Picture DescriptionIn 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)
Here Insert Picture DescriptionHere Insert Picture DescriptionHere Insert Picture Descriptionwork 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

Here Insert Picture Description


reference

Watch video: 1. What is the difference between hubs, switches, routers

2. The difference between hubs and switches

Published 274 original articles · won praise 119 · views 290 000 +

Guess you like

Origin blog.csdn.net/qq_31156277/article/details/104125281