Patent ID: 8036124

Claim:
A method comprising: storing, by a device, a first queue of packets and a second queue of packets, where the first queue of packets includes a first number of packets and the second queue of packets includes a second number of packets; dequeueing, by the device, a packet from the first queue of packets or the second queue of packets; calculating, by the device, an average queue size based on: a number of packets included in the first queue and included in the second queue after the packet has been dequeued from the first queue of packets or the second queue of packets, a previous average queue size based on a prior number of packets included in the first queue of packets and in the second queue of packets prior to the packet being dequeued, and a queue filter time constant; determining, by the device, whether the packet is a session creation packet when the calculated average queue size is greater than a threshold value, where determining whether the packet is a session creation packet comprises examining contents of the packet; discarding, by the device, the packet when the packet is determined to be a session creation packet and when the calculated average queue size is greater than the threshold value; and further processing, by the device, the packet when the calculated average queue size is greater than the threshold value and when the packet is determined not to be a session creation packet.