<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Metric Properties of Building a List of Trusted Nodes during Selection of Data Transfer Routes in Wireless Sensor Networks</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>ul. Professora Popova</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>St. Petersburg</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Russia bysovetov@mail.ru</string-name>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Russian State Hydrometeorological University</institution>
          ,
          <addr-line>ul. Voronezhskaya, 79, 192007 St. Petersburg</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Known attacks aimed at routing a wireless sensor network are considered. An algorithm is proposed for generating a list of trusted nodes involved in the construction of logical data transfer routes between the sensor device and the nearest base station. The algorithm works independently on each head node of the clusters that make up the wireless sensor network. Mandatory and selective metrics that are involved in determining the list of trusted nodes are proposed. The simulation of a wireless sensor network consisting of the same sensor nodes and a base station located on the territory of a given size is performed. The model provides for the possibility of mobility (movement) of nodes and self-organization of the network. As a result of the model's work, text log les are generated that contain a list of events that occurred in the network | the appearance of data, the transfer of data packets, the exchange of reputation between nodes, as well as the network's functioning characteristics | the life cycle of the wireless sensor network and the percentage of lost packets. The results of a simulation experiment for a wireless sensor network with and without malicious nodes are presented, which showed the advantage of the proposed method of protection against routing attacks in terms of network operation characteristics.</p>
      </abstract>
      <kwd-group>
        <kwd>Wireless Sensor Network</kwd>
        <kwd>Routing Attacks</kwd>
        <kwd>Metric Characteristics</kwd>
        <kwd>Node Reputation</kwd>
        <kwd>Node Trust</kwd>
        <kwd>Network Life Cycle</kwd>
        <kwd>Malicious Node</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Wireless sensor networks (WSN) are considered one of the most promising
information and communication technologies of the 21st century. Inexpensive
Copyright © 2019 for this paper by its authors. Use permitted under Creative
Commons License Attribution 4.0 International (CC BY 4.0).
and \smart" sensors integrated into a wireless network connected to the Internet
provide a wide range of services for monitoring and controlling bodies, houses,
enterprises, cars, etc. [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>An important component of the installation and use of WSN is to ensure the
information security of the transmitted data. WSNs are particularly vulnerable
to routing attacks due to self-organization and limited resources of sensor nodes.</p>
      <p>A self-organizing wireless network does not have a speci c structure, and the
functions of the nodes are not xed. Each time a new device is connected to
the network, the functions are redistributed between the network nodes and the
characteristics of the communication channels change. This feature contributes
to the development of attacks aimed at compromising the WSN nodes.</p>
      <p>
        The limited resources of WSN sensor nodes, such as a small amount of
computing power and memory, and battery energy reserve, contribute to the
development of attacks aimed at shortening the WSN life cycle [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
      </p>
      <p>
        The lifetime of the WSN depends on the energy consumption of the sensor
devices [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. For this reason, methods of transmitting data to the WSN are aimed
at reducing the number of operations performed by nodes. Energy consumption
occurs during data transmission, processing, calculation of the route, etc. In
connection with this, a common option is the hierarchical structure of building
the WSN in which multi-step interaction is realized (Fig. 1) [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
      </p>
      <p>Lower-level sensor devices rst transmit data to the head nodes around which
the devices are clustered. The head node is a sensory device that for some time
performs the functions of a hub. These features include data aggregation,
packetization of the sensor network, and relay to the nearest router. Routers form a
mesh network topology through which packets are transported.</p>
      <p>After several hops (jumps) data will be transmitted to the gateway { the
output of the sensor network to the global network.</p>
      <p>The time diagram of the life cycle of a clustered WSN is shown in Fig. 2.</p>
      <p>
        The head node can be selected in the process of self-organization by chance
or predetermined [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. In the rst case, each sensor device can become the head
node with an equal chance, in the second case the head node is assigned based
on the central characteristics of the location of the sensor device in Euclidean
distance or residual energy. The following head node selection algorithms can be
used: LEACH, TEEN, PEGASIS and their subsequent modi cations. A random
selection of head nodes is preferable, since this allows you to create clusters of
various sizes [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
      </p>
    </sec>
    <sec id="sec-2">
      <title>Attacks aimed at routing in the WSN tra c</title>
      <p>Consider known attacks aimed at routing in the WSN.</p>
      <p>Wormhole attacks { its implementation requires at least two compromised
nodes in di erent parts of the network. Packets intercepted on one compromised
node Si are transmitted to another compromised node Sj outside the channel
band. All nodes receiving a packet passing through the \wormhole" of node
Sj will consider node Si as their neighbor. Thus, with further data transfer,
the routes will be built incorrectly. A wormhole attack is considered di cult to
detect.</p>
      <p>Assembly point attack { compromised node reports incorrect information
about itself, for example, about a high energy reserve of the battery, thereby
forcing neighboring nodes to refer to themselves as to the head node of a cluster.</p>
      <p>Packet ejection attacks { there are two types of this attack: \black hole" and
\gray hole". In a black hole attack, a compromised node destroys all received
data. In the \gray hole" attack, packets are discarded selectively, which
complicates its detection. These attacks are especially e ective if the attacking node is
the main one in the cluster.</p>
      <p>Sibyl attack { a compromised node appears to other WSN nodes as multiple
virtual nodes. When transmitting data through virtual nodes, the throughput
of the WSN is signi cantly reduced.</p>
      <p>Loop attack { using the features of the routing protocol, several compromised
nodes can create a loop in the route, which leads to reduced bandwidth, data
loss and increased power consumption.</p>
      <p>Rush attack { lies in the propagation of service messages used in routing,
which creates a decrease in throughput and, as a result, a reduction in the life
cycle of the WSN.</p>
    </sec>
    <sec id="sec-3">
      <title>Description of the proposed solution</title>
      <p>
        The proposed solution is an algorithm for compiling a list of trusted nodes that
can participate in the construction of logical data transfer routes from sensor
devices to the nearest base station [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. The algorithm works independently on
each head node and consists of the following steps:
      </p>
      <p>1. Initialization { each node determines its neighbors { nodes located at the
distance of one hop and adds them to the list of trusted nodes. Initialization is
performed once at the beginning of the deployment of the WSN.</p>
      <p>2. Control { each node evaluates the behavior of its neighbors according to
special metrics, according to which it determines its level of trust in them. The
intrinsic trust of the node p to the neighbor node q is estimated as
where Cp;q is the level of trust the node p to the node q;
n is the quantity of metrics;
mi is the value of the i-th metric;
wi is the weight of the i-th metric.</p>
      <p>3. Estimation of the reputation the neighboring node. The reputation of the
node p to the node q is calculated as
where L is the list of nodes exchanging trust.</p>
      <p>4. Comprehensive estimation of the trust of the node to its neighbors based
on their own trust and reputation gained from a third party. The con dence of
the node p to the neighboring node q is estimated as
where r is the quantity of interactions with the node;
z is the quantity of reputation exchanges with a node.</p>
      <p>5. The node p makes a decision on interaction with the neighboring node q
according to a logical rule: D &gt; P ?, where P is the limit level of trust.</p>
      <p>6. The creation of the list of trusted nodes. Node p makes a decision about
addition / exclusion of a node q to its list of trusted nodes.</p>
      <p>The list of trusted nodes will be considered as a list of available nodes for
further operation of the routing protocol.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Metrics Used</title>
      <p>The metrics involved in determining the list of trusted sites are given in Table 1.</p>
      <p>n
Cp;q = X miwi;</p>
      <p>i=0
Rp;q =</p>
      <p>PiL=1 Cp;iCi;q</p>
      <p>PiL=1 Cp;i
z
D = Cp;q r + Rp;q 1
z
r
(1)
(2)
(3)</p>
      <p>The list of metrics is not limited to those listed in Table 1. The contents of
this list, as well as values of the weighting factors are determined by experts.
5</p>
    </sec>
    <sec id="sec-5">
      <title>Wireless Network Model Description</title>
      <p>The simulated network is a collection of 100 identical sensor nodes and a base
station, located on an area of 200 to 200 meters in size. The nodes are randomly
distributed over this territory and can move randomly in a radius of 2 meters
in one iteration, if the protocol under study supports the mobility of the nodes.
The range of the nodes is 25 meters.</p>
      <p>WSN simulation model is created on the Java software platform. In the
process of development, the principles of object-oriented programming were used,
which made it possible to identify individual entities that describe the state and
behavior of each of the WSN objects. List of the main programming interfaces
that describe the components of the model:</p>
      <p>Protocol { a software interface used to describe the clustering of the WSN
and the initialization phase of the WSN.</p>
      <p>Node { host. The touch node is characterized by the protocol with which it
works, an identi er, a list of neighboring nodes, energy reserve, as well as other
data used by the routing protocol, for example, the number of intermediate nodes
to the base station. Also, an attacking e ect on a network can be simulated on
a node.</p>
      <p>BaseStation { network gateway. Used to collect data from all network nodes.
The gateway is located in the center of the sensor eld, and unlike the WSN
nodes, it has an unlimited supply of energy and cannot be attacked. Also, in the
modeling process, the gateway is used to count correctly delivered packets.</p>
      <p>Network { the entire sensor network, the totality of all nodes and the base
station. It is used to create network components, initial placement of nodes, to
simulate the appearance of data on nodes and to initialize attacking nodes. It is
also used to collect data on the state of network nodes.</p>
      <p>Attack { a software interface that describes the behavior of nodes simulating
an attack.</p>
      <p>TrustManager { software implementation of the proposed solution.</p>
      <p>The software implementation of the model allows us to simulate the operation
of the WSN with a di erent number of nodes and topologies. The network model
allows you to use various protocols for routing, simulate attacks on the network
by con guring nodes for attacking behavior. Also, the network model will allow
a comparison of the network with nodes using the proposed solution to protect
a network with the same network that does not use protection [7{10].</p>
      <p>As a result of the program, text log les are generated containing a list
of events that occurred in the WSN, for example, the appearance of data, the
transfer of packets or the exchange of reputation between nodes. In addition, it is
possible to add instructions that calculate other information about the network
depending on the task, for example, the percentage of lost packets.</p>
    </sec>
    <sec id="sec-6">
      <title>Experimental evaluation of the e ectiveness of the developed solution on a software network model</title>
      <p>To evaluate the e ectiveness of the developed solution against energy depletion
attacks, a comparison was made of the number of functioning nodes in the
presence of a network of malicious nodes that depleted the energy of the WSN. The
comparison was made between a network that does not use the proposed method
of protection, a network without malicious nodes and a network that uses the
proposed method. To assess the maximum possible e ciency of network
protection, a network with malicious nodes was used as the upper boundary, but all
malicious nodes were ignored by the network. In Fig. 3 shows the results of the
experiment.
As can be seen from the graphs of Fig. 3, the proposed solution signi cantly
increases the operating time of a network prone to energy depletion attacks. The
di erence from the upper boundary is due to the fact that the WSN nodes take
time to collect statistics and detect malicious nodes. Metrics responsible for the
transmission and integrity of data require additional energy costs.</p>
      <p>An assessment was also made of the e ectiveness of the proposed solution
from the release or damage of data packets. A comparison was made of the
number of lost or damaged packets between the network that uses the proposed
solution and the network without protection, depending on the number of
malicious nodes that damage data packets or attack a black and gray hole. In Fig.
4 shows the results of comparison.</p>
      <p>A similar experiment was carried out for networks with random attacks
carried out by malicious nodes. The results are shown in Fig. 5.</p>
      <p>As can be seen from the graphs of Fig. 3{5, the proposed solution signi cantly
reduces the proportion of lost packets in the presence of malicious nodes in the
WSN. The nonzero proportion of lost packets when using protection is explained
by the fact that the network needs time to detect malicious nodes.</p>
      <p>Thus, it was experimentally shown that the proposed solution is able to
e ectively protect the network from various attacks, reducing the number of lost
data packets and increasing the operating time of the WSN.
7</p>
    </sec>
    <sec id="sec-7">
      <title>Conclusion</title>
      <p>A wireless sensor network has a number of features compared to classic wired
networks, namely decentralization, limited resources and features of physical
access to nodes. Attacks using the features of the WSN and directed to the
process of routing data packets can lead to denial of service for the WSN nodes
and, as a result, a reduction of the WSN life cycle duration.</p>
      <p>Various metrics obtained on the basis of statistics on the interaction of WSN
nodes and proposed in the article can help to identify malicious nodes and reduce
the negative impact of the attacks they implement.</p>
      <p>The results of the simulation experiment for the WSN with and without
malicious nodes showed the advantage of the proposed method of protection
against routing attacks over the WSN life cycle and the percentage of lost data
packets.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Doo-Soon Park</surname>
          </string-name>
          .
          <article-title>Fault Tolerance and Energy Consumption Scheme of a Wireless Sensor Network</article-title>
          . In
          <source>International Journal of Distributed Sensor Networks</source>
          , vol.
          <volume>3</volume>
          , 7 p. (
          <year>2013</year>
          ). doi:
          <volume>10</volume>
          .1155/
          <year>2013</year>
          /396850
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2. Liu B. Dynamic Coverage of Mobile Sensor Networks / B. Liu,
          <string-name>
            <given-names>O.</given-names>
            <surname>Dousse</surname>
          </string-name>
          , Ph. Nain, D. Towsley // IEEE Trans.
          <source>On Parallel and Distributed Systems</source>
          , Feb.
          <year>2013</year>
          . Vol.
          <volume>24</volume>
          , № 2. P.
          <volume>301</volume>
          {
          <fpage>311</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3. Bonomi F.
          <article-title>Fog computing and its role in the internet of things //</article-title>
          <source>Proceedings of the rst edition of the MCC workshop on Mobile cloud computing</source>
          ,
          <year>2012</year>
          . P.
          <volume>13</volume>
          {
          <fpage>16</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4. IEEE Std
          <volume>802</volume>
          .
          <fpage>11</fpage>
          -
          <lpage>2007</lpage>
          , Revision of IEEE Std 802.
          <fpage>11</fpage>
          -
          <lpage>1999</lpage>
          .
          <article-title>IEEE Standard for Information Technology-Telecommunications and information exchange between systems Local and metropolitan area network { Speci c requirements Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) speci cations</article-title>
          .
          <source>IEEE Computer Society</source>
          ,
          <year>June 2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Tatarnikova</surname>
            <given-names>T. M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dziubenko</surname>
            <given-names>I. N.</given-names>
          </string-name>
          <article-title>Wireless Sensor Network Clustering Model//2018 Wave Electronics and its Application in Information and Telecommunication Systems (WECONF</article-title>
          ).
          <year>2018</year>
          . P.
          <volume>1</volume>
          {
          <fpage>4</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Hla Yin</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Win Z. Fault Management Using Cluster-Based Protocol</surname>
          </string-name>
          in Wireless Sensor Networks // International Journal of Future Computer and Communication vol.
          <volume>2</volume>
          ,
          <year>2014</year>
          . No. 6. P.
          <volume>36</volume>
          -
          <fpage>39</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Bogatyrev</surname>
            ,
            <given-names>A.V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bogatyrev</surname>
            ,
            <given-names>S.V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bogatyrev</surname>
            ,
            <given-names>V.A.</given-names>
          </string-name>
          :
          <article-title>Analysis of the Timeliness of Redundant Service in the System of the Parallel-Series Connection of Nodes with Unlimited Queues</article-title>
          .
          <source>In: 2018 Wave Electronics and its Application in Information and Telecommunication Systems (WECONF)</source>
          , (
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Dziubenko</surname>
            <given-names>I. N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tatarnikova</surname>
            <given-names>T. M.</given-names>
          </string-name>
          <article-title>Algorithm for Solving Optimal Sensor Devices Placement Problem in Areas with Natural Obstacles//2018 Wave Electronics and its Application in Information and Telecommunication Systems (WECONF</article-title>
          ).
          <year>2018</year>
          . P.
          <article-title>1{4</article-title>
          . DOI:
          <volume>10</volume>
          .1109/WECONF.
          <year>2018</year>
          .8604325
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Bogatyrev</surname>
            <given-names>V.A. Increasing</given-names>
          </string-name>
          <article-title>the fault tolerance of a multi-trunk channel by means of inter-trunk packet forwarding (1999) Automatic Control</article-title>
          and
          <source>Computer Sciences</source>
          ,
          <volume>33</volume>
          (
          <issue>2</issue>
          ) , pp.
          <fpage>70</fpage>
          -
          <lpage>76</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Tatarnikova</surname>
          </string-name>
          , T.M.
          <article-title>Statistical methods for studying network tra c</article-title>
          .
          <source>In Informatsionno-Upravliaiushchie Sistemy</source>
          , vol.
          <volume>96</volume>
          , no.
          <issue>5</issue>
          , pp.
          <fpage>35</fpage>
          -
          <lpage>43</lpage>
          (
          <year>2018</year>
          ). doi:
          <volume>10</volume>
          . 31799 /
          <fpage>1684</fpage>
          -8853-2018-535-43
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>