Abstract
Introduction
With advances in ubiquitous wireless communication and commodity sensors, Internet of Things (IoT) has become an emerging area of research. 1 In particular, the area can play a crucial role in developing technologies for smart homes, intelligent transportation systems (ITSs), smart cities, and so on. The entire concept of IoT-based applications relies on the physical infrastructure deployed. It is worthwhile to mention that research challenges are completely different in developing countries with very limited supporting infrastructure. 2 In developed countries, roadside units (RSUs) are used to facilitate daily commuters by re-routing them to avoid congestion. With people driving to and back from work using similar routes and around the same hours. In urban areas, during such peak hours, commuters face traffic congestion resulting in economic loss, pollution, and even deaths due to traffic accidents with help not arriving in time after road traffic injuries (RTIs). In developing countries like Pakistan, the number of vehicles on roads is increasing at a higher rate. Alone in Karachi (Pakistan), almost 16,562 new vehicles are on roads every month 3 leading to an economic loss of almost US$2.8 billion per year due to traffic congestion. 4 Similarly, in India, the economic loss due to traffic congestion is around US$8.4 billion per year. 5 More alarmingly, air pollution caused due to this congestion has an adverse impact on health. 6 Arguably, even with limited resources, the main focus of these countries is to build new road infrastructure to alleviate the problem, somewhat neglecting the use of ITSs.
Problem statement
Road accidents are one of the leading causes of deaths around the world with 3500 deaths every day and about 1.27 million deaths every year. 7 Notably, 90% of the deaths occur in low- and middle-income countries. 8 For instance, in one massively populated city of Pakistan (Rawalpindi), traffic jams led to increased death rates due to first responders failing to reach the location of the accident within the golden hour. 9 Here, the use of ITSs for efficient route selection can help rescue services avoid traffic congestion in real time. However, limited resources, that is, no roadside sensors and limited Internet connectivity in developing countries, is the main focus of our study. We have initiated a way for developing countries to be the part of the world of smart cities without any costly infrastructure or with using resources easily available.
Proposed framework
In this work, we propose an intelligent transport (iNET) framework to overcome the aforementioned challenges, mainly focused on developing countries to facilitate drivers making timely decisions in the absence of Internet connectivity and other RSUs. The framework disseminates vehicular data via an inter-vehicular communication network, where every vehicle in the network shares its information to compute a traffic congestion index. The index is used to select a suitable path to the destination.
Main contributions
The main contributions of this work are briefly listed:
iNET is a data sharing framework designed to support intelligent transportation network in smart cities. Using ad hoc communication for information sharing, the proposed framework can work in the absence of Internet and other physical infrastructure.
The framework computes an index measuring congestion based on the information received from other vehicles. This index is incorporated into multiple single-source shortest path algorithms to select the least congested path to the destination, recalculated in real time at every upcoming intersection.
The framework is designed to work on low power devices, subsequently, evaluated on resource-limited android handheld devices in terms of resource usage, transmission delay, packet loss, and total travel time.
The rest of the article is organized as follows: section “Literature review” revisits the existing literature on vehicular communication. Section “Proposed intelligent network (iNET) framework” presents the proposed iNET framework. The performance evaluation is presented in section “Performance evaluation.” Finally, section “Conclusion” concludes the article.
Literature review
Vehicular communication is an emerging IoT technology that includes vehicle-to-vehicle (V2V), vehicle-to-infrastructure (V2I), and vehicle-to-pedestrian (V2P) communication. More recently, the term vehicle-to-everything (V2X) incorporates all the aforementioned specific types of communication involving vehicles. Figure 1 illustrates a V2X communication. In recent literature, many opportunities and challenges have been identified to enable IoT for developing countries, especially in the field of transportation, safety, agriculture, environmental monitoring, and social security management. The core challenges to support such IoT-based applications are smooth Internet connectivity, device resources, data center connectivity, device reliability, financial challenges, and privacy issues.

