1 Introduction

With a phenomenal increase in the number of vehicles on roads, IoV has become one important research field providing better solutions for smart transportation system. Currently, researchers are focusing mainly on the architecture and development of IoV and its applications due to its significance in an Intelligent Transportation System (ITS). Preciesely, IoV applications allow for improving road safety features such as intersection warning, crash warning, safe distance warning, and so on. Not only that, such applications also provide real-time entertainment services. Nevertheless, these road safety applications require appropriate propagation of warning messages which is a difficult task on the road owing to vehicular dynamic environment. Although, there are a number of routing protocols [1,2,3] that enable a vehicle to find a better path for information sharing, a path becomes invalid if a vehicle changes its topology even slightly. It is pertinent to mention here that the prediction of a path failure before it breaks as well as finding a new path can significantly enhance the performance of the network. To this end, in the paper, we propose a novel analytical model for the estimation of path duration with road-aware routing protocol to enhance the packet delivery ratio with reduced routing overhead and end-to-end delay.

Number of commercial and safety applications need coordination among cars and Roadside Units (RSUs) [4,5,6]. However, RSUs not provide safety application services but to provide routing functionalities as well, with the aim of reducing overhead. RSU-based routing protocols are termed as infrastructure-assisted protocols [7,8,9,10]. These protocols are responsible for relaying data traffic to remote vehicles in sparse or detached networks. Although, several studies that have been conducted on this routing apraoch can be found in the literature, it is still in its inception. A number of previously proposed protocols undergo low readability and inadequacy while negotiating with both (V2I) and (V2V) communication [7, 8]. Previously proposed protocols do not meet diverse requirements for V2I communication, as they are not designed specifically for the hybrid environments, as shown in Fig. 1.

Fig. 1
figure 1

Internet of vehicles (IoV) model for vehicular communication

Prediction of path for a specific time period is not straightforward as it relies on multiple parameters such as velocity, direction, position of a vehicle and number of relay nodes [11, 12]. Path duration is defined as the total time for which two nodes remain connected through relay nodes. A number of distinguished routing protocols discussed in [13, 14] do not select a route based on its duration. Hence, the ability of estimating a path lifetime, if incorporated, will substantially increases the throughput of a routing protocol.

In this paper, a novel infrastructure-based hybrid road-aware routing protocol (IARAR) is proposed along with an analytical model for path duration estimation to eliminate the aforementioned restraints of V2V and V2I communication. In order to that, IARAR combines the features of reactive and proactive routing simultaneously. V2V and V2I connection is established by the usage of RSUs at intersections or in a multi-hop fashion, based on available paths. A route within a road segment is determined by the estimation of path duration using different parameters including hop count, link availability time, vehicle velocity and direction. A relation of node relative velocity is derived along with the probability functions to realize almost each scenario of vehicular movement for better path calculation. The approach of local information distribution improves the process of link discovery as well as reduces the extra overhead over wireless and wired network. Last but not least, our proposed mathematical model for path estimation guarantees link reliability and stability for a road segment.

The rest of the paper is organized as follows: Sect. 2 describes the related work of existing routing protocols for infrastructure-assisted VANETs. Section 3 presents functionality of the proposed protocol. Section 4 shows different operations of IARAR along with route estimation model to be used for the data transmission within a road segment. Section 5 assess the performance of our proposed estimation model and routing protocol. Section 6 concludes the paper.

2 Related Work

VANET applications vary from situation to situation in vehicular networks such as warning messages for collision avoidance, emergency operations and sometimes multimedia services and voice over IP applications. These communication-based VANET applications cover both V2V and V2I communication modes. Motivation behind utilizing the infrastructure (RSUs) is due to their fixed positions. These nodes (RSU) provide route access with very little administrative overhead in comparison to the scenario where both the nodes are mobile. It is worth mentioning that RSUs are connected through links with a small delay, high bandwidth and a low error rate. Different studies based on infrastructure-assisted routing protocols prove their superiority upon other available protocols while considering the overall performance [8]. In [15], Dharani et al. have presented an intersection-based connectivity-aware protocol for an urban environment. Shortest path algorithm is used to forward the data packets between the vehicles while exploring the RSUs and geographical information. Proposed protocol selects the shortest by considering the traffic conditions and vehicle mobility.

