The design and implementation of network simulation environment