Changeset 3085


Ignore:
Timestamp:
12/02/2012 13:33:41 (3 months ago)
Author:
chris
Message:

Initialise the EWMA rate average to 0, and comment on variables in log message.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/server/TcpNice.cpp

    r3084 r3085  
    3636  mAlphaStar(100), 
    3737  mDeltaPercent(10) 
    38 { } 
     38{ 
     39        mRateEstimateMovingAverage[0] = 0; 
     40        mRateEstimateMovingAverage[1] = 0; 
     41} 
    3942 
    4043// -------------------------------------------------------------------------- 
     
    6871                ((mDeltaPercent * rateLastPeriod) / 100); 
    6972         
     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 
    7085        BOX_TRACE("TcpNice: " 
    7186                "b=" << bytesChange << ", " 
Note: See TracChangeset for help on using the changeset viewer.