CORE: a collaborative reputation mechanism to enforce node cooperation in mobile ad hoc networks