Anomalous Traffic Detection and Self-Similarity Analysis in the Environment of ATMSim †

Internet utilisation has steadily increased, predominantly due to the rapid recent development of information and communication networks and the widespread distribution of smartphones. As a result of this increase in Internet consumption, various types of services, including web services, social networking services (SNS), Internet banking, and remote processing systems have been created. These services have significantly enhanced global quality of life. However, as a negative side-effect of this rapid development, serious information security problems have also surfaced, which has led to serious to Internet privacy invasions and network attacks. In an attempt to contribute to the process of addressing these problems, this paper proposes a process to detect anomalous traffic using self-similarity analysis in the Anomaly Teletraffic detection Measurement analysis Simulator (ATMSim) environment as a research method. Simulations were performed to measure normal and anomalous traffic. First, normal traffic for each attack, including the Address Resolution Protocol (ARP) and distributed denial-of-service (DDoS) was measured for 48 h over 10 iterations. Hadoop was used to facilitate processing of the large amount of collected data, after which MapReduce was utilised after storing the data in the Hadoop Distributed File System (HDFS). A new platform on Hadoop, the detection system ATMSim, was used to identify anomalous traffic after which a comparative analysis of the normal and anomalous traffic was performed through a self-similarity analysis. There were four categories of collected traffic that were divided according to the attack methods used: normal local area network (LAN) traffic, DDoS attack, and ARP spoofing, as well as DDoS and ARP attack. ATMSim, the anomaly traffic detection system, was used to determine if real attacks could be identified effectively. To achieve this, the ATMSim was used in simulations for each scenario to test its ability to distinguish between normal and anomalous traffic. The graphic and quantitative analyses in this study, based on the self-similarity estimation for the four different traffic types, showed a burstiness phenomenon when anomalous traffic occurred and self-similarity values were high. This differed significantly from the results obtained when normal traffic, such as LAN traffic, occurred. In further studies, this anomaly detection approach can be utilised with biologically inspired techniques that can predict behaviour, such as the artificial neural network (ANN) or fuzzy approach.


Introduction
In recent years, Internet utilisation has increased rapidly.This is predominantly due to the development of information and communication networks and the widespread distribution of smartphones.Statistics Korea shows that Internet accessibility in 2000 was 44.7%, increasing to 78.4% in 2012.This increase in utilisation has spread across various sectors including government, finance, industry, medicine, and private homes [1].As a result of these useful developments, the Internet has become an invaluable asset to living in modern society.
As the Internet expanded, various services were developed, including web services, social networking services (SNS), Internet banking, and remote processing systems.These developments have significantly enhanced global quality of life.Unfortunately, alongside these positive developments, serious information security problems have also increased and this has led to Internet privacy invasions and various types of network attacks [1,2].
Network attack methods have been increasing in frequency and severity.These attacks can largely be categorised into three types: sniffing, spoofing, and denial-of-service (DoS).Among these three main types of attacks, distributed DoS (DDoS) and spoofing are representative attacks with the highest frequency and impact on contemporary networks [1,3,4].The attacker's objective usually determines the choice of attack method, but the most damaging attack method used by malicious users is a combination of attacks.First, the system is paralysed through DDoS attack after which a backdoor is installed through spoofing to enable the attacker to extract internal data through secondary attacks [5,6].
Systems typically incorporate protective elements in an attempt to block these illegal Internet attacks.These protective elements include firewalls, intrusion detection systems (IDSs), and intrusion prevention systems (IPSs) [5,7].Firewalls are utilized to prevent external invasions as much as possible.
Unfortunately, not all intrusions can be blocked by firewalls.Approximately one-third of attacks are blocked, but the remaining attacks are able to successfully breach firewalls [5,6].Consequently, the importance of IPS continues to increase in an attempt to identify attacks through the network after primary prevention methods have failed [8].However, the existing IPS is limited with regard to processing a diverse range and vast amounts of data.
This paper presents a possible solution to these problems through an IDS model, the Anomaly Teletraffic detection Measurement analysis Simulator (ATMSim), that is able to process diverse and vast amounts of data effectively [9][10][11].ATMSim can be described as a data analysis system using Hadoop-based [11], real-time network traffic monitoring and self-similarity [12,13].
This paper is organised as follows.Section 2 describes the concepts of stochastic self-similar processes as well as ARP spoofing and DDoS, and Section 3 presents ATMSim architecture and how the simulator works.Section 4 describes the scenario design and simulation modelling of this study, and Section 5 provides details of the simulation and an analysis of the results.Finally, Section 6 contains the concluding remarks of this paper.

