# Adaptive EWMA Method Based on Abnormal Network Traffic for LDoS Attacks

Authors: Dan Tang; Kai Chen; XiaoSu Chen; HuiYu Liu; Xinhua Li
Journal: Mathematical Problems in Engineering
 (2014)

---

## Abstract

The low-rate denial of service (LDoS) attacks reduce network services capabilities by periodically sending high intensity pulse data flows. For their concealed performance, it is more difficult for traditional DoS detection methods to detect LDoS attacks; at the same time the accuracy of the current detection methods for LDoS attacks is relatively low. As the fact that LDoS attacks led to abnormal distribution of the ACK traffic, LDoS attacks can be detected by analyzing the distribution characteristics of ACK traffic. Then traditional EWMA algorithm which can smooth the accidental error while being the same as the exceptional mutation may cause some misjudgment; therefore a new LDoS detection method based on adaptive EWMA (AEWMA) algorithm is proposed. The AEWMA algorithm which uses an adaptive weighting function instead of the constant weighting of EWMA algorithm can smooth the accidental error and retain the exceptional mutation. So AEWMA method is more beneficial than EWMA method for analyzing and measuring the abnormal distribution of ACK traffic. The NS2 simulations show that AEWMA method can detect LDoS attacks effectively and has a low false negative rate and a false positive rate. Based on DARPA99 datasets, experiment results show that AEWMA method is more efficient than EWMA method.


---

## Body

## 1. Introduction

The low-rate denial of service (LDoS) [1] attack is a new type of DoS attack, which periodically sends high intensity pulse data flows to reduce network services capabilities by using the vulnerability of TCP congestion control mechanism. The duration time of each pulse attack flow is short, while the time of silence in each period is long, so that the average rate of the LDoS attacks traffic is low, and therefore it is difficult to distinguish from the normal traffic. So the LDoS attacks are more covert and cannot be detected by traditional DoS detection methods.Currently, some progress has been made in the field of detection methods of the LDoS attacks [2–4], for example, the wavelet analysis method [5], the DTW method [6], the HAWK method [7], the STM method [8], the UDP-frequency-domain-based detection method [9], and so on [10–12]. Wavelet analysis method [5], which can detect attack flows on the key routers, principally aims at the AIMD-targeted attacks. Nonetheless, it is ineffective to the non-AIMD-targeted LDoS attacks. The DTW method [6] and the HAWK method [7] focus on the periodicity of attack traffic and abnormality of network data traffic, get the abnormal characteristics of flow on time domain, and then compare and identify the LDoS attacks. STM method [8] is a distributed collaborative filtering detection method based on power spectral density. It has a higher detection rate but occupies large storage resources. UDP-frequency-domain-based detection method [9] needs time/frequency transformation which functions less efficiently. These detection methods [10–12] for the LDoS attacks have still some deficiencies as the low accuracy, the high false negative rate, the high false positive rate, the weak reliability, and so on.Some detection methods which are based on traditional traffic characteristics [13, 14] are proposed in recent years. These methods detect the LDoS attacks by searching and identifying the abnormal network traffic [15, 16] caused by the LDoS attacks. For example, the EWMA method [15, 16] which is based on the EWMA algorithm can detect most kinds of the LDoS attacks. While the EWMA algorithm may smooth not only the normal traffic but also the abnormal traffic. This will affect the detection accuracy for the LDoS attacks.In this paper, a new adaptive EWMA method is proposed on the basis of the EWMA method. This method adopts the AEWMA algorithm which is a kind of improved EWMA algorithm. The AEWMA algorithm can retain the abnormal traffic and smooth the normal traffic at the same time, so this AEWMA method can highly efficiently detect the LDoS attacks. To develop this detection method for the LDoS attacks, firstly, the abnormal distribution of ACK traffic caused by the LDoS attacks is described and analyzed. Secondly, the abnormal characteristics of ACK traffic under the LDoS attacks are summarized. Thirdly, the AEWMA algorithm is introduced, and the advantages of the AEWMA algorithm compared with the EWMA algorithm are proved. Lastly the important parameters of the AEWMA detection method are analyzed. NS2 simulations show that this AEWMA detection method has a high accuracy rate, a lowfalse negative rate, and a low false positive rate for the LDoS attacks. Based on DARPA99 datasets, the experiment results show that the efficiency of this method has improved compared with the EWMA method.


## 2. Description and Analysis

### 2.1. The Model Description of LDoS Attack

The congestion control mechanism, which is a very important adaptive mechanism of the internet network, has some obvious defects. For example, when the network congests, the congestion control mechanism is triggered, resulting in the rapid shrink of the send window and the buffer queue, as well as the quick decline of the service capability of the network. The LDoS attacks exploit this flaw and periodically send high intensity pulse attack flows, making a constant switch of the network system states between inefficient and normal. Thereupon, the network cannot provide normal services, namely, denial of service.The model of the LDoS attacks and the affection of the system performance under the LDoS attacks are shown in Figure1, where the LDoS attacks usually have three important parameters: (1) the cycle of attack: T
attack, (2) the duration time of attack: t
attack, and (3) the intensity of attack pulse: R
attack. Figure 1(a) depicts the model of the LDoS attacks. As these three parameters, the average traffic of the LDoS attacks can be denoted as R
attack
×
(
t
attack
/
T
attack
). In general, the LDoS attacks periodically send high intensity pulse data flows. In order to congest the network, the intensity of attack pulse R
attack must meet: R
attack
>
C
b-link, where C
b-link is the network bottleneck bandwidth. At the same time, the duration time of each pulse attack flow is short while the time of silence in each period is long, so the average traffic of the LDoS attacks is lower than the network bottleneck bandwidth C
b-link
(
(
R
attack
×
(
t
attack
/
T
attack
)
)
<
C
b-link
), as shown in Figure 1(a). Figure 1(b) shows that the system performance of the network has suffered heavy losses.The model and the influence of LDoS attacks.
(a)
model of LDoS attacks
(b)
affection of system performance under LDoS attacksThe influence of the TCP traffic under the LDoS attacks is shown in Figure2. When the network is normal without any attacks, the TCP traffic is stable with small fluctuations, and then the average of TCP traffic is large. While, when the network is abnormal under the LDoS attacks, the TCP traffic fluctuates acutely, the average of TCP traffic is on the decline. Figure 2 shows that the LDoS attacks can significantly reduce the average TCP traffic.Figure 2
The influence of TCP traffic under LDoS attacks.


### 2.2. The Characteristics Analysis of LDoS Attacks

