comparison between routers switches and hubs
Routers are much different than hubs or switches, they are more complicated network devices capable of handling more complex tasks. At time routers can even integrate the functions of hubs and switches.
In its appearance a router resembles a box. But many computers can be connected to the ports behind this box in order to form network connections, when connected the LED lights show whether a connection has been made.
All three devices are similar in appearance; however routers are more advanced compared to the other two. Routers perform the task of connecting LANs to WANs (the primary example being a home network being connected to the internet). In addition they serve as the midway destinations for network traffic. It is the routers job to receive data (in the form of TCP/IP packets) and to pinpoint its IP addresses and sender; it then makes sure that the data reaches its intended destination
Broadband routers are designed for home use, and their main purpose is to join LANs to internet WAN. Neither hubs nor switches are capable of this. Therefore if your network is operating through hubs or switches, one of your computers must act as the gateway to the internet and needs to have two network adapters in order to connect to the LAN and one for connecting to the WAN internet. So needless to say, its simpler to invest in a router which is capable of perform most of these functions and also boasts features such as DHCP server and proxy support, firewalls, and wired Ethernet routers usually have an Ethernet switch (so that even hubs and switches can be connected to it and its very simple to expand a network and attach Ethernet devices).
Another plus of a router is that it has a built in access point so it can act as a wired switch as well as performing other functions, but hubs and switches can only be used for wired networking.