Stochastic Self-Similar Processes
This section briefly goes over the mathematical definition of self-similarity, which can be largely divided into deterministic self-similarity and stochastic self-similarity.The former is also known as fractal self-similarity, and includes self-similarity and circulation.The stochastic self-similarity related to this study refers to the auto-correlation function (ACF) property of the new process created by varying the time unit scale, such as seconds, minutes, hours, days, and months, equivalent to the original process from a stochastic perspective [14,15].
Self-similar long-range dependent stochastic processes occur in many natural and man-made systems [16,17].In particular, since such processes were discovered on the Internet and other multimedia telecommunication networks two decades ago [14,18], they have become the subject of numerous research investigations with respect to their nature and consequences.
Theoretically, one can distinguish two types of stochastic self-similarity.A continuous-time stochastic process Y t = {Y t 1 , Y t 2 , . ..} is strictly self-similar, with a Hurst parameter, H, 0.5 < H < 1, if Y ct and c H Y t (the rescaled process with time scale ct) have an identical finite-dimensional distribution for any stretching factor c, c > 0 [15,19,20].This means that, for any sequence of time points t 1 , t 2 . . .
where d = indicates equivalence with regard to distribution.For this reason, this self-similarity, which can be described as "self-similar in a narrow sense", pertains to probability distribution.
When one restricts analysis of stochastic processes to only their initial two moments or their means, variances, and co-variances, weak self-similarity of stochastic processes (or "self-similarity in a broad sense") becomes relevant.For this reason, it is also described as second-order self-similarity.To give an example, let a sequence {X 1 , X 2 , . ..} be a time-stationary stochastic process, defined at discrete time intervals denote the mean, variance, and autocorrelation coefficient of lag k, respectively.When grouping this sequence of random variables into batches of size m, m ≥ 1, the aggregated process of . .} can be defined as a self-similar time-stationary process that is weak, with 0.5 < H < 1, then and where ρ is the autocorrelation coefficient of lag k of the aggregated process X (m) .Equation (3) results in the conclusion that the original process as well as its aggregated version correlate identically with regard to structure.Furthermore, it can also be proven that in any weakly self-similar process with 0.5 < H < 1, as k → ∞, and See for example [15].Thus, the autocorrelation function decays very slowly (hyperbolically) with k.Because of these properties, these processes are also described as long-range dependent, or strongly correlated.
The self-similarity parameter (also referred to as the Hurst parameter) is the simplest numerical characteristic of stochastic self-similarity and long-range dependence.The purpose of determining the Hurst parameter of stochastic self-similar processes is to analyse the self-similarity property, which, when the Hurst parameter value is at its closest value to 1, shows the highest correlation.
Sequences of real local area network (LAN) traffic as well as anomalous traffic, R/S-statistic plot, and variance-time plot to identify normal and anomalous traffic are the methods used to determine graphic analysis and self-similarity estimation values.The authors of [17,21] provide more detail on self-similarity and relevant estimation methods.

