1. A method for controlling the flow of packets within a network node comprising: receiving packets that are intended for a queue; classifying each of said packets into at least one of a plurality traffic classes; and applying class-specific random early detection (RED) to each of said packets.