Abstract
With GPS devices spreading, more mobile nodes are guided by the navigation systems to select better paths. The performance of mobile networks can be improved with the navigation information in nodes. In this paper, we propose a trajectory-based network coding (TBNC) method to disseminate data in mobile wireless sensor network (MWSN). It is designed according to the characteristics of MWSN and is appropriate for the mobile nodes that share anonymously its GPS pretrajectory for the higher bandwidth. Data are disseminated in the topology that is predicted on the basis of the trajectory information. Network coding is used to adapt for the dynamics velocity of mobile nodes. Simulation results show that TBNC is able to cut down 1/2 overhead messages of PRoPHET when mobile nodes share GPS trajectory. It improves the reliability and scalability of MWSN.
1. Introduction
Wireless sensor network (WSN) is composed of a large number of sensor nodes, which collect the information of surrounding changes. Many researches on WSN are based on the assumption that the sensor node is static. However, the sensor node is mobile in many applications of WSN, such as target tracking, traffic monitoring, urban microclimate, and disaster monitoring [1]. Mobile WSN (MWSN) can simply be defined as the WSN in which the sensor nodes are mobile. It is a wireless ad hoc network that consists of many sensor nodes communicating with each other [2]. The nodes are either equipped with motors for active mobility or attached to mobile objects for passive mobility [3]. The nodes move so fast, and it is difficult to find a path between a pair of nodes using ordinary WSN routing protocol [4].
Mobile nodes can exchange data with each other through Ad-hoc communication networks. But the ordinary ad hoc routing protocols will produce a huge number of overhead messages, which can consume too much energy and add the network load [5]. With GPS devices spreading, more and more mobile nodes are guided by the navigation systems. The prepath and destination of every mobile node are created and stored in its navigation system [6]. The trajectory of mobile node is able to be predicted and shared in the networks. So every node can also predict the topology change of networks according to the pre-path and velocity of other mobile nodes. It doesn't need to send data to all nodes using broadcast such as Epidemic [7] and only forwards data to the nodes moving at the direction of destination.
The researchers have already paid attention to the works applying GPS devices to WSN [8–12]. Many applications of WSNs require the positions where data was sensed, and the former researches are only focused on locating the sensor node in GPS device. These proposed schemes do not require GPS on all sensor nodes, taking into the consideration that GPS units increase the costs of sensor nodes at that time. In this case, only a fraction of the nodes has GPS units, and every node transmits its coordinates to the rest of the sensors to localize themselves [13]. Nowadays, the GPS units are popular to the mobile devices, and they are upgraded from the positioning to navigation. Our work uses the pre-trajectory of mobile nodes to improve the routing protocol of MWSN, and it is different from the researches just positioning nodes.
In this paper, we present a trajectory-based network coding (TBNC) method to disseminate data in MWSN. Mobile nodes are navigated by GPS devices and share their navigation information with the others. Data are divided into short fixed-size blocks in source node and disseminated to the other mobile nodes. The source implements network coding and sends the coding blocks to the destination according to the pretrajectory of other nodes. The blocks are recoded by the nodes on the cross roads. The experiments show that TBNC is able to reduce overhead messages, and enhance the reliability of transmission. TBNC is appropriate for the MWSN systems that mobile nodes are navigated by GPS devices.
The remainder of this paper is organized as follows. In Section 2, we discuss the related work. Section 3 presents the description and implementation of the TBNC. The evaluation and analysis of the TBNC are shown in Section 4. The paper is concluded in Section 5.
2. Related Works
The GPS devices are only used by mobile nodes of WSN to determinate their locations in many studies. Parts of mobile nodes are equipped with GPS devices to get their coordinates. GPS-equipped node is called a landmark, anchor, or seed [13]. It helps the other nodes without GPS devices to estimate their positions. The landmark moves throughout WSN providing sensor nodes with its location [14]. It either transmits its coordinates to help the other nodes to estimate their positions or receives messages sent by the other nodes and estimates their positions. In recent years, more and more studies have looked at positioning the nodes without any GPS devices in WSN [15, 16]. LIS [17] is a novel localization algorithm. As nodes run a fuzzy logic algorithm for processing the information, it was considered that nodes were provided with some kind of intelligence. They can implement in the area where GPS does not work correctly, such as the interior of buildings [18, 19]. GPS devices are not necessary to determin the location of mobile nodes.
A few studies have been attracted on utilizing GPS information for VANETs [20]. More and more vehicles are equipped with satellite navigation systems. With increased usage of smart phones like Apple iPhone or Android phones, navigation systems based on smart phones are popular. Vehicle trajectory information has become a valuable input for data forwarding. In [21], a protocol is proposed to enable efficient multihop routing capabilities. It fully supports two way communications between mobile vehicles and APs. Vehicular mobility is predicted from the information offered by the navigation system in terms of final destination and path. TSF [22] considers a reliable, efficient APs-to-vehicles data delivery by minimizing the packet delivery delay. Data delivery is performed through the computation of a target point based on the destination vehicle's trajectory information. Roadside APs can be selected as relays where destination vehicle is expected to pass by. Selecting AP optimally minimize the packet delivery delay. TBD [23] utilizes vehicle trajectory information to improve communication delay and delivery probability for vehicles-to-APs destination communications. A delay model of packets routing along roads is set up. The path with minimum delay can be found with the help of the real-time traffic condition information. VANETs can be regarded as a class of MWSN. Our work will extend the successful application of GPS trajectory in VANETs to MWSN.
It is not reliable to forward data among mobile nodes. Improving the reliability is another requirement of WMSN. Network coding has been proven to be a promising approach that can improve the reliability of communication and reduce overhead by combining packets [24]. The technique is well-suited for WSNs due to the broadcast nature of their communications. In [25], network coding is combined with multipath routing to deliver the message. The advantage of the algorithm is that the same reliability is guaranteed with significantly reduced energy consumption. In [26], an adaptive network coding is proposed to enhance reliability in WSN by considering redundancy. However, the algorithm is not suitable for the broadcast scenario. AdapCode [27] is proposed to reduce broadcast traffic in the process of code updates for the reliable data dissemination. In [28], a competitive approach to network coding is proposed to reduce the network traffic and prolong the lifetime of the network. In [29], network coding algorithm is combined with duty-cycling for saving energy in wireless sensor networks. In former researches, network coding is combined with few algorithms for MWSN. They achieve the improvement on reliability, reduce overhead, and save energy. Routing data according to the pre-trajectory can also improve the reliability. In the following work, we will combine network coding with the pre-trajectory of mobile nodes for the improvement of the scalability and reliability of MWSN.
3. Implementing TBNC on MWSN
In this section, we present the method of TBNC and its implementation on MWSN. It firstly composes navigating information and network coding in MWSN.
3.1. Conditions and Assumptions
In our work, mobile nodes have to satisfy the three restrictive conditions while using TBNC.
The movements of nodes are constrained to roads. If ground node can go to any location without regard to the objects on surface, it is usually low-speed. Node's high-speed movement has a great influence on data dissemination of WSN, and it is also a characteristic of mobile WSN. The road is generically paved for the purpose of enhancing the speed of transportation. High-speed nodes on the ground usually move along the roads. Mobile nodes can go to anywhere in the specific area according to the definition of MWSN, but they only move along the roads in many applications of MWSN such as VANET, mobile IP, and passive localization. It is reasonable to constrain the high-speed nodes on roads in former applications. Mobile node installs GPS receiver for navigation. GPS became a very popular technology after being adopted for navigation. Many vehicles have installed GPS receivers. Navigation systems are also used widely in smart phones like Apple iPhone or Android phones. Navigation system extends GPS to the usage of ordinary passenger. The interface of GPS has been reserved in the embedded systems such as ARM, PowerPC, and MIPS. New products will be developed easily to support the functions of position and navigation. It is also reasonable to navigate for mobile node using GPS. Mobile node shares its GPS navigation data to the others for reducing the delay of data dissemination. Passengers do not mind to disclose their destinations to the providers of transportation. Similarly, mobile node can share anonymously its pre-path for the higher bandwidth. The node must inform the other nodes near the path to prepare data dissemination and make sure that the navigation data is only used in communications. The information opened by the node is similar to P2P mode. The success of P2P software indicates that network users accept to share its IDs and routes to the others. User privacy can't be invaded when nodes share their pre-path. It is also reasonable to share the GPS navigation data in MWSN.
All of the former conditions are reasonable in part of applications of MWSN. In order to construct the problem model, we give the following two assumptions.
All of nodes remain in a uniform linear motion. When the nodes i and j move in a same straight line with constant velocity, the packet can directly be transmit between them if their distance satisfies
where R is the coverage radius of the node, where There are enough mobile nodes as the relay to forward data between the source and destination. We define the direction of data destination as positive and reverse direction as negative. There may be many nodes within the radio range of node. The node selects the farthest node in positive direction as its next hop. While data are forwarded completely from i to next hop, the distance between them where
The nodes continue to move when data are forwarded. The length of hop i can be computed by
The former two assumptions are not reasonable in any of the applications of MWSN. The following section will give the method to put away the assumptions in TBNC.
3.2. TBNC
In fact, the movement of any node is not uniform. Its velocity changes in a region. The node is only able to estimate the approximate location of neighbors. Neighbors may move out of their radio range while forwarding data. It is unreliable to forward data between two nodes moving with unpredictable velocity. TBNC forwards encoded data to multiple neighbors according to their trajectories. It improves the reliability of data dissemination using linear network coding.
3.2.1. Network Coding in the Source
Data are encoded in the source. K is its local encoding matrix with
A row vector contains ω consecutive data blocks sent by the same source. The blocks IDs in the vector i are from
3.2.2. Recoding on the Cross Road
If the angle between destination and next hop directions is less than 90 degrees, the forwarding direction is positive. When data are forwarded to the mobile nodes on the cross road, there is more than one positive direction, as depicted in Figure 1. The node may select multiple next hops on different roads to forward data. It must measure the road status (such as the nodes flow and direction) to decide which nodes are next hops. The nodes flow on the road is computed by