ARP Spoofing
The Address Resolution Protocol (ARP) is used to relate the IP address in the local network to the physical address and to test for IP address (unnecessary ARP process) redundancy.
The Layer2 class communication process between Host A and Host B is as follows:  As seen here, ARP spoofing takes advantage of the ARP protocol vulnerability to modify the ARP cache table data, diverting traffic to the attacker computer in a man-in-the-middle (MITM) attack form [22,23]. Figure 2 shows the ARP spoofing attack process.
(1) IP address .18ARP spoofing infection (2) IP address .10ARP spoofing infection (3) All communications between the two nodes(.10,.18)are exposed to the hacker As observed in Figure 2, when infected by ARP spoofing, not only is data leaked to the hacker, but the key point of an ARP spoofing attack is that the infection is unknown.

Distributed Denial-of-Service (DDoS)
There are two forms of denial of service (DoS) attacks: attack from the inside and from the outside.Attacks from the inside are possible with a simple C code or a few lines of script, but the problem with this attack is that the root account has to be accessible.Since most intruders who attack systems are very much interested in first acquiring root access, attacks from the inside are usually the result of mistakes by users rather than being intentional.Unlike attacks from the inside, external attacks are carried out with the intention of attacking the system.Therefore, external attacks are more complex and require a higher level skill.External attack approaches can be largely categorised in the following manner [12,13,24]:

•
Application level: They prevent the normal execution of application programs like sendmail, talkd, inetd, and httpd to paralyse the network function of the system.

•
Packet level: Can be an attack method at a lower level than the application program level, for example, through packets roaming in the Transmission Control Protocol/Internet Protocol (TCP/IP), or the Ethernet layer, randomly manipulated to paralyse the network function of the target system.A representative example is an SYN flooding attack.

•
Network traffic increase: Network traffic is increased to a limited bandwidth to paralyse the network.DoS attacks are approached in the above manner and have the following attack objectives: • Destructive attack: Damage of disks, data, or systems • Exhaustion of system resources: Excessive loads on CPU, memory, and disk usage • Exhaustion of network resources: Depletion of the network bandwidth with garbage data In accordance with the above objectives of DoS attacks, these attacks seek to hinder the normal operation of the system and a representative attack is DDoS.DDoS attacks utilise an automated tool from distributed locations simultaneously [25,26].The tools used for DDoS attacks have different names and structures but the basic structure is the same, as shown in Figure 3.

•
Attacker: The computer of the hacker leading the attack • Master: The system that directly receives commands from the attacker and manages the numerous agents • Handler: The program that performs the above tasks on the program master system • Agent: The system that directly attacks the attack target • Demon program: The program that performs the above tasks on the agent system When the attacker directly commands the master in the middle, the low-ranking agent directly attacks the target.The detailed attack scenario of DDoS is as follows: (1) Sniffing or buffer overflow are employed in populous and large-bandwidth networks that cannot be managed in detail to acquire root access.(2) The network is scanned in sections to determine attack targets and then servers that provide vulnerable services in remote locations are identified.(3) After identifying the list of vulnerable systems, an exploit list for actual attack is constructed.(4) The exploit list is compiled and installed on the system with access.
(5) Attack is initiated with the installed exploit.
Since DDoS attack uses an automated tool to move intelligently, as designed by the programming (including irregular variation of the attack time and variable movement of the agent), tracking the attack is very difficult and the scale of damage is significant.Various studies are being pursued to find effective methods to detect DDoS attacks including a DNS sinkhole, network IDS, and SDN.The DDoS infects a zombie PC through the command and control (C & C) server and commences the attack with bots.The zombie PC is constantly communicating with the hacker's PC (C & C server).However, if the relationship between the hacker and the zombie PC is disconnected, the hacker will be unable to control the zombie PC and this prevention method is a DNS sinkhole [27].
Figure 4 shows the already-infected zombie PC requesting the domain and the DNS server responding to the DNS right away with no inspection.The zombie PC receives the domain reply and is connected to the hacker PC to receive commands.However, if there is a sinkhole server, as shown in Figure 4, the sinkhole server is passed through before the request domain and the malicious DNS list previously stored in the sinkhole server is received so that when the zombie PC makes an enquiry to the C & C server, the C & C server IP is converted to the sinkhole IP and damage from the hacker command can be prevented through an IP bypass.However, although the malicious act of the hacker can be blocked using the sinkhole server, there is the disadvantage that already infected zombie PCs cannot be treated.Such zombie PCs are vulnerable with regard to security and are susceptible to other attacks.Another DDoS prevention method is the network IDS.Methods include one that detects intrusions based on intrusion pattern data, a method that detects abnormal behaviour detracting from regular behaviour, and a method that simultaneously detects patterns and abnormal behaviour.IDSs can be divided into misuse detection, anomaly detection, and hybrid detection methods.The following are the characteristics, advantages, and disadvantages of each type of IDS.

•
Misuse detection: Specific signals are extracted from known attack patterns for intrusion detection, and hence the rate of false positives is low.However, because known attack patterns are used, the rate of false negatives is high for attacks of unknown attack patterns.

•
Anomaly detection: A normal range is established and a deviation from that range is determined to be an intrusion.In contrast to the misuse detection method, anomaly detection is able to detect unknown attacks so this method has a low rate of false negatives, but there is the disadvantage that the rate of false positives is high, as attacks within the established normal range are considered normal.Generally, anomaly detection is performed based on stochastic approaches.A variety of techniques is available in addition to the stochastic method including integration of the feature extraction and abnormal behaviour measurement methods [28][29][30][31].

•
Hybrid detection: This is a network intrusion detection method that combines the advantages of the misuse detection and anomaly detection methods.The pattern storage method of the misuse detection method is used to collect the pattern data, which is then utilised to determine a range that the system uses to detect abnormal phenomena using the anomaly detection method.
The prevention method using an automated IDS by applying the network detection method experiences the phenomenon where the network service is disconnected when the normal bandwidth is exceeded, even for normal traffic, and the phenomenon where the bandwidth is exhausted or service is disconnected because of a time delay after the attack has taken place.In order to resolve these issues, research is being conducted by implementing the buffer concept.The number of anomalous traffic occurrences during a set time interval is stored in the buffer and then expressed as a slope so that detection, prediction, and corresponding prevention are made possible according to the slope.However, this method is limited in response to a specific port and has the disadvantage of not being able to actively respond to multilateral DDoS attacks, and therefore this method requires further improvements.
The following section details the research pursued for effective detection methods of ARP spoofing attacks that can sniff the data of target users by taking advantage of the vulnerabilities of ARP communications, unlike DDoS attacks that create numerous packets.The biggest vulnerability of ARP communications is reliability.The IP address of the desired host is already known and the communication is a static protocol, so MAC addresses are exchanged with no verification process.Thus, it is inevitably vulnerable in terms of security.Although there is the option of modifying the ARP protocol or employing costly equipment to prevent ARP spoofing attacks, it is realistically difficult to replace expensive equipment, and therefore this method is not practical.
To overcome this disadvantage, various studies are conducted and solutions are presented.Recent studies have focused on decreased network speed, an attack detection method according to the ARP packet reception, regular inspection of the ARP cache table, and ARP spoofing detection identification through routing trace.The ARP cache table real-time inspection and ARP attack detection using routing trace are able to accurately detect ARP spoofing attacks.They overcome the complexity of many proposed algorithms by using the principle of increasing the hop number each time the router is passed through, and no load is experienced by the system and network.However, these methods do not completely resolve all the fundamental security vulnerabilities of the ARP protocol and hence they are still susceptible to new attack methods.
In this paper, ATMSim, which can collect and analyse data for various protocols (unlike that of conventional detection systems for a specific protocol), is used in conjunction with Hadoop, which means that a large amount of data can be processed.

ATMSim Architecture and Graphic User Interface
The Anomaly Teletraffic detection Measurement analysis Simulator, abbreviated as ATMSim, is a simulator of anomalous traffic analysis [11].Java is the programming language that was used for the development environment.This tool is intended for use on a 64-bit Windows 7 operating system as well as Linux.ATMSim can be described as an intrusion detection system which utilizes the high-capacity storage and processing system of Hadoop combined with the self-similarity concept.This combination of Hadoop and the self-similarity concept enables the tool to overcome the limitations of the IDS, specifically that is able to detect only known attacks and has an inability to store various types of data for use in qualitative identification of anomalous traffic.This system was also designed for the purpose of autonomous simulation testing.This was achieved with the incorporation of an attack component to enable self-study of intrusion detection.

ATMSim Architecture
The anomalous traffic detection method of ATMSim can be largely divided into four parts: collection, storage, analysis, and graphic user interface (GUI).

•
The collector module acquires data from web page data, SNS data, and the system log (e.g., Facebook, Twitter) and distributes the data to file collection tools, data collection robots, and data aggregators.

•
The storage module is stored and managed by the file storage, and real-time analysis and filtering are performed through data storage and structure data storages.

•
The analysis and cluster of the analyser module classify the parallel and distributed data.The analyser module is responsible for the important roles of content analysis, explanation analysis, prediction analysis, natural language processing, and text mining.Also, anomaly-based teletraffic intrusion detection systems (AT-IDSs) detect anomalous traffic using the MapReduce framework.

•
Real-time statistical data is acquired in this step and the statistical analysis results are automatically provided.

•
Figure 5 shows the ATMSim system architecture.ATMSim is a simulator tool for extraction, measurement, and analysis of the abnormal incoming communications traffic from the real-time network communications traffic.ATMSim includes a network attack tool for additional functionality to create pseudorandom numbers in abnormal communications traffic for network security simulations.In order to use ATMSim, installation of the Jpcap library is necessary for packet analysis.Once the Jpcap library appropriate for the operating system is installed, ATMSim can be executed with no platform restrictions if JVM is installed as it is a Java-based program [11,32].

ATMSim Operation
ATMSim shows real-time visualizations of the detected traffic it has analysed.Please refer to the detailed system structure depicted in Figure 6 to facilitate understanding of the traffic detection method.Because ATMSim is a package that has been developed with Java, Jpcap is used to detect the packets.Furthermore, the JavaFx Library is also used to depict graphs of the real-time and total-time traffic.In the real-time graph the data of packets with source and destination addresses can be seen in graph form using JavaFx for seconds or even smaller time units.ATMSim was also designed with long-term detection analysis capability.In the total-time graph the total analysis time can be seen.

Apache Hadoop YARN
Hadoop is a Java-based open source framework that allows for distributed processing of large data sets.Hadoop is the result of Doug Cutting in 2005 implementing the Google File System (GFS) and MapReduce as published in the paper by Google Labs.Hadoop stores data in the Hadoop Distributed File System (HDFS) and uses the distributed processing system MapReduce to process the data.For Hadoop 1.X, the Job Tracker, the key to the Map Reduce (MR) processing, manages all the resources the cluster.Unfortunately, it has the problem of slow processing because both management and monitoring are conducted until the successful completion of all the numerous jobs being performed.In Hadoop 2.X, the key element is employing the Apache Hadoop YARN resource management platform to focus on the resource allocation and monitoring necessary for each application of the Hadoop cluster so that various applications could share the Hadoop cluster resources.
For the Hadoop storage system HDFS, the storage can be constructed using low-specification servers.Unlike the conventional high capacity file systems, HDFS allows for tens of hundreds of web server class servers to be used as single storage.Here, the data stored in the HDFS are physically stored in the local disks of the distributed server, but controls like file reading and writing are processed using the APIs provided by HDFS.The structure of HDFS is shown in Figure 7. HDFS is composed of a master-slave architecture.Hence, there is one NameNode server that is the master and multiple DataNode servers that are the slaves.The NameNode manages all the metadata of the HDFS and allows the client to access all the files stored in the HDFS.When storing in HDFS, the data divided into blocks are distributed in multiple DataNodes.
For Hadoop 2.X YARN, the MapReduce (MR) structure was newly designed to supplement its disadvantages, resulting in a different structure.MR of Hadoop 2.X is called YARN or MRv2 and the main functions of the job tracker, resource management and job life-cycle management, are separated into new components [27].The Resource Management component is responsible for the management and allocation of resources for the entire cluster and the resources are reclaimed when tasks are completed.The new component Application Master is responsible for the task scheduling and modifications for each application.Applications are distributed and executed through multiple nodes and a node manager exists for each node.Figure 8 shows the Hadoop YARN structure, which is the new MapReduce.

The AT-IDS on Hadoop
An intrusion detection system (IDS) is one security method that aims to strengthen security through overall monitoring of data and internal systems.Analysis approach methods can be categorised into signature-based teletraffic intrusion detection systems (ST-IDSs) and anomaly-based teletraffic intrusion detection systems (AT-IDSs).ST-IDSs require previous attacks to be stored in a database beforehand, with the result that the method is not effective against unknown or new attacks.On the other hand, AT-IDSs look for cases where the deviation between the occurred event and normal behaviour is greater than the defined threshold to detect an attack.This can effectively detect unknown or new attacks.Therefore, the AT-IDS system, which can effectively detect anomaly traffic, was applied.
AT-IDSs can be categorised according to the approach method: stochastic-based, knowledge-based, and machine learning-based methods.Table 1 shows the advantages and disadvantages of these methods.The disadvantages of AT-IDSs, as shown in Table 1, lead to numerous difficulties in detecting normal and anomalous traffic, and largely there are three problems:

•
Storage: A large amount of data cannot be stored in the current system.

•
Speed: When considering a large amount of data and the processing speed of the computer, the processing speeds of at least a supercomputer are necessary.

•
Variety: A diverse range of data including images, text, and video need to be processable.Taking into consideration the above three problems, this study proposes a new platform detection system applying Hadoop to the AT-IDS, overcoming the problems through the high-capacity data storage of the Hadoop HDFS and the processing system MR.

Scenario Design and Simulation Modeling
Each scenario of this study was designed to reproduce an external attacker's intrusion on an internal server with ATMSim installed at the Korean Bible University.The network attacks were DDoS and spoofing, and the normal and anomalous traffic was collected.Taking into consideration that the attack occurs at an unspecified time, the traffic collection time for each scenario was limited to two days.

Scenario Design
The aim of this study was to compare and analyse the normal and anomalous traffic using self-similarity.For this, a total of four scenarios was considered according to the attack method and the tool was used or not.The tool was added to the scenarios in order to observe how similar the attack provided through ATMSim is compared to a real attack.All four scenarios were limited to two days for data collection and the collection environment was designed based on the incoming traffic from an external LAN connection to the Korean Bible University.The four scenarios considered in this study were normal traffic, DDoS attack, ARP spoofing, and DDoS and ARP attack.
For the normal LAN traffic scenario, the incoming traffic from the external LAN connection to the Korean Bible University internal LAN was assumed to be normal traffic and ATMSim was used for detection, analysis, and determination of the self-similarity estimation value for the normal traffic.For the DDoS attack scenario, the self-similarity estimation value was determined by collecting the User Datagram Protocol (UDP) flooding attack traffic by an external attacker to the Korean Bible University's internal server.Although it was predicted that the traffic amount would be proportional to the number of agents, it may be similar due to the amount of loss and drop packets.
In the case of the ARP spoofing scenario, the self-similarity estimation value was calculated by collecting the ARP packet that modified the server Mac table after being transmitted to the server.Visual detection of ARP spoofing is possible but it was predicted that the self-similarity estimation value would be similar to that of the normal traffic case.
For the DDoS and ARP spoofing scenario, the self-similarity estimation value was determined by sending the ARP spoofing packet during a DDoS (UDP flooding) attack.It is easily conceived that detecting the ARP spoofing packet during DDoS may not be possible as the server and system would go down due to the DDoS.It was predicted that detection would be possible for non-destructive attacks since the packets entering through the network interface card (NIC) can be collected using Jpcap and then transferred to the ATMSim.

