|
Algorithm 3 TMR Routing Protocol |
-
1:
at RSU:
-
2:
While (RREP = true) !RREPs received from Algorithm 2
-
3:
procedure 1: Calculating average
-
4:
!RTTij received from Algorithm 2
-
5:
-
6:
end procedure
-
7:
procedure 2 Path Selection
-
8:
if () then
-
9:
drop route
-
10:
else
-
11:
add into an array
-
12:
sort array in an ascending order
-
13:
update the routing table
-
14:
end if
-
15:
Send a message using a route with the minimum RTT in
-
16:
if () then
-
17:
send a message using a route with the next minimum RTT in
-
18:
end if
-
19:
end procedure
|