With the continuous development of communication technology, user’s requirements for quality of service (QoS) are also increasing.Through properly limiting networks’input traffic, traffic control mechanism can avoid the occurrence of network congestion, thus satisfying networks’ requirements including bandwidth, time delay, delay jitter, and so on. Meanwhile, network measurement plays an important role in many applications, including measurement and evaluation of network performance, ensuring quality of service, traffic control, traffic engineering and so on. Due to its simplicity and scalability, Differentiated Services (DiffServ) architecture has become one of the hotspots on research of networks in recent years. Based on DiffServ architecture, the traffic control system can not only provide QoS supports for different services, but also avoid the occurrence of network congestion. Therefore, it is of great research value.Based on the project named "the reseach on the key techniques and prototype of a muti-net gateway", this dissertation firstly introduces heterogeneous networks, the multi-net gateway device, the hardware structure and software portable framework of network processor, as well as traffic control and network measurement techniques. Secondly, the emphasis is put on traffic control system which is based on DiffServ architecture. And then, the traffic control system which can be used on the multi-network gateway is designed. Based on studying various types of queueing management algorithms, an algorithm named Interlaced WRED with Virtual Debit (VDI-WRED) is proposed. Additionally, the software implementation of all the function mudules in the traffic control system is discussed.Using the mechanisms of Microsoft Foundation Class (MFC) and Socket communication, the port measurement software is implemented. Finally, the debugging and testing for the traffic control system is discussed, including simulation debugging and testing with Integrated Development Environment (IDE) WorkBench, as well as hardware debugging and testing on the muti-net gateway. The results show that the traffic control system can work correctly. |