Research Article

Fishery Data Distribution System Based on Distance Prior Network Coding Strategy with Buffer Mapping Mechanism

Algorithm 3

CDPPBM encoding forwarding protocol.
Initialization: refer to steps 1 to 4 of Algorithm 2
(1)Set the sending frequency of Buffer Map to f. Assuming that the node sends a Buffer Map to the neighbor node this round, the node responds to the request and returns the Buffer Map of the node in the returned data packet to update the other party’s Buffer Map.
(2)At round , node completes the following process:(1)Randomly select a neighbor node from the IP list for data exchange.(2)Find the Buffer Map list of the neighbor node ; if it is empty, jump to 3; otherwise, if the update waiting round , jump to 4, and if , jump to 5.(3)The Buffer Map list of the neighbor node is empty, and a codeword is randomly selected from the set ; a decoded piece of data is randomly selected from the set ; if , then the codeword is encoded: ; jump to 6.(4)The Buffer Map list of the neighbor node is not empty, and the optimal codeword distance is found according to the codeword distance sequence. Take the codeword from , which requires ; jump to 6.(5)The Buffer Map list of the neighbor node is not empty, and the optimal codeword distance is found according to the codeword distance sequence. Take the codeword from and and encode it into codeword , which requires ; jump to 6.(6)If ; /∗ is the degree conversion time of the codeword/.(7)Exchange the codeword with the codeword randomly selected by node .(8)Add codeword to set Y; run the iterative decoder program to decode the received codeword.