The LDoS attacks usually occur in abusy network in order to get the better effect of the attacks. In thebusy network, the LDoS attacks can cause a significant impact which is quite different from other attacks on the network traffic. According to the focus of this paper, we propose three kinds of representative scene of the network as follows. (1) Scene 1: the normal network which doesn’t have any attacks; (2) Scene 2: there exist other attacks which have made an impact on TCP traffic except the LDoS attacks (e.g., the DDoS attacks in this paper); (3) Scene 3: there exist the LDoS attacks. At the same time, each scene has a sufficient number of TCP connections and background data traffic. According to the LDoS attacks principles, the legitimate TCP traffic and the corresponding ACK traffic will change significantly when the attacks have occurred. As the actual network TCP connection uses thepiggybacking and thecumulative acknowledgment scheme, in order to improve the detection efficiency, the ACK traffic is used to analyze and to detect the LDoS attacks.The ACK traffic distribution of the three scenes is shown in Figure3. The μ
i
(
i
=
1,2
,
3
) and σ
i
(
i
=
1,2
,
3
) denote the average and the variance of the ACK traffic in the three scenes. Figure 3 shows that, in the Scene 1, the network occasionally congests, so the ACK traffic is more stable, and then μ
1 is large and σ
1 is small. In the Scene 2, TCP connections can hardly be established under the DDoS attacks, so the ACK traffic’s μ
2 approaches to zero and σ
2 fluctuates in a very small manner. In the Scene 3, the TCP traffic waves hugely and the ACK traffic fluctuates acutely, so the ACK traffic’s μ
3 is small but σ
3 sharply rises. Therefore, we can get μ
1
>
μ
3
>
μ
2
≈
0, and σ
3
>
σ
1
>
σ
2.The ACK distribution of the three scenes.
(a)
ACK traffic in Scene 1
(b)
ACK traffic in Scene 2
(c)
ACK traffic in Scene 3According to analysis above, in the Scene 3, because the LDoS attacks have convulsed the ACK traffic, its distribution is more discrete and has a significant abnormal change in comparison with the Scene 1. In the Scene 2, because the DDoS attacks lead the ACK traffic drop to be close to zero, its distribution has a significant abnormal change too compared with the Scene 1, but it is much different from the change of the Scene 3. Therefore, the LDoS attacks led the significant abnormal change of the distribution of the ACK traffic, and the distribution of the Scene 3 is very different from the distribution of the Scene 1, and it is much different from the distribution of the Scene 2 too. So the LDoS attacks can be detected by measuring and analyzing the distribution characteristics of the ACK traffic.


### 2.3. Measuring Abnormal Distribution of ACK Traffic

A large number of experiments have proved that, according to the central limit theorem, the Gaussian distribution could describe most of the real network data traffic distribution [17]. So the Gaussian distribution is used to express the ACK traffic probability distribution function (PDF for short) of the three different scenes, such as Φ
1
(
x
,
μ
1
,
σ
1
), Φ
2
(
x
,
μ
2
,
σ
2
), and Φ
3
(
x
,
μ
3
,
σ
3
). Figure 3 indicates that μ
1
>
μ
3
>
μ
2 and σ
3
>
σ
1
>
σ
2. Therefore, the probability distribution function of Φ
1, Φ
2, and Φ
3 are shown in Figure 4.Figure 4
The PDF of ACK traffic in three scenes.Figure4 shows that x
=
μ
i
(
i
=
1,2
,
3
) is the symmetry axis of function Φ
i
(
i
=
1,2
,
3
). The characteristics of the Gaussian distribution show that the center of its distribution is highly concentrated and then quickly divergent trend. The dispersion degree is directly proportional to its variance, and the greater the variance, the more emanative the divergence. In order to contrast the divergence conveniently of the ACK traffic PDF in three scenes, we normalize the functions Φ
1, Φ
2, and Φ
3, make the symmetry axis of the three functions accordant, and set x
′
=
x
-
μ
i, which have been shown in Figure 5.Figure 5
The Normalized PDF of ACK traffic.Figure5 shows that there are some differences of the distribution of the functions Φ
1, Φ
2, and Φ
3 after being normalized. The differences manifest that, there is such an interval outside of which Φ
1 and Φ
2 have a low probability (<1%), but Φ
3 has a high probability (
≫

1
%
). The probability of outside this interval has the greaterdeviation between function Φ
3 with functions Φ
1 and Φ
2; we call thisdeviation as the abnormal distribution which is caused by the LDoS attacks. Therefore, we can distinguish the Scene 3 from the Scene 1 and the Scene 2 through exploring the distribution characteristics of ACK traffic.The interval is calledConfidence Interval (CI for short), defined as CI
=
[
μ
i
-
h
,
μ
i
+
h
], where h is called the control line which determines the size of the CI. The range of CI is associated with μ
i and h. μ
i is the average ACK traffic of thetesting data (where the network traffic which is going to be tested is called the testing data), and h is closely related to the variance σ
normal of the ACK traffic of thetraining data (where the network traffic which is obtained from the network without any attack in advance is called the training data). A reasonable CI is effective to analyze the abnormal distribution because it decides the discrimination of the abnormal distribution.So, the LDoS attacks can be detected by observing the distribution and analyzing the deviation of the ACK traffic based on CI. The Adaptive Exponentially Weighted Moving Average (AEWMA for short) algorithm is used to describe the distribution of the ACK traffic.


## 2.1. The Model Description of LDoS Attack

The congestion control mechanism, which is a very important adaptive mechanism of the internet network, has some obvious defects. For example, when the network congests, the congestion control mechanism is triggered, resulting in the rapid shrink of the send window and the buffer queue, as well as the quick decline of the service capability of the network. The LDoS attacks exploit this flaw and periodically send high intensity pulse attack flows, making a constant switch of the network system states between inefficient and normal. Thereupon, the network cannot provide normal services, namely, denial of service.The model of the LDoS attacks and the affection of the system performance under the LDoS attacks are shown in Figure1, where the LDoS attacks usually have three important parameters: (1) the cycle of attack: T
attack, (2) the duration time of attack: t
attack, and (3) the intensity of attack pulse: R
attack. Figure 1(a) depicts the model of the LDoS attacks. As these three parameters, the average traffic of the LDoS attacks can be denoted as R
attack
×
(
t
attack
/
T
attack
). In general, the LDoS attacks periodically send high intensity pulse data flows. In order to congest the network, the intensity of attack pulse R
attack must meet: R
attack
>
C
b-link, where C
b-link is the network bottleneck bandwidth. At the same time, the duration time of each pulse attack flow is short while the time of silence in each period is long, so the average traffic of the LDoS attacks is lower than the network bottleneck bandwidth C
b-link
(
(
R
attack
×
(
t
attack
/
T
attack
)
)
<
C
b-link
), as shown in Figure 1(a). Figure 1(b) shows that the system performance of the network has suffered heavy losses.The model and the influence of LDoS attacks.
(a)
model of LDoS attacks
(b)
affection of system performance under LDoS attacksThe influence of the TCP traffic under the LDoS attacks is shown in Figure2. When the network is normal without any attacks, the TCP traffic is stable with small fluctuations, and then the average of TCP traffic is large. While, when the network is abnormal under the LDoS attacks, the TCP traffic fluctuates acutely, the average of TCP traffic is on the decline. Figure 2 shows that the LDoS attacks can significantly reduce the average TCP traffic.Figure 2
The influence of TCP traffic under LDoS attacks.


## 2.2. The Characteristics Analysis of LDoS Attacks

