CN104243238A - Method for testing control plane speed limit values, test device and system - Google Patents
Method for testing control plane speed limit values, test device and system Download PDFInfo
- Publication number
- CN104243238A CN104243238A CN201410487439.1A CN201410487439A CN104243238A CN 104243238 A CN104243238 A CN 104243238A CN 201410487439 A CN201410487439 A CN 201410487439A CN 104243238 A CN104243238 A CN 104243238A
- Authority
- CN
- China
- Prior art keywords
- test
- control plane
- testing
- equipment under
- test packet
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Maintenance And Management Of Digital Transmission (AREA)
Abstract
The invention relates to data communication and discloses a method for testing control plane speed limit values. The method comprises the steps that a, a test device constructs test messages and sends the test messages to a tested device at a set rate; b, the tested device receives the test messages, then transmits the test messages to one queue of a control plane and sends response messages; c, the test device captures the response messages sent by the tested device; d, if the number of the response messages captured by the test device is equal to the set rate of sending the test messages, the rate of sending the test messages is increased until the number of the captured response messages is smaller than the rate of sending the test messages; e, when the number of the captured response messages is smaller than the rate of sending the test messages, the number of the response messages captured at the moment serves as the speed limit value of one queue of the control plane of the tested device. The invention further discloses the test device and a system. According to the method for testing the control plane speed limit values, the test device and the system, the speed limit values of each queue of the control plane of data communication equipment can be easily, conveniently and quickly measured.
Description
Technical field
The present invention relates to data communication technology, particularly the method for test data communication equipment control plane speed limit size and device.
Background technology
With the data communications equipment that router and switch are representative, usually comprising two planes, is data retransmission plane and control plane respectively.
Data retransmission plane: distribution switch datum plane is made up of the exchange chip of the Fabric chip of switch fabric card, High speed rear panel and line card.The data retransmission plane of centralized device is made up of the exchange chip on main control card.Router data plane is made up of the code being responsible for data retransmission specially.
Control plane: the control plane of distributed routing exchange equipment is formed primarily of the master cpu of main control card, HUB (for connecting a kind of exchange chip between main control card and line card card CPU) and the control CPU of line card.Concentrated route switching equipment control plane is only made up of the master cpu of main control card, and main control card card completes whole routing switch platform control plane controlling functions, for data retransmission plane provides necessary various list item information.For the attack avoiding the control plane of actual sets Webweb network equipment to be subject to network traffics speed; as ARP (Address Resolution Protocol; address resolution protocol) message flood attack; usually have control plane defencive function, such as submit CPU message rate-limiting, CPU protects the functions such as speed limit.
For ensureing that network device control plane defencive function comes into force, need to test message rate-limiting function.The main checking of test 2 points, one is the queue that the different message of checking enters the correspondence of master cpu, such as ICMP (Internet Control Message Protocol, ICMP) message enters 1 queue, OSPF (Open Shortest Path First, SPF) message enters 3 queues etc.Two is verify that the speed limit of each queue comes into force, such as 1 queue speed limit 200pps, 3 queue speed limit 300pps etc.Existing method of testing can be tested for Section 1, but has no idea to record the speed limit of each queue.
Summary of the invention
The object of the invention is, a kind of method of testing and control plane speed limit is provided, can detect the speed limit of each queue of data communications equipment control plane.
Technical scheme of the present invention is, the method for testing and control plane speed limit, comprises the following steps:
A, testing equipment structure test packet is also sent to equipment under test with the speed of setting;
Send to a certain queue of control plane on after b, equipment under test receive described test packet, and send response message;
C, testing equipment catch the response message that equipment under test sends;
If the response message number that d testing equipment is caught equals the speed of the transmission test packet set, then improve the speed sending test packet, until the response message number of catching is less than the speed sending test packet;
E, when the response message number of catching is less than the test packet speed of transmission, then using the response message quantity of now catching as the speed limit of this certain queue of equipment under test control plane.
Further, in described step a, the test packet of structure is can be submitted control plane process by equipment under test and can by the message responded.
Further, described method also comprises the steps:
F, testing equipment judge whether to complete the mensuration to all queue speed limits of equipment under test control plane, if then terminate test, otherwise continue other queue speed limits of test equipment under test control plane.
Concrete, in described step f, the method continuing other queues of test equipment under test control plane specifically, in step a, by adjustment test packet in testing equipment, is sent to other queues of equipment under test control plane.
Concrete, it is characterized in that, in described step f, continue the method for other queues of test equipment under test control plane specifically, in stepb, equipment under test, according to the rule match test packet of setting, submits test packet other queues to control plane while directly submitting test packet to other queues or transmitted test message of control plane.
The present invention also provides a kind of testing equipment of testing and control plane speed limit, comprises message constructing module, message sending module, counting messages module;
Described message constructing module, for constructing test packet;
Described message sending module, for being sent to a certain queue of equipment under test control plane with the speed of setting by the test packet of structure;
Described counting messages module, for catching the response message that equipment under test sends; If the response message number of catching equals the speed of the transmission test packet set, then improve the speed sending test packet, until the response message number of catching is less than the speed sending test packet; When the response message number of catching is less than the test packet speed of transmission, then using the response message quantity of now catching as the speed limit of this certain queue of equipment under test control plane.
Further, described test packet is can be submitted control plane process by equipment under test and can by the message responded.
Further,
Described message constructing module, also for adjusting the test packet of structure;
Described message sending module, also for the different test packets after the adjustment of structure being sent to other queues of equipment under test control plane.
Concrete, described equipment under test is used for: a certain queue sending to control plane on after receiving the test packet of testing equipment transmission, and sends response message.
Further, described equipment under test also for: according to setting rule match test packet, submit test packet other queues to control plane while directly submitting test packet to other queues or transmitted test message of control plane.
The invention has the beneficial effects as follows, simple, fastly can utilize Black-box Testing technology, the size of each queue speed limit of determination data communication equipment control plane.
Accompanying drawing explanation
Fig. 1 is the method flow diagram of the testing and control plane speed limit of the embodiment of the present invention;
Fig. 2 is testing equipment, the system configuration schematic diagram of the testing and control plane speed limit of the embodiment of the present invention.
Embodiment
Technical scheme of the present invention is described in detail below in conjunction with accompanying drawing.
The method of testing and control plane speed limit size of the present invention, testing process as shown in Figure 1, comprises the following steps:
Step 1, testing equipment structure test packet is also sent to equipment under test with the speed of setting.This test packet needs to be sent to the process of equipment under test control plane and can be responded a kind of message, and can be ICMP echo request message, also can be ARP request message or other messages.Testing equipment setting sends the speed of test packet, such as 1000/second.
Send to a certain queue of control plane on after step 2, equipment under test receive described test packet, and send response message.
Step 3, testing equipment catch the response message that equipment under test sends.
If the response message number that step 4 is caught is less than the speed sending test packet, then measure the speed limit of a certain queue of equipment under test control plane.If the response message number of catching equals the speed of the transmission test packet set, then improve the message transmitting spped rate value in step 1, such as, to 2000/second, until the response message number of catching is less than the speed sending test packet.
Step 5, the number of response message sent according to the equipment under test of catching in step 4 determine the size of a certain queue limits value of equipment under test control plane.
In the present embodiment, after execution of step 5, also comprise:
Step 6: judge whether to complete the mensuration to all queue speed limits, if then terminate test, otherwise continues test from step 1.Continuing the method for other queues of test equipment under test control plane specifically, in step 1, by adjustment test packet in testing equipment, be sent to other queues of equipment under test control plane, record the number of the back message of equipment under test different queue successively to determine the size of each queue limits value of equipment under test control plane.
If equipment under test is not supported by adjusting the method above-mentioned test packet being sent to different queue, can also after equipment under test receives test packet, equipment under test, according to the rule match test packet of setting, submits test packet records some queues speed limit size to other queues of control plane while directly submitting test packet to other queues or transmitted test message of control plane.Repeatedly repeat the speed limit recording different queue.
The testing apparatus of testing and control plane speed limit size of the present invention, comprises message constructing module, message sending module and counting messages module, as shown in Figure 2.
Message constructing module, for constructing test packet.Testing equipment constructs test packet, and described test packet is can be submitted control plane process by equipment under test and can by the message responded, as ICMP echo request message or ARP request message.
Described message sending module, for being sent to a certain queue of equipment under test control plane with the speed of setting by the test packet of structure.
Described counting messages module, for catching the response message that equipment under test sends.If the response message number of catching equals the speed of the transmission test packet set, then improve the speed sending test packet, until the response message number of catching is less than the speed sending test packet.When the response message number of catching is less than the test packet speed of transmission, then using the response message quantity of now catching as the speed limit of this certain queue of equipment under test control plane.
Described message constructing module, also for adjusting the test packet of structure;
Described message sending module, also for the different test packets after the adjustment of structure being sent to other queues of equipment under test control plane.
The embodiment of the present invention also provides a kind of test macro of testing and control plane speed limit, and comprise testing equipment and equipment under test, testing equipment has related description at above-described embodiment, does not repeat them here.Equipment under test is used for: a certain queue sending to control plane on after receiving the test packet of testing equipment transmission, and sends response message.If equipment under test does not support the method by adjustment test packet being sent to control plane different queue, can also after equipment under test receives test packet, equipment under test, according to the rule match test packet of setting, submits test packet records some queues speed limit size to other queues of control plane while directly submitting test packet to other queues or transmitted test message of control plane.Repeatedly repeat the speed limit recording different queue.
Claims (10)
1. the method for testing and control plane speed limit, comprises the following steps:
A, testing equipment structure test packet is also sent to equipment under test with the speed of setting;
Send to a certain queue of control plane on after b, equipment under test receive described test packet, and send response message;
C, testing equipment catch the response message that equipment under test sends;
If the response message number that d testing equipment is caught equals the speed of the transmission test packet set, then improve the speed sending test packet, until the response message number of catching is less than the speed sending test packet;
E, when the response message number of catching is less than the test packet speed of transmission, then using the response message quantity of now catching as the speed limit of this certain queue of equipment under test control plane.
2. the method for testing and control plane speed limit according to claim 1, is characterized in that, in described step a, the test packet of structure is can be submitted control plane process by equipment under test and can by the message responded.
3. the method for testing and control plane speed limit according to claim 1 and 2, it is characterized in that, described method also comprises the steps:
F, testing equipment judge whether to complete the mensuration to all queue speed limits of equipment under test control plane, if then terminate test, otherwise continue other queue speed limits of test equipment under test control plane.
4. the method for testing and control plane speed limit according to claim 3, it is characterized in that, in described step f, continue the method for other queues of test equipment under test control plane specifically, in step a, by adjustment test packet in testing equipment, be sent to other queues of equipment under test control plane.
5. the method for testing and control plane speed limit according to claim 3, it is characterized in that, in described step f, continue the method for other queues of test equipment under test control plane specifically, in stepb, equipment under test, according to the rule match test packet of setting, submits test packet other queues to control plane while directly submitting test packet to other queues or transmitted test message of control plane.
6. the testing equipment of testing and control plane speed limit, is characterized in that, comprises message constructing module, message sending module, counting messages module;
Described message constructing module, for constructing test packet;
Described message sending module, for being sent to a certain queue of equipment under test control plane with the speed of setting by the test packet of structure;
Described counting messages module, for catching the response message that equipment under test sends; If the response message number of catching equals the speed of the transmission test packet set, then improve the speed sending test packet, until the response message number of catching is less than the speed sending test packet; When the response message number of catching is less than the test packet speed of transmission, then using the response message quantity of now catching as the speed limit of this certain queue of equipment under test control plane.
7. the testing equipment of testing and control plane speed limit according to claim 6, is characterized in that, described test packet is can be submitted control plane process by equipment under test and can by the message responded.
8. the testing equipment of the testing and control plane speed limit according to claim 6 or 7, is characterized in that,
Described message constructing module, also for adjusting the test packet of structure;
Described message sending module, also for the different test packets after the adjustment of structure being sent to other queues of equipment under test control plane.
9. the test macro of testing and control plane speed limit, it is characterized in that, comprise the testing equipment described in any one of claim 6 ~ 8 and equipment under test, described equipment under test is used for: a certain queue sending to control plane on after receiving the test packet of testing equipment transmission, and sends response message.
10. the test macro of testing and control plane speed limit according to claim 9, it is characterized in that, described equipment under test also for: according to setting rule match test packet, submit test packet other queues to control plane while directly submitting test packet to other queues or transmitted test message of control plane.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410487439.1A CN104243238A (en) | 2014-09-22 | 2014-09-22 | Method for testing control plane speed limit values, test device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410487439.1A CN104243238A (en) | 2014-09-22 | 2014-09-22 | Method for testing control plane speed limit values, test device and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104243238A true CN104243238A (en) | 2014-12-24 |
Family
ID=52230635
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410487439.1A Pending CN104243238A (en) | 2014-09-22 | 2014-09-22 | Method for testing control plane speed limit values, test device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104243238A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110958079A (en) * | 2019-11-25 | 2020-04-03 | 新华三技术有限公司 | Test method, device and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101079746A (en) * | 2007-06-22 | 2007-11-28 | 中兴通讯股份有限公司 | Secure implementation method and device of broadband access device |
US20090276663A1 (en) * | 2007-05-02 | 2009-11-05 | Rauli Ensio Kaksonen | Method and arrangement for optimizing test case execution |
CN102006201A (en) * | 2010-11-23 | 2011-04-06 | 北京星网锐捷网络技术有限公司 | New connection number test method, system and device in network address translation |
-
2014
- 2014-09-22 CN CN201410487439.1A patent/CN104243238A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090276663A1 (en) * | 2007-05-02 | 2009-11-05 | Rauli Ensio Kaksonen | Method and arrangement for optimizing test case execution |
CN101079746A (en) * | 2007-06-22 | 2007-11-28 | 中兴通讯股份有限公司 | Secure implementation method and device of broadband access device |
CN102006201A (en) * | 2010-11-23 | 2011-04-06 | 北京星网锐捷网络技术有限公司 | New connection number test method, system and device in network address translation |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110958079A (en) * | 2019-11-25 | 2020-04-03 | 新华三技术有限公司 | Test method, device and system |
CN110958079B (en) * | 2019-11-25 | 2022-07-01 | 新华三技术有限公司 | Test method, device and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105103494B (en) | The network switch emulates | |
JP4769609B2 (en) | Switch device | |
WO2019153337A1 (en) | Network quality evaluation method and apparatus, network detection device, and readable storage medium | |
CN101282247B (en) | Method for measuring network application performance supporting internet high bandwidth real time video application | |
CN108259364B (en) | Network congestion determination method and device | |
WO2014030061A4 (en) | Validating network traffic policy | |
CN106656679B (en) | Availability bandwidth measurement method | |
US10958616B2 (en) | Methods, systems, and computer readable media for network test configuration using virtual local area network (VLAN) scanning | |
CN101547063A (en) | Method and system for testing forward delay | |
CN106656643A (en) | Measuring method of segmental calculation of network delay | |
CN102104502A (en) | Ethernet equipment performance test platform based on Linux system | |
CN105634840A (en) | Method and device for measuring packet loss | |
CN112653634A (en) | Flow control method, device, equipment and readable storage medium | |
CN105743816B (en) | A kind of link aggregation method and device | |
CN104486167A (en) | Concurrence network performance and network trending direction testing method based on MESH network | |
WO2018119790A1 (en) | Network performance detection method and apparatus | |
CN113285851A (en) | Method and system suitable for testing network connection performance of power distribution safety equipment | |
CN103532818A (en) | Quick test method of accessibility of VPN link | |
CN104734907A (en) | Method for actively measuring end-to-end path performance of OpenFlow network and system adopted by the same | |
CN106656665A (en) | Local area network speed testing method and device | |
WO2014095927A1 (en) | Probing a network | |
CN103139014A (en) | Method and device for network quality evaluating based on by-pass | |
WO2012071851A1 (en) | Method and apparatus for adjusting bidirectional forwarding detection transmission interval according to network jitter | |
CN104601400B (en) | Shunting device performance test methods, test client and test server | |
TW202147810A (en) | Virtual service network quality measurement system and method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 610041, 17 floor, maple building, 1 building, 288 Tianfu street, Chengdu, Sichuan. Applicant after: Maipu Communication Technologies Co., Ltd. Address before: 610041 Maple tower, 16 Hing Hing Road, nine High-tech Zone, Chengdu, Sichuan Applicant before: Maipu Communication Technologies Co., Ltd. |
|
CB02 | Change of applicant information | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20141224 |
|
RJ01 | Rejection of invention patent application after publication |