Principles and Prevention of ARP Spoofing