Research Article

Enjoy the Benefit of Network Coding: Combat Pollution Attacks in 5G Multihop Networks

Algorithm 3

EDEC algorithm for sink nodes.
(1) A packet is received
(2) Decode every symbol in the packet using the decoding algorithm for the modified error-control code (Figure 4)
(3) Reassemble the encoded network encoding vector from the predetermined secret locations and decode
the network encoding vector
(4) if the network encoding vector and all symbols are decoded correctly then
(5)if the packet is independent then
(6) Save the packet
(7) if (in equation (2)) independent packets are saved
then
(8) Solve the network coding equations
(9) end if
(10) end if
(11) end if