|
Algorithm 1 F&C (S, N, D) |
|
/*S: source node*/ |
| /*D: Resource node set*/ |
| /*N: node*/ |
-
1:
S initiates a slow flooding of RQ packets
-
2:
receives an RQ
-
3:
ifthen
-
4:
reads delay flooding parameter
-
5:
waits seconds
-
6:
forwards the RQ packet
-
7:
else ifthen
-
8:
if
is reached after ’s repeal-flooding boundary then
-
9:
replies to S (unicast) using the reverse route
-
10:
else if
is located before ’s repeal-flooding boundary then
-
11:
initiates a chase flooding of RP packets
-
12:
end if
-
13:
end if
-
14:
receives an RP packet
-
15:
if has previously received an RP then
-
16:
does not forward the RP packet
-
17:
end if
-
18:
if has already received and forwarded the RQ packet then
-
19:
forwards the RP packet
-
20:
else if has the RQ packet in its buffer then
-
21:
does not forward the RQ and RP packets
-
22:
end if
|