Abstract
Considering city road environment as the background, by researching GPSR greedy algorithm and the movement characteristics of vehicle nodes in VANET, this paper proposes the concept of circle changing trends angle in vehicle speed fluctuation curve and the movement domain and designs an SWF routing algorithm based on the vehicle speed point forecasted and the changing trends time computation. Simulation experiments are carried out through using a combination of NS-2 and VanetMobiSim software. Compared with the performance of the SWF-GPSR protocol with general GPSR, 2-hop C-GEDIR, and the GRA and AODV protocols, we find that the SWF algorithm has a certain degree of improvement in routing hops, the packet delivery ratio, delay performance, and link stability.
1. Introduction
With the development of mobile communication technology and intelligent transportation technology, even if the drivers do not intervene, any vehicle can participate in collecting and reporting useful traffic information such as section travel time, flow rate, and density, as discussed in [1]. Road conditions, traffic congestion and information can be exchanged between vehicles, including speed, direction, acceleration, and position, which can greatly improve the vehicle safety. Business services (such as infotainment, audio, video, and internet applications) also can be applied in this transportation; in this case, even if people leave the computer and mobile phone, they can sit in the car to get the leisure and entertainment. The realization of these ideas comes from VANET (vehicle ad hoc network technology) in [2].
The VANET vehicles must be equipped with a radio transceiver and computer control module, so that they can be used as a network node. The wireless network coverage range of each vehicle may be limited to a few hundred meters; each node can be either a transceiver or a router. Therefore, it is necessary to provide end-to-end communication over long distances by means of intermediate nodes. The VANET does not need the support of wired infrastructure, but some of the permanent network nodes may appear in the form of a roadside unit. Roadside units can provide a wide variety of vehicle network services, such as the placement of information in the driveway side, providing geographic data information, or using buses, taxis, and other vehicles as a gateway to connect to internet as discussed in [3].
Ad hoc network is a kind of distributed wireless multihop network composed of a group of nodes with routing function, and it does not rely on any of the default network infrastructures. In ad hoc network, the transmission range of nodes is limited. When the source node sends data to the target node, it usually requires other auxiliary node, so routing protocol is an indispensable part of the ad hoc network as discussed in [4]. Traditional data aggregation schemes for wireless sensor networks usually rely on a fixed routing structure to ensure that data can be aggregated at certain sensor nodes. However, they cannot be applied in highly mobile vehicular environments. Unlike the traditional ad hoc networks [5], VANET has some different characteristics such as regularity and predictability [6]. The global positioning system (GPS) can provide precise positioning service for vehicles. However vehicle is moving at high speed, obstruction in existence, and frequent changes in network topology, so VANET routing leads to more complex routing problems. From a functional perspective, the routing protocol is a mechanism by which communication network sets guidelines for the business data from the source node to the destination node. The design objectives of routing protocol are to meet the application requirements while minimizing the network energy consumption, to use resources effectively, and to expand the network throughput. Among them, the application's needs generally include delay, delay jitter, and packet loss rate. And the network capacity can be seen as a function, which is related to each node's available resources, the number of nodes in the network, node density, the end-to-end communication frequency and topology changes, and other factors, as discussed in [7]. VANET routing protocols have three common classifications: greedy perimeter stateless routing (GPSR) routing algorithm is an algorithm using location information routing, which uses a greedy algorithm to establish the routing in [8]. As discussed in [9], resource-constrained mobile sensors require periodic position measurements for navigation around the sensing region.
2. Problem Statement
GPSR protocol is a stateless routing protocol and a typical location-based routing protocol; it requires neither regular exchange of routing information nor broadcast flooding to route requests. And it does not need to store routing information, thus reducing the network bandwidth resource consumption and the processing power of node, which is very effective in a network for high density and node average distribution, such as a highway. But in recent years, many researchers have found that implementation of GPSR in the city road environment leads to some defects as the following aspects.
2.1. The Unstable Link and a Huge Amount of Computation
The GPSR protocol uses greedy forwarding strategy, selecting the nearest neighbor node from the destination node as the next hop node in the network, which means that it is the farthest from neighbor nodes to the local node, so the link is unstable in a large probability. Because of the frequent movement of node in the network, the speed of the vehicle will result in changes of the distance between the nodes. Also the greedy algorithm cannot be effectively computed, so the unstable link will lead to decline in the performance of the protocol. Changing topology makes the computation of the greedy algorithm large, but the computing power and energy of node is limited; in this case, GPSR protocol needs flattening to eliminate the cross-links in the network topology, so when each node adds or deletes any one of its neighbor nodes, it requires to flatten the local topology. The time complexity of this process is
For example, source node is X, and the destination node is Y. If, at a time
2.2. Packet Loss and the Increase in the Number of Routing Hops
The greedy forwarding policy and boundary forwarding strategy of the GPSR protocol will lead to redundancy problem. The uneven distribution of the nodes in a city environment will lead to network congestion and packet loss when the load of network is too large, and the wrong greedy forwarding will take up too much resources. The GPSR algorithm uses the right hand to search routes at the boundary in a direction; it may choose relatively long routing paths to reach the destination node, even nearer routing path in the other direction exists. In fact, when the density of network nodes increases, the boundary forwarding policy leading to routing hops increases, resulting in waste of the channel resources as well as the increase in network delay. When the distribution of network nodes is sparse, because of the use of unified right-hand rule, a message in a boundary mode is likely to repeatedly miss the opportunity to change back to the greedy forwarding mode, which needs to go through a lot of mode nodes.
For example, because of the limitations of the cruciform road topology, node distribution is very uneven. The source node X needs to select a node Y as the next hop node; if the node Y is the best host, then it is transferred to the boundary forwarding mode. Then implementing the right-hand rule, there will be two results: one is that packet will eventually arrive at the destination node, but the results of this addressing increased routing hops; another is that there is large number of nodes on the left side of the node Y, then the packet may have been sent along the left hand side of the road to go farther and farther away from the target until life cycle of the last node is reduced to 0, and then discard the packet.
3. The Algorithm Design
3.1. Relative Speed Fluctuation and Distance Change between Nodes
Real-time computing needs to constantly recalculate the route for change of dynamic speed, which brings about enormous computation. Due to high-speed mobility of node, speed is roughly between 5~40 m/s, resulting in rapid changes in the network topology, so the life of path is short. For example, the average speed is 100 km/h on the road; if the node's coverage radius is 250 m, then the probability of the persistent link exists for 15s is only 57%, as discussed in [10]. In [11], with the knowledge of the access point locations, more accurate localization for the mobile device trajectories and motion sensors can be obtained. In [12], bounding-box mechanism is a well-known low-cost localization approach for wireless sensor networks. However, the bounding-box location information cannot distinguish the relative locations of neighboring sensors.
Therefore, before the route discovery, forecast of the relativly more stable links is important. The vehicle nodes with relativly more stable speed and trajectory can improve the efficiency of the greedy algorithm and reduce the computational energy consumption. The greedy algorithm selects the nearest node from the target node to send forwards. However, because the vehicle is in a state of movement or stoppage at any time, the speed of the node is changing, so the distance between the nodes is also changed. According to the research, for a car traveling in the big city, the average speed is about 30 km/h, depending on traffic conditions. In general, the limit of maximum speed is 60 km/h on urban trunk road, is 40 km/h on urban secondary roads, and is 30 to 40 km/h in ramp and tunnel is. There are two major possibilities about the vehicle speed changes, one is road congestion, and the other is wait for traffic lights or parking in intersection. In either case, we can consider only the relative velocity between the vehicle nodes. If the speed of nodes is the same or vehicles park simultaneously at the same time, the relative speed is 0. In [13], the difference in propagation speed helps to report encounters between nodes. Therefore, if the vehicle is accelerating or decelerating, the relative speed increases or decreases, the distance between nodes changes, then the shortest path between the nodes also changes.
If the relative speed of the vehicles between nodes is greater than the speed threshold value
For example, in the time of

