| With the development of home network applications, some new-style traffic features emerge under the scene of home network, for example, real-time traffic requires packet transmission with a low delay and P2 P applications with downloading functions take lots of the bandwidth. However, the traditional traffic control solutions in home router choose the closed source operate system as the develop platform in general, providing IP and Port based traffic control functions, which can’t execute the traffic control strategies automatically according to the traffic condition, furthermore, the research of traffic control algorithm aiming at the traffic features of home network is comparatively lagging behind. In order to promote the network service experience, the traffic control technology in home router has been a hot topic among the router manufacturers. Focusing on these problems, this thesis relies on the router project cooperating with a router company, makes an integrated design and realization of the traffic control functions on home router and has a deeper research and improve on the traffic control algorithm, main work in this thesis includes the following aspects:Firstly, this thesis does a research on the basic QoS theory, traffic control principles and the key technology of the traffic control, all of which are the basis of the traffic control functions. According to the traffic characteristics of the Home Internet scene, this thesis detailed the QoS requirements of this scene.Secondly, this thesis make an integrated design and realization of the traffic control functions base on the OpenWrt open source system according to the traffic control function requirements of the router project partner, which including the three parts of traffic detection and statistics module, the traffic control core module and Web management module. The traffic detection and statistics module is subdivided into three sub-modules: packet capture, traffic identification and traffic statistics. The realization process of the automatic traffic control mechanism is detailed in the traffic control core module. The Web management module based on LuCI framework is extended with a Web management interface developed. The traffic control functions were further tested and analyzed, and the function test results show that the traffic control functions designed in this thesis can realize the identification and record of traffic, acquiring a better traffic control effect and providing an effective reference for the traffic control manage solution in the home network.Thirdly, combined with the shortage of the traffic control algorithm existing in Home Internet scene and the requirement of the performance promoting of the traffic control algorithm which is coming from the Router project partner, this thesis does an in-depth research and analysis on the weight fairness queue algorithm(WFQ) which has the feature of bandwidth sharing fairness. Aiming at the requirement of delay from the realtime traffic in Home Internet scene, this thesis designs a Realtime traffic First Weighted Fair Queue priority scheduling algorithm(RF-WFQ) based on the WFQ algorithm. This improved algorithm performs a dynamic weight adjustment strategy and bandwidth allocation strategy according to the network traffic conditions, which is simulated and analyzed on the NS-2 platform. The simulation results show that the RF-WFQ algorithm can reduce the delay of realtime traffic effectively and improve the throughput of realtime traffic under the condition of the limited link bandwidth with a certain range of burst traffic rates. To sum up, it has been proved that the improved algorithm can apply to the requirements of traffic control in Home Internet scene from the aspect of theoretical simulation, which lays a foundation for the subsequent algorithm implementation. |