I'm really confused about how the basic idea of updating the switch table works. In the case that the CRC is wrong it still updates the SMAC to use it next time maybe? Maybe because the error could be there (SMAC) the switch drops the SMAC with the message?
Another thing is what happened first, update the table or first send the message in case of store&forward mode?
 
                        
first look at this picture
The Scenario is PC1
10.0.0.2try to Ping PC310.0.0.4:10.0.0.4then thePC3will answer then send the answer again to the switch and say thats me how this happen ?ARP Message (Broadcast) contains :
SIP (Source IP)|DIP (Destination IP)|SMAC(Source Mac)|FF:FF:FF:FF:FF:FF (Destination MAC ~> BroadCast Message).ok how the PC3 Answer ?
the
ARP Protocolwill Answer then sendSMAC (11:11:11:11:11:11)|DMAC (33:33:33:33:33:33)so now the
Switchwill Save both of them inCAM TABLELike this picture :ok how the frame sent .. it based on the
Frame Check Sequence (FCS)its an extra detecting code in a communications protocol Frames are used tosend upper-layer dataand ultimately the application data from asourceto adestinationbut thedetectiondoen't meanerror recoveryjust define the errored frame then discared it because ethernet takes no action to be retransmitted soFSCfield contains a number that calculated by the source node based on the data in the frame this number added to the end of a frame that is sent when the destination node receives the frame the FCS number is recalculated and compared with the FCS number which included in the frame if the two numbers are different an error occurred and the frame will be discard with sending host computing theCRCon the entire frame and append this trailer like tagging it to the data then the receiving host recomputes the CRC on the frame then compares it to the received FCS in this case it can detect any data lost or altered in transit so it will not be necessary to update theCAM TABLEbecause it will not accept any frame that corrupted you can clear or flushCAM TABLEviaclear mac address-table dynamic or staticplease read more about FCS and CRC and how the frame sending the message https://en.wikipedia.org/wiki/Frame_check_sequenceUPDATED
let me show you a practical example first go and show the
CAM TABLEits emptyok what if
PC1try to ping non-existent ip address for example10.0.0.5ok Check Now the
CAM TABLEagainthe switch storing just the
SMACOk Again go and ping
pc3now it will replaynow check the
CAM TABLEagainok what if you want to flush your
CAM TABLEtryclear mac-address-table dynamicorstatic