Interconnecting devices allow computers to exchange data on a network and form the backbone of a network. Common interconnecting devices include hubs, repeaters, bridges, switches, routers, and gateways. Hubs operate at the physical layer and replicate and broadcast all data to all ports. Repeaters extend network distance by regenerating weak signals. Bridges operate at the data link layer and filter traffic between connected segments. Switches learn MAC addresses and filter traffic at the data link layer. Routers filter at the network layer using IP addresses and can connect different network types. Gateways connect heterogeneous networks using protocol translation at all seven OSI layers.