Research Article
Enjoy the Benefit of Network Coding: Combat Pollution Attacks in 5G Multihop Networks
Algorithm 2
EDEC algorithm for relay nodes.
(1) if every symbol in the received packet is intact then | (2) if (a predetermined number) packets received then | (3) Generate randomly, linearly combined packets using the received packets (network coding) | (4) Send out the network encoded packets | (5) end if | (6) else | (7) Mark the packet as corrupted and send it out | (8) end if |
|