A position-based routing protocol is proposed in [2]. Improved data packet delivery with reduced delay is achieved by taking optimized broadcast into account. In order to forward the packet to its neighbor segment, iCAR [2] analyzes neighbor segment for minimum delay, less distance towards the destination, and a higher number of vehicles. iCAR II [3], an enhanced version of iCAR [2], has an improved packet delivery ratio. This improved ratio is obtained by the periodically broadcast of beacons up to one hop to update road conditions. Every vehicle in [3] is assumed to be equipped with Global Positioning System (GPS) and further assistance is provided by the fixed infrastructure.

Authors in [16] proposed a road network connectivity aware routing protocol with the consideration of traffic lights and vehicle density at the road. Selection of next forwarding node is done by the microscopic greedy selection technique while ensuring lower delay, high throughput, and efficiency. RSUs near the intersections collect the vehicle information through unicast data packets. Packet forwarding through RSU is done in two steps: Dividing the section based on its connectivity, and establishment of the road connectivity-aware model. Traffic light plays an important role in the vehicular movement in the presence of RSUs, however, the connectivity to RSU and a path recovery process is weak or is missing from the paper.”

In [9, 10], vehicular network topology is further divided into smaller regions named as sectors. Each sector is served by one or more RSUs. Inside the segment, data is transmitted in a multi-hop fashion, while the Inter-sector communication is supported by the respective RSUs. The main reason of splitting network topology into sectors is to minimize either the management of a table for vehicle position for joined sectors as presented in [9], or a region for route discovery (specifically in [9], and [10]). Authors in [17] proposed another sector-based protocol with the consideration of new localization strategy between the intersections. Furthermore, in order to maintain QoS for each link, four parameters are considered and a path reliability is estimated before sending the data over that link. The way IHRAR differs from IARAR is that in IHRAR, the problem of RSU failure and its recovery process is not considered as well as finding the shortest path for data forwarding with its mathematical model is not available. To this end, this paper extends our previous research [17] with the addition of a detailed framework from our previously IHRAR protocol. RSU selection, RSU disruption, process of route request/response through fixed infrastructure are discussed. Moreover, a mathematical model is proposed in this paper to find a stable path. Use cases for a relative velocity with their probability functions and its effectiveness are explored to meet the challenges of modern world.

These infrastructure-assisted routing protocols vary marginally in vehicle localization and inter-sector data propagation, but differ significantly within the sectors. In addition, these infrastructure-assisted routing strategies primarily depend on the total number of installed RSUs on their locations. Moreover, the comprehensive performance of these strategies, network overhead and latency rate entirely depend on the total size of zone. Last but not least, physical distribution of immense number of RSUs are not always feasible owed to large maintenance expense. From the above discussion, it can be concluded that there is a huge demand for new infrastructure-assisted protocols that enable both modes of communications, i.e. V21 and V2V.

In IoV, stable path always plays a significant role in order to gain better performance. Initial attempts have been made in [18] for path duration in MANETs. Path lifetime with improved link stability are analyzed in [19]. In addition, a phenomenon of ’Edge Effect’ is discussed by the authors, which occurs in dense networks. In these scenarios, neighbor vehicles are available immediately for next-hop node at a brink of transmission range. Hence, a small movement of vehicle causes link breakage by going outside the transmission range, results downgrade the performance of the protocol.

Path estimation holds various essential parameters, such as transmission range, relative velocity and hop count [20]. Importance of path duration in MANETs for reactive approach has also been discussed. In [21], a new approach is investigated to propose a relation between link distance and number of hops. In this approach, in order to select a relay node, an assumption is made to select a relay node based on least remaining distance (LRD). With the selection of various paths with long life, [22] shows positive results for multiple use cases. Authors find out that the path duration estimation is imperative for discovering paths with durable life.

In [20], authors study the correlation between throughput and path duration along with the estimation model for numerous mobility scenarios and probability density functions of remaining link life. Investigated mobility model includes Random waypoint model (RWP), Reference point group model (RPGM), Manhattan and Freeway. Authors conclude that the node density is an imperative design parameter for a durable path. However, a relationship between the two could not be established. To communicate this relation, a detailed mathematical model was still needed, which is provided in this paper.

