Algorithm 1 improved self-pruning based broadcast (ISB)

Precondition: Node receives an unseen packet from

Require:

1:

2: for each do

3: if then

4:

5: each if and then

6:

7: end if

8: end for

9: if then

10: Drop the packet.

11: else

12: Rebroadcast the packet.

13: end if