Forwarding data on the cross road.
The angle α between destination and next hop directions is computed by
We suppose that if if (
The encoded vector Y is recoded with the global recoding matrix, denoted by P. The matrix P is a lower triangular matrix with
The matrix P is unique and constant to the mobile node, need not be transferred to destinations. All of elements in P originate another pseudo-random sequence.
Implementing recoding on the coding blocks is formalized as computing the product of matrixes. It is denoted by
If mobile node in the range of the cross road needs forward data to multiple directions, it will buffer the encoded data, then recode them for delivery. We suppose that u is the number of buffered and recoded blocks and μ is its maximum number.
The node clears the buffered data until it moves out of the range of the cross road.
3.3. Implementing on MWSN
Mobile node presets the destination and automatically or manually pre-sets the path on GPS navigation. It shares the information of prepath to other nodes for the improvement of data dissemination. Then, the process of mobile node is formally shown in Figure 2. In this figure, initial data represent the uncoded data in the source nodes. If the number of next hops is more than 1, the mobile node is passing on the cross road and recoding the coded data for forwarding to different directions. Network coding algorithm on Figure 2 is described in Algorithm 1, and the recoding algorithm on Figure 2 is described in Algorithm 2.
Compute υ with (7) //Compute the local coding matrix K: For For //Compute the encoded vector Y: For For Send If receiving Break Message exit.
Compute //Compute the recoding matrix P: For For If Else End If //Compute and send the recoded vector Z: Compute For For If Send Else Send End If

The process flowchart of mobile node on MWSN.
Network coding is only implemented on the source node. Mobile node divides the packets into the short fixed-size blocks and generates the local coding matrix K, then encodes the blocks using linear network coding. It selects the farthest node within its radio range as the next hop in the time of a block to be forwarded. K is not sent out from the source. The destination can generate all elements of K for decoding according to source and its IDs.
The process of recoding on mobile node is described in Algorithm 2. The recoding algorithm is implemented by mobile node on the cross road, while the first element of encoded vector Y is received. Then, the mobile node is buffering the encoded blocks
4. Simulations
In this section, we generate the mobile nodes on the ONE simulator [30] and evaluate the performance of our TBNC method in contrast with Epidemic [31] and PRoPHET [32] routing and generic Wi-Fi.
4.1. Simulations Setting
We use part of Helsinki city map in ONE simulator as the region of simulation. The area with the range of 4000 m × 3000 m from the map is extracted as the scenarios of node movement. There are 127 cross roads within the area. The density of roads is higher than general city. The mobile nodes move on the map at the speed of 5 to 50 km/h, which covers the movement from the walk to the vehicle on the urban areas. The mobile nodes choose random from sources to destinations on the map and move there following the shortest path. The radio range is configured as 50 m, and the MAC protocol is IEEE 802.11.
We compare TBNC with Epidemic PRoPHET routing and generic Wi-Fi. Epidemic and PRoPHET are two typical routing protocols for ad-hoc networks and have been implemented by the users of the ONE simulator as add-ons. Epidemic replicates messages to all encountered nodes that do not have them yet. PRoPHET only sends messages to the nodes that have the highest chances to deliver the messages to the destination. In generic Wi-Fi, vehicles data must be delivered by access points (APs) in the radio range, and the routing capability of vehicles is disabled. Many APs need to be deployed intensively in the area.
The other parameters of TBNC method are listed as following. Maximum number of hops is 10. Maximum value of
We measure the block loss rate, transmission delay, and overhead messages as the parameters to reflect synthetically the performance of TBNC. The 10 sources generate flows continuously to the 10 destinations for the evaluation. The simulation lasts for 30 minutes. The number of mobile nodes and the TTL of blocks are variable at the every test, but the sources and destinations follow the respective prescribed trajectory to move in the range of test area.
4.2. Simulation Results
The block loss rate, transmission delay, and overhead messages of 10 flows are collected in the simulations. Block loss rate is the ratio of lost blocks to the sending blocks from sources. Transmission delay is the time of a block delivered from the source to all destinations. Overhead ratio is the effective blocks as the percentage of all forwarding blocks among vehicles. The average values of the 10 flows about the 3 parameters are presented as the basis for evaluating the performance of TBNC.
The average blocks loss rate of TBNC is contrasted by three protocols in Figures 3 and 4. TTLs are changed in four data plots of Figure 3, but the number of mobile nodes remains 80. Blocks loss rate decreases in all plots as the value of TTLs increases. When TTL is equal to the simulating time (1800 s), blocks loss rate is 0 for all methods. Only 20 APs cannot cover the whole area, while generic Wi-Fi has highest loss rate and cannot be used. The loss rate of PRoPHET is more than 0.3, while TTLs are less than 10 minutes. Too many blocks are lost and packets can't be recoverd in destinations. Epidemic sends copies to all encountered nodes, and transmits successively in the greatest probability, so it has lest loss rate in all methods. TBNC is close to Epidemic in blocks loss rate. When TTL is 1 minute, the blocks loss rate of TBNC is less than 0.2, and it can reach the target of transmission reliability. If network coding is not used, our method is only close to PRoPHET in blocks loss rate. Network coding played a critical role in the improvement of reliability.

Blocks loss rate on the different TTLs.

Blocks loss rate on the different number of mobile nodes.
The number of mobile nodes N is changed in four data plots in Figure 4, but TTL remains 60. The values of N have no effect on the loss rate of generic Wi-Fi. The other methods decrease their blocks loss rate rapidly as the mobile nodes became denser. TBNC are still closer to Epidemic than PRoPHET. When there are more than 150 nodes moving in the area, the blocks loss rate of TBNC decreases to less than 0.1. If more than 300 nodes are evenly distributed in the area, all blocks can be delivered to their destinations. The increase of N has more influence on the transmission reliability than the increase of TTL.
Figures 5 and 6 show the average delay of blocks that are transmitted successively from sources to destinations. In Figure 5, the test conditions are same as Figure 3. The average delay of all methods grows with TTLs increase. Generic Wi-Fi only can deliver few blocks to destinations. Its delay is determined by time that nodes move into the radio range of APs. PRoPHET only takes one of encountering node as the next hop. Although the node has the highest chance to destinations, it maybe moves more time to send block. So, the delay of PRoPHET is more than the other methods. TBNC is close to Epidemic in delay on the different TTLs. The process of network coding adds a little delay to delivery blocks. When TTL is 1 minute, the delay of TBNC is 7% more than Epidemic.

Average transmission delay on the different TTLs.

Transmission delay on the different number of mobile nodes.
In Figure 6, the test conditions are same as Figure 4. The delay of generic Wi-Fi changes randomly and does not associate with the number of mobile nodes. All the other methods decrease the transmission delay with the increase of nodes. PRoPHET may select inaccurate next hops to delivery data. Its delay is more than TBNC and Epidemic. TBNC is still close to Epidemic in delay on the different N. The increase of N has also more influence on the delay than the increase of TTL. When the number of mobile nodes is more than 300, the delay of TBNC is less than 30 seconds, and it is only 7% more than Epidemic. It can reach the target of transmission real-time in the mobile networks.
The average overhead ratios of TBNC are contrasted by three protocols in Figures 7 and 8. In Figure 7, the test conditions are also same as Figure 3. Generic Wi-Fi does not generate overhead messages on any conditions, and its value is always 100% and the least in the four methods. Epidemic broadcasts data to any nodes and generates most overhead messages. Its overhead ratio rises rapidly with the increase of TTL. When TTL is 1 minute, its overhead ratio is more than 800%. Epidemic has too many overhead messages to be used in WMSN. PRoPHET produces overhead messages while it selects inaccurate next hops to delivery data. It also generates more overhead messages, while setting more TTLs. TBNC only produces overhead messages on the cross road. Its overhead messages also rise with the increase of TTL but are always less than PRoPHET. When TTL is 1 minute, TBNC has 68% less overhead ratios than PRoPHET.

Overhead ratio on the different TTLs.

Overhead ratio on the different number of mobile nodes.
In Figure 8, the test conditions are also same as Figure 4. The overhead ratio of Epidemic is too high to be used. PRoPHET grows in overhead message with the increase of N. The increase in the number of mobile nodes causes that more nodes select inaccurate next hops. Generic Wi-Fi still does not generate overhead messages. The TBNC does not change its overhead ratios with the increase of N. Overhead ratio relates to the number of cross roads rather than the number of mobile nodes. When N is 300, TBNC has 202% less overhead ratio than PRoPHET and it cuts down about 1/2 overhead messages. TBNC reduces the overhead message after network coding and improves the scalability of MWSN.
TBNC is able to achieve lower overhead ratios than both Epidemic and PRoPHET. Its blocks loss ratio and delay are tiny higher than Epidemic but lower than the other methods. TBNC reduces the overhead message after network coding and improves the scalability of MWSN.
5. Conclusion
MWSN can use the pre-trajectory of mobile nodes to improve its performance. We suppose that mobile nodes have to satisfy the three reasonable conditions. TBNC is implemented firstly on the source node. Encoded blocks are forwarded to multiple neighbors according to their trajectories. Then, they can be recoded on the mobile nodes on the cross road and delivered forwarded along multipath to the destination. TBNC combines network coding with the pre-trajectory of mobile nodes.
We evaluate the performance of our TBNC in contrast with Epidemic, PRoPHET routing, and generic Wi-Fi in the simulations. The results show that TBNC is able to cut down 1/2 overhead messages of PRoPHET when mobile nodes are shared by GPS trajectory. The blocks loss ratio and transmission delay of TBNC are tiny higher than Epidemic but lower than the other methods. Our work improves the reliability and scalability of MWSN when location and navigation systems are popular in mobile nodes.
Footnotes
Acknowledgments
The work is supported by the National Science Foundation of China under Grant nos. 61070169, 61202378, and 61070170, University Science Research Project of Jiangsu Province under Grant no. 11KJB520017, Natural Science Foundation of Jiangsu Province under Grant no. BK2011376, Specialized Research Foundation for the Doctoral Program of Higher Education of China No. 20103201110018, and Application Foundation Research of Suzhou of China no. SYG201238, SYG201118, and SYG201034.
