The Hub vs. Switch Ethernet uses the Hub or Switch to transmit frames from the origin to the destination. A hub or switch has multiple ports, each of which can be connected to a computer (or other devices ). A hub is like a broadcast station. A computer sends frames to the hub, and the hub forwards the frames to all other ports. Each computer checks whether its MAC address conforms to DST. If not, keep silence. A hub is an earlier Ethernet device. It has obvious drawbacks: 1) communication between any two computers is made public on the same Ethernet. It is unsafe for all devices connected to the same hub to hear what others are transmitting. You can improve security by encrypting information. 2) Multi-Channel simultaneous communication is not allowed. If the two computers send messages to the hub at the same time, the hub sends a "Conflict" message to all devices to remind them of a conflict. You can add a conflict detection algorithm (collision detection) on the device: Once a device finds a conflict, it will wait for a period of time and resend it. The switch overcomes the defects of the hub. The switch records the MAC addresses of each device. When a frame is sent to the switch, the switch checks DST and only sends the frame to the corresponding port. The switch allows multi-channel communication at the same time. Due to the superiority of the switch, the switch basically replaces the hub. However, the old Ethernet may still be using a hub.