-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add network-activity trigger ability for batcher
Add triggering ability to batcher so it could evaluate deadlines and thresholds on demand. The approach is simple - any activity on sent or received data on any peer will trigger the batcher. This is built on assumption that triggering on incoming data would sync the batchers between two devices. However triggering only between two devices would leave other devices unsynced, thus simplified approach works even better to "sync the clocks" across all the nodes. Side effects: consider having 3 interconnected peers: A, B and C. Peer C is idling and A streams data to B. Now A and B is each triggered on every packet and in turn send premature keepalives to C at T_new=T_orig-threshold. Triggering will happen mostly on wg_consolidate() which happens every second. Signed-off-by: Lukas Pukenis <[email protected]>
- Loading branch information
1 parent
e584bfe
commit a8a34d8
Showing
7 changed files
with
290 additions
and
85 deletions.
There are no files selected for viewing
Empty file.
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.