Both are same, only difference is static and dynamic ,most of the time, we use dynamic ARP entries ,means is that the ARP entry (the Ethernet MAC to IP address link) is kept on a device for some period of time, as long as it is being used. The opposite of a dynamic ARP entry is static ARP entry. With a static ARP entry, you are manually entering the link between the Ethernet MAC address and the IP address. Because of management headaches and the lack of significant negatives to using dynamic ARP entries, dynamic ARP entries are used most of the time.
suppose if we have pc connected to a device, as long as the device is connected we can see the arp entry in the pc , if we remove the cable between pc and device the arp entry will be removed ..called dynamic
ARP table and ARP cache is the same concept but different names.
The device first looks into its arp cache to see if it has a mapping to be able to create the L2 header with DST MAC.If it doesn't have then it will do an ARP request and when it receives reply put it for a certain amount of time in its ARP cache so subsequent communication to the device having this MAC will be possible without each time sending an ARP request.
ARP is _the_ protocol! The protocol reserves a temporary storage place in RAM memory of the device called the arp-cache, this is basically where the arp-table is being stored/maintained. So when you do an show arp you are retrieving the arp-table from the arp-cache/storage.
Just some usefull information on how ARP works!
ARP, a very simple protocol, consists of merely four basic message types:
- An ARP Request. Computer A asks the network, "Who has this IP address?"
- An ARP Reply. Computer B tells Computer A, "I have that IP. My MAC address is [whatever it is]."
- A Reverse ARP Request (RARP). Same concept as ARP Request, but Computer A asks, "Who has this MAC address?"
- A RARP Reply. Computer B tells Computer A, "I have that MAC. My IP address is [whatever it is]"
A step by step how ARP works: