Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

AN DECENTRALIZED FILE SHAREING &

DATA TRANSMISSION IN PEER TO PEER


COMMUNICATION USING EDONKEY
PROTOCOL
Abstract—The Mobile Agent based data gathering is the – the time for a random walk (a data or query
advanced technique in the Wireless Sensor packet) to reach its destination. These metrics are
Network(WSN).In this paper Distributed Optimal suitable for one shot information delivery or
movement Strategies process takes place .In this method search/query. In contrast, the problem of data
the mobile agents move around the sensor network in a
scheduling manner. The Mobile agent act as both the
gathering using the random-walk agents is the
Query collector/data collector. and returns the important perspective. WSNs are composed of
information to the mobile server. Each sensor node is low-cost, low-power sensors, each of which is
equipped with limited buffer space .In order to reduce the equipped with limited buffer/storage space for data.
data loss in the sensor network Shortest Path Algorithm Also, the random walk-based data gathering is
is preferred. In this method all the Buffers in each sensor typically for delay insensitive applications in which
nodes are grouped together and encoded at the the collected data is mainly used for post-
transmitter side .The Mobile Agent carries the data and processing or other research studies later. It is thus
inform it to the receiver side,so that the original data can more important to measure how much data can be
be retrived after decoding .By doing this method the
delay is reduced with maximum cost saving.
collected before it is lost due to limited buffer
space, when the sink periodically generates query
Index Terms—Wireless sensor networks, data gathering, packets or collector packets moving over the
Distributed optimal movement strategy ,Shortest Path network in a random walk fashion to gather
Algorithm. measured data or its aggregated/compressed
version from sensor nodes [2], [3], [4].

There is another set of research work on exploiting


