Abstract
In vehicular cyber-physical systems, vehicular users are the edge nodes which are far away from the network core. Content accessing and downloading for vehicular users are expected to heavily rely on the deployment of RoadSide Units in vehicular cyber-physical systems. Although vehicular users can obtain a good content downloading service in the coverage of RoadSide Units, user experience will get worse in highway scenarios, where RoadSide Units are sparsely deployed at service areas or gas stations. In other words, the download process has a property of intermittent connectivity because many no-signal areas (dark areas) exist on the road. In this article, we try to address such shortcomings by exploiting other edge nodes (vehicles) to download contents for clients in dark areas. Considering the cooperation intention of vehicles, we first propose an incentive mechanism to stimulate vehicles to participate in cooperative downloading. Next, with an objective of maximizing the utilization of benefits, we formulate the cooperative vehicle selection problem as an optimal multiple stopping problem and derive the optimal multiple stopping rule for cooperative downloading. Finally, an extensive simulation study has been performed to investigate the effectiveness of our scheme. The results reveal the impact of different parameters on system requirements and demonstrate that the proposed scheme can maximize the throughput of content downloading in dark areas.
Keywords
Introduction
Cyber-physical systems (CPS) are complex networks of embedded systems, aiming to transit the physical world into the cyber world.1,2 Vehicular cyber-physical systems (VCPS) 3 are typical CPS applied to the Internet of Things (IoT). They have been proved to hold great potentials in enhancing vehicle safety 4 and improving traffic efficiency.5–7 In addition, some large data services onboard should not be ignored either (e.g. local maps downloading or multimedia files downloading). Therefore, for vehicular users, with an increasing demand for downloading contents from the Internet, VCPS have further been envisioned for making a contribution to passengers comfort by providing content downloading services.8–11
Normally, in VCPS, vehicular users are the edge nodes which are far away from the network core (i.e. cloud computing servers). They can download contents from the Internet via the edge of the cloud, RoadSide Units (RSUs). A good user experience can be achieved within the coverage of RSUs which is about 300–1300 m. 12 However, in highway scenarios, RSUs are mainly deployed at service areas or gas stations which are 8–16 km apart. It is impossible to expect a high number of well-deployed RSUs due to cost restrictions and high maintenance overhead. Therefore, many dark areas exist out of the RSUs’ coverage range which may cause intermittent connectivity for vehicular users. In other words, if a vehicular client leaves the coverage of a RSU without finishing downloading contents, it may waste much time to wait for contacting the next RSU.
Previous work on content downloading in VCPS proposes cooperative downloading methods to utilize edge nodes (i.e. other vehicular users) and reduce the effect on intermittent connectivity in dark areas.13,14 It means when a vehicular client drives in a dark area without finishing the whole downloading, these unfinished contents are then delegated to cooperative vehicles and further transmitted to clients by a carry-and-forward mechanism 15 in dark areas. However, those works ignore the cooperative intention of vehicles and the optimization of the whole cooperative downloading process. In order to fill such a gap and further develop the tremendous potential of edge nodes, two questions should be taken into consideration: (1) How to motivate vehicles to participate in cooperative downloading? (2) How to maximize the downloading throughput in dark areas?
To answer these two questions, we first model the process of cooperative downloading as a transaction, where clients should supply some benefits for cooperative downloading services and cooperative vehicles can acquire a certain amount of rewards by transmitting contents for clients. This mechanism can arise vehicles’ motivation to cooperative downloading. Moreover, considering the limited benefits supplied by clients, we focus on maximizing the downloading throughput and reducing the cooperative vehicle selection duration by optimizing the process of vehicle selection. To be more specific, we formulate the cooperative vehicle selection problem as an optimal multiple stopping problem, with an objective of maximizing the utilization of the benefits supplied by clients.
The main contributions of this article can be summarized as follows:
We propose a cooperative downloading scheme in medium access control (MAC) layer to develop the tremendous potential of edge nodes and achieve the content downloading service in dark areas.
We formulate the cooperative vehicle selection problem as a multiple stopping problem and address the challenge via our derived optimal multiple stopping rule.
For the purpose of keeping the system’s fairness and encouraging vehicles to participate in cooperative downloading, we explore an incentive mechanism based on a benefits transaction strategy.
The rest of the article is organized as follows. The related work is reviewed in section “Related work.” We present our system model in section “System model.” Section “Efficient incentive mechanism for cooperative downloading” discusses the incentive mechanism we proposed. Our optimal multiple stopping rule–based cooperative downloading scheme is detailed in section “Optimal multiple stopping rule for cooperative downloading.” Section “Performance evaluation” evaluates the performance of the proposed scheme through a simulation study. Finally, section “Conclusion” concludes this article.
Related work
Content downloading in VCPS has attracted extensive research attention. There are mainly two schemes for achieving the content downloading service in VCPS: no-cooperative downloading and cooperative downloading. Some researchers focused on no-cooperative schemes.16,17 Eriksson et al. 16 improved the downloading performance by optimizing both the connection establishment procedure (QuickWiFi) and the cabernet transport protocol (CTP). In the work by Zhang et al., 17 the authors studied data scheduling issues for content downloading. However, these no-cooperative schemes ignore the tremendous downloading potential of edge nodes on the network. Taking this situation into consideration, cooperative downloading schemes were proposed by Chen and Chan 13 and Trullols-Cruces et al. 14 Chen and Chan 13 proposed a method of combining WiFi with wireless wide area network (WWAN) to achieve the cooperative downloading. Trullols-Cruces et al. 14 addressed the cooperative downloading issue by introducing a delay-cooperative Automatic Repeat reQuest (ARQ) mechanism and a vehicular route predictability–based carry-and-forward mechanism. Nevertheless, these schemes just proposed a framework for cooperative downloading in different environments but did not give a detail algorithm for cooperative downloading.
Recent research works18–21 paid more attention on optimized algorithms about every process of cooperative downloading. The authors in the works by Ota et al. 18 and Yang et al., 19 respectively, focused on the data flow scheduling problem and cross-layer designs but how to select cooperative vehicles was not discussed. A cooperative vehicle selection method was proposed by Trullols-Cruces et al. 20 This approach selected the cooperative vehicle by utilizing history records to predict the route and the meeting time between clients and cooperative vehicles. Our work differs from this approach in that we focus on highway scenarios. These scenarios were also considered by the authors in the work by Liu et al., 21 and they scheduled the dark areas out of the coverage of RSUs and utilized the passing vehicles running in dark areas to help the downloading. Note that all the works mentioned above did not consider the vehicles’ willingness of participating in cooperative downloading, which might cause the selfish behavior. In this article, considering the selfish behavior of vehicular users, we propose an incentive mechanism for cooperative downloading. Moreover, our approach can maximize the downloading throughput by formulating the cooperative vehicle selection problem as an optimal multiple stopping problem.
System model
As depicted in Figure 1, we consider a straight dual carriageway scenario with multi-lane and sparsely deployed RSUs. Each RSU gets a certain coverage range in which vehicular users can obtain content downloading services. Because of the limitation of the RSUs’ coverage, many no-signal areas (i.e. dark areas) exist on the road. Thus, the download process has an intermittent connectivity. We consider two kinds of traffic forward mechanisms in our system: connected forward (i.e. traffic transmitting through a connected multi-hop path) and carry-and-forward (i.e. traffic transmitting through vehicles that store and carry the data before delivering them to the target client). As described by Malandrino et al., 22 connected forwarding and carry-and-forward are limited to two hops from RSUs since this already yields nearly optimal performance. For this reason, we only consider the two-hop situation in this article. Meanwhile, nodes in our system share the channel bandwidth allocated for service applications following the IEEE 802.11p standard. 23 Note that the time delay of communication, calculation, and contents searching are ignored in this article because the time delay is short enough when compared with the duration of cooperative downloading.

System model.
The components of our system are detailed as follow:
Vehicles are the edge nodes which are far away from the network core. Each vehicle has a certain amount of resource (e.g. bandwidth and storage space). They can obtain the location information at any time with equipped global positioning system (GPS) devices. We assume that vehicles travel nearly at a constant velocity, and the routes of vehicles can be predicted (similar to the assumptions made in the works by Chen and Chan, 13 Trullols-Cruces et al., 14 and Liu et al. 21 ). Two kinds of vehicles exist in our system: clients (i.e. vehicles that require help to download contents from the Internet) and cooperative vehicles (i.e. vehicles that willing to offer their bandwidth to download contents for clients). Vehicles communicate with each other by vehicle-to-infrastructure communications (V2I) or vehicle-to-vehicle communications (V2V). Once a vehicle moves into the coverage of a RSU, it would initiatively upload the basic information to the RSU. In addition, energy consumption during the communication is neglected in our system owing to sufficient power supplied by vehicles.
RSUs are the edge of the cloud. They are connected via backbones and obtaining contents via the Internet. Here, we assume that any downloading request from clients to RSUs is available. Meanwhile, each RSU attaches to background servers and shares the basic transportation information with them. Besides, the bandwidth of RSUs is much larger than vehicles; RSUs enable to transfer data packets to multiple vehicles simultaneously.
RSUs have two main functions: (1) collecting the basic information of vehicles in their coverage and uploading them to background servers and (2) searching the relevant contents on the Internet and delegating these contents to clients and selected cooperative vehicles. The set of cooperative vehicles are denoted as
Servers are deployed on backbones. They are the cloud computing servers which provide security and calculation services. For the security services in our system, servers act as a trusted third party which are similar to a bank. Servers are directly involved in any transaction and provide a real-time security guarantee to vehicular users. To identify vehicles in our system, we assume that each vehicle has a certificate issued by servers such as those proposed in the works by Dahshan and Irvine 24 and Zhong et al. 25 However, for calculation services, servers act as a central processor. Thus, the relevant optimal selection algorithm is efficiently orchestrated on servers.
Efficient incentive mechanism for cooperative downloading
In typical VCPS, vehicles are constrained by their limited bandwidth and storage space. Some vehicular users are not willing to help the client to cooperatively transfer data when considering their own benefits. In order to avoid the vehicular users’ selfish behavior, we propose an incentive mechanism base on a benefits transaction strategy. In this section, we intend to define our benefits transaction strategy and discuss how to transact between vehicles via this strategy.
Designs of transaction strategy
In this article, the system would allocate a certain number of benefits (e.g. bandwidth resource credentials) to every vehicular user at the beginning stage. Vehicles can use them to get high-speed content services within the coverage of RSUs. Normally, clients would consume some benefits to achieve the cooperative downloading service. Besides, cooperative vehicles can acquire benefits by helping to cooperatively download contents in dark areas. Once the benefits are used up, a vehicular user cannot enjoy the cooperative downloading service any more. There are two ways for a vehicular user to get more benefits. First, a vehicular user can buy more benefits by using some real money. However, the preferred and dominant way to get more benefits is by acting as a cooperative vehicle and forwarding others’ contents. Generally, this mechanism can motivate idle vehicles to participate in cooperative downloading because these vehicles have a lot of idle resources (e.g. storage space) for earning more benefits. Under these circumstances, we assume vehicles in the system are all willing to cooperatively download contents for others to earn more benefits.
To offer a consumption guidance to clients, once a RSU receives the downloading request from a client, it would estimate the expense C of the cooperative downloading service and then send it to the client for offering a reference. The reference expense is an interval, where the minimum and the maximum expenses can, respectively, be formulated as
where
Next, the system would identify the number of cooperative vehicles N which should be selected. It can be calculated by
Then, RSUs work together with servers and select N cooperative vehicles which can achieve the maximum cooperative downloading throughput in the dark area by the optimal selection algorithm.
The whole efficient incentive mechanism for cooperative downloading is presented in Algorithm 1.
Exceptional cases
Case 1
If the movement state and the transmission condition are invariant, our optimal selection algorithm runs smoothly in the whole process. This ideal situation can achieve the maximum cooperative downloading throughput. However, vehicles’ states are influenced by many factors, such as weather conditions and driving behaviors. In this condition, if the system allocates the benefits to a cooperative vehicle that does not transmit corresponding contents to the client for some reason, it would damage the benefits of clients. In order to ensure the fairness of the system, the relevant benefits supplied by clients would be temporarily stored in servers until the client contacts the next RSU. By then, the client would tell the RSU which packets it has received in the dark area. The system can judge which vehicles really help cooperative downloading and further allocate the relevant benefits to them. In the worst, the cooperative vehicle cannot acquire any reward due to the specified cooperative downloading task is unfinished. Obviously, some contents may certainly fail to be downloaded during one dark area. The unfinished part of contents should continually be downloaded when the client enters the next RSU’s coverage.
Case 2
If the size of the required contents is big enough that cannot be completely downloaded in the following dark area (i.e. the number of required cooperative vehicles is large enough), RSUs would tell the client this situation and further inquire the intention of cooperative downloading. This judgment process can be given by
Optimal multiple stopping rule for cooperative downloading
With the limited benefits supplied by clients, in order to select a certain number of cooperative vehicles and ensure the relevant throughput is maximum, we formulate the cooperative vehicle selection problem as an optimal multiple stopping problem. In this section, we intend to detail our optimal multiple stopping rule for cooperative downloading.
Problem description
We assume synchronous timers are equipped on RSUs and background servers. Meanwhile, we use RSU1 to denote the RSU which a client sends the content downloading request to. And RSU2 denotes the next RSU which the client would pass by. Once RSU1 receives a downloading request from a client, the system begins to undertake timing. As the road has two directions, whether vehicles travel in the same direction with the client or not, they both can be the candidates of cooperative vehicles. Thus, we, respectively, denote the time duration of the same direction cooperative downloading and the opposite direction cooperative downloading as
where
As illustrated in Figure 2, it is assumed that the cooperative vehicle selection is performed in every time slot. RSU1 and RSU2 are, respectively, in charge of the same direction cooperative downloading and the opposite direction cooperative downloading. We divide the cooperative downloading duration (

An illustration of time slots.
Note that the time difference is certainly existing when two vehicles successively arrive in our system, and every time slot is short enough. Therefore, we assume that at most one vehicle exists in a time slot. In other words, we map the vehicles into the time slots and find high-reward cooperative vehicles by observing a series of time slots.
Problem formulation
With the limited benefits supplied by clients, the system should select N cooperative vehicles for cooperative downloading. The question is how to maximize the download throughput of N selected vehicles. The most intuitive way is to calculate the download throughput of each vehicle and select N vehicles with the maximum download throughput. Nevertheless, it is impossible to simultaneously calculate the download throughput of whole vehicles on the road because of the limited coverage of RSUs and the mobility of vehicles. In that case, we cannot utilize the intuitive method to select cooperative vehicles. Furthermore, since vehicles will arrive in the coverage of RSUs successively on the highway scenarios, the system needs to decide whether to select the vehicles as cooperative ones. Thus, the cooperative vehicle selection problem can be summarized as a sequential decision problem which can be solved by the stopping theory. For the traditional stop theory, 6 there is always only one solution for the optimization objective. In this article, however, we intend to obtain several cooperative vehicles (also called as multiple solutions) to achieve the goal of our system. Here, we formulate the cooperative vehicle selection problem as a multiple stopping problem. Furthermore, in our scheme, system observes candidate vehicles one by one based on an observation time slots sequence. After observing a time slot, the system decides whether to stop and select the vehicle in the current time slot as a cooperative vehicle or not. The observation comes to the end once the system finishes selecting N cooperative vehicles.
When the system makes a decision, it focuses on how to maximize the sum reward of the whole selection. We assume the system has selected l cooperative vehicles before observing the ith time slot. If it selects the vehicle in the current time slot, it can acquire the reward denoted by
Obviously, the reward of every time slot is an important parameter. In order to further investigate it, we first focus on the vehicle information that RSUs have collected. In our model, the velocity of vehicles is nearly constant. However, in real environment, because of many kinds of factors (e.g. road conditions), the velocity may change slightly. Therefore, we divide the velocity into U intervals to discretize it, where
Generally, once a client launches the cooperative downloading, RSUs first calculate the duration that the client travels in their coverage
where
Same direction cooperative downloading
RSU1 is responsible for same direction cooperative downloading. It collects the vehicle’s basic information in real time. Because the cooperative downloading can only occur in dark areas, when RSU1 observes the vehicle in the current time slot
Note that if
Now, we can further derive
Opposite direction cooperative downloading
RSU2 is responsible for opposite direction cooperative downloading. Because every opposite direction vehicle has an opportunity to meet the client, we can simplify the
Thus, we further have
After deriving the contact time between cooperative vehicles and the client, the cooperative downloading throughput of the vehicle in
Then, we deduce the instantaneous reward function
where Q is a variable parameter according to clients’ requests. From equation (13), we know that
To sum up, we generalize the optimal multiple stopping problem for cooperative downloading as follows: when the system receives the reward
Optimal multiple stopping rule
In this subsection, we first solve the multiple stopping problem by deriving the optimal stopping rule that decides when to stop. Then, we prove the proposed rule is better than the random stopping rule.
We denote
where ∨ represents taking the maximum. Obviously, when
where
where
For
where
where
To prove our multiple stopping rule is optimal, we introduce
where
For the induction step
Here, Proposition 1 has been proved.
Finally, in order to better understand the process of the optimal multiple stopping rule for cooperative downloading, we define
When the system observes the time slot
After selecting N cooperative vehicles, we can obtain the sum reward Y of cooperative downloading, which can be described as
Performance evaluation
In this section, we evaluate the performance of the proposed optimal multiple stopping rule–based cooperative downloading scheme by conducting extensive simulation studies. We first detail the simulation settings which are used to derive our performance result. Then, we investigate the performance comparison between different schemes and analyze the impact of different parameters.
Settings
We set up a large-scale simulation to validate the effectiveness of the proposed scheme. In particular, we consider a straight dual carriageway scenario with multi-lane and sparsely deployed RSUs. It is set that the coverage of RSUs is 800 m and the communication radius of vehicles is 250 m.
12
In accordance with the actual deployment of RSUs at highway service areas or gas stations, the dark area between two RSUs is set to be 8 km. Vehicle inter-arrival times are exponential distribution with the mean
Without loss of generally, we set the velocity of the client to be 90 km/h, the corresponding request contents from the client is 80 MB, and the unit price of the cooperative downloading service
Results and analysis
In this subsection, we first evaluate and compare the performance of the proposed scheme, DSRelay 21 scheme, and the no-cooperative scheme. Then, we investigate the performance evolution of cooperative downloading in different impact parameters.
First, considering a client pays 11 benefits for the cooperative downloading service in the dark area, we compare the amount of data that the client obtained in different schemes. The download process is simulated with the global time going on. As shown in Figure 3, the no-cooperative downloading scheme can only obtain data when the client enters the coverage of RSUs. Obviously, when cooperative downloading schemes are used, more data would be downloaded in the dark area. Compared with using the DSRelay, we can see that the amount of data obtained in the dark area in our scheme is lager. This is because our scheme focuses on selecting the optimal reward of vehicles, while the DSRelay selects the vehicles which are faster than the client. Therefore, DSRelay may lead to the selected vehicle cannot catch up with the client before it enters the next RSU’s coverage.

The amount of data obtained versus time in different schemes.
Setting the packet loss rate q to 0.05, Figure 4 illustrates a comparison of the completion rates between the proposed scheme and DSRelay. As shown in the bar graph, the completion rate generally decreases with the traffic flow getting sparse. This is reasonable because of the lower probability of finding a high-reward vehicle in sparse traffic flow environments. However, even in different traffic environments, the completion rate in our scheme is still higher than DSRelay. Note that even using the proposed scheme, it is difficult to complete the whole downloading in the dark area between two RSUs. This is because we mainly focus on maximizing the throughput of content downloading in dark areas with the limited benefits supplied by clients.

The average completion rate versus traffic flow density
Figure 5 reports the effect of the traffic flow density on the amount of data a client obtained in the dark area. As presented in the graph, during 32–352 s, the client travels in the dark area. It can download about 29 MB in the dark area when

The amount of data obtained versus time in different traffic flow densities.
Client velocity is an important effect parameter of the throughput. Figure 6 presents the amount of data obtained at different client velocities with the global time going on. Faster velocities mean the client would meet opposite direction cooperative vehicles earlier. However, it also causes that same direction cooperative vehicles have a lower probability to catch up with the client. As described in section “Optimal multiple stopping rule for cooperative downloading,” same direction cooperative vehicles can supply more throughput than opposite ones because of more contact time and higher transmission rate. Therefore, according to the illustration in Figure 6, the velocity of the client is inversely proportional to the total amount of data a client obtained in the dark area.

The amount of data obtained versus time in different client velocities.
Figure 7 shows the relationship between the selection time and the traffic flow density. According to the graph, the completion time increases with the traffic flow getting sparse. This situation can be interpreted as the system needs more time to wait for a high-reward vehicle in sparse traffic flow environments. At the same time, the expense supplied by clients is another important effect parameter of the completion time. Obviously, more expenses mean more vehicles should be selected by the system. In other words, the system may spend more time to finish selecting cooperative vehicles.

The average completion time of selections versus traffic flow densities
A comparison of the average reward obtained at different packet loss rates and client’s expenses is presented in Figure 8. We can see that the reward is a decreasing function of the packet loss rate and an increasing function of the client’s expenses. This result indicates that a client would obtain less data in a worse wireless environment and more data if more vehicles help to cooperatively download contents. Note that it is meaningless for a client to supply much more benefits than the reference expense. Because the reward has an upper bound in a dark area which has been described in section “Exceptional cases”.

The average reward obtained versus packet loss rates q.
From these simulation results, we can see that our cooperative downloading scheme can achieve a good performance in dark areas. If a client wants to achieve better downloading throughput, a higher traffic density and a better communication environment are needed. At the same time, it can also try control its velocity and supply more benefits to achieve the same goal.
Conclusion
In this article, we have proposed an optimal multiple stopping rule–based cooperative downloading scheme in the MAC layer of the VCPS to utilize the edge nodes on the network and further achieve the content downloading service in dark areas. To maximize the downloading throughput and reduce the cooperative vehicle selection duration, we have formulated the problem of cooperative vehicle selection as an optimal multiple stopping problem and derived the optimal multiple stopping rule for cooperative downloading. Focusing on the cooperation intention of vehicles, an efficient incentive mechanism is proposed to stimulate vehicles to participate in cooperative downloading. Through theoretical analysis and extensive simulation, our scheme is demonstrated to be able to maximize the utilization of benefits in the dark area.
In future, we intend to introduce the proposed cooperative downloading scheme into the cross-layer design to improve the system overall throughput. In that case, we also exploit the systematic simulator to evaluate the completed design.
Footnotes
Acknowledgements
The authors thank all reviewers who have helped in improving the quality of this paper.
Academic Editor: Miguel A Zamora
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was supported by the National Natural Science Foundation of China (Grant No. 61571010) and the Fundamental Research Funds for the Central Universities (Grant No. 2015JBM016).
