Algorithm 2Generation phase: IoB-DTN based on data aggregation. |
-
1:
At each sensor reading period
-
2:
Generate a packet p with the readings
-
3:
if ( (p, ) < ( area || period || ( area + period) ) ) then
-
4:
Aggregate p with the packet
-
5:
else
-
6:
if Buffer management provides a slot then
-
7:
Store in the buffer [ copies of p are stored]
-
8:
end if
-
9:
end if
|