Detecting Sybil Attacks in Vehicular Ad Hoc Networks