VANETsim: A simulator for security and privacy concepts in VANETs