The change in distance caused by speed fluctuation.
3.2. Ideal and Optimal Forwarding Nodes and Movement Domain
In [15], the resultant formulation of the DGPR (distributed Gaussian process regression) approach only requires neighbor-to-neighbor communication, which enables each sensor node within a network to produce the regression result independently. When node A found the next forwarding node B, B node was located the boundary of the circle the radius was R of communication range of A; we considered that B was optimal forwarding node of A. Similarly, if C was the optimal forwarding node of B, D was optimal forwarding node of C; we considered this particular routing to be called continuous ideal and optimal routing, which was the shortest distance routing at this time.
As discussed in [16], localization is one of the most important issues in wireless sensor networks. But no orderliness for locations of nodes changes at any time when vehicles travel on the road. The emergence of continuous ideal and optimal routing was unlikely. But the possibility of the approximate continuous ideal and optimal routing is there. When there was the closest distance between the target node and B, which was infinitely closed to communication circle radius R of A, we can take the point B as the approximate optimal forwarding node. If the infinitely close to ideal and optimal forwarding nodes in the process of forwarding information can be computed, the number of routing hops can be declined. However, since the vehicle is traveling without the law can be followed, we designed a motion range computation method, used to predict the movement trajectory of the vehicles. In the VANET, mobile nodes are subjected to the restrictions of the road models. Although it is not possible to accurately compute the position of the destination node at a particular moment, it can estimate the range of its movement. Reference [17] presents a novel probabilistic framework for reliable indoor positioning of mobile sensor network devices. As discussed by LAR protocol, the source node X is assumed to know that the position of the destination node D is
When implementing speed
fluctuation forecasted to predict the curve of the speed, distance between the node A and B can be computed at
The localization problem in mobile sensor networks is a challenging task, especially when measurements exchanged between sensors may contain outliers, that is, data not matching the observation model in [19]. If the continuous ideal and optimal routing exist in the case, the signal packet transmission speed was

