IoV-SDCM: An IoV Secure Data Communication Model Based on Network Encoding and Relay Collaboration
Algorithm 1
An anonymous forwarding network construction.
Input: Source vehicle node S, target vehicle node D
Output: Anonymous forwarding network N
Process:
(1)
If (Period = T)
(2)
T = Null;//Using a tree structure to build an anonymous network and initialize the network.
(3)
Send (S, D, mesg_rreq);//The source vehicle node S sends a routing request message to the target vehicle node DRREQ, and record the path information from the source node to the target node.
(4)
Path = Receive (S, D, mesg_path);//The target vehicle node D sends an answer message containing the path information path to the source vehicle node S and complete the construction of the forwarding network. See Initialization in 3.2 Section for detail.
(5)
If (Path)//If there is a forwarding path between the source vehicle node and the target vehicle node.
(6)
For (each Path [i], i < n)//For each node in the forwarding path, it is used as a group header to build an m-anonymous group.
(7)
select m − 1 node satisfying (Hop_Groupi is in the radius of Hop_Groupi-1 and Hop_Groupi+1)
(8)
= Hop_Groupi[j];
(9)
End For
(10)
End If
(11)
Path [n] = broadcast;//The exit node broadcasts messages to the target node