Cooperation enforcement and network security mechanisms for mobile ad hoc networks