Skip to content

Commit

Permalink
Update tcp_prague.c
Browse files Browse the repository at this point in the history
  • Loading branch information
koen0607 authored Aug 22, 2024
1 parent d398206 commit ae532ee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions net/ipv4/tcp_prague.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,18 @@
*
* All above improvements make Prague behave under 25ms very rate fair and
* RTT independent, and assures full or close to full link utilization on
* a stable network link. The resulting rate equation is very close to:
* a stable network link. It allows the NW to control the rate down to
* 100kbps without the need to drop packets or built a queue. For RTTs
* from 0us till 25ms and link rates higher than 100kbps, the resulting
* rate equation is very close to:
* r [Mbps] = 1/p - 1
* or typically the other way around that a flow needs p marking probability
* to get squeezed down to r Mbps:
* p = 1 / (r + 1)
* So 50% (p = 0.5) will result in a rate of 1Mbps or typically the other
* way around: 1Mbps needs 50% marks, 99Mbps needs 1% marks, 100kbps needs
* 91% marks, etc...
* For an RTT above 25ms, a correction factor should be taken into account:
* For RTTs above 25ms, a correction factor should be taken into account:
* r [Mbps] = (1/p - 1) * 25ms / RTT
* with RTT and 25ms expressed in the same unit.
*/
Expand Down

0 comments on commit ae532ee

Please sign in to comment.