The LDoS attacks usually occur in abusy network in order to get the better effect of the attacks. In thebusy network, the LDoS attacks can cause a significant impact which is quite different from other attacks on the network traffic. According to the focus of this paper, we propose three kinds of representative scene of the network as follows. (1) Scene 1: the normal network which doesn’t have any attacks; (2) Scene 2: there exist other attacks which have made an impact on TCP traffic except the LDoS attacks (e.g., the DDoS attacks in this paper); (3) Scene 3: there exist the LDoS attacks. At the same time, each scene has a sufficient number of TCP connections and background data traffic. According to the LDoS attacks principles, the legitimate TCP traffic and the corresponding ACK traffic will change significantly when the attacks have occurred. As the actual network TCP connection uses thepiggybacking and thecumulative acknowledgment scheme, in order to improve the detection efficiency, the ACK traffic is used to analyze and to detect the LDoS attacks.The ACK traffic distribution of the three scenes is shown in Figure3. The μ
i
(
i
=
1,2
,
3
) and σ
i
(
i
=
1,2
,
3
) denote the average and the variance of the ACK traffic in the three scenes. Figure 3 shows that, in the Scene 1, the network occasionally congests, so the ACK traffic is more stable, and then μ
1 is large and σ
1 is small. In the Scene 2, TCP connections can hardly be established under the DDoS attacks, so the ACK traffic’s μ
2 approaches to zero and σ
2 fluctuates in a very small manner. In the Scene 3, the TCP traffic waves hugely and the ACK traffic fluctuates acutely, so the ACK traffic’s μ
3 is small but σ
3 sharply rises. Therefore, we can get μ
1
>
μ
3
>
μ
2
≈
0, and σ
3
>
σ
1
>
σ
2.The ACK distribution of the three scenes.
(a)
ACK traffic in Scene 1
(b)
ACK traffic in Scene 2
(c)
ACK traffic in Scene 3According to analysis above, in the Scene 3, because the LDoS attacks have convulsed the ACK traffic, its distribution is more discrete and has a significant abnormal change in comparison with the Scene 1. In the Scene 2, because the DDoS attacks lead the ACK traffic drop to be close to zero, its distribution has a significant abnormal change too compared with the Scene 1, but it is much different from the change of the Scene 3. Therefore, the LDoS attacks led the significant abnormal change of the distribution of the ACK traffic, and the distribution of the Scene 3 is very different from the distribution of the Scene 1, and it is much different from the distribution of the Scene 2 too. So the LDoS attacks can be detected by measuring and analyzing the distribution characteristics of the ACK traffic.


## 2.3. Measuring Abnormal Distribution of ACK Traffic

A large number of experiments have proved that, according to the central limit theorem, the Gaussian distribution could describe most of the real network data traffic distribution [17]. So the Gaussian distribution is used to express the ACK traffic probability distribution function (PDF for short) of the three different scenes, such as Φ
1
(
x
,
μ
1
,
σ
1
), Φ
2
(
x
,
μ
2
,
σ
2
), and Φ
3
(
x
,
μ
3
,
σ
3
). Figure 3 indicates that μ
1
>
μ
3
>
μ
2 and σ
3
>
σ
1
>
σ
2. Therefore, the probability distribution function of Φ
1, Φ
2, and Φ
3 are shown in Figure 4.Figure 4
The PDF of ACK traffic in three scenes.Figure4 shows that x
=
μ
i
(
i
=
1,2
,
3
) is the symmetry axis of function Φ
i
(
i
=
1,2
,
3
). The characteristics of the Gaussian distribution show that the center of its distribution is highly concentrated and then quickly divergent trend. The dispersion degree is directly proportional to its variance, and the greater the variance, the more emanative the divergence. In order to contrast the divergence conveniently of the ACK traffic PDF in three scenes, we normalize the functions Φ
1, Φ
2, and Φ
3, make the symmetry axis of the three functions accordant, and set x
′
=
x
-
μ
i, which have been shown in Figure 5.Figure 5
The Normalized PDF of ACK traffic.Figure5 shows that there are some differences of the distribution of the functions Φ
1, Φ
2, and Φ
3 after being normalized. The differences manifest that, there is such an interval outside of which Φ
1 and Φ
2 have a low probability (<1%), but Φ
3 has a high probability (
≫

1
%
). The probability of outside this interval has the greaterdeviation between function Φ
3 with functions Φ
1 and Φ
2; we call thisdeviation as the abnormal distribution which is caused by the LDoS attacks. Therefore, we can distinguish the Scene 3 from the Scene 1 and the Scene 2 through exploring the distribution characteristics of ACK traffic.The interval is calledConfidence Interval (CI for short), defined as CI
=
[
μ
i
-
h
,
μ
i
+
h
], where h is called the control line which determines the size of the CI. The range of CI is associated with μ
i and h. μ
i is the average ACK traffic of thetesting data (where the network traffic which is going to be tested is called the testing data), and h is closely related to the variance σ
normal of the ACK traffic of thetraining data (where the network traffic which is obtained from the network without any attack in advance is called the training data). A reasonable CI is effective to analyze the abnormal distribution because it decides the discrimination of the abnormal distribution.So, the LDoS attacks can be detected by observing the distribution and analyzing the deviation of the ACK traffic based on CI. The Adaptive Exponentially Weighted Moving Average (AEWMA for short) algorithm is used to describe the distribution of the ACK traffic.


## 3. Adaptive EWMA Method for LDoS Attacks

### 3.1. The Adaptive EWMA Method