Aim of our research is to improve the routing strategies for infrastructure-assisted vehicular networks by proposing IARAR with more durable communication links. In the proposed protocol, roads are further divided into multiple road segments with distinct road identifications [23]. Gateway nodes at each road segment are responsible for proactively establishing and maintaining paths. It enables the vehicles on the road to keep fresh routes towards the nearest RSUs. Also, the selection of a path for target vehicle is based on various parameters, such as hop count, node density, direction and velocity of source and destination. Current infrastructure-assisted protocols do not consider the local information of vehicles available on roads. We use this information of neighbor vehicles to choose better routes in terms of bandwidth and delay sensitive requirements of the applications. These characteristics make the proposed scheme robust and more reliable in case of traffic congestion and RSUs failure.

3 Infrastructure Assisted Road-Aware Routing

Aim of this research is to present an Infrastructure Assisted Road-aware routing (IARAR) protocol along with path estimation model, designed precisely for V2X communication. Our proposed protocol takes a two level hybrid routing approach to forward packets between source and destination by splitting roads into road segments with unique segment ID (\(S_n\)). In the first level of road-aware routing, vehicles on the same road segments generate link state packets (LSP) incorporating their neighbor information in order to make their road segment routing tables, proactively. This proactive strategy is only used for the routing on road segments between intersections. In the second level, source vehicle uses enhanced reactive routing scheme to discover the path to destination outside the road segment. Throughout the route discovery mechanism, route request is not forwarded to every vehicle rather it is only relayed to a few vehicles/RSUs on the road segment known as gateway nodes (GN). GNs primarily consists of vehicles near the intersection or RSUs. Unlike other routing schemes, destination discovery process does not flood the network with the packet broadcast. In addition, IARAR exploits the fact that data traffic will be forwarded through RSU in most of the cases. In general, maintaining updated routes to adjacent RSUs is eventually essential as compared to other mobile nodes because vehicles demand acquaintance to RSUs at an immense rate.

The IARAR protocol includes the following functional operations: Road LSP creation, RSU selection, path discovery, path maintenance and packet forwarding over discovered path. Starting from the brink of a city toward its center, numerous RSUs are evenly distributed alongside the roads according to the network topology. Since we are working on routing mechanism, selecting an appropriate place for RSU is not considered. RSUs are fully associated with each other by a wired or wireless network and they are assigned with a unique ID (\(RSU_K\)), whereas the value of K \(\epsilon\)\(1,2,3\ldots n\). In IARAR each RSU is responsible of forwarding a beacon called a service broadcast message infrequently. Service broadcast message is a multi-hop broadcast used for gathering data information on every mobile/fixed node. Vehicles determine updated routes to closest RSU upon receiving service advertisements that helps them to progressively look for the dominant aspirant to connect with, called the corresponding RSU. It is worth mentioning that vehicles maintain proactive and reactive routes for other vehicles inside and outside their road segments respectively. Each vehicle enters a road segment and connects to its respective RSU. Communication within a road segment is performed in a multi-hop fashion whereas, communication outside the road segment is relayed through RSU/Infrastructure.

RSUs at every road segment maintain a routing table indicating the vehicle connectivity with the corresponding RSU. Therefore, every data traffic that is forwarded to the internet will be sent to the RSU of respective affiliated destination vehicle. Using this mechanism, road segments that are geographically at long distances, become “Neighbors” allowing cost-effective communications that hold a small number of wireless hops. When a vehicle has a data packet to send to its respective RSU or internet, corresponding RSU is selected based on shortest distance from the source, it selects an updated route from its routing table and begins uni-casting the RREQ to the corresponding RSU. Destination vehicle will respond with a route reply (RREP) upon receiving the RREQ packet. Alternatively, at RSU upon receiving the RREQ, the corresponding RSU first determine its routing table for the fresh routes towards the destination. In case the path is available, it will directly respond with RREP instead of broadcasting the RREQ packet to its vicinity.

Proposed protocol tries to adopt network bandwidth efficiently by taking into account the vehicular environment and the nature of potential applications by introducing the concept of gateway nodes and road segments. This paper is divided into two parts, Firstly a novel hybrid road-aware routing protocol is proposed and secondly, a unique path estimation model is proposed to select an efficient path for communication. It is assumed that, every vehicle is rigged with a global positioning system (GPS) to identify its location. Route discovery phase ends whenever the source vehicle hears RREP followed by the beginning of route maintenance and selection of the best available path process. In order describe analytical model for path estimation, various parameters are considered for each available path. Those parameters include relative velocity, direction, hop count and node density on that road. We will explain the IARAR functional process in the next section with more details.

