Setting packet queue priority is disclosed. A rate associated with a
packet queue is measured. The rate is compared to a quality of service
metric. A priority is assigned to the packet queue based at least in part
on the comparison between the rate and the quality of service metric. The
quality of service metric may be a committed information rate and/or a
peak information rate.