Re: Autoconnect backoff

On Wed, 2022-07-06 at 15:14 +0200, Sven Schwermer via networkmanager-
list wrote:

I have a device with cellular modem running a Linux-based OS with 
ModemManager/NetworkManager used for the connectivity management. 
Occasionally, the cellular connection breaks and it takes several 
connection attempts until the connection can be established again. 
Currently, we have autoconnect-retries=0 for our cellular connection
there are infinite retries. This, however, can cause significant
load if the ModemManager connect (dbus) calls fail immediately which 
occasionally happens.

As far as I understand, NetworkManager will attempt a new
attempt right away after the previous attempt failed. The only way of
slowing this down is to set autoconnect-retries=1 which will cause 
NetworkManager to wait for 5 minutes between attempts. This wait 
duration seems to be fixed.

Is there a way to make NetworkManager perform a backoff (e.g. linear
exponential) between connection attempts? Are there any other ways to
guarantee that the cellular modem is "always connected" without
NetworkManager to loop like crazy when a (re-)connection attempt

Thanks and best regards,


what you say is correct.

No, this is how it works.

After autoconnect-retries, autoconnect gets blocked for 5 minutes. That
is not configurable.

Patch or suggestion for improvements welcome, however, it's not clear
to me how to extend this so that it makes sense.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]