Changeset 3085
- Timestamp:
- 12/02/2012 13:33:41 (3 months ago)
- File:
-
- 1 edited
-
box/trunk/lib/server/TcpNice.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/lib/server/TcpNice.cpp
r3084 r3085 36 36 mAlphaStar(100), 37 37 mDeltaPercent(10) 38 { } 38 { 39 mRateEstimateMovingAverage[0] = 0; 40 mRateEstimateMovingAverage[1] = 0; 41 } 39 42 40 43 // -------------------------------------------------------------------------- … … 68 71 ((mDeltaPercent * rateLastPeriod) / 100); 69 72 73 /* 74 * b is the number of bytes sent during the previous control period 75 * T is the length (in us) of the previous control period 76 * rtt is the round trip time (in us) reported by the kernel on the socket 77 * e is epsilon, a parameter of the formula, calculated as alpha/rtt 78 * rb is the actual rate (goodput) over the previous period 79 * rbhat is the previous (last-but-one) EWMA rate estimate 80 * raw is the unscaled adjustment to the window size 81 * gamma is the scaled adjustment to the window size 82 * wb is the final window size 83 */ 84 70 85 BOX_TRACE("TcpNice: " 71 86 "b=" << bytesChange << ", "
Note: See TracChangeset
for help on using the changeset viewer.
