A hub retransmits all of the data it receives from one wire onto all of the other cables connected to it. A switch sends incoming data onto the cable linking to the device with the MAC address contained in the frame header of the datagram. A router can send data far away across many networks by examining the IP address in a packet header.