Research Article

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

Algorithm 2

CDCP encoding forwarding protocol.
(1)The source node S selects the data to be sent according to DTRS
(2)Initialize an empty set of decoded data units and an empty set of complex codewords on each forwarding layer node
(3)According to the principle of making all forwarding layer nodes obtain a metadata piece in the shortest round, after each node has a metadata piece, the coding forwarding strategy begins
(4)Set ; /∗the degree of all codewords transmitted between nodes in the forwarding layer cannot be greater than ∗/
(5)At round k, node completes the following process:(1)Randomly select a codeword s from set (2)Randomly select a decoded piece of data from set (3)If , then encode the codeword (4)If ; /∗ is the degree conversion time of the codeword/(5)Randomly select a neighbor node , and exchange the codeword with the codeword randomly selected by node (6)Add codeword to set Y(7)Run the iterative decoder program to decode the received codeword