V2X communication scenario involving V2V, V2I, and V2P communications.
Vehicular communication technologies
Over the last decade, lightweight commodity devices using cellular technology have gained interest for V2V communication. 10 The devices gather and forward relevant information to a server without driver intervention. In developed countries, many of the works done on V2V use either dedicated short-range communications (DSRCs) or cellular technology. In Abboud et al., 11 a hybrid architecture—a combination of DSRC and cellular technology—is used for an efficient transportation system. Chang et al. 12 introduce near-field informatics (NFI) based on vehicular infrastructure. The solution is compared against technologies like Bluetooth, ZigBee, Wi-Fi, and RFID for ad hoc communication in terms of range, speed, and built-in handset support. The results show that Wi-Fi and Bluetooth are suitable for ad hoc communication.
More recently there is a shift from cellular to vehicular ad hoc networks referred to as to Internet of Vehicles (IoV). One such study 13 uses smartphones as Wi-Fi hotspots connecting clients and other hotspots. The evaluation results demonstrate a significant reduction in data transfer delay using the hotspot approach. Similarly, another study implements a decentralized traffic management approach, especially for developing countries. 14 The approach establishes a communication link for information sharing when the vehicles are in range for V2V communication. Other similar studies explore V2V, V2I, and infrastructure-to-infrastructure (I2I) communication in terms of big data.
ITSs
Researchers at Nissan conducted a study regarding fuel economy in cars, and they observe an improved fuel economy up to 7.8% for routes to destination without congestion. 15 Based on these findings, many studies propose different congestion detection algorithms for ITS applications. RoadRunner 16 is an in-vehicle V2V-based application providing voice-over instructions to drivers, while SimMobility 17 demonstrates a simple token-based strategy to overcome traffic congestion by limiting the number of vehicle on road.
Meneguette et al.
18
develop a neural network–based intelligent protocol for congestion detection. They use a multi-layer perceptron with an input layer comprising two neurons, one for vehicle speed while the other for vehicle density corresponding to the number of neighboring vehicles on the road. The system is simulated using Simulation of Urban Mobility (SUMO) with a map of urban and highway scenarios integrated with a model for co-emission and fuel consumption. The authors report a reduction in average trip time, co-emission, and fuel consumption. However, such data-driven approaches are compute-intensive. Neal et al.
19
investigate the energy consumption of the data-driven approach and propose an energy-efficient architecture specifically laid out for mobile platforms. Backfrieder et al.
20
suggest a V2X communication scheme based on predictive congestion minimization with
Information sharing
Often end-to-end route selection is done based on heuristics, local congestion metrics, and distances traveled with no communication among vehicles. In literature, there are limited works related to cooperative V2V, for instance, in Froehlich and Krumm, 24 route selection is done based on global positioning system (GPS) data gathered during vehicle past trips. They evaluate the viability of this approach using location-based data of 250 drivers collected for Microsoft multi-person location survey (MSMLS).
More complex selection strategies use trajectories from the past vehicle paths. 25 An extension of such work is a dynamic data-driven approach. 26 The evaluation results using the T-Drive data set comprising GPS trajectories of 10,000 taxicabs in Beijing demonstrate an improved route prediction based on the current location of a vehicle without knowing its final destination. Wan et al. 27 propose a model to detect traffic congestion using mobile crowd sensing (MCS) by forwarding data from vehicles onto traffic clouds. Simulated experiments show an efficient path selection in terms of time of arrival at the destination.
Edge/fog computing for vehicular networks
Vehicular edge computing (VEC) is a three-layered architecture: the top most is cloud layer, next is edge layer, and the last is smart vehicular layer. The cloud layer is used for batch processing or high-level processing tasks. The edge cloud layer is to ensure connection and real-time interaction between cloud layer and the smart vehicular layer. However, the smart vehicular layer comprises group of vehicles that share storage and computing resources through wireless network. 28 Hou et al. 29 proposed the concept of utilizing smart vehicles for infrastructure-as-a-service for computations. This strategy is termed as vehicular fog computing (VFC). It is a cost-effective solution providing real-time communication and geographically distributed support. Furthermore, the differences between mobile edge computing (MEC) and fog computing (FC) for vehicular communication and architecture are highlighted in Borcoci et al. 30
Social Internet of Vehicles
Ning et al. 31 emphasize the use vehicular social network (VSN) to enhance trust and quality of transportation system. The authors define VSNs as the combination of social networks and IoVs as VSNs contain the human factor in addition to V2V and V2I communication. Similarly, the concept of social Internet of Vehicles (SIoVs) is covered in Ning et al. 32 Furthermore, the authors consider SIoV as the emerging field to guarantee road safety and to enhance quality of driving. However, the focus of the referred study is to design a cooperative quality-aware service access (CQS) system for SIoVs. Another study 33 declared SIoV as a promising field for traffic management and road safety in smart cities. The authors investigate MCS techniques to overcome end-to-end delay in store-carry-forward-based vehicular networks. Furthermore, the authors propose a multi-tier device-to-device (D2D) framework to enable crowdsensing-based real-time traffic management.
Summary of literature review
Potentially, similar ITS-based applications can facilitate rescue services as demonstrated in a study by Mercedes-Benz. 34 They deploy a V2V-based collaborative model to facilitate emergency services saving lives. The effectiveness of the model is backed using statistical data analysis with avoidance of 80% of the road accidents. Currently, emergency services, for instance, eCall in Europe and OnStar in the United States, are using V2I. Future improvements can be the combination of both V2V and V2I to further reduce first responder arrival time.
Notably, many of the existing works focus on route selection using sensors and the Internet. In this article, we propose a framework specifically designed to work in the absence of RSUs and Internet connectivity. The framework used a decentralized approach to compute the least congested route. In contrast to other offline routing algorithms, it provides real-time route guidance by dynamically adapting to changing traffic conditions. The motivation is to make the transportation system more efficient, and provide a cooperative and safe driving experience via sharing of near real-time congestion information, and hence, alleviating economic loss and environmental pollution. The next section covers the proposed framework in detail.
Proposed intelligent network (iNET) framework
The proposed intelligent network (iNET) framework is implemented using a modular approach. The core modules of framework are maps manager, visualization module, storage manager, communication module, and route selection module. The architectural diagram of iNET framework is illustrated in Figure 2. The functionality of each module is explained below:
1. Maps manager: the maps manager module is responsible to store and manage maps. The module used previously acquired maps to prepare offline map tiles. These tiled maps are stored and later used for handheld devices.
2. Visualization module: the visualization module is used to present the current location of the vehicle using offline map tiles. The visualization module acquires the map from the maps manager using a location-based query. The visualization module also displays congestion on nearby road segments. The current location of a vehicle is important for route mapping and selection, which is achieved using a built-in GPS available in every embedded device. Using the current device location, the module mapped all possible routes to the destination. Each route to the destination is composed of multiple road segments each labeled with a congestion index calculated based on the information received from other vehicles in near real time. This index was afterward used by the route selection module to avoid traffic congestion.
3. Storage manager: the storage manager module stored traffic information including all possible tracks, congestion index, and travel history, in a repository. The repository was later used for route selection.
4. Communication module: the communication module established an ad hoc communication link with nearby vehicles using Wi-Fi Direct. A dynamic transient network was formed to share traffic information. Algorithm 1 explains the formation of such real-time traffic network based on neighboring vehicles. Here, the state of the vehicle is represented by the four-dimensional vector

