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
ipv6: address resolution ignores the configured and advertised RetransTimer #1257
Ipv6InterfaceData holds the Request for Comments (RFC) 4861 (Neighbor Discovery for IP version 6) RetransTimer twice, and address resolution and Neighbour Unreachability Detection (NUD) read the copy that nothing writes.
hostVars.retransTimer (src/inet/networklayer/ipv6/Ipv6InterfaceData.h:334, a uint of seconds) is written by the retransTimer parameter of Ipv6NeighbourDiscovery (src/inet/networklayer/icmpv6/Ipv6NeighbourDiscovery.cc:121), by the Retrans Timer of a received Router Advertisement (RA) (:1525) and by the HostRetransTimer attribute (src/inet/networklayer/ipv6/Ipv6RoutingTable.cc:348). Duplicate Address Detection (DAD) reads it (:851, :872).
nodeConstants.retransTimer (Ipv6InterfaceData.h:235) is read by address resolution (Ipv6NeighbourDiscovery.cc:695, :713) and NUD (:558), through _getRetransTimer(). Its setter, _setRetransTimer(), has no caller, so it is always the compile-time 1 s.
The parameter is also cast to uint seconds (:121): retransTimer = 0.2s becomes 0, and DAD then sends its probes after the first one with no interval between them.
Line numbers are for master 49e1fa0; 4eb3bb4 has the same src/.
What the standard says
RFC 4861, Section 6.3.4:
The RetransTimer variable SHOULD be copied from the Retrans Timer field, if the received value is non-zero.
Sections 7.2.2 (address resolution) and 7.3.3 (unreachability probes) retransmit every RetransTimer milliseconds. The parameter's NED (Network Description) comment, Ipv6NeighbourDiscovery.ned:36: "delay between retransmitted NS messages", NS being a Neighbor Solicitation.
Why it matters
A simulation that sets the parameter, or receives an RA with a Retrans Timer, to model a slow or fast link gets 1 s address resolution and NUD retransmissions, with no warning. On master, a router with retransTimer = 3s that resolves an address nobody owns solicits at 10.0001105, 11.0001105 and 12.0001105 s and gives up at 13.0001105 s; a host that adopts an advertised Retrans Timer of 2 spaces its DAD probes 2 s apart and its address resolution 1 s apart (20, 21, 22 s, failure at 23 s).
The split came with 88122af ("IPv6 ND: expose RA/NDP configuration as NED params and XML attributes"), which wired the new parameter to hostVars.
Activity
adamgeorge309 commentedon Dec 1, 2026
Fixed on master by dfe694a (address resolution waits the RetransTimer of its router), so #1260 drops its RetransTimer commit.