Research Article

UAV-Aided Data Delivery Scheme Based on Opportunistic Virtual Intersections for Smart Transportation Networks

Algorithm 1

UADD Packet Forwarding Algorithm.
1: Forwarding At Intersections:
2: Assign road segments connected to the intersection with priorities according to .
3: Forwarding the packet to the vehicle according to the priorities.
4: Forwarding At Opportunistic Virtual Intersections.
5: Determine the optimal next-intersection .
6: Determine and based on .
7: if and then.
8:  Forwarded packet to only if can work in relay mode and relay the packet to the vehicle ahead along the direction of .
9: else if and then.
10:  Forwarded packet to .
11: else if and then.
12:  Forwarded packet to only if can work in relay mode and relay the packet to the vehicle ahead along the direction of .
13: else
14:  Calculate the packet delivery probability and expected packet delay of both and .
15:  Forward to if (4) is satisfied or can work in relay mode and relay the packet to the vehicle ahead along the direction of .
16: end if