CBDS A modified version of dynamic source routing protocol (DSR) for mobile ad-hoc networks (MANETs) to detect and prevent blackhole and grayhole nodes.