Difference Between Hub and Router

Main Difference

Hub and router are two types of electronic devices that are used in networking system but each has different capabilities. The main difference between hub and router is that hub is a device that is used for connecting various Ethernet devices together and making them act as a single network segment. One the other hand router is a device that allow computers to communicate of pass information between two networks. It stands for networking device that data packets between computer networks.

What is Hub?

Hub, Ethernet hub, repeater hub, or simply hub is a networking device that is used for connecting multiple Ethernet devices and treating them work as a single network segment. It contains various input/output (I/O) ports, in which a signal introduced at one input and reaming are used as an output. It works at the physical layer (layer 1) of the OSI model (Open Systems Interconnection model). Repeater hubs are also used in networking to forward a jam signal to all ports if it detects a collision. In addition to standard 8P8C ports (8 position 8 contact), some hubs may also come with a BNC connector (bayonet Neil-Concelman) and/or Attachment Unit Interface (AUI) connector to allow connection to legacy 10BASE2 (cheapernet, or thinwire) or 10BASE5 (thick ethernet or thicknet) network segments.

What is Router?

Router refers to a networking device that forwards data packets between computer networks. It is connected to two or more data lines from different networks. When a data packet comes in on one of the lines, the router reads the address information in the packet to determine its ultimate destination. Then using information in its routing table, it directs the packet to the next work on its journey. This creates an overlay internetwork. Routers perform the ‘traffic directing’ functions on the internet. A data packet is typically forwarded from one router to another via networks that constitute the internetwork until it reaches its destination node. The most common type of routers are home and small office routers that simply pass data like web pages, email, instant messaging, and videos between the home computers and internet.

Key Differences

  1. Hubs are classified as layer 1 devices per the OSI model, while router layer is network layer (layer 3 devices).
  2. Hub contains 4/12 ports while router has 2, 4 or 8 ports.
  3. Hub is a passive device it is without software while router is a networking device.
  4. Data transmission form in hub is in electrical signal or bits while in router it is in form of packet.
  5. The function of hub is to connect a network of PCs together so all can be joined via a central hub. The function of router is to direct data in a network. Passes data between home computers, and between computer and the modem.
  6. A network hub is unable to learn or store MAC address while router store IP address in Routing Table and maintain address at its own.
  7. Transmission mode in hub is half duplex and it is in full duplex in case of router.
  8. Hub is used in LAN. Router is used in both LAN and WAN.

Comparison Video

YouTube video
Harlon Moss

Harlon currently works as a quality moderator and content writer for Difference Wiki. He graduated from the University of California in 2010 with a degree in Computer Science. Follow him on Twitter @HarlonMoss

View all posts by Harlon Moss