Switch Transceiver Principle: Working at the data Link layer, the switch has a very high bandwidth of the back bus and the internal switching matrix. All ports on the switch are hooked up to this bus. When the packet is received, the processing port looks for the in-memory MAC address (that is , the physical address in the serial EEPROM that is cured on the NIC ) to that port, which is sent to the destination port through the internal exchange matrix. The destination port does not exist, it is broadcast to all ports, the receive port responds after the exchange opportunity learns the new Mac address, and adds it to the internal Mac Address table.
The following is a simple representation in the form of graphs:
assuming the switch Both a and switch B MAC addresses are empty.
now the host sends data to the host one by one , because the switch MAC address is empty, so switch A learns first. At this point the address of Switch A is:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/7D/5B/wKioL1bmoOHhb2--AADvlVQlOuQ371.jpg "title=" 11.jpg "alt=" Wkiol1bmoohhb2--aadvlvqlouq371.jpg "/>
because the switch the MAC's address table is empty, so broadcasts are sent over Port 2 and Port 3 .
650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M00/7D/5D/wKiom1bmoNTx_P7EAABLvjd8Ylo590.jpg "title=" 22.jpg "alt=" Wkiom1bmontx_p7eaablvjd8ylo590.jpg "/>
Switch 2 receives data over 4 ports and performs the following actions:
1: Learn MAC address
2: send broadcast via port 5,6
At this point the MAC address of Switch 2 is:
650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M01/7D/5B/wKioL1bmok2iufDYAAApxokiZo0374.jpg "title=" 33.jpg "alt=" Wkiol1bmok2iufdyaaapxokizo0374.jpg "/>
At this point, host 13 receives data, 12 and 14 discards the data.
Switch Transceiver Principle