summaryrefslogtreecommitdiff
path: root/src/lib/hashtable.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@ugent.be>2019-02-08 10:47:42 +0100
committerSander Vrijders <sander.vrijders@ugent.be>2019-02-08 12:39:23 +0100
commite00c9b13acad23e14df9d5cf4c7868dfd6e1bc55 (patch)
tree1447e0402a78b79edd03cd8f72bc6c236df81a4c /src/lib/hashtable.c
parent5dd086aa679e3e05d20ef6a19f3fefbe46ffe40e (diff)
downloadouroboros-e00c9b13acad23e14df9d5cf4c7868dfd6e1bc55.tar.gz
ouroboros-e00c9b13acad23e14df9d5cf4c7868dfd6e1bc55.zip
lib: Add initial rtt estimator to FRCT
This adds a simple round-trip time estimator to FRCT. The estimate is a weighted average with deviation. The retransmission is scheduled after rtt + 2 times the deviation. A retransmit doubles the rtt estimate to avoid the no-update case when rtt suddenly increases. The rtt is estimated in microseconds and the granularity for retransmits is 256 microseconds. Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be> Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Diffstat (limited to 'src/lib/hashtable.c')
0 files changed, 0 insertions, 0 deletions