Patent ID: 7983159

Claim:
A method comprising: setting a virtual queue capacity Q v of a queue associated with a port of a networking apparatus, by a queue manager of the networking apparatus, to a capacity value Q min , wherein the queue has a real capacity of Q, where Q min is smaller than Q; determining an amount of packet dropped within a sampling time interval ΔT by the queue manager; and adaptively managing the queue by the queue manager by adjusting Q v based at least in part on the result of said determining; wherein adaptively managing comprises incrementing Q v by an increment, in response to a result of the determining indicating there have been packets dropped during the sampling time interval ΔT, and decrementing Q v by a decrement, in response to a result of the determining indicating there have been no packet dropped during the sampling time interval ΔT, and a current queue size is below Q v minus the decrement.