Modeling and Simulation of IEEE 802.11 WLANS: A Case Study of a Network Simulator