4 IARAR Structure

Distinctive characteristic between IARAR and other protocols for infrastructure is that IARAR proactively enable vehicles to keep multiple paths to other vehicles on the same segment and towards the corresponding RSU. In the same way, it helps RSUs to maintain fresh routes to the vehicles. Thus, communication between the corresponding RSU and vehicle is done in a proactive manner. The estimation of path duration between every intersection, however, is comprehensively new and provides the shortest and durable path for communication.

4.1 Neighbor Tables

In IARAR, roads are divided into road segments, and are assigned with unique segment IDs (\(S_n\)). Vehicles on each segment, send link requests in order to discover their neighbors. After the reception of a link request, neighbors with in the communication range reply with RREP that includes roadid, vehicleid, direction, speed, and position. Similarly, link reply from RSU includes roadid, RSUid, and RSUposition. Every vehicle generates LSP, after hearing the response from a neighbor which includes the information about them. Neighbor-LSP is then propagated inside the road segment locally through intermediate nodes. A road level LSP is generated for Road 1 by every vehicle as illustrated in Fig. 2 and Table 1 respectively. Every vehicle on the same road segment is aware of the road level topology after receiving the neighbor LSP from other vehicles. In an urban scenario, vehicles might also receive link state packets from different roads. Shortest path algorithm is then applied to build a road segment routing table. An example of a road segment routing table for a vehicle A is shown in Table 2. Vehicle and RSUs near the junction may also receive a request from different roads and are called gateway nodes (GNs). Vehicles G, C, H, I and RSU1 are GNs and provide inter-segment connectivity. The process of link request has to be performed intermittently to identify the updates and changes in the links due to fast moving vehicles.

Fig. 2
figure 2

Gateway nodes near intersection

Table 1 Road level neighbor table
Table 2 Routing table for road 1 with vehicle A

4.2 Route Discovery

IARAR takes an approach of reactive routing in the two level routing. When a source vehicle has a data packet to send, there are two different scenarios to do it, (1) The destination is a vehicle, (2) Destination is the corresponding RSU or it is in the internet. In the First scenario, before sending RREQ, source vehicle inspects its routing table for the destination that are both of them on the same road segment or not. Otherwise source vehicle send RREQ to the GNs (GNs includes RSUs and vehicles near the intersection). When RREQ message reaches at GN, vehicles are eligible to send the RREQ only if they are near the intersection and also they have not sent the same packet before. RREQ is forwarded from one GN to other by the road segment routing table. Every GN looks for road level routing table for the destination before forwarding the RREQ to the other. Only GNs that finds the destination in its table replies with the RREP packet. Other protocols that use RREQ/RREP, include the vehicle ID in RREP. Differently, IARAR uses road ID instead of using vehicle ID. Purpose of using road ID rather vehicle ID is due to the possibility that a communication link between two vehicles may fail due to high mobility resulting in a deteriorated performance. Therefore, data packet can be forwarded to the destination using road segment routing table if a communication link between two intermediate vehicles fail. Source vehicle starts sending data to the destination after receiving first RREP, either from infrastructure or vehicle network. In case of neighbor road segment with destination, source vehicle will have quick response through GNs. Otherwise RSU will reply fast after getting the location from server if destination is far.

In the Second scenario, the source vehicle selects a fresh route towards the RSU and starts uni-casting the data packet to RSU. It is expected that the source vehicle might hear beacons from another RSU during the on-going session. Source vehicle may also exploit a new path if it has a low latency as compared to the previous one.

Fig. 3
figure 3

RSU failure and route recovery process

figure d
figure e

4.3 RSU Disruption

