Basics of Protocol Simulation Using Ns2