Repeater, Hub, switch, and router are all devices generated for different layers of the OSI Layer-7 network model. One by one, they are summarized as follows:
Repeater: Repeater
Is a connection device of the network physical layer, which works on the OSI physical layer. In fact, it is a signal amplifier. It is only responsible for transmitting signals from one cable to another. It can only be connected to the same type of CIDR Block and cannot be connected to different types of networks.
Hub: hub
It is a special repeater, so it also works on the physical layer of the OSI model. It is actually a multi-port repeater.
Bridge
When it comes to the data link layer, it should be more specifically the MAC layer. The function is to interconnect the LAN to form a large network with a single appearance.
Switch:
Is a multi-port bridge. The principle is similar to that of bridge.
Router: Router
The device that implements network layer services, so it works on the layer 3 of OSI, that is, the network layer.
Gateway: Gateway
When the network must be connected to different types, and the protocol is significantly different (for example, the SNA of IBM is interconnected with the PC Network), you should choose a device called network management, any relay system that is higher than the network layer is called a gateway. Its basic function is to interconnect different protocol frameworks, convert the protocols, and regroup data so that communication can be performed between two network systems.
System O & M-Overview of hub, repeater, switch, and Router