# US 2006/0041667 A1 · Method and apparatus for protecting legitimate traffic from dos and ddos attacks

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2006/0041667 A1
- Document ID: US20060041667A1
- Status: Published application
- Kind: A1
- Application number: 10/535,455
- Filed: 2003-03-28
- Published: 2006-02-23
- Earliest claimed: 2002-11-19
- Assignees: Electronics and Telecommunications Research Institute
- Inventors: Gaeil Ahn; Ki-Young Kim; Jong Soo Jang
- Web page: https://patentgrep.com/patent/US20060041667A1

## CPC

- H04L 63/1458: {Denial of Service}
- H04L 47/50: Queue scheduling
- H04L 47/6215: {Individual queue per QOS, rate or priority}
- H04L 47/6255: {queue load conditions, e.g. longest queue first}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

An apparatus for protecting legitimate traffic from DoS and DDoS attacks has a high-priority (505) and a low-priority (506) queue. Besides, a queue information table (402) has STT (Source-based Traffic Trunk) service queue information of a specific packet. A queue coordinator (502) updates the queue information table (502) based on a load of a provided STT and a load of the high-priority queue (505). A packet classifier (504) receives a packet from the network access unit (508), investigates an STT service queue of the packet from the queue information table (502), selectively transfers the packet to the high-priority (505) or the low-priority (506) queue and provides information on the packet to the queue coordinator (503). A buffer (507) buffers outputs of the high-priority (505) and the low-priority (506) queue and provides outputs to the network (509) to be protected.

## Claims

### Claim 1

An apparatus connected between a network access unit and a network to be protected, for protecting legitimate traffic from DoS and DDoS attacks, comprising:
a high-priority queue;
a low-priority queue;
a queue information table having specific STT service queue information of a specific packet;
a queue coordinator for updating the queue information table based on a load of a provided STT and a load of the high-priority queue;
a packet classifier for receiving a packet from the network access unit, investigating an STT service queue of the received packet from the queue information table, selectively transferring the received packet to the high-priority queue or the low-priority queue in accordance with an investigation result and providing information on the received packet to the queue coordinator; and
a buffer for buffering outputs of the high-priority queue and the low-priority queue and providing buffered outputs to the network to be protected.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the network to be protected comprises a server.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the information on the received packet includes a packet size, a packet arrival time and an index of the queue information table for representing STT information of the packet.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the queue information table has fields including an STT ID, a service queue, an average load, a recent load calculation time and a total packet size.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein a maximum load of the high-priority queue and the low-priority queue is set to be a maximum allowable load of the network to be protected.

### Claim 6 (depends on 5)

The apparatus of claim 5, wherein the network to be protected comprises a server.

### Claim 7

A method for protecting legitimate traffic from DoS and DDoS attacks in an apparatus therefor, wherein the apparatus is connected between a network access unit and a network to be protected and includes a queue information table having specific STT service queue information of a specific packet, a queue coordinator for updating the queue information table based on a load of a provided STT and a load of a high-priority queue and a packet classifier for receiving a packet from the network access unit, investigating an STT service queue of a received packet from the queue information table, selectively transferring the received packet to the high-priority queue or the low-priority queue in accordance with an investigation result and providing information on the received packet to the queue coordinator, the method comprising the steps of:
(a) obtaining an STT ID based on a source IP address of the packet received from the network access unit;
(b) investigating a service queue corresponding to the searched STT ID from the queue information table and checking whether the service queue is the high-priority queue or the low-priority queue;
(c) transferring the received packet to the high-priority queue if the service queue is the high-priority queue in the step (b);
(d) transferring the received packet to the low-priority queue if the service queue is the low-priority queue in the step (b); and
(e) transferring the received packet information to the queue coordinator.

### Claim 8 (depends on 7)

The method of claim 7, wherein the network to be protected comprises a server.

### Claim 9 (depends on 7)

The method of claim 7, wherein the queue coordinator comprises the steps of:
(a′) calculating an average load of an STT corresponding to the packet information transferred from the packet classifier;
(b′) resetting an STT service queue based on the calculated average load of the STT;
(c′) calculating an average load of the high-priority queue;
(d′) resetting a certain STT service queue based on the calculated average load of the high-priority queue; and
(e′) storing the reset STT information in the queue information table.

### Claim 10 (depends on 9)

The method of claim 9, wherein the modified STT information refers to a modified average load and service queue.

### Claim 11 (depends on 9)

The method of claim 9, wherein the step (a′) further includes the steps of:
(a′1) calculating a total packet size based on the packet information transferred from the packet classifier;
(a′2) checking whether it is time to recalculate an average load;
(a′3) calculating a new average load by using a previous average load and a current average load based on the total packet size if it is time to recalculate the average load in the step (a′2); and
(a′4) performing an STT service queue determination algorithm based on the load of the STT if it is not time to recalculate the average load or subsequent to executing the step (a′3).

### Claim 12 (depends on 11)

The method of claim 11, wherein the packet information includes a packet size, a packet arrival time, a queue information table index and a corresponding STT.

### Claim 13 (depends on 9)

The method of claim 9, wherein the step (b′) further includes the steps of:
(b′1) setting an STT service queue of a received packet to be a the low-priority queue if an STT load of the received packet is greater than an allowable load when the high-priority queue is in a congested state;
(b′2) randomly choosing one STT using a low-priority queue from the queue information table if the service queue of the STT corresponding to the received packet is a high-priority queue;
(b′3) setting an STT service queue of a low load to be a high-priority queue and an STT service queue of a high load to be a low-priority queue if an average load of an STT corresponding to the received packet is greater than that of the randomly chosen STT;
(b′4) randomly choosing one STT using a high-priority queue from the queue information table if the service queue of the STT corresponding to the received packet is a low-priority queue; and
(b′5) setting an STT service queue of a low load to be a high-priority queue and the STT service queue of a high load to be a low-priority queue if an average load of an STT corresponding to the received packet is smaller than that of the randomly chosen STT.

### Claim 14 (depends on 9)

The method of claim 9, wherein the step (c′) further includes the steps of:
(c′1) determining an STT service queue based on a load of an STT;
(c′2) calculating a total packet size served through a high-priority queue if the service queue used by the received packet is a high-priority queue;
(c′3) calculating an average load of a high-priority queue if it is time to recalculate a load;
(c′4) resetting a certain STT service queue based on the load of the high-priority queue; and
(c′5) storing modified STT information in the queue information table.

### Claim 15 (depends on 9)

The method of claim 9, wherein the step (d′) includes the steps of:
(d′1) calculating an average load of a high-priority queue;
(d′2) randomly choosing one STT using a high-priority queue and setting a queue of the STT to low-priority if the load of the high-priority queue is in a congested state;
(d′3) randomly choosing one STT using a low-priority queue and setting a queue of the STT to high-priority if the load of the high-priority queue is in an idle state; and
(d′4) storing modified STT information in the queue information table if the load of the high-priority queue is in a stable state or the steps of (d′2) and (d′3) are performed.
