| 1. |
How Switch Learns Mac Address? |
|
Answer» When a frame reaches to the port of a switch, the switch reads the MAC address of the source device from Ethernet frame and compares it to its MAC address table (also known as CAM (CONTENT Addressable Memory) table). If the switch does not FIND a corresponding entry in MAC address table, the switch will add the address to the table with the port number at which the Ethernet frame is RECEIVED. If the MAC address is already available in the MAC address table, the switch compares the incoming port with the port already available in the MAC table. If the port numbers are DIFFERENT, the switch updates the MAC address table with the NEW port number. When a frame reaches to the port of a switch, the switch reads the MAC address of the source device from Ethernet frame and compares it to its MAC address table (also known as CAM (Content Addressable Memory) table). If the switch does not find a corresponding entry in MAC address table, the switch will add the address to the table with the port number at which the Ethernet frame is received. If the MAC address is already available in the MAC address table, the switch compares the incoming port with the port already available in the MAC table. If the port numbers are different, the switch updates the MAC address table with the new port number. |
|