Implementing a new collision avoidance technique in xbee

Hello everyone, I am a new bee to XBee development. so just trying a new project where I want to implement a new collision avoidance technique in the XBee mac layer.so can anyone help me wether I can program the XBee module to use this new technique through Arduino or i need to achieve this at the firmware level of XBee module?
Sorry if it's a silly thought:)

Do you mean collision avoidance CSMA/CA in IEEE 802.15.4 and 802.11 ?
If so, Xbee module firmware has implemented yet. If you want to modify it, you need to modify firmware of Xbee. What you can do on Arduino is to implement routing protocol in Layer 3.

Understanding about network protocol stack is not easy.

Hi, thanks for responding. I want to implement a Distributed Queuing protocol instead of default CSMA in XBee. Is this feasible?. If so which tool I need for XBee firmware changes. And can you provide me any reference/documentation will be a great help

I am not sure. You can email to Xbee manufacturer to get the answer.
I have some recommendation. Implementing on Wireless MAC on real device is a very heavy task. You had better to implement on Network simulator such as NS2, NS3 or QualNet. For real device, you can find device that support Contiki OS to modify its network protocol including MAC

Ok whether NS2, NS3 or qualnet simulates ZigBee mesh network ?. can you provide any document reference because these simulators are new to me.