-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mle] update
DelayedSender
to keep the tx schedule (#10846)
This commit updates how `Mle::DelayedSender` sends MLE messages after a delay. Previously, a delayed message was fully prepared and placed in a queue, waiting for its delay duration to expire. In the new model, a delayed message is prepared when the requested delay time expires and the message transmission time is reached. The message is constructed right before transmission. This ensures that the delayed message includes the most up-to-date information and simplifies the methods that prepare and send different types of MLE messages. `DelayedSender` now keeps track of the message type and the specific information required to construct the message later. For example, for a delayed Parent Response to a Parent Request, the extended address and the `RxChallenge` of the child are saved. This new model makes it easier to implement the desired behavior when similar messages are already scheduled to the same destination. For example: - For Data Request, if one is already scheduled, a new request can be skipped, as the earlier Data Request will be valid. - For Parent Response, Link Accept, and Data Response, a new schedule request replaces an earlier one. - For Discovery Response, multiple schedules are allowed.
- Loading branch information
Showing
5 changed files
with
372 additions
and
217 deletions.
There are no files selected for viewing
This file contains 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
Oops, something went wrong.