I am struggling to implement this concept correctly,
so basically the concept in there is that a global time is ongoing, and each stations randomly transmit data in any slot (so I have to create a simulation with packets coming from station A and B in random time) when packet arrive it senses media is free or not by first sending DIFS to see if media is free and then send RTS to control media and then sends data. Meanwhile station B should sees media is busy and should wait. I am like lost on what could be best approach to implement it, I looked at producer consumer concept in python, but it does not synchronize well in my logic flow. Any ideas/directions with examples will be highly appreciated.