Skip to main content

Posts

Showing posts with the label OSI model

Hub vs Switch

In simple terms, both hubs and switches are used to connect devices, as shown below. However, hubs work differently from switches in their operations (that is in how they send packets).  How does a hub work? When a hub is connected as shown above to all computers, then data is broadcast to all the devices connected. For example, consider the diagram below. Suppose that computer A needs to send data to computer C.  Then it first sends data to the hub, where all the devices are connected, and then the hub will send this data to all the devices. Simply, a hub does not filter the addresses and sends a packet it receives to all the devices connected to it as shown below. Every computer checks the destination address of the packet and if the destination address of the packet match with that of the computer, the packet is accepted. Therefore, this is not an efficient approach of exchanging data. Furthermore, this nature of data sharing le...
DMCA.com Protection Status