<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article">
 <front>
  <journal-meta>
   <journal-id journal-id-type="publisher-id">
    jis
   </journal-id>
   <journal-title-group>
    <journal-title>
     Journal of Information Security
    </journal-title>
   </journal-title-group>
   <issn pub-type="epub">
    2153-1234
   </issn>
   <issn publication-format="print">
    2153-1242
   </issn>
   <publisher>
    <publisher-name>
     Scientific Research Publishing
    </publisher-name>
   </publisher>
  </journal-meta>
  <article-meta>
   <article-id pub-id-type="doi">
    10.4236/jis.2024.153022
   </article-id>
   <article-id pub-id-type="publisher-id">
    jis-134853
   </article-id>
   <article-categories>
    <subj-group subj-group-type="heading">
     <subject>
      Articles
     </subject>
    </subj-group>
    <subj-group subj-group-type="Discipline-v2">
     <subject>
      Computer Science 
     </subject>
     <subject>
       Communications
     </subject>
    </subj-group>
   </article-categories>
   <title-group>
    Incident Detection Based on Differential Analysis
   </title-group>
   <contrib-group>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Mohammed Ali
      </surname>
      <given-names>
       Elseddig
      </given-names>
     </name> 
     <xref ref-type="aff" rid="aff1"> 
      <sup>1</sup>
     </xref>
    </contrib>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Mohamed
      </surname>
      <given-names>
       Mejri
      </given-names>
     </name> 
     <xref ref-type="aff" rid="aff2"> 
      <sup>2</sup>
     </xref>
    </contrib>
   </contrib-group> 
   <aff id="aff1">
    <addr-line>
     aComputer Science and Information Technology, Sudan University of Science and Technology, Khartoum, Sudan
    </addr-line> 
   </aff> 
   <aff id="aff2">
    <addr-line>
     aComputer Science Department, Laval University, Quebec, Canada
    </addr-line> 
   </aff> 
   <pub-date pub-type="epub">
    <day>
     17
    </day> 
    <month>
     05
    </month>
    <year>
     2024
    </year>
   </pub-date> 
   <volume>
    15
   </volume> 
   <issue>
    03
   </issue>
   <fpage>
    378
   </fpage>
   <lpage>
    409
   </lpage>
   <history>
    <date date-type="received">
     <day>
      29,
     </day>
     <month>
      May
     </month>
     <year>
      2024
     </year>
    </date>
    <date date-type="published">
     <day>
      26,
     </day>
     <month>
      May
     </month>
     <year>
      2024
     </year> 
    </date> 
    <date date-type="accepted">
     <day>
      26,
     </day>
     <month>
      July
     </month>
     <year>
      2024
     </year> 
    </date>
   </history>
   <permissions>
    <copyright-statement>
     © Copyright 2014 by authors and Scientific Research Publishing Inc. 
    </copyright-statement>
    <copyright-year>
     2014
    </copyright-year>
    <license>
     <license-p>
      This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/
     </license-p>
    </license>
   </permissions>
   <abstract>
    Internet services and web-based applications play pivotal roles in various sensitive domains, encompassing e-commerce, e-learning, e-healthcare, and e-payment. However, safeguarding these services poses a significant challenge, as the need for robust security measures becomes increasingly imperative. This paper presented an innovative method based on differential analyses to detect abrupt changes in network traffic characteristics. The core concept revolves around identifying abrupt alterations in certain characteristics such as input/output volume, the number of TCP connections, or DNS queries—within the analyzed traffic. Initially, the traffic is segmented into distinct sequences of slices, followed by quantifying specific characteristics for each slice. Subsequently, the distance between successive values of these measured characteristics is computed and clustered to detect sudden changes. To accomplish its objectives, the approach combined several techniques, including propositional logic, distance metrics (e.g., Kullback-Leibler Divergence), and clustering algorithms (e.g., K-means). When applied to two distinct datasets, the proposed approach demonstrates exceptional performance, achieving detection rates of up to 100%.
   </abstract>
   <kwd-group> 
    <kwd>
     IDS
    </kwd> 
    <kwd>
      SOC
    </kwd> 
    <kwd>
      SIEM
    </kwd> 
    <kwd>
      KL-Divergence
    </kwd> 
    <kwd>
      K-Mean
    </kwd> 
    <kwd>
      Clustering Algorithms
    </kwd> 
    <kwd>
      Elbow Method
    </kwd>
   </kwd-group>
  </article-meta>
 </front>
 <body>
  <sec id="s1">
   <title>1. Introduction</title>
   <p>The 21st century has witnessed the profound impact of the Internet, emerging as one of the most transformative inventions in our lives. Presently, the Internet transcends numerous boundaries, revolutionizing the way we communicate, engage in recreational activities, conduct work, shop, socialize, enjoy music and movies, order food, manage finances, extend birthday wishes to friends, and more. The indispensability of these service applications is paramount for modern organizations, demanding uninterrupted availability and global accessibility around the clock.</p>
   <p>The exponential growth of sensitive services and web-based applications has become a magnet for hackers seeking lucrative gains, technological secrets, including vaccine-related information, or any competitive edge. This surge in valuable data has not only enticed criminal organizations globally but has also led certain governmental entities to recruit exceptionally skilled security experts for cyberattack operations.</p>
   <p>The continuous expansion of both lawful and unlawful activities has led to an exponential increase in the complexity and volume of Internet traffic. As a result, network security administrators grapple with ever-evolving and intricate challenges, striving to swiftly impede malicious traffic. To combat this, they heavily rely on a trio of key tools: Firewalls, SIEM (Security Information and Event Management), and IDSs (Intrusion Detection Systems), which stand as primary instruments for detecting and filtering suspicious traffic.</p>
   <p>To scrutinize and identify potentially suspicious activities within network traffic using IDSs, two primary detection methods prevail: signature-based and anomaly-based detection. Signature-based or misuse detection methods employ pattern-matching techniques to identify pre-known attacks. The primary advantage lies in their high accuracy, ensuring minimal false positives or negatives when detecting previously recognized suspicious attacks. Anomaly-based detection methods necessitate an initial phase to comprehend normal traffic patterns, employing techniques like machine learning, statistical analysis, or knowledge-based methodologies. Any significant deviation between observed traffic and established norms is flagged as suspicious. The primary advantage lies in its capability to effectively identify unknown suspicious attacks with commendable accuracy.</p>
   <p>The current state of the art presents a myriad of intriguing techniques (e.g., <xref ref-type="bibr" rid="scirp.134853-1">
     [1]
    </xref>-<xref ref-type="bibr" rid="scirp.134853-4">
     [4]
    </xref>) and tools that have notably bolstered network security by effectively detecting and thwarting malicious traffic. Nevertheless, the challenge persists: cyberattacks persistently wreak havoc, inflicting substantial damage. Hence, any novel contribution that mitigates the risks associated with network traffic would be immensely valued.</p>
   <p>This paper introduces a novel technique employing differential analysis to discern suspicious network traffic. The approach initially segments traffic into small-time slices, transforming each of them into a value in 
    <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         ℝ 
       </mi> 
       <mi>
         n 
       </mi> 
      </msup> 
     </mrow> 
    </math>. Subsequently, it computes the divergence between neighboring slices to unveil abrupt changes in traffic behavior. After that, clustering techniques are applied to abstracted intervals to validate traffic homogeneity (a single class) or detect significant variations (multiple classes), indicating potential suspicious activities.</p>
   <p>The approach we introduce is geared towards enhancing the efficiency of Security Information Event Management (SIEM) <xref ref-type="bibr" rid="scirp.134853-5">
     [5]
    </xref>, an integral component of a Security Operations Center (SOC) <xref ref-type="bibr" rid="scirp.134853-6">
     [6]
    </xref>. A (SIEM), such as Wazuh <xref ref-type="bibr" rid="scirp.134853-7">
     [7]
    </xref>, encapsulates a suite of functionalities aimed at gathering, analyzing, and presenting information sourced from network and security devices. It essentially integrates two vital components: Security Information Management (SIM) and Security Event Management (SEM). SIM focuses on storing, analyzing, and reporting log files, while SEM is responsible for real-time monitoring, event correlation, notifications, and console views.</p>
   <p>The rest of this paper is organized as follows. Section 2 delves into related works within the field. Section 3 details the methodology of the approach. Section 4 presents three case studies. Finally, concluding remarks are presented in Section 5.</p>
  </sec><sec id="s2">
   <title>2. Related Work</title>
   <p>The state of the art contains many valuable techniques that have significantly contributed to the improvement of the security of network services and applications. Here, the study focuses on anomaly-based detection techniques and methods that try to detect suspicious traffic based on IP packets information such as IP address (layer 3 in the TCP/IP Model), TPC or UDP ports (layer 4) and web application data (layer 5).</p>
   <p>Najafabadi et al. proposed in <xref ref-type="bibr" rid="scirp.134853-8">
     [8]
    </xref> an anomaly detection mechanism for detecting HTTP GET flood attacks. They used the Principal Component Analysis (PCA)-subspace method on the browsing behavior instances extracted from HTTP server’s logs in order to detect abnormal behaviors. They apply the approach to detect some DDoS and HTTP GET flood attacks. This approach used the supervised machine learning techniques.</p>
   <p>In <xref ref-type="bibr" rid="scirp.134853-9">
     [9]
    </xref>, Betarte et al. proposed a method based on machine learning to enhance the famous ModSecurity <xref ref-type="bibr" rid="scirp.134853-10">
     [10]
    </xref>, a Web Application Firewall provided by OWASP, by using one-class classification and n-gram techniques on three datasets. The proposal method used the supervised machine learning techniques and provides better detection and false positive rates than the original version of ModSecurity.</p>
   <p>Wang et al. presented in <xref ref-type="bibr" rid="scirp.134853-11">
     [11]
    </xref> a new web anomaly detection method which uses Frequent Closed Episode Rules Mining (FCERMining) algorithm to analyze web logs and detect new unknown web attacks. The method used the supervised machine learning techniques and has a detection rate of 96.67% and a false alarm rate of 3.33% for detecting abnormal users.</p>
   <p>In <xref ref-type="bibr" rid="scirp.134853-12">
     [12]
    </xref>, Brontë et al., proposed an anomaly detection approach that uses the cross-entropy technique to calculate three metrics: cross entropy parameters (CEP), cross entropy value (CEV) and cross entropy data type (CET). These metrics aim to compare the deviation between learned request profiles and a new web request. The cross-entropy approach performs better than Value Length and Mahalanobis distance approach. This approach used the supervised machine learning techniques, focused on detecting four types of web attacks: SQLI, XSS, RFI, and DT and has a detection rate of 66.7%.</p>
   <p>Ren et al. presented in <xref ref-type="bibr" rid="scirp.134853-13">
     [13]
    </xref> a method based on the bag of words (BOW) model to extract features and efficiently detect web attacks with hidden Markov algorithms. BOW has higher detection rate and lower false alarm rate when compared with N-gram feature-extraction algorithms. This approach used the supervised machine learning techniques to detecting SQL injection and cross-site scripting attacks. The accuracy increased to 96%, but the false alarm rate still remained low.</p>
   <p>In <xref ref-type="bibr" rid="scirp.134853-14">
     [14]
    </xref>, Pukkawanna et al. proposed a method using port pair distribution and Kullback-Leibler (KL) divergence to detect suspicious flows when the KL divergence deviates from an adaptive 3-sigma rule-based threshold. This approach used the unsupervised machine learning techniques to detecting mimicry attacks. The approach does not need any previous learning step.</p>
   <p>Hounkpevi proposed in <xref ref-type="bibr" rid="scirp.134853-15">
     [15]
    </xref> a method using K-means, port pair distribution and Kullback-Leibler (KL) algorithm that improves <xref ref-type="bibr" rid="scirp.134853-14">
     [14]
    </xref>. The approach compares the traffic of current time intervals with the nearby ones by applying the k-mean algorithm. Any significant divergence means that the current time interval traffic is suspicion. This approach used the unsupervised machine learning techniques to detecting mimicry attacks. The proposal approach seems more efficient than <xref ref-type="bibr" rid="scirp.134853-14">
     [14]
    </xref>.</p>
   <p>In <xref ref-type="bibr" rid="scirp.134853-16">
     [16]
    </xref>, Munz et al. presented a novel Network Data Mining approach that applies the K-means clustering algorithm to feature datasets extracted from flow records. Training data containing unlabelled flow records are separated into clusters of normal and anomalous traffic. This approach used the unsupervised machine learning techniques to detecting Port scans and D/oS attacks. In this approach there is a challenge to determine the optimum number of clusters.</p>
   <p>Asselin et al. presented in <xref ref-type="bibr" rid="scirp.134853-17">
     [17]
    </xref> an anomaly detection model based on crawling method and n-gram model that is effective in reducing the access to the log file generated by the web servers. It has shown to be a good solution for web applications black-box analysis but it is not efficient for detecting attacks that use cookie or post data. This approach used the unsupervised machine learning techniques to detecting brute force, DDoS, Crawler Miss, High Load, Anomalous Query attacks and has a detection rate of 95%.</p>
   <p>Swarnkar and Hubballi described, in <xref ref-type="bibr" rid="scirp.134853-18">
     [18]
    </xref>, a new method for payload-based anomaly detection that learns normal behavior and detects deviations. The approach makes a frequency range of occurrences of n-grams from packets in training phase and count the number of deviations from the range to detect anomalies. The approach showed lower false positives and higher detection rate when compared to Anagram methods.</p>
   <p>
    <xref ref-type="bibr" rid="scirp.134853-"></xref>Kang et al. <xref ref-type="bibr" rid="scirp.134853-19">
     [19]
    </xref> described a one-class classification method for improving intrusion detection performance for malicious attacks. Results scores were evaluated based on artificially generated instances in two-dimensional space. In the detection phase, the approach based on simple logic, the center of the normal patterns was determined at (0, 0), and two malicious class centers were at (1, 1) and (−1, −1), respectively. Experimental results on simulated data show better performance.</p>
   <p>Camacho et al. <xref ref-type="bibr" rid="scirp.134853-20">
     [20]
    </xref> developed a framework that used a PCA-based multivariate statistical process control (MSPC) approach. The framework monitors both the Q-statistic and D-statistic. Thereby, it was possible to establish control limits in order to detect anomalies when they became consistently exceeded.</p>
   <p>Yoshimura et al. <xref ref-type="bibr" rid="scirp.134853-21">
     [21]
    </xref> proposed a new model called DOC-IDS, which is an intrusion detection system based on Perera’s deep one-class classification. This approach used the supervised machine learning techniques to detecting Multi-attacks and has a detection rate of 97%.</p>
   <p>Zavrak et al. <xref ref-type="bibr" rid="scirp.134853-22">
     [22]
    </xref> proposed an intrusion detection and prevention architecture called SAnDet which is based on an anomaly-based attack detection module that uses the EncDecAD method to detect attacks. This approach used the semi-supervised machine learning techniques to detecting DoS and Portscan attacks and has a detection rate of 99.3%.</p>
   <p>The evaluation of the previous approaches according to cited criteria is illustrated by <xref ref-type="table" rid="table1">
     Table 1
    </xref>.</p>
   <table-wrap id="table1">
    <label>
     <xref ref-type="table" rid="table1">
      Table 1
     </xref></label>
    <caption>
     <title>
      <xref ref-type="bibr" rid="scirp.134853-"></xref>Table 1. Evaluation of the approaches.</title>
    </caption>
    <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
     <tr> 
      <td class="custom-bottom-td acenter" width="12.72%"><p style="text-align:center">Author</p></td> 
      <td class="custom-bottom-td acenter" width="16.27%"><p style="text-align:center">Techniques</p></td> 
      <td class="custom-bottom-td acenter" width="13.32%"><p style="text-align:center">Attacks types</p></td> 
      <td class="custom-bottom-td acenter" width="10.35%"><p style="text-align:center">Target</p></td> 
      <td class="custom-bottom-td acenter" width="13.32%"><p style="text-align:center">Learning types</p></td> 
      <td class="custom-bottom-td acenter" width="7.40%"><p style="text-align:center">Logic rules</p></td> 
      <td class="custom-bottom-td acenter" width="10.35%"><p style="text-align:center">Training is not required</p></td> 
      <td class="custom-bottom-td acenter" width="7.40%"><p style="text-align:center">Multi-target</p></td> 
      <td class="custom-bottom-td acenter" width="8.87%"><p style="text-align:center">Detection rate</p></td> 
     </tr> 
     <tr> 
      <td class="custom-top-td aleft" width="12.72%"><p style="text-align:left">Pukkawanna et al. <xref ref-type="bibr" rid="scirp.134853-14">
         [14]
        </xref>, 2015</p></td> 
      <td class="custom-top-td aleft" width="16.27%"><p style="text-align:left">Kullback-Leibler</p><p style="text-align:left">(KL) Divergence</p></td> 
      <td class="custom-top-td acenter" width="13.32%"><p style="text-align:center">Mimicry attacks</p></td> 
      <td class="custom-top-td acenter" width="10.35%"><p style="text-align:center">TCP/UDP-Ports</p></td> 
      <td class="custom-top-td acenter" width="13.32%"><p style="text-align:center">unsupervised</p><p style="text-align:center">learning</p></td> 
      <td class="custom-top-td acenter" width="7.40%"><p style="text-align:center">×</p></td> 
      <td class="custom-top-td acenter" width="10.35%"><p style="text-align:center">✓</p></td> 
      <td class="custom-top-td acenter" width="7.40%"><p style="text-align:center">×</p></td> 
      <td class="custom-top-td acenter" width="8.87%"><p style="text-align:center">12.5%</p></td> 
     </tr> 
     <tr> 
      <td class="aleft" width="12.72%"><p style="text-align:left">Hounkpevi <xref ref-type="bibr" rid="scirp.134853-15">
         [15]
        </xref>, 2020</p></td> 
      <td class="aleft" width="16.27%"><p style="text-align:left">- Kullback-Leibler</p><p style="text-align:left">(KL) Divergence.</p><p style="text-align:left">- k-mean algorithm.</p></td> 
      <td class="acenter" width="13.32%"><p style="text-align:center">Mimicry attacks</p></td> 
      <td class="acenter" width="10.35%"><p style="text-align:center">TCP/UDP-Ports</p></td> 
      <td class="acenter" width="13.32%"><p style="text-align:center">unsupervised</p><p style="text-align:center">learning</p></td> 
      <td class="acenter" width="7.40%"><p style="text-align:center">×</p></td> 
      <td class="acenter" width="10.35%"><p style="text-align:center">✓</p></td> 
      <td class="acenter" width="7.40%"><p style="text-align:center">×</p></td> 
      <td class="acenter" width="8.87%"><p style="text-align:center">66.7%</p></td> 
     </tr> 
     <tr> 
      <td class="aleft" width="12.72%"><p style="text-align:left">Najafabadi et al. <xref ref-type="bibr" rid="scirp.134853-8">
         [8]
        </xref>, 2017</p></td> 
      <td class="aleft" width="16.27%"><p style="text-align:left">PCA (Principle</p><p style="text-align:left">Component </p><p style="text-align:left">Analysis)-Subspace method</p></td> 
      <td class="acenter" width="13.32%"><p style="text-align:center">detecting HTTP</p><p style="text-align:center">GET flood attacks DDOS</p></td> 
      <td class="acenter" width="10.35%"><p style="text-align:center">HTTP.Url</p></td> 
      <td class="acenter" width="13.32%"><p style="text-align:center">supervised</p><p style="text-align:center">learning</p></td> 
      <td class="acenter" width="7.40%"><p style="text-align:center">×</p></td> 
      <td class="acenter" width="10.35%"><p style="text-align:center">×</p></td> 
      <td class="acenter" width="7.40%"><p style="text-align:center">×</p></td> 
      <td class="acenter" width="8.87%"><p style="text-align:center">-</p></td> 
     </tr> 
     <tr> 
      <td class="aleft" width="12.72%"><p style="text-align:left">Betarte et al. <xref ref-type="bibr" rid="scirp.134853-9">
         [9]
        </xref>, 2018</p></td> 
      <td class="aleft" width="16.27%"><p style="text-align:left">- one-class </p><p style="text-align:left">classification</p><p style="text-align:left">- n-gram</p></td> 
      <td class="acenter" width="13.32%"><p style="text-align:center">Multi attacks</p></td> 
      <td class="acenter" width="10.35%"><p style="text-align:center">HTTP.Url</p></td> 
      <td class="acenter" width="13.32%"><p style="text-align:center">supervised</p><p style="text-align:center">learning</p></td> 
      <td class="acenter" width="7.40%"><p style="text-align:center">×</p></td> 
      <td class="acenter" width="10.35%"><p style="text-align:center">×</p></td> 
      <td class="acenter" width="7.40%"><p style="text-align:center">×</p></td> 
      <td class="acenter" width="8.87%"><p style="text-align:center">90%</p></td> 
     </tr> 
     <tr> 
      <td class="aleft" width="12.72%"><p style="text-align:left">Wang et al. <xref ref-type="bibr" rid="scirp.134853-11">
         [11]
        </xref>, 2017</p></td> 
      <td class="aleft" width="16.27%"><p style="text-align:left">FCER (Frequent</p><p style="text-align:left">Closed Episode Rules) Mining</p><p style="text-align:left">algorithm</p></td> 
      <td class="acenter" width="13.32%"><p style="text-align:center">Unknown web</p><p style="text-align:center">attacks.</p></td> 
      <td class="acenter" width="10.35%"><p style="text-align:center">HTTP.Url</p></td> 
      <td class="acenter" width="13.32%"><p style="text-align:center">supervised</p><p style="text-align:center">learning</p></td> 
      <td class="acenter" width="7.40%"><p style="text-align:center">×</p></td> 
      <td class="acenter" width="10.35%"><p style="text-align:center">×</p></td> 
      <td class="acenter" width="7.40%"><p style="text-align:center">×</p></td> 
      <td class="acenter" width="8.87%"><p style="text-align:center">96.67%</p></td> 
     </tr> 
     <tr> 
      <td class="aleft" width="12.72%"><p style="text-align:left">Bronte et al. <xref ref-type="bibr" rid="scirp.134853-12">
         [12]
        </xref>, 2016</p></td> 
      <td class="aleft" width="16.27%"><p style="text-align:left">Cross Entropy.</p></td> 
      <td class="acenter" width="13.32%"><p style="text-align:center">SQLI, XSS, RFI, and DT.</p></td> 
      <td class="acenter" width="10.35%"><p style="text-align:center">HTTP.Url</p></td> 
      <td class="acenter" width="13.32%"><p style="text-align:center">supervised</p><p style="text-align:center">learning</p></td> 
      <td class="acenter" width="7.40%"><p style="text-align:center">×</p></td> 
      <td class="acenter" width="10.35%"><p style="text-align:center">×</p></td> 
      <td class="acenter" width="7.40%"><p style="text-align:center">×</p></td> 
      <td class="acenter" width="8.87%"><p style="text-align:center">66.7%</p></td> 
     </tr> 
     <tr> 
      <td class="aleft" width="12.72%"><p style="text-align:left">Ren et al. <xref ref-type="bibr" rid="scirp.134853-13">
         [13]
        </xref>, 2018</p></td> 
      <td class="aleft" width="16.27%"><p style="text-align:left">-Bag of words</p><p style="text-align:left">(BOW) model</p><p style="text-align:left">- Hidden Markov</p><p style="text-align:left">algorithms.</p></td> 
      <td class="acenter" width="13.32%"><p style="text-align:center">SQL injection</p><p style="text-align:center">and cross-site</p><p style="text-align:center">scripting</p></td> 
      <td class="acenter" width="10.35%"><p style="text-align:center">HTTP.Url</p></td> 
      <td class="acenter" width="13.32%"><p style="text-align:center">supervised</p><p style="text-align:center">learning</p></td> 
      <td class="acenter" width="7.40%"><p style="text-align:center">×</p></td> 
      <td class="acenter" width="10.35%"><p style="text-align:center">×</p></td> 
      <td class="acenter" width="7.40%"><p style="text-align:center">×</p></td> 
      <td class="acenter" width="8.87%"><p style="text-align:center">96%</p></td> 
     </tr> 
     <tr> 
      <td class="aleft" width="12.72%"><p style="text-align:left">Munz et al. <xref ref-type="bibr" rid="scirp.134853-16">
         [16]
        </xref>, 2007</p></td> 
      <td class="aleft" width="16.27%"><p style="text-align:left">K-mean algorithm.</p></td> 
      <td class="acenter" width="13.32%"><p style="text-align:center">Port scans and</p><p style="text-align:center">D/oS attacks.</p></td> 
      <td class="acenter" width="10.35%"><p style="text-align:center">TCP/UDP-Ports</p></td> 
      <td class="acenter" width="13.32%"><p style="text-align:center">unsupervised</p><p style="text-align:center">learning</p></td> 
      <td class="acenter" width="7.40%"><p style="text-align:center">×</p></td> 
      <td class="acenter" width="10.35%"><p style="text-align:center">✓</p></td> 
      <td class="acenter" width="7.40%"><p style="text-align:center">×</p></td> 
      <td class="acenter" width="8.87%"><p style="text-align:center">-</p></td> 
     </tr> 
     <tr> 
      <td class="aleft" width="12.72%"><p style="text-align:left">Asselin et al. <xref ref-type="bibr" rid="scirp.134853-17">
         [17]
        </xref>, 2016</p></td> 
      <td class="aleft" width="16.27%"><p style="text-align:left">black-box approach</p><p style="text-align:left">(crawling based)</p><p style="text-align:left">N-gram model.</p></td> 
      <td class="acenter" width="13.32%"><p style="text-align:center">brute force, DDoS, Crawler</p><p style="text-align:center">Miss, High Load,</p><p style="text-align:center">Anomalous Query</p></td> 
      <td class="acenter" width="10.35%"><p style="text-align:center">HTTP.Url</p></td> 
      <td class="acenter" width="13.32%"><p style="text-align:center">unsupervised</p><p style="text-align:center">learning</p></td> 
      <td class="acenter" width="7.40%"><p style="text-align:center">×</p></td> 
      <td class="acenter" width="10.35%"><p style="text-align:center">✓</p></td> 
      <td class="acenter" width="7.40%"><p style="text-align:center">×</p></td> 
      <td class="acenter" width="8.87%"><p style="text-align:center">95%</p></td> 
     </tr> 
     <tr> 
      <td class="aleft" width="12.72%"><p style="text-align:left">Yoshimura et al. <xref ref-type="bibr" rid="scirp.134853-21">
         [21]
        </xref>, 2022</p></td> 
      <td class="aleft" width="16.27%"><p style="text-align:left">one-class classification.</p></td> 
      <td class="acenter" width="13.32%"><p style="text-align:center">Multi attacks</p></td> 
      <td class="acenter" width="10.35%"><p style="text-align:center">-</p></td> 
      <td class="acenter" width="13.32%"><p style="text-align:center">supervised</p><p style="text-align:center">learning</p></td> 
      <td class="acenter" width="7.40%"><p style="text-align:center">×</p></td> 
      <td class="acenter" width="10.35%"><p style="text-align:center">×</p></td> 
      <td class="acenter" width="7.40%"><p style="text-align:center">×</p></td> 
      <td class="acenter" width="8.87%"><p style="text-align:center">97%</p></td> 
     </tr> 
     <tr> 
      <td class="aleft" width="12.72%"><p style="text-align:left">Zavrak et al. <xref ref-type="bibr" rid="scirp.134853-22">
         [22]
        </xref>, 2023</p></td> 
      <td class="aleft" width="16.27%"><p style="text-align:left">EncDecAD. LSTM.</p></td> 
      <td class="acenter" width="13.32%"><p style="text-align:center">DoS Portscan</p></td> 
      <td class="acenter" width="10.35%"><p style="text-align:center">-</p></td> 
      <td class="acenter" width="13.32%"><p style="text-align:center">semi-supervised</p><p style="text-align:center">learning</p></td> 
      <td class="acenter" width="7.40%"><p style="text-align:center">×</p></td> 
      <td class="acenter" width="10.35%"><p style="text-align:center">×</p></td> 
      <td class="acenter" width="7.40%"><p style="text-align:center">×</p></td> 
      <td class="acenter" width="8.87%"><p style="text-align:center">99.3%</p></td> 
     </tr> 
    </table>
   </table-wrap>
   <p>The existing approaches could be evaluated according to many criteria such as:</p>
  </sec><sec id="s3">
   <title>3. Methodology</title>
   <p>The detection of suspicious traffic is based on the following simple observation: the nature of the traffic should not change suddenly. If this happens, it will be suspicious. For example, there is no reason that the nature of the traffic between the period P<sub>1</sub> = [10 am - 10:30 am] will be so different from the period P<sub>2</sub> = [10:30 am - 11 am]. However, distinctions might reasonably exist between daytime and nighttime traffic patterns, as well as between traffic from different years.</p>
   <p>Let 
    <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        ℱ 
      </mi> 
      <mn> 
       <mo>
         : 
       </mo> 
      </mn> 
      <mi>
        ℝ 
      </mi> 
      <mo>
        → 
      </mo> 
      <mi>
        ℝ 
      </mi> 
     </mrow> 
    </math> be a function such that 
    <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        y 
      </mi> 
      <mo>
        = 
      </mo> 
      <mi>
        ℱ 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mi>
         x 
       </mi> 
       <mo>
         ) 
       </mo> 
      </mrow> 
     </mrow> 
    </math> measures a particular feature related to the network traffic.(e.g., x is time and y is the number of packets coming from a specific country). Assume that the curve of 
    <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
       ℱ 
     </mi> 
    </math> is as shown by <xref ref-type="fig" rid="fig1">
     Figure 1
    </xref>, then it is clear that there exists a sudden variation from 
    <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        f 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mn>
         4 
       </mn> 
       <mo>
         ) 
       </mo> 
      </mrow> 
     </mrow> 
    </math> to 
    <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        f 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mn>
         5 
       </mn> 
       <mo>
         ) 
       </mo> 
      </mrow> 
     </mrow> 
    </math> which is suspicious.</p>
   <p>More precisely, the traffic τ will be scattered to one or many sequences of ordered slices. On each of these slices, we apply a function 
    <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
       ℱ 
     </mi> 
    </math> that measure some of its features. After that, we compute the distance between successive values of 
    <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
       ℱ 
     </mi> 
    </math> as shown in <xref ref-type="fig" rid="fig2">
     Figure 2
    </xref>. The sudden changes of 
    <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
       ℱ 
     </mi> 
    </math> appears, if there exist a big deviations between the measured distances.</p>
   <fig id="fig1" position="float">
    <label>Figure 1</label>
    <caption>
     <title>Figure 1. Sudden variation in traffic.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/7801031-rId27.jpeg?20240729104233" />
   </fig>
   <fig id="fig2" position="float">
    <label>Figure 2</label>
    <caption>
     <title>Figure 2. Looking for sudden variation in traffic.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/7801031-rId28.jpeg?20240729104233" />
   </fig>
   <p>The function F may not solely yield a singular real value within 
    <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
       ℝ 
     </mi> 
    </math>; instead, its outputs could exist within 
    <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         ℝ 
       </mi> 
       <mi>
         n 
       </mi> 
      </msup> 
     </mrow> 
    </math>. For example, it might produce a complete distribution that assesses various characteristics across analyzed slices of the trace. In such scenarios, assessing the disparity between F values could involve employing measures like KL-divergence or Euclidean distance.</p>
   <p>Furthermore, in determining whether the variation between successive F values exhibits abrupt changes or unacceptable deviations, clustering analysis could be valuable. If the resultant clusters surpass one in number, and the expectation dictates smooth change in traffic distributions across successive slices, we conclude that the analyzed traffic is suspicious.</p>
   <p>In the subsequent sections, we elaborate on and formalize all of these analyses.</p>
   <p>To maintain simplicity in presenting the approach, we concentrate solely on network traffic. However, it’s important to note that the same concept can be extended to analyze any type of log file.</p>
   <sec id="s3_1">
    <title>3.1. Preliminary Notations</title>
    <p>In order to articulate the definition of suspicious traffic formal and more succinctly, it’s essential to establish a set of initial notations.</p>
    <p>We assume that network traffic is represented by a sequence of stamped IP packets or messages where each one of them is a structure that contains a header and a payload. We suppose that we have access to any field (e.g., IP addresses, ports and protocols) to any non-encrypted header of the network protocols (e.g., IP, TCP and UDP) inside an intercepted traffic.</p>
    <p>Definition 1 (Messages). We denote by 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        ℳ 
      </mi> 
     </math> the set of messages that could be found in the network traffic.</p>
    <table-wrap id="table2">
     <label>
      <xref ref-type="table" rid="table2">
       Table 2
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.134853-"></xref>Table 2. Examples of attributes.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td acenter" width="116.00%"><p style="text-align:center">Field Name</p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td acenter" width="116.00%"><p style="text-align:center"><p class="imgGroupCss_v"><img class=" imgMarkCss lazy" data-original="https://html.scirp.org/file/7801031-rId51.jpeg?20240729104235" /></p></p></td> 
      </tr> 
     </table>
    </table-wrap>
    <p>Stamped messages are called events and are defined as follows:</p>
    <p>Definition 2 (Events). We denote by 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        ℰ 
      </mi> 
     </math>, the set of the possible events built from 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        ℳ 
      </mi> 
     </math> as follows:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mtable columnalign="left"> 
       <mtr> 
        <mtd> 
         <mi>
           e 
         </mi> 
         <mn> 
          <mo>
            : 
          </mo> 
          <mo>
            : 
          </mo> 
         </mn> 
         <mo>
           = 
         </mo> 
         <mrow> 
          <mo>
            〈 
          </mo> 
          <mrow> 
           <mi>
             t 
           </mi> 
           <mn>
             , 
           </mn> 
           <mi>
             m 
           </mi> 
          </mrow> 
          <mo>
            〉 
          </mo> 
         </mrow> 
        </mtd> 
       </mtr> 
       <mtr> 
        <mtd> 
         <mi>
           t 
         </mi> 
         <mn> 
          <mo>
            : 
          </mo> 
          <mo>
            : 
          </mo> 
         </mn> 
         <mo>
           = 
         </mo> 
         <mi>
           t 
         </mi> 
         <mi>
           i 
         </mi> 
         <mi>
           m 
         </mi> 
         <mi>
           e 
         </mi> 
        </mtd> 
       </mtr> 
       <mtr> 
        <mtd> 
         <mi>
           m 
         </mi> 
         <mo>
           ∈ 
         </mo> 
         <mi>
           ℳ 
         </mi> 
        </mtd> 
       </mtr> 
      </mtable> 
     </math></p>
    <p>A sequence of stamped events forms a trace.</p>
    <p>Definition 3 (Trace). A trace τ over 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        ℰ 
      </mi> 
     </math> is defined using the following BNF grammar:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mtable columnalign="left"> 
       <mtr> 
        <mtd> 
         <mi>
           τ 
         </mi> 
         <mn> 
          <mo>
            : 
          </mo> 
          <mo>
            : 
          </mo> 
         </mn> 
         <mo>
           = 
         </mo> 
         <mi>
           ϵ 
         </mi> 
         <mn> 
          <mi> 
          </mi> 
          <mo>
            | 
          </mo> 
          <mi> 
          </mi> 
         </mn> 
         <mi>
           e 
         </mi> 
         <mn> 
          <mi> 
          </mi> 
          <mo>
            | 
          </mo> 
          <mi> 
          </mi> 
         </mn> 
         <mi>
           e 
         </mi> 
         <mn>
           . 
         </mn> 
         <mi>
           τ 
         </mi> 
        </mtd> 
       </mtr> 
       <mtr> 
        <mtd> 
         <mi>
           e 
         </mi> 
         <mo>
           ∈ 
         </mo> 
         <mi>
           ℰ 
         </mi> 
        </mtd> 
       </mtr> 
      </mtable> 
     </math></p>
    <p>where 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        ϵ 
      </mi> 
     </math> is the empty trace. The “.” represents the chronological order, i.e., if e appears before e' in a trace τ, then necessarily e happened at a previous time than e'.</p>
    <p>We introduce the following propositional logic allowing to verify whether an event in a trace respects some conditions. The main purpose of this language is to define specific patterns of messages we are looking for within the trace, such as message having a given source or destination IP addresses or ports.</p>
    <p>Definition 4 (Propositional Event Logic). Let 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          f 
        </mi> 
        <mi>
          n 
        </mi> 
       </msub> 
      </mrow> 
     </math> be a field name and v be a value, we introduce the Propositional Event Logic (PEL) as follows:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mtable columnalign="left"> 
       <mtr> 
        <mtd> 
         <mi>
           p 
         </mi> 
         <mn>
           , 
         </mn> 
         <mi>
           q 
         </mi> 
         <mn> 
          <mo>
            : 
          </mo> 
          <mo>
            : 
          </mo> 
         </mn> 
         <mo>
           = 
         </mo> 
         <mtext>
           true 
         </mtext> 
         <mn> 
          <mi> 
          </mi> 
          <mo>
            | 
          </mo> 
          <mi> 
          </mi> 
         </mn> 
         <mtext>
           false 
         </mtext> 
         <mn> 
          <mi> 
          </mi> 
          <mo>
            | 
          </mo> 
          <mi> 
          </mi> 
         </mn> 
         <msub> 
          <mi>
            f 
          </mi> 
          <mi>
            n 
          </mi> 
         </msub> 
         <mn> 
          <mi> 
          </mi> 
         </mn> 
         <mi>
           o 
         </mi> 
         <mi>
           p 
         </mi> 
         <mn> 
          <mi> 
          </mi> 
         </mn> 
         <mi>
           v 
         </mi> 
         <mn> 
          <mi> 
          </mi> 
          <mo>
            | 
          </mo> 
          <mi> 
          </mi> 
         </mn> 
         <mi>
           p 
         </mi> 
         <mo>
           ∨ 
         </mo> 
         <mi>
           q 
         </mi> 
         <mn> 
          <mi> 
          </mi> 
          <mo>
            | 
          </mo> 
          <mi> 
          </mi> 
         </mn> 
         <mi>
           p 
         </mi> 
         <mo>
           ∧ 
         </mo> 
         <mi>
           q 
         </mi> 
         <mn> 
          <mi> 
          </mi> 
          <mo>
            | 
          </mo> 
          <mi> 
          </mi> 
         </mn> 
         <mo>
           ¬ 
         </mo> 
         <mi>
           p 
         </mi> 
        </mtd> 
       </mtr> 
       <mtr> 
        <mtd> 
         <mi>
           o 
         </mi> 
         <mi>
           p 
         </mi> 
         <mo>
           : 
         </mo> 
         <mo>
           = 
         </mo> 
         <mtext>
             
         </mtext> 
         <mo>
           = 
         </mo> 
         <mn> 
          <mi> 
          </mi> 
         </mn> 
         <mo>
           | 
         </mo> 
         <mn> 
          <mi> 
          </mi> 
         </mn> 
         <mo>
           ≠ 
         </mo> 
         <mn> 
          <mi> 
          </mi> 
         </mn> 
         <mo>
           | 
         </mo> 
         <mn> 
          <mi> 
          </mi> 
         </mn> 
         <mo>
           ≤ 
         </mo> 
         <mn> 
          <mi> 
          </mi> 
         </mn> 
         <mo>
           | 
         </mo> 
         <mn> 
          <mi> 
          </mi> 
         </mn> 
         <mo>
           ≥ 
         </mo> 
         <mn> 
          <mi> 
          </mi> 
         </mn> 
         <mo>
           | 
         </mo> 
         <mn> 
          <mi> 
          </mi> 
         </mn> 
         <mo>
           &lt; 
         </mo> 
         <mn> 
          <mi> 
          </mi> 
         </mn> 
         <mo>
           | 
         </mo> 
         <mn> 
          <mi> 
          </mi> 
         </mn> 
         <mo>
           &gt; 
         </mo> 
        </mtd> 
       </mtr> 
      </mtable> 
     </math></p>
    <p>An event e respects a proposition p, and we say that 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         p 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          e 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mtext>
         true 
       </mtext> 
      </mrow> 
     </math>, if one of the following conditions holds:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mtable columnalign="left"> 
       <mtr> 
        <mtd> 
         <mtext>
           true 
         </mtext> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            e 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mtext>
           true 
         </mtext> 
        </mtd> 
       </mtr> 
       <mtr> 
        <mtd> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mo>
             ¬ 
           </mo> 
           <mi>
             p 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            e 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mo>
           ¬ 
         </mo> 
         <mi>
           p 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            e 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mtd> 
       </mtr> 
       <mtr> 
        <mtd> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             p 
           </mi> 
           <mo>
             ∨ 
           </mo> 
           <mi>
             q 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            e 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mi>
           p 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            e 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           ∨ 
         </mo> 
         <mi>
           q 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            e 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mtd> 
       </mtr> 
       <mtr> 
        <mtd> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             p 
           </mi> 
           <mo>
             ∧ 
           </mo> 
           <mi>
             q 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            e 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mi>
           p 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            e 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           ∧ 
         </mo> 
         <mi>
           q 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            e 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mtd> 
       </mtr> 
       <mtr> 
        <mtd> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <msub> 
            <mi>
              f 
            </mi> 
            <mi>
              n 
            </mi> 
           </msub> 
           <mn> 
            <mi> 
            </mi> 
           </mn> 
           <mi>
             o 
           </mi> 
           <mi>
             p 
           </mi> 
           <mn> 
            <mi> 
            </mi> 
           </mn> 
           <mi>
             v 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            e 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             e 
           </mi> 
           <mo>
             @ 
           </mo> 
           <msub> 
            <mi>
              f 
            </mi> 
            <mi>
              n 
            </mi> 
           </msub> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mn> 
          <mi> 
          </mi> 
         </mn> 
         <mi>
           o 
         </mi> 
         <msup> 
          <mi>
            p 
          </mi> 
          <mn> 
           <mo>
             ? 
           </mo> 
          </mn> 
         </msup> 
         <mn> 
          <mi> 
          </mi> 
         </mn> 
         <mi>
           v 
         </mi> 
        </mtd> 
       </mtr> 
      </mtable> 
     </math></p>
    <p>For instance, to know if (TCP.DestPort = 80)(e), we check if (e@TCP.DestPort) = <sup>?</sup> 80.</p>
   </sec>
   <sec id="s3_2">
    <title>3.2. Trace Slicing</title>
    <p>This step requires meticulous attention to ensure the approach’s effectiveness is maximized. It’s important to decompose the trace into one or multiple sequences of slices characterized by smooth variations. The end user must have a clear understanding of their activity’s nature to identify instances where sudden changes should not occur. Below, we provide some illustrative examples:</p>
    <p>The forthcoming definition introduces a slicing function designed to partition a trace, catering to diverse scenarios and requirements.</p>
    <p>Definition 5 (Slicing). Let p be a propositional formula in PEL and τ be a trace in 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mi mathvariant="script">
        T 
      </mi> 
     </math>. We inductively introduce a slicing function 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi mathvariant="script">
          S 
        </mi> 
        <mi>
          p 
        </mi> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          τ 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> as follows:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mtable columnalign="left"> 
       <mtr> 
        <mtd> 
         <msub> 
          <mi mathvariant="script">
            S 
          </mi> 
          <mi>
            p 
          </mi> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            ϵ 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mn> 
          <mo>
            : 
          </mo> 
          <mo>
            : 
          </mo> 
         </mn> 
         <mo>
           = 
         </mo> 
         <mi>
           ϵ 
         </mi> 
        </mtd> 
       </mtr> 
       <mtr> 
        <mtd> 
         <msub> 
          <mi mathvariant="script">
            S 
          </mi> 
          <mi>
            p 
          </mi> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            e 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mn> 
          <mo>
            : 
          </mo> 
          <mo>
            : 
          </mo> 
         </mn> 
         <mo>
           = 
         </mo> 
         <mrow> 
          <mo>
            { 
          </mo> 
          <mrow> 
           <mtable columnalign="left"> 
            <mtr columnalign="left"> 
             <mtd columnalign="left"> 
              <mi>
                ϵ 
              </mi> 
             </mtd> 
             <mtd columnalign="left"> 
              <mrow> 
               <mtext>
                   
               </mtext> 
               <mtext>
                   
               </mtext> 
               <mtext>
                 if 
               </mtext> 
               <mtext>
                   
               </mtext> 
               <mtext>
                   
               </mtext> 
               <mi>
                 p 
               </mi> 
               <mrow> 
                <mo>
                  ( 
                </mo> 
                <mi>
                  e 
                </mi> 
                <mo>
                  ) 
                </mo> 
               </mrow> 
               <mo>
                 = 
               </mo> 
               <mtext>
                 false 
               </mtext> 
              </mrow> 
             </mtd> 
            </mtr> 
            <mtr columnalign="left"> 
             <mtd columnalign="left"> 
              <mi>
                e 
              </mi> 
             </mtd> 
             <mtd columnalign="left"> 
              <mrow> 
               <mtext>
                   
               </mtext> 
               <mtext>
                   
               </mtext> 
               <mtext>
                 if 
               </mtext> 
               <mtext>
                   
               </mtext> 
               <mtext>
                   
               </mtext> 
               <mi>
                 p 
               </mi> 
               <mrow> 
                <mo>
                  ( 
                </mo> 
                <mi>
                  e 
                </mi> 
                <mo>
                  ) 
                </mo> 
               </mrow> 
               <mo>
                 = 
               </mo> 
               <mtext>
                 true 
               </mtext> 
              </mrow> 
             </mtd> 
            </mtr> 
           </mtable> 
          </mrow> 
         </mrow> 
        </mtd> 
       </mtr> 
       <mtr> 
        <mtd> 
         <msub> 
          <mi mathvariant="script">
            S 
          </mi> 
          <mi>
            p 
          </mi> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             e 
           </mi> 
           <mn>
             . 
           </mn> 
           <mi>
             τ 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mn> 
          <mo>
            : 
          </mo> 
          <mo>
            : 
          </mo> 
         </mn> 
         <mo>
           = 
         </mo> 
         <msub> 
          <mi mathvariant="script">
            S 
          </mi> 
          <mi>
            p 
          </mi> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            e 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mn>
           . 
         </mn> 
         <msub> 
          <mi mathvariant="script">
            S 
          </mi> 
          <mi>
            p 
          </mi> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            τ 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mtd> 
       </mtr> 
      </mtable> 
     </math></p>
    <p>Let 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          p 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
       <mn>
         , 
       </mn> 
       <mo>
         ⋯ 
       </mo> 
       <mn>
         , 
       </mn> 
       <msub> 
        <mi>
          p 
        </mi> 
        <mi>
          n 
        </mi> 
       </msub> 
      </mrow> 
     </math> denote propositions. We extend the selection function to operate on sets of sequences of propositions as follows:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mtable columnalign="left"> 
       <mtr> 
        <mtd> 
         <msub> 
          <mi mathvariant="script">
            S 
          </mi> 
          <mrow> 
           <mrow> 
            <mo>
              { 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                p 
              </mi> 
              <mn>
                1 
              </mn> 
             </msub> 
             <mo>
               , 
             </mo> 
             <mo>
               ⋯ 
             </mo> 
             <mo>
               , 
             </mo> 
             <msub> 
              <mi>
                p 
              </mi> 
              <mi>
                n 
              </mi> 
             </msub> 
            </mrow> 
            <mo>
              } 
            </mo> 
           </mrow> 
          </mrow> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            τ 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mrow> 
          <mo>
            { 
          </mo> 
          <mrow> 
           <msub> 
            <mi mathvariant="script">
              S 
            </mi> 
            <mrow> 
             <msub> 
              <mi>
                p 
              </mi> 
              <mn>
                1 
              </mn> 
             </msub> 
            </mrow> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mi>
              τ 
            </mi> 
            <mo>
              ) 
            </mo> 
           </mrow> 
           <mo>
             , 
           </mo> 
           <mo>
             ⋯ 
           </mo> 
           <mo>
             , 
           </mo> 
           <msub> 
            <mi mathvariant="script">
              S 
            </mi> 
            <mrow> 
             <msub> 
              <mi>
                p 
              </mi> 
              <mi>
                n 
              </mi> 
             </msub> 
            </mrow> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mi>
              τ 
            </mi> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mo>
            } 
          </mo> 
         </mrow> 
        </mtd> 
       </mtr> 
       <mtr> 
        <mtd> 
         <msub> 
          <mi mathvariant="script">
            S 
          </mi> 
          <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                p 
              </mi> 
              <mn>
                1 
              </mn> 
             </msub> 
             <mo>
               , 
             </mo> 
             <mo>
               ⋯ 
             </mo> 
             <mo>
               , 
             </mo> 
             <msub> 
              <mi>
                p 
              </mi> 
              <mi>
                n 
              </mi> 
             </msub> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            τ 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mrow> 
          <mo>
            〈 
          </mo> 
          <mrow> 
           <msub> 
            <mi mathvariant="script">
              S 
            </mi> 
            <mrow> 
             <msub> 
              <mi>
                p 
              </mi> 
              <mn>
                1 
              </mn> 
             </msub> 
            </mrow> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mi>
              τ 
            </mi> 
            <mo>
              ) 
            </mo> 
           </mrow> 
           <mo>
             , 
           </mo> 
           <mo>
             ⋯ 
           </mo> 
           <mo>
             , 
           </mo> 
           <msub> 
            <mi mathvariant="script">
              S 
            </mi> 
            <mrow> 
             <msub> 
              <mi>
                p 
              </mi> 
              <mi>
                n 
              </mi> 
             </msub> 
            </mrow> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mi>
              τ 
            </mi> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mo>
            〉 
          </mo> 
         </mrow> 
        </mtd> 
       </mtr> 
      </mtable> 
     </math></p>
    <p>If 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         p 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          i 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> is a proposition that depends on i, we use the notation 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msubsup> 
        <mrow> 
         <mrow> 
          <mo>
            〈 
          </mo> 
          <mrow> 
           <mi>
             p 
           </mi> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mi>
              i 
            </mi> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mo>
            〉 
          </mo> 
         </mrow> 
        </mrow> 
        <mrow> 
         <mi>
           s 
         </mi> 
         <mi>
           a 
         </mi> 
         <mi>
           r 
         </mi> 
         <mi>
           t 
         </mi> 
         <mn>
           , 
         </mn> 
         <mi>
           j 
         </mi> 
         <mi>
           m 
         </mi> 
         <mi>
           p 
         </mi> 
        </mrow> 
        <mrow> 
         <mi>
           e 
         </mi> 
         <mi>
           n 
         </mi> 
         <mi>
           d 
         </mi> 
        </mrow> 
       </msubsup> 
      </mrow> 
     </math> as an abbreviation of</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mrow> 
        <mo>
          〈 
        </mo> 
        <mrow> 
         <mi>
           p 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             s 
           </mi> 
           <mi>
             t 
           </mi> 
           <mi>
             a 
           </mi> 
           <mi>
             r 
           </mi> 
           <mi>
             t 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mn>
           , 
         </mn> 
         <mi>
           p 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             s 
           </mi> 
           <mi>
             t 
           </mi> 
           <mi>
             a 
           </mi> 
           <mi>
             r 
           </mi> 
           <mi>
             t 
           </mi> 
           <mo>
             + 
           </mo> 
           <mi>
             j 
           </mi> 
           <mi>
             m 
           </mi> 
           <mi>
             p 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mn>
           , 
         </mn> 
         <mo>
           ⋯ 
         </mo> 
         <mn>
           , 
         </mn> 
         <mi>
           p 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             s 
           </mi> 
           <mi>
             t 
           </mi> 
           <mi>
             a 
           </mi> 
           <mi>
             r 
           </mi> 
           <mi>
             t 
           </mi> 
           <mo>
             + 
           </mo> 
           <mi>
             n 
           </mi> 
           <mo>
             ∗ 
           </mo> 
           <mi>
             j 
           </mi> 
           <mi>
             m 
           </mi> 
           <mi>
             p 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mo>
          〉 
        </mo> 
       </mrow> 
      </mrow> 
     </math></p>
    <p>where n is the natural number such that 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         ∗ 
       </mo> 
       <mi>
         j 
       </mi> 
       <mi>
         m 
       </mi> 
       <mi>
         p 
       </mi> 
       <mo>
         ≤ 
       </mo> 
       <mi>
         e 
       </mi> 
       <mi>
         n 
       </mi> 
       <mi>
         d 
       </mi> 
      </mrow> 
     </math> and 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           n 
         </mi> 
         <mo>
           + 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ∗ 
       </mo> 
       <mi>
         j 
       </mi> 
       <mi>
         m 
       </mi> 
       <mi>
         p 
       </mi> 
      </mrow> 
     </math>. For instance:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mtable columnalign="left"> 
       <mtr> 
        <mtd> 
         <msub> 
          <mi>
            p 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mo>
           = 
         </mo> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mtext>
             T 
           </mtext> 
           <mo>
             ≥ 
           </mo> 
           <mn>
             10.00.00 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mo>
             ∧ 
           </mo> 
           <mtext>
             T 
           </mtext> 
           <mo>
             ≤ 
           </mo> 
           <mn>
             10.00.10 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mtd> 
       </mtr> 
       <mtr> 
        <mtd> 
         <msub> 
          <mi>
            p 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
         <mo>
           = 
         </mo> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mtext>
             T 
           </mtext> 
           <mo>
             &gt; 
           </mo> 
           <mn>
             10.00.10 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mo>
             ∧ 
           </mo> 
           <mtext>
             T 
           </mtext> 
           <mo>
             ≤ 
           </mo> 
           <mn>
             10.00.20 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mtd> 
       </mtr> 
       <mtr> 
        <mtd> 
         <msub> 
          <mi>
            p 
          </mi> 
          <mn>
            3 
          </mn> 
         </msub> 
         <mo>
           = 
         </mo> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mtext>
             T 
           </mtext> 
           <mo>
             &gt; 
           </mo> 
           <mn>
             10.00.20 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mo>
             ∧ 
           </mo> 
           <mtext>
             T 
           </mtext> 
           <mo>
             ≤ 
           </mo> 
           <mn>
             10.00.30 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mtd> 
       </mtr> 
       <mtr> 
        <mtd> 
         <msub> 
          <mi>
            p 
          </mi> 
          <mn>
            4 
          </mn> 
         </msub> 
         <mo>
           = 
         </mo> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mtext>
             T 
           </mtext> 
           <mo>
             &gt; 
           </mo> 
           <mn>
             10.00.30 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mo>
             ∧ 
           </mo> 
           <mtext>
             T 
           </mtext> 
           <mo>
             ≤ 
           </mo> 
           <mn>
             10.00.40 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mtd> 
       </mtr> 
       <mtr> 
        <mtd> 
         <msub> 
          <mi>
            p 
          </mi> 
          <mn>
            5 
          </mn> 
         </msub> 
         <mo>
           = 
         </mo> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mtext>
             T 
           </mtext> 
           <mo>
             &gt; 
           </mo> 
           <mn>
             10.00.40 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mo>
             ∧ 
           </mo> 
           <mtext>
             T 
           </mtext> 
           <mo>
             ≤ 
           </mo> 
           <mn>
             10.00.50 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mtd> 
       </mtr> 
       <mtr> 
        <mtd> 
         <msub> 
          <mi>
            p 
          </mi> 
          <mn>
            6 
          </mn> 
         </msub> 
         <mo>
           = 
         </mo> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mtext>
             T 
           </mtext> 
           <mo>
             &gt; 
           </mo> 
           <mn>
             10.00.50 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mo>
             ∧ 
           </mo> 
           <mtext>
             T 
           </mtext> 
           <mo>
             ≤ 
           </mo> 
           <mn>
             10.00.60 
           </mn> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mtd> 
       </mtr> 
      </mtable> 
     </math></p>
    <p>Example 1 (Selection). Let τ be the trace containing the traffic captured between 10:00:000 and 10:00:052 focusing on IP.Prot as shown by <xref ref-type="table" rid="table3">
      Table 3
     </xref>.</p>
    <table-wrap id="table3">
     <label>
      <xref ref-type="table" rid="table3">
       Table 3
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.134853-"></xref>Table 3. Captured traffic.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="acenter" width="149.84%"><p style="text-align:center"><p class="imgGroupCss_v"><img class=" imgMarkCss lazy" data-original="https://html.scirp.org/file/7801031-rId115.jpeg?20240729104235" /></p></p></td> 
      </tr> 
     </table>
    </table-wrap>
    <p>Let 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         φ 
       </mi> 
       <mo>
         = 
       </mo> 
       <msubsup> 
        <mrow> 
         <mrow> 
          <mo>
            〈 
          </mo> 
          <mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <mtext>
               T 
             </mtext> 
             <mo>
               ≥ 
             </mo> 
             <mn>
               10.00. 
             </mn> 
             <mi>
               j 
             </mi> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <mo>
               ∧ 
             </mo> 
             <mtext>
               T 
             </mtext> 
             <mo>
               ≤ 
             </mo> 
             <mn>
               10.00. 
             </mn> 
             <mrow> 
              <mo>
                ( 
              </mo> 
              <mrow> 
               <mi>
                 j 
               </mi> 
               <mo>
                 + 
               </mo> 
               <mn>
                 10 
               </mn> 
              </mrow> 
              <mo>
                ) 
              </mo> 
             </mrow> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mo>
            〉 
          </mo> 
         </mrow> 
        </mrow> 
        <mrow> 
         <mi>
           j 
         </mi> 
         <mo>
           = 
         </mo> 
         <mn>
           0,10 
         </mn> 
        </mrow> 
        <mrow> 
         <mn>
           60 
         </mn> 
        </mrow> 
       </msubsup> 
      </mrow> 
     </math>. When slicing τ using φ, we compute 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          S 
        </mi> 
        <mi>
          φ 
        </mi> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          τ 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math>, resulting in the sequence 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mrow> 
        <mo>
          〈 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            τ 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mn>
           , 
         </mn> 
         <mo>
           ⋯ 
         </mo> 
         <mn>
           , 
         </mn> 
         <msub> 
          <mi>
            τ 
          </mi> 
          <mn>
            6 
          </mn> 
         </msub> 
        </mrow> 
        <mo>
          〉 
        </mo> 
       </mrow> 
      </mrow> 
     </math>, as illustrated in <xref ref-type="table" rid="table4">
      Table 4
     </xref>.</p>
    <table-wrap id="table4">
     <label>
      <xref ref-type="table" rid="table4">
       Table 4
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.134853-"></xref>Table 4. Sliced captured traffic.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="acenter" width="149.84%"><p style="text-align:center"><p class="imgGroupCss_v"><img class=" imgMarkCss lazy" data-original="https://html.scirp.org/file/7801031-rId122.jpeg?20240729104235" /></p></p></td> 
      </tr> 
     </table>
    </table-wrap>
   </sec>
   <sec id="s3_3">
    <title>3.3. Feature Measuring</title>
    <p>Each slice, derived from the preceding step, undergoes transformation into an element in 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          ℝ 
        </mi> 
        <mi>
          n 
        </mi> 
       </msup> 
      </mrow> 
     </math> ( 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         n 
       </mi> 
       <mo>
         ≥ 
       </mo> 
       <mn>
         1 
       </mn> 
      </mrow> 
     </math>) by quantifying certain characteristics through a predefined function F. For simplicity, we concentrate on a class of functions F that produce distributions by tallying events adhering to specified conditions, as delineated in the following definition:</p>
    <p>Definition 6 (Feature Measuring Function). Let q be a propositional formula in PEL and τ be a trace in 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mi mathvariant="script">
        T 
      </mi> 
     </math>. We introduce a slicing function 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          ℱ 
        </mi> 
        <mi>
          q 
        </mi> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          τ 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> inductively as follows: </p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mtable columnalign="left"> 
       <mtr> 
        <mtd> 
         <msub> 
          <mi>
            ℱ 
          </mi> 
          <mi>
            q 
          </mi> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            ϵ 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mn> 
          <mo>
            : 
          </mo> 
          <mo>
            : 
          </mo> 
         </mn> 
         <mo>
           = 
         </mo> 
         <mn>
           0 
         </mn> 
        </mtd> 
       </mtr> 
       <mtr> 
        <mtd> 
         <msub> 
          <mi>
            ℱ 
          </mi> 
          <mi>
            q 
          </mi> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            e 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mn> 
          <mo>
            : 
          </mo> 
          <mo>
            : 
          </mo> 
         </mn> 
         <mo>
           = 
         </mo> 
         <mrow> 
          <mo>
            { 
          </mo> 
          <mrow> 
           <mtable columnalign="left"> 
            <mtr columnalign="left"> 
             <mtd columnalign="left"> 
              <mn>
                0 
              </mn> 
             </mtd> 
             <mtd columnalign="left"> 
              <mrow> 
               <mtext>
                   
               </mtext> 
               <mtext>
                   
               </mtext> 
               <mtext>
                 if 
               </mtext> 
               <mtext>
                   
               </mtext> 
               <mtext>
                   
               </mtext> 
               <mi>
                 q 
               </mi> 
               <mrow> 
                <mo>
                  ( 
                </mo> 
                <mi>
                  e 
                </mi> 
                <mo>
                  ) 
                </mo> 
               </mrow> 
               <mo>
                 = 
               </mo> 
               <mtext>
                 false 
               </mtext> 
              </mrow> 
             </mtd> 
            </mtr> 
            <mtr columnalign="left"> 
             <mtd columnalign="left"> 
              <mn>
                1 
              </mn> 
             </mtd> 
             <mtd columnalign="left"> 
              <mrow> 
               <mtext>
                   
               </mtext> 
               <mtext>
                   
               </mtext> 
               <mtext>
                 if 
               </mtext> 
               <mtext>
                   
               </mtext> 
               <mtext>
                   
               </mtext> 
               <mi>
                 q 
               </mi> 
               <mrow> 
                <mo>
                  ( 
                </mo> 
                <mi>
                  e 
                </mi> 
                <mo>
                  ) 
                </mo> 
               </mrow> 
               <mo>
                 = 
               </mo> 
               <mtext>
                 true 
               </mtext> 
              </mrow> 
             </mtd> 
            </mtr> 
           </mtable> 
          </mrow> 
         </mrow> 
        </mtd> 
       </mtr> 
       <mtr> 
        <mtd> 
         <msub> 
          <mi>
            ℱ 
          </mi> 
          <mi>
            q 
          </mi> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mi>
             e 
           </mi> 
           <mn>
             . 
           </mn> 
           <mi>
             τ 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mn> 
          <mo>
            : 
          </mo> 
          <mo>
            : 
          </mo> 
         </mn> 
         <mo>
           = 
         </mo> 
         <msub> 
          <mi>
            ℱ 
          </mi> 
          <mi>
            q 
          </mi> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            e 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           + 
         </mo> 
         <msub> 
          <mi>
            ℱ 
          </mi> 
          <mi>
            q 
          </mi> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            τ 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mtd> 
       </mtr> 
      </mtable> 
     </math></p>
    <p>Broadly speaking, 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          ℱ 
        </mi> 
        <mi>
          q 
        </mi> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          τ 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> returns the number of packets in τ that satisfy the property q.</p>
    <p>We also extend the selection function to operate on both a sequence of propositions 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          q 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
       <mn>
         , 
       </mn> 
       <mo>
         ⋯ 
       </mo> 
       <mn>
         , 
       </mn> 
       <msub> 
        <mi>
          q 
        </mi> 
        <mi>
          n 
        </mi> 
       </msub> 
      </mrow> 
     </math> and a set of traces as follows:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mtable columnalign="left"> 
       <mtr> 
        <mtd> 
         <msub> 
          <mi>
            ℱ 
          </mi> 
          <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                q 
              </mi> 
              <mn>
                1 
              </mn> 
             </msub> 
             <mo>
               , 
             </mo> 
             <mo>
               ⋯ 
             </mo> 
             <mo>
               , 
             </mo> 
             <msub> 
              <mi>
                q 
              </mi> 
              <mi>
                n 
              </mi> 
             </msub> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            τ 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mrow> 
          <mo>
            〈 
          </mo> 
          <mrow> 
           <msub> 
            <mi>
              ℱ 
            </mi> 
            <mrow> 
             <msub> 
              <mi>
                q 
              </mi> 
              <mn>
                1 
              </mn> 
             </msub> 
            </mrow> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mi>
              τ 
            </mi> 
            <mo>
              ) 
            </mo> 
           </mrow> 
           <mo>
             , 
           </mo> 
           <mo>
             ⋯ 
           </mo> 
           <mo>
             , 
           </mo> 
           <msub> 
            <mi>
              ℱ 
            </mi> 
            <mrow> 
             <msub> 
              <mi>
                q 
              </mi> 
              <mi>
                n 
              </mi> 
             </msub> 
            </mrow> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mi>
              τ 
            </mi> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mo>
            〉 
          </mo> 
         </mrow> 
        </mtd> 
       </mtr> 
       <mtr> 
        <mtd> 
         <msub> 
          <mi>
            ℱ 
          </mi> 
          <mi>
            q 
          </mi> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                τ 
              </mi> 
              <mn>
                1 
              </mn> 
             </msub> 
             <mo>
               , 
             </mo> 
             <mo>
               ⋯ 
             </mo> 
             <mo>
               , 
             </mo> 
             <msub> 
              <mi>
                τ 
              </mi> 
              <mi>
                n 
              </mi> 
             </msub> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mrow> 
          <mo>
            〈 
          </mo> 
          <mrow> 
           <msub> 
            <mi>
              ℱ 
            </mi> 
            <mi>
              q 
            </mi> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                τ 
              </mi> 
              <mn>
                1 
              </mn> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
           <mo>
             ⋯ 
           </mo> 
           <msub> 
            <mi>
              ℱ 
            </mi> 
            <mi>
              q 
            </mi> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                τ 
              </mi> 
              <mi>
                n 
              </mi> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mo>
            〉 
          </mo> 
         </mrow> 
        </mtd> 
       </mtr> 
      </mtable> 
     </math></p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          ℱ 
        </mi> 
        <mi>
          q 
        </mi> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mrow> 
          <mo>
            { 
          </mo> 
          <mrow> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mn>
              1 
            </mn> 
           </msub> 
           <mo>
             , 
           </mo> 
           <mo>
             ⋯ 
           </mo> 
           <mo>
             , 
           </mo> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mi>
              n 
            </mi> 
           </msub> 
          </mrow> 
          <mo>
            } 
          </mo> 
         </mrow> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          { 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            ℱ 
          </mi> 
          <mi>
            q 
          </mi> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mn>
              1 
            </mn> 
           </msub> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           ⋯ 
         </mo> 
         <msub> 
          <mi>
            ℱ 
          </mi> 
          <mi>
            q 
          </mi> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mi>
              n 
            </mi> 
           </msub> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mo>
          } 
        </mo> 
       </mrow> 
      </mrow> 
     </math></p>
    <p>Example 2. Let’s examine the trace provided in Example 1. Let 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         ψ 
       </mi> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          〈 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            q 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mn>
           , 
         </mn> 
         <msub> 
          <mi>
            q 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
         <mn>
           , 
         </mn> 
         <msub> 
          <mi>
            q 
          </mi> 
          <mn>
            3 
          </mn> 
         </msub> 
         <mn>
           , 
         </mn> 
         <msub> 
          <mi>
            q 
          </mi> 
          <mn>
            4 
          </mn> 
         </msub> 
        </mrow> 
        <mo>
          〉 
        </mo> 
       </mrow> 
      </mrow> 
     </math> such that 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          q 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mtext>
           IP 
         </mtext> 
         <mtext>
           .Prot 
         </mtext> 
         <mo>
           = 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math>, 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          q 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mtext>
           IP 
         </mtext> 
         <mtext>
           .Prot 
         </mtext> 
         <mo>
           = 
         </mo> 
         <mn>
           6 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math>, 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          q 
        </mi> 
        <mn>
          3 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mtext>
           IP 
         </mtext> 
         <mtext>
           .Prot 
         </mtext> 
         <mo>
           = 
         </mo> 
         <mn>
           17 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> and 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          q 
        </mi> 
        <mn>
          4 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mtext>
           IP 
         </mtext> 
         <mtext>
           .Prot 
         </mtext> 
         <mo>
           ≠ 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ∧ 
       </mo> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mtext>
           IP 
         </mtext> 
         <mtext>
           .Prot 
         </mtext> 
         <mo>
           ≠ 
         </mo> 
         <mn>
           6 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ∧ 
       </mo> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mtext>
           IP 
         </mtext> 
         <mtext>
           .Prot 
         </mtext> 
         <mo>
           ≠ 
         </mo> 
         <mn>
           17 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math>, then when applying the function 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          ℱ 
        </mi> 
        <mi>
          ψ 
        </mi> 
       </msub> 
      </mrow> 
     </math> to the slices 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          τ 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
       <mn>
         , 
       </mn> 
       <mo>
         ⋯ 
       </mo> 
       <mn>
         , 
       </mn> 
       <msub> 
        <mi>
          τ 
        </mi> 
        <mn>
          6 
        </mn> 
       </msub> 
      </mrow> 
     </math> as depicted in <xref ref-type="table" rid="table4">
      Table 4
     </xref>, the resulting outcomes are as illustrated in <xref ref-type="table" rid="table5">
      Table 5
     </xref>.</p>
    <table-wrap id="table5">
     <label>
      <xref ref-type="table" rid="table5">
       Table 5
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.134853-"></xref>Table 5. Quantification of slices using 

       <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
         
  ℱ
 
        </mi>

       </math>.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td acenter" width="44.09%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi mathvariant="script">
              S 
            </mi> 
            <mi>
              φ 
            </mi> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mi>
              τ 
            </mi> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="custom-bottom-td acenter" width="44.09%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              ℱ 
            </mi> 
            <mi>
              ψ 
            </mi> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                τ 
              </mi> 
              <mi>
                i 
              </mi> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td acenter" width="44.09%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mn>
              1 
            </mn> 
           </msub> 
          </mrow> 
         </math></p></td> 
       <td class="custom-top-td acenter" width="44.09%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mtext>
               1 
             </mtext> 
             <mo>
               , 
             </mo> 
             <mtext>
               3 
             </mtext> 
             <mo>
               , 
             </mo> 
             <mtext>
               1 
             </mtext> 
             <mo>
               , 
             </mo> 
             <mn>
               0 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="44.09%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mn>
              2 
            </mn> 
           </msub> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="44.09%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mtext>
               1 
             </mtext> 
             <mo>
               , 
             </mo> 
             <mtext>
               2 
             </mtext> 
             <mo>
               , 
             </mo> 
             <mtext>
               2 
             </mtext> 
             <mo>
               , 
             </mo> 
             <mn>
               0 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="44.09%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mn>
              3 
            </mn> 
           </msub> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="44.09%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               0 
             </mn> 
             <mo>
               , 
             </mo> 
             <mtext>
               3 
             </mtext> 
             <mo>
               , 
             </mo> 
             <mtext>
               2 
             </mtext> 
             <mo>
               , 
             </mo> 
             <mn>
               0 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="44.09%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mn>
              4 
            </mn> 
           </msub> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="44.09%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               0 
             </mn> 
             <mo>
               , 
             </mo> 
             <mn>
               0 
             </mn> 
             <mo>
               , 
             </mo> 
             <mn>
               0 
             </mn> 
             <mo>
               , 
             </mo> 
             <mtext>
               5 
             </mtext> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="44.09%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mn>
              5 
            </mn> 
           </msub> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="44.09%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               0 
             </mn> 
             <mo>
               , 
             </mo> 
             <mtext>
               2 
             </mtext> 
             <mo>
               , 
             </mo> 
             <mtext>
               1 
             </mtext> 
             <mo>
               , 
             </mo> 
             <mtext>
               1 
             </mtext> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="44.09%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mn>
              6 
            </mn> 
           </msub> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="44.09%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mtext>
               2 
             </mtext> 
             <mo>
               , 
             </mo> 
             <mn>
               0 
             </mn> 
             <mo>
               , 
             </mo> 
             <mn>
               0 
             </mn> 
             <mo>
               , 
             </mo> 
             <mn>
               0 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
      </tr> 
     </table>
    </table-wrap>
    <p>For instance, 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          ℱ 
        </mi> 
        <mi>
          ψ 
        </mi> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            τ 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          〈 
        </mo> 
        <mrow> 
         <mn>
           1,3,1,0 
         </mn> 
        </mrow> 
        <mo>
          〉 
        </mo> 
       </mrow> 
      </mrow> 
     </math> indicates that in slice 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          τ 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
      </mrow> 
     </math>, there is 1 packet with IP.Prot = 1, 3 packets with IP.Prot = 6, 1 packet with IP.Prot = 17, and 0 packets with other IP.Prot values.</p>
    <p>The distributions of these slices serve as inputs to algorithms like KL-Divergence, enabling the measurement of traffic divergence across distinct slices. However, in cases where certain events are absent during observation, their frequencies register as zero, posing a challenge for computing KL-Divergence and potentially leading to division by zero errors. To address this issue, we must either explore alternative divergence techniques or slightly adjust the data distribution through methods such as smoothing. The following definition illustrates one of the well-known smoothing techniques.</p>
    <p>Definition 7 (Laplace Smoothing). Let 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         v 
       </mi> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          〈 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            v 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mn>
           , 
         </mn> 
         <mo>
           ⋯ 
         </mo> 
         <mn>
           , 
         </mn> 
         <msub> 
          <mi>
            v 
          </mi> 
          <mi>
            n 
          </mi> 
         </msub> 
        </mrow> 
        <mo>
          〉 
        </mo> 
       </mrow> 
      </mrow> 
     </math> be a sequence of real numbers. We denote by 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          π 
        </mi> 
        <mi>
          k 
        </mi> 
       </msup> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          v 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> the k-Laplace Smoothing Distribution (k-LSD) of a trace and we define it as follows:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          π 
        </mi> 
        <mi>
          k 
        </mi> 
       </msup> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          v 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          〈 
        </mo> 
        <mrow> 
         <mfrac> 
          <mrow> 
           <mi>
             k 
           </mi> 
           <mo>
             + 
           </mo> 
           <msub> 
            <mi>
              v 
            </mi> 
            <mn>
              1 
            </mn> 
           </msub> 
          </mrow> 
          <mrow> 
           <mi>
             k 
           </mi> 
           <mo>
             + 
           </mo> 
           <mstyle displaystyle="true"> 
            <msubsup> 
             <mo>
               ∑ 
             </mo> 
             <mrow> 
              <mi>
                i 
              </mi> 
              <mo>
                = 
              </mo> 
              <mn>
                1 
              </mn> 
             </mrow> 
             <mi>
               n 
             </mi> 
            </msubsup> 
            <mrow> 
             <msub> 
              <mi>
                v 
              </mi> 
              <mi>
                i 
              </mi> 
             </msub> 
            </mrow> 
           </mstyle> 
          </mrow> 
         </mfrac> 
         <mn>
           , 
         </mn> 
         <mo>
           ⋯ 
         </mo> 
         <mn>
           , 
         </mn> 
         <mfrac> 
          <mrow> 
           <mi>
             k 
           </mi> 
           <mo>
             + 
           </mo> 
           <msub> 
            <mi>
              v 
            </mi> 
            <mi>
              n 
            </mi> 
           </msub> 
          </mrow> 
          <mrow> 
           <mi>
             k 
           </mi> 
           <mo>
             + 
           </mo> 
           <mstyle displaystyle="true"> 
            <msubsup> 
             <mo>
               ∑ 
             </mo> 
             <mrow> 
              <mi>
                i 
              </mi> 
              <mo>
                = 
              </mo> 
              <mn>
                1 
              </mn> 
             </mrow> 
             <mi>
               n 
             </mi> 
            </msubsup> 
            <mrow> 
             <msub> 
              <mi>
                v 
              </mi> 
              <mi>
                i 
              </mi> 
             </msub> 
            </mrow> 
           </mstyle> 
          </mrow> 
         </mfrac> 
        </mrow> 
        <mo>
          〉 
        </mo> 
       </mrow> 
      </mrow> 
     </math></p>
    <p>We augment the function 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        ℱ 
      </mi> 
     </math> with Laplace smoothing as follows:</p>
    <p>Definition 8 (Feature Measuring Function with Smoothing). We denote by 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mover accent="true"> 
         <mi>
           ℱ 
         </mi> 
         <mo>
           ^ 
         </mo> 
        </mover> 
        <mi>
          p 
        </mi> 
       </msub> 
      </mrow> 
     </math>, the smoothed version of 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          ℱ 
        </mi> 
        <mi>
          p 
        </mi> 
       </msub> 
      </mrow> 
     </math> achieved through the application of the smoothing function 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          π 
        </mi> 
        <mn>
          1 
        </mn> 
       </msup> 
      </mrow> 
     </math>. More formally:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mover accent="true"> 
         <mi>
           ℱ 
         </mi> 
         <mo>
           ^ 
         </mo> 
        </mover> 
        <mi>
          p 
        </mi> 
       </msub> 
       <mo>
         = 
       </mo> 
       <msup> 
        <mi>
          π 
        </mi> 
        <mn>
          1 
        </mn> 
       </msup> 
       <mo>
         ∘ 
       </mo> 
       <msub> 
        <mi>
          ℱ 
        </mi> 
        <mi>
          p 
        </mi> 
       </msub> 
      </mrow> 
     </math></p>
    <p>Example 3. By applying 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          π 
        </mi> 
        <mn>
          1 
        </mn> 
       </msup> 
      </mrow> 
     </math> to column 2 of <xref ref-type="table" rid="table5">
      Table 5
     </xref>, we obtain 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mover accent="true"> 
         <mi>
           ℱ 
         </mi> 
         <mo>
           ^ 
         </mo> 
        </mover> 
        <mi>
          ψ 
        </mi> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            τ 
          </mi> 
          <mi>
            i 
          </mi> 
         </msub> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> as shown by column 3 of <xref ref-type="table" rid="table6">
      Table 6
     </xref>.</p>
    <table-wrap id="table6">
     <label>
      <xref ref-type="table" rid="table6">
       Table 6
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.134853-"></xref>Table 6. Quantification and smoothing of slices using 

       <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mover accent="true"> 
  
         <mi>
          
   ℱ
  
         </mi> 
  
         <mo>
          
   ^
  
         </mo> 
 
        </mover> 

       </math>.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td acenter" width="15.10%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi mathvariant="script">
              S 
            </mi> 
            <mi>
              φ 
            </mi> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mi>
              τ 
            </mi> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="custom-bottom-td acenter" width="25.86%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              ℱ 
            </mi> 
            <mi>
              ψ 
            </mi> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                τ 
              </mi> 
              <mi>
                i 
              </mi> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="custom-bottom-td acenter" width="66.81%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mover accent="true"> 
             <mi>
               ℱ 
             </mi> 
             <mo>
               ^ 
             </mo> 
            </mover> 
            <mi>
              ψ 
            </mi> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                τ 
              </mi> 
              <mi>
                i 
              </mi> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td acenter" width="15.10%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mn>
              1 
            </mn> 
           </msub> 
          </mrow> 
         </math></p></td> 
       <td class="custom-top-td acenter" width="25.86%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               1,3,1,0 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="custom-top-td acenter" width="66.81%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mfrac> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 1 
               </mn> 
              </mrow> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 5 
               </mn> 
              </mrow> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 3 
               </mn> 
              </mrow> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 5 
               </mn> 
              </mrow> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 1 
               </mn> 
              </mrow> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 5 
               </mn> 
              </mrow> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 0 
               </mn> 
              </mrow> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 5 
               </mn> 
              </mrow> 
             </mfrac> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
           <mo>
             = 
           </mo> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                3 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                2 
              </mn> 
              <mn>
                3 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                3 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                6 
              </mn> 
             </mfrac> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="15.10%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mn>
              2 
            </mn> 
           </msub> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="25.86%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               1,2,2,0 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="66.81%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mfrac> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 1 
               </mn> 
              </mrow> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 5 
               </mn> 
              </mrow> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 2 
               </mn> 
              </mrow> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 5 
               </mn> 
              </mrow> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 2 
               </mn> 
              </mrow> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 5 
               </mn> 
              </mrow> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 0 
               </mn> 
              </mrow> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 5 
               </mn> 
              </mrow> 
             </mfrac> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
           <mo>
             = 
           </mo> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                3 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                2 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                2 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                6 
              </mn> 
             </mfrac> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="15.10%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mn>
              3 
            </mn> 
           </msub> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="25.86%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               0,3,2,0 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="66.81%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mfrac> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 0 
               </mn> 
              </mrow> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 5 
               </mn> 
              </mrow> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 3 
               </mn> 
              </mrow> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 5 
               </mn> 
              </mrow> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 2 
               </mn> 
              </mrow> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 5 
               </mn> 
              </mrow> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 0 
               </mn> 
              </mrow> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 5 
               </mn> 
              </mrow> 
             </mfrac> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
           <mo>
             = 
           </mo> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                6 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                2 
              </mn> 
              <mn>
                6 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                2 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                6 
              </mn> 
             </mfrac> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="15.10%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mn>
              4 
            </mn> 
           </msub> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="25.86%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               0,0,0,5 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="66.81%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mfrac> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 0 
               </mn> 
              </mrow> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 5 
               </mn> 
              </mrow> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 0 
               </mn> 
              </mrow> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 5 
               </mn> 
              </mrow> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 0 
               </mn> 
              </mrow> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 5 
               </mn> 
              </mrow> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 5 
               </mn> 
              </mrow> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 5 
               </mn> 
              </mrow> 
             </mfrac> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
           <mo>
             = 
           </mo> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                6 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                6 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                6 
              </mn> 
             </mfrac> 
             <mn>
               ,1 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="15.10%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mn>
              5 
            </mn> 
           </msub> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="25.86%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               0,2,1,1 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="66.81%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mfrac> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 0 
               </mn> 
              </mrow> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 5 
               </mn> 
              </mrow> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 2 
               </mn> 
              </mrow> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 5 
               </mn> 
              </mrow> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 1 
               </mn> 
              </mrow> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 5 
               </mn> 
              </mrow> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 1 
               </mn> 
              </mrow> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 5 
               </mn> 
              </mrow> 
             </mfrac> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
           <mo>
             = 
           </mo> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                6 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                2 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                3 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                3 
              </mn> 
             </mfrac> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="15.10%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mn>
              6 
            </mn> 
           </msub> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="25.86%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               2,0,0,0 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="66.81%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mfrac> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 2 
               </mn> 
              </mrow> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 5 
               </mn> 
              </mrow> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 0 
               </mn> 
              </mrow> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 5 
               </mn> 
              </mrow> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 0 
               </mn> 
              </mrow> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 5 
               </mn> 
              </mrow> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 0 
               </mn> 
              </mrow> 
              <mrow> 
               <mn>
                 1 
               </mn> 
               <mo>
                 + 
               </mo> 
               <mn>
                 5 
               </mn> 
              </mrow> 
             </mfrac> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
           <mo>
             = 
           </mo> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                2 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                6 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                6 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                6 
              </mn> 
             </mfrac> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
      </tr> 
     </table>
    </table-wrap>
    <p>When detecting suspicious activities within traffic data, it can be advantageous to prioritize specific positions within the values returned by 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mover accent="true"> 
       <mi>
         ℱ 
       </mi> 
       <mo>
         ^ 
       </mo> 
      </mover> 
     </math> in 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          ℝ 
        </mi> 
        <mi>
          n 
        </mi> 
       </msup> 
      </mrow> 
     </math>. For instance, if 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mover accent="true"> 
       <mi>
         ℱ 
       </mi> 
       <mo>
         ^ 
       </mo> 
      </mover> 
     </math> yields 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            v 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mn>
           , 
         </mn> 
         <mo>
           ⋯ 
         </mo> 
         <mn>
           , 
         </mn> 
         <msub> 
          <mi>
            v 
          </mi> 
          <mi>
            n 
          </mi> 
         </msub> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> where each 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          v 
        </mi> 
        <mi>
          i 
        </mi> 
       </msub> 
      </mrow> 
     </math> represents traffic originating from a specific country, these values might be weighted according to the respective country’s reputation in cyberattacks, assigning greater weight to countries with negative reputations. Presently, there’s a lack of a systematic approach to guide end users in determining these weight values. However, we believe that fine-tuning these weights based on intuition could enhance detection capabilities.</p>
    <p>The subsequent definition formalizes the concept of weights.</p>
    <p>Definition 9 (Weighting Function ω). We denote by ω a weighting function that accepts weights in 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <msup> 
            <mi>
              ℝ 
            </mi> 
            <mo>
              + 
            </mo> 
           </msup> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mi>
          n 
        </mi> 
       </msup> 
      </mrow> 
     </math>, a tuple in 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          ℝ 
        </mi> 
        <mi>
          n 
        </mi> 
       </msup> 
      </mrow> 
     </math>, and returns a probability distribution, i.e.: 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         ω 
       </mi> 
       <mn> 
        <mo>
          : 
        </mo> 
       </mn> 
       <msup> 
        <mrow> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <msup> 
            <mi>
              ℝ 
            </mi> 
            <mo>
              + 
            </mo> 
           </msup> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mi>
          n 
        </mi> 
       </msup> 
       <mo>
         × 
       </mo> 
       <msup> 
        <mi>
          ℝ 
        </mi> 
        <mi>
          n 
        </mi> 
       </msup> 
       <mo>
         → 
       </mo> 
       <msup> 
        <mrow> 
         <mrow> 
          <mo>
            [ 
          </mo> 
          <mrow> 
           <mn>
             0,1 
           </mn> 
          </mrow> 
          <mo>
            ] 
          </mo> 
         </mrow> 
        </mrow> 
        <mi>
          n 
        </mi> 
       </msup> 
      </mrow> 
     </math>.</p>
    <p>Let 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          V 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
       <mn>
         , 
       </mn> 
       <mo>
         ⋯ 
       </mo> 
       <mn>
         , 
       </mn> 
       <msub> 
        <mi>
          V 
        </mi> 
        <mi>
          m 
        </mi> 
       </msub> 
      </mrow> 
     </math> be in 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          ℝ 
        </mi> 
        <mi>
          n 
        </mi> 
       </msup> 
      </mrow> 
     </math>). We extend ω to a set 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mrow> 
        <mo>
          { 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            V 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mn>
           , 
         </mn> 
         <mo>
           ⋯ 
         </mo> 
         <mn>
           , 
         </mn> 
         <msub> 
          <mi>
            V 
          </mi> 
          <mi>
            m 
          </mi> 
         </msub> 
        </mrow> 
        <mo>
          } 
        </mo> 
       </mrow> 
      </mrow> 
     </math> and a sequences 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mrow> 
        <mo>
          〈 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            V 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mn>
           , 
         </mn> 
         <mo>
           ⋯ 
         </mo> 
         <mn>
           , 
         </mn> 
         <msub> 
          <mi>
            V 
          </mi> 
          <mi>
            m 
          </mi> 
         </msub> 
        </mrow> 
        <mo>
          〉 
        </mo> 
       </mrow> 
      </mrow> 
     </math> of tuples as follows:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mtable columnalign="left"> 
       <mtr> 
        <mtd> 
         <mi>
           ω 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mrow> 
            <mo>
              { 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                V 
              </mi> 
              <mn>
                1 
              </mn> 
             </msub> 
             <mn>
               , 
             </mn> 
             <mo>
               ⋯ 
             </mo> 
             <mn>
               , 
             </mn> 
             <msub> 
              <mi>
                V 
              </mi> 
              <mi>
                m 
              </mi> 
             </msub> 
            </mrow> 
            <mo>
              } 
            </mo> 
           </mrow> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mrow> 
          <mo>
            { 
          </mo> 
          <mrow> 
           <mi>
             ω 
           </mi> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                V 
              </mi> 
              <mn>
                1 
              </mn> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
           <mn>
             , 
           </mn> 
           <mo>
             ⋯ 
           </mo> 
           <mn>
             , 
           </mn> 
           <mi>
             ω 
           </mi> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                V 
              </mi> 
              <mi>
                m 
              </mi> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mo>
            } 
          </mo> 
         </mrow> 
        </mtd> 
       </mtr> 
       <mtr> 
        <mtd> 
         <mi>
           ω 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                V 
              </mi> 
              <mn>
                1 
              </mn> 
             </msub> 
             <mn>
               , 
             </mn> 
             <mo>
               ⋯ 
             </mo> 
             <mn>
               , 
             </mn> 
             <msub> 
              <mi>
                V 
              </mi> 
              <mi>
                m 
              </mi> 
             </msub> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mrow> 
          <mo>
            〈 
          </mo> 
          <mrow> 
           <mi>
             ω 
           </mi> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                V 
              </mi> 
              <mn>
                1 
              </mn> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
           <mn>
             , 
           </mn> 
           <mo>
             ⋯ 
           </mo> 
           <mn>
             , 
           </mn> 
           <mi>
             ω 
           </mi> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                V 
              </mi> 
              <mi>
                m 
              </mi> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mo>
            〉 
          </mo> 
         </mrow> 
        </mtd> 
       </mtr> 
      </mtable> 
     </math></p>
    <p>The following definition provides an example of ω.</p>
    <p>Definition 10. (Product Scalar Weighting Function) We define the scalar product weighting function, abbreviated as spw, as follows: 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mtable columnalign="left"> 
       <mtr> 
        <mtd> 
         <mtext>
           spw 
         </mtext> 
         <mn> 
          <mo>
            : 
          </mo> 
         </mn> 
         <msup> 
          <mrow> 
           <mo>
             ( 
           </mo> 
           <mrow> 
            <msup> 
             <mi>
               ℝ 
             </mi> 
             <mo>
               + 
             </mo> 
            </msup> 
           </mrow> 
           <mo>
             ) 
           </mo> 
          </mrow> 
          <mi>
            n 
          </mi> 
         </msup> 
         <mo>
           × 
         </mo> 
         <msup> 
          <mi>
            ℝ 
          </mi> 
          <mi>
            n 
          </mi> 
         </msup> 
         <mo>
           → 
         </mo> 
         <msup> 
          <mrow> 
           <mo>
             [ 
           </mo> 
           <mrow> 
            <mn>
              0,1 
            </mn> 
           </mrow> 
           <mo>
             ] 
           </mo> 
          </mrow> 
          <mi>
            n 
          </mi> 
         </msup> 
        </mtd> 
       </mtr> 
       <mtr> 
        <mtd> 
         <mtext>
           spw 
         </mtext> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mrow> 
           <mtext>
             w 
           </mtext> 
           <mn>
             , 
           </mn> 
           <mi>
             v 
           </mi> 
          </mrow> 
          <mo>
            ) 
          </mo> 
         </mrow> 
         <mo>
           = 
         </mo> 
         <mrow> 
          <mo>
            〈 
          </mo> 
          <mrow> 
           <mfrac> 
            <mrow> 
             <msub> 
              <mtext>
                w 
              </mtext> 
              <mn>
                1 
              </mn> 
             </msub> 
             <mo>
               × 
             </mo> 
             <msub> 
              <mi>
                v 
              </mi> 
              <mn>
                1 
              </mn> 
             </msub> 
            </mrow> 
            <mrow> 
             <mtext>
               w 
             </mtext> 
             <mn>
               . 
             </mn> 
             <mi>
               v 
             </mi> 
            </mrow> 
           </mfrac> 
           <mn>
             , 
           </mn> 
           <mo>
             ⋯ 
           </mo> 
           <mn>
             , 
           </mn> 
           <mfrac> 
            <mrow> 
             <msub> 
              <mtext>
                w 
              </mtext> 
              <mi>
                n 
              </mi> 
             </msub> 
             <mo>
               × 
             </mo> 
             <msub> 
              <mi>
                v 
              </mi> 
              <mi>
                n 
              </mi> 
             </msub> 
            </mrow> 
            <mrow> 
             <mtext>
               w 
             </mtext> 
             <mn>
               . 
             </mn> 
             <mi>
               v 
             </mi> 
            </mrow> 
           </mfrac> 
          </mrow> 
          <mo>
            〉 
          </mo> 
         </mrow> 
        </mtd> 
       </mtr> 
      </mtable> 
     </math> where 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         w 
       </mi> 
       <mn>
         . 
       </mn> 
       <mi>
         u 
       </mi> 
      </mrow> 
     </math> is the scalar product of the tow vectors w and u, i.e.: 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         w 
       </mtext> 
       <mo>
         . 
       </mo> 
       <mi>
         u 
       </mi> 
       <mo>
         = 
       </mo> 
       <mstyle displaystyle="true"> 
        <munderover> 
         <mo>
           ∑ 
         </mo> 
         <mrow> 
          <mi>
            i 
          </mi> 
          <mo>
            = 
          </mo> 
          <mn>
            1 
          </mn> 
         </mrow> 
         <mi>
           n 
         </mi> 
        </munderover> 
       </mstyle> 
       <mtext>
           
       </mtext> 
       <mtext>
           
       </mtext> 
       <msub> 
        <mtext>
          w 
        </mtext> 
        <mi>
          i 
        </mi> 
       </msub> 
       <mo>
         × 
       </mo> 
       <msub> 
        <mi>
          v 
        </mi> 
        <mi>
          i 
        </mi> 
       </msub> 
      </mrow> 
     </math></p>
    <p>We extend the function 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mover accent="true"> 
       <mi>
         ℱ 
       </mi> 
       <mo>
         ^ 
       </mo> 
      </mover> 
     </math> by incorporating a weighting function as follows:</p>
    <p>Definition 11 (Feature Measuring Function with Smoothing and Weighting). Let ω a weighting function. In the sequel, we denote by 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mover accent="true"> 
         <mi>
           ℱ 
         </mi> 
         <mo>
           ^ 
         </mo> 
        </mover> 
        <mrow> 
         <mi>
           p 
         </mi> 
         <mn>
           , 
         </mn> 
         <mi>
           ω 
         </mi> 
        </mrow> 
       </msub> 
      </mrow> 
     </math>, the weighted version of 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mover accent="true"> 
         <mi>
           ℱ 
         </mi> 
         <mo>
           ^ 
         </mo> 
        </mover> 
        <mi>
          p 
        </mi> 
       </msub> 
      </mrow> 
     </math> using the weighting function ω. More precisely: 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mover accent="true"> 
         <mi>
           ℱ 
         </mi> 
         <mo>
           ^ 
         </mo> 
        </mover> 
        <mrow> 
         <mi>
           p 
         </mi> 
         <mn>
           , 
         </mn> 
         <mi>
           ω 
         </mi> 
        </mrow> 
       </msub> 
       <mo>
         = 
       </mo> 
       <mi>
         ω 
       </mi> 
       <mo>
         ∘ 
       </mo> 
       <msub> 
        <mover accent="true"> 
         <mi>
           ℱ 
         </mi> 
         <mo>
           ^ 
         </mo> 
        </mover> 
        <mi>
          p 
        </mi> 
       </msub> 
      </mrow> 
     </math> and for any trace τ and a weight vector w, we have: 
     <math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"> <mrow> 
       <msub> 
        <mover accent="true"> 
         <mi>
           ℱ 
         </mi> 
         <mo>
           ^ 
         </mo> 
        </mover> 
        <mrow> 
         <mi>
           p 
         </mi> 
         <mn>
           , 
         </mn> 
         <mi>
           ω 
         </mi> 
        </mrow> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mtext>
           w 
         </mtext> 
         <mn>
           , 
         </mn> 
         <mi>
           τ 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mi>
         ω 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mtext>
           w 
         </mtext> 
         <mn>
           , 
         </mn> 
         <msub> 
          <mover accent="true"> 
           <mi>
             ℱ 
           </mi> 
           <mo>
             ^ 
           </mo> 
          </mover> 
          <mi>
            p 
          </mi> 
         </msub> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            τ 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math></p>
    <p>Example 4. Let’s examine the trace provided in Example 3. Suppose we aim to prioritize packets containing ports not in 1, 6, 17. As an example, we apply the weighting function 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         ω 
       </mi> 
       <mo>
         = 
       </mo> 
       <mtext>
         spw 
       </mtext> 
      </mrow> 
     </math> with weights 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         w 
       </mtext> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          〈 
        </mo> 
        <mrow> 
         <mn>
           0.2,0.2,0.2,0.4 
         </mn> 
        </mrow> 
        <mo>
          〉 
        </mo> 
       </mrow> 
      </mrow> 
     </math>. The results are illustrated in <xref ref-type="table" rid="table7">
      Table 7
     </xref>.</p>
    <table-wrap id="table7">
     <label>
      <xref ref-type="table" rid="table7">
       Table 7
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.134853-"></xref>Table 7. Slice distribution.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td acenter" width="15.95%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi mathvariant="script">
              S 
            </mi> 
            <mi>
              φ 
            </mi> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mi>
              τ 
            </mi> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="custom-bottom-td acenter" width="21.56%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              ℱ 
            </mi> 
            <mi>
              ψ 
            </mi> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                τ 
              </mi> 
              <mi>
                i 
              </mi> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="custom-bottom-td acenter" width="23.70%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mover accent="true"> 
             <mi>
               ℱ 
             </mi> 
             <mo>
               ^ 
             </mo> 
            </mover> 
            <mi>
              ψ 
            </mi> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                τ 
              </mi> 
              <mi>
                i 
              </mi> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="custom-bottom-td acenter" width="38.79%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mover accent="true"> 
             <mi>
               ℱ 
             </mi> 
             <mo>
               ^ 
             </mo> 
            </mover> 
            <mrow> 
             <mi>
               ψ 
             </mi> 
             <mn>
               , 
             </mn> 
             <mi>
               ω 
             </mi> 
            </mrow> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <mi>
               w 
             </mi> 
             <mn>
               , 
             </mn> 
             <msub> 
              <mi>
                τ 
              </mi> 
              <mi>
                i 
              </mi> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td acenter" width="15.95%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mn>
              1 
            </mn> 
           </msub> 
          </mrow> 
         </math></p></td> 
       <td class="custom-top-td acenter" width="21.56%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               1,3,1,0 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="custom-top-td acenter" width="23.70%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                3 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                2 
              </mn> 
              <mn>
                3 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                3 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                6 
              </mn> 
             </mfrac> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="custom-top-td acenter" width="38.79%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               0.2,0.4,0.2,0.2 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="15.95%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mn>
              2 
            </mn> 
           </msub> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="21.56%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               1,2,2,0 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="23.70%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                3 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                2 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                2 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                6 
              </mn> 
             </mfrac> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="38.79%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               0.2,0.3,0.3,0.2 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="15.95%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mn>
              3 
            </mn> 
           </msub> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="21.56%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               0,3,2,0 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="23.70%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                6 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                2 
              </mn> 
              <mn>
                6 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                2 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                6 
              </mn> 
             </mfrac> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="38.79%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               0.1,0.4,0.3,0.2 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="15.95%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mn>
              4 
            </mn> 
           </msub> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="21.56%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               0,0,0,5 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="23.70%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                6 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                6 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                6 
              </mn> 
             </mfrac> 
             <mn>
               ,1 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="38.79%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               0.067,0.067,0.67,0.8 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="15.95%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mn>
              5 
            </mn> 
           </msub> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="21.56%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               0,2,1,1 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="23.70%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                6 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                2 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                3 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                3 
              </mn> 
             </mfrac> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="38.79%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               0.1,0.3,0.2,0.4 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="15.95%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mn>
              6 
            </mn> 
           </msub> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="21.56%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               2,0,0,0 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="23.70%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                2 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                6 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                6 
              </mn> 
             </mfrac> 
             <mn>
               , 
             </mn> 
             <mfrac> 
              <mn>
                1 
              </mn> 
              <mn>
                6 
              </mn> 
             </mfrac> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="acenter" width="38.79%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               0.429,0.143,0.143,0.286 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
      </tr> 
     </table>
    </table-wrap>
   </sec>
   <sec id="s3_4">
    <title>3.4. Divergence Measuring</title>
    <p>After abstracting and transforming the traffic into smoothed distributions, the next step involves measuring the divergence between adjacent slices within each sequence. To achieve this, we employ a divergence function such as the KL-Divergence.</p>
    <p>Definition 12 (Divergence Function). A divergence measuring function, denoted by Δ, can be any function with the following signature: 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         Δ 
       </mi> 
       <mn> 
        <mo>
          : 
        </mo> 
       </mn> 
       <msup> 
        <mrow> 
         <mrow> 
          <mo>
            [ 
          </mo> 
          <mrow> 
           <mn>
             0,1 
           </mn> 
          </mrow> 
          <mo>
            ] 
          </mo> 
         </mrow> 
        </mrow> 
        <mi>
          n 
        </mi> 
       </msup> 
       <mo>
         × 
       </mo> 
       <msup> 
        <mrow> 
         <mrow> 
          <mo>
            [ 
          </mo> 
          <mrow> 
           <mn>
             0,1 
           </mn> 
          </mrow> 
          <mo>
            ] 
          </mo> 
         </mrow> 
        </mrow> 
        <mi>
          n 
        </mi> 
       </msup> 
       <mo>
         → 
       </mo> 
       <mi>
         ℝ 
       </mi> 
      </mrow> 
     </math>.</p>
    <p>Examples of divergence measuring functions are given in <xref ref-type="table" rid="table8">
      Table 8
     </xref>.</p>
    <table-wrap id="table8">
     <label>
      <xref ref-type="table" rid="table8">
       Table 8
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.134853-"></xref>Table 8. Examples of divergence functions.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td acenter" width="100.00%" colspan="3"><p style="text-align:center">Divergence</p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td acenter" width="11.11%"><p style="text-align:center">Δ</p></td> 
       <td class="custom-top-td acenter" width="11.11%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mo>
             : 
           </mo> 
           <mo>
             : 
           </mo> 
           <mo>
             = 
           </mo> 
          </mrow> 
         </math></p></td> 
       <td class="custom-top-td acenter" width="77.78%"><p style="text-align:center">KL-Divergence <xref ref-type="bibr" rid="scirp.134853-23">
          [23]
         </xref> | Cosine <xref ref-type="bibr" rid="scirp.134853-24">
          [24]
         </xref> |TF-IDF <xref ref-type="bibr" rid="scirp.134853-25">
          [25]
         </xref> |…</p></td> 
      </tr> 
     </table>
    </table-wrap>
    <p>Notice that, since the KL-Divergence, usually denoted by 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          D 
        </mi> 
        <mrow> 
         <mi>
           K 
         </mi> 
         <mi>
           L 
         </mi> 
        </mrow> 
       </msub> 
      </mrow> 
     </math>, between two distributions 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         P 
       </mi> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            p 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mn>
           , 
         </mn> 
         <mo>
           ⋯ 
         </mo> 
         <mn>
           , 
         </mn> 
         <msub> 
          <mi>
            p 
          </mi> 
          <mi>
            n 
          </mi> 
         </msub> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> and 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         Q 
       </mi> 
       <mo>
         = 
       </mo> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            q 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <mn>
           , 
         </mn> 
         <mo>
           ⋯ 
         </mo> 
         <mn>
           , 
         </mn> 
         <msub> 
          <mi>
            q 
          </mi> 
          <mi>
            n 
          </mi> 
         </msub> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> is not commutative (i.e., 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          D 
        </mi> 
        <mrow> 
         <mi>
           K 
         </mi> 
         <mi>
           L 
         </mi> 
        </mrow> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           P 
         </mi> 
         <mn> 
          <mo>
            | 
          </mo> 
          <mo>
            | 
          </mo> 
         </mn> 
         <mi>
           Q 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         ≠ 
       </mo> 
       <msub> 
        <mi>
          D 
        </mi> 
        <mrow> 
         <mi>
           K 
         </mi> 
         <mi>
           L 
         </mi> 
        </mrow> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           Q 
         </mi> 
         <mn> 
          <mo>
            | 
          </mo> 
          <mo>
            | 
          </mo> 
         </mn> 
         <mi>
           P 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> as shown by Equations (1) and (2)), we can consider 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         Δ 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           P 
         </mi> 
         <mn>
           , 
         </mn> 
         <mi>
           Q 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mi>
         K 
       </mi> 
       <mi>
         L 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           P 
         </mi> 
         <mn>
           , 
         </mn> 
         <mi>
           Q 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <msub> 
        <mi>
          D 
        </mi> 
        <mrow> 
         <mi>
           K 
         </mi> 
         <mi>
           L 
         </mi> 
        </mrow> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           P 
         </mi> 
         <mn> 
          <mo>
            | 
          </mo> 
          <mo>
            | 
          </mo> 
         </mn> 
         <mi>
           Q 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         + 
       </mo> 
       <msub> 
        <mi>
          D 
        </mi> 
        <mrow> 
         <mi>
           K 
         </mi> 
         <mi>
           L 
         </mi> 
        </mrow> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           Q 
         </mi> 
         <mn> 
          <mo>
            | 
          </mo> 
          <mo>
            | 
          </mo> 
         </mn> 
         <mi>
           P 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> as the divergence value.</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          D 
        </mi> 
        <mrow> 
         <mi>
           K 
         </mi> 
         <mi>
           L 
         </mi> 
        </mrow> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           P 
         </mi> 
         <mo>
           | 
         </mo> 
         <mo>
           | 
         </mo> 
         <mi>
           Q 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mstyle displaystyle="true"> 
        <munderover> 
         <mo>
           ∑ 
         </mo> 
         <mrow> 
          <mi>
            i 
          </mi> 
          <mo>
            = 
          </mo> 
          <mn>
            1 
          </mn> 
         </mrow> 
         <mi>
           n 
         </mi> 
        </munderover> 
       </mstyle> 
       <mtext>
           
       </mtext> 
       <mtext>
           
       </mtext> 
       <msub> 
        <mi>
          p 
        </mi> 
        <mi>
          i 
        </mi> 
       </msub> 
       <mo>
         × 
       </mo> 
       <msub> 
        <mrow> 
         <mi>
           log 
         </mi> 
        </mrow> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mfrac> 
          <mrow> 
           <msub> 
            <mi>
              p 
            </mi> 
            <mi>
              i 
            </mi> 
           </msub> 
          </mrow> 
          <mrow> 
           <msub> 
            <mi>
              q 
            </mi> 
            <mi>
              i 
            </mi> 
           </msub> 
          </mrow> 
         </mfrac> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math>(1)</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          D 
        </mi> 
        <mrow> 
         <mi>
           K 
         </mi> 
         <mi>
           L 
         </mi> 
        </mrow> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           Q 
         </mi> 
         <mo>
           | 
         </mo> 
         <mo>
           | 
         </mo> 
         <mi>
           P 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mstyle displaystyle="true"> 
        <munderover> 
         <mo>
           ∑ 
         </mo> 
         <mrow> 
          <mi>
            i 
          </mi> 
          <mo>
            = 
          </mo> 
          <mn>
            1 
          </mn> 
         </mrow> 
         <mi>
           n 
         </mi> 
        </munderover> 
       </mstyle> 
       <mtext>
           
       </mtext> 
       <mtext>
           
       </mtext> 
       <msub> 
        <mi>
          q 
        </mi> 
        <mi>
          i 
        </mi> 
       </msub> 
       <mo>
         × 
       </mo> 
       <msub> 
        <mrow> 
         <mi>
           log 
         </mi> 
        </mrow> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mfrac> 
          <mrow> 
           <msub> 
            <mi>
              q 
            </mi> 
            <mi>
              i 
            </mi> 
           </msub> 
          </mrow> 
          <mrow> 
           <msub> 
            <mi>
              p 
            </mi> 
            <mi>
              i 
            </mi> 
           </msub> 
          </mrow> 
         </mfrac> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math>(2)</p>
    <p>Example 5. We apply the KL-Divergence to the trace of Example 4. The result is shown by <xref ref-type="table" rid="table9">
      Table 9
     </xref>.</p>
    <table-wrap id="table9">
     <label>
      <xref ref-type="table" rid="table9">
       Table 9
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.134853-"></xref>Table 9. Slice distribution.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td acenter"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi mathvariant="script">
              S 
            </mi> 
            <mi>
              φ 
            </mi> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mi>
              τ 
            </mi> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="custom-bottom-td acenter"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              ℱ 
            </mi> 
            <mi>
              ψ 
            </mi> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                τ 
              </mi> 
              <mi>
                i 
              </mi> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="custom-bottom-td acenter"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              u 
            </mi> 
            <mi>
              i 
            </mi> 
           </msub> 
           <mo>
             = 
           </mo> 
           <msub> 
            <mover accent="true"> 
             <mi>
               ℱ 
             </mi> 
             <mo>
               ^ 
             </mo> 
            </mover> 
            <mrow> 
             <mi>
               ψ 
             </mi> 
             <mn>
               , 
             </mn> 
             <mi>
               ω 
             </mi> 
            </mrow> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <mi>
               w 
             </mi> 
             <mn>
               , 
             </mn> 
             <msub> 
              <mi>
                τ 
              </mi> 
              <mi>
                i 
              </mi> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="custom-bottom-td acenter"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mi>
             P 
           </mi> 
           <mi>
             K 
           </mi> 
           <mi>
             L 
           </mi> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                u 
              </mi> 
              <mi>
                i 
              </mi> 
             </msub> 
             <mn>
               , 
             </mn> 
             <msub> 
              <mi>
                u 
              </mi> 
              <mrow> 
               <mi>
                 i 
               </mi> 
               <mo>
                 + 
               </mo> 
               <mn>
                 1 
               </mn> 
              </mrow> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="custom-bottom-td acenter"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mi>
             P 
           </mi> 
           <mi>
             K 
           </mi> 
           <mi>
             L 
           </mi> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                u 
              </mi> 
              <mrow> 
               <mi>
                 i 
               </mi> 
               <mo>
                 + 
               </mo> 
               <mn>
                 1 
               </mn> 
              </mrow> 
             </msub> 
             <mn>
               , 
             </mn> 
             <msub> 
              <mi>
                u 
              </mi> 
              <mi>
                i 
              </mi> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="custom-bottom-td acenter"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mi>
             K 
           </mi> 
           <mi>
             L 
           </mi> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                u 
              </mi> 
              <mi>
                i 
              </mi> 
             </msub> 
             <mn>
               , 
             </mn> 
             <msub> 
              <mi>
                u 
              </mi> 
              <mrow> 
               <mi>
                 i 
               </mi> 
               <mo>
                 + 
               </mo> 
               <mn>
                 1 
               </mn> 
              </mrow> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
      </tr> 
      <tr> 
       <td class="acenter"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mn>
              1 
            </mn> 
           </msub> 
          </mrow> 
         </math></p></td> 
       <td class="acenter"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               1,3,1,0 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="acenter"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              u 
            </mi> 
            <mn>
              1 
            </mn> 
           </msub> 
           <mo>
             = 
           </mo> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               0.2,0.4,0.2,0.2 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="acenter"><p style="text-align:center">0.049</p></td> 
       <td class="acenter"><p style="text-align:center">0.51</p></td> 
       <td class="acenter"><p style="text-align:center">1</p></td> 
      </tr> 
      <tr> 
       <td class="acenter"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mn>
              2 
            </mn> 
           </msub> 
          </mrow> 
         </math></p></td> 
       <td class="acenter"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               1,2,2,0 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="acenter"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              u 
            </mi> 
            <mn>
              2 
            </mn> 
           </msub> 
           <mo>
             = 
           </mo> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               0.2,0.3,0.3,0.2 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="acenter"><p style="text-align:center">0.0755</p></td> 
       <td class="acenter"><p style="text-align:center">0.066</p></td> 
       <td class="acenter"><p style="text-align:center">0.142</p></td> 
      </tr> 
      <tr> 
       <td class="acenter"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mn>
              3 
            </mn> 
           </msub> 
          </mrow> 
         </math></p></td> 
       <td class="acenter"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               0,3,2,0 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="acenter"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              u 
            </mi> 
            <mn>
              3 
            </mn> 
           </msub> 
           <mo>
             = 
           </mo> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               0.1,0.4,0.3,0.2 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="acenter"><p style="text-align:center">1.3435</p></td> 
       <td class="acenter"><p style="text-align:center">1.2440</p></td> 
       <td class="acenter"><p style="text-align:center">2.597</p></td> 
      </tr> 
      <tr> 
       <td class="acenter"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mn>
              4 
            </mn> 
           </msub> 
          </mrow> 
         </math></p></td> 
       <td class="acenter"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               0,0,0,5 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="acenter"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              u 
            </mi> 
            <mn>
              4 
            </mn> 
           </msub> 
           <mo>
             = 
           </mo> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               0.067,0.067,0.67,0.8 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="acenter"><p style="text-align:center">0.5107</p></td> 
       <td class="acenter"><p style="text-align:center">0.6265</p></td> 
       <td class="acenter"><p style="text-align:center">1.137</p></td> 
      </tr> 
      <tr> 
       <td class="acenter"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mn>
              5 
            </mn> 
           </msub> 
          </mrow> 
         </math></p></td> 
       <td class="acenter"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               0,2,1,1 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="acenter"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              u 
            </mi> 
            <mn>
              5 
            </mn> 
           </msub> 
           <mo>
             = 
           </mo> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               0.1,0.3,0.2,0.4 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="acenter"><p style="text-align:center">0.4024</p></td> 
       <td class="acenter"><p style="text-align:center">0.5388</p></td> 
       <td class="acenter"><p style="text-align:center">0.941</p></td> 
      </tr> 
      <tr> 
       <td class="acenter"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              τ 
            </mi> 
            <mn>
              6 
            </mn> 
           </msub> 
          </mrow> 
         </math></p></td> 
       <td class="acenter"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               2,0,0,0 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="acenter"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi>
              u 
            </mi> 
            <mn>
              6 
            </mn> 
           </msub> 
           <mo>
             = 
           </mo> 
           <mrow> 
            <mo>
              〈 
            </mo> 
            <mrow> 
             <mn>
               0.429,0.143,0.143,0.286 
             </mn> 
            </mrow> 
            <mo>
              〉 
            </mo> 
           </mrow> 
          </mrow> 
         </math></p></td> 
       <td class="acenter"><p style="text-align:center">-</p></td> 
       <td class="acenter"><p style="text-align:center">-</p></td> 
       <td class="acenter"><p style="text-align:center">-</p></td> 
      </tr> 
     </table>
    </table-wrap>
   </sec>
   <sec id="s3_5">
    <title>3.5. Divergence Clustering</title>
    <p>After quantifying the divergence between successive slices of traces, the next step is to ascertain if significant abrupt changes have occurred. To accomplish this, we estimate the number of clusters generated by the divergence values. If this count exceeds one, we infer that the trace contains suspicious traffic.</p>
    <p>Definition 13 (Clustering). Let 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi mathvariant="script">
          C 
        </mi> 
        <mi>
          n 
        </mi> 
       </msub> 
       <msup> 
        <mrow> 
         <mn> 
          <mo>
            : 
          </mo>2 
         </mn> 
        </mrow> 
        <mi>
          ℝ 
        </mi> 
       </msup> 
       <mo>
         → 
       </mo> 
       <mtext>
         true 
       </mtext> 
       <mn>
         , 
       </mn> 
       <mtext>
         false 
       </mtext> 
      </mrow> 
     </math> be a clustering algorithm that estimates the optimal number of clusters N associated with a dataset in 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mn>
          2 
        </mn> 
        <mi>
          ℝ 
        </mi> 
       </msup> 
      </mrow> 
     </math>. It returns true if the number 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         N 
       </mi> 
       <mo>
         ≥ 
       </mo> 
       <mi>
         n 
       </mi> 
      </mrow> 
     </math>, indicating that the threshold for suspicious activity has been surpassed, and false otherwise.</p>
    <p>We are particularly interested in 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi mathvariant="script">
          C 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
      </mrow> 
     </math>. When 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi mathvariant="script">
          C 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
      </mrow> 
     </math> returns true, it indicates that the traffic is considered suspicious. Examples of the 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi mathvariant="script">
          C 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
      </mrow> 
     </math> function are provided in <xref ref-type="table" rid="table10">
      Table 10
     </xref>.</p>
    <table-wrap id="table10">
     <label>
      <xref ref-type="table" rid="table10">
       Table 10
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.134853-"></xref>Table 10. Examples of clustering functions.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td acenter" width="100.00%" colspan="3"><p style="text-align:center">Clustering</p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td acenter" width="20.32%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <msub> 
            <mi mathvariant="script">
              C 
            </mi> 
            <mn>
              2 
            </mn> 
           </msub> 
          </mrow> 
         </math></p></td> 
       <td class="custom-top-td acenter" width="13.94%"><p style="text-align:center"> 
         <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
           <mo>
             : 
           </mo> 
           <mo>
             : 
           </mo> 
           <mo>
             = 
           </mo> 
          </mrow> 
         </math></p></td> 
       <td class="custom-top-td acenter" width="65.74%"><p style="text-align:center">HC <xref ref-type="bibr" rid="scirp.134853-26">
          [26]
         </xref> | KM <xref ref-type="bibr" rid="scirp.134853-27">
          [27]
         </xref> | EM <xref ref-type="bibr" rid="scirp.134853-28">
          [28]
         </xref> |…</p></td> 
      </tr> 
     </table>
    </table-wrap>
    <p>Example 6. Let’s apply the K-means algorithm with the Elbow Method to compute 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi mathvariant="script">
          C 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
      </mrow> 
     </math> on the trace from the previous example, as illustrated in <xref ref-type="table" rid="table11">
      Table 11
     </xref>.</p>
    <table-wrap id="table11">
     <label>
      <xref ref-type="table" rid="table11">
       Table 11
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.134853-"></xref>Table 11. K-means results.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td acenter" width="58.23%"><p style="text-align:center">Cluster 1</p></td> 
       <td class="custom-bottom-td acenter" width="41.77%"><p style="text-align:center">Cluster 2</p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td acenter" width="58.23%"><p style="text-align:center">0.100, 0.142, 0.941, 1.137</p></td> 
       <td class="custom-top-td acenter" width="41.77%"><p style="text-align:center">2.587</p></td> 
      </tr> 
     </table>
    </table-wrap>
   </sec>
   <sec id="s3_6">
    <title>3.6. Suspicious Traffic Detection</title>
    <p>Now, we have all the necessary ingredients to define a suspicious traffic.</p>
    <p>Definition 14 (Suspicious Traffic)</p>
    <p>We define 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         S 
       </mi> 
       <mi>
         u 
       </mi> 
       <mi>
         s 
       </mi> 
       <mi>
         p 
       </mi> 
       <mi>
         i 
       </mi> 
       <mi>
         c 
       </mi> 
       <mi>
         i 
       </mi> 
       <mi>
         o 
       </mi> 
       <mi>
         u 
       </mi> 
       <msubsup> 
        <mi>
          s 
        </mi> 
        <mrow> 
         <mi>
           Δ 
         </mi> 
         <mn>
           , 
         </mn> 
         <msub> 
          <mi mathvariant="script">
            C 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
        </mrow> 
        <mrow> 
         <mi>
           σ 
         </mi> 
         <mn>
           , 
         </mn> 
         <mi>
           ω 
         </mi> 
        </mrow> 
       </msubsup> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           τ 
         </mi> 
         <mn>
           , 
         </mn> 
         <mi>
           φ 
         </mi> 
         <mn>
           , 
         </mn> 
         <mi>
           ψ 
         </mi> 
         <mn>
           , 
         </mn> 
         <mtext>
           w 
         </mtext> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math>, a generic function designed to detect suspicious traffic within an analyzed trace τ, as follows:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"> <mrow> 
       <menclose notation="box"> 
        <mrow> 
         <menclose notation="box"> 
          <mrow> 
           <mi>
             S 
           </mi> 
           <mi>
             u 
           </mi> 
           <mi>
             s 
           </mi> 
           <mi>
             p 
           </mi> 
           <mi>
             i 
           </mi> 
           <mi>
             c 
           </mi> 
           <mi>
             i 
           </mi> 
           <mi>
             o 
           </mi> 
           <mi>
             u 
           </mi> 
           <msubsup> 
            <mi>
              s 
            </mi> 
            <mrow> 
             <mi>
               Δ 
             </mi> 
             <mn>
               , 
             </mn> 
             <msub> 
              <mi mathvariant="script">
                C 
              </mi> 
              <mn>
                2 
              </mn> 
             </msub> 
            </mrow> 
            <mi>
              ω 
            </mi> 
           </msubsup> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <mi>
               τ 
             </mi> 
             <mn>
               , 
             </mn> 
             <mi>
               φ 
             </mi> 
             <mn>
               , 
             </mn> 
             <mi>
               ψ 
             </mi> 
             <mn>
               , 
             </mn> 
             <mtext>
               w 
             </mtext> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
           <mo>
             = 
           </mo> 
           <msub> 
            <mi mathvariant="script">
              C 
            </mi> 
            <mn>
              2 
            </mn> 
           </msub> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <mi>
               Δ 
             </mi> 
             <mrow> 
              <mo>
                ( 
              </mo> 
              <mrow> 
               <msub> 
                <mover accent="true"> 
                 <mi>
                   ℱ 
                 </mi> 
                 <mo>
                   ^ 
                 </mo> 
                </mover> 
                <mrow> 
                 <mi>
                   ψ 
                 </mi> 
                 <mn>
                   , 
                 </mn> 
                 <mi>
                   ω 
                 </mi> 
                </mrow> 
               </msub> 
               <mrow> 
                <mo>
                  ( 
                </mo> 
                <mrow> 
                 <mtext>
                   w 
                 </mtext> 
                 <mn>
                   , 
                 </mn> 
                 <msub> 
                  <mi mathvariant="script">
                    S 
                  </mi> 
                  <mi>
                    φ 
                  </mi> 
                 </msub> 
                 <mrow> 
                  <mo>
                    ( 
                  </mo> 
                  <mi>
                    τ 
                  </mi> 
                  <mo>
                    ) 
                  </mo> 
                 </mrow> 
                </mrow> 
                <mo>
                  ) 
                </mo> 
               </mrow> 
              </mrow> 
              <mo>
                ) 
              </mo> 
             </mrow> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
         </menclose> 
        </mrow> 
       </menclose> 
      </mrow> 
     </math></p>
    <p>The Suspicious function integrates various analyses, conducted in the sequence depicted in <xref ref-type="fig" rid="fig3">
      Figure 3
     </xref>, and returns true if the traffic is deemed suspicious, and false otherwise. It requires three functions, ω, Δ, and 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi mathvariant="script">
          C 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
      </mrow> 
     </math>, as well as four parameters: τ, w, φ, and ψ.</p>
    <fig id="fig3" position="float">
     <label>Figure 3</label>
     <caption>
      <title>Figure 3. Steps involved in detecting suspicious traffic.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/7801031-rId447.jpeg?20240729104237" />
    </fig>
    <p>Example 7. Let’s apply the Suspicious function to the trace provided in Example 1 to ascertain if there exists a sudden change. Based on the results shown in <xref ref-type="table" rid="table11">
      Table 11
     </xref>, where 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi mathvariant="script">
          C 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
      </mrow> 
     </math> generates more than one cluster, we deduce that:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         S 
       </mi> 
       <mi>
         u 
       </mi> 
       <mi>
         s 
       </mi> 
       <mi>
         p 
       </mi> 
       <mi>
         i 
       </mi> 
       <mi>
         c 
       </mi> 
       <mi>
         i 
       </mi> 
       <mi>
         o 
       </mi> 
       <mi>
         u 
       </mi> 
       <msubsup> 
        <mi>
          s 
        </mi> 
        <mrow> 
         <mi>
           Δ 
         </mi> 
         <mn>
           , 
         </mn> 
         <msub> 
          <mi mathvariant="script">
            C 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
        </mrow> 
        <mi>
          ω 
        </mi> 
       </msubsup> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           τ 
         </mi> 
         <mn>
           , 
         </mn> 
         <mi>
           φ 
         </mi> 
         <mn>
           , 
         </mn> 
         <mi>
           ψ 
         </mi> 
         <mn>
           , 
         </mn> 
         <mtext>
           w 
         </mtext> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mtext>
         true 
       </mtext> 
      </mrow> 
     </math></p>
    <p>The suspicious traffic is triggered on slice 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          τ 
        </mi> 
        <mn>
          3 
        </mn> 
       </msub> 
      </mrow> 
     </math>.</p>
   </sec>
  </sec><sec id="s4">
   <title>4. Case Study</title>
   <p>In this section, we present three cases of detecting suspicious activities using two distinct datasets comprising real traffic. The first case involves detecting suspicious activities based on daily patterns in the dataset from <xref ref-type="bibr" rid="scirp.134853-29">
     [29]
    </xref>. The second and third cases utilize the UNSW-NB15 dataset <xref ref-type="bibr" rid="scirp.134853-30">
     [30]
    </xref> to detect suspicious traffic by analyzing TCP and DNS traffic, respectively.</p>
   <sec id="s4_1">
    <title>4.1. Detecting Suspicious Activities Based on Days of the Week</title>
    <p>An example of an interesting dataset with a real traffic is available at <xref ref-type="bibr" rid="scirp.134853-29">
      [29]
     </xref>. It contains 21,000 rows and covers the traffics related to 10 workstations with local IP addresses over a period of three months. Half of these local IP addresses were hacked at some point during this period and became members of different botnets and generated abnormal traffic.</p>
    <p>A screenshot of a part of the dataset is shown in <xref ref-type="fig" rid="fig4">
      Figure 4
     </xref>, where:</p>
    <fig id="fig4" position="float">
     <label>Figure 4</label>
     <caption>
      <title>Figure 4. A part of the dataset provided by <xref ref-type="bibr" rid="scirp.134853-29">
        [29]
       </xref>.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/7801031-rId453.jpeg?20240729104239" />
    </fig>
    <p>We try to detect the infected computer based on the following assumption for each workstation of the network: the nature of traffic may vary across different days of the week. For instance, weekend traffic could differ significantly from that of weekdays. However, when we consider a specific day, such as Monday, there is no compelling reason for it to undergo substantial changes from one week to another. This implies that Monday’s traffic should remain relatively consistent across all weeks. A similar pattern is expected for other days of the week, such as Tuesday, Wednesday, and so forth.</p>
    <p>Based on the assumption, we proceed as follows: we segregate the traffic associated with each workstation and day of the week into distinct files. With ten workstations and seven days a week, this results in a total of 70 files. Subsequently, each of these files undergoes analysis to identify any abrupt changes.</p>
    <p>Here are the values of the parameters required used within the function GSuspicious allowing to detect suspect traffic.</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         φ 
       </mi> 
       <mo>
         = 
       </mo> 
       <mstyle displaystyle="true"> 
        <munder> 
         <mo>
           ∪ 
         </mo> 
         <mtable> 
          <mtr> 
           <mtd> 
            <mrow> 
             <mn>
               1 
             </mn> 
             <mo>
               ≤ 
             </mo> 
             <mi>
               i 
             </mi> 
             <mo>
               ≤ 
             </mo> 
             <mn>
               9 
             </mn> 
            </mrow> 
           </mtd> 
          </mtr> 
          <mtr> 
           <mtd> 
            <mrow> 
             <mn>
               0 
             </mn> 
             <mo>
               ≤ 
             </mo> 
             <mi>
               j 
             </mi> 
             <mo>
               ≤ 
             </mo> 
             <mn>
               6 
             </mn> 
            </mrow> 
           </mtd> 
          </mtr> 
         </mtable> 
        </munder> 
       </mstyle> 
       <mrow> 
        <mo>
          { 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            p 
          </mi> 
          <mrow> 
           <mi>
             i 
           </mi> 
           <mn>
             , 
           </mn> 
           <mi>
             j 
           </mi> 
          </mrow> 
         </msub> 
        </mrow> 
        <mo>
          } 
        </mo> 
       </mrow> 
      </mrow> 
     </math></p>
    <p>where</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          p 
        </mi> 
        <mrow> 
         <mi>
           i 
         </mi> 
         <mn>
           , 
         </mn> 
         <mi>
           j 
         </mi> 
        </mrow> 
       </msub> 
       <mo>
         = 
       </mo> 
       <msubsup> 
        <mrow> 
         <mrow> 
          <mo>
            〈 
          </mo> 
          <mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <mi>
               I 
             </mi> 
             <mi>
               P 
             </mi> 
             <mo>
               = 
             </mo> 
             <mi>
               i 
             </mi> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
           <mo>
             ∧ 
           </mo> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <mi>
               d 
             </mi> 
             <mi>
               a 
             </mi> 
             <mi>
               t 
             </mi> 
             <mi>
               e 
             </mi> 
             <mn>
               . 
             </mn> 
             <mi>
               d 
             </mi> 
             <mi>
               d 
             </mi> 
             <mo>
               = 
             </mo> 
             <mi>
               j 
             </mi> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mo>
            〉 
          </mo> 
         </mrow> 
        </mrow> 
        <mrow> 
         <mi>
           j 
         </mi> 
         <mn>
           , 
         </mn> 
         <mi>
           j 
         </mi> 
         <mo>
           + 
         </mo> 
         <mn>
           7 
         </mn> 
        </mrow> 
        <mi>
          N 
        </mi> 
       </msubsup> 
      </mrow> 
     </math></p>
    <p>and 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         N 
       </mi> 
       <mo>
         = 
       </mo> 
       <mn>
         21000 
       </mn> 
      </mrow> 
     </math> represents the number of events in the trace.</p>
    <p>All these fixed parameters will be the input of our Suspicious function to conclude whether the traffic is suspicious or not. This function proceed as follows:</p>
    <p>Below, we present the results obtained from the Elbow Method corresponding to the different days and IP addresses.</p>
    <p>1) Monday: Based on the analysis of Monday traffic depicted in <xref ref-type="fig" rid="fig5">
      Figure 5
     </xref>, we identify five non-suspicious machines (3, 5, 6, 7, and 9) and five suspicious machines (0, 1, 2, 4, and 8).</p>
    <fig id="fig5" position="float">
     <label>Figure 5</label>
     <caption>
      <title>Figure 5. Elbow results for every Monday.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/7801031-rId476.jpeg?20240729104239" />
    </fig>
    <p>2) Tuesday: Based on the analysis of Tuesday traffic depicted in <xref ref-type="fig" rid="fig6">
      Figure 6
     </xref>, we identify five non-suspicious machines (3, 5, 6, 7, and 9) and five suspicious machines (0, 1, 2, 4, and 8).</p>
    <p>3) Wednesday: Based on the analysis of Wednesday traffic shown in <xref ref-type="fig" rid="fig7">
      Figure 7
     </xref>, we observe five non-suspicious machines (3, 5, 6, 7, and 9) and five suspicious machines (0, 1, 2, 4, and 8).</p>
    <p>4) Thursday: According to the analysis depicted in <xref ref-type="fig" rid="fig8">
      Figure 8
     </xref>, we identify five non-suspicious machines (3, 5, 6, 7, and 9) and five suspicious machines (0, 1, 2, 4, and 8) on Thursday.</p>
    <p>5) Friday: Based on the analysis presented in <xref ref-type="fig" rid="fig9">
      Figure 9
     </xref>, we observe five non-suspicious machines (3, 5, 6, 7, and 9) and five suspicious machines (0, 1, 2, 4, and 8) on Friday.</p>
    <fig id="fig6" position="float">
     <label>Figure 6</label>
     <caption>
      <title>Figure 6. Elbow results for every Tuesday.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/7801031-rId477.jpeg?20240729104239" />
    </fig>
    <fig id="fig7" position="float">
     <label>Figure 7</label>
     <caption>
      <title>Figure 7. Elbow results for every Wednesday.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/7801031-rId478.jpeg?20240729104239" />
    </fig>
    <fig id="fig8" position="float">
     <label>Figure 8</label>
     <caption>
      <title>Figure 8. Elbow results for every Thursday.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/7801031-rId479.jpeg?20240729104239" />
    </fig>
    <fig id="fig9" position="float">
     <label>Figure 9</label>
     <caption>
      <title>Figure 9. Elbow results for every Friday.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/7801031-rId480.jpeg?20240729104239" />
    </fig>
    <p>6) Saturday: According to the analysis shown in <xref ref-type="fig" rid="fig10">
      Figure 10
     </xref>, we can identify five non-suspicious machines (3, 5, 6, 7, and 9) and five suspicious machines (0, 1, 2, 4, and 8) on Saturday.</p>
    <fig id="fig10" position="float">
     <label>Figure 10</label>
     <caption>
      <title>Figure 10. Elbow results for every Saturday.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/7801031-rId481.jpeg?20240729104239" />
    </fig>
    <p>7) Sunday: Based on the analysis presented in <xref ref-type="fig" rid="fig11">
      Figure 11
     </xref>, we observed five non-suspicious machines (3, 5, 6, 7, and 9) and five suspicious machines (0, 1, 2, 4, and 8) on Sunday.</p>
    <p>Here are the conclusions extracted from <xref ref-type="fig" rid="figFigures 5-11">
      Figures 5-11
     </xref>:</p>
    <fig id="fig11" position="float">
     <label>Figure 11</label>
     <caption>
      <title>Figure 11. Elbow results for every Sunday.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/7801031-rId482.jpeg?20240729104239" />
    </fig>
    <table-wrap id="table12">
     <label>
      <xref ref-type="table" rid="table12">
       Table 12
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.134853-"></xref>Table 12. Detecting suspicious traffic based on days of the week.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td acenter" width="15.63%"><p style="text-align:center"></p></td> 
       <td class="custom-bottom-td acenter" width="12.04%"><p style="text-align:center">Monday</p></td> 
       <td class="custom-bottom-td acenter" width="12.05%"><p style="text-align:center">Tuesday</p></td> 
       <td class="custom-bottom-td acenter" width="12.05%"><p style="text-align:center">Wednesday</p></td> 
       <td class="custom-bottom-td acenter" width="12.05%"><p style="text-align:center">Thursday</p></td> 
       <td class="custom-bottom-td acenter" width="12.05%"><p style="text-align:center">Friday</p></td> 
       <td class="custom-bottom-td acenter" width="12.05%"><p style="text-align:center">Saturday</p></td> 
       <td class="custom-bottom-td acenter" width="12.05%"><p style="text-align:center">Sunday</p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td acenter" width="15.63%"><p style="text-align:center">Unsuspicious</p></td> 
       <td class="custom-top-td acenter" width="12.04%"><p style="text-align:center">3, 5, 6, 7, 9</p></td> 
       <td class="custom-top-td acenter" width="12.05%"><p style="text-align:center">3, 5, 6, 7, 9</p></td> 
       <td class="custom-top-td acenter" width="12.05%"><p style="text-align:center">3, 5, 6, 7, 9</p></td> 
       <td class="custom-top-td acenter" width="12.05%"><p style="text-align:center">3, 5, 6, 7, 9</p></td> 
       <td class="custom-top-td acenter" width="12.05%"><p style="text-align:center">3, 5, 6, 7, 9</p></td> 
       <td class="custom-top-td acenter" width="12.05%"><p style="text-align:center">3, 5, 6.7, 9</p></td> 
       <td class="custom-top-td acenter" width="12.05%"><p style="text-align:center">3, 5, 6, 7, 9</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="15.63%"><p style="text-align:center">Suspicious</p></td> 
       <td class="acenter" width="12.04%"><p style="text-align:center">0, 1, 2, 4, 8</p></td> 
       <td class="acenter" width="12.05%"><p style="text-align:center">0, 1, 2, 4, 8</p></td> 
       <td class="acenter" width="12.05%"><p style="text-align:center">0, 1, 2, 4, 8</p></td> 
       <td class="acenter" width="12.05%"><p style="text-align:center">0, 1, 2, 4, 8</p></td> 
       <td class="acenter" width="12.05%"><p style="text-align:center">0, 1, 2, 4, 8</p></td> 
       <td class="acenter" width="12.05%"><p style="text-align:center">0, 1, 2, 4, 8</p></td> 
       <td class="acenter" width="12.05%"><p style="text-align:center">0, 1, 2, 4, 8</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="15.63%"><p style="text-align:center">Total Suspicious</p></td> 
       <td class="acenter" width="84.37%" colspan="7"><p style="text-align:center">0, 1, 2, 4, 8</p></td> 
      </tr> 
     </table>
    </table-wrap>
    <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
     <tr> 
      <td class="acenter" width="41.81%" colspan="2"><p style="text-align:center"></p></td> 
      <td class="custom-bottom-td acenter" width="58.19%" colspan="2"><p style="text-align:center">Predicted</p></td> 
     </tr> 
     <tr> 
      <td class="custom-bottom-td acenter" width="41.81%" colspan="2"><p style="text-align:center"></p></td> 
      <td class="custom-bottom-td custom-top-td acenter" width="29.09%"><p style="text-align:center">Negative</p></td> 
      <td class="custom-bottom-td custom-top-td acenter" width="29.10%"><p style="text-align:center">Positive</p></td> 
     </tr> 
     <tr> 
      <td class="custom-top-td acenter" width="18.11%"><p style="text-align:center">Actual</p></td> 
      <td class="custom-top-td acenter" width="23.70%"><p style="text-align:center">Negative</p></td> 
      <td class="custom-top-td acenter" width="29.09%"><p style="text-align:center">True Negative (TN)</p></td> 
      <td class="custom-top-td acenter" width="29.10%"><p style="text-align:center">False Negative (FN)</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="18.11%"><p style="text-align:center"></p></td> 
      <td class="acenter" width="23.70%"><p style="text-align:center">Positive</p></td> 
      <td class="acenter" width="29.09%"><p style="text-align:center">False Positive (FP)</p></td> 
      <td class="acenter" width="29.10%"><p style="text-align:center">True Positive (TP)</p></td> 
     </tr> 
    </table>
    <p>Our approach predicted that 5/10 local IPs are botnets. Actually, only 5/10 local IPs are real botnets. Therefore:</p>
    <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
     <tr> 
      <td class="acenter" width="45.61%" colspan="2"><p style="text-align:center"></p></td> 
      <td class="custom-bottom-td acenter" width="45.61%" colspan="2"><p style="text-align:center">Predicted</p></td> 
      <td class="acenter" width="22.81%"><p style="text-align:center"></p></td> 
     </tr> 
     <tr> 
      <td class="custom-bottom-td acenter" width="45.61%" colspan="2"><p style="text-align:center"></p></td> 
      <td class="custom-bottom-td custom-top-td acenter" width="22.81%"><p style="text-align:center">Negative</p></td> 
      <td class="custom-bottom-td custom-top-td acenter" width="22.81%"><p style="text-align:center">Positive</p></td> 
      <td class="custom-bottom-td acenter" width="22.81%"><p style="text-align:center">Total</p></td> 
     </tr> 
     <tr> 
      <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">Actual</p></td> 
      <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">Negative</p></td> 
      <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">5</p></td> 
      <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">0</p></td> 
      <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">5</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="22.81%"><p style="text-align:center"></p></td> 
      <td class="acenter" width="22.81%"><p style="text-align:center">Positive</p></td> 
      <td class="acenter" width="22.81%"><p style="text-align:center">0</p></td> 
      <td class="acenter" width="22.81%"><p style="text-align:center">5</p></td> 
      <td class="acenter" width="22.81%"><p style="text-align:center">5</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="22.81%"><p style="text-align:center"></p></td> 
      <td class="acenter" width="22.81%"><p style="text-align:center">Total</p></td> 
      <td class="acenter" width="22.81%"><p style="text-align:center">5</p></td> 
      <td class="acenter" width="22.81%"><p style="text-align:center">5</p></td> 
      <td class="acenter" width="22.81%"><p style="text-align:center">10</p></td> 
     </tr> 
    </table>
    <p>It follows that:</p>
   </sec>
   <sec id="s4_2">
    <title>4.2. Detecting Suspicious Activities Based on DNS and HTTP Traffic</title>
    <p>The UNSW-NB15 dataset <xref ref-type="bibr" rid="scirp.134853-30">
      [30]
     </xref> was generated using the IXIA PerfectStorm tool. It encompasses nine categories of modern attack types and incorporates realistic behaviors of normal traffic. Comprising 49 features across various categories, some of them are illustrated in <xref ref-type="fig" rid="fig12">
      Figure 12
     </xref>. Utilized as an attack tool, IXIA dispatches both benign and malicious traffic to different network nodes. A segment of certain fields from this traffic is demonstrated in <xref ref-type="table" rid="table13">
      Table 13
     </xref>.</p>
    <fig id="fig12" position="float">
     <label>Figure 12</label>
     <caption>
      <title>Figure 12. UNSW-NB15: example of features.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/7801031-rId489.jpeg?20240729104239" />
    </fig>
    <p>The network contains three sub networks as shown by <xref ref-type="fig" rid="fig13">
      Figure 13
     </xref>.</p>
    <p>1) Sub network1 (server1): contains nodes with source IP addresses from 59.166.0.0 to 59.166.0.9.</p>
    <p>2) Sub network2 (Server2): contains nodes with source IP addresses from 175.45.176.0 to 175.45.176.3.</p>
    <table-wrap id="table13">
     <label>
      <xref ref-type="table" rid="table13">
       Table 13
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.134853-"></xref>Table 13. UNSW-NB15 samples.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="acenter" width="102.85%"><p style="text-align:center"><p class="imgGroupCss_v"><img class=" imgMarkCss lazy" data-original="https://html.scirp.org/file/7801031-rId490.jpeg?20240729104240" /></p></p></td> 
      </tr> 
     </table>
    </table-wrap>
    <fig id="fig13" position="float">
     <label>Figure 13</label>
     <caption>
      <title>Figure 13. UNSW-NB15 network.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/7801031-rId491.jpeg?20240729104240" />
    </fig>
    <p>3) Sub network3 (Server3): contains nodes with source IP addresses from 149.171.126.0 to 149.171.126.19.</p>
    <p>Subnetwork 1 (servers1) and subnetwork 3 (server3) are configured to exhibit normal traffic patterns, whereas subnetwork 2 (server2) is associated with abnormal or malicious activities.</p>
    <p>We employ our approach across various source IP addresses within all subnetworks. Our assumption is that the nature of the outbound traffic should not undergo sudden changes.</p>
    <p>Below are the values of the required parameters used within the Suspicious function for detecting suspicious traffic:</p>
    <p>UDP.SourcePort</p>
    <p>Below, we present the results obtained from the Elbow Method corresponding to the different subnetworks (servers).</p>
    <p>1) Sub network1 (Server1): the Source IP addresses from 59.166.0.0 to 59.166.0.9: shown in <xref ref-type="fig" rid="fig14">
      Figure 14
     </xref>.</p>
    <fig id="fig14" position="float">
     <label>Figure 14</label>
     <caption>
      <title>Figure 14. Elbow results for sub network1 (server1) based on DNS services.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/7801031-rId504.jpeg?20240729104241" />
    </fig>
    <p>2) Sub network2 (Server2): Source IP addresses from 175.45.176.0 to 175.45.176.3: shown in <xref ref-type="fig" rid="fig15">
      Figure 15
     </xref>.</p>
    <fig id="fig15" position="float">
     <label>Figure 15</label>
     <caption>
      <title>Figure 15. Elbow results for sub network2 (server2) based on DNS services.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/7801031-rId505.jpeg?20240729104241" />
    </fig>
    <p>3) Sub network3 (Server3): Source IP addresses from 149.171.126.0 to 149.171.126.19: shown in <xref ref-type="fig" rid="fig16">
      Figure 16
     </xref>.</p>
    <fig id="fig16" position="float">
     <label>Figure 16</label>
     <caption>
      <title>Figure 16. Elbow results for sub network3 (server3) based on DNS services.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/7801031-rId506.jpeg?20240729104240" />
    </fig>
    <p>From <xref ref-type="fig" rid="fig14">
      Figure 14
     </xref>, the maximum distortion value for subnetwork 1 (server1) is above 8. In <xref ref-type="fig" rid="fig15">
      Figure 15
     </xref>, the maximum distortion value for subnetwork 2 (server2) exceeds 80. Meanwhile, in <xref ref-type="fig" rid="fig16">
      Figure 16
     </xref>, the maximum distortion value for subnetwork 3 (server3) is above 70, but for only one IP address, whereas more than 20 IP addresses have a distortion value of zero.</p>
    <p>Based on these findings, our approach predicts that subnetwork 2 (server2) is suspicious, as it exhibits abnormal or malicious activities in the network traffic. Therefore:</p>
    <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
     <tr> 
      <td class="acenter" width="40.02%" colspan="2"><p style="text-align:center"></p></td> 
      <td class="custom-bottom-td acenter" width="39.99%" colspan="2"><p style="text-align:center">Predicted</p></td> 
      <td class="acenter" width="19.99%"><p style="text-align:center"></p></td> 
     </tr> 
     <tr> 
      <td class="custom-bottom-td acenter" width="40.02%" colspan="2"><p style="text-align:center"></p></td> 
      <td class="custom-bottom-td custom-top-td acenter" width="19.99%"><p style="text-align:center">Negative</p></td> 
      <td class="custom-bottom-td custom-top-td acenter" width="19.99%"><p style="text-align:center">Positive</p></td> 
      <td class="custom-bottom-td acenter" width="19.99%"><p style="text-align:center">Total</p></td> 
     </tr> 
     <tr> 
      <td class="custom-top-td acenter" width="18.11%"><p style="text-align:center">Actual</p></td> 
      <td class="custom-top-td acenter" width="21.91%"><p style="text-align:center">Negative</p></td> 
      <td class="custom-top-td acenter" width="19.99%"><p style="text-align:center">2</p></td> 
      <td class="custom-top-td acenter" width="19.99%"><p style="text-align:center">0</p></td> 
      <td class="custom-top-td acenter" width="19.99%"><p style="text-align:center">2</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="18.11%"><p style="text-align:center"></p></td> 
      <td class="acenter" width="21.91%"><p style="text-align:center">Positive</p></td> 
      <td class="acenter" width="19.99%"><p style="text-align:center">0</p></td> 
      <td class="acenter" width="19.99%"><p style="text-align:center">1</p></td> 
      <td class="acenter" width="19.99%"><p style="text-align:center">1</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="18.11%"><p style="text-align:center"></p></td> 
      <td class="acenter" width="21.91%"><p style="text-align:center">Total</p></td> 
      <td class="acenter" width="19.99%"><p style="text-align:center">2</p></td> 
      <td class="acenter" width="19.99%"><p style="text-align:center">1</p></td> 
      <td class="acenter" width="19.99%"><p style="text-align:center">3</p></td> 
     </tr> 
    </table>
    <p>It follows that:</p>
    <p>Below are the values of the required parameters used within the Suspicious function for detecting suspicious traffic:</p>
    <p>UDP.SourcePort</p>
    <p>Below, we present the results obtained from the Elbow Method for different subnetworks (servers).</p>
    <p>1) Sub network1 (Server1): IP source addresses from 59.166.0.0 to 59.166.0.9 shown in <xref ref-type="fig" rid="fig17">
      Figure 17
     </xref>.</p>
    <p>2) Sub network2 (Server2): IP source addresses from 175.45.176.0 to 175.45.176.3 shown in <xref ref-type="fig" rid="fig18">
      Figure 18
     </xref>.</p>
    <p>3) Sub network3 (Server3): IP source addresses from 149.171.126.0 to 149.171.126.19 shown in <xref ref-type="fig" rid="fig19">
      Figure 19
     </xref>.</p>
    <p>From <xref ref-type="fig" rid="fig17">
      Figure 17
     </xref>, the maximum distortion value for subnetwork 1 (server1) is above 4. In <xref ref-type="fig" rid="fig18">
      Figure 18
     </xref>, the maximum distortion value for subnetwork 2 (server2) exceeds 2. Meanwhile, in <xref ref-type="fig" rid="fig19">
      Figure 19
     </xref>, the maximum distortion value for subnetwork 3 (server3) is above 0.008, but only for one IP address, while more than 20 IP addresses have a distortion value of zero.</p>
    <p>Based on these findings, our approach predicts that subnetworks 1 (server1) and 2 (server2) are suspicious, as they exhibit abnormal or malicious activities in the network traffic. Therefore:</p>
    <fig id="fig17" position="float">
     <label>Figure 17</label>
     <caption>
      <title>Figure 17. Elbow results for sub network1 (server1) based on HTTP services.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/7801031-rId525.jpeg?20240729104242" />
    </fig>
    <fig id="fig18" position="float">
     <label>Figure 18</label>
     <caption>
      <title>Figure 18. Elbow results for sub network2 (server2) based on HTTP services.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/7801031-rId526.jpeg?20240729104242" />
    </fig>
    <fig id="fig19" position="float">
     <label>Figure 19</label>
     <caption>
      <title>Figure 19. Elbow Results for sub network3 (server3) based on HTTP services.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/7801031-rId527.jpeg?20240729104242" />
    </fig>
    <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
     <tr> 
      <td class="acenter" width="45.61%" colspan="2"><p style="text-align:center"></p></td> 
      <td class="custom-bottom-td acenter" width="45.61%" colspan="2"><p style="text-align:center">Predicted</p></td> 
      <td class="acenter" width="22.81%"><p style="text-align:center"></p></td> 
     </tr> 
     <tr> 
      <td class="custom-bottom-td acenter" width="45.61%" colspan="2"><p style="text-align:center"></p></td> 
      <td class="custom-bottom-td custom-top-td acenter" width="22.81%"><p style="text-align:center">Negative</p></td> 
      <td class="custom-bottom-td custom-top-td acenter" width="22.81%"><p style="text-align:center">Positive</p></td> 
      <td class="custom-bottom-td acenter" width="22.81%"><p style="text-align:center">Total</p></td> 
     </tr> 
     <tr> 
      <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">Actual</p></td> 
      <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">Negative</p></td> 
      <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">1</p></td> 
      <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">1</p></td> 
      <td class="custom-top-td acenter" width="22.81%"><p style="text-align:center">2</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="22.81%"><p style="text-align:center"></p></td> 
      <td class="acenter" width="22.81%"><p style="text-align:center">Positive</p></td> 
      <td class="acenter" width="22.81%"><p style="text-align:center">0</p></td> 
      <td class="acenter" width="22.81%"><p style="text-align:center">1</p></td> 
      <td class="acenter" width="22.81%"><p style="text-align:center">1</p></td> 
     </tr> 
     <tr> 
      <td class="acenter" width="22.81%"><p style="text-align:center"></p></td> 
      <td class="acenter" width="22.81%"><p style="text-align:center">Total</p></td> 
      <td class="acenter" width="22.81%"><p style="text-align:center">1</p></td> 
      <td class="acenter" width="22.81%"><p style="text-align:center">2</p></td> 
      <td class="acenter" width="22.81%"><p style="text-align:center">3</p></td> 
     </tr> 
    </table>
    <p>It follows that:</p>
   </sec>
   <sec id="s4_3">
    <title>4.3. Discussion</title>
    <table-wrap id="table14">
     <label>
      <xref ref-type="table" rid="table14">
       Table 14
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.134853-"></xref>Table 14. Evaluation of the proposed approaches.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td acenter" width="17.16%"><p style="text-align:center">Techniques</p></td> 
       <td class="custom-bottom-td acenter" width="14.80%"><p style="text-align:center">Attacks types</p></td> 
       <td class="custom-bottom-td acenter" width="13.32%"><p style="text-align:center">Target</p></td> 
       <td class="custom-bottom-td acenter" width="13.31%"><p style="text-align:center">Learning types</p></td> 
       <td class="custom-bottom-td acenter" width="10.36%"><p style="text-align:center">Logic rules</p></td> 
       <td class="custom-bottom-td acenter" width="10.35%"><p style="text-align:center">Training is not required</p></td> 
       <td class="custom-bottom-td acenter" width="11.83%"><p style="text-align:center">Multi-target</p></td> 
       <td class="custom-bottom-td acenter" width="8.87%"><p style="text-align:center">Detection rate</p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td aleft" width="17.16%"><p style="text-align:left">-Kullback-Leibler</p><p style="text-align:left">(KL) Divergence.</p><p style="text-align:left">-Cosine Similarity</p><p style="text-align:left">-TF-IDF</p><p style="text-align:left">-k-mean algorithm.</p></td> 
       <td class="custom-top-td acenter" width="14.80%"><p style="text-align:center">suspicious attacks for different target</p></td> 
       <td class="custom-top-td acenter" width="13.32%"><p style="text-align:center">IP-Addresses</p><p style="text-align:center">TCP/UDP-Ports</p><p style="text-align:center">HTTP.Url</p><p style="text-align:center">others</p></td> 
       <td class="custom-top-td acenter" width="13.31%"><p style="text-align:center">unsupervised</p><p style="text-align:center">learning</p></td> 
       <td class="custom-top-td acenter" width="10.36%"><p style="text-align:center">✓</p></td> 
       <td class="custom-top-td acenter" width="10.35%"><p style="text-align:center">✓</p></td> 
       <td class="custom-top-td acenter" width="11.83%"><p style="text-align:center">✓</p></td> 
       <td class="custom-top-td acenter" width="8.87%"><p style="text-align:center">100%</p></td> 
      </tr> 
     </table>
    </table-wrap>
    <p>
     <xref ref-type="table" rid="table14">
      Table 14
     </xref> resumes the main features of the proposed approach. Although it has shown the best detection rate (100%), our experimental dataset remains small and we need to apply it on further representative datasets to have better precision on this parameter and other metrics.</p>
   </sec>
  </sec><sec id="s5">
   <title>5. Conclusions</title>
   <p>This paper introduces a promising new technique for incident detection, leveraging differential analysis. Initially, the traffic undergoes dispersion via a slicing function 
    <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi mathvariant="script">
         S 
       </mi> 
       <mi>
         φ 
       </mi> 
      </msub> 
     </mrow> 
    </math>, partitioning it into sequences of slices based on propositional logical formulas φ, which are specified by the end-user. Subsequently, each slice undergoes transformation through a measuring function 
    <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         ℱ 
       </mi> 
       <mi>
         ψ 
       </mi> 
      </msub> 
     </mrow> 
    </math>, mapping it to a point in 
    <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         ℝ 
       </mi> 
       <mi>
         n 
       </mi> 
      </msup> 
     </mrow> 
    </math> by quantifying select characteristics defined by the end-user via a formula ψ. following this, the distances between successive values returned by 
    <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         ℱ 
       </mi> 
       <mi>
         ψ 
       </mi> 
      </msub> 
     </mrow> 
    </math>, associated with the same sequence, are evaluated using a designated function Δ (e.g., KL-Divergence). Lastly, employing a clustering technique (e.g., K-means), the values produced by Δ are clustered, and the number of clusters is estimated. If any sequence yields more than one cluster, it indicates suspicious activity.</p>
   <p>The experimental results demonstrate significant promise, with a 100% accuracy achieved across both datasets used in the experiments. However, it’s essential to note that this level of accuracy may not be guaranteed with other datasets and is contingent upon the parameters selected for analysis, such as φ and ψ.</p>
   <p>In addition to its remarkable efficiency, the approach exhibits versatility in tackling a wide array of attacks spanning various activities, including those targeting networks, operating systems, and applications. Notably, it operates without necessitating any learning step or data.</p>
   <p>Looking ahead, our future endeavors entail applying this methodology to diverse datasets encompassing log files that capture a spectrum of activities across networks, operating systems, and applications. Furthermore, we aspire to integrate this approach into an open-source Security Information and Event Management (SIEM) tool like Wazuh, thereby extending its accessibility and practicality within cybersecurity frameworks.</p>
  </sec>
 </body><back>
  <ref-list>
   <title>References</title>
   <ref id="scirp.134853-ref1">
    <label>1</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Khraisat, A., Gondal, I., Vamplew, P. and Kamruzzaman, J. (2019) Survey of Intrusion Detection Systems: Techniques, Datasets and Challenges. Cybersecurity, 2, Article No. 20. &gt;https://doi.org/10.1186/s42400-019-0038-7
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref2">
    <label>2</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Sureda Riera, T., Bermejo Higuera, J., Bermejo Higuera, J., Martínez Herraiz, J. and Sicilia Montalvo, J. (2020) Prevention and Fighting against Web Attacks through Anomaly Detection Technology. A Systematic Review. Sustainability, 12, Article 4945. &gt;https://doi.org/10.3390/su12124945
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref3">
    <label>3</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Aldwairi, M., Abu-Dalo, A.M. and Jarrah, M. (2017) Pattern Matching of Signature-Based IDS Using Myers Algorithm under Mapreduce Framework. EURASIP Journal on Information Security, 2017, Article No. 7. &gt;https://doi.org/10.1186/s13635-017-0062-7
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref4">
    <label>4</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Li, W., Tug, S., Meng, W. and Wang, Y. (2019) Designing Collaborative Blockchained Signature-Based Intrusion Detection in IoT Environments. Future Generation Computer Systems, 96, 481-489. &gt;https://doi.org/10.1016/j.future.2019.02.064
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref5">
    <label>5</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Detken, K., Rix, T., Kleiner, C., Hellmann, B. and Renners, L. (2015) SIEM Approach for a Higher Level of IT Security in Enterprise Networks. 2015 IEEE 8th International Conference on Intelligent Data Acquisition and Advanced Computing Systems: Technology and Applications (IDAACS), Warsaw, 24-26 September 2015, 322-327. &gt;https://doi.org/10.1109/idaacs.2015.7340752
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref6">
    <label>6</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Madani, A., Rezayi, S. and Gharaee, H. (2011) Log Management Comprehensive Architecture in Security Operation Center (SOC). 2011 International Conference on Computational Aspects of Social Networks (CASoN), Salamanca, 19-21 October 2011, 284-289. &gt;https://doi.org/10.1109/cason.2011.6085959
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref7">
    <label>7</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     (2023) The Wazuh Manual. &gt;https://documentation.wazuh.com/current/user-manual/index.html
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref8">
    <label>8</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Najafabadi, M.M., Khoshgoftaar, T.M., Calvert, C. and Kemp, C. (2017) User Behavior Anomaly Detection for Application Layer DDoS Attacks. 2017 IEEE International Conference on Information Reuse and Integration (IRI), San Diego, 4-6 August 2017, 154-161. &gt;https://doi.org/10.1109/iri.2017.44
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref9">
    <label>9</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Betarte, G., Giménez, E., Martínez, R. and Pardo, Á. (2018) Machine Learning-Assisted Virtual Patching of Web Applications. arXiv: 1803.05529.
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref10">
    <label>10</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Owasp.org (2021) OWASP ModSecurity Core Rule Set. &gt;https://owasp.org/www-project-modsecurity-core-rule-set/ 
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref11">
    <label>11</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Wang, L., Cao, S., Wan, L. and Wang, F. (2017) Web Anomaly Detection Based on Frequent Closed Episode Rules. 2017 IEEE Trustcom/BigDataSE/ICESS, Sydney, 1-4 August 2017, 967-972. &gt;https://doi.org/10.1109/trustcom/bigdatase/icess.2017.338
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref12">
    <label>12</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Bronte, R., Shahriar, H. and Haddad, H. (2016) Information Theoretic Anomaly Detection Framework for Web Application. 2016 IEEE 40th Annual Computer Software and Applications Conference (COMPSAC), Atlanta, 10-14 June 2016, 394-399. &gt;https://doi.org/10.1109/compsac.2016.139
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref13">
    <label>13</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Ren, X., Hu, Y., Kuang, W. and Souleymanou, M.B. (2018) A Web Attack Detection Technology Based on Bag of Words and Hidden Markov Model. 2018 IEEE 15th International Conference on Mobile Ad Hoc and Sensor Systems (MASS), Chengdu, 9-12 October 2018, 526-531. &gt;https://doi.org/10.1109/mass.2018.00081
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref14">
    <label>14</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Pukkawanna, S., Kadobayashi, Y. and Yamaguchi, S. (2015) Network-based Mimicry Anomaly Detection Using Divergence Measures. 2015 International Symposium on Networks, Computers and Communications (ISNCC), Yasmine Hammamet, 13-15 May 2015, 1-7. &gt;https://doi.org/10.1109/isncc.2015.7238570
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref15">
    <label>15</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Clement, A. (2020) On Network-Based Mimicry Anomaly Detection Using Divergence Measures and Machine Learning. Master’s Thesis, AIMS Senegal.
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref16">
    <label>16</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Münz, G., Li, S. and Carle, G. (2007) Traffic Anomaly Detection Using K-Means Clustering. GI/ITG Workshop MMBnet.
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref17">
    <label>17</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Asselin, E., Aguilar-Melchor, C. and Jakllari, G. (2016) Anomaly Detection for Web Server Log Reduction: A Simple yet Efficient Crawling Based Approach. 2016 IEEE Conference on Communications and Network Security (CNS), Philadelphia, 17-19 October 2016, 586-590. &gt;https://doi.org/10.1109/cns.2016.7860553
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref18">
    <label>18</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Swarnkar, M. and Hubballi, N. (2015) Rangegram: A Novel Payload Based Anomaly Detection Technique against Web Traffic. 2015 IEEE International Conference on Advanced Networks and Telecommuncations Systems (ANTS), Kolkata, 15-18 December 2015, 1-6. &gt;https://doi.org/10.1109/ants.2015.7413635
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref19">
    <label>19</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Kang, I., Jeong, M.K. and Kong, D. (2012) A Differentiated One-Class Classification Method with Applications to Intrusion Detection. Expert Systems with Applications, 39, 3899-3905. &gt;https://doi.org/10.1016/j.eswa.2011.06.033
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref20">
    <label>20</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Camacho, J., Pérez-Villegas, A., García-Teodoro, P. and Maciá-Fernández, G. (2016) PCA-Based Multivariate Statistical Network Monitoring for Anomaly Detection. Computers&amp;Security, 59, 118-137. &gt;https://doi.org/10.1016/j.cose.2016.02.008
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref21">
    <label>21</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Yoshimura, N., Kuzuno, H., Shiraishi, Y. and Morii, M. (2022) DOC-IDS: A Deep Learning-Based Method for Feature Extraction and Anomaly Detection in Network Traffic. Sensors, 22, Article 4405. &gt;https://doi.org/10.3390/s22124405
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref22">
    <label>22</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Zavrak, S. and Iskefiyeli, M. (2023) Flow-Based Intrusion Detection on Software-Defined Networks: A Multivariate Time Series Anomaly Detection Approach. Neural Computing and Applications, 35, 12175-12193.
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref23">
    <label>23</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Joyce, J.M. (2011) Kullback-Leibler Divergence. In: Lovric, M., Ed., International Encyclopedia of Statistical Science, Springer, 720-722. &gt;https://doi.org/10.1007/978-3-642-04898-2_327
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref24">
    <label>24</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Li, B. and Han, L. (2013) Distance Weighted Cosine Similarity Measure for Text Classification. In: Yin, H., et al., Eds., Intelligent Data Engineering and Automated Learning—IDEAL 2013, Springer, 611-618. &gt;https://doi.org/10.1007/978-3-642-41278-3_74
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref25">
    <label>25</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Sammut, C., and Webb, G. (2010) TF-IDF. In: Sammut, C. and Webb, G.I., Eds., Encyclopedia of Machine Learning, Springer, 986-987. &gt;https://doi.org/10.1007/978-0-387-30164-8_832
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref26">
    <label>26</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Keogh, E., Lonardi, S. and Ratanamahatana, C.A. (2004) Towards Parameter-Free Data Mining. Proceedings of the Tenth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Seattle, 22-25 August 2004, 206-215. &gt;https://doi.org/10.1145/1014052.1014077 
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref27">
    <label>27</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Kanungo, T., Mount, D.M., Netanyahu, N.S., Piatko, C.D., Silverman, R. and Wu, A.Y. (2002) An Efficient K-Means Clustering Algorithm: Analysis and Implementation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 24, 881-892. &gt;https://doi.org/10.1109/tpami.2002.1017616
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref28">
    <label>28</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Dempster, A.P., Laird, N.M. and Rubin, D.B. (1977) Maximum Likelihood from Incomplete Data via the em Algorithm. Journal of the Royal Statistical Society Series B: Statistical Methodology, 39, 1-22. &gt;https://doi.org/10.1111/j.2517-6161.1977.tb01600.x
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref29">
    <label>29</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Crawford, C. Computer Network Traffic.&gt;https://www.kaggle.com/datasets/crawford/computer-network-traffic 
    </mixed-citation>
   </ref>
   <ref id="scirp.134853-ref30">
    <label>30</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Moustafa, N. and Slay, J. (2015) UNSW-NB15: A Comprehensive Data Set for Network Intrusion Detection Systems (UNSW-NB15 Network Data Set). 2015 Military Communications and Information Systems Conference (MilCIS), Canberra, 10-12 November 2015, 1-6. &gt;https://doi.org/10.1109/milcis.2015.7348942
    </mixed-citation>
   </ref>
  </ref-list>
 </back>
</article>