Proposed iNET framework architecture.
For communication between vehicles, the link layer service discovery was achieved through a generic advertisement protocol (GAS). All peers share a MAC address, device name, and connection status to confirm their availability. Once a connection is established, the group formation process gets initiated. All devices within a group support single-hop communications. However, to establish multi-hop communication support for handheld Android devices, we used Wi-Fi Direct with dynamic mobile ad hoc network (MANET) topology. 35 The setup maintained routing tables including route information among the peers. Furthermore, routing in the framework was achieved using MAC addresses providing openness to support multiple connections simultaneously.
5. Route selection module: one of the main components of the iNET framework is the route selection module. It takes input from other modules and suggests the least congested route to the destination. The route selection was based on traffic information received from neighboring vehicles connected directly or via ad hoc mechanisms. The information received was used to compute a congestion index of every road segment from the vehicle’s current location. Based on the index, the least congested path to the destination is suggested at the next intersection using well-known shortest path algorithms such as Dijkstra shortest path (DSP), modified Dijkstra shortest path (MDSP), heuristic-based
The next section covers the implementation details of iNET framework.
Implementation of iNET Framework
The proposed iNET framework was designed to work on handheld devices, or onboard units installed in vehicles. The framework allows vehicles to dynamically build a network and share traffic information in real time from nearby vehicles. This information was used to recommend the least congested route to the destination. In addition, each installed onboard device stored its limited travel history. A weighted graph from source to the destination was built using the gathered traffic information. The route costs were calculated using classical single-source shortest path algorithms. Note that the edge weights were initialized as the ratio of the road segment length
Figure 3(b) illustrates all possible paths from source to destination. The blue-colored polyline represents the shortest path computed using the DSP algorithm. In this study, we considered this computed path as a baseline for comparison with other route selection algorithms. It is evident that traffic conditions are continuously changing and static weights computed initially result in lower results. Therefore, we incorporated changing road segment costs at regular time intervals. This was achieved by maintaining a congestion index for each road segment based on real-time traffic information from neighboring vehicles. Further, a speed averaging method was used to compute the speed of a road segment as a ratio of the average velocity of vehicles to the total number of vehicles on the road segment. The average speed
where
where

