Patent ID: 8565086

Claim:
A method, comprising: receiving, by a traffic shaper, a set of traffic shaping parameters to shape a first stream of data of a plurality of streams of data by a traffic shaper, the set of traffic shaping parameters comprising a sustained rate, a sustained burst size, a peak rate, and a peak burst size; determining an adjusted maximum transmission rate from the set of traffic shaping parameters, wherein the adjusted maximum transmission rate is a maximum constant rate of a constant rate emitter the traffic shaper uses to transmit the first stream of data, and wherein the adjusted maximum transmission rate is higher than the peak rate; periodically adding a plurality of tokens to a fixed sized sustained rate token bucket, wherein the number of the plurality of tokens added is based on the sustained rate and the sustained burst size; monitoring a current transmission rate the traffic shaper is transmitting the first stream of data; transmitting parts of the stream of data if there are currently enough tokens in the fixed sized sustained rate token bucket and based on a comparison of the current transmission rate of the stream of data and the adjusted maximum transmission rate.