With the development of Internet technology, network teaching has gradually come into our vision. relying on the network teaching platform, has the characteristics of real-time, synchronization, remote, interactive, more and more popular. Aiming at the problems in the teaching process, the Quality (of Service Qos) technology is used to solve the problems such as delay, delay-jitter and packet-loss rate in the process of video playing, video download, interactive communication and so on. Travelling (Salesman Problem TSP) problem is solved by computer simulation. In a large number of experimental results, the optimal path is found to meet the constraints, from which the routing source node to the target node.