To fix that, a network switch helps ease congestion. Imagine the switch splitting one network into two smaller connected networks.

Communication between the two sides of the network only occurs when data needs to pass across the switch.

If DeviceA needs to communicate with DeviceC the messages do not congest the network for the devices on the other side of the switch.