Abstract

In various network attacks, the Distributed Denial-of-Service (DDoS) attack is a severe threat. In order to deal with this kind of attack in time, it is necessary to establish a special type of defense system to change strategy dynamically against attacks. In this paper, we introduce an adaptive approach, which is used for defending against DDoS attacks, based on normal traffic analysis. The approach can check DDoS attacks and adaptively adjust its configurations according to the network condition and attack severity. In order to insure the common users to visit the victim server that is being attacked, we provide a nonlinear traffic control formula for the system. Our simulation test indicates that the nonlinear control approach can prevent the malicious attack packets effectively while making legitimate traffic flows arrive at the victim.

1. Introduction

DDoS attacks have been one of the most hazardous threats on the Internet [16]. The attacks generate enormous packets by a large number of agents and can easily exhaust the computing and communication resources of a victim within a short period. As a result, it makes a victim deny normal services in the Internet.

Many defense and response mechanisms have been suggested in literature about DDoS attacks. Mirkovic and Reiher [3] presented a comprehensive taxonomy of DDoS attacks and defense mechanisms. Many DDoS detection approaches, such as “IP traceback” [7, 8], “traffic statistic” [813], “pushback” [14, 15], “packet filtering” [8, 1618] and “wavelet analysis” [12, 1923], “Hurst parameter” [24], and so forth, try to find the identities of real attack sources and defend against attacks. However, these methods can only find out attacks. They cannot drop attack packets adaptively.

The literatures above show that if we expect to prevent DDoS attacks significantly two critical issues must be handled first [6]: () accurately identifying the machines participating in forwarding malicious flows and () incisively cutting off the malicious flows at those machines.

Hussain et al. [1] presented a framework to classify DDoS attacks into single-source and multi-source attacks. However, these methods cannot be used directly to restrain DDoS attack traffic. In order to detect and filter attack packets at the victim end, Kim et al. [16] provided a general anomaly detection framework. Jin et al. [25] provided a concrete “Hop-Count Filtering” algorithm to filter out spoofed attack packets based on packets’ TTL (Time-To-Live) values.

Zou et al. [15] and Lee et al. [26] considered various cost factors, including false positive/negative cost, in the process of developing Intrusion Detection System (IDS). However, they employed a static system design method, which does not take how to dynamically adjust an IDS’s configurations into consideration according to the attack condition. In [26], Lee et al. explored the adaptive defense principle, but this principle also gets a problem: how can one compute the probabilities of false positive and false negative under attacks?

There is another problem in [26]. Due to the limit of routers memory, routers can only save the packet information for a short time. Thus, an attack process at the routers must be identified in time. However, when the victim is under severe attacks, it may have no ability to send the warning of attacks. At the same time, the link, which the victim communicates with its upper router, may become so congested that it is not capable of sending attack message to its upper routers in time. Obviously, under this circumstance, the adaptive defense system cannot work normally. In order to solve the problem, we add a special application server (shown in Figure 1), which can not only save and analyze a lot of information the victim sends, but also instruct the upper routers of the victim to control traffic.

Most researches have focused on stationary network operation with fixed configurations. However, in reality, attack detection systems have to face rapidly changing network conditions and various attack intensities [15]. Therefore, apart from finding a good detection algorithm, it is equally or more important to design an “intelligent” defense system that can automatically adjust its detection and filtering parameters to achieve the best performance under every possible attack situation.

We introduce an “adaptive defense principle” based on “normal traffic”—a defense system which can adaptively adjust its configurations according to network conditions and “attack severity.” The “normal traffic” refers to the traffic that the victim gets under no attacks. We call such a defense system an “adaptive defense system.”

Compared to the traditional nonadaptive defense system, the adaptive defense system can not only find out attacks quickly, but also drop attack traffic and protect a victim or server more vigorously under severe attacks.

Let , , and be total traffic, normal traffic, and statistic traffic at time t, respectively. The attack traffic, which is generated by attackers, is denoted by .

Then can be abstractly expressed by

