3 ms·
In the internet protocol suite, there is something called ARP. That will cause a small latency spike whenever an ARP cache entry expires. The host wants to sen
by kazinator 11y ago
In the internet protocol suite, there is something called ARP. That will cause a small latency spike whenever an ARP cache entry expires.
The host wants to send a datagram to some IP address Y somewhere. It knows that the route for that IP goes through some local gateway with IP address X, so it must actually send the datagram to X, for which it needs the MAC. Normally, it knows the MAC of that gateway, because X is associated with the MAC in the ARP cache.
From time to time, the ARP cache entry expires. In that case, before the packet can be sent to the remote host Y, an ARP query must be performed: an ARP "who has X?" broadcast request is generated, to which the gateway will reply. Only then can that host send the packet to Y, through X.
This extra ARP exchange shouldn't take anywhere near 100 milliseconds, of course. But that is beyond the control of the host that is querying.