Leaky Bucket Algorithm to Control Transmission Rates