CSMA/CA algorithm simulation