Routing を実行している Linux が ARP 解決待ちの間に保持するパケットの数

Linux にルータをやらせたとき、転送パケットのNext-HopのARP解決待ちの間に何個分のパケットをキューに保持してくれるかという話。

https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt

neigh/default/unres_qlen_bytes - INTEGER
    The maximum number of bytes which may be used by packets
    queued for each unresolved address by other network layers.
    (added in linux 3.3)
    Setting negative value is meaningless and will return error.
    Default: SK_WMEM_MAX, (same as net.core.wmem_default).
        Exact value depends on architecture and kernel options,
        but should be enough to allow queuing 256 packets
        of medium size.

neigh/default/unres_qlen - INTEGER
    The maximum number of packets which may be queued for each
    unresolved address by other network layers.
    (deprecated in linux 3.3) : use unres_qlen_bytes instead.
    Prior to linux 3.3, the default value is 3 which may cause
    unexpected packet loss. The current default value is calculated
    according to default value of unres_qlen_bytes and true size of
    packet.
    Default: 101

sysctlでパケット数とバイト数によって設定される。パケット数のデフォルトは101。