In IARAR, every RSU broadcast hello packets and advertise its services periodically at each road segment. During a route discovery process, whenever a source vehicle hears a RREP from the destination, the discovery process ends and in the meanwhile process of route maintenance starts. IARAR analyze the validity of the path during the data transmission. If a source vehicle discovers that the route is no longer available, a new route discovery process starts. On the other hand, if the source vehicle dose not hear from the respective RSU after waiting for a certain time, it sends an alert message to the GNs. In our scenario, source vehicle waits for 3 seconds (3 beacons from RSU) to confirm the availability of RSU. However, the waiting time is not fixed and can vary for different scenarios i.e. vehicle will wait more in traffic congestion. After listening the alert messages, GNs checks the availability of respective RSU by broadcasting the hello packets with in the road segment. Otherwise, GNs marks the RSU as dead and sends an update to the vehicles inside the road segments, as shown in Fig. 3.

In case of RSU failure, GNs will look for another RSU in order to resume the data transmission by sending a RREQ to the other GNs. After getting a RREP from different RSUs, an appropriate RSU is assigned to the road segment as a corresponding RSU. Figure 3 shows a new path discovery process by the GNs with new corresponding RSU. Road segment with faulty RSU can be served differently by other RSUs, by distributing it into further two segments i.e. in order to gain better packet delivery ratio and less packet delay.

4.4 Path Duration Estimation

A probabilistical model for path duration estimation and to assist two-level hierarchical based road-aware routing protocol, is proposed in section. Proposed protocol’s distinguished property is to not only find the possible paths between source and destination but also to select the stable and durable paths based on different parameters. These parameters are velocity, direction, link connectivity and the average number of hops.

To provide the reliable links, proposed protocol calculates link duration probability by using discrete parameters for each link and determines the best one depending on the application requirements. Since there might be multiple paths accessible between two intersections, link duration for each link is computed locally on its road segment by the GNs. Every vehicle recognizes its neighbor’s velocity and position from the beacons as described in the previous section. We will use this information to estimate the time duration for which two neighbor vehicles will be in the communication range of each other.

Fig. 4
figure 4

Network model for selecting relay node for path estimation

4.4.1 Detailed Analytical Model

In our estimation model, to characterize the vehicular environment, we have used our traditional traffic flow principle which will be more accurate. To calculate the probability density function (pdf), vehicles are considered to follow Poisson distributed arrivals.

Table 3 Variables used in mathematical model

4.4.2 Area for Next Hop

To find the stable path between source and destination, we need a communication link with minimum number of hops towards the destination. Since the node which is closer to the border line, towards the destination covers maximum distance, reduce the number of hops between source and destination. This is the reason that we have chosen the area for our next hop at the extreme end of the transmission range. Area that needs to be calculated is also known as the area of intersection of the circles with the radius of \(R_s\) and \(R_d\) respectively, as shown in Fig. 4. To find the area of the region we have the following formulas:

$$\begin{aligned} A_{Total} = A_{Int1} + A_{Int2} \end{aligned}$$
(1)

However

$$\begin{aligned} A_{Int1} \simeq \left[ \frac{\left( \beta - {\mathrm{sin}} \left( \beta \right) \right) . R_d^2 }{2} \right] \end{aligned}$$
(2)

And

$$\begin{aligned} A_{Int2} \simeq \left[ \frac{\left( \alpha - {\mathrm{sin}} \left( \alpha \right) \right) . R_s^2 }{2} \right] \end{aligned}$$
(3)

The expected area for selecting the next hop node:

$$\begin{aligned} A_{Total}=\left[ \frac{\left( \beta - {\mathrm{sin}} \left( \beta \right) \right) . R_d^2 }{2} \right] +\left[ \frac{\left( \alpha - {\mathrm{sin}} \left( \alpha \right) \right) . R_s^2 }{2} \right] \end{aligned}$$
(4)

Thus, \(A_{Total}\) shows the expected area for the selection of neighbor node. Furthermore, various terminologies used in this section are illustrated in Table 3.

4.4.3 Node Relative Velocity

Speed of a vehicle and its direction are two essential parameters in VANETs for the calculation of path life time. Link duration is directly affected by the direction of a vehicle. In this part of the paper, our main aim is to derive mathematical derivation for the relative velocity and its all cases. We have considered a city scenario for VANETs in which vehicles have movement in both the directions. Lets assume that two vehicles having velocities \(v_1\) and \(v_2\) respectively and the distance between them is d while the range for radio communication of a vehicle is expressed as r. Figure 5 describes the different cases for the relative velocity and are discussed in coming paragraphs.

