Network devices such as hubs, repeaters, bridges, switches, routers, gateways, and brouters are used to establish connections between devices on a computer network. Hubs operate at the physical layer and send data to all connected devices. Repeaters regenerate weak signals between network segments. Bridges operate at the data link layer and filter packets between network segments. Switches operate at the data link and network layers, perform error checking, and improve performance over hubs. Routers operate at the network layer, connect LANs and WANs using IP addresses, and divide broadcast domains. Gateways connect networks using different protocols. Brouters combine the functions of bridges and routers to connect networks using different protocols.