Simulator based on NS2