What is the difference between a gateway and a router?
A gateway is a device that is used to connect two different networks and to communicate with two hosts at the same time. However, the two hosts cannot communicate directly, but must pass through the gateway in order to do so. The work of the gateway is in the application layer.
The router is a network layer device, which usually sends data in packets. In the router's sub-interface, there is a role of splitting the broadcast domain, so when we use the switch to do VLAN later, are to do a three-layer routing on the router.
What is the difference between a hub and a switch?
In fact, the difference between hubs and switches is equivalent to the difference between non-intelligent and intelligent. Among them, a hub is a non-intelligent network device that can only play the role of signal amplification and transmission and cannot process the fragments in the signal, while a switch is an intelligent network device, equivalent to an intelligent hub, which has all the characteristics of a hub in addition to automatic addressing, switching, processing and other functions.