HUB (hub) belongs to the first layer physical layer equipment of OSI. Hub only plays the role of synchronization, amplification and shaping of data transmission, and can't effectively handle short frames and short segments in data transmission, and can't guarantee the integrity and correctness of data transmission.
Routers belong to the second layer data link layer equipment of OSI, which means that routers can not only synchronize, amplify and shape data transmission, but also filter short frames and fragments to ensure the integrity and correctness of data transmission.
Second, the difference of network performance.
Hub is a broadcast mode, that is, when one port of HUB works, all other ports can receive and hear information, which is easy to cause a broadcast storm. When the network is large, the network performance will be greatly affected.
Router network performance is more stable. When the router works, only the request port and the destination port communicate with each other, without affecting other ports, so the router can isolate conflicts and effectively suppress broadcast storms.
Third, the bandwidth work difference.
No matter how many ports there are in the hub, all ports * * * share the same bandwidth. Only two ports can transmit data at the same time, and the other ports can only wait. The hub can only work in half-duplex mode.
Each port of the router has its own bandwidth. When two ports work, it does not affect the work of other ports. At the same time, the router can work not only in half-duplex mode, but also in full-duplex mode.
Fourth, the difference between intelligence and non-intelligence
A hub is just a network device that connects multiple computers. It can only amplify and transmit the signal, but can't deal with the fragments in the signal, so it is easy to make mistakes in the transmission process.
A router can be regarded as an intelligent hub, which has all the functions of a hub, as well as the functions of automatic addressing, switching and processing. In the process of data transmission, the sender and receiver work independently, regardless of other ports, to prevent data loss and improve throughput.
Extended data:
At present, the HUB in the market is basically occupied by American brands and China Taiwan Province brands. Among them, high-end hubs are mainly occupied by American brands, such as 3COM, Intel and Bay. They use multi-processor technology, and generally one port is equipped with one processor. D-Link and Accton in Taiwan Province Province, China occupy the main share of low-end hubs, and adopt single processor technology, with one processor for all ports.
There are also running software in the router, such as Microsoft's Windows, Apple's IOS and Google's Android, which can be regarded as the operating system of the router, just like the Windows system used on the PC. The operating system of the router completes the generation and maintenance of the routing table.
References:
Baidu encyclopedia -HUB Baidu encyclopedia-router