Although they have several things in common, there are differences between routers, switches, and hubs. Routers receive incoming network packets, identify the source and target network addresses, then forward these packets where needed, which neither switches nor hubs can do. A hub forms a single network segment on which all devices can communicate directly.