A scheduling method for a multi-level class hierarchy includes inserting
all queues containing at least one packet in a first scheduler and
inserting into a second scheduler queues contained in the first scheduler
which do not exceed their maximum rate. The first scheduler is dequeued
until a queue exceeding a maximum rate of the queue is reached, at which
time a queue of the second scheduler is dequeued.