Network interface cards connect computers to the network and differentiate networked computers from standalone computers. Hubs connect multiple devices but have no intelligence to direct traffic. Switches inspect packets and forward them only to the intended device, improving performance over hubs. Bridges segment large networks and monitor traffic to pass packets between the two sides. Routers select the best path for messages and can redirect traffic around busy sections. Gateways connect networks using different protocols by performing protocol conversions. Modems convert digital data to analog for telephone lines and provide connectivity to the Internet for small-to-medium networks.