GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing reticulum.network — Configuring Interfaces - Reticulum Network Stack 1.6.1 documentation Configuring Interfaces¶Reticulum supports using many kinds of devices as networking interfaces, and allows you to mix and match them in any way you choose. The number of distinct network topologies you can create with Reticulum is more or less endless, but common to them all is that you will need to define one or more interfaces for Reticulum to use. The following sections describe the interfaces currently available in Reticulum, and gives example configurations for the respective interface types. For a high-level overview of how networks can be formed over different interface types, have a look at the Building Networks chapter of this manual. Custom Interfaces¶In addition to the built-in interface types, Reticulum is fully extensible with custom, user- or community-supplied interfaces, and creating custom interface modules is straightforward. Please see the custom interface example for basic interface code to build upon. Auto Interface¶The Warning If you have firewall software running on your computer, it may block traffic
required for As long as there is at least some sort of switching medium present between peers (a wired switch, a hub, a WiFi access point or similar, or simply two devices connected directly by Ethernet cable), it will work without any configuration, setup or intermediary devices. For Note Almost all current Ethernet and WiFi hardware will work without any kind
of configuration or setup with # This example demonstrates a bare-minimum setup # of an Auto Interface. It will allow communica- # tion with all other reachable devices on all # usable physical ethernet-based devices that # are available on the system. [[Default Interface]] type = AutoInterface enabled = yes # This example demonstrates an more specifically # configured Auto Interface, that only uses spe- # cific physical interfaces, and has a number of # other configuration options set. [[Default Interface]] type = AutoInterface enabled = yes # You can create multiple isolated Reticulum # networks on the same physical LAN by # specifying different Group IDs. group_id = reticulum # You can also choose the multicast address type: # temporary (default, Temporary Multicast Address) # or permanent (Permanent Multicast Address) multicast_address_type = permanent # You can also select specifically which # kernel networking devices to use. devices = wlan0,eth1 # Or let AutoInterface use all suitable # devices except for a list of ignored ones. ignored_devices = tun0,eth0 If you are connected to the Internet with IPv6, and your provider will route
IPv6 multicast, you can potentially configure the Auto Interface to globally
autodiscover other Reticulum nodes within your selected Group ID. You can specify
the discovery scope by setting it to one of [[Default Interface]] type = AutoInterface enabled = yes # Configure global discovery group_id = custom_network_name discovery_scope = global # Other configuration options discovery_port = 48555 data_port = 49555 Backbone Interface¶The Backbone interface is a very fast and resource efficient interface type, primarily intended for interconnecting Reticulum instances over many different types of mediums. It uses a kernel-event I/O backend, and can handle thousands of interfaces and/or clients with relatively low system resource utilisation. This interface type is currently only supported on Linux and Android. Note The Backbone Interface is fully compatible with the While the goal is to support all socket types and I/O devices provided by the underlying operating system, the initial release only provides support for TCP connections over IPv4 and IPv6. For all types of connections over a Listeners¶The following examples illustrates various ways to set up # This example demonstrates a backbone interface # that listens for incoming connections on the # specified IP address and port number. [[Backbone Listener]] type = BackboneInterface enabled = yes listen_on = 0.0.0.0 port = 4242 # Alternatively you can bind to a specific IP [[Backbone Listener]] type = BackboneInterface enabled = yes listen_on = 10.0.0.88 port = 4242 # Or a specific network device [[Backbone Listener]] type = BackboneInterface enabled = yes device = eth0 port = 4242 If you are using the interface on a device which has both IPv4 and IPv6 addresses available,
you can use the # This example demonstrates a backbone interface # listening on the IPv6 address of a specified # kernel networking device. [[Backbone Listener]] type = BackboneInterface enabled = yes prefer_ipv6 = yes device = eth0 port = 4242 To use the # This example demonstrates a backbone interface # listening for connections over Yggdrasil. [[Yggdrasil Backbone Interface]] type = BackboneInterface enabled = yes device = tun0 port = 4343 Connecting Remotes¶The following examples illustrates various ways to connect to remote # Here's an example of a backbone interface that # connects to a remote listener. [[Backbone Remote]] type = BackboneInterface enabled = yes remote = amsterdam.connect.reticulum.network target_port = 4251 To connect to remotes over Yggdrasil, simply specify the target Yggdrasil IPv6 address and port, like so: [[Yggdrasil Remote]] type = BackboneInterface enabled = yes target_host = 201:5d78:af73:5caf:a4de:a79f:3278:71e5 target_port = 4343 Automated Blocking¶Listener instances of While such bypass attempts only have very limited effect on the amount of spam actually dumped (ingress limits trigger immediately once a client exceeds rate limits), the behavior is often seen anyways, and causes log noise and needless interface rotation. The fast-flapping block ensures such clients are never allocated an interface on the transport instance. Another common cause can simply be clients using implementations that are broken, or automated scanning tools attempting to connect to the instance. [[Backbone Listener]] type = BackboneInterface enabled = yes listen_on = 0.0.0.0 port = 4242 # Whether to enable blocking block_fast_flapping = yes # How long an IP address stays # blocked, in minutes. Set to # 12 hours by default. fast_flapping_block_time = 720 # The minimum time, in seconds, # an interface must stay connected # to be considered not fast-flapping. fast_flapping_threshold = 20 # Amount of fast flaps a remote # IP can perform before having # blocking triggered. fast_flapping_grace = 5 The configuration options listed in the example above are the default values, and you do not need to add them for automated blocking to work, but you can use them to change the behavior from the defaults, if necessary. TCP Server Interface¶The TCP Server interface is suitable for allowing other peers to connect over the Internet or private IPv4 and IPv6 networks. When a TCP server interface has been configured, other Reticulum peers can connect to it with a TCP Client interface. # This example demonstrates a TCP server interface. # It will listen for incoming connections on all IP # interfaces on port 4242. [[TCP Server Interface]] type = TCPServerInterface enabled = yes listen_ip = 0.0.0.0 listen_port = 4242 # Alternatively you can bind to a specific IP [[TCP Server Interface]] type = TCPServerInterface enabled = yes listen_ip = 10.0.0.88 listen_port = 4242 # Or a specific network device [[TCP Server Interface]] type = TCPServerInterface enabled = yes device = eth0 listen_port = 4242 If you are using the interface on a device which has both IPv4 and IPv6 addresses available,
you can use the # This example demonstrates a TCP server interface. # It will listen for incoming connections on the # specified IP address and port number. [[TCP Server Interface]] type = TCPServerInterface enabled = yes prefer_ipv6 = True device = eth0 port = 4242 To use the TCP Server Interface over Yggdrasil, you
can simply specify the Yggdrasil [[Yggdrasil TCP Server Interface]] type = TCPServerInterface enabled = yes device = tun0 listen_port = 4343 Note The TCP interfaces support tunneling over I2P, but to do so reliably, you must use the i2p_tunneled option: [[TCP Server on I2P]] type = TCPServerInterface enabled = yes listen_ip = 127.0.0.1 listen_port = 5001 i2p_tunneled = yes In almost all cases, it is easier to use the dedicated TCP Client Interface¶To connect to a TCP server interface, you can use the TCP client interface. Many TCP Client interfaces from different peers can connect to the same TCP Server interface at the same time. The TCP interface types can also tolerate intermittency in the IP link layer. This means that Reticulum will gracefully handle IP links that go up and down, and restore connectivity after a failure, once the other end of a TCP interface reappears. # Here's an example of a TCP Client interface. The # target_host can be a hostname or an IPv4 or IPv6 address. [[TCP Client Interface]] type = TCPClientInterface enabled = yes target_host = 127.0.0.1 target_port = 4242 To use the TCP Client Interface over Yggdrasil, simply specify the target Yggdrasil IPv6 address and port, like so: [[Yggdrasil TCP Client Interface]] type = TCPClientInterface enabled = yes target_host = 201:5d78:af73:5caf:a4de:a79f:3278:71e5 target_port = 4343 It is also possible to use this interface type to connect via other programs
or hardware devices that expose a KISS interface on a TCP port, for example
software-based soundmodems. To do this, use the # Here's an example of a TCP Client interface that connects # to a software TNC soundmodem on a KISS over TCP port. [[TCP KISS Interface]] type = TCPClientInterface enabled = yes kiss_framing = True target_host = 127.0.0.1 target_port = 8001 fixed_mtu = 500 Caution! Only use the KISS framing option when connecting to external devices
and programs like soundmodems and similar over TCP. When using the
For KISS devices that need only supports a particular MTU, you can use the
Note The TCP interfaces support tunneling over I2P, but to do so reliably, you must use the i2p_tunneled option: [[TCP Client over I2P]] type = TCPClientInterface enabled = yes target_host = 127.0.0.1 target_port = 5001 i2p_tunneled = yes UDP Interface¶A UDP interface can be useful for communicating over IP networks, both private and the internet. It can also allow broadcast communication over IP networks, so it can provide an easy way to enable connectivity with all other peers on a local area network. Warning Using broadcast UDP traffic has performance implications, especially on WiFi. If your goal is simply to enable easy communication with all peers in your local Ethernet broadcast domain, the Auto Interface performs much better, and is even easier to use. # This example enables communication with other # local Reticulum peers over UDP. [[UDP Interface]] type = UDPInterface enabled = yes listen_ip = 0.0.0.0 listen_port = 4242 forward_ip = 255.255.255.255 forward_port = 4242 # The above configuration will allow communication # within the local broadcast domains of all local # IP interfaces. # Instead of specifying listen_ip, listen_port, # forward_ip and forward_port, you can also bind # to a specific network device like below. # device = eth0 # port = 4242 # Assuming the eth0 device has the address # 10.55.0.72/24, the above configuration would # be equivalent to the following manual setup. # Note that we are both listening and forwarding to # the broadcast address of the network segments. # listen_ip = 10.55.0.255 # listen_port = 4242 # forward_ip = 10.55.0.255 # forward_port = 4242 # You can of course also communicate only with # a single IP address # listen_ip = 10.55.0.15 # listen_port = 4242 # forward_ip = 10.55.0.16 # forward_port = 4242 I2P Interface¶The I2P interface lets you connect Reticulum instances over the Invisible Internet Protocol. This can be especially useful in cases where you want to host a globally reachable Reticulum instance, but do not have access to any public IP addresses, have a frequently changing IP address, or have firewalls blocking inbound traffic. Using the I2P interface, you will get a globally reachable, portable and persistent I2P address that your Reticulum instance can be reached at. To use the I2P interface, you must have an I2P router running
on your system. The easiest way to achieve this is to download and
install the latest release
of the When an I2P router is running on your system, you can simply add an I2P interface to Reticulum: [[I2P]] type = I2PInterface enabled = yes connectable = yes On the first start, Reticulum will generate a new I2P address for the
interface and start listening for inbound traffic on it. This can take
a while the first time, especially if your I2P router was also just
started, and is not yet well-connected to the I2P network. When ready,
you should see I2P base32 address printed to your log file. You can
also inspect the status of the interface using the To connect to other Reticulum instances over I2P, just add a comma-separated
list of I2P base32 addresses to the [[I2P]] type = I2PInterface enabled = yes connectable = yes peers = 5urvjicpzi7q3ybztsef4i5ow2aq4soktfj7zedz53s47r54jnqq.b32.i2p It can take anywhere from a few seconds to a few minutes to establish I2P connections to the desired peers, so Reticulum handles the process in the background, and will output relevant events to the log. Note While the I2P interface is the simplest way to use Reticulum over I2P, it is also possible to tunnel the TCP server and client interfaces over I2P manually. This can be useful in situations where more control is needed, but requires manual tunnel setup through the I2P daemon configuration. It is important to note that the two methods are interchangably compatible. You can use the I2PInterface to connect to a TCPServerInterface that was manually tunneled over I2P, for example. This offers a high degree of flexibility in network setup, while retaining ease of use in simpler use-cases. RNode LoRa Interface¶To use Reticulum over LoRa, the RNode interface can be used, and offers full control over LoRa parameters. Warning Radio frequency spectrum is a legally controlled resource, and legislation varies widely around the world. It is your responsibility to be aware of any relevant regulation for your location, and to make decisions accordingly. # Here's an example of how to add a LoRa interface # using the RNode LoRa transceiver. [[RNode LoRa Interface]] type = RNodeInterface # Enable interface if you want use it! enabled = yes # Serial port for the device port = /dev/ttyUSB0 # You can connect wirelessly to the # RNode device if it supports WiFi. # Connect by IP address # port = tcp://10.0.0.1 # Or, connect by hostname # port = tcp://rnodef3b9.local # It is also possible to use BLE devices # instead of wired serial ports. The # target RNode must be paired with the # host device before connecting. BLE # devices can be connected by name, # BLE MAC address or by any available. # Connect to specific device by name # port = ble://RNode 3B87 # Or by BLE MAC address # port = ble://F4:12:73:29:4E:89 # Or connect to the first available, # paired device # port = ble:// # Set frequency to 867.2 MHz frequency = 867200000 # Set LoRa bandwidth to 125 KHz bandwidth = 125000 # Set TX power to 7 dBm (5 mW) txpower = 7 # Select spreading factor 8. Valid # range is 7 through 12, with 7 # being the fastest and 12 having # the longest range. spreadingfactor = 8 # Select coding rate 5. Valid range # is 5 throough 8, with 5 being the # fastest, and 8 the longest range. codingrate = 5 # You can configure the RNode to send # out identification on the channel with # a set interval by configuring the # following two parameters. # id_callsign = MYCALL-0 # id_interval = 600 # For certain homebrew RNode interfaces # with low amounts of RAM, using packet # flow control can be useful. By default # it is disabled. # flow_control = False # It is possible to limit the airtime # utilisation of an RNode by using the # following two configuration options. # The short-term limit is applied in a # window of approximately 15 seconds, # and the long-term limit is enforced # over a rolling 60 minute window. Both # options are specified in percent. # airtime_limit_long = 1.5 # airtime_limit_short = 33 RNode Multi Interface¶For RNodes that support multiple LoRa transceivers, the RNode Multi interface can be used to configure sub-interfaces individually. Warning Radio frequency spectrum is a legally controlled resource, and legislation varies widely around the world. It is your responsibility to be aware of any relevant regulation for your location, and to make decisions accordingly. # Here's an example of how to add an RNode Multi interface # using the RNode LoRa transceiver. [[RNode Multi Interface]] type = RNodeMultiInterface # Enable interface if you want to use it! enabled = yes # Serial port for the device port = /dev/ttyACM0 # You can configure the RNode to send # out identification on the channel with # a set interval by configuring the # following two parameters. # id_callsign = MYCALL-0 # id_interval = 600 # A subinterface [[[High Datarate]]] # Subinterfaces can be enabled and disabled in of themselves enabled = yes # Set frequency to 2.4GHz frequency = 2400000000 # Set LoRa bandwidth to 1625 KHz bandwidth = 1625000 # Set TX power to 0 dBm (0.12 mW) txpower = 0 # The virtual port, only the manufacturer # or the person who wrote the board config # can tell you what it will be for which # physical hardware interface vport = 1 # Select spreading factor 5. Valid # range is 5 through 12, with 5 # being the fastest and 12 having # the longest range. spreadingfactor = 5 # Select coding rate 5. Valid range # is 5 throough 8, with 5 being the # fastest, and 8 the longest range. codingrate = 5 # It is possible to limit the airtime # utilisation of an RNode by using the # following two configuration options. # The short-term limit is applied in a # window of approximately 15 seconds, # and the long-term limit is enforced # over a rolling 60 minute window. Both # options are specified in percent. # airtime_limit_long = 100 # airtime_limit_short = 100 [[[Low Datarate]]] # Subinterfaces can be enabled and disabled in of themselves enabled = yes # Set frequency to 865.6 MHz frequency = 865600000 # The virtual port, only the manufacturer # or the person who wrote the board config # can tell you what it will be for which # physical hardware interface vport = 0 # Set LoRa bandwidth to 125 KHz bandwidth = 125000 # Set TX power to 0 dBm (0.12 mW) txpower = 0 # Select spreading factor 7. Valid # range is 5 through 12, with 5 # being the fastest and 12 having # the longest range. spreadingfactor = 7 # Select coding rate 5. Valid range # is 5 throough 8, with 5 being the # fastest, and 8 the longest range. codingrate = 5 # It is possible to limit the airtime # utilisation of an RNode by using the # following two configuration options. # The short-term limit is applied in a # window of approximately 15 seconds, # and the long-term limit is enforced # over a rolling 60 minute window. Both # options are specified in percent. # airtime_limit_long = 100 # airtime_limit_short = 100 Serial Interface¶Reticulum can be used over serial ports directly, or over any device with a serial port, that will transparently pass data. Useful for communicating directly over a wire-pair, or for using devices such as data radios and lasers. [[Serial Interface]] type = SerialInterface enabled = yes # Serial port for the device port = /dev/ttyUSB0 # Set the serial baud-rate and other # configuration parameters. speed = 115200 databits = 8 parity = none stopbits = 1 Pipe Interface¶Using this interface, Reticulum can use any program as an interface via stdin and stdout. This can be used to easily create virtual interfaces, or to interface with custom hardware or other systems. [[Pipe Interface]] type = PipeInterface enabled = yes # External command to execute command = netcat -l 5757 # Optional respawn delay, in seconds respawn_delay = 5 Reticulum will write all packets to stdin of the KISS Interface¶With the KISS interface, you can use Reticulum over a variety of packet radio modems and TNCs, including OpenModem. KISS interfaces can also be configured to periodically send out beacons for station identification purposes. Warning Radio frequency spectrum is a legally controlled resource, and legislation varies widely around the world. It is your responsibility to be aware of any relevant regulation for your location, and to make decisions accordingly. [[Packet Radio KISS Interface]] type = KISSInterface enabled = yes # Serial port for the device port = /dev/ttyUSB1 # Set the serial baud-rate and other # configuration parameters. speed = 115200 databits = 8 parity = none stopbits = 1 # Set the modem preamble. preamble = 150 # Set the modem TX tail. txtail = 10 # Configure CDMA parameters. These # settings are reasonable defaults. persistence = 200 slottime = 20 # You can configure the interface to send # out identification on the channel with # a set interval by configuring the # following two parameters. The KISS # interface will only ID if the set # interval has elapsed since it's last # actual transmission. The interval is # configured in seconds. # This option is commented out and not # used by default. # id_callsign = MYCALL-0 # id_interval = 600 # Whether to use KISS flow-control. # This is useful for modems that have # a small internal packet buffer, but # support packet flow control instead. flow_control = false AX.25 KISS Interface¶If you’re using Reticulum on amateur radio spectrum, you might want to use the AX.25 KISS interface. This way, Reticulum will automatically encapsulate it’s traffic in AX.25 and also identify your stations transmissions with your callsign and SSID. Only do this if you really need to! Reticulum doesn’t need the AX.25 layer for anything, and it incurs extra overhead on every packet to encapsulate in AX.25. A more efficient way is to use the plain KISS interface with the beaconing functionality described above. Warning Radio frequency spectrum is a legally controlled resource, and legislation varies widely around the world. It is your responsibility to be aware of any relevant regulation for your location, and to make decisions accordingly. [[Packet Radio AX.25 KISS Interface]] type = AX25KISSInterface # Set the station callsign and SSID callsign = NO1CLL ssid = 0 # Enable interface if you want use it! enabled = yes # Serial port for the device port = /dev/ttyUSB2 # Set the serial baud-rate and other # configuration parameters. speed = 115200 databits = 8 parity = none stopbits = 1 # Set the modem preamble. A 150ms # preamble should be a reasonable # default, but may need to be # increased for radios with slow- # opening squelch and long TX/RX # turnaround preamble = 150 # Set the modem TX tail. In most # cases this should be kept as low # as possible to not waste airtime. txtail = 10 # Configure CDMA parameters. These # settings are reasonable defaults. persistence = 200 slottime = 20 # Whether to use KISS flow-control. # This is useful for modems with a # small internal packet buffer. flow_control = false Discoverable Interfaces¶Reticulum includes a powerful system for publishing your local interfaces to the wider network, allowing other peers to discover, validate, and automatically connect to them. This feature is particularly useful for creating decentralized networks where peers can dynamically find entrypoints, such as public Internet gateways or local radio access points, without relying on static configuration files or centralized directories. When an interface is made discoverable, your Reticulum instance will periodically broadcast an announce packet containing the connection details and parameters required for other peers to establish a connection. These announces are propagated over the network using the standard Reticulum announce mechanism using the Enabling Discovery¶Interface discovery is enabled on a per-interface basis. To make a specific interface discoverable, you must add the [[My Public Gateway]] type = BackboneInterface ... discoverable = yes Once enabled, Reticulum will automatically handle the generation, signing, stamping, and broadcasting of the discovery announces. It is not required to enable Transport to publish interface discovery information, but for most use cases where you want others to connect to you, you will likely want Discovery Parameters¶When Basic Metadata
Connectivity Specification
Note When using an executable script for A minimal example of a script that resolves the externally available, public IP of an internet-connected system could look like this: #!/bin/bash curl -s ip.me exit $? On a real system, you should make the script robust enough to deal with intermittent Internet or service failures, such that the script always returns a sensible value, or if not possible at least exits with a non-zero exit return code, so Reticulum knows the output is invalid. Security & Cost
Privacy & Encryption
Important If you enable
Physical Location
Note The height value for interface discovery is specified in height above mean sea level! This is the geoid-corrected height value, and is distinct from GPS altitude. If you manually specify height, it will typically be set to what you find on a topographical map. If you are using a script to output the location data, make sure that you are using the geoid-corrected altitude, not height above the GPS ellipsoid. Most GPS systems will make both figures available. Radio Parameters For physical radio interfaces like
Interface Modes¶When you enable discovery on an interface, Reticulum enforces certain interface modes to ensure the interface is actually useful for remote peers. If an interface is configured as For example, if you enable discovery on a Security Considerations¶When making interfaces discoverable, you are effectively broadcasting an invitation to connect to your system. It is important to understand the security implications of the configuration options you choose. Publishing Credentials If you enable Topology Exposure A discoverable interface announces its presence, location (if configured), and capabilities to the network. Even if the connection details are encrypted, the fact that a connectable node exists within a certain network becomes public information. In high-security or scenarios requiring operational secrecy, consider the implications of advertising your infrastructure’s existence. Example Configuration¶Below is an example configuration for a public backbone gateway. This configuration publishes a high-value, publicly discoverable interface, that anyone can connect to. [[My Public Gateway]] type = BackboneInterface mode = gateway listen_on = 0.0.0.0 port = 4242 # Enable Discovery discoverable = yes # Interface Details discovery_name = Region A Public Entrypoint announce_interval = 720 # Use external script to resolve dynamic IP reachable_on = /usr/local/bin/get_external_ip.sh # Generate high stamp value discovery_stamp_value = 24 # Optional location data latitude = 51.99714 longitude = -0.74195 height = 15 The next example create an encrypted discovery-enabled interface, requiring a specific network identity to decode, and includes IFAC credentials for seamless authentication. [[My Private Gateway]] type = BackboneInterface mode = gateway listen_on = 0.0.0.0 port = 5858 network_name = internal_1 passphrase = Mevpekyafshak5Wr # Enable Discovery discoverable = yes # Interface Details discovery_name = Region A Private Backbone announce_interval = 720 # Use external script to resolve dynamic IP reachable_on = /usr/local/bin/get_external_ip.sh # Target stamp value discovery_stamp_value = 22 # Encrypt announces for our network only discovery_encrypt = yes # Include credentials so trusted # peers can connect automatically publish_ifac = yes # Optional location data latitude = 34.06915 longitude = -118.44318 height = 15 In the [reticulum] ... # The identity used to sign/encrypt discovery announces network_identity = ~/.reticulum/storage/identities/my_network_identity ... With these configuration options applied, your Reticulum instance will actively participate in the network’s discovery ecosystem. Other peers running Reticulum with discovery enabled will be able to see your interface, validate its cryptographic stamp, and (depending on their configuration) automatically connect to it. For information on how to use these discovered interfaces and configure your system to auto-connect to them, refer to the Discovering Interfaces chapter. Common Interface Options¶A number of general configuration options are available on most interfaces. These can be used to control various aspects of interface behaviour.
Interface Modes¶The optional Configuring modes on interfaces is not strictly necessary, but can be useful when building or connecting to more complex networks. If your Reticulum instance is not running a Transport Node, it is rarely useful to configure interface modes, and in such cases interfaces should generally be left in the default mode.
For a table describing the impact of all modes on announce propagation, please see the Announce Propagation Rules section. Announce Rate Control¶The built-in announce control mechanisms and the default Using the
You can also configure default announce rate parameters for all interfaces that
do not have these parameters set explicitly by setting the For auto-connected interfaces, sensible default announce rate control parameters will always be set, even if the defaults are not configured explicitly, but if you set the defaults, auto-connected interfaces will adhere to these as well. These mechanisms, in conjunction with the Statistics and information about announce rates can be viewed using the
It is important to note, that while there is no one right or wrong way to set up announce rates, it should generally not be necessary to announce any kind of destination. more often than once every few hours. Most applications can announce simply when the application starts, and then only once every 6 hours or so. If you’re designing an application where you think you need to annonuce more often than once an hour, you’re most likely doing something wrong. Slower networks will naturally tend towards using less frequent announces to conserve bandwidth, while very fast networks can support applications that need more frequent announces. Reticulum implements these mechanisms to ensure that a large span of network types can seamlessly co-exist and interconnect. New Destination Rate Limiting¶On public interfaces, where anyone may connect and announce new destinations, it can be useful to control the rate at which announces for new destinations are processed. If a large influx of announces for newly created or previously unknown destinations occur within a short amount of time, Reticulum will place these announces on hold, so that announce traffic for known and previously established destinations can continue to be processed without interruptions. After the burst subsides, and an additional waiting period has passed, the held announces will be released at a slow rate, until the hold queue is cleared. This also means, that should a node decide to connect to a public interface, announce a large amount of bogus destinations, and then disconnect, these destination will never make it into path tables and waste network bandwidth on retransmitted announces. Note It’s important to remember that the ingress control works at the level of individual sub-interfaces. As an example, this means that one client on a TCP Server Interface cannot disrupt processing of incoming announces for other connected clients on the same TCP Server Interface. All other clients on the same interface will still have new announces processed without interruption. By default, Reticulum will handle this automatically, and ingress announce control will be enabled on interface where it is sensible to do so. It should generally not be neccessary to modify the ingress control configuration, but all the parameters are exposed for configuration if needed.
All of the above settings can be configured both as instance-wide defaults
under the Path Request Burst Control¶In addition the announce controls for newly created destination, Reticulum will also monitor incoming path request activity, and enforce burst controls if per-client rates exceed configured limits. Once path request burst control is activated on an interface, path requests will no longer be propagated further on the network. As with announce burst control, this happens on a per sub-interface basis. One client connecting to a public gateway will not be able to disrupt path request processing for other clients. Warning Applications that send large amounts of unnecessary path requests will very quickly get rate limited by transport nodes, and the entire system they are running on will not be able to resolve any paths on the network, until the burst subsides and hold period expires. Do not write applications like this. Only request paths for destinations you need to communicate with. By default, Reticulum will handle this automatically, and ingress path request control will be enabled on interface where it is sensible to do so. It should generally not be neccessary to modify the ingress control configuration, but all the parameters are exposed for configuration if needed.
All of the above settings can be configured both as instance-wide defaults
under the Tuning Ingress Queues¶Reticulum uses separate, prioritized queues for processing inbound packets. The default four queues are drained in the following order:
You can tune the queue sizes from the defaults, for example if you’re running a setup where you want to simply drop most traffic from ingress-limited interfaces. The queue sizes are configured in the
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. |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |