forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…#16026) Fix project-chip#15799 - Add exponential backoff. - Add unit test for exponential backoff calculation. - Add spec refs to backoff implementation. Implements the backoff algorithm as specified but in fixed point: ``` t = i⋅MRP_BACKOFF_BASE^max(0,n−MRP_BACKOFF_THRESHOLD) ⋅ (1.0+random(0,1)⋅MRP_BACKOFF_JITTER) Where: t = the resultant retransmission timeout for this transmission n = the transmission count of the message, starting with 0 i = the base retry interval for the Exchange (either IDLE or ACTIVE) MRP_BACKOFF_BASE | 1.6 | The base number for the exponential backoff equation. MRP_BACKOFF_JITTER | 0.25 | The scaler for random jitter in the backoff equation. MRP_BACKOFF_THRESHOLD | 1 | # of retransmissions before transition from linear to exponential backoff. ```
- Loading branch information
1 parent
9bb19cb
commit fc3672e
Showing
4 changed files
with
132 additions
and
7 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
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
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
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