Hubs and Switches
The fundamental function of Hubs and Switches is to connect multiple devices to one Network.
Although they perform the same basic function, there are some key differences between them.
The term Switch commonly refers to a network bridge that processes and routes data at OSI Model Layer 2 (Data Link).
Switches that additionally process data at OSI Model Layer 3 (Network) and above are often referred to as "Layer 3 Switches" or Multilayer Switches.
A Hub is an OSI Layer 1 (Physical) Device and is used in a wired Network to connect Ethernet cables from a number of devices together.
Note that OSI Model Layer 2 (used by Switches) has a MAC sublayer:
The Media access control (MAC) sublayer is responsible for:
- Multiple access protocols for channel-access control, for example CSMA/CD protocols for collision detection and re-transmission in Ethernet bus networks and hub networks, or the CSMA/CA protocol for collision avoidance in wireless networks.
- Physical addressing (MAC addressing)
- LAN switching (packet switching) including MAC filtering and spanning tree protocol
- Data packet queuing or scheduling
- Store-and-forward switching or cut-through switching
- Quality of Service (QoS) control
- Virtual LANs (VLAN)
- Hubs don't have MAC addresses
- Switches have a MAC address and know about the MAC address of attached devices.