You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Decrease routing storms and improve routing in large homogenous networks - #149
This PR is the result of a bunch of 100 node simulation tests in adverse conditions (with LQI/RSSI/CCA/packet loss simulation) based on #106, focusing on decreasing routing traffic while increasing deliverability.
Notable changes:
Networks with a bunch of Ziggurat routers were not cooperative: routers that started up at the same time did not jitter their Link Status broadcasts, causing unintentional timer synchronization.
Jitter relayed route requests based on the link cost. The spec allows this and it causes better routes to propagate faster.
Directly send to neighbors without route discovery if their link cost is less than two.
Stop relaying a route request when a cheaper one arrives. With the above cost-based route request jittering, it reduces the relaying of worse-cost routes.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Terminal no-ACK failures leave failed direct links eligible for reuse, while held frames promoted to routable can be sent without required return-path route records.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Clearing the route-record requirement during resolution lets queued unicasts overtake the record, so the concentrator may receive data before learning the return path.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Unresolved routing and route-record state bugs can discard frames or suppress required records, while management responses misreport routing state and coordinator depth, and frame-size checks perform unnecessary encryption.
A coordinator discovered through Link Status is stored as NwkDeviceType::Router by Neighbors::on_link_status (nwk/neighbors.rs:845–848). On a router, this condition consequently reports the coordinator at our depth plus one instead of depth zero. Also recognize network address 0x0000 here so the root's known depth is reported correctly.
Avoid repeated encryption when checking link-status frame size
crates/ziggurat-zigbee/src/nwk/frame.rs:621
This size check performs full AES-CCM encryption, and send_link_status_broadcast calls it for every candidate chunk length. A full chunk therefore incurs dozens of discarded encryptions before its actual transmission, adding avoidable crypto work to the MCU housekeeping path. Serialize the headers and payload and add the fixed MIC length instead; encryption is unnecessary to determine the frame size.
Preserve empty route records when source routes are disabled
crates/ziggurat-zigbee/src/nwk/routing.rs:655
With max_source_route = 0, this filter rejects an empty route record even though it requires no source-route header. A cost-3 neighbor passes the default first-hop check but not the direct-neighbor shortcut, so without a routing-table entry this now triggers discovery or discards a discovery-suppressed frame. Preserve the empty-record exception while retaining the first-hop usability check.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is the result of a bunch of 100 node simulation tests in adverse conditions (with LQI/RSSI/CCA/packet loss simulation) based on #106, focusing on decreasing routing traffic while increasing deliverability.
Notable changes: