<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>A Novel Approach for DDoS Attack Detection Using Big Data and Machine Learning</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Akshat Gaurav</string-name>
          <email>akshat.gaurav@ronininstitute.org</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Zhili Zhou</string-name>
          <email>zhou1_zhili@163.com</email>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Kwok Tai Chui</string-name>
          <email>jktchui@ouhk.edu.hk</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Francesco COLACE</string-name>
          <email>fcolace@unisa.it</email>
          <xref ref-type="aff" rid="aff5">5</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Priyanka Chaurasia</string-name>
          <email>p.chaurasia@ulster.ac.uk</email>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ching-Hsien Hsu</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Computer Science and Information Engineering, Asia University, Taiwan &amp; Department of Computer Science and Information Engineering, National Chung Cheng University, Taiwan &amp; Department of Medical Research, China Medical University Hospital, China Medical University</institution>
          ,
          <country country="TW">Taiwan</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Hong Kong Metropolitan University (HKMU)</institution>
          ,
          <country country="HK">Hong Kong</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Ronin Institute</institution>
          ,
          <addr-line>Montclair, New Jersey 07043, U.S</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>School Engineering Research Center of Digital Forensics, Ministry of Education, School of Computer and Software, Nanjing University of Information Science and Technology</institution>
          ,
          <addr-line>Nanjing 210044</addr-line>
          ,
          <country country="CN">China</country>
        </aff>
        <aff id="aff4">
          <label>4</label>
          <institution>Ulster University</institution>
          ,
          <addr-line>Magee campus, Londonderry</addr-line>
          ,
          <country country="UK">UK</country>
        </aff>
        <aff id="aff5">
          <label>5</label>
          <institution>University of Salerno</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Due to the developemt in the latest digital technologies, internet service use has surged recently. In order for these online businesses to succeed, they must be able to consistently and efectively supply their services. As a result of the DDoS assault, online sources are impacted in terms of both their availability and their computational capacity. DDoS attacks are useful for cyber-attackers since there is no efective techniqque for the identification of them. In recent years, researchers have been experimenting with dufernet latest techniques like machine learning (ML) approaches to see whether they can build efective methods for detecting DDoS assaults.Machine learning and big data are used to identify DDoS assaults in this research paper.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;DDoS attack</kwd>
        <kwd>Machine learning</kwd>
        <kwd>Big data</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        When a huge number of malicious computers assault the victim’s resources in a coordinated
fashion, it is known as a DDoS attack. Assault programmes such as Slowloris, GoldenEye, and
others make it easy for anybody to launch a DDoS attack on a target and wreak havoc on
their resources or make their bandwidth inaccessible to others [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. DDoS assaults come in a
variety of forms, making it dificult for the detection filter to keep up [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. When an attacker
sends a high number of SYN packets to the victim’s end in order to overwhelm the connection
table, this is known as TCP flooding. There are also UDP and HTTP flooding attacks that use
the victim’s bandwidth and prevent legitimate users from accessing it. Detection of DDoS
attacks may be broken down into three categories: preventive methods, defensive methods, and
traceback methods. DDoS attacks may be mitigated using a variety of approaches, including load
balancing, honeypots, and more. In DDoS attack traceback procedures, a variety of methods
are used to locate the assault’s origin. DDoS defensive techniques must be developed that
not only identify the specific DDoS assault, but also take suitable countermeasures against
it. It is possible to distinguish a DDoS assault from flash crowd trafic by using a decent
DDoS protection strategy. As many legal people try to access an online resource, this trafic is
known as flash crowd. Because of this, an efective DDoS detection algorithm must be able to
distinguish the flash crowd from the DDoS assault trafic and not discard it as part of the attack
trafic. There are several machine learning algorithms being used to identify DDoS assaults
and flash crowds because of recent advancements in the area of machine learning. With the
use of machine learning algorithms and attack patterns, it’s feasible to train security filters to
block new forms of threats. The supervised learning approach and the unsupervised learning
approach are two of the strategies available in machine learning for detecting aberrant trafic.
Unsupervised learning, on the other hand, relies on labelled data sets that are dificult to get,
whereas supervised learning relies on data sets that are labelled.
      </p>
      <p>In this paper, we proposed a big data-based method for the detection of DDoS attacks and
lfash crowds. The contributions of this paper are as follows:
• We used the dataset generated by OMNET++ for training and testing the machine learning
model.
• Our processing performance has been boosted thanks to Apache Spark, which we utilise
for data processing.</p>
      <p>• The performance of our suggested model is evaluated using standard statical metrics.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Related Work</title>
      <p>
        An adaptive density-based clustering technique (ADBSCAN) developed by Li et al. [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] is based
on closest neighbour graphs. KNN density estimation and distributional assumptions are used
in the proposed method to quickly identify various density clusters. Samples in dense areas
are found using the KNN estimator, and then the statistical technique is used to determine the
clusters’ densities, K-means clustering was developed by Gu et al. [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] for the identification of
DDoS attacks. Handloop-based feature selection is utilised to detect DDoS assault characteristics
properly in the proposed methodology. In K-means clustering, these characteristics are utilised
to distinguish regular trafic from malicious trafic.
      </p>
      <p>
        Zombies are counted using an artificial neural network (ANN) in the proposed technique by
the authors in [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. Low frequency attacks can be accurately predicted with this strategy since
it doesn’t rely on attack frequency. NS-2, a network simulator for Linux, is used to produce
the training data for feed forward neural networks. MSE is used to compare the estimate
performance of various feed forward networks. The network’s ability to anticipate the number
of zombies engaged in a DDoS assault with extremely low test error is encouraging.
      </p>
      <p>
        As part of the proposed method in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] for DDoS detection, the authors ofer a unique
architecture that monitors trafic changes inside the ISP Domain and then classifies the network flows
that convey attack trafic. Detection of DDoS assaults relies on two statistical metrics: volume
and flow. The precision of threshold value choices has a significant impact on the efectiveness
of a system for detecting and characterising anomalies. When threshold values are set too high
or too low, a great many tests will return erroneous results. Six-Sigma and variable tolerance
factor approaches are employed in the proposed strategy in order to properly and dynamically
establish threshold values for a wide range of statistical measures. It is used as a testbed to
evaluate the eficacy of the suggested technique on a Linux platform. There are several assault
scenarios, each with a varied quantity and attack strength of zombie machines. Authors in
[
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] represents the imapct of DDoS attack on IoT devices. Also, in [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] author proposed captch
method for the identification of DDoS attack.
      </p>
      <p>
        It is dificult to discern legal trafic from attack trafic during DDoS attack. Wireless networks
are especially vulnerable to a DDoS assault because of the nature of ad hoc networks. Rather
of allowing the DDoS attack to occur and then taking the required actions to deal with it, it
is preferable to prevent it from happening in the first place. The author in [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] address how
MANET might be damaged by DDoS assaults in their article. Besides this, an unique DDoS
mitigation strategy is suggested for MANETs.
      </p>
      <p>
        DDoS attacks may be detected using Gu et al [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] semi-supervised K-means clustering.
DDoS attacks may be identified using three primary elements retrieved from the datasets in
the suggested technique. The k-means clustering procedure is accurate because the extracted
features are utilised to label samples in the data sets. Using a semi-supervised technique, the
clustering algorithm has a high convergence rate.
      </p>
      <p>
        Authors in [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] proposed DDoS attack detction technique for healthcae services. Also, the
authors propsoed DDoS detection techniue in cloud environment[
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] and VANET envieonment
[
        <xref ref-type="bibr" rid="ref13">13</xref>
        ].
      </p>
      <p>
        Using density-based semi-supervised clustering, Gertrudes et al [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ] suggested a new
approach. There are many semi-supervised clustering techniques that are used in the suggested
method. The author depicts the link between graph-based techniques and density-based
approaches as well. No re-computation and ordered-dependencies are present in the proposed
framework compared to prior semi-supervised techniques.
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Proposed approach</title>
      <p>This section of the article discusses the solution we ofer. We’ve put the plan into action on
the routers. For each time period ∇ t, routers extract the incoming trafic characteristics.
Afterwards, the obtained attributes are fed into the aforementioned machine learning model.
This classification is made by the machine learning algorithms as soon as a packet is found to
be malicious. Finally, all malicious packets are discarded by the router.
3.1. Preprocessing phase
For our suggested technique, the first step in developing it is to pick a training data set. Few
datasets are available for testing, however, since datasets comprise personal and secret
information about users, and revealing it publicly would violate privacy restrictions. For the dataset
creation, we utilised the ONMET++ programme.</p>
      <p>With Apache Spark, we can preprocess large datasets quickly and easily. Apache Spark is a
memory-based distributed computing system that uses RDDs as its primary data structure. The
RDD is a distributed, immutable storage system that may be built in several stages. An RDD is
divided into various sections. The number of the divisions determines the granularity of RDD
calculation, with each RDD partition being computed in a separate job, as shown Figure 2.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Result and Discussion</title>
      <p>A 64-bit Intel processor with 16GB of RAM and Keras and TensorFlow are used to reproduce
the machine learning model. A discrete event simulator, OMNET++, is used to simulate DDoS
attacks as well as normal trafic for our proposed technique. The entropy value is calculated for
the chosen time period by running OMNET++ for 100 seconds. Machine learning techniques
are explained in detail below after preprocessing the entropy values provided by OMNET++. As
many null values are included in the dataset, they are omitted throughout the data preparation
process. Last but not least, the data set is divided into two sections: training and testing, so that
the proposed approach can be thoroughly examined. We used traditional statistical methods to
assess the performance of our machine learning model. Figure 3, represents the performence of
our proposed approach.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusions and future work</title>
      <p>In this research, we ofer a strategy based on big data and machine learning for detecting DDoS
attacks. In the suggested solution, we employed OMNET++ to create trafic data, followed
by Apache Spark for data preparation, and ultimately, machine learning techniques to detect
malicious packets. We use statistical techniques to determine the accuracy of our suggested
methodology, and the findings indicate that our proposed strategy easily identifies and separates
DDoS attacks from flash crowd trafic.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>A.</given-names>
            <surname>Srivastava</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Gupta</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Tyagi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Sharma</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Mishra</surname>
          </string-name>
          ,
          <article-title>A recent survey on ddos attacks and defense mechanisms</article-title>
          ,
          <source>in: International Conference on Parallel Distributed Computing Technologies and Applications</source>
          , Springer,
          <year>2011</year>
          , pp.
          <fpage>570</fpage>
          -
          <lpage>580</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>S.</given-names>
            <surname>Tripathi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Gupta</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Almomani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Mishra</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Veluru</surname>
          </string-name>
          ,
          <article-title>Hadoop based defense solution to handle distributed denial of service (ddos) attacks (</article-title>
          <year>2013</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>H.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Gan</surname>
          </string-name>
          ,
          <article-title>A novel density-based clustering algorithm using nearest neighbor graph</article-title>
          ,
          <source>Pattern Recognition</source>
          <volume>102</volume>
          (
          <year>2020</year>
          )
          <fpage>107206</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Gu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Guo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <article-title>Semi-supervised k-means ddos detection method using hybrid feature selection algorithm</article-title>
          ,
          <source>IEEE Access 7</source>
          (
          <year>2019</year>
          )
          <fpage>64351</fpage>
          -
          <lpage>64365</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>B. B.</given-names>
            <surname>Gupta</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. C.</given-names>
            <surname>Joshi</surname>
          </string-name>
          , M. Misra,
          <article-title>Ann based scheme to predict number of zombies in a ddos attack</article-title>
          .,
          <source>Int. J. Netw. Secur</source>
          .
          <volume>14</volume>
          (
          <year>2012</year>
          )
          <fpage>61</fpage>
          -
          <lpage>70</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>B. B.</given-names>
            <surname>Gupta</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Misra</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. C.</given-names>
            <surname>Joshi</surname>
          </string-name>
          ,
          <article-title>An isp level solution to combat ddos attacks using combined statistical based approach</article-title>
          ,
          <source>arXiv preprint arXiv:1203.2400</source>
          (
          <year>2012</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>B. B. G. T A</surname>
          </string-name>
          .
          <article-title>Dahiya, How iot is making ddos attacks more dangerous? (</article-title>
          <year>2021</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>D.</given-names>
            <surname>Singh</surname>
          </string-name>
          ,
          <article-title>Captcha improvement: Security from ddos attack (</article-title>
          <year>2021</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>M.</given-names>
            <surname>Chhabra</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Gupta</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Almomani</surname>
          </string-name>
          ,
          <article-title>A novel solution to handle ddos attack in manet (</article-title>
          <year>2013</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>M. E.</given-names>
            <surname>Ahmed</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Ullah</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Kim</surname>
          </string-name>
          ,
          <article-title>Statistical application fingerprinting for ddos attack mitigation</article-title>
          ,
          <source>IEEE Transactions on Information Forensics and Security</source>
          <volume>14</volume>
          (
          <year>2018</year>
          )
          <fpage>1471</fpage>
          -
          <lpage>1484</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Zhou</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Gaurav</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Gupta</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Hamdi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Nedjah</surname>
          </string-name>
          ,
          <article-title>A statistical approach to secure health care services from ddos attacks during covid-19 pandemic</article-title>
          ,
          <source>Neural Computing and Applications</source>
          (
          <year>2021</year>
          )
          <fpage>1</fpage>
          -
          <lpage>14</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>A.</given-names>
            <surname>Gaurav</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Gupta</surname>
          </string-name>
          ,
          <string-name>
            <surname>C.-H. Hsu</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Peraković</surname>
            ,
            <given-names>F. J. G. PEÑALVO</given-names>
          </string-name>
          ,
          <article-title>Filtering of distributed denial of services (ddos) attacks in cloud computing environment</article-title>
          ,
          <source>in: 2021 IEEE International Conference on Communications Workshops (ICC Workshops)</source>
          , IEEE,
          <year>2021</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>6</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>A.</given-names>
            <surname>Gaurav</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Gupta</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F. J. G.</given-names>
            <surname>Peñalvo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Nedjah</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Psannis</surname>
          </string-name>
          ,
          <article-title>Ddos attack detection in vehicular ad-hoc network (vanet) for 5g networks, in: Security and Privacy Preserving for IoT and</article-title>
          5G Networks, Springer,
          <year>2022</year>
          , pp.
          <fpage>263</fpage>
          -
          <lpage>278</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>J. C.</given-names>
            <surname>Gertrudes</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Zimek</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Sander</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. J.</given-names>
            <surname>Campello</surname>
          </string-name>
          ,
          <article-title>A unified framework of density-based clustering for semi-supervised classification</article-title>
          ,
          <source>in: Proceedings of the 30th International Conference on Scientific and Statistical Database Management</source>
          ,
          <year>2018</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>12</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>