Case 1 Vehicles having same direction as their movement with same velocities then communication link is available for longtime \(T_1\) between them. Relative velocity between the vehicles, with velocity \(v_1\) and \(v_2\) respectively, can be calculated using the following law:

$$\begin{aligned} \left| {\mathop {v_r}\limits ^{\rightarrow }}\right| = \sqrt{v_{1}^2 + v_{2}^2 - 2 v_{1} v_{2} {\mathrm{cos}}\theta } \end{aligned}$$
(5)

Vehicles having same directions but different velocities, the vehicle with greater velocity can be represented as: \(v_2\) which is \(\lambda\) times greater then \(v_1\). Whereas the value of \(\lambda\) varies from 1 to 4.

$$\begin{aligned} \lambda v_{1} = v_{2} \quad {\text {whereas}} \quad \lambda \in [1,4] \end{aligned}$$
(6)

And angle \(\theta\) = 0

Then,

$$\begin{aligned} \left| {\mathop {v_r}\limits ^{\rightarrow }}\right| = (\lambda - 1)v_{1} \end{aligned}$$
(7)

Value of \(\lambda\) will be 1 if both the vehicles are moving with same velocity. In that case:

$$\begin{aligned} \left| {\mathop {v_r}\limits ^{\rightarrow }}\right| = 0 \end{aligned}$$
(8)

Case 2 When both the vehicles move opposite in direction with velocities \(v_1\) and \(v_2\) and the communication link is available for a short time T2, as compared to the time T1 in the first case. Vehicle with greater velocity can be represented as: \(v_2\) which is \(\lambda\) times greater than \(v_1\).

$$\begin{aligned} \lambda v_{1} = v_{2} \quad {\text {whereas}} \quad \lambda \in [1,4] \end{aligned}$$
(9)

And angle \(\theta\) = \(\pi\)

Then,

$$\begin{aligned} \left| {\mathop {v_r}\limits ^{\rightarrow }}\right| = (\lambda + 1)v_{1} \end{aligned}$$
(10)

Value of \(\lambda\) will be 1 if both the vehicles are moving with same velocities. In that case:

$$\begin{aligned} \left| {\mathop {v_r}\limits ^{\rightarrow }}\right| = 2v_{2} \end{aligned}$$
(11)
Fig. 5
figure 5

Relative velocity flow diagram

4.4.4 Probability Density Function of Relative Velocity

From previous results, it is observed that \(v_r\) has different values so it can be represented as a random variable and according to probability density function (pdf), we can find it’s expected relative velocity function as:

$$\begin{aligned} E(v_r) = \int _{-\infty }^{\infty } v_r f{v_r} {\mathrm{d}}v_r \end{aligned}$$
(12)

For further simplification to our scenario, above equation can be written as:

$$\begin{aligned} \begin{aligned} E(v_r) = \int _{v_{min}}^{v_{max}}\int _{v_{min}}^{v_{max}}\int _{0}^{\pi } f{v_1}f{v_2}f{(\theta 1,2)} * \\ \sqrt{v_{1}^2 + v_{2}^2 - 2 v_{1} v_{2} {\mathrm{cos}}\theta } {\mathrm{d}}v_1 {\mathrm{d}}v_2{\mathrm{d}} \theta 1,2 \end{aligned} \end{aligned}$$
(13)

Eq.13 represents the pdf for a relative velocity. To be more specific, pdf for each case can be derived as:

Case 1

$$\begin{aligned} \begin{aligned} E(v_r) = \int _{v_{min}}^{v_{max}}\int _{v_{min}}^{v_{max}} (\lambda - 1)v_{1} f{v_1}f{v_2} {\mathrm{d}}v_1 {\mathrm{d}}v_2 \end{aligned} \end{aligned}$$
(14)

Case 2

$$\begin{aligned} \begin{aligned} E(v_r) = \int _{v_{min}}^{v_{max}}\int _{v_{min}}^{v_{max}} (\lambda + 1)v_{1} f{v_1}f{v_2} {\mathrm{d}}v_1 {\mathrm{d}}v_2 \end{aligned} \end{aligned}$$
(15)

4.4.5 Average Number of Neighbor Nodes

