Hernafi2017 Article ACOAndPSOAlgorithmsForDevelopi
Hernafi2017 Article ACOAndPSOAlgorithmsForDevelopi
DOI 10.1007/s11277-017-4286-0
123
2040 Y. Hernafi et al.
1 Introduction
123
ACO and PSO Algorithms for Developing a New Communication... 2041
Our goal is to conceive a model that will exploit the communication to facilitate
exchanging messages, and discover an ideal route of a vehicle in case of an undesirable
incident and an unplanned event. The approach applies a routing management of the road
incident. Obviously, by providing an appropriate process in selecting itinerary, such
routing could be helpful in exchanging control messages to inform the nearest medics,
which are identified by a tagged label that marks the practitioner of medicine and informs
the ambulances who are close and ready to provide the first aid care and rapid medical
service on time.
However, the concept allows the detection of incidents in general, besides avoiding the
occurrence of similar accidents as well as alerting and involving medics and optimizing its
traffic.
In short, the main points of the contributions of the work are listed below:
• Ensure the fluidity of controlling communications and maintaining stability by
suggesting a clustering algorithm made for a perfect localization and high mobility.
• An inspiration from particle swarm optimization to elect the Cluster Head. With that
being said, modeling the vehicle’s interactions by two sub graphs based on graph
theory to ensure the communication and quality.
• In order to deal with these sophisticated optimizations, we have introduced the
suggested changes in the intern configuration of OLSR routing protocol.
• Avoiding route in case of an incident selected by the cluster head using ant colony
optimization.
• We use a realistic VANET mobility traffic taken from the metropolitan area of Tangier
(Morocco), in order to find and validate the best optimal configurations.
This article is organized as follows. In Sect. 2, we present a large state of the art, in order to
consolidate our literature followed by an appropriate motivation of the approach described
in Sects. 3 and 4. These Sections dissect the proposed mathematical models and algo-
rithms, while Sects. 5 and 6 describe the various simulations including presenting an
interpretation of results. Finally, we conclude the paper.
Various works have been conceived in previous literature, derived from the use of clus-
tering and routing algorithms in mobile along with vehicular networks. In this section, we
define the main clustering algorithms proposed for VANET, and the routing algorithms
based on Ant Colony Optimization since our proposed approach makes those two key
concepts harmonize with each other.
Zhang et al. [7] suggested a multi-hop clustering that represents a relative mobility
between vehicles. The cluster-head is elected according to the smallest aggregate mobility
value in order to construct stable vehicle clusters. To model the relative mobility, the
authors used the packet transmission delay to represent the logical distance between two
vehicles.
In [8], the authors proposed a clustering protocol that is able to maintain the stability of
the vehicular network, by introducing a quality of services based on clustering algorithm
that considers requirements and mobility constraints.
123
2042 Y. Hernafi et al.
The authors [9] suggested a clustering scheme using data clustering technique called affinity
propagation for VANET. The clustering scheme will form clusters with both minimum dis-
tance and minimum relative velocity between each cluster head and its members.
Several clustering algorithms have been presented in previous works, derived from the use
of an adaptive concept of clustering, however, the majority of them designed essentially for
classical ad hoc network and have different constraints that make them insufficient for
vehicular network. Our system focuses on assuring fluidity information for warning message
systems and re-route the itinerary in case of an incident, based on an inspiration from social
behavior of bird, referred to as particle swarm optimization (PSO) [10, 11], to elect the cluster
head by proposing a fitness function for finding the best probability. With an illumination of
the proposed approach, Hernafi et al. [12] suggested a mixture between the two techniques, the
goal is to present a method for compressing data by using aggregation based on the division
into sectors and the implementation of the clustering technique by mixing the entirety in a
dedicated architecture that is designed to optimize the interconnection.
Concerning the cluster head selection, different works have been presented, we can
define, among others, the lowest ID [13], where the selection of the CH is based of lowed
ID. We can also specify the highest degree [14], that selects the CH based on the node
neighboring connectivity. The node with the maximum number of neighbors is elected as
the CH. The problem of these previous algorithms is that in a vehicular network, this
concept of selection is not always the ideal proposition because the movement of the
vehicles is not considered, and not stable due to the nature of the nodes’ movement. The
utility function [15] it performs better than the preceding two approaches. This algorithm is
based on a multiple metric weighing algorithms to determine the most stable CH.
Several works have been achieved coping with the use of graph theory to model vehicle’s
interactions [16, 17], however, the majority of them focus on the obvious concept of formation
and control. Our system focuses on assuring information fluidity for message warning systems,
and that includes assuring the quality of cluster head selection and transmission.
When we return to the literature, one of the important thematic being proposed, is an
elaboration of a system of communication protocol to propagate warning messages in order
to prevent collisions. Avvin et al. [18] suggested a model to represent the interactions
between multiple vehicles, it aims to provide contextual information for collision warning
applications. Yang et al. [19] proposed a communication protocol for emergency warning
dissemination, which uses a state transition mechanism and limits the forwarding distance
to reduce redundant messages. The aim is to develop a congestion control strategy for an
efficient multi-hop broadcast protocol.
The work of Biswas et al. [20] suggested an intelligent broadcast protocol that uses
implicit acknowledgment that randomly delays reducing the unnecessary rebroadcast. Our
work belongs to a different dimension of research compared to the existing works, the
ultimate goal is to develop a model that will exploit the message dissemination to facilitate
exchanging messages and update the route of a vehicle in case of an incident.
The proposed routing protocol in [21] uses an adaptive quality of service routing protocol,
which aims to find the best routes from source to target intersection in terms of delay,
123
ACO and PSO Algorithms for Developing a New Communication... 2043
bandwidth and delivery ratio. The presented protocol selects, adaptively, the best routing
paths based on the periodically estimated relaying quality of road segments.
Baras et al. [22] proposed a probabilistic emergent routing algorithm (PERA) based on
the Swarm Intelligence paradigm that exploits the inherent broadcast capability. An active
method, that periodically broadcasts ants’ agent in order to find the best local solution. Our
work belongs to a different ideology of research compared to the existing works, the
ultimate goal is to develop a model that will exploit the message dissemination to facilitate
exchanging messages, and update the route of a vehicle in case of an incident.
123
2044 Y. Hernafi et al.
123
ACO and PSO Algorithms for Developing a New Communication... 2045
Table 1 Notations
Symbol Significance
123
2046 Y. Hernafi et al.
including the residual distance. We believe that all the definition of these parameters may
not ensure the stability because of these complex probabilities.
We model a cluster head selection algorithm that allows to elect a set of optimal CHs as
well as dividing the network into clusters. The cluster structure is determined for the first
time by the geographic position of the vehicle, then in second place the most stable vehicle
that can act as a CH is a vehicle that has the minimum average distance among the other
vehicles in the cluster, the ideal closest speed to the average speed and the maximum
number of neighboring vehicles.
1: Initialization
2: D: Distance of the trajectory traveled by the vehicles
P
3: g for CO2 : unit consumption per kilometer
4: Fe : Emission Factors
5: procedureFuelConsumption
6: for each vehicles (i) in V do
P
7: fCO2 ðiÞ : g for CO2 D Fe
8: fTotalCO2 ðiÞ : fCO2 ðiÞ=h km vehicle i
9: DFuelij : fTotalCO2 ðiÞ DF
10: end for
11: end procedure
1: Initialization
2: D: Distance of the trajectory traveled by the vehicles
3: t: Time of travel
4: Dd : Displacement between two points
5: AvgVelocity ¼ Dtd
6: AvgSpeed ¼ Dt
7: procedureSVRatio
8: for each vehicles (i) in V do
9: VelocityRatioðiÞ ¼ AvgVelocity
AvgSpeed
10: end for
11: end procedure
**Since speed is based on distance and velocity is based on
displacement, these two quantities are effectively the same.
One of the important features to ensure smooth and relevant communication is the famous
principle of routing. Routing protocols can be classified according to several criteria that
depend on different families and classifications.
123
ACO and PSO Algorithms for Developing a New Communication... 2047
123
2048 Y. Hernafi et al.
other vehicle in the cluster, the ideal closest speed to the average speed and the maximum
number of neighboring vehicles. The candidate vehicle broadcasts periodically a Hello
message containing two constraints of qualities, the presumed ideal position (to accurately
estimate the current geographical location, the Global Positioning System can easily be
deployed on vehicles) and mobility quality metrics. Then each vehicle votes for it neighbor
having the maximum probability and the ideal location. Therefore, the Hello messages are
modified to support the exchange of QoS information, each vehicle sends this type of QoS
information to all its neighbors, the one-hop neighbor in order to apply such heuristic vehicles
to know the two-hop neighbors, the neighbor of their neighbors. To better understand this
routing protocol optimization, the TC messages are similar to those of OLSR but they carry
QoS information associated with links. The available mobility metrics of links are embedded
in TC messages, along with probability calculation of routes.
The improving idea of our work is presented as follows: The candidate vehicle broadcasts
periodically a Hello message containing two constraints of qualities, the presumed ideal
position and mobility metrics. Then, each vehicle vote for the neighbor, that has the maximum
probability value and the ideal location. Let taking for granted that the vehicular networks
represent vehicles as nodes dispersed over a circle of a certain radius R, as depicted in Fig. 1.
Moreover, the Fig. 12 as well as the Sect. 6 define an illustration of the cluster head election
algorithm. All the vehicles move together around the circle in order that they continue to be at
the same distance from each other, whatever was the variation of the angular speed with time.
The cluster head must imperatively be located in the ideal position of sectors. Let O be the
center of the circle and let r be the location of the candidate cluster head. Location of mobile
vehicles can be conveniently described in the polar coordinate system with pole O and polar
axis Oz. The road is divided into M rings, where each ring in the same width mR . All vehicles
along the road are expected to know their geography and can determine the limits of sector.
In particular, by adopting a polar coordinate system which is defined as a two-dimensional
coordinate system, where each point of the plane is fully determined, the coordinate of
every point can be designated by ðr; hÞ, where r is the distance between the point and the
polar (the position of the candidate vehicle) and h is the included angle with the polar axis.
It is interesting to note that the point M is perfectly located if we know the distance OM =
r, that correspond to the radial coordinate as exposed in Fig. 1. The coordinates of the
boundary of an area in each cycle can be represented by (1) and (2), the ideal position of
candidate cluster head in each sector of the ring must be located in the centroid of the
inferior arc of the sector (geometric center), the coordinates are (3).
R
ð i 1Þ ; a ð1Þ
m
R
ði 1Þ ; b ð2Þ
m
where a and b are the angles of the boundary of the sector.
R aþb
x ¼ h ði 1Þ ; T ð3Þ
m 2
123
ACO and PSO Algorithms for Developing a New Communication... 2049
where h the position of cluster head source and T the multi-hop transmission delay to send
messages. However, if there is no vehicle located in the ideal position the nearest node of
this position will be the aggregation vehicles in sector. Then, all the others can transmit
their message dissemination to the destination vehicles by one of the routing protocols. The
warning message includes additional information containing the position, the total number
of vehicles on the road, the radius of the network R, the number of cycles m, and the
desirable number of vehicles. The connectivity valuable function is to increase the cov-
erage of CH and MPR’s, which is defined in our context as a cluster gateway, also the
velocity, and and the distance parameters that aim to maintain the the desirable stability of
the traffic. In the same algorithm, the elected cluster head interact with MPR nodes to
ensure a smooth communication. Note that in the internal configuration of routing protocol
we need some changes, some types of modifications are done on the original Hello election
and messages to make adequate job. Along with adding a pertinent flag to signal that a
vehicle has been designated as a CH and another flag in the configuration to denote that a
neighbor has been elected as a CH. The conception of the mechanism is exposed in
Algorithm 3.
1: procedureCH
2: for each vehicles vi ; vj in V do
3: get all vehicles coordinates by the network topology
4: randomly initialize the position and velocity of the particles
123
2050 Y. Hernafi et al.
The representation of graph theory to model the VANET communication, designates each
equipped vehicle in correspondence to a node in the graph, the route is modeled as a
directed graph GðV; EÞ that exposes the interactions between vehicles, where V is a set of
nodes representing the vehicles, and E is the directed edges defining reaction between
vehicles, links in the graph are determined by the model based on vehicle-to-vehicle
communications. A cluster head a is coupled with some information package like the
position coordinates, width, and speed. The list of vehicles in a specific area is represented
as a set A ¼ fa1 ; a2 ; . . .; an g the set of vertices V is equivalent to the set of vehicles A.
Given a set of vehicles A, we can construct an interaction graph G by firstly assigning A to
V and generating the set of edges E by following the procedure. Figure 3 represents the
interaction graph for the traffic situation shown in Fig. 2.
For the transfer of a warning message and to compensate the packet loss using multiple
paths from source to destination, we conceive two sub graphs of G, namely, Gðs; aÞ and
Gða; dÞ, where:
GGðs; aÞ Gða; d Þ ð4Þ
We define a cluster head aVnfs; dg whose goal is to guarantee message transfer from s to
d as soon as possible, the cluster head vehicle creates messages that conform to the
communication protocol. To be more successful, (a) needs to be in V ðs; d Þ, including being
part of all possible paths from s to d in Gðs; d Þ
We use Gðs; aÞ ¼ ðV ðs; aÞ; Eðs; aÞÞ to represent the preliminary transfers of message, that
means all forwarding paths starting at s to a, the cluster head which acts as a relay. V ðs; aÞ
contains all nodes in V that are connected by an edge Eðs; aÞ.
123
ACO and PSO Algorithms for Developing a New Communication... 2051
Gða; dÞ ¼ ðV ða; d Þ; Eða; dÞÞ represents successful transfers from s to d. Thus V ða; d Þ
and Eða; dÞ contain all nodes and edges that are part of a path from s to d.
To conceive an intelligent system and to ensure the efficiency of alert messages transmission,
we can calculate the number of cluster heads on the road between source and destination.
S ¼ fjfvVnfs; d givSgjg ð6Þ
The presence of the number of Cluster Heads factor procreates the success for transmission
of the warning message on the paths, it aims to provide some intuition of routing protocol’s
decision.
S
PðaVnfs; dgÞ ¼ ð7Þ
jV fs; dgj
The GPS [24] is a space-based navigation system consisting of orbiting satellites that assures a
precision and accuracy details of position, speed and time. The main solution for vehicular
network localization is to equip each vehicle node with a receiver, a clever solution since the
GPS act as a product able to receive information constantly being sent by the satellites. The
GPS receiver uses the time of arrival technique (ToA) to estimate its distance and compute the
position. We assume that all the vehicles are equipped with the GPS system, for launching
location to find as quickly as possible the destination and vehicle’s position. Besides, the
current vehicular positioning systems are not providing sufficient positioning accuracy to
support the required reliability of vehicular safety applications. After all, we meet massively
traffic on the roads causing daily congestion problems. Moreover, GPS can consider that
information to suggest recommendations of itineraries to avoid the increase in traffic. The
blotting and expansion in traffic on the planned route are thus detected, reported and displayed,
that said, traffic problems could therefore be circumvented quickly.
The growing impact of congestion causes so many complications, the saturation of
roads will have very serious consequences for the economy in general. Further, related to
123
2052 Y. Hernafi et al.
the environmental impact that accompanies rising traffic jam, the fuel consumption which
generates a proportional increase in CO2 emissions and other air pollutants, including
certainly the real risk in terms of health, by causing the anxiety and stress.
The idea was to address some observations for inspiration to offer a suitable product, the
aim of this work is to design and evaluate a bio-inspired process that take into account
information available in the vehicular network, such as the position and the vehicle’s
speed. Clearly, that information could be especially beneficial to drive the routing deci-
sions, so that they can be adapted to VANET applications.
1: Initialization
2: Initialization all vehicles and get all coordinates
3: Set an initial value of pheromone on every path
4: CHSetðaÞ :¼ CHSetðdÞ :¼ £
Forward Agent
5: procedureForwardPhase
6: for each CHsource a do
7: set flag of ANT Hello message to 0
8: broadcast Ant hello message
9: for each intermediate vehicle i do
10: insert information into Ant Hello message
11: end for
12: end for
13: end procedure
Backward Agent
14: procedureBackwardPhase
15: for each destination d do
16: set flag on Ant hello message to 1
17: for each path i do
18: calculate Dij
19: calculate average fuel consumption and emissions CO2
20: compute FQðiÞ : quantityðxÞjxi and quantityðxÞ :¼ minfquantityðujuiÞg
21: computepheromoneðiÞ ¼ sij Vcib QosðiÞ
22: computeProbðiÞ :¼ pheromoneðiÞ=pheromoneð jÞ
23: end for
24: CHSetðd Þ :¼ f xjxjgprobð jÞ : maxf probðujuPÞg
24: send back the Ant hello messages 2 hop away
25: end for
26: end procedure
Final Phase
27: procedureFinal
28: for each source k do
29: CHSetðaÞ :¼ fxjxjgprobð jÞ : maxf probðujuPÞg
30: end for
31: end procedure
123
ACO and PSO Algorithms for Developing a New Communication... 2053
When we usually observe a colony of ants in searching for food in their everyday lives,
we realize that it solves such problems as finding the shortest paths [25, 26]. Ants solve
complex difficulties by relatively simple mechanisms to model. This makes it quite simple
to simulate their behavior by algorithms applying in the case of vehicular networks.
Walking from the nest to the food source, and inversely (which initially mainly done
randomly), ants deposit on the route in passing a fragrant substance called pheromones.
This substance therefore allows creating a chemical trail, which represents a mark for
tractability. In fact, other ants can detect pheromones through sensors on their antennae.
Pheromones have a role of path marker, when the ants choose their routes, they tend to
select the track that carries the highest concentration of pheromones. This allows them to
find their way back to their nests during the return. On the other hand, literally, the other
ant’s can use the odors to find the sources, and when choosing their way, they tend to
choose, in probability, paths anchored by strong pheromone.
Assuming that the ants are going to follow a pheromone trail, at one point, a sudden
appearance of an obstacle causes an unexpected shutdown of the road. The latter one,
which, are in front of this obstacle, must choose a new route. Since no pheromone is
deposited along the obstacle, there are so many ants that tend to look for another way out.
However, since the chosen path is shorter than the other, the ants that use it, will find a
faster starting pheromone trail. Pheromones of these ants will be superimposed along the
road. So, when they will join the original path, the path will be selected twice-impregnated
pheromone than the previous road, where the initial ants have not yet been able to join the
original track (the path is longer).
Ants who come to the obstacle at this moment prefer to follow the new road. The
number of ants passing through the latter will increase, which will further increase the
concentration of pheromones. Additionally, the evaporation of pheromones will be
stronger compared to the old road. It will therefore quickly abandon by cause of less
impregnation, ants spend instantaneously to the shortest one. Our inspiration applies this
idea to the intelligent transportation system.
In our case, it is assumed that the vehicles are equipped with a GPS module for the
initial location and VANET connection system (802.11p). Before launching the strategy of
routing, the user tends to launch location via GPS to find as quickly as possible the
destination, the Fig. 4 presents the concept of our routing decisions, likewise, the Fig. 5
depicts the global probability of the ideal itinerary of the alert system.
The route discovery is realized by broadcasting the message to each vehicle, the goal is
to find the highest pheromone neighbor along with an update of the message. The prob-
ability made of Ant colony, offer a package of performance like a smooth connectivity
related to a permanent reduction of average end-to-end delay, network latency and
increasing the probability of finding the roads as quickly as possible. We evaluate in a first
place the impact of road incidents by anticipating random crashes at a particular case, to
draw a relevant and comprehensive analysis of the evaluation results obtained, then we
apply the intelligent system and routing optimization, to allow vehicles to bypass the
blocked itinerary, including the possibility to alert the nearest medics in the area of interest,
in case of a problem that occurred in their routes.
Deducing from general principle, when a vehicle wants to establish a communication
with another on the vehicular network, normally, the road is between these two users. After
all, if during the communication, we found ourselves surrounded of a risk of an incident or
bottling, according to the agents created, artificial ants tend to apply the shortest path
mechanism. On the basis of the principal strategy, the new route can be deduced by the
probability calculation (the calculation of the intensity of the trace pheromones and
123
2054 Y. Hernafi et al.
123
ACO and PSO Algorithms for Developing a New Communication... 2055
practicable time). Figure 6 describes the proposed re-routing strategy. To adapt these
concepts, the main objective of this part is to anticipate accident scenarios to design a
mechanism to ensure updating in real time upon detection of an abnormality. On the other
hand, distinctly, the mechanism of our routing could be especially beneficial in the case of
emergency response operations. The approach is to send periodically the warning messages
to the neighboring vehicle, in addition to find as well as to inform the nearest doctor user in
case of serious problems. In contrast, the routing is based on multi-hop communications
with the aim of reaching all nodes for which the warning may be relevant, in order that
represents an alerting system and a traffic optimization for a preliminary rescue. Never-
theless, this routing concept reduces the amount of times lacks in alerting and increases the
chance of saving lives of the accident victims.
Based on the principle presented by Dorigo [26], the probability of ants to choose a
particular path is given by Eq. (8) and the pheromone evaporation is calculated by formula
(9):
sij
Pij ¼ P ð8Þ
k¼1 nsik
Our purpose reflects the principles and qualities to find the ideal paths in terms of delay, in
addition, to reduce the dynamic effect of the network topology on the routing protocol, in
order to avoid a route with an unplanned disruption. Based on the characteristics of
VANET, the desirable path will be the one with lower hops number of vehicles between
the source and destination, on the other hand, the communication will be privileged among
vehicles with a smaller delay between them.
123
2056 Y. Hernafi et al.
Afterwards, we opted to dissect other metrics, the idea was to estimate the lowest
average CO2 emissions and fuel consumption based on vehicle variables that can fre-
quently be obtained from a microscopic traffic simulator or another alternative source like
GPS.
A fitness functions are evaluated for each route, the best route is selected based on
smooth scores, and the evaluation is the sum of weighted cost function, so the route with
the lowest result is the adequate solution. We have the intuition that the highest impact on
the environment of CO2 emissions and fuel consumption in a particular itinerary tends to
predict that we have an unexpected problem in this path. Relatively for the reason that in
case of an incident, they tend to consume more resources for a longer time, the route with
the highest and desirable probability will be the one for the route discovery. Ancillary, this
strategy implements certain qualities to explore, furthermore, updates routing paths in the
best conditions in order to bounce problems in traffic.
Once determined, to interconnect and form a connected network, the cluster heads are
charged to select the optimal MPR as a cluster gateway, in order to manage the classical
cluster member. Consider a case where a vehicle wants to discover an alternative ideal path
during an incident to avoid the actual itinerary. It establishes the interactions between these
two entities. Then, the cluster head source generates more packets of the ant hello message
with a flag equal 0 indicating that these messages will be forwarded to the target cluster
heads destination exploring the network and finds the routing paths.
Each vehicle calculates its quality of service metrics value and inserts it in the message
until reaching the cluster head. Thereafter, this cluster head calculates the quantities of
pheromone for each path. Subsequently, it selects the path having the highest concentration
of pheromone.
Once reached, this cluster head sends back the ant hello messages with a flag 1 indi-
cating that these messages will be returned to the source. The source cluster head receives
the message and selects the optimal path and localization within its cluster and MPRs.
Technically speaking, at each vehicle along the path, the identifier of the vehicle Vi is
added to the header. The response will be gradually released to the next vehicle. If routing
information is available, Vi choose the next vehicle Vj with a probability PVij cib calculated as
follows:
V d 1 a 1 c
sij cib Delayij hopij ðFuelÞx
Probij Vcib ¼ P h ia h ic ð10Þ
ke Nei
Vcib
½sik Vcib d Delay
1
ij
1
hopij ½Fuel x
where d, a, x and c are a control parameters. At time t, the ants are a compromise between
visibility and intensity of the trace of these pheromones on all routes to choose the next
destination j, sij Vcib represents the value of the pheromone of a path on Vj when the request
launches since Vi to Vcib . Nei Vcib is the set of neighbor Vi vehicle. a is the number of hops
influence factor and c is the delay influence factor.
After finding the probability of preferably paths, the cluster head source has several
paths to the destination. The route, which has a higher probability path, is selected for data
transmission.
When the request arrives at Vcib , a response is generated (using an unicast transmission
that depends on routing protocol strategy) to the source S following the corresponding
reverse paths. The requests aim to collect quality road segments, then remove and update
the pheromone. When response reaches Vi (since Vj ), it updates the value of pheromone
sij Vcib in Vi as follows:
123
ACO and PSO Algorithms for Developing a New Communication... 2057
where p is the regulatory factor of the influence of new measured values of the current
pheromone. qualityij Vcib is relayed quality collected by probability of the road from Vi to
Vcib over Vj .
The idea is to implement a quality mechanism for predicting a particular incident to find
out a path that satisfies certain requirements. The probability in addition to the pheromone
value must have a delay (refers to the time between sending a dissemination message and
its reception) and a hop count as small as possible to calculate an ideal probability to select
the destination route. So, it is desirable to find paths with minimum resources to avoid road
incident.
5 Simulation Parameters
123
2058 Y. Hernafi et al.
Nevertheless, we applied a realistic scenario for traffic simulations taken from the Open
Street Map as described in Fig. 7, by considering a road network section of city of Tangier
in Morocco and taking into account real parameters of traffic. As a next step, the Figs. 8, 9
and 10 define respectively the procedure to generate a real traffic simulation, since the
capabilities to import road networks from Open Street Map until the configuration and
visualization of the simulations.
On roads, an unexpected incident is often used more broadly to refer to any problem that
causes complications in traffic conforming to collision, roadwork, and weather conditions
potentially leading to a slow speed and congestion, along with other common issues. To
anticipate such an event in SUMO, we can arrange some option, among others, by
adjusting the possibility for the traffic stop over a period. In addition, defining other
alternatives, through handling the traffic lights so that remains red for a longer period than
the regular duration, furthermore, impeding traffic by driving too slowly, however, by
arranging speed state. We opted to adopt the first option for stopping vehicles, the most
profitable solution. Certainly, to make this challenge we need all the essential information,
namely, points and track identifiers, necessary to simulate a traffic jam.
As expected, among the importance remedies made for accident prevention is antici-
pation. To illustrate the simulator functionality, a simplified algorithm is also described,
including the desirable changes. The pseudo-code triggers a stop of a vehicle on a specific
track for a period, as a complement, the Fig. 11 shows a complete cessation of all cars.
Deducing from general principle, in simulation of continuous road traffic in common,
SUMO in particular, when a vehicle waits longer that 300 s, the car will be automatically
teleported by default. This means that when a vehicle recognizes a stop in our case to
simulate a break down, it will be stopped for a period, which is less than what is defined in
advance, then they moved automatically. To overcome this problem, the time was
increased imperatively, nonetheless, the main objective is to anticipate accident scenarios
in order to achieve the rating requirements in furtherance of a comprehensive study.
123
ACO and PSO Algorithms for Developing a New Communication... 2059
Fig. 8 Import the map of Tangier using Open Street Map by SUMO
123
2060 Y. Hernafi et al.
123
ACO and PSO Algorithms for Developing a New Communication... 2061
6 Interpretation of Results
As an illustration to cluster head election algorithm, the Fig. 12 presents a network with a
ten vehicles and the Table 5 depicts the fitness quality value of each node using the model
proposed referring by the Table 2. After exchanging the Hello messages, a node votes for
its neighbor with the maximal metric value. In consideration of the proposed algorithm,
123
2062 Y. Hernafi et al.
node 5 and 6 are elected as cluster heads, furthermore, the cluster heads select the MPR
nodes for an eventual connection of all the heads. Indeed, the node with a better Fitness
metric value is picked out. Moreover, there are two choices to connect head 5 with head
node 6 either through (node 10–9) and (node 8–9). The entity 5 can selects the node, which
has the maximal Fitness quality and the presumed position. Then, by symmetry, head node
6 would selects node 9 as an MPR node.
In the Fig. 13, the simulation results show the performance of the different clustering
algorithms, effectively by addressing the Lower ID, Highest Degree, Utility Function and
our election approach. We examine the stability of the cluster, which depends on the
distance as well as velocity factors related to connectivity. The score is obtained by
counting the number of current vehicles based on duration travel time. If the average of
vehicles is still in the cluster, then it’s considered stable.
The results reveal that our algorithm performed better than the others, this clarification
can be justified by the fact that our model takes into account the distance factor
123
ACO and PSO Algorithms for Developing a New Communication... 2063
Fitness quality 350.5 101.6 123.4 196.8 590.2 486.3 159.1 260.4 390.1 101.5
Fig. 13 Percentage of cluster head stability for lowest ID, highest degree, utility function, and our selection,
depending on densities
proportional to the adopted mobility metric. For the lowed ID, the results obtained have
any impact on the selection of the cluster head, the movement and constraint of vehicular
network is not considered. Except for the highest degree and the utility function algorithm,
it is shown that they performed differently when the number of vehicles changed. The
density of vehicles and speed affect the number of nodes that are connected to the cluster
head, and both of these algorithms use the degree of connectivity, in order to choose the
right cluster head.
Figure 14 shows the analysis of the observed vehicles’ consumption depending on the
number of vehicles. The graph confirms that a fuel saving consumption is directly pro-
portional and has an affinity with the vehicle density. The proposed approach can decrease
the total fuel consumption rate and performs with great results for all scenarios. For
instance, when we vary the vehicle density, the fuel tends to increase and the reduction
triggered by the model is more than 30%.
It’s exactly the same thing happened to CO2 emissions, these emissions created by
burning fuel are directly related to fuel consumption rate. That said, when the percentage
of fuel increased, the CO2 emissions realizes a concrete high-rise. Generally speaking, the
traffic congestion does not affect the CO2 emissions consumption and fuel consumption of
our system, intuitively, for the reason that the alternative route used by vehicles in the
approach leads to a smooth traffic condition.
123
2064 Y. Hernafi et al.
Fig. 14 Fuel consumption rate and CO2 total emissions for classical model and our proposed intelligent
model, as a function of vehicle
In the scenario with accident condition, the fuel consumption has increased for both
solutions after the accident takes place. The total simulation period was 1000s, the accident
is triggered after 300 s and excluded at 700 s of simulation. When an accident appears
compared with the other solution, the results exposed that the lowest fuel consumption rate
is related to our solution in an accident scenario. Likewise, the Fig. 15 reveals that our
model can reduce the fuel consumption by offering at least 30% of benefits for all assessed
scenarios and consequently outperforms in total consumption of CO2 emissions.
In Fig. 16 we evaluated the average travel time for the overall increase in both densities
and times. It’s evident that the average travel time increases, when the number of vehicles
conduces of an exponential growth. However, the proposed model was performing great
results versus the classical model. The average time travel was almost the same for both
models in initial densities, and at higher densities, the proposed model has the best results.
Facing on incident conditions, it’s obvious that the duration of the accident tends to
increase the average travel over time. From the performances shown in the Fig. 17, we can
observe that our approach still works greatly, that being said, it has been shown that the
concept may bounce and avoid accidents. The mechanism started to reroute the vehicles
through another alternative. When the simulation cleared the duration of the accident, we
notice a rapid decline and all the graphs displayed their initial values.
Related already to the relative smartness, we demonstrate another aspects to evaluate
the model projected, as well as to enhance the quality of the air around cities by reducing
the emissions. The vehicle accident contributes significantly to fuel consumption and also
the CO2 emissions as mentioned previously. This lead consequently to large increases of
gas emissions. Among the described emissions, are cited, the particulate matter (PM),
123
ACO and PSO Algorithms for Developing a New Communication... 2065
Fig. 15 Fuel consumption rate for classical model and our proposed intelligent model, depending on
simulation time in case of an accident (from 300 to 700 s)
Fig. 16 Average travel time for the classical model and our model, as a function of vehicle density
123
2066 Y. Hernafi et al.
Fig. 17 Average travel time for the classical model and our model, depending on simulation time in case of
an accident (from 300 to 700 s)
nitrogen oxides NOx , carbon monoxide (CO), hydrocarbons (CH), and including the noise
emissions.
Moreover, the classical model produces negative effects, we can dissect a lead to large
increases in all emissions pollutants. The results of pollutant emissions can be depicted
respectively in the Figs. 18, 19, 20, 21 and 22. Comparing the results of the graphs, it can
be noticed that the quantity of gases emitted by the first scenario related to the proposed
model, is smaller than the classical model in the second scenario. It’s totally evidence and a
confirmation, as mentioned earlier in previous interpretations.
A quick glance in the Fig. 23 shows that in terms of time, by using the transmission
protocol user datagram protocol (UDP), the SC-OLSR protocol provides a reduced time of
average end-to-end delay compared, respectively, to OLSR and GSR routing protocols, we
find that the suggested protocol branded satisfying benefits face of both protocols. The SC-
OLSR protocol can automatically make routing decisions based on the updated pheromone
and fluidity of clustering mechanism, these clusters employ a higher data rate. It’s clear
that the metric of delay increases with increasing number of vehicles. For OSLR, expect
the problem of routes fail and the innumerable signaling messages, it’s despite a pre-
sentable performance in beginning compared to GSR who performed poorly. The average
delay of GSR increases constantly by cause of forwarding the data on road segments, the
problem in this method is that consequently, the road segment may become blocked and
congested, related to this dilemma, the overall communication performance could suffer.
Briefly, we can deduce that GSR, and also OLSR present highest delay compared to the
approach routing proposed.
The packet delivery ratio is affected by the increase of the traffic load, as we can catch
from the graphs depicted in the Fig. 24, as the vehicle density increases all routing
123
ACO and PSO Algorithms for Developing a New Communication... 2067
Fig. 18 The carbon monoxide (CO) emissions for classical model and our proposed intelligent model,
depending on vehicle density
Fig. 19 The hydrocarbons (HC) emissions for classical model and our proposed intelligent model,
depending on vehicle density
123
2068 Y. Hernafi et al.
Fig. 20 The noise emissions for classical model and our proposed intelligent model, depending on vehicle
density
Fig. 21 The nitrogen oxides (NOx ) emissions for classical model and our proposed intelligent model,
depending on vehicle density
123
ACO and PSO Algorithms for Developing a New Communication... 2069
Fig. 22 The particulate matter (PM) emissions for classical model and our proposed intelligent model,
depending on vehicle density
protocols clearly perceive a decrease. Using constant bit rate (CBR) traffic, the highest rate
that is anchored by the SC-OLSR protocol. It displays a higher PDR than OLSR and GSR,
with as much as a 40% increase compared with the classical OLSR and as much 25%
increase compared with GSR. In most cases, we also see some decline in the average
delivery ratio when data traffic increases. In contrast, as can be observed that in some
traffic load, the values have a tendency to decline. Undoubtedly, the SC-OLSR always
takes the lead with a mixture of the rise and stability, therefore, it performs better in
medium and dense networks than in simple traffic.
The gap in delivery ratio between these routing protocols is due to a problem inherent to
position-based routing and proactive one in general. We observe that the delivery ratio of
GSR shows a normal performance, the delivery increases as the network become denser,
this being by reason of that the protocol integrates the mechanism for road layout selection,
conceivably, a part of packets data cannot attain their destination due to an inadequacy of
connectivity performance in the grid layout. For OLSR, the highest PDR is even less, we
recognize that the performance is more affected by contention in the networks. The
expansion in the number of nodes translates into an increase of the link state updates. In
general, this increases a high volume of control overhead, hence many transmissions on
errors occurs as well as traffic congestion resulting in a lower delivery ratio. In our
measurements, SC-OLSR clearly outperforms the other protocols, which demonstrates the
relevance of the routing concept.
Concerning the throughput, when we observed the results identified as shown in the
Fig. 25. The results basically confirm conclusions of the PDR, its clear that the average
throughput of the SC-OLSR protocol is higher by comparing with the others protocols in
123
2070 Y. Hernafi et al.
123
ACO and PSO Algorithms for Developing a New Communication... 2071
123
2072 Y. Hernafi et al.
Fig. 25 Throughput for SC-OLSR, OLSR, and GSR depending on different node densities
transmission traffic of CBR. Even with these little appreciable results these protocols tend
to decline, we see a relatively flow down of the number of vehicles.
7 Conclusion
123
ACO and PSO Algorithms for Developing a New Communication... 2073
vehicle in the cluster, the ideal closest speed to the average speed and the maximum
number of neighboring vehicles.
Finally, a lucidity from the Ant Colony to bring probability calculation of agents
tending to discover another alternative itinerary depending on the shortest route. The
interest of routing is to find the ideal path, with involving medics and ambulances who are
close and ready to provide the first aid care and rapid medical service on time. In order to
deal with these sophisticated optimizations, we have introduced the suggested changes in
the intern configuration of the OLSR routing protocol, namely, the smart cluster OLSR.
The idea was to calibrate the QoS routing extension for OLSR by modifying the selection
of the entity and the TC messages to spread the QoS information throughout the road.
The suggested model marks an acceptable benefits in terms of metrics performance and
optimization, by referring to accomplishment analysis along with simulation results. In the
future perspectives, we are planning to enhance the functionality from other more
sophisticated routing protocol and advanced design for implementing complex systems,
likewise, this work can be extended by aspects of artificial intelligence techniques with the
quality of service objectives. Furthermore, we intend to analyze the performances of our
deployed system in more realistic scenarios by using traces from real environments.
References
1. Nam, T., & Pardo, T. A. (2011). Conceptualizing smart city with dimensions of technology, people, and
institutions. In Proceedings of the 12th annual international digital government research conference:
Digital government innovation in challenging times (pp. 282–291). ACM. http://dl.acm.org/citation.
cfm?id=2037602.
2. Santa, J., Gmez-Skarmeta, A. F., & Snchez-Artigas, M. (2008). Architecture and evaluation of a unified
V2V and V2I communication system based on cellular networks. Computer Communications, 31(12),
2850–2861.
3. Bernardos, C. J., & Guerrero, C. (2013). Position-based routing in vehicular networks: A survey.
Journal of Network and Computer Applications, 36(2), 685–697.
4. Hernafi, Y., Ben Ahmed, M., & Bouhorma, M. An approaches’ based on intelligent transportation
systems to dissect driver behavior and smart mobility in smart city. In 2016 4th IEEE international
colloquium on information science and technology (CiSt) (pp. 886–895). IEEE.
5. Chaqfeh, M., Lakas, A., & Jawhar, I. (2014). A survey on data dissemination in vehicular ad hoc
networks. Vehicular Communications, 1(4), 214–225.
6. Hoque, M. A., Hong, X., & Dixon, B. (2014). Efficient multi-hop connectivity analysis in urban
vehicular networks. Vehicular Communications, 1(2), 78–90.
7. Zhang, Z., Boukerche, A., & Pazzi, R. (2011). A novel multi-hop clustering scheme for vehicular ad-
hoc networks. In Proceedings of the 9th ACM international symposium on mobility management and
wireless access (pp. 19–26). ACM.
8. Wahab, O. A., Otrok, H., & Mourad, A. (2013). VANET QoS-OLSR: QoS-based clustering protocol for
vehicular ad hoc networks. Computer Communications, 36(13), 1422–1435.
9. Shea, C., Hassanabadi, B., & Valaee, S. (2009). Mobility-based clustering in VANETs using affinity
propagation. In Global telecommunications conference, 2009. GLOBECOM 2009. IEEE (pp. 1–6).
IEEE.
10. Kennedy, J. (1999). Small worlds and mega-minds: Effects of neighborhood topology on particle swarm
performance. In Proceedings of the 1999 congress on evolutionary computation, 1999. CEC 99 (Vol. 3).
IEEE.
11. Trelea, I. C. (2003). The particle swarm optimization algorithm: Convergence analysis and parameter
selection. Information Processing Letters, 85(6), 317–325.
12. Hernafi, Y., Bouhorma, M., Ben Ahmed, M., Boudhir, A., & Alluhaidan, Y. A. (2015). Clustering
architecture for smart mobility control: Application to pilgrims in the Great Mosque in el Hajj. Journal
of Theoretical and Applied Information Technology, 78(1), 84.
123
2074 Y. Hernafi et al.
13. Stojmenovic, I., Seddigh, M., & Zunic, J. (2002). Dominating sets and neighbor elimination-based
broadcasting algorithms in wireless networks. IEEE Transactions on Parallel and Distributed Systems,
13(1), 14–25.
14. Ramalingam, A., Subramani, S., & Perumalsamy, K. (2002). Associativity based cluster formation and
cluster management in ad hoc networks. In 9th international conference on high performance com-
puting (HiPC02).
15. Fan, P., Haran, J. G., Dillenburg, J., & Nelson, P. C. (2005). Cluster-based framework in vehicular ad-
hoc networks. In Ad-hoc, mobile, and wireless networks (pp. 32–42). Springer.
16. Olfati-Saber, R., & Murray, R. M. (2002). Graph rigidity and distributed formation stabilization of
multi-vehicle systems. In Proceedings of the 41st IEEE conference on decision and control, 2002 (Vol.
3, pp. 2965–2971). IEEE.
17. Olfati-Saber, R., Dunbar, W. B., & Murray, R. M. (2003). Cooperative control of multi-vehicle systems
using cost graphs and optimization. In Proceedings of the American Control Conference. Citeseer.
18. Sebastian, A., Tang, M., Feng, Y., & Looi, M. (2009). Multi-vehicles interaction graph model for
cooperative collision warning system. In Intelligent vehicles symposium, 2009 IEEE (pp. 929–934).
IEEE.
19. Yang, X., Liu, J., Vaidya, N. H., & Zhao, F. (2004). A vehicle-to-vehicle communication protocol for
cooperative collision warning. In The first annual international conference on mobile and ubiquitous
systems: Networking and services, 2004. MOBIQUITOUS 2004 (pp. 114–123). IEEE.
20. Biswas, S., Tatchikou, R., & Dion, F. (2006). Vehicle-to-vehicle wireless communication protocols for
enhancing highway traffic safety. IEEE Communications Magazine, 44(1), 74–82.
21. Li, G., & Boukhatem, L. (2013). Adaptive vehicular routing protocol based on ant colony optimization.
In Proceeding of the tenth ACM international workshop on vehicular inter-networking, systems, and
applications (pp. 95–98). ACM.
22. Baras, J. S., & Mehta, H. (2003). A probabilistic emergent routing algorithm for mobile ad hoc
networks. In WiOpt’03: Modeling and optimization in mobile, ad hoc and wireless networks.
23. Plesse, T., Adjih, C., Minet, P., Laouiti, A., Plakoo, A., Badel, M., et al. (2005). OLSR performance
measurement in a military mobile ad hoc network. Ad Hoc Networks, 3(5), 575–588.
24. Hofmann-Wellenhof, B., Lichtenegger, H., & Collins, J. (2012). Global positioning system: Theory and
practice. Berlin: Springer.
25. Tangour, F., Saad, I., & Borne, P. (2009). Optimisation par colonie de fourmis. REE. Revue de l’lec-
tricité et de l’électronique, (4), 39–43. http://cat.inist.fr/?aModele=afficheN&cpsidt=21331936.
26. Dorigo, M., Birattari, M., & Sttzle, T. (2006). Ant colony optimization. IEEE Computational Intelli-
gence Magazine, 1(4), 28–39.
27. Lochert, C., Hartenstein, H., Tian, J., Fussler, H., Hermann, D., & Mauve, M. (2003). A routing strategy
for vehicular ad hoc networks in city environments. In Intelligent vehicles symposium, 2003. Pro-
ceedings. IEEE (pp. 156–161). IEEE.
28. Lochert, C., Mauve, M., Füßler, H., & Hartenstein, H. (2005). Geographic routing in city scenarios.
ACM SIGMOBILE Mobile Computing and Communications Review, 9(1), 69–72.
29. The Network Simulator—ns-2.
30. DLR—Institute of Transportation Systems—SUMO Simulation of Urban Mobility.
31. Karnadi, F. K., Mo, Z. H., & Lan, K. (2007). Rapid generation of realistic mobility models for VANET.
In Wireless communications and networking conference, 2007. WCNC 2007. IEEE (pp. 2506–2511).
IEEE.
123
ACO and PSO Algorithms for Developing a New Communication... 2075
123