DIFFERENCE BETWEEN HUB AND SWITCH:
Hub works in the PHYSICAL LAYER and the hubs are often termed as the Layer 1 devices of the OSI model.
A switch works in the DATA LINK LAYER and the switch is often termed as the Layer 2 device of the OSI model.
The main function of a hub is to connect a network which consists of personal computers together. This can be accomplished by the use of a central hub.
The switch has various functions ranging from connecting devices, managing the VLAN (Virtual LAN) security and also manages ports.
3. DATA TRANSMISSION FORM
In the case of a hub, the data is sent in the form of electrical impulses or bits.
In the case of a switch, frames are used for data transmission in L2 switch and packets are used for data transmission in L3 switch.
A hub has about 4/12 ports.
A switch is considered as a Multi-port bridge, that is why it has 24/48 ports.
5. TRANSMISSION TYPE
A hub follows the mechanism of Frame flooding which could be broadcast, unicast or multicast.
A switch firstly performs the broadcast, then it does the unicast and at last, the multicast if required or needed.
6. DEVICE TYPE
A hub is also known as a Passive device, which is without any software.
A switch is also known as an Active device, which is with software and also networking device.
7. TRANSMISSION MODE
In a hub, the basic transmission mode which is followed is a half duplex.
In a switch, the basic transmission mode which is followed is full/half duplex.
The hub device can offer you a speed which is about 10Mbps.
The switch device can offer you speeds ranging from 10-100 Mbps and it can even offer a speed of 1 Gbps.