Model using ns-3 simulator on Linux to simulate IEEE 802.11 CSMA/CA technic. It uses a mechanism called DCF (distributed coordinated function) which applies a binary exponential backoff to avoid collisions.