The optimal forwarding nodes and node movement domain.
3.3. SWF Routing Algorithm
The basic principles of GPSR greedy forwarding algorithm are when the node is in greedy forwarding mode, source node select nodes of the farthest distance from themselves within communication range, which is the nearest to the destination node as the next hop node. As discussed in [20], select the node nearest to the destination node as a relay node within the transmission range so that to increase the possibility of a local maximum and link loss because of high mobility and urban road characteristics. So, we design a kind of SWF (Speed Wave Forecasted) routing algorithm combined with speed fluctuation forecasted and computation of the movement domain, as the speed fluctuations forecasted algorithm needs to input the data of speed fluctuations of the vehicle. The vehicle begins to move, to start route discovery, first greedy forwarding. Begin to forecast the speed of the vehicle which is computed at the time threshold value
3.4. Speed Fluctuations Forecasted Algorithm
Assuming GPS is installed in each vehicle, vehicles can determine their own location information. Electronic map can provide the actual road information in each of the navigation system. Determine the travel path of the vehicle before departure from automatic GPS navigation. For a car traveling in the city roads, the speed change can be seen as a volatile process. Whenever vehicles's continuous acceleration last time n, then the speed is bound to enter a downward spiral. Its decline is due to aforementioned road congestion, traffic lights, speed limits, and other objective factors. Conversely, when the vehicle speed reaches the lowest point, wave of continuous acceleration fluctuations also occur; when the fluctuations reach the steady state, if the continuous distribution time K of the speed can be forecasted, we can know the relative speed between the vehicles; it can be found as a relatively stable routing and associated collection of nodes.
Definition 1.
Due to more attributes impacting velocity fluctuations, we set up the N tuple:
3.5. Speed Point Forecasted of the Speed Trend Wave
As discussed in [21], a number of routing protocols have been developed in the last years based on SI principles, and, more specifically, taking inspiration from foraging behaviors of ant and bee colonies. The idea of speed forecasted comes from the wave fluctuations in equilibrium theory in [22]; when the continuous decline of the I wave speed is complete, the number of speed point forecasted of the increase wave II is usually π times of wave I; the very small number of cases may exceed π times. Top speed of vehicle node on road of the first wave change of velocity is 20 m/s; the minimum speed is 5 m/s. When II = III, top speed of wave II is s (II) = 62.8 m/s; minimum speed is about 15.7 m/s.

