Differences between routers and switches and repeaters
Routers operate on the third layer (network layer), forwarding packets according to the IP address, each port of a broadcast domain (broadcast termination), itself as a network node. Isolate broadcast between ports to avoid broadcast storm propagation.
Switches operate on the second layer (link layer), forwarding packets at the MAC address, and each port of a collision domain (collision termination) is itself in the broadcast domain. It can isolate the conflicts between ports and inhibit (not eliminate) the broadcast storm (after learning the address, no need to re broadcast).
Repeater work in the first layer (physical layer), signal amplification and hub function itself in a collision domain, at one time t, only one data packet through.