Information Fusion-Based Storage and Retrieve Algorithms for WSNs in Disaster Scenarios

Sensor networks are especially useful in catastrophic or disaster scenarios such as abysmal sea, floods, fires, or earthquakes where human participation may be too dangerous. Storage technologies take a critical position for WSNs in such scenarios since the sensor nodes may themselves fail unpredictably, resulting in the loss of valuable data. This paper focuses on fountain code-based data storage and recovery solutions for WSNs in disaster scenarios. A review on current technologies is given on challenges posed by disaster environments. Two information fusion-based distributed storage (IFDS) algorithms are proposed in the “few global knowledge” and “zero-configuration” paradigm, respectively. Correspondingly, a high-efficient retrieve algorithm is designed for general storage algorithms using Robust Soliton distribution. We observe that the successful decoding probability can be provisioned by properly selecting parameters—the ratio of number of source node and total nodes, and the storage capacity M in each node.


Introduction
WSNs have attracted a lot of attention recently due to their broad applications.With the rapid development of microelectromechanical system, sensor nodes can be made much smaller with less cost."Smart dust", as a form of WSNs, will become one of the most potential applications in real world [1].They can be deployed in tragedy, isolated, and obscured fields to monitor objects, detect fires, temperature, flood, and other disaster incidents such as earthquakes, landslides, and ice damage.Sensing networks are ideal for such scenarios since conventional sensing methods that involve human participation within the sensing region are often too dangerous.These scenarios offer a challenging design environment because the nodes used to collect and transmit data can fail suddenly and unpredictably as they may melt, corrode, or get smashed.Hence, it is necessary to design reliable storage strategies to collect sensed data from sensors before they disappear from the network.
In 2006, Kamra et al. [2] designed and analyzed techniques to increase "persistence" of sensed data based on growth code-a variant of fountain code.Later on, Lin et al. [3] proposed an algorithm that uses random walks with traps to disseminate the source packets in the WSNs.They employed the Metropolis algorithm to specify transition probabilities of the random walks.However, the knowledge of the total number of sensors N, sources K, and the maximum node degree of the graph are required in their works.Recently, Aly et al. [4] proposed two new decentralized algorithms with limited or no knowledge of global information based on raptor codes.They afterward proposed two distributed flooding-based storage algorithms [5] for a WSNs wherein all nodes serve as sources as well as storage nodes, and the results demonstrated that it is required to query only 20-30% of the network nodes in order to retrieve the data collected by the N sensing nodes, in such a specific scenario where the buffer size is 10% of the network size.As a conclusion, a review on fountain code-based storage technologies is elaborated in Section 2.
The ultimate goal of any storage strategies is to get the maximum data recovering possibilities while encountering loss of data.A storage strategy needs to include two parts, that is, "how to store" and "how to retrieve".The two parts should be well matched with each other just like a decoding algorithm needs to be suitable for the encoding process.However, most of the previous works only focus on the storage part involving how to network the backup of sensing packages to each storage node and how to process the back-up packages in distributed way.In this paper, we extend the works to a complete solution including both storage and recovery sections.With respect to the storage part, two IFDS algorithms are proposed in the "limited global knowledge" and "zero-configuration" paradigm, respectively.For the recovery part, a belief propagation and Gaussian elimination-based recovery Algorithm (BGRA) is designed for data retrieve in close connection with the proposed storage algorithms, and it is suitable for any storage algorithms using Robust Soliton distribution.Moreover, the general scenarios with consideration of the percentage of source node number K among total number of nodes N and the storage capacity M of each node are studied.We analyze in detail how the three parameters affect the data retrieve.
The results indicate that a WSN with designable successful decoding probability can be deployed by selecting proper N, K, and M, which lays some foundation for the application of WSNs in disaster scenarios.

