Skip to main content
. 2018 Aug 27;18(9):2819. doi: 10.3390/s18092819
Algorithm 3Reception phase: IoB-DTN based on data aggregation.
  • 1:

    On reception of packet pNL (list of neighbors)

  • 2:

    pos self position in L

  • 3:

    NN2pos+1

  • 4:

    if (Δ (p, p) < (Δ area || Δ period || (Δ area + Δ period) ) ) then

  • 5:

     Aggregate p with the packet p

  • 6:

    else

  • 7:

    if Buffer management provides a slot and N1 then

  • 8:

      Store pN

  • 9:

      Send ACK for receiving N copies of p

  • 10:

    else

  • 11:

      Packet is rejected, no ACK is sent

  • 12:

    end if

  • 13:

    end if