The DTN Routing Algorithm Based on Markov Meeting Time Span Prediction Model

Putting forward an efficient routing algorithm in DTN (delay tolerant network) has become a focus of attention due to the existing phenomena that the connections between nodes in the network change dramatically over time and the communications suffer from frequent disruptions. In this paper, the meeting time span between nodes is predicted using the Markov model, and the relay node holding the shortest meeting time span with the destination node is determined as the most efficient node. In the two phases, spray phase and wait phase, the message is routed according to the utility value. Thus, the routing algorithm based on Markov meeting time span prediction model is provided. Simulation results suggest that this algorithm efficiently improves the delivery rate and reduces the average delay.


Introduction
DTN (delay tolerant network) [1] which is put forward by Fall at the international committee SIGCOMM in 2003 [2] is a kind of challenged network characterized by changing topology and lacking of stable links between terminates.Endto-end transmission latency may be arbitrarily long due to occasionally connected links [3,4].
Examples of DTN are those operating in mobile or extreme scenarios such as interplanetary networks [5,6], military networks [7], rural area networks [8], wildlife tracking sensor networks [9,10], and pocket switched networks (PSNs) [11,12].Developing efficient routing protocols in this kind of network where topology changes dramatically has been a hot issue.
Generally, present routing protocols in DTN can be classified into two categories: copy-based routing [13] and efficiency-based routing [14].Epidemic [15] is the basic copybased routing protocol that exchanges messages in a simple way which seems like epidemic.Considering that the number of copies during its execution is out of control, this method will cost a lot of network resources: rubbish copies increase with the growth of time and finally lead to congestion.
To control the number of message copies, there comes a classical routing protocol based on quota: spray and wait [16,17].Several improvements have been made on it afterwards.Multiperiod spraying [18] extends the single spray phase into several spray phases, expecting efficient usage of network resources by infecting more nodes.Spray and focus [19] improves the wait phase.The message is routed through the node of the highest utility.Spray and forward [20] also improves the wait phase and calculates the meeting probability using the Markov location model.However, all the above methods only focus the improvements on one of the two phases, and spray and forward only considers the meeting possibility [21] at a specific place without considering the possible meeting on the way.To make up the above drawbacks, we propose a new DTN routing algorithm based on the Markov [22] meeting time span prediction model: predict and forward (PAF).The meeting time span is predicted using the Markov model, and the message is forwarded to the node of the highest utility.Experiments show that this International Journal of Distributed Sensor Networks method achieves higher delivery rate and lower average delay compared with epidemic or spray and wait routing protocols.

The DTN Routing Algorithm Based on Markov Meeting Time Span Prediction Model (PAF)
The main idea of PAF is as follows.Each node stores locally a multidimensional array which records the meeting time spans between the node and every other node.Then the general range of the next meeting time span is predicted from the previous time span using Markov model, and the highest utility value is endowed to the node holding the shortest meeting time span with the destination node.During both spray phase and wait phase, the message is forwarded to the node of the highest utility value.

The Meeting Time Span Prediction Model Based on
Markov.In some DTNs where interested nodes exist, the meeting between nodes is not random.There are some regularities in the meeting time span.In our work, the previous meeting time spans are used to predict the general range of the next meeting time span by applying the Markov model and search for the efficient node which may be the earliest one to meet the destination node.
Set the meeting time span as a random variable .The sequence   forms a time-dispersed and state-dispersed Markov chain.For every two nodes in the network, record the meeting time span sequence   , and map   into one of the 5 states according to the following rules.When 0 <   ≤ 100, it is mapped to state 1.When 100 <   ≤ 200, it is mapped to state 2. When 200 <   ≤ 500, it is mapped to state 3.When 500 <   ≤ 1000, it is mapped to state 4. When 1000 <   , it is mapped to state 5.So the meeting time spans of every two nodes can be described by a state sequence   , which is consisted of states 1-5.According to the property of the Markov chain, where   denotes the value of every meeting time span and   denotes the state from 1 to 5 where   in transfer matrix denotes the transfer probability from state  to state  and For example, assuming that a sequence of the meeting time spans between node  and the destination node is 2, 1, 3, 2, 4, 5, 4, 1, 3, 2, 3, the state-transfer matrix is calculated as follows: Assuming that the current state is ,  denotes the state to which the meeting time span is mapped and corresponds to row  of matrix .Search for the column with the highest probability in row  in the state-transfer matrix, and this column number is the next state we predict.Take matrix (4) for example.Supposing that the current state is 3, the highest probability in row 3 is 1, and it is located at column 2. So it is predicted that the next state is 2.
Based on the property of the Markov model, we can calculate the state   to which the next meeting time span between node   and the destination node should be mapped.The smaller   is, the earlier the node will meet the destination node.However, there may be more than one node obtaining the smallest state.So it is necessary to determine which node the message will be forwarded to.To solve this problem, we adopt a two-step method, that is, taking the predicted state as an input and predicting again using the same statetransfer matrix.If there are still two or more nodes obtaining the smallest state, consider the last time the nodes meet the destination node, and choose the node with the earliest meeting time as the relay node.The sequence diagram describing this method is shown in Figure 1.

