Thursday, August 25, 2011

Hubs, Switches and Routers



Hubs, Switches and Routers form an important part of inter-networking. These play a very important role in forwarding of packets from a source to its destination.
Hubs, Switches and Routers can be considered the building blocks of a network.
In this article we will discuss the working and mechanism of operation of each of these entities.


HUB :



  1. Hub works at Layer1 (Physical layer) of the OSI model.
  2. The Hub undertakes the forwarding decisions based on the bits which arrive into the hub.
  3. The bits of information coming in through some port of hub is transmitted across all other ports of the hub regardless of the information.
  4. It consists of a giant collision domain and a broadcast domain.
  5. Collisions are more.


    SWITCH :




    1. Switch works at Layer2 ( Data link Layer) of the OSI model.
    2. Forwarding decision is based on the MAC addresses.
    3. Basically the Switch learns the hosts connected to it and there respective MAC addresses and builds a MAC table which is looked up for future forwarding of packets.
    4. Switch is capable of simultaneous routing of many packets across different ports without collisions.
    5. It provides a dedicated route and bandwidth for each packet to be routed to its respective destination.
    6. If there are n ports then there are 'n' collision domains. 



      ROUTERS :



      1. Routers work at Layer3 (Network Layer) of the OSI Model.
      2. Routers take forwarding decisions based on the Logical addresses provided to a network.
      3. Routers maintain a routing table which consists of information which is used to route the packet to its destination.
      4. There is no broadcast propagation through routers.
      5. Routers are smarter than switches and hubs . They take their routing decisions based on numerous intelligent routing protocols.





        If you liked the article , Do provide your feedback.
        Do leave a comment on the topics you would love to see on this blog.
        mail me at : rajeevrvis@gmail.com

        4 comments:

        Anonymous said...

        thanx dude...it was helpful...keep writing....i want to donate...hw can i??

        Unknown said...

        Welcome
        So do you want to donate any article to this blog or work for open source projects.

        Lakshmisagar said...

        keep going !!!

        Unknown said...

        Thanks Lakshmisagar!!!