Compare the Difference Between Similar Terms

Difference Between

Home / Technology / IT / Networking / Difference Between Switch and Hub

Difference Between Switch and Hub

July 8, 2011 Posted by Indika

Switch vs Hub

A network device that is used to connect network segments together is called a switch. Usually, switches are used at the data link layer (layer 2 of the OSI model) to process and route data. Multilayer switches are a type of switches that process data at the network layer (layer 3 of the OSI model) and above. Hub is also a device that is used to connect network devices (such as Ethernet devices) together to form a single network segment. It operates on the physical layer (layer 1 of the OSI model).

What is a Switch?

Switches are an important part of modern Ethernet Local Area Networks (LANs). While small LANs (small offices or home offices) use a single switch, large LANs contain several managed switches (managed switches provide methods such as command line interfaces for modifying the operations of the switch). Switches that operate on the data link layer allow the devices that are connected to its ports to communicate without any interference by creating separate collision domains for each port. For example, consider four computers (C1, C2, C3 and C4) connected using 4 ports in a switch. C1 and C2 can communicate with each other, while C3 and C4 are also communicating, without any interference. Switches can also operate on several layers (such as data link, network or transport) simultaneously. These switches are known as multilayer switches.

What is a Hub?

Hubs are also devices that are used to connect network devices together. It is a simple device that broadcasts the traffic coming in without any kind of management. It does not gather any information from the traffic flowing through it therefore do not know the source or the destination of the traffic. In a hub, traffic coming in to a port is sent out on all the other ports. Since the hubs pass the traffic to all the devices connected to its ports, unnecessary traffic may be sent to devices on the network. The devices themselves have to determine whether the packet is actually intended for it, by inspecting the address information on the packet. This repeating process could be a problem for a large network with lot of traffic flow, since it could cause lots of collisions. But, hubs can be used in small networks, where this repeating process could be managed.

What is the difference between Switch and Hub?

Even though both the switches and hubs could be used to interconnect network segments, there are some important differences. A hub is a simple device that sends all the traffic coming in to the hub in all the other ports. This could cause lots of unnecessary traffic flow in the network causing collisions. Switches on the other hand, collect some knowledge about the devices connecting to it and forwards the incoming traffic only through the relevant port(s). This would also allow maintaining simultaneous communications on the switch. Therefore hubs are suitable for small networks while, switches are more suitable for large networks with lots of traffic.

Related posts:

Difference Between NAT and NAPT Difference Between IP and Port Difference Between Socket and Port Difference Between Subnetting and Supernetting Difference Between Static IP and Dynamic IP

Filed Under: Networking Tagged With: access list, broadcast domain, collision domains, data link layer, Ethernet devices, Hub, Hubs, IP address, Layer 2, Layer 3, managed switch, managed switches, multilayer switch, multilayer switches, network, network layer, OSI Model, packet broadcast, switch, switches

About the Author: Indika

Indika, BSc.Eng, MSECE Computer Engineering, PhD. Computer Science, is an Assistant Professor and has research interests in the areas of Bioinformatics, Computational Biology, and Biomedical Natural Language Processing.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Request Article

Featured Posts

Difference Between Coronavirus and Cold Symptoms

Difference Between Coronavirus and Cold Symptoms

Difference Between Coronavirus and SARS

Difference Between Coronavirus and SARS

Difference Between Coronavirus and Influenza

Difference Between Coronavirus and Influenza

Difference Between Coronavirus and Covid 19

Difference Between Coronavirus and Covid 19

You May Like

Difference Between Veneration and Reverence

Difference Between Veneration and Reverence

Difference Between Joke and Riddle

Difference Between Collagen and Retinol

Difference Between Collagen and Retinol

Difference Between HTC Wildfire S and Apple iPhone 4

Difference Between Copper and Brass

Difference Between Copper and Brass

Latest Posts

  • What is the Difference Between de Quervain’s Tenosynovitis and Carpal Tunnel
  • What is the Difference Between Herniated Disc and Piriformis Syndrome
  • What is the Difference Between Spinal Stenosis and Spondylosis
  • What is the Difference Between Lip Flip and Lip Filler
  • What is the Difference Between Bone Spurs and Plantar Fasciitis
  • What is the Difference Between Tension Pneumothorax and Cardiac Tamponade
  • Home
  • Vacancies
  • About
  • Request Article
  • Contact Us

Copyright © 2010-2018 Difference Between. All rights reserved. Terms of Use and Privacy Policy: Legal.