Obviously, if a server is not under attacks, equal to zero and equal to . If a victim is under attacks, because of a large number of attack traffic from attackers, the value of will rapidly increase to a high level. Therefore, if we can capture the value of during detection, it should be very easy to indentify attacks. Unfortunately, we have no way to get the value of directly. However, can be captured with sniffer software [27]. According to (1.1), if we can obtain the value of , then the aforementioned problem can be solved easily. Note that is yet unknown during detection. Studies in [11, 12] show that under attacks can be substituted by statistic traffic under no attacks.

In order to make a victim possess the ability to provide normal service under attacks, we divide normal traffic into two parts. One part is named common traffic, denoted by , which is created by common users. The other is generated by random users and we denote it as . Thus, can be represented by

Because the start time of attack and attack traffic under attacks are unknown exactly, one may encounter difficulties in finding a method to recognize attack traffic from total network traffic. In order to remove the attack traffic, we propose an adaptive drop-packet approach: where and are functions of t. In general, they are integers related with t. The functions of and , which range from 0 to 1, are real and related with .

We present concrete adaptive defense system for defending against DDoS attacks. The system does not depend on attack types, so it can be used widely in the network security. The working procedure of the system is as shown in Figure 2.

The rest of this paper is organized as follows. Section 2 introduces the concept of adaptive controller. Section 3 contains the design of our proposed adaptive control traffic algorithm. In Section 4, we give a simulation test. Section 5 concludes with some final remarks and suggestions for future work.

2. Adaptive Control

Intuitively, an adaptive controller is such a controller that can modify its behavior in response to changes in the dynamics of the process and the character of the disturbances [28]. Since ordinary feedback also attempts to reduce the effects of disturbances and difference between feedback control and plant uncertainty, the problem of the adaptive control immediately arises.

Most network systems are very complex and unintelligible; it is neither possible nor economical to make a thorough investigation of the causes of the process variation. Adaptive controllers can be a good alternative in such cases. In other situations, some of the dynamics may be well understood, but other parts are unknown. For example, the network system, which is composed of many devices such as computers, routers, servers and so forth, does not change in some period, but the traffic that is created by these computers does change continuously at the same time. In such cases, it is of great importance to use the prior knowledge and estimate and adapt to the unknown part of the process.

In general, there are four types of adaptive systems: gain scheduling, model-reference adaptive control, self-tuning regulators, and dual control [28]. The block diagram of an adaptive system with gain scheduling is shown in Figure 3.

The adaptive system will become nonlinear because of the parameter adjustment mechanism. Since general nonlinear systems are difficult to deal with, we give a very special system that belongs to a special class of nonlinear systems. The system has two loops: one is a normal feedback with the process and the controller. The other is the controller-parameter adjustment loop based on the operating conditions.

The model of gain scheduling can satisfy our requirement to control traffic because the scheme is originally used to measure the gain of traffic at the victim. The system will change the control parameters of a router based on the gain in an application server. The controller, namely, router, compensates for changes in the process gain. In Figure 3, “Input” represents the incoming traffic of routers; that is to say, . “Output” denotes the receiving traffic of a victim, . Obviously, the system is adaptive.

The system we proposed to control traffic is different from the common adaptive system because we consider that the traffic of a victim can be controlled in normal state. This is to say, we must ensure that a victim can maintain the normal service for its common users whether attacks exist or not. In order to achieve the destination, we classify the victim’s users into two types based on the times of visiting victim in some period. One type is for common users who usually visit the site, and the other is the type of noncommon ones.

The in “Input” is right the traffic of common users, and the and   present the noncommon traffic. Because we want to protect a victim from attacks, when the routers control traffic, we will try our best to hold the traffic of common users, namely, . At the same time, we cut the other traffic off as much as possible.

When a victim is under attacks, the attacker often controls thousands of zombies to send rubbish packets to a victim. The attack traffic of a victim may increase quickly. In general, the attack traffic increases in geometric progression at the beginning of attacks. So we use exponent coefficient and to limit the increase of attack traffic, where and usually equal to t. and , which range between 0 and 1, are functions related with . Therefore, we get an adaptive control system described with formula (1.1).

Obviously, when the values of and are 1, the traffic is not controlled. In fact, the packet-dropping rate of common users can be computed by at time t. One of the other users is . In order to make the victim provide normal service under attacks, the and in (1.1) will meet the following relation: where t is a time variable.

