Network devices such as repeaters, hubs, bridges, switches, routers, and gateways are used to connect, expand, and manage network traffic. They operate at different layers of the OSI model from the physical layer to the network layer. Repeaters and hubs operate at the physical layer and broadcast traffic to all ports. Bridges segment networks at the data link layer by filtering traffic based on MAC addresses. Switches further improve segmentation by opening virtual circuits between connected devices. Routers connect multiple networks and use IP addresses to choose the best path at the network layer.