Patent ID: 8743692

Claim:
A method comprising: dequeueing, by a device, a packet from a first queue, of a plurality of queues, or a second queue of the plurality of queues, the first queue and the second queue including first packets of a first type and second packets of a second type, the first packets of the first type being session creation packets, and the packet being one of the first packets or one of the second packets; calculating, by the device, an average queue size of the plurality of queues based on: a quantity of packets included in the plurality of queues after the packet has been dequeued from the first queue or the second queue, and a previous average queue size based on a prior quantity of packets included in the plurality of queues; and performing, by the device, a comparison of the calculated average queue size to a threshold value, if, according to the comparison, the calculated average queue size satisfies the threshold value, the method further comprises: determining, by the device, whether the packet is of the first type or of the second type, discarding, by the device, the packet when the packet is of the first type, and further processing, by the device, the packet when the packet is of the second type, and if, according to the comparison, the calculated average queue size does not satisfy the threshold value, the method further comprises: further processing, by the device, the packet without determining whether the packet is of the first type or the second type.