| With the development of Internet technology, the quality and performance of digital communication devices is ever increasing. Router as the core communications network equipment, its functionality, performance, security, reliability, and other related indicators is becoming increasingly important. Especially in a complex network topology, the router performance determines the stability and reliability of the network. So the routers corresponding performance testing has its importance and necessity. From the global testing development trend, relying solely on manual testing cannot meet the growing demand for testing. Automated testing can not only complete the task of manual testing, but also fundamentally improve the efficiency.Based on the basic theory of automated testing, we analyzed the demand of router automated test system and then obtained the goals of it, using the demand of complex dynamic routing protocol and the router capacities middleweight huge as the breakthrough point. Analyzed the router manual testing and the test platform, we build an automated test system for router performance based on VTP(Versatile Test Plantform) and using TCL(Tool Command Language) scripting language.Considering the simplicity, expansibility and portability, the design and implementation of the test system is based on the company’s existing automated testing framework,used Spirent’s Spirent Test Center,VTP platform and combined with relevant experience. The modular design of the system is divided into a test environment initialization module, the module code execution, test result analysis module and test drive module. Each module is designed to achieve a relatively independent function, while each module systematic associated by the interface and parameters. Top-down design the test system into logical layer testing, testing layer, testing the functional layer and the driver layer, layered design makes automated test system design more clarity.We set up a test system’s physical environment to test router. Combining performance automated test RFC2544 standards, using interpretative strong TCL language to develop a set of automated test scripts to meet the specifications of the router capacity under dynamic routing protocol. Finally, we get a detailed comparative analysis of the router throughput, delay and packet loss rate performance test results with the results of existing scripts and manual testing. Practice has proved that this system accuracy and efficiency have been improved than the existing test scripts and traditional manual testing, especially in testing efficiency significantly improved. |