Simulation techniques of random access protocols like pure-aloha and slotted-aloha