mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
1. Use EWMA for stream RTT estimation;
2. Drop window size by 10% instead of 50% in case of resend. Change is based on code by onon.
This commit is contained in:
parent
bb702700f7
commit
3ceb64db2e
2 changed files with 8 additions and 3 deletions
|
@ -56,6 +56,8 @@ namespace stream
|
|||
const int WINDOW_SIZE = 6; // in messages
|
||||
const int MIN_WINDOW_SIZE = 1;
|
||||
const int MAX_WINDOW_SIZE = 128;
|
||||
const int WINDOW_SIZE_DROP_FRACTION = 10; // 1/10
|
||||
const double RTT_EWMA_ALPHA = 0.5;
|
||||
const int INITIAL_RTT = 8000; // in milliseconds
|
||||
const int INITIAL_RTO = 9000; // in milliseconds
|
||||
const int MIN_SEND_ACK_TIMEOUT = 2; // in milliseconds
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue