switches works at the datalink layer of the OSI model and there learn the mac address of the attached pc and they maintain a table Called CAM ( content access Memory table ) this is done by a chip on the switch Called ASIC.
switches have 1 broadcast domain and each port on the switch is a collision domain ( ie a computer can send and recive the data at the same time )
switch is also called a multiport bridge because u can create multiple broadcast domain
Hub works at the physical layer of the OSI model, its job is to regenerate signals , it has 1 broadcast domain and 1 collsion domain ( ie only one computer can send or receive the message at any given point of time )
Jan 5, 2016