|
Algorithm 1: Message Verification Process |
Input: Lv, Le
Output: LC(IV), Rp, Tf
Process:
Received EM from IV
Extract Lv and Le
-
If Lv! = Le then:
Set Rp (IV)− = 1, Set flag = 0, Discard the message, Exit.
Issue LC(IV)
Create NBV_LIST
Send EM to NBV_LIST for confirmation
Set Rc, Cr, Fr, T = 0
Start T
Create two empty lists CRV_LIST FRV_LIST
Repeat while (R c < T v or T < D t)
Received VM from VN, and set Rc ++
-
If VM is True then:
set Cr ++, and append VN to CRV_LIST
-
else:
set Fr ++, and append VN to FRV_LIST
-
if T = Dt then:
Set flag = 0, and Discard the message and Exit.
if Cr > Fr then:
set CEP (IV) = 1, set Cm (IV) ++ and set flag = 1
-
for all VN in CRV_LIST
set CEP (VN) = 0.25 and set Cm (VN) ++
-
for all VN in FRV_LIST:
set CEP (VN) = −0.25 and set Fm(VN) ++
if C r > Fr then:
set CEP (IV) = −1, set Fm (IV) ++, and set flag = 0
for all VN in CRV_LIST:
set CEP (VN) = −0.25 and set Fm (VN) ++
for all VN in FRV_LIST:
set CEP (VN) = 0.25 and set Cm (VN) ++
else:
set T = 0 and repeat steps 10–13
Update the value of Rp and Tf for IV and all VN.
Return flag
|