* sliding windows w/ additive increase / multiplicitive decrease

* immediately send an ack on receiving a duplicate payload message
  (unless we've sent one within the last RTT)
* only adjust the RTT when there have been no resends
* added some (disabled) throttles - randomly injecting delays on
  received packets, as well as randomly dropping them
* logging
This commit is contained in:
jrandom
2004-10-25 03:22:29 +00:00
committed by zzz
parent 8de41acfe1
commit 15c227f568
6 changed files with 111 additions and 27 deletions

View File

@@ -52,7 +52,7 @@ class PacketQueue {
packet.setTagsSent(tagsSent);
packet.incrementSends();
if (_log.shouldLog(Log.DEBUG)) {
String msg = packet + " sent" + (tagsSent.size() > 0
String msg = "SEND " + packet + (tagsSent.size() > 0
? " with " + tagsSent.size() + " tags"
: "")
+ " send # " + packet.getNumSends();