NS2 Simulation of MAC Protocol