Disclosed are a method of and system for allocating a buffer. The method comprises the steps of partitioning less than the total buffer storage capacity to a plurality of queue classes, allocating the remaining buffer storage as a spare buffer, and assigning incoming packets into said queue classes based on the packet type. When a queue becomes congested, incoming packets are tagged with the assigned queue class and these additional incoming packets are sent to said spare buffer. When the congested queue class has space available, the additional incoming packets in said spare buffer are pushed into the tail of the congested queue class.
展开▼