|
Algorithm 2 FARF Algorithm |
-
1:
/* Same code as SARF Algorithm (lines 3 to 7)
-
2:
while true do
-
3:
if Request of a new transmission then
-
4:
Perform transmission attempt
-
5:
if Success then
-
6:
/* Same code as SARF Algorithm (lines 16 to 22)
-
7:
else
-
8:
/* (If failure)
-
9:
▹ Reset # of consecutive successes
-
10:
▹ Set transmission rate to the lowest value
-
11:
end if
-
12:
end if
-
13:
end while
|