Fishery Data Distribution System Based on Distance Prior Network Coding Strategy with Buffer Mapping Mechanism
Algorithm 1
DTRS coding strategy.
(1)
First, the source node sends metadata to each node in turn ( is sent in round )
(2)
Calculate the ideal soliton degree distribution
(3)
Calculate the number of encoded data packets of degree 1 expected in the decoding process, ( is the probability that the decoder fails to fully restore the original information; is between 0 and 1, a certain constant)
(4)
Define a positive function
(5)
Add the ideal soliton degree distribution to , and then normalize it to obtain a robust soliton degree distribution ; represents the probability that the encoding packet degree is when encoding with a robust soliton degree distribution
(6)
From the round, according to the degree distribution function, select the encoded packet with degree to be sent