Research Article

Adaptive Beaconing in Mobility Aware Clustering Based MAC Protocol for Safety Message Dissemination in VANET

Algorithm 1

Cluster formation process.
Step  1: vehicle x broadcasts cluster joining request message
Step  2: if request acknowledged
Step  3:    vehicle joins the cluster
Step  4: if no response
Step  5:     initiates cluster formation process
Step  6: end if
Step  7: end if
Step  8: vehicles receives cluster joining request
Step  9: vehicles broadcast
Step  10: if speed of
Step  11:    add to cluster class 4
Step  12: else
Step  13: if speed > 20 and ≤ 30
Step  14:    add to cluster class 3
Step  15: else
Step  16: if speed > 30 and ≤ 40
Step  17:    add to cluster class 2
Step  18: else
Step  19: if speed > 40
Step  20:    add to cluster class 1