I have a question about ARP. If there are two PCs connected to a L2 VLAN of a switch and they are sending data. What will happen if the destination PC ip address is changed without informing source PC where the source PC continue transfering data thinking all are in place. So my question in this senario is where the data will be lost. Is the data lost happen in the OS of destination PC ? My assumption is, if the ip address of destination host gets changed and source PC has not been informed, it will continue tranfering data to old destination ip address. Data will be sucessfully delivered from source host to connected switch as arp entry still valid with source host. Once switch receives the data from source PC it checked L2 forwarding table for destination host mac address and as it is found because no change had been made to mac address and the data gets delivered to the destination host, When the data hits the destination host OS kernel it experences that ther header destination IP address in the packet is not intended for me and hence the data discarded. And this flow keeps happen until source has not been informed about change of destination host address(Unnecessary processing of data by switch where it is supposed to be discarded by destination host).So is there any way to inform switch to discard the packet immediately after it gets into the box.
My second question is if the destination host IP address is assgned to a new PC, how source host update its arp entry about destination host mac address because it won't generate any further arp broadcast unless existing arp entry aganist same IP address is timed out.