A MAC technique for CDMA based ad-hoc networks