<div>hmm a stupid workaround<br></div><div><br></div><div>is to define many interfaces in olsrd.conf that do not exist,.. (-;</div><div><br></div><div>e.g. put a interface list of e.g. tap0 .. tap100 into olsrd.conf</div><div>
<br></div><div>as long as u do not need more than 100 tunnel interfaces, you can add, remove, change, update tunnels without having to restart olsrd.</div><div><br></div><div>so the only prerequisite you need to know is how many tunnels you roughly need.<br>
</div><div><br></div><div>but in general it might be interesting to know, how efficient olsrd (and the kernel) is in handling thousands of interfaces:<br> as olsrd regularily polls them for changes (btw. pollinginterval could be increased in configfile))<br>
 furthermore olsrd needs to check the netlink events he listens too, against its list of interfaces, and i am quite sure there is no search tree for interface names, just a list.</div><div>  (btw the netlink listener could in theory replace the interface polling completely, currently olsrd uses both, the netlink events for low latency, and the polling for "safety" and compatibility with really old linux kernels)</div>
<div><br></div><div>furthermore even the linux kernel seems to get slow on too many interfaces,..</div><div>e.g. i once creates 10k l2tp tunnels, and the creation of interfaces noticeable slowed down during this, as likely the kernel seems to iterate over all existing interfaces, when it creates a new one. (as maybe it needs to check if the interface name is unique against a interface list)</div>
<div><br></div><div>operation (or routing traffic between them) instead works fine with so many interfaces, it just creating/deleting them which seems to scale badly,..</div><div><br></div><div>so maybe the olsrd interface polling will slow down quadratically, as olsrd has an interface list, and the kernel too. (and uses it for for name to ID translations of interfaces)</div>
<div><br></div><div>Markus</div><br><div class="gmail_quote">On Thu, Apr 12, 2012 at 1:41 AM, Mitar <span dir="ltr"><<a href="mailto:mmitar@gmail.com">mmitar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi!<br>
<br>
Is it possible to add dynamically interfaces while OLSR is running? We<br>
would like to try to use L2TP tunnels between nodes and servers and<br>
the problem is that on the server then there will be many many tunnels<br>
added as nodes connect. How it would be possible to inform OLSR of<br>
this new tunnels, without restarting it?<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
Mitar<br>
<br>
--<br>
Olsr-dev mailing list<br>
<a href="mailto:Olsr-dev@lists.olsr.org">Olsr-dev@lists.olsr.org</a><br>
<a href="https://lists.olsr.org/mailman/listinfo/olsr-dev" target="_blank">https://lists.olsr.org/mailman/listinfo/olsr-dev</a><br>
</font></span></blockquote></div><br>