我们在定制的 Linux 机器上运行路由器。内核是 3.14.14。
发生的情况是,当您以仅广播模式对路由器进行 ARP 时,路由器的响应时间非常慢:
# arping -b -c 50 -w 100000 -I em1.3069 -s 77.46.0.181 77.46.0.1
ARPING 77.46.0.1 from 77.46.0.181 em1.3069
Unicast reply from 77.46.0.1 [78:2B:CB:49:00:CA] 773.358ms
Unicast reply from 77.46.0.1 [78:2B:CB:49:00:CA] 667.217ms
Unicast reply from 77.46.0.1 [78:2B:CB:49:00:CA] 403.133ms
Unicast reply from 77.46.0.1 [78:2B:CB:49:00:CA] 284.954ms
Unicast reply from 77.46.0.1 [78:2B:CB:49:00:CA] 243.775ms
但是如果你不使用 -b 标志:
# arping -c 50 -w 100000 -I em1.3069 -s 77.46.0.181 77.46.0.1
ARPING 77.46.0.1 from 77.46.0.181 em1.3069
Unicast reply from 77.46.0.1 [78:2B:CB:49:00:CA] 189.149ms
Unicast reply from 77.46.0.1 [78:2B:CB:49:00:CA] 0.773ms
Unicast reply from 77.46.0.1 [78:2B:CB:49:00:CA] 0.815ms
Unicast reply from 77.46.0.1 [78:2B:CB:49:00:CA] 0.760ms
Unicast reply from 77.46.0.1 [78:2B:CB:49:00:CA] 0.798ms
Sent 5 probes (1 broadcast(s))
Received 5 response(s)
只有第一个回复会受到影响(广播回复)。有人知道这里可能发生了什么吗?
感谢帮助。