Speed points forecasted.
The heuristic formula of speed points forecasted of wave II can be summed up:
3.6. Speed Fluctuations Changing Trends Time
The time balance line of the vertical direction of the circle is divided into aliquots n that is changing trends time point for wave fluctuations; when wave goes through time balanced line or into the time zone near the balanced line, the fluctuations will changing trends or increase. Set waves I and II running time as 20 seconds, wave III running time is 25 seconds. The change trends angle of aliquots 5 circle is
For a wave run 30 seconds for the situation, select the speed of the data transmission node A according to the running speed of the vehicle to input speed values and
computed. That means input of the values of the points of speed wave I into speed fluctuations forecasted algorithm after 30 seconds through heuristic formula computing speed point forecasted and speed fluctuations changing trends time after wave I emerges. According to formula (3), wave I running lasts 32 seconds, wave II running lasts 28 seconds, then the changing trends time point when the speed wave reach to waves III is 7/10 times of 60 seconds cycle, is 42 seconds, which means that, after about 42 seconds, the vehicle speed will rise, so

Speed fluctuations changing trends time.
4. Simulation Experiments and Evaluation
NS-2 is a discrete event-driven, object-oriented network emulator. Using NS-2 to simulate network transmission through the establishment of a statistical model, for the design and evaluation of network protocols to provide a good experiment and test platform, compare SWF-GPSR with GPSR and other routing protocols. For comparison performance of the forwarding strategies, select three key indicators for evaluating routing protocols for data collection and analysis of results.
Average transmission delay: average time of the transmitter sends a complete data packet to the receiving node. Packet delivery success rate: ratio of the total number of packets successfully received to the total number of packets sent. Route length: the number of nodes through which data packet from the source node to the destination node successfully posted, that is, the count of hop. Link stability: the number of routing link changes in simulation time.
In order to improve the shortage of NS-2 for VANET for network simulation, using vehicular ad hoc networks mobility simulator (VanetMobiSim) software for traffic simulation, establish a system simulation model for simulating nodes move, in order to gain traffic reports and other information on traffic engineering analysis. VanetMobiSim arising from CanuMobiSim (communication in ad hoc networks for ubiquitous computing) is a framework for user mobility model which was developed by CANU research group of Stuttgart University based on JAVA language. It not only contains a certain amount of movement model, but also comprises the analyzer of the geographic data of different formats and visualization module, based primarily on the concept of the module that can be inserted, easy to be expanded, and able to support different types of mobile network simulation or simulation tools, such as NS-2, GloMoSim, and QualNet.
The simulation model map is Manhattan model. In Manhattan model, square grid denotes housing and mesh grid denotes street. The simulation experiments parameters are set as shown in Tables 1, 2, and 3.
MAC layer protocol parameters.
Simulation parameters.
Vehicles parameters.
In the simulation experiments, we compare SWF-GPSR (GPSR protocol based on SWF algorithm) protocol with general GPSR, 2-hop C-GEDIR, GRA and AODV protocols. Among them, 2-hop C-GEDIR (geographic distance routing) is the GPSR protocol variant, as discussed in [20]. Selecting some of the neighbors to forward the packet, neighbors that received the data packet continue to run the greedy algorithm. Node knows the location information of all it's hop and two-hop neighbor nodes. When a data packet is received, the node selected the nearest node X from the destination point from it's hop and two-hop neighbor nodes. If X is a hop neighbor, then the packet is forwarded directly to the X; if X is two-hop neighbor, it will have to find out neighbor node y to be able to reach X; data packets are submitted to X through y. We can see from Figure 5 that, in urban environment, due to the changing of the topology, the packet forwarding hops increase. Compared with general GPSR and 2-hop C-GEDIR, the number of hops of SWF-GPSR protocol is fewer in the packet forwarding process.