Simulation Modeling
The simulation implemation tool utilized for this study was the ATMSim for the DDoS aspect [24][25][26].NetBotAttacker 2.3 was used to send commands to the agent (in this case a zombie PC).The reason for using a zombie PC was that the master-slave structural characteristic is ideal for recreating this type of scenario.NetBot Attacker 2.3 was used from the external attacker PC to scan the zombie PC.After that, four zombie PCs were also selected at random, to complete the scenario.
With regard to the Address Resolution Protocol (ARP) spoofing attack scenario [22,23,33], the attacker installed in the ATMSim first sent a broadcasting packet.Then, it identified the IP and Mac address mapping values after which it modified the attacker Mac address of the Korean Bible University internal server MAC table where ATMSim was installed using an ARP spoofing attack.This aspect is one of ATMSim's NetworkAttack functionalities.
The method to simulate the DDoS and ARP spoofing attacks scenario first involved the use of the DDoS attack on the internal server where the ATMSim was installed.This is one of the NetworkAttack functionalities of the ATMSim.This was followed by the simultaneous sending of the ARP spoofing packet for detection.Refer to Figures 9-11 to see the design diagram relevant to these scenarios.

Simulation and Result Analysis
This study involved four designed scenarios.A simulation was performed for each scenario and each simulation was conducted for 48 h.The Transmission Control Protocol (TCP) and UDP were commonly included in order to evaluate the detection results of the ATMSim system for each scenario.Furthermore, ARP was included for scenarios in which it was required for comparative purposes, which were set by the packet number.
The normal LAN traffic scenario was conducted first.The Korean Bible University server was used and the normal traffic from the external LAN connection with ATMSim installed was detected.The result of this scenario can be seen in Figure 12a.
The traffic for this scenario was measured for the period from 5-7 September 2015.The UDP packet numbers in log scale were 2.50 for the UDP packet and 0.50 for the TCP packet.The self-similarity estimation values were 0.5970 from the R/S-statistic estimation method, and 0.6045 from the variance-time estimation method.Figures 13a and 14a depict this aspect of the simulation.The next phase was the DDoS attack scenario which can be seen in Figure 12b.Traffic was measured for the period 8-10 September 2015.The first attack occurred on 8 September, with a 100-thread UDP flooding packet size(log) of 5.0.The second attack occurred on 9 September, with a changed 20-thread UDP flooding packet size of around 4.9.There was no significant difference between the two attacks.The third attack differed from the first two attacks in that it was started by the ATMSim autonomously on 9 September at 11:50 a.m.The UDP flooding packet size value was between 4.7 and 4.8.One zombie PC was involved.The fourth attack, similar to the third, was also started by the ATMSim autonomously on 10 September.In this case, the UDP flooding value was between 5.1 and 5.2 and four zombie PCs were involved.The average packet number for the DDoS attack was measured as 5.0 throughout the attack.The autonomous attack performance of the ATMSim was observed to be in effect equal to the attack tool.With regard to the self-similarity estimation values of the DDoS scenario, the R/S-statistic estimation method was determined to be 0.7737, and the value obtained from the variance-time estimation method was 0.8342.Refer to Figures 13b and 14b in this regard.
Figure 15a depicts the results of the ARP spoofing scenario that included the ARP packet to make detection possible.Traffic was measured from 12-14 September 2015 The first attack occurred on 13 September and the second attack occurred on 14 September.The ARP packet size of each attack was 2.0.The self-similarity estimation value for the R/S-statistic estimation was 0.8001 and the variance-time estimation value was 0.7700.Figures 16a and 17a show that the difference between the traffic in this simulation and normal traffic was significant.For the final scenario four DDoS attacks were made and alternated with ARP spoofing with a time difference.Figure 15b shows the results of this final scenario.Traffic was measured for the period from 14 September 2015 to 16 September 2016.The first attack occurred on 14 September and involved only a UDP flooding attack.The second attack involved UDP flooding and ARP spoofing simultaneously and occurred on 15 September.In this scenario, the server went down.Even so, the ARP packet measurement was successful and the rest of the scenario progressed as it did before the server went down.The UDP flooding packet size value was 5.0 and the ARP spoofing packet size value was 2.0.These values were the in size as the results in the previous scenario.The self-similarity estimation values were obtained from the R/S-statistic estimation method.The self-similarity estimation value was 0.7664, and the value of the variance-time estimation was 0.7901.Refer to Figures 16b and 17b in this regard.

