Routers, switches, hubs, and bridges are networking devices that operate at different layers of the OSI model. Routers operate at layer 3 and use logical IP addresses to route packets between networks. Switches operate at layer 2 and use MAC addresses to segment collision domains and allow for full duplex communication within a broadcast domain. Hubs operate at layer 1 and are used to connect network segments but do not segment collision domains. Bridges are software-based devices that operate at layer 2 and segment broadcast domains but have fewer ports and are slower than switches.