(According to the current situation of practical teaching of computer network, the application of NS2 in practical teaching of this course is discussed. It mainly introduces the basic method and process of NS2 network simulation, and discusses its use in wireless network practice teaching through detailed examples. Teaching practice has confirmed that this method not only alleviates the problems of existing teaching conditions and insufficient funds to a certain extent, but also arouses students' enthusiasm for learning and greatly improves teaching.)