news

What is the difference between hubs, switches and routers?

Update:15-10-2021
Summary:

What is the difference between hubs, switches and route […]

What is the difference between hubs, switches and routers?

Regardless of whether it is a hub or a switch, the signal can be amplified and transmitted to the destination device (such as a computer), but the biggest difference between a hub and a switch is the method of transmitting data.

For the hub, the signal will be transmitted along its port and broadcast to other ports. Because of this, it is prone to broadcast storms, and its performance will be affected when the network is large. The switch only responds to each other between the requesting port and the destination port, and it does not affect other ports. Therefore, the switch can effectively suppress the generation of broadcast storms to a certain extent.

In addition, all ports of the hub share a bandwidth, and only two ports can transmit data at the same time, and other ports are in a waiting state. Each port of the switch has an independent bandwidth. When each port is working, each port is not affected by each other. In addition, the switch retains the MAC addresses of all devices connected to it, and can inquire which port the data is forwarded to. In other words, the switch knows exactly which port the data is sent to, which can effectively save network response time. However, the hub cannot distinguish which port the data is forwarded to.

In fact, the difference between a hub and a switch is equivalent to the difference between non-intelligence and intelligence. Among them, the hub is a non-intelligent network device, which can only play a role in signal amplification and transmission, and cannot process the fragments in the signal. The switch is an intelligent network device, which is equivalent to an intelligent hub. In addition to having all the characteristics of a hub, it also has functions such as automatic addressing, switching, and processing.

Different from hubs and switches, routers are used to connect two or more data lines from different networks. When a data packet enters one of the lines, the router will read the network address information in the data packet in order to determine the final destination , And then forward the data packet to the next network through the information in the routing table or routing strategy. In addition, the router can allow multiple network clients to share an IP address. (Note: The data packet not only contains data, but also contains the destination address that needs to be sent.)

0
Views: 26,458