Fountain Code-Based Storage in WSNs
Fountain codes are a new class of rateless codes with finite dimension and infinite block length.The first class of efficient universal fountain codes was invented by Luby [6] and is called LT codes.The codes are designed for channels with erasures such as internet, but many distinctive characteristics make the codes become an excellent solution in a wide variety of situations.MacKay [7] mentioned two major applications in his review of fountain code, one is for broadcast and the other is for storage.In storage applications, fountain codes can be used to spray encoded packets as backup of a file on more than one storage device so as to prevent data loss caused by catastrophic failures of unreliable storage device; and to recover the file, one simply needs to gather enough packets from any intact devices and skip over the corrupted packets on the broken devices.Actually, the distributed storage model in WSNs is very similar to the case, and it seems easier to implement in WSN since the communication network used to bridge nodes makes it convenient to spray the back-up packages.In a sensor network, the storage device is the node with storage units.In order to prevent data loss caused by unexpected failure of the storage node, a similar solution is to network the important sensed data to multiple storage nodes, encoding them distributedly using fountain code and to store them as a backup.The original sensed data can be retrieved as long as to query enough storage nodes with enough encoded packages.
Based on these points, many researchers follow closely with fountain code-based decentralized storage technology and give specialized solutions to the storage problems of WSNs in disaster environments [2][3][4][5][6]8].The basic approach is to achieve distributed encoding in each storage node using simple exclusive-or operations.Specific implementations adopt the encoding process of growth code [2], LT code [3], or raptor code [4], respectively.
The way to disseminate the original sensed data to each storage node assumes crucial role in recovery performance of storage data in WSNs.Random walks [3,4] and flooding [5] are two major ways to spray sensed data.The flooding dissemination adopts a very simple operation that each node floods the sensed data to all its neighbors and decides whether to store or discard the received packages according to the probability computed by random algorithms.Random walks employ Metropolis algorithm to disseminate the source packets.The number of random walks launched from each sensing node and the probabilistic forwarding tables for random walks are computed by the Metropolis algorithm.As long as a source block stops at a node at the end of the random walk, this node will store this source block.After all source blocks are disseminated, each storage node generates its encoded block.The basic features of the methods are summarized in Table 1.
According to global information requirements, the storage algorithm can be classified into two categories-"limited global knowledge" or "zero-configuration" algorithms [3][4][5].If each node in the network knows the value of Kthe number of sources, and the value of N-the number of storage nodes as a prerequisite for the designed storage algorithm, then the algorithm works in the "limited global knowledge" paradigm.However, in many scenarios, especially, when changes of network topologies may occur due to node joining-in or node failures, the exact value of N may not be available for all nodes.On the other hand, the number of sources K usually depends on the environment measurements or some events, and thus the exact value of K may not be known by each node either.As a result, to design a fully distributed storage algorithm which does not require any global information with "zero configuration" is very important and useful.In previous literatures, exact decentralized fountain codes (EDFC) and approximate decentralized fountain codes (ADFC) [3], distributed storage algorithms (DSA)-I [5] and raptor codes based distributed storage (RCDS)-I [4] are "limited global knowledge" based algorithms, and distributed storage algorithms (DSA)-II [5] and raptor codes based distributed storage (RCDS)-II [4] functions in "zero configuration".In the mode of "zero configuration", random walks can be used to estimate the network scale and further to approximately compute N, K in order to decide how to set the TTL segment (or maximum hop) of the package.
Viewed from the perspective of the recovery behavior, LT codes or Raptor codes based storage algorithm adopts the belief propagation (BP) process, which is recommended by Luby for decoding of fountain codes [6], as the recovery algorithm due to its low complexity.However, even though BP algorithm is simple and easy to implement, it does not explore all the encoding information in generator matrix G, so we do some amelioration on BP algorithm for a full exploitation of all the encoding information to enhance the retrieve performance.The detailed description is presented in Section 5.In addition, Growth code takes two situations into account-full recovery or optimal partial recovery.The goal is trying to completely recover all the storage data, but while it does not achieve full recovery, then pursuing the maximum of partial recovery to retrieve more storage data.This is a reasonable consideration in storage application.
Inspired by these works, we proposed the information fusion based storage and retrieve algorithms for WSNs in disaster scenarios.Compared with the classic WSN paradigm, the major advantages using IFDS are the following.(i) IFDS algorithms adopt "flooding" to achieve data dissemination task, and each node never needs to keep a route table to sink node.Hence, each node never needs to rebuild new routing and update the route table due to failure of the nodes on the path to sink node.It is suitable for application in disaster environment.(ii) Over the various paths to sink node by flooding, each path transmits the "supplementary data" which includes not only the data information but also its relationship with other encoded blocks, so it has certain degree of redundancy, serving as a kind of "back up" for storage purpose.However, these advantages are at the cost of increasing a degree of communication overhead, computational overhead, and complexity.With respect to the previous algorithms, several improvements are provided by IFDS algorithms.In the storage block assembling phase, the proposed IFDS algorithms do not need judge to accept or reject a data packet every time while the packet arrives a node, and each node in WSN calculates its own degree in preprocessing phase, which does once for all.In data dissemination phase, IFDS has a robust estimation method for hop segment C hop (s Si ) in order to guarantee the desired dissemination task, so that all the sensed data can arrive at each node at least one time.Moreover, most of present algorithms never consider the node storage capacity which is actually an important factor affecting the data retrieve performance.The IFDS algorithms adopt a simple storage model for each node and give a detailed analysis on its behavior on data retrieve.Overall, the algorithms enhance the successful decoding probability, and we observe that a WSN with designable successful decoding probability can be deployed by selecting proper parameters-the ratio of source node number K and total number of nodes N, and the storage capacity M of each node.In what follows, the algorithms are discussed in detail.

