Research Article

OCSR: Overlapped Cluster-Based Scalable Routing Approach for Vehicular Ad Hoc Networks (VANETs)

Algorithm 3

Assign Address.
Input: Vehicle V
1. Fetch node-id of vehicle V and set to id (V)
2. Fetch SN[V] of vehicle V
3. Fetch node-id of SN[V] and set to id (SN[V])
4. Address (V) = id(SN[V]) | id(V)