Repository navigation
Conversation
A restarted coordinator sends an empty link status, which zeroes every neighbor's outgoing cost toward it, and Ziggurat routers drop route requests from a sender at zero cost. The startup gate checked our own outgoing costs, which a restart keeps, so it passed at once: on the bench the first two many-to-one route requests after a host restart went out within 10 s and every Ziggurat router dropped them, recording routes around the coordinator's direct links for about a minute. The first request now waits one link status period, so every router neighbor sends its link status, then sends our own so they learn their side. Waiting only for the first router to answer is not enough: one answered within 10 ms on the bench and the others still dropped the request. Still bounded by two link status periods. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
I think the spec has a provision specifically to deal with this: an empty link status update should trigger an gratuitous link status from nearby routers.
|
Good catch! I've overlooked these. Also seems like it only fires when the receiver has no neighbor entry for the sender. After a coordinator restart every neighbor still has one, so spec-compliant routers stay quiet. Another problem is that gratuitous link status tells us our link costs. What breaks the many-to-one route request is the routers cost toward us, which our empty link status zeroed. They only learn it from our next non-empty link status, so we have to send one before advertising anyway. |
|
I looked into how a bunch of stacks behave when it comes to empty link statuses and route requests from unknown senders, etc.
At least on my network, most routers are SiLabs and a few are Telink. |
Problem
After a coordinator restart, the first many-to-one route requests are lost on every Ziggurat router neighbor.
periodic_many_to_one_route_request_taskwaits forany_live_router_link(), which looks at the coordinator's own neighbor table. A restart keeps those costs, so the gate passes at once.On a test network, the first two many-to-one route requests after a host restart went out within 10 s and every Ziggurat router dropped them. For about a minute, devices recorded routes around the coordinator's direct router links.
Change
Neighbors::any_router_link_confirmed_since(since)replacesany_live_router_link(). It counts only a router that sent a link status listing us with a nonzero cost aftersince, so costs kept across a restart do not count.Waiting only for the first router to answer is not enough: on the test network one router answered within 10 ms, and the others still dropped the request.
Testing
neighborscover three cases:sinceis not confirmed;sinceconfirms it;cargo fmt --all --checkcargo clippy --workspace --all-targets --all-features -- -D warnings -Dclippy::all -Dclippy::nurserycargo test --workspace🤖 Generated with Claude Code