PAF Routing Algorithm.
There exist some obvious disadvantages in the spray phase and wait phase of the classical spray and wait protocol.In spray phase, choosing a node randomly to spray may cause a problem: many messages will be sent to nodes with low efficiency.In the wait phase, waiting for the destination node negatively may miss the nodes which have higher meeting probabilities with the destination node.
PAF algorithm applies the Markov meeting time span prediction model in both the spray phase and wait phase.During the spray phase, this method tries to find the nodes, which may be the earliest one to meet the destination node within the communication range and performs binary spraying.Every node adopts the same spraying policy.When only one copy of the message is left, the node enters into the wait phase.During the wait phase, this method still tries to find the node which may be the earliest one to meet the destination node instead of waiting negatively, as shown in Figure 2. Thus, we provide the PAF routing method on the basis of the Markov meeting span prediction model.

Simulation Experiments
In this paper, we use the ONE (Opportunistic Network Environment simulator) to simulate the PAF routing method and evaluate the performance.The map of Helsinki city which is included in the ONE by default is used.There are three groups of nodes simulating the moving vehicles.Their moving speed is about 3 to 4 meters per second.The first group includes 40% of the total nodes and adopts the random-walking [23] model to simulate vehicles without a clear purpose.Interested nodes are added to the second group, so vehicles in this group tend to meet some other vehicles with a certain probability.This group simulates the vehicles keeping a specific habit.The ratio is about 30%.Nodes in the third group have fixed paths and are used to simulate buses on the road.The ratio is about 30% too.
In the scenario described above, we evaluate the performance of PAF routing algorithm in both delivery rate and average delay, then compare it with the classical epidemic and spray and wait routing protocols.Delivery rate and average delay are defined, respectively, as follows: (1) delivery rate = ∑  number of packets received by the node  ∑  number of packets sent by the node  , (2) average delay = ∑  ∑  ETE delay of packet  received by the node  ∑  number of packet received by the node  . ( The predicted next meeting time between B 1 and C The predicted next meeting time between B 2 and C Choose B i to deliver the message to the destination C The predicted next meeting time between B i and C (min) The wait phase of our routing method.Detailed configurations of the specific experimental parameters are given in Table 1.

Simulation Results and Analysis.
Keeping the ratios of node groups unchanged, the total number of nodes is set to 60, 80, 100, 120, and 140, respectively.The message generation rate is 15 to 25 by default.Each node stores 4 message copies initially.The performance of epidemic, spray and wait, and PAF is simulated, and the results are plotted in Figure 3 (delivery rate) and Figure 4 (average delay).
As can be seen from Figure 3, the delivery rate of PAF is more than 20 percentage points higher than spray and wait, and more than 10 percentage points higher than epidemic.Because of the buffer limitation, epidemic does not achieve the desired performance.Furthermore, the gap in delivery rate increases and PAF obtains performance improvement as the number of nodes increases.
Figure 4 indicates that the average delay of PAF is less than epidemic and spray and wait under different number of nodes.Besides, the average delay of PAF is relatively stable, and there is no obvious fluctuation.Set the total number of nodes to 100 and the initial number of message copies stored at each node to 4. Keeping the ratio of the three groups unchanged, we vary the message generation rate to 4 cases.The delivery rate (Figure 5) and average delay (Figure 6) of the three routing protocols are calculated.
By analyzing the data derived from Figures 5 and 6, it is easy to obtain the result that message generation rates do not influence the high performance of the PAF routing algorithm.Figure 5 shows that as the generation rate increases, the delivery rate of PAF increases obviously and much faster than the other two routing protocols.Figure 6 shows that the average delay of PAF stays in a low level without obvious fluctuation.
The number of nodes is set to 100 and the message generation rate is set to 15 to 25, just as we previously mentioned.The initial number of message copies is set to 2, 4, 6, and 8, respectively.Under different generation rates, delivery rate (Figure 7) and average delay (Figure 8) of the three routing protocols are obtained.
It can be easily deduced from Figures 7 and 8 that PAF outperforms epidemic and spay and wait in both delivery rate and average delay when we vary the initial number of nodes.

Conclusion
In this paper, based on the classical routing protocol spray and wait, we have proposed the Markov meeting time span prediction model which can be used to predict the next meeting time span between a node and the destination node in both the spray phase and the wait phase.In spray phase, a node forwards half copies to the node that is predicted to be having the earliest meeting time with the destination node.In wait phase, instead of waiting negatively, the only message copy is forwarded to the node of the highest utility.The experiments suggest that this routing method could obviously increase the delivery rate and reduce the average delay.But because of the need for the local information of the nodes in contact, more connections are generated, thus more energy may be consumed.This is also reflected in our experiments, and exchanging energy for a high delivery rate and lower average delay is acceptable.Our future study mainly focuses on improving the performance of the routing method and reducing the energy consumption to a preferable threshold.

Figure 3 :
Figure 3: Delivery rate for the three routing protocols under different number of nodes.

Figure 4 :Figure 5 :Figure 6 :Figure 7 :Figure 8 :
Figure 4: Average delay for the three routing protocols under different number of nodes.

(
.   is collected by every node and stored as   locally.When source node  meets a random node   , the meeting time span sequences of these two nodes are updated, and then  gets the history meeting time span sequence between   and the destination node stored at .A state-transfer matrix  is created based on the previous sequence.Multiply the last state of the previous state sequence by , and then the next meeting time span is predicted.The state-transfer matrix  is defined by  11  12  13  14  15  21  22  23  24  25  31  32  33  34  35  41  42  43  44  45  51  52  53  54  55

Table 1 :
Values of specific experimental parameters.