|
Algorithm 1 Trusted Routing Discovery. |
| Receive an or an from V1; |
|
| /*Verify the trustworthiness of */ |
| Broadcast to request the opinions from neighbors to ; |
| Receive opinions from neighbors:
|
| Combine these opinions together and get a latest:
|
| Exchange opinions about with its neighbors . |
|
| /* and Judge the next step using conditions set in Table 1 */ |
|
if
|
| trust and forward RREQ/RREP |
|
elseif
|
| distrust for expiry time |
|
elseif
request and verify digital certificate |
| else |
| /* the confidence about trustworthiness is decreased*/ |
| request and verify certificates, by default |
| endif |