Comparison of average routing hops contrast.
The GRA (geographical routing algorithm) is another variant of GPSR protocol, which is different from GPSR; when local optimization problems occur, GRA will start the route discovery mechanisms (flooding mechanism) to search route to the destination node from the best host. If a route reply message is received, save the route in the routing table to reduce the number of routing lookup process that may occur in the future. As can be seen from Figure 6, in the urban road environment, with the increase of the number of nodes, the gap of average delay end-to-end between general GPSR and SWF-GPSR is more obvious; SWF-GPSR is faster than the general GPSR and GRA in transmitting the data packet to the destination node.

Comparison of average delay.
The curve of Figure 7 shows the curve of packet arrival rate when average speed of the vehicles is between 5 m/s and 19 m/s. In the simulation experiment, randomly select 20 pairs of nodes for communication. As can be seen from Figure 7, when average speed of nodes increases, the performance of AODV, general GPSR, and SWF-GPSR shows a downward trend. But the packet arrival rate of SWF-GPSR protocol is always higher than the others. AODV (ad hoc on-demand distance vector routing) is a hop-by-hop routing that needs to maintain routing tables, though including information of the destination node in the routing table, but due to the changes of the vehicles movement location makes topology change frequently, resulting in a large number of invalid routing information.

Comparison of packet delivery ratio.
As shown in Figure 8, through speed fluctuations forecasted algorithm and movement domain computation, the stability of the route link of SWF-GPSR is higher and the stability of within 10 nodes is similar to the general GPSR. However, when the number of routing nodes increases, the rate of change of GPSR link increased rapidly; by contrast, SWF-GPSR link is always keeps only about 30% of the rate of change.

Comparison of change of link.
The advantage of SWF algorithm is that it can forecast links of which the stability is strong through the speed fluctuations of vehicles in the real time, to meet the needs of VANET routing protocols. The GPSR protocol greedy algorithm in routing void area will use the boundary forwarding strategy, which can to some extent make up for unanticipated random speed changes, changes in the direction of travel of the vehicle, road congestion, and other problems.
5. Conclusion
In this paper, we propose an SWF algorithm to improve the GPSR greedy algorithm. Unlike other research in greedy algorithm of GPSR protocol, this research begins with changes in the location and distance from the relative speed of vehicles, according to features of vehicles running on urban road, makes heuristic forecast for vehicle speed based on wave fluctuations in equilibrium theory, achieves collection of the nodes of stable relative velocity, then designs the heuristic SWF algorithm to predict continuity and change timing of vehicles speed, and then computes position that vehicles may occur in, finding out the shortest route before boundary forwarding model is activated. Through theory analysis and simulation experiments, we evaluated SWF-GPSR and other protocols in the average transmission delay, routing hops, packet delivery ratio, and link changes. The results show that the SWF-GPSR protocol has better robustness and higher performance.
However, the structure of city road is so complex; set the same route before driving, that is, a certain degree of idealization. SWF-GPSR protocol needs to be thoroughly tested in the scene of more complex and road structure interconnected, such as specific changes in the density of vehicles and road traffic. Furthermore, the error of speed forecasted will result in the error of movement range of the computation, so vehicle may not appear within a predictable range. The biggest problem is that the height ratio between the wave curve is based on the judgment on the speed of change coming from the fluctuations in equilibrium theory. SWF algorithm will have a better accuracy in the speed limit on the road; in opposite, the accuracy will decline, producing larger computing energy. The algorithm of circle changing trends time and angle of the wave, the wave split rate also need more scientific and rational argument and proof of fuller experiments.
The next step of research is to improve the speed forecasted curve segmentation rate and limit speed computation methods, to introduce machine learning algorithm for intelligent judgment in speed change for road features and design more accurate and more efficient VANET routing algorithm for specialized city road.
Footnotes
Acknowledgments
This work is supported by the National Natural Science Foundation of China under Grants No. 61070169, Natural Science Foundation of Jiangsu Province under Grant no. BK2011376, Specialized Research Foundation for the Doctoral Program of Higher Education of China under Grant no. 20103201110018 and Application Foundation Research of Suzhou of China no. SYG201118.
