Added queue config to documentation

This commit is contained in:
Mark Qvist 2026-08-18 11:45:34 +02:00
parent efb8c8500d
commit 8c08b9ce09
No known key found for this signature in database
29 changed files with 230 additions and 91 deletions

View file

@ -7,7 +7,7 @@
<link rel="prefetch" href="_static/rns_logo_512.png" as="image">
<!-- Generated with Sphinx 8.2.3 and Furo 2025.09.25.dev1 -->
<title>Configuring Interfaces - Reticulum Network Stack 1.4.2 documentation</title>
<title>Configuring Interfaces - Reticulum Network Stack 1.5.0 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=d111a655" />
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?v=580074bf" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css?v=76b2166b" />
@ -180,7 +180,7 @@
</label>
</div>
<div class="header-center">
<a href="index.html"><div class="brand">Reticulum Network Stack 1.4.2 documentation</div></a>
<a href="index.html"><div class="brand">Reticulum Network Stack 1.5.0 documentation</div></a>
</div>
<div class="header-right">
<div class="theme-toggle-container theme-toggle-header">
@ -204,7 +204,7 @@
<img class="sidebar-logo" src="_static/rns_logo_512.png" alt="Logo"/>
</div>
<span class="sidebar-brand-text">Reticulum Network Stack 1.4.2 documentation</span>
<span class="sidebar-brand-text">Reticulum Network Stack 1.5.0 documentation</span>
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
<input class="sidebar-search" placeholder="Search" name="q" aria-label="Search">
@ -1768,6 +1768,44 @@ per second on a given interface.</div>
under the <code class="docutils literal notranslate"><span class="pre">[reticulum]</span></code> section of the configuration file, or on a per-
interface basis under the relevant interface configuration section.</p>
</section>
<section id="tuning-ingress-queues">
<h2>Tuning Ingress Queues<a class="headerlink" href="#tuning-ingress-queues" title="Link to this heading"></a></h2>
<p>Reticulum uses separate, prioritized queues for processing inbound packets. The default four queues are drained in the following order:</p>
<blockquote>
<div><ol class="arabic simple">
<li><p>Data and general traffic</p></li>
<li><p>Announces</p></li>
<li><p>Path requests</p></li>
<li><p>Ingress-limited traffic</p></li>
</ol>
</div></blockquote>
<p>You can tune the queue sizes from the defaults, for example if you’re setup where you want to simply drop most traffic from ingress-limited interfaces. The queue sizes are configured in the <code class="docutils literal notranslate"><span class="pre">[reticulum]</span></code> section of the config</p>
<blockquote>
<div><ul>
<li><div class="line-block">
<div class="line">The <code class="docutils literal notranslate"><span class="pre">qlen_in_data</span></code> option sets the maximum size of the data
queue. Defaults to <code class="docutils literal notranslate"><span class="pre">4096</span></code>.</div>
</div>
</li>
<li><div class="line-block">
<div class="line">The <code class="docutils literal notranslate"><span class="pre">qlen_in_announce</span></code> option sets the maximum size of the announce
queue. Defaults to <code class="docutils literal notranslate"><span class="pre">256</span></code>.</div>
</div>
</li>
<li><div class="line-block">
<div class="line">The <code class="docutils literal notranslate"><span class="pre">qlen_in_pr</span></code> option sets the maximum size of the data
queue. Defaults to <code class="docutils literal notranslate"><span class="pre">256</span></code>.</div>
</div>
</li>
<li><div class="line-block">
<div class="line">The <code class="docutils literal notranslate"><span class="pre">qlen_in_il</span></code> option sets the maximum size of the data
queue. Defaults to <code class="docutils literal notranslate"><span class="pre">128</span></code>.</div>
</div>
</li>
</ul>
</div></blockquote>
<p>If an inbound packet arrives and its target queue is full, the packet is dropped. Reticulum will always completely drain higher-priority queues before starting to drain a lower-priority one. As an example, the ingress limiter queue will only start draining once all other queues are empty.</p>
</section>
</section>
</article>
@ -1856,6 +1894,7 @@ interface basis under the relevant interface configuration section.</p>
<li><a class="reference internal" href="#announce-rate-control">Announce Rate Control</a></li>
<li><a class="reference internal" href="#new-destination-rate-limiting">New Destination Rate Limiting</a></li>
<li><a class="reference internal" href="#path-request-burst-control">Path Request Burst Control</a></li>
<li><a class="reference internal" href="#tuning-ingress-queues">Tuning Ingress Queues</a></li>
</ul>
</li>
</ul>
@ -1867,7 +1906,7 @@ interface basis under the relevant interface configuration section.</p>
</aside>
</div>
</div><script src="_static/documentation_options.js?v=02f2166e"></script>
</div><script src="_static/documentation_options.js?v=e0a75244"></script>
<script src="_static/doctools.js?v=9bcbadda"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="_static/scripts/furo.js?v=46bd48cc"></script>