Ethernet hub and switch topologies using twisted pair cabling

The above figure shows the star topology and hub is used and it repeats the signal. If there is a collision the hub sends the jam signal and the stations execute the backoff algorithm. The stations are in the same collision domain.
The above figure shows that a switch or any other device connected where input port buffers incoming the transmissions. The incoming frames are examined and transferred to the appropriate output port.