[nikhil] Adding Traffic shaping code
To know more about this: http://en.wikipedia.org/wiki/Traffic_shaping