Suppose a particular network
stack implementation uses the following algorithm
when it receives a packet,P,destined for IP address A:
if ( destination MAC address for P is in the ARP cache)
send P out the appropriate port
send an ARP query for A
buffer P until the ARP response comes back
a)If the IP layer receives a burst of packets destined for A, how might this algorithm waste resources?
b)Give pseudocode for an improved version.