difference between switch & pluge
Hubs enable computers on a network to communicate. Each computer plugs into the hub with an Ethernet cable, and information sent from one computer to another passes through the hub. A hub cant identify the source or intended destination of the information it receives, so it sends the information to all of the computers connected to it, including the one that sent it.
A hub can send or receive information, but it cant do both at the same time. This makes hubs slower than switches. Hubs are the least complex and the least expensive of these devices.
Switches work the same way as hubs, but they can identify the intended destination of the information that they receive, so they send that information to only the computers that are supposed to receive it. Switches can send and receive information at the same time, so they can send information faster than hubs can.