The LDoS attacks can be detected by analyzing and measuring the abnormal ACK traffic; in order to accurately describe and measure the distribution characteristics of ACK traffic, the AEWMA algorithm which is a kind of improved EWMA algorithm is used.EWMA algorithm [18] was proposed by Roberts in 1959, which is defined as follows:
(1)
S
0
=
0
,
S
i
=
(
1
-
λ
EWMA
)
S
i
-
1
+
λ
EWMA
X
i
,
where X
i is the ith sample values, S
i is the ith EWMA statistical value, λ
EWMA is a constant called smoothing parameter, and λ
EWMA
∈
(
0,1
). Equation (2) is derived from (1). Consider
(2)
S
0
=
0
,
S
i
=
S
i
-
1
+
λ
EWMA
(
X
i
-
S
i
-
1
)
.For the EWMA algorithm, the smaller theλ
EWMA, the better the smoothness and the higher the accuracy of smalldrift, while the greater the λ
EWMA, the weaker the smoothness and the higher the accuracy of largedrift. The EWMA algorithm is used widely in the field of the early product quality analysis, product anomaly detection, financial management, and other statistical areas. In recent years, The EWMA algorithm has been applied to the field of communications and network anomaly detection and determination.However, it can be seen from (2) that the EWMA algorithm smoothes all of the original samples. This means that the EWMA algorithm not only smoothes the accidental error, but also smoothes the exceptional mutation too. In the LDoS attacks detection based on abnormal traffic, if the abnormal mutation which is always the research emphasis has been smoothed, it would lead the abnormal characteristics blurred or even lose. thereby reducing the detection accuracy. So in the LDoS attacks detection, there are some flaws and shortcomings if the EWMA algorithm is used to smooth the original samples.The AEWMA algorithm [19] which has an adaptive smoothing function was proposed by Capizzi and Masarotto in 2003. AEWMA algorithm is a kind of improved EWMA algorithm and is defined as follows:
(3)
S
0
=
1
n
∑
i
=
1
n
X
i
(
n
∈
N
+
)
,
S
i
=
(
1
-
w
(
e
i
)
)
S
i
-
1
+
w
(
e
i
)
X
i
,
where X
i is the ith sample values, S
i is the ith AEWMA statistical value, and w
(
e
i
) is an adaptive smoothing function. Equation (4) is derived from (3). Consider
(4)
S
0
=
1
n
∑
i
=
1
n
X
i
(
n
∈
N
+
)
,
S
i
=
S
i
-
1
+
w
(
e
i
)
(
X
i
-
S
i
-
1
)
.Sete
i
=
X
i
-
S
i
-
1 and ϕ
(
e
i
), called the score function, is defined as follows:
(5)
ϕ
(
e
i
)
=
w
(
e
i
)
(
X
i
-
S
i
-
1
)
.Then (6) is derived from (4) and (5). One has
(6)
S
0
=
1
n
∑
i
=
1
n
X
i
(
n
∈
N
+
)
,
S
i
=
S
i
-
1
+
ϕ
(
e
i
)
.For the AEWMA algorithm, it can be seen from (6) that if ϕ
(
e
i
)
=
λ
EWMA
e
i, then the classic EWMA algorithm is obtained. Therefore EWMA algorithm is a special case of AEWMA algorithm and the AEWMA algorithm has the characteristics and advantages of the classical EWMA algorithm. Then the AEWMA algorithm, which uses the score function instead of fixed initial parameters, is apparently more adaptable to a wider range than the EWMA algorithm.The score functionϕ
(
e
) has the following characteristics: (1) ϕ
(
e
) is a nondecreasing function; (2) ϕ
(
e
) is an odd function; (3) when |
e
| is small, ϕ
(
e
)
≈
λ
e; (4) when |
e
| is great, ϕ
(
e
)
≈
e. One score function is defined as follows [19]:
(7)
ϕ
(
e
)
=
{
{
1
-
(
1
-
λ
AEWMA
)
[
1
-
(
e
k
)
2
]
2
}
×
e
,
(
|
e
|
<
k
)
e
,
(
|
e
|
≥
k
)
,
where λ
AEWMA and k are parameters of the score function ϕ
(
e
), λ
AEWMA is smoothing parameter for ϕ
(
e
), and k is an important threshold for measuring the variable e.The score function of the AEWMA algorithm and the fixed initial parametersλ
EWMA of the EWMA algorithm are shown in Figure 6. Figure 6 shows that the EWMA algorithm corresponding straight line y
=
λ
EWMA
×
x has a linear weighting, while the AEWMA algorithm corresponding curve line has a nonlinear weighting. ϕ
(
e
) equals straight line y
=
x, when the variable e is large (
e
≥
k
), and ϕ
(
e
) closes straight line y
=
λ
EWMA
×
x, when the variable e is small (
e
<
k
). ϕ
(
e
) intersects with straight line y
=
x at the point (
k
,
k
). Therefore ϕ
(
e
) can retain the exceptional mutation (
e
≥
k
) and smooth the accidental error (
e
<
k
).Figure 6
Score function of the AEWMA algorithm.The statistics results of traffic based on the AEWMA algorithm and the EWMA algorithm are shown in Figure7. Figure 7 shows that the AEWMA algorithm and the EWMA algorithm can effectively smooth the slight fluctuation of the traffic when the traffic without any attacks is normal. Two curves corresponding statistical values almost coincide. But when the traffic under attacks is abnormal, the EWMA algorithm smoothes the large fluctuation too, while the AEWMA algorithm can retain the abnormal characteristics of the sample value. Two curves corresponding statistical values are quite different. Therefore the AEWMA algorithm is more suitable than the EWMA algorithm for LDoS attacks detection based on the abnormal characteristics of traffic.Figure 7
The statistics results of traffic based on AEWMA and EWMA algorithm.As can be seen from the above analysis, the AEWMA algorithm is a kind of improved EWMA algorithm. The fundamental principle of the EWMA algorithm is the more recent sample values, the more information and the more weight. Its statistical value is a weighted linear combination of the sample values. By using a nonlinear weight function, the AEWMA algorithm can retain the exceptional mutation and smooth the accidental error of the samples. When the LDoS attacks occur, lots of high intensity pulse attack flows result in a lot of abnormal traffic in the network. Then the AEWMA algorithm is more suitable than the EWMA algorithm for retaining the abnormal characteristics caused by the LDoS attacks, so the AEWMA algorithm is adaptable.


### 3.2. The Detection Judgment of LDoS Attacks

By using the AEWMA algorithm the accidental error is smoothed and the exceptional mutation is retained; then the LDoS attack can be exactly measured. When the LDoS attacks exist, the distribution of the ACK traffic will deviate, and the specified CI is used to measure the dispersion degree. So the LDoS attacks can be detected by analyzing and contrasting the dispersion degree of ACK traffic’s distribution.In order to analyze the ACK traffic samples, we define the concept of thetesting windows which is composed of the continuous on time scales for multiple samples, as follows.Definition 1.
A certain number of consecutive sample values of the ACK traffic compose a testing window, TW for short, and then the length of the sampling time corresponding to a TW denotesTim
e
TW.
In a TW, theS
i of the ACK traffic is named S
i
ACK. The mapping point in the two-dimensional coordinate system of the group 〈
i
,
S
i
ACK
〉 is named the AEWMA statistical point. If S
i
ACK
∈
CI, the AEWMA statistical point is called the normal point (NP for short); otherwise, it is called the abnormal point (AP for short). The congregation which is composed of a set of consecutive APs is called GP. Each GP contains at least one AP.Definition 2.
In a TW, the ratio of the number of AP to the number of all AEWMA statistical points is called APT, and the ratio of the number of GP to the number of all AEWMA statistical points is called GPT.
In the Scene 1, the ACK traffic is stable andS
ACK is normal distribution; namely, few S
ACKs are outside of CI. So NP is more and AP is less in all the AEWMA statistical points. Therefore APT and GPT are both small. In the Scene 2, DDoS attacks cause network the complete denial of service and the traffic is almost zero and the same as the S
ACK. So APT and GPT approach to zero. In the Scene 3, LDoS attacks cause the ACK traffic more volatile and the S
ACK anomalistic, so AP is more and APT is larger. At the same time GP and GPT are larger too for the frequent changes of the ACK traffic. Figure 8 shows the difference of ATP and GPT of the three scenes.APT and GPT of three scenes.
(a)
APT and GPT in Scene 1
(b)
APT and GPT in Scene 2
(c)
APT and GPT in Scene 3According to the characteristics of distribution of AEWMA statistics of ACK traffic on CI for the three scenes, the judgment criterion is given as follows.Judgment Criterion. In a TW, if APT
>
Λ
AP (which is called Condition 1, C1 for short) and GPT
>
Λ
GP (which is called Condition 2, C2 for short), then the LDoS attacks exist in this TW. where Λ
AP and Λ
GP are accessed from the training data (0
<
Λ
GP
≤
Λ
AP
<
1).


### 3.3. The Important Parameters

The AEWMA algorithm can be used to detect the LDoS attacks; then the reasonableλ
AEWMA and k are very important for the AEWMA algorithm. The algorithm that is required not only can filter the random error of the normal network traffic such as thewhite noise, but also can maintain a certain degree of sensitivity for the abnormal network traffic. Smoothing parameter λ
AEWMA impacts smoothness of the AEWMA algorithm, and then the AEWMA statistics S
is are smoother when the smoothing parameter λ
AEWMA is small; therefore it is propitious to filter the random error such as thewhite noise. The parameter k is an important threshold for measuring the variable e. The AEWMA algorithm can retain e when e is large (e
≥
k), while retaining smooth e when e is small (e
<
k). So the reasonable λ
AEWMA and k are needed for the AEWMA algorithm to retain the exceptional mutation and smooth the random error.In general, the reasonableλ
AEWMA and k need to meet the requirements of the two different situations: the low APT in normal network traffic without any attacks and the high APT in abnormal network traffic under attacks. The λ
AEWMA and k which meet these two conditions are the optimal parameters. The solving of the optimal parameters λ
AEWMA and k are shown in Figure 9, where λ
AEWMA is the x-axis, k is the y-axis, and APT is the z-axis. Figure 9(a) shows that in normal network traffic without any attacks, the APT is low and meets APT
≤
α (where α is constant); the suitable parameters are shown in A area. Figure 9(b) shows that in abnormal network traffic under attacks, the APT is high and meets APT
≥
β (where β is constant); the suitable parameters are shown in B area. Finally, the optimal parameters are shown in the A ∩ B area.λ
AEWMA and k for the AEWMA algorithm.
(a)
Normal network without any attacks
(b)
Abnormal network under attacksThe control lineh is essential for determining AP. Figure 10(a) shows the changes of APT in confidence intervals C
I
1
[
μ
1
-
2
σ
normal
,
μ
1
+
2
σ
normal
] and C
I
2
[
μ
1
-
3
σ
normal
,
μ
1
+
3
σ
normal
] in normal network traffic without any attacks (where μ
1 is the average and σ
normal is the variance of thetraining data). It can be seen from Figure 10(a) that the smaller the h, the narrower the CI and the higher the APT and therefore the higher false positive rate in normal network traffic. Figure 10(b) shows the changes of APT in confidence intervals C
I
1
[
μ
2
-
2
σ
normal
,
μ
2
+
2
σ
normal
] and C
I
2
[
μ
2
-
3
σ
normal
,
μ
2
+
3
σ
normal
] in abnormal network traffic under attacks (where μ
2 is the average and σ
normal is the variance of thetraining data). It can be seen from Figure 10(b) that the higher the h, the wider the CI and the lower the APT, and therefore the higher the false negative rate in abnormal network traffic. So the reasonable h is in need to meet the requirements of the two different situations: the low APT in normal network traffic without any attacks and the high APT in abnormal network traffic under attacks, which is the same as λ
AEWMA and k. Finally, the control line h which meets the above two conditions is the optimal parameter.Control lineh for CI.
(a)
Normal network without any attacks
(b)
Abnormal network under attacks


## 3.1. The Adaptive EWMA Method

The LDoS attacks can be detected by analyzing and measuring the abnormal ACK traffic; in order to accurately describe and measure the distribution characteristics of ACK traffic, the AEWMA algorithm which is a kind of improved EWMA algorithm is used.EWMA algorithm [18] was proposed by Roberts in 1959, which is defined as follows:
(1)
S
0
=
0
,
S
i
=
(
1
-
λ
EWMA
)
S
i
-
1
+
λ
EWMA
X
i
,
where X
i is the ith sample values, S
i is the ith EWMA statistical value, λ
EWMA is a constant called smoothing parameter, and λ
EWMA
∈
(
0,1
). Equation (2) is derived from (1). Consider
(2)
S
0
=
0
,
S
i
=
S
i
-
1
+
λ
EWMA
(
X
i
-
S
i
-
1
)
.For the EWMA algorithm, the smaller theλ
EWMA, the better the smoothness and the higher the accuracy of smalldrift, while the greater the λ
EWMA, the weaker the smoothness and the higher the accuracy of largedrift. The EWMA algorithm is used widely in the field of the early product quality analysis, product anomaly detection, financial management, and other statistical areas. In recent years, The EWMA algorithm has been applied to the field of communications and network anomaly detection and determination.However, it can be seen from (2) that the EWMA algorithm smoothes all of the original samples. This means that the EWMA algorithm not only smoothes the accidental error, but also smoothes the exceptional mutation too. In the LDoS attacks detection based on abnormal traffic, if the abnormal mutation which is always the research emphasis has been smoothed, it would lead the abnormal characteristics blurred or even lose. thereby reducing the detection accuracy. So in the LDoS attacks detection, there are some flaws and shortcomings if the EWMA algorithm is used to smooth the original samples.The AEWMA algorithm [19] which has an adaptive smoothing function was proposed by Capizzi and Masarotto in 2003. AEWMA algorithm is a kind of improved EWMA algorithm and is defined as follows:
(3)
S
0
=
1
n
∑
i
=
1
n
X
i
(
n
∈
N
+
)
,
S
i
=
(
1
-
w
(
e
i
)
)
S
i
-
1
+
w
(
e
i
)
X
i
,
where X
i is the ith sample values, S
i is the ith AEWMA statistical value, and w
(
e
i
) is an adaptive smoothing function. Equation (4) is derived from (3). Consider
(4)
S
0
=
1
n
∑
i
=
1
n
X
i
(
n
∈
N
+
)
,
S
i
=
S
i
-
1
+
w
(
e
i
)
(
X
i
-
S
i
-
1
)
.Sete
i
=
X
i
-
S
i
-
1 and ϕ
(
e
i
), called the score function, is defined as follows:
(5)
ϕ
(
e
i
)
=
w
(
e
i
)
(
X
i
-
S
i
-
1
)
.Then (6) is derived from (4) and (5). One has
(6)
S
0
=
1
n
∑
i
=
1
n
X
i
(
n
∈
N
+
)
,
S
i
=
S
i
-
1
+
ϕ
(
e
i
)
.For the AEWMA algorithm, it can be seen from (6) that if ϕ
(
e
i
)
=
λ
EWMA
e
i, then the classic EWMA algorithm is obtained. Therefore EWMA algorithm is a special case of AEWMA algorithm and the AEWMA algorithm has the characteristics and advantages of the classical EWMA algorithm. Then the AEWMA algorithm, which uses the score function instead of fixed initial parameters, is apparently more adaptable to a wider range than the EWMA algorithm.The score functionϕ
(
e
) has the following characteristics: (1) ϕ
(
e
) is a nondecreasing function; (2) ϕ
(
e
) is an odd function; (3) when |
e
| is small, ϕ
(
e
)
≈
λ
e; (4) when |
e
| is great, ϕ
(
e
)
≈
e. One score function is defined as follows [19]:
(7)
ϕ
(
e
)
=
{
{
1
-
(
1
-
λ
AEWMA
)
[
1
-
(
e
k
)
2
]
2
}
×
e
,
(
|
e
|
<
k
)
e
,
(
|
e
|
≥
k
)
,
where λ
AEWMA and k are parameters of the score function ϕ
(
e
), λ
AEWMA is smoothing parameter for ϕ
(
e
), and k is an important threshold for measuring the variable e.The score function of the AEWMA algorithm and the fixed initial parametersλ
EWMA of the EWMA algorithm are shown in Figure 6. Figure 6 shows that the EWMA algorithm corresponding straight line y
=
λ
EWMA
×
x has a linear weighting, while the AEWMA algorithm corresponding curve line has a nonlinear weighting. ϕ
(
e
) equals straight line y
=
x, when the variable e is large (
e
≥
k
), and ϕ
(
e
) closes straight line y
=
λ
EWMA
×
x, when the variable e is small (
e
<
k
). ϕ
(
e
) intersects with straight line y
=
x at the point (
k
,
k
). Therefore ϕ
(
e
) can retain the exceptional mutation (
e
≥
k
) and smooth the accidental error (
e
<
k
).Figure 6
Score function of the AEWMA algorithm.The statistics results of traffic based on the AEWMA algorithm and the EWMA algorithm are shown in Figure7. Figure 7 shows that the AEWMA algorithm and the EWMA algorithm can effectively smooth the slight fluctuation of the traffic when the traffic without any attacks is normal. Two curves corresponding statistical values almost coincide. But when the traffic under attacks is abnormal, the EWMA algorithm smoothes the large fluctuation too, while the AEWMA algorithm can retain the abnormal characteristics of the sample value. Two curves corresponding statistical values are quite different. Therefore the AEWMA algorithm is more suitable than the EWMA algorithm for LDoS attacks detection based on the abnormal characteristics of traffic.Figure 7
The statistics results of traffic based on AEWMA and EWMA algorithm.As can be seen from the above analysis, the AEWMA algorithm is a kind of improved EWMA algorithm. The fundamental principle of the EWMA algorithm is the more recent sample values, the more information and the more weight. Its statistical value is a weighted linear combination of the sample values. By using a nonlinear weight function, the AEWMA algorithm can retain the exceptional mutation and smooth the accidental error of the samples. When the LDoS attacks occur, lots of high intensity pulse attack flows result in a lot of abnormal traffic in the network. Then the AEWMA algorithm is more suitable than the EWMA algorithm for retaining the abnormal characteristics caused by the LDoS attacks, so the AEWMA algorithm is adaptable.


## 3.2. The Detection Judgment of LDoS Attacks

By using the AEWMA algorithm the accidental error is smoothed and the exceptional mutation is retained; then the LDoS attack can be exactly measured. When the LDoS attacks exist, the distribution of the ACK traffic will deviate, and the specified CI is used to measure the dispersion degree. So the LDoS attacks can be detected by analyzing and contrasting the dispersion degree of ACK traffic’s distribution.In order to analyze the ACK traffic samples, we define the concept of thetesting windows which is composed of the continuous on time scales for multiple samples, as follows.Definition 1.
A certain number of consecutive sample values of the ACK traffic compose a testing window, TW for short, and then the length of the sampling time corresponding to a TW denotesTim
e
TW.
In a TW, theS
i of the ACK traffic is named S
i
ACK. The mapping point in the two-dimensional coordinate system of the group 〈
i
,
S
i
ACK
〉 is named the AEWMA statistical point. If S
i
ACK
∈
CI, the AEWMA statistical point is called the normal point (NP for short); otherwise, it is called the abnormal point (AP for short). The congregation which is composed of a set of consecutive APs is called GP. Each GP contains at least one AP.Definition 2.
In a TW, the ratio of the number of AP to the number of all AEWMA statistical points is called APT, and the ratio of the number of GP to the number of all AEWMA statistical points is called GPT.
In the Scene 1, the ACK traffic is stable andS
ACK is normal distribution; namely, few S
ACKs are outside of CI. So NP is more and AP is less in all the AEWMA statistical points. Therefore APT and GPT are both small. In the Scene 2, DDoS attacks cause network the complete denial of service and the traffic is almost zero and the same as the S
ACK. So APT and GPT approach to zero. In the Scene 3, LDoS attacks cause the ACK traffic more volatile and the S
ACK anomalistic, so AP is more and APT is larger. At the same time GP and GPT are larger too for the frequent changes of the ACK traffic. Figure 8 shows the difference of ATP and GPT of the three scenes.APT and GPT of three scenes.
(a)
APT and GPT in Scene 1
(b)
APT and GPT in Scene 2
(c)
APT and GPT in Scene 3According to the characteristics of distribution of AEWMA statistics of ACK traffic on CI for the three scenes, the judgment criterion is given as follows.Judgment Criterion. In a TW, if APT
>
Λ
AP (which is called Condition 1, C1 for short) and GPT
>
Λ
GP (which is called Condition 2, C2 for short), then the LDoS attacks exist in this TW. where Λ
AP and Λ
GP are accessed from the training data (0
<
Λ
GP
≤
Λ
AP
<
1).


## 3.3. The Important Parameters

The AEWMA algorithm can be used to detect the LDoS attacks; then the reasonableλ
AEWMA and k are very important for the AEWMA algorithm. The algorithm that is required not only can filter the random error of the normal network traffic such as thewhite noise, but also can maintain a certain degree of sensitivity for the abnormal network traffic. Smoothing parameter λ
AEWMA impacts smoothness of the AEWMA algorithm, and then the AEWMA statistics S
is are smoother when the smoothing parameter λ
AEWMA is small; therefore it is propitious to filter the random error such as thewhite noise. The parameter k is an important threshold for measuring the variable e. The AEWMA algorithm can retain e when e is large (e
≥
k), while retaining smooth e when e is small (e
<
k). So the reasonable λ
AEWMA and k are needed for the AEWMA algorithm to retain the exceptional mutation and smooth the random error.In general, the reasonableλ
AEWMA and k need to meet the requirements of the two different situations: the low APT in normal network traffic without any attacks and the high APT in abnormal network traffic under attacks. The λ
AEWMA and k which meet these two conditions are the optimal parameters. The solving of the optimal parameters λ
AEWMA and k are shown in Figure 9, where λ
AEWMA is the x-axis, k is the y-axis, and APT is the z-axis. Figure 9(a) shows that in normal network traffic without any attacks, the APT is low and meets APT
≤
α (where α is constant); the suitable parameters are shown in A area. Figure 9(b) shows that in abnormal network traffic under attacks, the APT is high and meets APT
≥
β (where β is constant); the suitable parameters are shown in B area. Finally, the optimal parameters are shown in the A ∩ B area.λ
AEWMA and k for the AEWMA algorithm.
(a)
Normal network without any attacks
(b)
Abnormal network under attacksThe control lineh is essential for determining AP. Figure 10(a) shows the changes of APT in confidence intervals C
I
1
[
μ
1
-
2
σ
normal
,
μ
1
+
2
σ
normal
] and C
I
2
[
μ
1
-
3
σ
normal
,
μ
1
+
3
σ
normal
] in normal network traffic without any attacks (where μ
1 is the average and σ
normal is the variance of thetraining data). It can be seen from Figure 10(a) that the smaller the h, the narrower the CI and the higher the APT and therefore the higher false positive rate in normal network traffic. Figure 10(b) shows the changes of APT in confidence intervals C
I
1
[
μ
2
-
2
σ
normal
,
μ
2
+
2
σ
normal
] and C
I
2
[
μ
2
-
3
σ
normal
,
μ
2
+
3
σ
normal
] in abnormal network traffic under attacks (where μ
2 is the average and σ
normal is the variance of thetraining data). It can be seen from Figure 10(b) that the higher the h, the wider the CI and the lower the APT, and therefore the higher the false negative rate in abnormal network traffic. So the reasonable h is in need to meet the requirements of the two different situations: the low APT in normal network traffic without any attacks and the high APT in abnormal network traffic under attacks, which is the same as λ
AEWMA and k. Finally, the control line h which meets the above two conditions is the optimal parameter.Control lineh for CI.
(a)
Normal network without any attacks
(b)
Abnormal network under attacks


## 4. The Experiments

In this paper, Experiment I and Experiment II are designed to verify this AEWMA detection method for LDoS attacks. Experiment I which builds the environment of LDoS attacks based on Network Simulator 2 (NS2 for short) [20] proves the validity in detecting the LDoS attacks. Experiment II uses the DARPA99 datasets [21] to evaluate the false positive rate for LDoS attacks, and the AEWMA method is compared with the EWMA method.


### 4.1. Experiment I

In order to detect the feasibility and accuracy of the AEWMA detection method, the experiment system which is based on NS2 simulator platform is build. The network topology is shown in Figure11, where R1, R2, and R3 are routers, and the link between R2 and R3 is the bottleneck link whose bandwidth is 10 Mbps and delay is 30 ms. All other links have 100 Mbps bandwidth and 15 ms delay. The network contains 25 TCP connections, in which 10 TCP connections are regarded as the background traffic. All TCP connections use the New Reno congestion control algorithm, and the minimum timeout is 1.0 s. The router queue management mechanism is Randomly Early Detection (RED) algorithm. Other network parameters use the default value of the NS2 simulation platform. Simulation time is from 0 s to 320 s and the background TCP traffic last from 0 s to 320 s, and the LDoS or the DDoS attacks last from 120 s to 220 s. Ten group experiments are designed to test the AEWMA detection method.Figure 11
The network topology for NS2 experiments.Experiment group 1 without any attacks in the network is used to validate the false positives of the Scene 1. Experiment group 2 containing the DDoS attacks (20 M attack pulse) is used to validate the accuracy of the Scene 2. From experiments group 3 to experiments group 10 are used to test the accuracy of the Scene 3. The LDoS attacks parameters(
T
attack, t
attack, R
attack
) are shown in Table 1.Table 1
Experiment I scheme.
Number
Experiment group
1
2
3
4
5
6
7
8
9
10
T
attack (s)
—
—
1.0
1.0
1.0
1.0
2.0
2.0
2.0
2.0
t
attack (s)
—
—
0.1
0.1
0.3
0.3
0.1
0.1
0.3
0.3
R
attack (M)
—
20
20
30
20
30
20
30
20
30The sampling time is 0.05 s andTim
e
TW
=
20 s. We set the detection time from 10 s to 310 s, so we get 15 TWs in each group, Where the LDoS attacks occur in the T
W
6 (120 s~130 s), TW
7

~
TW
10, and T
W
11 (210 s~220 s) of experiment group 3~10. We have got prior 20 groups training data for this network topology; each group training data lasts 3600 s and does not contain any attacks. Based on the training data, the available parameters of AEWMA algorithm are as follows: λ
=
0.2, k
=
3
σ
normal, h
=
3
σ
normal, Λ
AP
=
5.2
%, and Λ
GP
=
3.1
%.The experiment results are shown in Table2. The 15 TWs of the experiment group 1 do not meet C1 and C2; only the TW6 and TW11 of the experiment group 2 meet C1 but does not meet C2; and the TW
6

~
TW
11 of the experiment group 3~10 meet both C1 and C2. Therefore we determine that, the experiment group 1 and group 2 do not contain the LDoS attacks, while the TW6~TW11 of the experiment group 3~10 contain the LDoS attacks. Experiment results show that the proposed method can accurately and efficiently detect the LDoS attacks.Table 2
The detection results of the Experiment I.
Number
Meet C1:
APT
>
Λ
AP
Meet C2:
GPT
>
Λ
GP
Judgment(the LDoS attacks exist)
Group 1
None
None
None
Group 2
TW6, TW11
None
None
Group3
TW
6
~TW11
TW
6
~TW11
TW
6
~TW11
Group 4
TW
6
~TW11
TW
6
~TW11
TW
6
~TW11
Group 5
TW
6
~TW11
TW
6
~TW11
TW
6
~TW11
Group 6
TW
6
~TW11
TW
6
~TW11
TW
6
~TW11
Group 7
TW
6
~TW11
TW
6
~TW11
TW
6
~TW11
Group 8
TW
6
~TW11
TW
6
~TW11
TW
6
~TW11
Group 9
TW
6
~TW11
TW
6
~TW11
TW
6
~TW11
Group 10
TW
6
~TW11
TW
6
~TW11
TW
6
~TW11


### 4.2. Experiment II

Experiment II evaluates the false positive rate of the AEWMA method and the EWMA method when the network is normal (the Scene 1) or when there exist other attacks except LDoS attacks (the Scene 2). This experiment is based on the MIT Lincoln Laboratory’s DARPA99 datasets. In DARPA99 datasets, the data of the first week, the second week, and the third week do not contain any attacks, and the data of the fourth week and fifth week contain a lot of attacks except the LDoS attacks. In this experiment the dataset of Tuesday in the first week (inside data, 0 s~79000 s) is regarded as the training data, and the dataset of Monday in the fifth week (inside data, 0 s~79200 s) is regarded as the testing data. The dataset of Tuesday in the first week does not contain any attacks. The dataset of Monday in the fifth week contains 16 kinds of attack types, a total of 84 attacks.The sampling time is 0.5 s andTim
e
TW
=
250 s. The parameters of the AEWMA detection algorithm and the EWMA detection algorithm are shown in Table 3.Table 3
The parameters of AEWMA and EWMA.
AEWMA method
EWMA method
Detection parameters
σ
normal
=
5.32, λ
AEWMA
=
0.20,
k
=
3.0
σ
normal
,
h
=
3.0
σ
normal
σ
normal
=
5.32
,
λ
EWMA
=
0.95,
h
=
3.0
σ
normal
Judgment parameters
Λ
AP
=
5.0%
Λ
GP
=
3.0%
Λ
a
=
38.9%
Λ
b
=
10.04%Experiment II produces a total of 316 TWs, and detection results are shown in Figure12. By using the AEWMA method 23 false positive TWs are obtained, and the false positives rate is 7.27%.Figure 12
Detection results of Experiment II.While, by using the EWMA method 29 false positive TWs are obtained, the false positive rate is 9.17%. The false positive TWs of these two methods are shown in Figure13. In Figure 13, the solid points are the false positive TWs. In the EWMA method, in order to measure the exceptional mutation caused by LDoS attacks the smoothing parameter λ
EWMA is much larger, and therefore the smoothness is weak. While in the AEWMA method the smoothing parameter λ
AEWMA is much smaller, which can keep the smoothness and filter part of the accidental error, and at the same time the exceptional mutation can be retained. So the false positive rate of AEWMA method is lower than that of the EWMA method.Figure 13
The false positives rate of AEWMA and EWMA.


## 4.1. Experiment I

In order to detect the feasibility and accuracy of the AEWMA detection method, the experiment system which is based on NS2 simulator platform is build. The network topology is shown in Figure11, where R1, R2, and R3 are routers, and the link between R2 and R3 is the bottleneck link whose bandwidth is 10 Mbps and delay is 30 ms. All other links have 100 Mbps bandwidth and 15 ms delay. The network contains 25 TCP connections, in which 10 TCP connections are regarded as the background traffic. All TCP connections use the New Reno congestion control algorithm, and the minimum timeout is 1.0 s. The router queue management mechanism is Randomly Early Detection (RED) algorithm. Other network parameters use the default value of the NS2 simulation platform. Simulation time is from 0 s to 320 s and the background TCP traffic last from 0 s to 320 s, and the LDoS or the DDoS attacks last from 120 s to 220 s. Ten group experiments are designed to test the AEWMA detection method.Figure 11
The network topology for NS2 experiments.Experiment group 1 without any attacks in the network is used to validate the false positives of the Scene 1. Experiment group 2 containing the DDoS attacks (20 M attack pulse) is used to validate the accuracy of the Scene 2. From experiments group 3 to experiments group 10 are used to test the accuracy of the Scene 3. The LDoS attacks parameters(
T
attack, t
attack, R
attack
) are shown in Table 1.Table 1
Experiment I scheme.
Number
Experiment group
1
2
3
4
5
6
7
8
9
10
T
attack (s)
—
—
1.0
1.0
1.0
1.0
2.0
2.0
2.0
2.0
t
attack (s)
—
—
0.1
0.1
0.3
0.3
0.1
0.1
0.3
0.3
R
attack (M)
—
20
20
30
20
30
20
30
20
30The sampling time is 0.05 s andTim
e
TW
=
20 s. We set the detection time from 10 s to 310 s, so we get 15 TWs in each group, Where the LDoS attacks occur in the T
W
6 (120 s~130 s), TW
7

~
TW
10, and T
W
11 (210 s~220 s) of experiment group 3~10. We have got prior 20 groups training data for this network topology; each group training data lasts 3600 s and does not contain any attacks. Based on the training data, the available parameters of AEWMA algorithm are as follows: λ
=
0.2, k
=
3
σ
normal, h
=
3
σ
normal, Λ
AP
=
5.2
%, and Λ
GP
=
3.1
%.The experiment results are shown in Table2. The 15 TWs of the experiment group 1 do not meet C1 and C2; only the TW6 and TW11 of the experiment group 2 meet C1 but does not meet C2; and the TW
6

~
TW
11 of the experiment group 3~10 meet both C1 and C2. Therefore we determine that, the experiment group 1 and group 2 do not contain the LDoS attacks, while the TW6~TW11 of the experiment group 3~10 contain the LDoS attacks. Experiment results show that the proposed method can accurately and efficiently detect the LDoS attacks.Table 2
The detection results of the Experiment I.
Number
Meet C1:
APT
>
Λ
AP
Meet C2:
GPT
>
Λ
GP
Judgment(the LDoS attacks exist)
Group 1
None
None
None
Group 2
TW6, TW11
None
None
Group3
TW
6
~TW11
TW
6
~TW11
TW
6
~TW11
Group 4
TW
6
~TW11
TW
6
~TW11
TW
6
~TW11
Group 5
TW
6
~TW11
TW
6
~TW11
TW
6
~TW11
Group 6
TW
6
~TW11
TW
6
~TW11
TW
6
~TW11
Group 7
TW
6
~TW11
TW
6
~TW11
TW
6
~TW11
Group 8
TW
6
~TW11
TW
6
~TW11
TW
6
~TW11
Group 9
TW
6
~TW11
TW
6
~TW11
TW
6
~TW11
Group 10
TW
6
~TW11
TW
6
~TW11
TW
6
~TW11


## 4.2. Experiment II

Experiment II evaluates the false positive rate of the AEWMA method and the EWMA method when the network is normal (the Scene 1) or when there exist other attacks except LDoS attacks (the Scene 2). This experiment is based on the MIT Lincoln Laboratory’s DARPA99 datasets. In DARPA99 datasets, the data of the first week, the second week, and the third week do not contain any attacks, and the data of the fourth week and fifth week contain a lot of attacks except the LDoS attacks. In this experiment the dataset of Tuesday in the first week (inside data, 0 s~79000 s) is regarded as the training data, and the dataset of Monday in the fifth week (inside data, 0 s~79200 s) is regarded as the testing data. The dataset of Tuesday in the first week does not contain any attacks. The dataset of Monday in the fifth week contains 16 kinds of attack types, a total of 84 attacks.The sampling time is 0.5 s andTim
e
TW
=
250 s. The parameters of the AEWMA detection algorithm and the EWMA detection algorithm are shown in Table 3.Table 3
The parameters of AEWMA and EWMA.
AEWMA method
EWMA method
Detection parameters
σ
normal
=
5.32, λ
AEWMA
=
0.20,
k
=
3.0
σ
normal
,
h
=
3.0
σ
normal
σ
normal
=
5.32
,
λ
EWMA
=
0.95,
h
=
3.0
σ
normal
Judgment parameters
Λ
AP
=
5.0%
Λ
GP
=
3.0%
Λ
a
=
38.9%
Λ
b
=
10.04%Experiment II produces a total of 316 TWs, and detection results are shown in Figure12. By using the AEWMA method 23 false positive TWs are obtained, and the false positives rate is 7.27%.Figure 12
Detection results of Experiment II.While, by using the EWMA method 29 false positive TWs are obtained, the false positive rate is 9.17%. The false positive TWs of these two methods are shown in Figure13. In Figure 13, the solid points are the false positive TWs. In the EWMA method, in order to measure the exceptional mutation caused by LDoS attacks the smoothing parameter λ
EWMA is much larger, and therefore the smoothness is weak. While in the AEWMA method the smoothing parameter λ
AEWMA is much smaller, which can keep the smoothness and filter part of the accidental error, and at the same time the exceptional mutation can be retained. So the false positive rate of AEWMA method is lower than that of the EWMA method.Figure 13
The false positives rate of AEWMA and EWMA.


## 5. Conclusions

In this paper, based the abnormal distribution of the ACK traffic caused by the LDoS attacks, the distribution characteristics of ACK traffic are summarized and a new LDoS attacks detection method is proposed based on the AEWMA algorithm. According to statistical analysis of the ACK traffic characteristics, the LDoS attacks which could lead to distribution deviation of the ACK traffic are concluded. Then the AEWMA algorithm is introduced and the advantage of this AEWMA algorithm compared with the EWMA algorithm is analyzed. Lastly the AEWMA method to detect the LDoS attacks is proposed and the important parameters of this method are analyzed. Experiments have proved that this LDoS attacks detection method is effective, and at the same time the false positive rate of the AEWMA method is lower than that of the EWMA method.The abnormal network traffic caused by the LDoS attacks is not limited to the abnormal characteristics of ACK traffic. Therefore, more experiments are needed to present the abnormal network traffic caused by LDoS attacks. At the same time, in order to improve the detection accuracy, more detection methods are needed to collaboratively detect and analyze LDoS attacks.



---

*Source: 496376-2014-08-03.xml*