I. INTRODUCTION physical mobile agents (e.g., data mules) for data
harvesting over the sensor field [1],[3],[4]. rather
Data gathering or harvesting is a generic research than relying on multi-hop communication over
problem in wireless sensor networks (WSNs) – sensor nodes. The reason of using the mobile
how to collect observed (or measured) data or agents is to save the limited battery power of each
information from sensor nodes. For the data sensor and to overcome possible network isolation.
gathering process, a sink (or base station)
periodically generates query packets or data II. EXISTING WORK
packets to gather certain information of interest
from sensor nodes [2], [3], [4], [5], or each sensor, DISTRIBUTED OPTIMAL MOVEMENT
instead, directly informs the sink node about its STRATEGIES.
observed data or events [3],[4]. In addition, mobile
sinks (agents), e.g., data mules, can move around In this method the mobile agent moves around the
the sensor field and collect information observed at sensor networks in scheduling manner. Each sensor
each sensor node [2],[4]. A random walk has been node contain its limited buffer size. After the buffer
widely used as a means of randomized routing or has filled the sensor node gives the request (ie) the
probabilistic packet forwarding in the data buffer has filled the total memory to the mobile
gathering process leads to the preferable properties agent .After accepting the request the mobile agent
such as simplicity of implementation, scalability, travels around the relevant node and it carries the
robustness to topology changes, and avoiding information from that sensor node and inform it to
critical points of failure (or hot-spot formation) [2], sink node about the observed data .Instead the
[3]. The random walk has been also popularly used buffer got lost the network fails to perform the
as a mobility pattern for physical mobile agents operation which leads to gradual increase in the
collecting information over sensor nodes [1]. As to delay in the network. so the Shortest Path
the random walk-based routing for data gathering, Algorithm based algorithm were adopted in
the existing research studies have mainly focused wireless sensor network.
on the performance of the following metrics: delay
III. PROPOSED WORK ∈N (i6= j), then there exists an edge between nodes
i,j, i.e., (i,j) ∈E. In this setup, the collector packet at
A.SHORTEST PATH ALGORITHM current node is moves to one of its neighbours at
next time slot.
In Shortest Path Algorithm a set of buffers are
grouped together and encoding at the transmitter E{[Yi-1]+}=∑∞𝑘=1(k − 1) + p{Yi = k} ---- (1)
side. The encoding process takes place by EX-OR
operation. The buffer data contents such as From eqn. 1, we have
001,010,110etc are encoded which results after EX-
OR operation as 101.is carried by the mobile agent 0
to the sink node.so that the original data that is 𝑃{𝑌𝑖 = 0} = E {P {Yi = }} = E{(1 − pi)Ri --- (2)
Ri
transmitted is retrived after decoding process.by
following this method the delay will be minimized Where the last equality is from P{Ai(t)=0}=1-pi
2times greater than tat of the Distributed optimal and the independence of Ai(t) and Ri
movement strategy method of data gathering in the
Wireless sensor Networks(WSN). PL can be written as,
𝑛
1 1 π2
i
PL=1 − + ∑ ---- (3)
𝑛𝑝 𝑛𝑝 πi+θ
i
𝑖=1

Now, PL is solely dependent on 𝜋𝑖 and the problem


of finding the optimal transition matrix P is
equivalent to finding the transition matrix P to
minimize PL.

V. SHORTEST PATH ALGORITHM


STRATEGY.
Fig. 1. Illustrating our system model in which each sensor has
limited buffer space and data arrival rate to each node is
In this section, we formally define the optimization
heterogeneous, while a mobile collector, which can be either a
query/collector packet or a physical mobile agent, moves over problem in order to find the movement strategy of
the graph to collect the data. the mobile collector (random walk) in minimizing
the network loss probability PL, and then explain
how the mobile collector can adjust its movement
strategy to achieve the optimal strategy in a
IV. SYSTEM MODEL
distributed manner. In our scenarios, sensors are
There are a set of sensor nodes N = {1,2,...,n} and low-cost, low-power devices, each of which is
one mobile collector (or possibly, multiple mobile equipped with very small amount of storage space
collectors) for data gathering in the network. We available for data.
consider a discrete-time system (t = 0,1,2,...) with
VI. NUMERICAL SIMULATIONS
each slot of unit length. Each sensor node i ∈ N
monitors its local area, observes events, which In this section, we present simulation results on the
belong to a certain phenomenon of interest, and network loss probabilities of our distributed
stores the observed events in its buffer size optimal movement strategy under various setting of
B=O(1). We assume that such an event (or a piece buffer sizes and the number of mobile agents as
of data) arrives to each node i with some well as different data arrival patterns to the
probability pi∈(0,1) at time slot t and the data network. In particular, we here demonstrate its
arrivals are independent over i and t. Also, when considerable performance improvement over the
new data is collected and the buffer is full, the standard random walk strategy in which a random
oldest data is deleted to store the new. In other walk at the current node moves to any one of its
words, the buffer management is done in a FIFO destination nodes. In all these simulations, we
fashion. Consider a connected, undirected graph G observe that the network loss probability under our
= (N,E), where N is a set of vertexes (sensor nodes) Shortest Path Algorithm is about 2 times smaller
and E is a set of edges. The mobile collector than that of the Distributed optimal Movement
moving over G can be a collector packet or an Strategy. Note that the network loss probabilities
actual physical mobile agent. So, the existence of for both the standard random walk strategy and
an edge between nodes i,j can be different for each Shortest Path Algorithm strategy tend to increase
case. In the former, we say that if sensor node i ∈ N with a larger number of sensor nodes (n = 200),
can reliably communicate with other sensor node j since the number of sensor nodes to be covered by
a mobile collector itself increases. The amount of
reduction in the network loss probability that we
achieve from Shortest Path Algorithm strategy (in
comparison with the standard random walk
strategy).is much greater than the existing one. For
each arrival pattern (or each simulation figure), the
data points are obtained by taking the average of
the results under 30 different heterogeneous and
spatially-correlated data arrival patterns. We expect
that our reasoning behind the Shortest Path
Algorithm strategy can be applicable for the design
of Markovian random walk-based applications
sample topologies of each sensor nodes. In all these Fig 3 – Average signalling overhead
simulations, we observe that the network loss Represents the average signalling overhead with
respect to time and no of nodes.From this assessment signalling
probability under our Shortest Path Algorithm is covered over the entire network is comparably high than the
about 2 times smaller than that of the Distributed existing work.
optimal Movement Strategy . model. In all cases,
our coding strategy is consistently better than the
standard random walk strategy, and the ratio tends
to decrease ,implying that our strategy is
increasingly more advantageous as the buffer size.

Fig 4-Number of Drop Packets


Represents the no of live drops with respect to time
and no of nodes.from this simulation assessment the maximum
node covers the network .

VII. CONCLUSION

Fig 1- Energy efficiency We have developed an simulated framework to


Represents the energy efficiency with respect to evaluate the network loss probability as a
energy and time From this assesment the utilization of energy is performance metric for different distributed
decreased in Shortest Path Algorithm process as shown in
figure. optimal movement strategies of mobile collectors
moving over a graph (or network) for data
harvesting in WSNs. Under this framework, we
were able to find the Shortest Path Algorithm
strategy for the mobile collectors under mild
conditions so as to minimize the network loss
probability. Our optimal movement strategy can be
made distributed using only local information via
the Metropolis-Hastings algorithm. We have
demonstrated through extensive numerical
simulations that our Shortest Path Algorithm
strategy remarkably outperforms the Distributed
optimal movement strategy under various settings
of network topology, buffer size, and the number of
Fig 2-Delivery ratio mobile collectors, as well as heterogeneous and
Represents the delivery ratio with respect to time and
no of data packets. From this assessment no of delivery packets
spatially-correlated data arrival patterns. We expect
is increased compared to the distributed optimal movement that our reasoning behind the Shortest Path
strategy. Algorithm strategy can be applicable for the design
of Markovian random walkbased applications
sample topologies of each sensor node.
VIII. References
[1] C.-H. Lee and D. Y. Eun, “Toward distributed optimal
movement strategy for data harvesting in wireless sensor
networks,” in IEEE
SECON, Seoul, South Korea, June 2012.
[2] S. Shakkottai, “Asymptotics of query strategies over a sensor
network,” in IEEE INFOCOM, Hong Kong SAR, China, March
2004.
[3] C. Avin and C. Brito, “Efficient and robust query processing
in dynamic environments using random walk techniques,” in
ACM/IEEE IPSN, Berkeley, CA, April 2004.
[4] C. Avin and B. Krishnamachari, “The power of choice in
randomwalks: an emprical study,” in ACM MSWiM,
Torremolinos, Spain,Oct. 2006.es.

You might also like