Skip to main content
. 2022 Oct 21;22(20):8046. doi: 10.3390/s22208046
Algorithm 2. Procedure B.
Procedure (B): fInterRi, IHF
Input: Ri
Output: Interleaved Honeypot Frames On Channel

1. Set ni to data transmission mode
2. Get the stream of Ri from Procedure B
3. Set Interleaved Honeypot Frame (IHF) queue IRQi at sender
4. Do for each transmission, n(TXi) at sender
                  IfRi==p1:
             popIRQi & IRQicount
             Insert fi,fi+1, IHFin(TXi)
           IfRi==p0:
             Insert fin(TXi)
           Else:
             n(TXi)Error
5. Set Deinterleaver Honeypot Frame (DHF) queue DRQi at receiver
6. Do for each reception, n(RXi) at receiver
               IfRi==1:
             popfi,fi+1, IHFi & push (DRQi)
             DRQicount++
                IfRi==0:
             n(RXi)Receive Frame
           Else:
             n(RXi)Error
7. Do for all active channels, C(AXi)
8. Call Procedure (A) for each n(TXi) at C(AXi)
9. Set the number of IHFi as kcI; cIChannel Independence Factor
End of Procedure (B)