Skip to main content
. 2014 Nov 25;14(12):22342–22371. doi: 10.3390/s141222342

Algorithm: SLD-GEDIR

Notations
CFV: Current Forwarding Vehicle
SSV: Set of Segment Vehicle (potential Next Forwarder Vehicle)
ODV: Original Destination Vehicle
OSV: Original Source Vehicle
NHV: Next hop Vehicle
 SONV: Set of One hop Neighbor Vehicles
Vi: Individual ith Vehicle
di: Degree of connectivity of ith segment vehicle
α: Sector angle used for segment area calculation
Qilink: Quality of one-hop link of ith segment vehicle
Input R, λ, L, M, Pt, Pr, Gt, Gr, Ht, Hr, l, dlink
Process
1. initialization
  CFV = OSV
  SSV = ϕ
  NHV = ϕ
  SONV = ϕ
  α = 50°
2. SONV = {neighbors of CFV}
3. if (ODVSONV) then
  Send the packet to ODV using available direct link
  exit
4. else
  while (SSVϕ)
   a. Calculate segment area Sarea using equation (2)
   b. SSV = {Vehicles in Sarea}
   c. if (SSVϕ and α < 180°)
    α = α + 100°
   d. Else
    Wait for random amount of time
    α = 50°
  end while
end if
5. for each vehicle ViSSV
  Calculate packet error rate PERlinkN(i) using equation (19)
Qilink=(1PERlinkN(i))
  end for
6. for each vehicle ViSSV
   Calculate degree of connectivity di
  end for
7. Qjlink+dj=Max{Q1link+d1,Q2link+d2+Q3link+d3,Qnlink+dn}
8. HV = Vj
9. transmit the packet to NHV and NHV = CFV
10. exit
Output: NHV = (Vj)