Hi Subrat, The difference between a switch and a hub are as follows: A switch operates on the data link layer of the OSI model where the hub operates on the physical layer of the OSI model. Switches maintain a table of MAC addresses and therefore connect two computers across the network via their address. Hubs on the other hand are regarded as broadcast devices sending a message to all computers on the network rather than one single address.