Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Jul 2020 16:38:54 +0300
From:      Alexandr Baryshnyev <abb@abbon.net>
To:        "Alexander V. Chernikov" <melifaro@ipfw.ru>, "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Re: How to increase the size of the MAC address caching table?
Message-ID:  <48aedb01-d705-296a-85ba-e2dbf43c4ba2@abbon.net>
In-Reply-To: <1073051595077683@mail.yandex.ru>
References:  <fcebf573-820a-cdd5-6f03-f24b2123d1a4@abbon.net> <1073051595077683@mail.yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
18.07.2020 16:16, Alexander V. Chernikov пишет:
> 18.07.2020, 13:56, "Alexandr Baryshnyev" <abb@abbon.net>:
> 
>     Hello everybody.
> 
>         I have about 1,500 devices on the network, but in fact the MAC address table on the central router running Freebsd
>     12.0 never contains more than 1000 with small cached records. In the network, there are short-term random interruptions
>     between different hosts and the router. The connection to the Internet on different computers in the network is lost for
>     a short time. No apparent cause of these breaks was found.
> 
> How often does this happens and what is the average "short-term" duration?
> I'd look into route -n monitor (don't remember if arp state reporting was merged into 12.0) and try to tcpdump arp 
> traffic to get understanding what's happening here.
> Also: does this router perform TCP termination of the flows toward Internet?

Breaks occur for no apparent reason. If you take one computer on the network, it first works without problems for a long 
time, then it suddenly starts breaks: one minute there is no connection, then there are a few minutes and so on in a 
circle. After a while (sometimes from one to three days) normal operation on this computer resumes, but the problem goes 
to another computer on the network and there is the same thing that happened on the previous computer.

>         There is a suspicion that the MAC address table on the FreeBSD router has a limited size, about 1000 with a small
>     record maximum. Is that so? Is it possible to increase the size of this table if it is limited? An internet search was
>     not successful.
> 
> It's not limited.

OK, thank you. So we have another cause for our problem.

>        Help me, please.
> 
>       > arp -an | grep -ve incomplete | wc -l
>           1055
> 
> "Incomplete" are still entries in the per-interface mac address table. What's the size with incomplete ones?

 > arp -an | wc -l
     1183
 > ifconfig bridge0 addr | wc -l
     1214

   Thank you.
-- 
    Best regards,
    Alexandr B. Baryshnyev, e-mail: abb@abbon.net



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48aedb01-d705-296a-85ba-e2dbf43c4ba2>