Research Article

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

Algorithm 1

EDEC algorithm for source nodes.
(1) for packet i do
(2) //Encode network encoding vector in equation (1) using the modified error-control code (Figure 3)
(3) map()
(4)
(5) Encoded network encoding vector
(6) Distribute the encoded network encoding vector into predetermined locations of the packet
(7) for every symbol of the packet do
(8) //Encode using the modified error-control code (Figure 3)
(9) map
(10)
(11) Encoded symbol
(12) end for
(13) Send out the encoded symbols
(14) end for