Network aggregation mechanism for vehicular ad hoc networks (VANETs) aims at improving communication efficiency by summarizing information that is exchanged between vehicles. Summaries are calculated, while data items are generated in and forwarded through the network. Due to this vehicular networks are special types of VANET that support diverse infrastructure-based commercial services including internet access, real-time traffic management, video streaming, and content distribution. The success of network acquisition and delivery system depends on their ability to defend against the different types of security and privacy attacks that exist in VANETs. In this research work different protocols like AODV, Q-Learning approach and cryptographic approach that being used in VANET have been studied and their performance has been then evaluated by providing a real time environment on NS2.