Preliminaries and Modeling
In a real WSN, sensors are usually classified into several types based on different functions they assume.In Figure 1, we classify the set of sensors into the three kinds.Source sensors are located in the area where we expect to monitor for specific application.Source sensors are able to perform monitoring and generate packets of sensed data.Relay sensors collect received data into their buffer memory and are able to produce encoded blocks based on the distributed storage algorithm.Collector sensors or base station represents one or small number of WSNs nodes that are connected with the external network.The collector nodes is to collect data from their neighbors, recover the set of K source packets {B s1 , B s2 , . . ., B sk } that originated at the source sensor nodes during a single time period, and forward this data to a database in the external network.Three classes of sensors are equipped with memory for data storage.Suppose that the WSN consists of N nodes that are uniformly distributed at random in a three-dimensional region.Among these N nodes, there are K source nodes that have information to be disseminated throughout the network for storage.The K nodes are uniformly and independently chosen at random among the N nodes.If all the nodes are assigned with sensing tasks, then K is equal to N, so the model is a general model which covers all the application scenarios with different ratio of N and K.We assume that no node has knowledge about the locations of other nodes and no routing table is maintained.Moreover, except the information of neighbor nodes, we assume that each node has limited or no knowledge of global information, working at "limited global knowledge" or "zero-configuration" status.The limited global information refers to the total number of nodes N and the total number of source nodes K. Any further global information, for example, the maximal number of neighbors in the network, is not available.In order to illustrate the two algorithms clearly, we will use the definitions of Node Degree d n (u) and Code Degree d c (y) in [5].In order to achieve a better recovery performance, we hope that source data can be stored with balance in each node as a backup.Therefore, it is required to make data coming from different source nodes fused and stored throughout the network.These data stored in each node should be complementary and correlated.The process of data fusion is similar to the fountain code based on exclusive-or operations, but the process of encoding is a decentralized treatment in each node, so it works in a distributed way.Robust Soliton distribution [6] is adopted in our algorithms.In order to analyze the effect of the node capacity on the successful decoding probability as well as to make implementation of our algorithm easier, we model the node buffer as follows.The total buffer at each node is divided into several blocks according to the principle that each block has the size of sensed data package as a unit.For the source node, the first storage block is used for storing its own sensing data, the rest for distributed storage.For the relay nodes, all the blocks are used to store fused data.Each node reserves one storage block for traditional storage technology; in our implementation, we just simply store a selected packet copy with degree one.The buffer model is shown in Figure 1.Each block is labeled with one code degree to store fused data of certain several source packets.It is convenient to achieve the buffer model in practical applications using the existing hardware and software storage technology.In disaster areas, two cases of the node failure might happen.One is that a few nodes disappear due to outcharge, smash, or other reasons; the other is mass destruction or failure of nodes in a local area.Our storage strategy is designed for both scenarios.

Data Dissemination and Decentralized Storage
The concept of fountain code is a basis for the decentralized storage in WSNs.Although it is centralized in many coding literatures, we want to give a brief introduction of LT codes, especially concerning the Robust Soliton distribution for a better discussion on our storage and recovery algorithms in the following sections.Two storage algorithms are then presented to explain how to disseminate the sensed data and how to implement the encoding of LT codes at each storage node in decentralized way.