iNET framework showing the shortest route calculated using Dijkstra algorithm (blue color), while the vehicle move on least congested path determined using traffic information: (a) all possible routes showing in different colors and (b) vehicle selected the less congested route, vehicle movement is shown.
Apart from classical DSP algorithm, we extended it to incorporate changing costs of road segments. The result is a real-time congestion-aware route selection algorithm referred to as MDSP. In the proposed framework, the computation was performed at every intersection to find the next shortest and least congested road segment. The MDSP algorithm is presented in Algorithm 2. Keeping generality, a road segment
The route selection module also includes an implementation of
The fourth algorithm implemented in the proposed framework is UCS, another variant of Dijkstra algorithm. The UCS is useful for large or infinite graphs.
36
The algorithm explores options in every direction requiring no information about the objective. Instead of inserting all nodes or road segments into a priority queue, only the source node is inserted followed by the insertion of other nodes one by one when needed. In the proposed framework, the algorithm found the best route based on the congestion and cumulative cost of a path from source to destination. The algorithm ensures that the cumulative cost of the selected path remained minimum. Algorithm 4 illustrates the implementation details of the algorithm where
Performance evaluation
The proposed iNET framework was developed in Java for embedded devices, and all tests were performed using handheld devices. The characteristics of the devices are listed in Table 1.
Handheld devices characteristics.
The devices being inherently resource constraint, and hence, we benchmarked the proposed data-driven framework in terms of resource usage. Instrumentation was performed to measure CPU, memory, and network usage alongside packet loss and transmission delay. Furthermore, travel time was returned from the route selection algorithms.
Experimental setup
To evaluate the proposed iNET framework, it is more practical to develop a traffic generator rather than using a large number of vehicles with onboard computing units installed. Therefore, to generate traffic patterns from the generator, we gathered traffic information of the twin metropolitan cities of Pakistan (Islamabad and Rawalpindi). Since there are no traffic data sets available for the cities and with no RSUs installed to monitor and share traffic information, we compiled a data set between two points: X interchange (point A) and Y university (point B) between 8 a.m. and 4 p.m. Note that the university is located within Islamabad with a large number of staff and students coming in and out every day from nearby towns and cities. There are 13 different bi-directional routes from the source to the destination; however, during peak office hours, the main routes are usually jam-packed. We used GPS location data (acquired using third-party solutions like GPS Logger (https://gpslogger.app/) and Backitude GPS Location Tracker (https://www.gpsies.com/backitude.do)) to record the location of a vehicle, speed, and travel time between source A and destination B in the morning. Similarly, the steps were repeated from location B to A at 4 p.m. The final data set comprised 6018 records of bi-directional tracks between X university and Y interchange. The raw data, containing GPS points, time stamps, and distances, were transformed to tuples corresponding to individual trips with attributes including average speed, maximum speed, time duration, track length, start time, and source and destination locations.
To assess the quality of the collected data set, we used clustering to measure data consistency and underlying variance. The features used for quality assessment were average speed, maximum speed, time duration, track length, source, and destination locations. We used two clustering techniques:
The traffic generator module used the aforementioned compiled data set to generate traffic accordingly. The module being executed on different devices injected traffic information to other devices using Wi-Fi Direct, all acting as onboard units installed in a vehicle and emulating traffic information received from neighboring vehicles. Moreover, the device also sent the received traffic information to other connected mobile nodes. After the expiration of a time interval
Simulation parameters.
iNET profiling
Due to a limited resource on handheld devices, the iNET framework is benchmarked in terms of resource usage such as CPU, memory, and network. The device profiled was the Samsung Note 4, and the results were obtained after multiple runs of the proposed strategies. Furthermore, the framework is also tested in terms of transmission delay, packet loss, and total travel time:
CPU usage: the proposed framework used classical DSP-based shortest path algorithm as the baseline. The other three algorithms made use of the traffic information received from neighboring vehicles to compute a congestion index, which was later used to select a path with the least congestion. Figure 4(a) shows CPU usage at intervals for the four route-selection algorithms. We observe that
Memory usage: Figure 4(b) shows a comparison of memory consumption for different route selection algorithms. We observe that all algorithms resulted in moderate memory usage averaging around 140 MB, considerably lower than many social media applications, for instance, Facebook uses approximately 340 MB. We used Trepn profile (Trepn Profiler application; https://developer.qualcomm.com/software/trepn-power-profiler) for profiling. Furthermore, 24.5 MB was used to store offline map tiles, while 320 KB was used to store the tracks. The usage can increase depending on how far back route history is maintained. Moreover, with an increasing number of vehicles, the computational intelligence (CI)-based algorithms consumed more energy, as they processed more information.
Network usage: Figure 5 shows the total network usage on a device. The proposed framework sent and received packets through MAC address binding denoted as
Travel time: we also compared the algorithms in terms of average travel times. The basic DSP algorithm used a precomputed path without considering any incoming traffic information, not the case for

Profiling results for the four route selection algorithms: (a) CPU usage when DSP, UCS, MDSP, and A* algorithms used for route selection and (b) memory usage on handheld devices while different route selection algorithm in use.

Network usage reported using proposed framework.

Average travel time using different route selection algorithms.
Communication using Wi-Fi Direct
The transmission delay
where
Figure 7(a) shows the number of vehicles and its effect on transmission delay. As the number of vehicles in a group increased, retransmissions also increased. This contributed to a delay as the GO spent most of its time retransmitting messages. Moreover, we analyzed packet loss by varying the network

Communication benchmark between devices using Wi-Fi Direct: (a) number of vehicles versus transmission delay in iNET and (b) packet loss while communication between vehicles at various distances.
We used Wi-Fi Direct for communication among vehicles, as it provides better data rates compared to Bluetooth and near-field communication (NFC). Irrespective of it being a recent technology, we observed higher packet drop rates due to moving vehicles, around
Discussion
The proposed framework was designed for vehicular ad hoc networks with vehicles communicating via Wi-Fi Direct. The incoming information at every node was processed separately with relay nodes or GOs capable of sending messages to other groups.
Comparative analysis
We analyzed the differences between centralized, decentralized, and distributed approaches for V2V communication from the literature14,19,27,37–39 and compared them to our approach. The core attributes analyzed include manageability, security, mobility, cost-effectiveness, and scalability. 38 A detailed comparative analysis is presented in Table 3.
Comparison of proposed framework with other techniques.
VANET: vehicular ad hoc network; MCS: mobile crowd sensing; SVN: social vehicular network; VCS: vehicular cloud services; OLSR: optimized link state routing protocol.
Often centralized systems are accurate compared to others approaches. 27 This is due to the fact that centralization allows a system to process more data patterns and features in order to take informed decisions. In contrast, decentralized ad hoc frameworks use limited information to make such decisions. However, the response time and costs of centralized systems are higher, as a centralized server is responsible for all the processing and sharing of information among requesting vehicles, 37 thus become a single point of failure. 19 Moreover, such systems are not scalable, their performance degrades with increasing number of vehicles.
Goyal 39 analyzes different architectures in different scenarios. Their findings indicate that in the absence of existing infrastructure and Internet connectivity, the only feasible option is to use a distributed architecture. The architecture is highly scalable and more stable compared to a centralized one. No doubt the latter is easier to maintain and more secure but at the same time more vulnerable to failures. In this study, the proposed iNET framework is decentralized and based on the P2P model, thus highly scalable.
In this work, road congestion is the only context for decision-making in route selection, which may lead to the selection of a road with quite long driving time. Since there exists the possibility that the selected route could be chosen by too many vehicles, the “optimal” selection then becomes the “worst” choice in a future moment, especially when many vehicles move toward the same direction and take the same route suggestion. Such key issue is not considered in this article.
Sustainable development goals
This section elaborates the importance of adoption of intelligent transportation frameworks for sustainable development. As the proposed framework is designed to work with no physical infrastructure and Internet availability, it can help achieve a number of development goals, especially in developing countries:
In summary, the focus of this study is to provide a workable approach for urban scenarios with no Internet connectivity. Most of the existing works on route selection are developed using sensors and RSUs, and the communication is achieved through Internet. Thus, based on already gathered data from externally placed sensors and received information, the selected routes are disseminated to the end users using Internet. In similar scenario, very less attention is paid to for areas where no such physical devices and Internet are available. Therefore, iNET is a novel framework that is designed to cater developing countries and also the developed countries where Internet connectivity is not available on highways.
In the future, a hybrid approach can be evaluated using RSUs and/or a central server to store traffic data with the help of Internet and physical infrastructure. The data can be further analyzed using the central server to enhance its informativeness. Surely, this would help eliminate frequent message retransmissions by eliminating redundant messages in the vehicular network. That is, messages from the central server can be transmitted only to the GO in the Wi-Fi Direct network, which afterward forwards the message to other vehicles within the group. Moreover, the central server can be deployed to verify message validity to detect misinformation and to minimize other related security issues.
Conclusion
In this study, iNET framework is presented with supported route selection in the absence of physical devices and Internet connectivity. The proposed framework provides implementations of well-known route selection algorithms for congestion-aware traffic routing. A detailed analysis performed in terms of time, energy, and memory consumption shows that the framework takes limited resources with maximum CPU usage around 25% and utilizes less memory and network bandwidth. Moreover, the travel times are also reduced by 33% using the proposed congestion-aware framework.