In order to discuss the efficiency of the adaptive control system, we often simplify formula (1.1) with the following ways. Let equal , where b can equal , and so on. Let and equal t. Since is a const that relates with , the greater the value of exceeds the normal value itself, the less the values of . We often set the values of equal to 0.9 at first. Then formula (1.1) can be simplified as follows:

Since ,   and are bounded on time space, there exists a value T, which meets the relation we want to control traffic between vma and vmi. Let the average value of them, namely, , be satisfying traffic that is controlled by the controller, where vma and vmi are defined in Section 3.1. Let (2.2) substitute into (2.1), we have

So, after unit times, the traffic can be in normal state. In actual application, the victim’s devices decide the values of vma and vmi. T is an experience value. It is worthwhile to note that, when a victim is under attacks, the value of is far greater than the sum of and . Therefore, we can set the value of v according to the experience value of attack intensity. The adaptive algorithm of control traffic can be found in Section 3.

3. Adaptive Approach for Traffic Control

In order to make a victim send attacked message to its upper routers in time, we propose an adaptive defense system with an application server.

Firstly, we find out attack events by the traffic analysis of the victim, if attacks exist for the victim. After that, the victim will send a warning or attack message to application server at once.

Secondly, on one hand, when the application server receives the attack-warning message from the victim, the timer of it will start automatically. Once the value of the timer goes over the time threshold, or the application server receives attack message, the application server sends control instruction to routers immediately. On the other hand, when the application server receives recovery-warning message, it will send a control instruction for recovering traffic control.

Thirdly, the upper routers of the victim will set their parameters to control traffic after they receive warning instruction.

3.1. Traffic Analysis and Warning Message

In [11, 12], we propose a method for detecting attacks, and we should employ this method in this paper.

In control traffic algorithm, we use formula (1.1) to control traffic of network system. On one hand, when the values of and are less than 1 and attack traffic is in a stable situation, the traffic will decrease very quickly (shown in Figure 7 about 970 ms). Therefore, we give a minimum traffic, denoted by vmi. When the traffic is less than vmi, the system will send to application server a recovery instruction. On the other hand, When the values of and equal 1 and attacks exist, the traffic increases rapidly. In order to make the victim provide the normal service, we define a maximum value, denoted by wma, which the victim can endure. When the total traffic of the victim is greater than wma, our adaptive defense system will start attack detection and send an attack-warning message automatically. If attacks are found after detection, the victim will also give an attack message to application server at once.

The algorithm for detecting attack and sending warning message is as shown in Figure 4.

3.2. Application Server and Message Processing

Due to the limit of router memory and functions, it is very difficult to restore and process a lot of information of packets. The application server can receive and process the information. In our system, the application server, which is specially used to do the task, is not affected by network congestion.

There is a timer in the application server. With the timer, it is convenient to send routers control information when the victim is under severe attacks and has no ability to inform the application server. Once the server receives an attack-warning message, its timer will start. Then it periodically tests whether the value of the timer is greater than a time threshold, denoted by tth, which is a const. If the result is true, the application server will send traffic control information to its upper routers.

In addition, there are many states to be judged in the server. For example, during traffic control, if the server receives an attack-warning message again, it will send a message to routers so that the routers can do traffic control further. The detailed processing procedure can be seen from Figure 5.

In Figure 5, we define a variable id, which can receive some identifiers from the victim, such as “wm”, “am”, “rm”, “sm”,  and so forth. Let “wm”, “am”, “rm”, and “sm” be “warning message”, “attack message”, “safety message” and “recovery message”, respectively.

3.3. Router Traffic Control

As for fighting against DDoS attacks, it is very important to control traffic by router.

An adaptive defense DDoS attacks algorithm faces two major challenges in identifying attack flows: source IP spoofing and multiple distributed zombies’ utilization. There are two extreme cases of IP spoofing. On one hand, all sources of IP addresses are illegal or unreachable. On the other hand, all the attack packets carry legitimate source IP addresses. Note that “legitimate” IP address is forged, and it does not represent the true IP addresses of the computer that sends the attack packets. Therefore, we cannot regard all “legitimate” IP address as safe ones. In our algorithm, a router, which is viewed as controller, maybe receives two types of information. One is used for traffic control. The other for recovery control.

Figure 6 shows the procedure of traffic control by routers. On one hand, when a router receives the instruction of traffic control, the and can be computed iteratively according to the formula

