I2P Address: [http://git.idk.i2p]

Skip to content

Draft: SSU low latency improvements

Zlatin Balevsky requested to merge (removed):ssu-low-latency into master

This MR contains the following changes:

  1. Rewrites ACKSender to not sleep but instead wait the minimum amount of time until the next ack which is to be sent.
  2. Changes the calculation in ackFrequency(..) when the next ack is due to the minimum of rtt/2 and the constant.
  3. Reduces contention on PeerState by introducing a lock just for the _sendWindowBytesRemaining field.

It has tested in the testnet with various artificial delays. For links with less than 50ms RTT there are significant improvements. I estimate that is 10% of the SSU links in the live net.

Edited by Zlatin Balevsky

Merge request reports

Loading