Data Cooperative Distribution Mechanism of Internet of Vehicles Using D2D Technology
Table 1
D2D multicast cooperative distribution algorithm based on multihop relay.
Algorithm 1
Input: F = (CM, L),CS = {i},CR,d
Output: The optimal multicast distribution path from CS to CR with the constraint that the number of D2D multicast forwarding hops is not greater than 2 and the corresponding resource consumption costopt
Step 1: Calculate the initial threshold value D(0) using formula (2)
Step 2: Based on the threshold value D(n), calculate and using formula (3) and formula (4), respectively. If , then skip to step 6. Otherwise, skip to step 3
Step 3: Use formula (5) to find in , use formula (6) to solve for the resource cost of the 1st hop D2D multicast , and use formula (7) to solve for the resource cost of the 2nd hop D2D multicast