diff --git a/Changelog.md b/Changelog.md index 709d4520..d4622546 100644 --- a/Changelog.md +++ b/Changelog.md @@ -3,6 +3,12 @@ *Pending*. **Changes** +- Added `Identity` stamps +- Added destination and announce stamps +- Added path request stamps +- Added link request stamps +- Added link request cost signalling to announces +- Added fractional stamp value support - Added path usage tracking - Added automatic path table culling based on traffic and usage - Added unused path pool monitoring and handling @@ -13,10 +19,13 @@ - Added more comprehensive metrics to status output structure - Added heap-tracking memory management - Added `hop_limiter` configuration option +- Optimized and improved stamper implementation - Optimized announce rate table implementation - Optimized packet filter hashlist implementation - Fixed `RNodeInterface` phy stats regression on Android - Fixed `rngit` default config path typo for `~/.config/rngit` case +- Fixed various minor bugs and inconsistencies +- Updated documentation ### 2026-10-05: RNS 1.5.7 diff --git a/RNS/Reticulum.py b/RNS/Reticulum.py index 78ca4ce5..486e97e3 100755 --- a/RNS/Reticulum.py +++ b/RNS/Reticulum.py @@ -2278,7 +2278,8 @@ class Reticulum: return Reticulum.__inbound_il_queue_length # Default configuration file: -__default_rns_config__ = '''# This is the default Reticulum config file. +__default_rns_config__ = '''########################################################## +# This is the default Reticulum config file. # You should probably edit it to include any additional, # interfaces and settings you might need. @@ -2362,6 +2363,22 @@ instance_name = default # blackhole_sources = 521c87a83afb8f29e4455e77930b973b +########################################################## +# This section configures stamping behaviour and defaults. +# In most cases, you do not need to change this, but on +# constrained systems especially, tuning these parameters +# can be very beneficial. See "rnsd --exampleconfig" or +# the manual for a full explanation of these parameters. + +[stamps] + +# destination_cost = 23.5 +# destination_value = 25.0 +# pr_cost = 15.8 +# pr_value = 15.8 +# lr_cost = 12.5 +# lr_stamp_timeout = 15 +# pr_stamp_timeout = 15 [logging] # Valid log levels are 0 through 8: @@ -2377,7 +2394,7 @@ instance_name = default loglevel = 4 - +########################################################## # The interfaces section defines the physical and virtual # interfaces Reticulum will use to communicate on. This # section will contain examples for a variety of interface diff --git a/RNS/Transport.py b/RNS/Transport.py index fe7bbb92..842a6e11 100755 --- a/RNS/Transport.py +++ b/RNS/Transport.py @@ -199,9 +199,9 @@ class Transport: LINK_COST_CAP = 40 # Global hard cap on link request cost, separate from detached stamps DESTINATION_COST = 23.5 # Default required announce cost if no specifics configured or determined DESTINATION_VALUE = 25.0 # Default target stamp value for emitted announces - PR_COST = 19.8 # Default required path request cost if no specifics configured or determined - PR_VALUE = 19.8 # Default target stamp value for emitted path requests - LR_COST = 19.2 # Default required link request cost if not explicitly announced or configured + PR_COST = 15.8 # Default required path request cost if no specifics configured or determined + PR_VALUE = 15.8 # Default target stamp value for emitted path requests + LR_COST = 12.5 # Default required link request cost if not explicitly announced or configured LINK_STAMP_TIMEOUT = 15 # Default link request stamp generation timeout PR_STAMP_TIMEOUT = 15 # Default path request stamp generation timeout HOP_LIMITER = PATHFINDER_M diff --git a/RNS/Utilities/rnsd.py b/RNS/Utilities/rnsd.py index e59f7ba7..0a746470 100755 --- a/RNS/Utilities/rnsd.py +++ b/RNS/Utilities/rnsd.py @@ -332,7 +332,7 @@ instance_name = default # if transport is enabled. Any announced destination not # meeting the cost will be ignored. -# destination_cost = 23 +# destination_cost = 23.5 # The default value this instance will target when generating @@ -342,19 +342,19 @@ instance_name = default # Destination stamps are cached and reused, so a one-time # high-value generation is usually a good idea. -# destination_value = 25 +# destination_value = 25.0 # The default required path request stamp cost. Path requests # that do not meet the requirement are ignored. -# pr_cost = 19 +# pr_cost = 15.8 # The default target value of path request stamps generated # by this instance. -# pr_value = 19 +# pr_value = 15.8 # The default link request stamp cost to use, if one has not @@ -363,7 +363,7 @@ instance_name = default # include their required link cost in each announce, and this # option is rarely necessary. -# lr_cost = 11 +# lr_cost = 12.5 # The maximum amount of time to spend attempting to generate