In order to determine the expected number of hopes, considering the total distance is very important. To determine the average number of hop count, nodes within the transmission range follow the Poisson distributed model. Accordingly, the distance to first \(next-hop\) can be calculated as:

$$\begin{aligned} N_H = \frac{L}{D_L} \end{aligned}$$
(16)

In Eq. (16), \(D_L\) represents the distance between two nodes.

4.4.6 Link Connectivity

In this section, we are required to determine the link connectivity of two nodes. According to the time and speed formula, Time = Distance/Speed.

$$\begin{aligned} T_L = \frac{R_s - D_L}{V_S - V_{NH}} \end{aligned}$$
(17)

whereas \(T_L\) shows the time for which a two nodes remains to be connected. Moreover, the value of \(D_L\) can be estimated by the equation:

$$\begin{aligned} D_L = \frac{n . R_s}{ n + 1} \end{aligned}$$
(18)

Link residual time is:

$$\begin{aligned} T_L = \frac{D_L}{R_V} \end{aligned}$$
(19)

whereas \(D_R\) is the total distance needs to covered in order move out the range of source vehicle and \(D_R = R_s - D_L\) . Now the pdf of \(T_L\) can be represented as

$$\begin{aligned} F_T(T_L) = \int _{0}^{V} R_V f_{d R_V}(T_L R_V, V ) {\mathrm{d}}V \end{aligned}$$
(20)

4.5 Path Time Estimation

For the estimation of pdf of total path life, link residual time plays an important role. If \(T_L 1, T_L 2, T_L 3, T_L 4\) and \(T_{L(N_H) }\) are link residual time between the nodes 1,2,3,4 and \(N_H\), pdf can be calculated as:

$$\begin{aligned} T_{L Path} = MIN (T_L 1, T_L 2, T_L 3, T_L \ldots T_{L N_H}) \end{aligned}$$
(21)

Now, with the help of Baye’s Theorem [21] and [24], we can determine the pdf of the \(T_L\),

$$\begin{aligned} F(T_L) = N_H . D_L . C^{N_H-1}_{T_L} \end{aligned}$$
(22)

Here, \(C_(T )= 1-F_T\) represents the complementary cumulative distribution function (CDF) of \(T_{L Path}\) and \(F_T\). Finally, average path time can estimated using following equation:

$$\begin{aligned} T_{L Path} (average) = \int _{0}^{\alpha } T_L f(T_L) {\mathrm{d}}T_L \end{aligned}$$
(23)
Table 4 Simulation setup

5 Protocol Evaluation

In this section, in order to compare our proposed protocol, we simulated two other protocols for VANET: ROAMER(famous infrastructure based routing protocol) and IHRAR [17]. Before presenting results, we briefly described the protocols in the next section. Gangnam city map was used for our simulations, As shown in Fig. 6. Simulations were performed using Network simulator 3 (NS3). Using SUMO, vehicular movement file is generated for an area of 5 km2. Standard wireless configurations were used where the communication range for RSU and vehicles were set to 250 m and wireless bandwidth to 5 Mbps, respectively. Table 4 summarized other simulation parameters for our scenario.

Fig. 6
figure 6

Gangnam street grid layout

Fig. 7
figure 7

IARAR, IHRAR, TCAR and ROAMER: End-to-End delay (a), Control routing overhead (b), Packet delivery ratio (c) versus node density

Fig. 8
figure 8

IARAR, IHRAR, TCAR and ROAMER: End-to-End delay (a), Control routing overhead (b), Packet delivery ratio (c) versus node speed (Km/h)

Fig. 9
figure 9

Average vehicle traffic, delivery ratio and delay of IARAR for different length of road segments using map as shown in Fig. 6

5.1 Protocols Compared

