A hub is a basic networking device that connects multiple Ethernet devices in a local network, broadcasting data to all connected devices, and lacks the intelligence of a switch.
A repeater is a device used to extend the range of a network by regenerating and retransmitting data signals, helping to overcome signal degradation over long distances.