A Brief Introduction of LT Codes and Degree Distribution.
Fountain is a class of erasure codes capable of reaching optimal erasure recovery on the binary erasure channels without fixing the rate.Fountain codes have remarkably simple encoding and decoding algorithms.In order to create an encoded symbol, an encoding host runs the encoding process as follows.Firstly, randomly choose the degree d n of the packet from a degree distribution r(d); the appropriate choice of r depends on the source file size k.Then, choose, uniformly at random, d n distinct input packets, and then the sum of these input symbols over a suitable finite field (typically F 2 ) comprises the value of the encoded symbol.The concrete process of generating an encoding symbol using LT codes consists of three simple steps as follows [6]: (i) randomly choose the degree d of the encoding symbol from a degree distribution.The design and analysis of a good degree distribution is a primary focus of the remainder of this paper; (ii) choose uniformly at random d distinct input symbols as neighbors of the encoding symbol; (iii) the value of the encoding symbol is the exclusive-or of the d neighbors.
Each encoding symbol has a degree chosen independently from a degree distribution.Degree distribution ρ(d) is the probability that an encoding symbol has degree d.Luby gives two degree distributions-the Ideal Soliton distribution and its melioration-the Robust Soliton distribution.
Definition 1 (Robust Soliton distribution [1]).For constants c > 0 and δ ∈ [0, 1], the Robust Soliton distribution μ(i) is given by where Here, ρ(i) is Ideal Soliton distribution which is a probability distribution over 1 ≤ i ≤ k; ρ(i) and τ(i) are given by The parameter S represents the average number of degree one code symbols and is defined as As for decoding system, the most used is the BP algorithm and GE algorithm.BP algorithm first searches all degreeone symbol or say the column j that contains only one 1.
And then all the 1's in its rows are canceled and their T i are xored with T j .The above process is iterated until the matrix G becomes all-0 matrix (decoding success) or until no more degree-one symbols can be found (decoding failure).BP is simple and fast, but while it encounters decoding failure, it may never use all the encoding columns of encoding G matrix as this causes a waste of part of encoding information.GE decoding algorithm adopts Gaussian elimination to solve problem T = SG over typically F 2 , which consists of two steps: triangularization step and back-substitution step.In the triangularization step, the goal is to convert the given matrix using row operations to upper triangular matrix.
If the triangularization step is successful, then the backsubstitution step can proceed by converting the triangular matrix into the identity matrix after which the GE is successfully finished.GE could exert a higher successful decoding probability with smaller overhead but costs more time to complete decoding process due to its high complexity.BP algorithm is recommended by Luby as decoding methods for LT codes [5], which depends on the specific encoding process and degree distribution function of LT codes.Our study finds that Robust Soliton and Ideal Soliton distribution have a common characteristic.The probability of degree 2 is the greatest; the sum probability of smaller degrees is usually greater, or say that most probability exists at small degrees.Such a degree distribution provides a large probability for directly obtaining a degree-one column in each iteration of BP process.Ideal Soliton and Robust Soliton distribution with k = 100 are shown in Figures 2 and 3, respectively.We can see degree 2 is greatest with possibility around half maximum.Comparative larger possibility is distributed at smaller degrees such as degree 1, 2, 3, and 4. Based on these observations, BP algorithm can be basically adopted as the recovery algorithm for WSNs; however, in order to obtain a high successful retrieve probability and while never fully recovering all the data and then trying the best to retrieve more data, we make some improvements over the BP algorithm.The part of works are focused in Section 5 concerning the recovery algorithm.average degree of the topology G as d mean (G).Each of the nodes in WSN except the collector nodes calculates its own code degree for its buffer blocks based on Robust Soliton distribution, which does once for all.The algorithm flow is illustrated as follows.
(i) Input.A sensor network S = {s  [5], the IFDS algorithms do not need to flip a coin to accept or reject a packet every time while a packet arrives a node, and each node in WSN calculates its own degree in preprocessing phase, which does once for all.
In order to show the data dissemination performance, we give an simple example for a WSN with parameters N = 10, k = 5.We define two matrix G c and G d .G c is used to indicate the communication connectivity status between nodes in the WSN, it has N rows and N columns, and the matrix element G c (i, j) is a connectivity status with value 0 or 1; if G c (i, j) = 0 (i = 1, 2, . . ., N; j = 1, 2, . . ., N), it means no direct connection exists between the nodes N i and N j ; on the contrary, if G c (i, j) = 1, it means there exists a direct connection between the nodes N i and N j ; in the diagonal, we use 0 as default.G d is used to record how the process of data dissemination goes, the matrix element G d (i, j) (i = 1, 2, . . ., N; j = 1, 2, 3, . . ., k) recodes the times of the sensed data from source node S S j arriving at node N i .
In the example, we assume that N 1 , N 2 , . . ., N 5 are source nodes which are rewritten as the standard form  nodes first calculate the hop segment value C hop (B S j ) (j = 1, 2, . . ., 5) for their flooding data blocks.In this case, all the source nodes obtain the same value, C hop (B S j ) = (N/d n(si) ) − 1 = 1.Then the source nodes fill the hop segment of data blocks with one and then flood the data to their neighbours.According to G c , S 1 has neighbour nodes N 2 , N 3 , N 5 , N 6 , and N 10 ; S 1 floods the sensed data to these nodes, and G d records the fact that the data block from S 1 arrives nodes N 2 , N 3 , N 5 , N 6 , and N 10 one time.The working flow for other source nodes is the same.After the first flooding, G d becomes as Figure 4(b).Next, every nodes which received the sensed data during the first flooding will further flood the data to their neighbours.Based on G c , the obtained G d is further updated as Figure 4(c).And at the point, the hop value of data block is decreased to 0, so the flooding terminates.We can see that there is no 0 element in the final G d , which indicates that each sensed data block is guaranteed to arrive at each node at least one time.Therefore, the data dissemination task is perfectly completed, and the encoding process is also guaranteed for distributed storage.
In Figure 5, the red curve indicates the TTL of data packets or the number of transmissions required for a successful data dissemination, in order to assure that all the sensed data can arrive at each node at least one time.The blue curve is the actual TTL used by IFDS-I.It is obvious that the value on blue curve is equal or greater than the red one; this means that IFDS-I provides the data packets with a longer living life than enough, or say that the packets can arrive at more nodes.And we find that the counter of packet could actually be set as a number smaller than N/d mean (G), while WSN is a large network with high connectivity.The main operations of IFDS-I is shown in Algorithm 1.

IFDS-II.
In IFDS-II, we assumed that N and K are known in advance for each node in the network.This might not be the case in practical disaster scenarios where the  change of connectivity status may occur between nodes due to the event of sensor failure or new nodes joining in.Therefore, we extend IFDS-I to IFDS-II that is totally distributed without knowing global information with "zero configuration".The idea is that each source node s Si will estimate a value for its hop counter C hop (s Si ) without knowing N and K.In IFDS-II, each source node s Si will perform a hop-estimation phase that will calculate the value of the counter C hop (s Si ).The hop-estimation process starts before data dissemination; however, the estimation not only works at the network startup; instead, it is dynamic process working throughout.The hop estimation is implemented while source nodes receive a keep-alive hop-estimation packet from their neighbors.A keep-alive hop-estimation packet consists of {node code, data style, estimated hop}.
Hop estimation: let s Si be a source node in a distributed network.Each node s Si , (i = 1, 2 . . .K) will dynamically determine value of the counter C hop (s Si ).The node s Si knows its neighbors N(s Si ) by keep-alive message.Each source node will independently decide a value for its counter by following several steps.Step i. Flood a keep-alive hopestimation packet = {node code, data style, estimated hop} to its neighbors N(s Si ).Node code segment fills its own node code; data style is labeled by hop-estimation packet, and estimated hop is recorded with 0.
Step ii.Each node forwards the hop-estimation packet to its neighbors with estimated hop value plus one while recieving mutiple the hop-estimation packets from the same source, the node compares them and chooce the smallest to plus one.Step iii.When a source node received its corresponding hopestimation packets again, it compares the values of estimated hop segments of all the packets received and choose the maximum as N dia .
Step iv.Set C hop (s Si ) = N dia /2 .Thus, one iteration of hop estimation is finished.The estimation algorithm flow is illustrated in Figure 6.

Encoding output
The updated G after BP process The updated G after BP process

Vector S r
Matrix G g

Gg after triangularization
Figure 8: The original G matrix and the evolvement of G, T, and ST vector in the process of BGRA.
encoding operations of IFDS-I.In data dissemination phase, source nodes will assemble and flood the sensed data packets using the real-time hop value as the hop segment, and the completion evolution of dissemination task is shown as follows (Figure 7).In the beginning stages (I, II), the maintained hop value is still never fully updated since the packets that spread to the network edge never come back; therefore, the assembled data packets cannot reach far from the source node due to a small TTL.Along with the dynamic estimation of the network size, the hop value is updated and continuously increasing; then the assembled data packet can reach farther in the process until the hop value reaches stable, and, at the point, the network radius or network scale can be correctly estimated; the packets flooded from source node can arrive at any nodes in the network.In our buffer model, one block is reserved for traditional storage method.Here we just randomly store one sensed packet with degree one using uniform distribution.
The storage performance of both IFDS-I and IFDS-II will be elaborated in Section 6 combining with the recovery algorithm proposed in Section 5.

Power Consumption of IFDS Algorithms.
The overall energy in the WSN nodes is consumed in three distinct processes: data processing, data transmission, and sensing tasks.The proposed IFDS algorithms will majorly affect the first two processes; certain overhead will be brought during implementation of the algorithms.The communication overhead is the major overhead due to wide flooding for data dissemination.However, on the other hand, since the algorithms never need to maintain the routing tables, so they would never introduce the routing overhead.The distributed storage encoding will cause certain computation power consumption.In order to decrease the computation complexity, the proposed IFDS algorithms do not need to flip a coin to accept or reject a data packet every time while the packet arrives a node; instead, each node in WSN calculates its own degree in preprocessing phase, which does once for all.This is more energy efficient than the previous algorithms that will calculate the code degree and make selection from every arriving packet for encoding.The typical energy management techniques with the basic idea, to shut down sensors when not needed and wake them up when necessary, can be easily applied and combined with IFDS algorithms, because IFDS can estimate the network size adaptively.Moreover, Since the deployment of the WSNs in difficult-to-access areas makes it difficult to replace the batteries of sensor nodes.The use of solar cells, super capacitors, or rechargeable batteries is necessary for the longterm sensor node operation.A long-term operation could be achieved by adopting a combination of hardware and software techniques along with energy efficient WSN design.

Recovery Algorithm
In Section 3, we refer that BP algorithm is generally used as a basic recovery algorithm to retrieve storage data in WSNs.However, the BP algorithm has some limitations while used for storage applications.BP algorithm is fast with low complexity but it must find degree-one column in generator matrix G for each iteration to make decoding process go ahead, which prohibits the improvement of recovery efficiency, because it may not use all the encoding relationship recorded in G while it cannot find degree-one column in process, or say that the BP algorithm never takes use of all the encoding information while encountering stop set which will greatly reduce the successful probability of complete recovery.Gaussian elimination (GE) is another typical way for decoding of LT codes, and now many improved algorithms are proposed for decoding of fountain codes [9][10][11][12][13].In order to solve the problems caused by the Querying ratio Successful decoding probability algorithm cannot find another degree-one column, BGRA launches GE algorithm to continue decoding based on the rest columns of G, which is the reason why BGRA can fully exploit encoding information from G. Before GE algorithm is started, linear equations G g S r = T r are constructed over the rest columns of G after BP process.G g is a matrix that records code degree and neighbors of source symbols except those decoded during previous BP process.In order to construct G g , the rows and columns with all-0 elements are deleted from G and its transpose is G g .T r is the updated T after deleting elements corresponding with those all-0 columns.In our example, G g is the transpose of G after deleting the fourth row and the tenth column.T r is T without the tenth element.G g and T r are shown in Figure 8(c).The deleted row and column has only 0 elements after the first iteration of BP algorithm.The matrix G g after triangularization is shown in Figure 8(d    simple; it just needs to orderly put all the elements of vector S r into the places labeled "Unknown" in vector S T .BGRA ends at this point, and the retrieve data is obtained as S T = {0, 0, 1, 1, 0, 1, 1, 0}.In addition, the On the Fly GE algorithm proposed in [10] can be used for solution of G g S r = T r with a lower complexity.
BGRA algorithm, as integration of BP and GE algorithm, provides a good tradeoff between the advantages of both the BP algorithm and the GE algorithm.The BGRA algorithm has reasonable decoding complexity that is in between the low complexity of the BP algorithm and the high decoding complexity of the GE algorithm.The BGRA algorithm has a successful decoding probability that is comparable to that of the GE algorithm and significantly better than that of the BP algorithm.Additionally, the decoding CPU computational time of BGRA algorithm does not rapidly increase with overhead, as is the case for the GE algorithm.
In order to compare the three algorithms, we experiment BP, GE, and BGRA algorithms with different values of overhead for the number of sensed source data k = 100, International Journal of Distributed Sensor Networks Querying ratio Successful decoding probability  using Robust soliton degree distribution (c = 0.01, δ = 0.01) for storage encoding.Assuming that the number of retrieved encoded storage packets is n, the overhead is defined as q = (n − k)/k.A bigger overhead means that more storage nodes are queried for data recovery.Figure 9 shows that BP algorithm performs poor while overhead is small, but GE and BGRA exert a higher decoding performance; while overhead is more than about 0.2, both will produce a successful decoding probability over 90%.In Figure 10, we show the computational CPU time Rt using BP, GE, and BGRA while changing overhead.Compared with Rt of BP which keeps stable along with overhead's increase, Rt of GE grows quickly while overhead increases.Rt of BGRA ranges between BP and GE with the trend that more overhead costs less time to decode.Based on the analysis above, BP algorithm actually functions poor on data recovery behavior.
Taking the computational capacity of node and successful retrieve probability into account, BGRA can provide a good data recovery performance.

Results and Discussion
Figures 11 and 12 show the decoding performance with IFDS-I for different network scale with fixed ratio of K/N = 50% while M changes.Figures 13-15 illustrate the decoding performance with IFDS-II for different network scale while the value of K/N changes.Querying ratio is the percentage of the number of queried nodes q among the total number of nodes N. Successful decoding probability P is the probability that the K source packets are all recovered from the q queried nodes.The successful decoding probability for different scale networks with fixed K/N = 50% while M is 1, 2, 4 is shown in Figures 11(a) and 12(a).It is obvious that a bigger node buffer size can provide a better decoding performance; especially for a WSN while each node just has a small storage memory, to increase the storage capacity is a good way to improve the successful retrieve probability.Figures 11(b) and 12(b) illustrate the number of recovered packets at different querying ratio.Although a full recovery at the low querying ratio is never achieved, it could well give partial recovery of which performance is better than only using BP algorithm.The number of recovered packets is generally more than the number of queried nodes with a rapid increase along with the increase of querying ratio.The results show that the retrieve performance has a similar relationship with the querying ratio for any different scale networks while K/N is fixed.Figures 13-15 illustrate the decoding performance with IFDS-II for different scale networks while each node has fixed one unit buffer block and K/N changes; a higher percentage of source node requires more queried nodes to retrieve the sensed data, which is in line with common sense.The results also show that 10% increase in the percentage of source node needs to query 10-20% more nodes in order to keep the same successful decoding probability.From Figures 13-15(a), we can see if the number of any queried nodes is slightly more than k; then it could achieve a full data retrieve.Based on these findings, we can easily deploy a WSN for monitoring in practical catastrophic environment.
Figure 16(a) compares the performance of IFDS-I with DSA-I [5].DSA-I algorithm utilizes flooding and the node degree of each node to disseminate the sensed data from sensors throughout the network, and the encoded data are stored distributedly in each node for later data retrieve.Both IFDS and DSA algorithms consider the storage capacity of each node which is modeled with the number of buffer units.In [5], the authors analyze the data retrieve performance of DSA-I when the node buffer size is 10% of the network storage size.Under the same condition, we give our results and we find that IFDS has a better decoding performance.Compared with 20-30% querying nodes using DSA-I, IFDS-I only requires to query 15% nodes in network with N = K = 100 and 10% nodes in network with N = K = 200 for nice recovery of all sensed packages from source nodes.IFDS has a similar data-disseminating method and the same degree distribution function with DSA; however, a better recovery algorithm is used by IFDS-I, so IFDS-I functions better than DSA-I.Figure 16(b) shows the performance comparison between the IFDS and RCDS algorithms.RCDS-I are "limited global knowledge" based algorithms, RCDS-II works in "zero-configuration".In order to compare IFDS and RCDS, we use the definition of the decoding ratio in [4].The decoding ratio is defined as the ratio between the number of querying nodes and the number of sources.It can be seen that IFDS algorithms can exert a higher successful recovery probability while querying the same number of sensor nodes for different network scale.While the decoding ratio is between 1.2 to 2, the successful recovery probability of IFDS algorithm is about 10-15% greater than RCDS algorithm.In addition, we can also observe that the IFDS algorithms perform better for larger scale WSNs.

Conclusion
This paper proposes two IFDS algorithms in the "few global knowledge" and "zero-configuration" paradigm, respectively.An efficient retrieve algorithm is designed correspondingly, which is generally suitable for the storage algorithms using Robust Soliton distribution.The algorithms enhance the successful decoding probability.The detailed results of data retrieve performance and its relationship with three parameters-the total number of nodes N, the number of sensing nodes K, and the number of storage units equipped at each node M, is studied, which shows that we can control the successful decoding probability through setting up desired network parameters.

Figure 9 :
Figure 9: The successful decoding probability as a function of encoding overhead while k = 100 for LT code (0.01, 0.01).

Figure 12 :
Figure 12: (a) The successful decoding performance; (b) the mean number of recovered packets as a function of querying ratio while N = 200, K = 100, K/N = 50%, and M changes.

N
) as well as the solution S r of linear equations G g S r = T r .The final step of BGRA algorithm is to combine both parts of recovery results from BP and GE and to recover the source symbols.The solution is very International Journal of Distributed Sensor = 100K = 10 M = 1 N = 100 K = 20 M = 1 N = 100 K = 40 M = 1

Figure 13 :
Figure 13: (a) The successful decoding performance; (b) the mean number of recovered packets as a function of querying ratio for networks with N = 100, M = 1 while the value of K/N changes.

Figure 14 :
Figure 14: (a) The successful decoding performance; (b) the mean number of recovered packets as a function of querying ratio for networks with N = 200, M = 1 while the value of K/N changes.

Figure 15 :
Figure 15: (a) The successful decoding performance; (b) the mean number of recovered packets as a function of querying ratio for networks with N = 500, M = 1 while the value of K/N changes.

InternationalN
Figure 16: (a) Comparison of decoding performance using IFDS-I and DSA-I; (b) comparison of decoding performance using IFDS and RCDS.

Table 1 :
Comparison of flooding-and random walks-based data dissemination.
In IFDS-I, each node in the network knows the limited global information N and K. Let S = {s 1 , s 2 , . . ., s n } be a set of sensing nodes or source nodes that are distributed randomly and uniformly in a field.Each of both source node and relay node acts as a storage node.Every node does not maintain routing or geographic tables, and the network topology G is not known.Every node can send a flooding message to the neighboring nodes and can detect the total number of neighbors by broadcasting a simple keep-alive message.Here we adopt flooding as the data dissemination method in order to satisfy the Robust Soliton distribution with reliability, based on which the proposed recovery algorithm can develop its advantages.We define the IFDS-I Storage Algorithm WHILE For each node in WSN S = {s 1 , s 2 , . . .s n } DO {Receive packets from neighbors N(s i )} {IF 1 (hop segment / = 0) {IF 2 (The node code of the received packet belongs to elements in d c(si) .){IF 3 (It is the first time to receive the packet B si ) {Then accepting the packet into corresponding storage unit according to d (n) & d c(si) .If there is no other packets stored in storage block before, then store it directly.}ELSE {M j = exclusive-or (M j , B si ), j depends on d (n) & d c(si) .}ENDIF 3 } ELSE {Put the packet into forward queue, set hop segment as C hop (B si ) = C hop (B si )-1.}ENDIF 2 } ELSE {Discard the packet B si , and no node to send to.} ENDIF 1 } ENDWHILE Algorithm 1: The algorithm flow of IFDS-I. 4.1.1.IFDS-I.
Choose randomly the code degree of the encoding packets from degree distribution function, structure a set d (n) with m elements for m buffer blocks at each node,d (n) = {d M1(n) , d M2(n) , . .., d Mm(n) }.Step ii.Choose uniformly at random distinct source packets as degree distribution neighbors (ddn), d c(si) for each buffer blocks.d c(si) = {(ddn for M 1 ), . . ., (ddn for M m )}.Step iii.Keep alive link with neighbors and generate a set of neighbors N(s i ) using flooding and then obtain node degree d n(si) .For each source node S = {s 1 , . . ., s n }, generate source packet = node code, data style, hop, sensing data, flood to all of its neighbors N(s 1 , s 2 , . . ., s n } with N nodes; There are K source nodes which can produce source sensed packets {B s1 , B s2 , . . ., B sk }. (ii) Output.Storage buffer blocks {M 1 , M 2 , . . ., M m } for all sensors in S. Fused data are stored at each node according to node buffer model.(iii) Preprocessing.Step i. i ), and set hop segment or TTL segment as C hop (B si ) = N/d mean (G) − 1. d mean (G) can be approximated by the node degree d n(si) of any arbitrary node s i while the network is deployed with nodes of high density.C hop (B Si ) is a very important parameter for a desired data dissemination.The sensed data from source nodes are desired to arrive at each node at least one time throughout the network; thus, the storage encoding process could be implemented rigidly according to the designed distribution degree function.Node code is a number that marks and distinguishes nodes in the WSN; Data style is used to tell the storage sensing data from other data; Hop is a data segment like TTL in TCP/IP protocol, which stands for the maximum hop of a packet.Compared with Aly's algorithms