We have compared our proposed protocol with ROAMER [9] and TCAR [16] which is identical to IARAR in the way it operates. Compared protocol ROAMER is based on incorporating the approach of carry and forwarding. Every vehicle in ROAMER sends Hello packets to its neighbors periodically. Every vehicle manages a table of the directions, pseudonyms, positions, speeds and time stamps of vehicles in its proximity and the proximity is defined using a proximity threshold which varies from network to network. ROAMER explores the presence of fixed infrastructure using RSUs to forward packets between distant locations in VANETs. However, vehicular network is preferred for sending packets by a vehicle to its proximity. Routing strategy in ROAMER is divided into to parts: (1) routing from vehicle to RSU, (2) routing from RSU to vehicle. These actions are identical to those which are used in IARAR except that in IARAR before sending a packet towards the destination, we do not find a fixed route. Relatively, we look for dynamically, at each road segment, the best GN to forward the packet. ROAMER is applicable for massive RSU deployments however IARAR works satisfactory in both sparse and dense environments. In our simulations of ROAMER, we set the number of RSU to five for scenario 1 and 7 for another to make it consistent with IARAR. The second protocol we have compared is IHRAR [17]. An exclusive QoS algorithm for infrastructure-assisted VANETs is proposed by the selection localization strategy between the intersections. IARAR differs from IHRAR in the following ways: IHRAR focuses on neighbor table formation with route discovery. However, IARAR on the other hand also proposes RSU selection, a detailed mathematical model for a stable path, path recovery and packet forwarding over that path. A comprehensive mechanism of route request/reply is discussed in IARAR.

5.2 Metrics

5.2.1 Control Routing Overhead

In Figs. 7b and 8b, routing overhead is determined for all the aforementioned protocols. And it is observed that the total control overhead is escalated with the node density and average vehicle speed. Figures 7b and 8b shows that routing overhead for IARAR, ROAMER, TCAR and IHRAR increases because of the fact that the redundancy will generate more traffic in highly dense road segments. Routing overhead for IARAR is less when compared with rest of the protocols. This is because of maintaining the road segment level routing table and finding routes outside the road segments only when needed.

5.2.2 Packet Delivery Ratio (PDR)

Packet delivery ratio is the total number of packets received by the destination divided by the total number of packets sent by the source. In this portion, we study the effect of varying average vehicle speed and the number of vehicles on the performance of our proposed protocol. Figures 7c and 8c describes the outcomes of the PDR for an urban scenario with discrete node density and node speed. Figure 7c shows that IARAR outperforms when compared to ROAMER, TCAR and IHRAR at low as well as at high vehicle density. On the other hand, Fig. 8c shows that the packet delivery for IARAR increases with the increase in speed. The reason is that due the escalation of speed, source vehicle will find the neighbors rapidly while having more chances to deliver the data to neighbor vehicles with high PDR.

5.2.3 End-to-End Delay

In case of End-to-End delay, ROAMER operates with poor performance in contrast with IARAR and IHRAR in both the scenarios. This is because paths are calculated and maintained re-actively inside a road segment and towards the RSU. Which benefits in the successful transmission of data packets quickly. On the other hand, with the increase in average vehicle speed, ROAMER and TCAR shows more end-to-end delay when compare to the IARAR and IHRAR, as shown in Figs. 7a and 8a. However, IARAR shows very small delay when the average vehicle speed varies from 18 to 60 Km/h.

5.2.4 Road Segment Vicinity

In this section, we observed the behavior of IARAR with the change of road segment vicinity (\(R_Vic\)). \(R_Vic\) varies from 100 to 1000 m in Gangnam city map, as show in Fig. 6. These values shows extremes of \(R_Vic\) in map which we have used for the simulations. Figure 9 represents that delivery ratio of IARAR increases as the area increases from 200 to 700 m and steady value is achieved after some decay. However, average node traffic and packet delay increases to attain an approximate constant value.

6 Conclusion

In this paper, we have suggested a new road-aware routing scheme for Internet of Vehicles with the estimation of path duration. Like other routing strategies, IARAR does not require the specialized distribution of RSUs. With the proper selection of RSU, our proposed mechanism selects the durable route with consideration the following important parameters: hop cont, direction of movement and vehicle velocity. In IARAR, roads are divided into road segments and each road segment contains GNs for inter-segment communication. Route discovery process can be initiate by only using GNs, hence there is no need to flood the network with control packets. The performance of IARAR protocol is evaluated by comprehensive simulations using SUMO and NS3 simulator. IARAR shows promising results in terms of end-to-end delay and packet overhead in comparison with IHRAR, TCAR and ROAMER. IARAR investigates one of the key problems in the design of routing protocols for infrastructure-assisted protocols. Last but not least, by exploring the technique of hybrid routing (road-aware routing) and selecting a stable route can significantly improve the routing performance of IoV.