On the other hand, if a router receives instruction for recovery traffic, we do not set the values of and at once; instead we use the formula as follows:

The reason we use formula (3.2) to recover traffic is that the traffic is very large at the beginning of recovery. The method can help to increases the values of and bit by bit. It can ensure that a victim works in normal state.

In formulas (3.1) and (3.2), “” represents a factor used for traffic control and “” is used for adjusting the control rate of common traffic, in order to let a victim provide more services for common users as best as possible.

4. Simulation Test

We have simulated the adaptive algorithm with ns-2 simulator [29]. There are 10 common users and 4 zombies linking to the victim with a router. The ten common users send packets with 500 bytes and 3 ms time delay. The other users, regarded as attackers, launch their packets with the random size which ranges from 1000 to 1100 bytes and 2 ms time delay. Both the start time and end time that the common users visit the victim are random values. The start time ranges from 200 to 210 ms, and the end time ranges from 4500 to 4600 ms.

The start time of attacks ranges from 600 to 650 ms, and the end time of them is at 3000 ms.

In detecting attacks, we set the vma and vmi equal to 8500 bytes and 5000 bytes, respectively. When the traffic of the victim is greater than vma or less than vmi, our adaptive algorithm will be started to detect the state of the traffic automatically. The detection time lasts for 300 ms. The initial values of a, b, u, and v are 0.9, 2, 1, and 1, respectively.

The adaptive algorithm can be seen from Figures 4, 5, and 6.

Figures 7(a) and 7(b) show the changes of traffic under adaptive control. In Figure 7(b), the total traffic is almost controlled under 8500 bytes between 965 ms and 2985 ms. We can see that the data, of which the time ranges from 585 ms to 965 ms, have a few changes because our system detects attacks at that time. In order to prevent the traffic rapidly increasing, our algorithm defaults to cut 10% traffic off during the first detecting attacks.

In addition, during detecting attack, our control algorithm will maintain the rate of traffic control before detection attack. This is the reason why the data at about 2985 ms have evident changes singularly under no attacks. Because when the system is detecting attacks, the traffic at the time is under control.

Figures 8 and 9 show that the changes of a common user and a noncommon user are under traffic control. On one hand, the victim can maintain service for common users. Figure 8(b) shows the traffic is maintained under attacks. On the other, the traffic of noncommon users can be limited severely; the changes of traffic in Figure 9(b) can show the point clearly.

5. Conclusion

By traffic analysis, we can not only detect attacks, but also defend against DDoS attacks adaptively. Because of network congestion and the limit of router memory, we use a special application server to deal with the problems of information restore, analysis and transmitting. It can make the upper routers receive attack or warning messages from a victim under severe attacks. When the victim is being attacked, we hardly know whether a user is an attacker or not. Hence, it is not easy for us to compute the probabilities of false positive and false negative. The method in this paper does not use these parameters, but use statistic traffic to detect attacks. We give a nonlinear traffic control system based on a general knowledge, namely, stable number of common users who usually visit a server. Therefore, we classify the users of a victim as two types. The common users belong to one type; the other users are another type. In this way, not only can we protect the victim from attacks with our adaptive defense system, but also the victim can provide normal service for common users under DDoS attacks.

In this paper, we distinguish the common users from the others with the times of visiting a victim. In fact, we can classify them according to packet type, packet size, IP address and so on. We can also propose many types of users in order to control traffic as best as one can.

Note that this research is strongly related to the statistics of traffic that is in turn associated with fractal time series. Therefore, we shall further take into account those in traffic engineering and fractal time series; see, for example, [3044], just naming a few. In addition, tools for analyzing traffic, such as wavelet [4553], shall be carefully studied. Based on those, we all further explore better method to quickly get effectively statistical features of traffic under no attacks, to study the criterion used for classifying the victim users and the relation between and , so that we can optimize our algorithm to defend against DDoS attacks.

Acknowledgments

This work was supported in part by the National Natural Science Foundation of China (NSFC) under the project grant nos. 60573125, 60873264, and 60703112, by the Research and Development Project of Shandong Provincial Education Department (J07WJ29), and the PHD Program Scholarship Fund of ECNU 2009 (2009053).