|
Algorithm 2: Data transmission |
-
1:
procedure
Data forwarding after multicast WuPt (SINK, FN, REL, DST)
-
2:
if
WuPt is received
then
-
3:
bit-wise check of WuPt address
-
4:
if
cluster-bit and ID-bit = = own cluster-bit and ID-bit
then
-
5:
wake-up sensor node and switch to receive mode
-
6:
if
receiving request from FN
then
-
7:
check source route table
-
8:
if
next hop != FN
then
-
9:
check source route table and send DataPt to REL
-
10:
else
send Data to FN and go to sleep mode
-
11:
end procedure.
-
12:
else
receive DataPt and check source route table
-
13:
if
next hop != FN
then
-
14:
check source route table and send DataPt to REL
-
15:
else
send Data to FN and go to sleep mode
-
16:
else
go to sleep mode
|