Conclusions
This paper described a possible solution in the form of a research method for the problem of detecting anomalous traffic by using the self-similarity analysis in the ATMSim environment.The ATMSim is a new platform that utilizes Hadoop.With this tool, anomalous traffic was identified and a comparative analysis of anomalous and normal traffic was performed using the process of self-similarity analysis.The methodology described in this paper involved the measurement of anomalous traffic as well as normal traffic.ARP spoofing and DDoS attacks were measured for a period of 48 h each.Four different types of traffic were analysed quantitatively using self-similarity estimation and the results showed the presence of a burstiness phenomenon when anomalous traffic occurred and the self-similarity estimation values were elevated.This is a deviation from what can be observed in normal traffic, such as LAN traffic.Future studies using this anomaly detection approach can utilize techniques of a biological nature to predict behaviour such as artificial neural networks (ANN) or the fuzzy approach [34][35][36][37].

( 1 )
Host A: Host B IP/MAC address mapping identification check in the local ARP cache (2) Host A → ARP request: Broadcasting of the Host B IP MAC address (3) Host B → ARP reply: Transfer of ARP reply including the Host B IP and MAC address to Host A (4) Host A: ARP cache update In Figure 1, when Host C interferes between Host A and Host B with malicious intent and takes on the IP address of 192.168.52.2 while disguised as the MAC address of Host C and continuously sends the ARP reply packet to Host A, Host A is unable to check for manipulation, and thus incorrect data is applied to the ARP table.

Figure 2 .
Figure 2. ARP spoofing attack.(a) IP Address .18ARP spoofing infection; (b) IP Address .10ARP spoofing infection; and (c) Communication between the two nodes (.10 and .18)was exposed to all hackers.

Figure 4 .
Figure 4. Before and after applying a DNS sinkhole.(a) Before applying a DNS sinkhole; (b) After applying a DNS sinkhole.

9 .
Simulation for collecting real local area network (LAN) traffic.

Figure 10 .
Figure 10.Simulation for collecting real LAN traffic with a DDoS attack [10].

Figure 11 .
Figure 11.Simulation for collecting real LAN traffic with an ARP spoofing attack [10].

Figure 12 .
Figure 12.Sequence of real LAN traffic and LAN traffic with DDoS attack.(a) Real LAN traffic obtained from ATMSim; (b) Real LAN traffic with DDoS attack [10].

Figure 15 .Figure 16 .
Figure 15.Sequence of real LAN traffic with ARP spoofing attack; and real LAN traffic with DDoS and ARP spoofing attacks.(a) Real LAN traffic with an ARP spoofing attack; (b) Real LAN traffic with DDoS and ARP spoofing attacks [10].

Table 1 .
Advantages and disadvantages of anomaly-based teletraffic intrusion detection systems (AT-IDS techniques).