Patent ID: 8804525

Claim:
A method for network traffic control at a network device, comprising the following steps: detecting actual downlink traffic of the network device; calculating, at a difference calculator, an error e between the actual downlink traffic and predetermined downlink traffic; performing a calculation on the error to obtain PID output according to a PID (Proportion Integration Differentiation) control formula; calculating scaling of upstream traffic according to the calculated PID output and the downlink traffic; and regulating an upstream traffic threshold according to the scaling; wherein the PID control formula is a discrete one: u ⁡ ( t ) = u ⁡ ( k ⁢ ⁢ T ) = k p ⁢ e ⁡ ( k ⁢ ⁢ T ) + k i ⁢ ∑ j = 0 k - 1 ⁢ ⁢ e ⁡ ( j ⁢ ⁢ T ) ⁢ T + k d ⁢ e ⁡ ( k ⁢ ⁢ T ) - e ⁡ ( k ⁢ ⁢ T - T ) T , wherein t=kT, T is a discrete sampling period, k is a natural number, k p is a proportional coefficient, k i is an integration time constant and k d is a differential time constant.