Research Article

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

Algorithm 4

BPA decoding algorithm for BEC.
(1) while There are check nodes connected to only one unknown symbol node do
(2) for Each of these check nodes do
(3) The unknown symbol node xor (All of the other symbol nodes connected to the check node)
(4) end for
(5) end while
(6) if All the unknown symbol nodes are recovered then
(7) Decode successfully
(8) end if