Given these similarities, routers, switches, and hubs may appear identical at first, but they have important distinctions.
Routers Forward Network Data More Intelligently
While hubs, switches, and routers share physical appearances, routers differ substantially in their inner workings and contain significantly more logic. Traditional routers are designed to join together multiple local area networks (LANs) with a wide area network (WAN). Routers serve as intermediate destinations for network traffic. They receive incoming network packets, look inside each packet to identify the source and target network addresses, then forward these packets where needed to ensure the data reaches its final destination. Neither switches nor hubs can do these things.
Routers Help Connect Home Networks to the Internet
Routers for home networks (often called broadband routers) join the home network to the internet for the purpose of internet connectivity. In contrast, switches (and hubs) are not capable of joining multiple networks or sharing an internet connection. A network with only switches and hubs must instead designate one computer as the gateway to the internet, and that device must possess two network adapters for sharing—one for the home-facing connection and one for the internet-facing connection. With a router, all home computers connect to the router as peers, and the router handles all such internet gateway functions.
Routers Are Smarter in Other Ways, Too
Additionally, broadband routers contain several features beyond those of traditional routers, such as integrated DHCP server and network firewall support. Wireless broadband routers even incorporate a built-in Ethernet switch for supporting wired computer connections (and enabling network expansion via connecting additional switches if needed).
Switches vs. Hubs
Switches are higher-performance alternatives to hubs. Both pass data between devices connected to them. Hubs do so by broadcasting the data to all other connected devices, while switches first determine which device is the intended recipient of the data and then send it to that one device directly via a “virtual circuit.” When four computers are connected to a hub, for example, and two of those computers communicate with each other, hubs pass through all network traffic to each of the four computers. Switches, on the other hand, are capable of determining the destination of each individual traffic element (such as an Ethernet frame) and selectively forwarding data to the one computer that actually needs it. This behavior allows switches to generate less overall network traffic compared to hubs—an advantage on busy networks.
What About Wi-Fi Switches and Hubs?
Home Wi-Fi networks utilize routers but technically do not have the concept of a wireless switch or hub. A wireless access point functions similarly (but not identically) to a wired switch.