Algorithm 3Reception phase: IoB-DTN based on data aggregation. |
-
1:
On reception of packet (list of neighbors)
-
2:
self position in L
-
3:
-
4:
if ( (p, ) < ( area || period || ( area + period) ) ) then
-
5:
Aggregate p with the packet
-
6:
else
-
7:
if Buffer management provides a slot and
then
-
8:
Store
-
9:
Send ACK for receiving copies of p
-
10:
else
-
11:
Packet is rejected, no ACK is sent
-
12:
end if
-
13:
end if
|