-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fw: ASF: Fix implementation not matching technical report
This commit resolves several issues. First, a bug was discovered regarding the usage of std::set objects when ranking faces for forwarding and probing purposes. These objects enforce uniqueness; however, this is defined based on the comparison function provided. As no fields that were inherently unique were used to rank faces, this would mean that a face with matching ranking information as one inserted previously would be blocked from being inserted into face ranking for forwarding and probing. We add faceId as a tiebreaker to ensure deterministic behavior in these cases. We also fix an issue where the count of consecutive silent timeouts was not properly cleared upon the receipt of data or when a timeout was marked. Additionally, this commit replaces previous implementations of the ranking code for forwarding and probing. This is partially in order to eliminate bugs introduced by incorrect implementations of the ranking for probing and forwarding, as well as trying to make the code easier to understand and maintain. This included removing a specific optimization in probing by including unmeasured faces in the ranking rather than have probes to unmeasured faces be ordered based on undefined metrics (in practice, tied faces were inserted in route creation order). However, we did make the choice to add cost as a tiebreaker for working measured faces, as was the case with the initial implementation for forwarding. Refs #5310 Change-Id: Iabfdafea764fe24fe6c478a6073734e51aaf9fa1
- Loading branch information
Showing
6 changed files
with
495 additions
and
130 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
Oops, something went wrong.