This document compares hubs, switches, and routers. Hubs are the simplest devices that broadcast all incoming data to all ports. Switches are more intelligent and learn which devices are connected to each port to selectively broadcast data. Routers are the most advanced devices that can be programmed to understand and manipulate data, performing functions like network address translation to route packets between local networks and the internet.