Thursday, March 3, 2011
【 Weak current College 】 router test in the test content and purpose 】
(A) functional test router functions can often be divided into the following areas. (1) interface function: this function used as a router to connect to the network. Can be divided into the LAN interface and wide area network interface. LAN interfaces including Ethernet, token ring, FDDI, token ring, bus, and other network interfaces. WAN interfaces including E1/T1, T3, E3/DS3, generic serial interface (convertible into X.21DTE/DCE, V.35DTE/DCE, RS232DTE/DCE, RS449DTE/DCE, EIA530DTE) network interface. (2) communication protocol function: the function responsible for handling communication protocols, including TCP/IP, PPP, X.25, frame relay, etc. (3) packet forwarding: this feature is mainly responsible for the content according to the routing table in the port (including logical port) to forward packets between and overwrites a link-layer header information. (4) routing information maintenance function: this function is responsible for running the routing protocols to maintain the routing table. RIP routing agreement may include, OSPF, BGP, and other protocols. (5) management control functions: router management control features include five functional, SNMP agent feature, Telnet Server features, local management, remote monitoring and RMON function. There are several different ways to control the management of the router, and allow the record to the log. (6) security features: for complete packet filtering, address translation, access control, data encryption, firewalls, address assignment, and other functions. The router is not necessary for the above functionality is fully realized. But because the router exists as a network device, the minimum set of features, the feature set to the minimum required functionality, the router must support. Because the vast majority of functional tests can be interface testing, performance testing, Protocol conformance test and network management tests cover, so the router function testing in General can only on other test cannot cover features for confirmatory testing. Router functionality testing generally use remote test method. (Ii) performance test router is the IP network core equipment, which have a direct impact on the performance of IP networks network size, network stability and network scalability. Because the IETF does not have the router performance testing for special provisions, in General can only follow RFC2544 (Benchmarking Methodology for Network Interconnect Devices) for testing. But the router is distinguished from ordinary simple network interconnect devices, performance testing should also be coupled with the router's unique performance testing. For example routing table size, routing protocols, such as the convergence time. Router performance tests shall include the following indicators. (1) throughput: testing the router packet forwarding. Usually a router without packet loss conditions forwarded packets per second, the limit is generally can find the ultimate point of dichotomy. (2) the delay: testing the router in throughput range from the receipt of the package to forward a package of time intervals. Delay test should be repeated 20 times and then take the average. (3) the packet loss rate: testing the router discards the packet under different load account receives a proportion of the package. From different load usually refers to the wire-speed throughput test (line transmission package highest rate), the step size generally use wire-speed 10%. (4) back-to-back frames: testing the router receives the minimum package interval transit packet loss condition can handle the maximum number of packages. The actual test router caching, if the router is equipped with wire-speed capabilities (throughput = interface media wire-speed), this test does not make sense. (5) system recovery time: testing the router in resuming normal work after overload. Test methods can be used to send a router port throughput of 110% and linear speed of the smaller value, 60 seconds after the rate drops to 50% of the moment to the last packet intervals. If the router is equipped with wire-speed, the test does not make sense. (6) the system reset: testing the router from software reset or off electrical reset to normal working time interval. Normally refers to forward data throughput. In the test above RFC2544 in indicators should take into account the following factors. Frame format: it is recommended that you follow the RFC2544 frame format test; frames long: from the smallest frame length to MTU sequentially incremented, such as Ethernet with 64, 128, 256, 512, 1024, 1280, 1518 bytes; certification receives frames: exclude received non-test frame, such as control of frame, frame, etc. routing updates; broadcast frames: Verify broadcast frames on the performance of the router, the above tests in the test frame in 1% of the broadcast frames and then testing; management frame: authentication management frame to router performance, the above tests in the test frame inclusion in a management frames per second and then testing; routing update: routing updates that next jump port change effect on performance; filter: filter condition on the performance of the router, it is recommended that you set 25 filter condition test; protocol address: testing the router to receive random is 256 network address performance impact; the bi-directional flow: testing the router port bidirectional transceiver data performance impact; multiport test: considering the flow distribution across the connection or non-whole connection distribution performance impact; multi-protocol testing: consider the router at the same time to handle multiple protocols, performance impact; mixed bag long: in addition to testing the proposed incremental package long, check for mixed packet length on the performance of the router, RFC2544 requires contains all the test package has no longer on the hybrid packet length in the proportion of the package for long. The author recommends inaccordance with the actual network in each package long distribution test, for example, in the absence of special application requirements for Ethernet interface can adopt 60 byte packet of 50%, 128-byte packet 10%, 15% of the 256 byte packet, 512-byte packet 10%, 15% 1500 byte packet. In addition to the above recommendation of test entry RFC2544 also recommends test follows. ① Routing shocks: routing shocks on router forwarding capacity. The extent to which the route shocks per second update routing number based on network conditions. Routing update protocol can use BGP. ② routing table capacity:Testing routing table size. Backbone routers typically run BGP routing table contains routes worldwide. Generally require more than 10 million records routing, it is recommended that you enter by using BGP to test the export route count. ③ clock synchronization: contains the corresponding ports such as POS mouth router test accuracy within Bell and synchronization capabilities. ④ Protocol convergence time: test routing change notification to the time of the whole network. The index while the stand-alone performance for the router, but generally can only test on the network, and will vary by configuration changes. You can configure in network is completed by examining the indicators to measure the overall network performance. Test time should be according to the specific project and the test target. Generally considered that the test time should be between 60 to 300 seconds. In addition to General can according to user requirements and test target for setting options. Router performance tests generally take remote test method. (Iii) the conformance test router conformance testing usually uses the "black box" method, tested device IUT is called "black box". Test the system by controlling the observation point of the PCO and the tested device interface. Different test events through different PCO to control and observation, and follow the answer whether compliance with norms, namely timing relationships and data matching, test results can be passed, failed, no results 3. A router is a complex network interconnect devices, various communication layers on a variety of protocols. For example, the interface of the physical layer and link layer protocols, IP/ICMP, and other Internet layer protocol, TCP/UDP transport layer protocol, such as Telnet/application layer protocols such as SNMP and RIP/OSPF/BGP and other routing protocols. Protocol conformance testing should include all of the implementation of the router. As a result of the test content variety testing complex, in tests can select important agreements and are concerned about content testing. As the backbone of the Internet road there may affect global routing, so router tests should pay special attention to the routing protocol conformance test such as OSPF and BGP protocol. As a result of conformance testing can only choose a limited test cases to test, generally does not cover all the contents of the agreement. So even if the test is also no guarantee that the device fully achieved agreement all content, so the best way is in a real-world environment. Router conformance testing generally use distributed test method or remote test method. (Iv) interoperability test because of a communications protocol, routing protocols, is complex and has many options to achieve the same protocol router does not guarantee interoperability Interop. And because conformance testing capabilities are limited, even through Protocol conformance test may not be able to guarantee the full implementation of the agreement. Therefore it is necessary for interoperability testing equipment. Interop test is actually testing the consistency in the instrument needs to be replaced by the exchange of interoperable equipment, select some important and typical interconnection configuration, observation of two devices can works as expected. (V) the stability, reliability testing since most routers need 24 hoursa day, 7 days a week, as the backbone of the Internet's core router device stability and reliability are particularly important. So users need to understand the dew from the stability and reliability. The router's stability and reliability are hard to test. Generally two ways: (1) manufacturers through key parts of the degree of reliability and backup system reliability; (2) the user or by a large number of identical products manufacturers in the use of failure rate statistics product stability and reliability. Of course, may also be accessed at one time, the results of running the test require to guarantee the reliability and stability of the router. (Vi) network management test management test generic test network management software on the network, and network device management capability. Because the router is the IP network core equipment, so you must test the routers on the network management support. If a router with network management software, you can use the attached network management software to check for network management software implementation of configuration management, security management, performance management, billing management, fault management, topology management and view management functions. If the router does not come with network management software, you should test the router on the consistency of the SNMP protocol implementation and realization of the MIB. Because the router needs to implement many of the MIB, each MIB contains large amounts of content, it is difficult to completely test the MIB. Generally available through sampling important to check the router MIB entry on an implementation of the MIB.