CN102801586B - Method and device for automatically testing quality of service (QoS) granularity and precision - Google Patents
Method and device for automatically testing quality of service (QoS) granularity and precision Download PDFInfo
- Publication number
- CN102801586B CN102801586B CN201210309228.XA CN201210309228A CN102801586B CN 102801586 B CN102801586 B CN 102801586B CN 201210309228 A CN201210309228 A CN 201210309228A CN 102801586 B CN102801586 B CN 102801586B
- Authority
- CN
- China
- Prior art keywords
- granularity
- test
- tester
- configuration
- configuration values
- 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.)
- Active
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a method and a device for automatically testing quality of service (QoS) granularity and precision. The method comprises the following steps that: equipment to be tested and a tester are subjected to initial QoS configuration through an equipment and tester configuration module, a granularity testing module and a precision testing module sequentially test the granularity value and precision value of the equipment according to the configuration value and the actual output value of the tester; and a result analyzing and recording module records the data generated in the testing process and analyzes and outputs the data, so that the testing result is intuitively obtained. A variety of network equipment of multiple manufacturers can be automatically tested, so that the testing process is simplified, the testing cost is reduced, and the utilization rate of testing resources is improved.
Description
Technical field
The present invention relates to network communications technology field, relate in particular to the QoS granularity to the network equipment and precision in the Internet and carry out method and the device of automatic test.
Background technology
In traditional IP network, all messages are all treated by nondistinctive being equal to, each router all adopts the strategy of first-in first-out (FIFO) to process to all messages, it do one's best (Best-Effort) message is delivered to destination, but to message transmit the performance such as reliability, propagation delay any guarantee is not provided.
Network Development makes rapid progress, along with the continuous appearance of new application in IP network, the service quality of IP network has also been proposed to new requirement, for example VoIP (Voice over IP, ip voice) etc. real time business just the transmission delay of message has been proposed to high requirement, if it is oversize that message transmits time delay, will be user institute unacceptable (comparatively speaking, E-Mail and ftp business are to time delay insensitive).In order to support to have the business such as voice, video and the data of different demands for services, require network can distinguish different communication, and then corresponding service is provided for it.
The various traffic categorys in network can not be identified and distinguish to the best effort of traditional IP, and the separating capacity that possesses traffic category provides the prerequisite of different services just for different communication, the best effort pattern of legacy network can not meet the needs of application thus.The appearance of QoS (Quality of Service, service quality) technology is just devoted to address this problem.
QoS is intended to the different demands for various application, for example, for it provides different service quality: dedicated bandwidth is provided, reduces message dropping rate, reduces message transfer delay and delay variation etc.For achieving the above object, QoS provides following function:
1) message classification and painted
2) network congestion management
3) network congestion is avoided
4) traffic policing and traffic shaping
Wherein, traffic policing (Policing) and traffic shaping (Shaping) are functions most important and conventional in QoS, and the granularity of traffic policing and traffic shaping and precision are to weigh a very important index of QoS performance.
Summary of the invention
Granularity and precision that the present invention is mainly test QoS traffic policing and traffic shaping provide a kind of automated testing method and device, its can automation the granularity to Devices to test and precision test, and can the cross-platform testing equipment to different vendor, to improve the utilance of test resource and the extensibility of test case.
For achieving the above object, the present invention proposes following technical scheme: the automated testing method of a kind of QoS granularity and precision, comprises the following steps:
Step 1, Devices to test and tester are carried out respectively to initialization QoS configuration;
Step 2, testing graininess block configuration equipment to be tested recording configuration value, compare the actual grain size output valve of this Configuration Values and tester, and obtain granularity by adjusting Configuration Values;
Step 3, accuracy test module read described granularity, and according to the precision Configuration Values of described granularity configuration Devices to test, and contrast record with the real output value of tester;
Step 4, interpretation of result logging modle record the data that produce in test process, and data analysis is exported.
Further, in described step 2, obtain the granularity of equipment by two points of algorithms adjustment device configuration values.
In described step 2, in the time that described Configuration Values is greater than tester actual grain size output valve, adopt:
Y=Y-(Y-X)/2
Adjust this Configuration Values, wherein: Y is this Configuration Values, X is last Configuration Values.
In the time that described Configuration Values is less than tester actual grain size output valve, adopt:
Y=Y+(Y-X)/2
Adjust this Configuration Values, wherein: Y is this Configuration Values, X is last Configuration Values.
In the time that described Configuration Values equals the actual grain size output valve of tester, this Configuration Values is the equipment granularity line output of going forward side by side.
In described step 3, described precision Configuration Values layoutprocedure is:
Generate committed information rate list according to importing data packet length table and described granularity;
Read a packet long value, and according to the data flow of this packet long value configuration testing instrument, record tester output valve, repeat aforesaid operations, until long data packet list is empty, finish test.
If the bag long list of described packet is not empty, read described packet next committed information rate value and record the actual test value that tester is corresponding, until all committed information rates all run through.
The precision recording in described interpretation of result logging modle is the ratio of the actual test value that committed information rate is corresponding with tester.
The present invention has also disclosed the automatic test device of a kind of QoS granularity and precision, comprising:
Equipment and tester configuration module, for carrying out respectively initialization QoS configuration to Devices to test and tester;
Testing graininess module, for the granularity of measuring equipment;
Accuracy test module, for reading described granularity, and according to the precision of this granularity measuring equipment;
Interpretation of result logging modle, the data that produce for recording test process, and data analysis is exported.
Wherein, described testing graininess module is passed through Configuration Values and the tester actual grain size output valve of fetch equipment, and obtains granularity by two points of the algorithm debugs device configuration values.
Compared with prior art, the QoS granularity that the present invention proposes and the automated testing method of precision and the beneficial effect of device have:
One, the collocation method of built-in multiple vendor equipment, and expansion interface is provided, can be to different testing equipments, extensibility is good;
Two, full-automatic test, without manual intervention, has avoided a large amount of human resources to do the work of repetition, has reduced the cost of test;
Three, support test result synchronous recording Macro or mass analysis to export as Excel file, visual pattern, conveniently files test result;
Four, simplify test process, improved the utilance of test resource.
Brief description of the drawings
Fig. 1 is the module map of QoS granularity of the present invention and precision automatic test;
Fig. 2 is the flow chart that carries out testing graininess in Fig. 1 in testing graininess module;
Fig. 3 is the flow chart that carries out accuracy test in Fig. 1 in accuracy test module.
Embodiment
Below in conjunction with accompanying drawing of the present invention, the technical scheme in the preferred embodiment of the present invention is carried out to clear, complete description.
It shown in Fig. 1, is the preferred embodiment of QoS granularity of the present invention and precision automated testing method and device, this device is used for support the network equipment of qos feature as switch in network environment, routers etc. carry out the automatic test of QoS granularity and precision, this testing apparatus comprises the equipment that carries out exchanges data with automatic test platform in test process and the tester configuration module S102 that in tester, arrange, testing graininess module S104, accuracy test module S106, real-time results analytic record module S108, summarized results analytic record module S110.
Wherein, equipment and tester configuration module S102 are for carrying out QoS configuration to equipment to be tested and tester, with initialization test environment; Described testing graininess module S104 is for reading the Configuration Values of Devices to test, and this Configuration Values and tester real output value are contrasted, and constantly adjust device configuration values by two points of algorithms, until obtain immediate value (being the QoS granularity of equipment) and pass to accuracy test module.
Described accuracy test module S106 is for reading the granularity that testing graininess module S104 passes over, according to this granularity configuration Configuration Values of establishing to be measured, and by this Configuration Values and tester real output value and contrast record.
Real-time results analytic record module S108 is for all data of real time record testing graininess module S104 and accuracy test module S106 test process, to data analysis and output in Excel file.
Summarized results analytic record module S110 carries out Macro or mass analysis for all data that after all test modules are finished, real-time results analytic record module S108 recorded, and outputs in Excel file according to analysis result generation column diagram.
And QoS granularity of the present invention and precision automatic test course are also as shown in fig. 1, that is:
First carried out the initial configuration of Devices to test and tester by equipment and tester configuration module S102,
Next, carry out the test of granularity and export end to accuracy test module S106 and real-time results analytic record module S108 by testing graininess module S 104,
Carry out the test of equipment precision value by accuracy test module S106 again, then test result is exported to real-time results analytic record module S108, and analyzed by summarized results analytic record module S110, and analysis result is exported.
Fig. 2 is the flow chart that testing graininess module of the present invention is carried out granularity test, and its handling process is as follows:
1), tester and Devices to test are carried out to initial configuration, and record last Configuration Values X=0, this Configuration Values Y=2.
2), configuration device, record current Configuration Values Y.
3), read test instrument actual grain size output valve Z.
4), judge whether Y equals Z, if equaled, jump to the 5th step, if be not equal to, jump to the 6th step.
5), Output rusults Y, finish.
6), judge whether Y is greater than Z, if be greater than, jump to the 7th step, if be less than, jump to the 8th step.
7), temporary variable TEMP=Y is set, current Configuration Values Y=Y-(Y-X)/2, last Configuration Values X=TEMP, jumps to the 2nd step.
8), temporary variable TEMP=Y is set, current Configuration Values Y=Y+ (Y-X)/2, last Configuration Values X=TEMP, jumps to the 2nd step.
Above-mentioned steps loops, until the actual grain size output valve of Configuration Values and tester is basic identical, just exports the granularity of configuration to accuracy test module, and carries out record by real-time results analytic record module.
Fig. 3 is the flow chart that accuracy test module of the present invention is carried out accuracy test, and its handling process is as follows:
1), tester and Devices to test are carried out to initial configuration, and record last Configuration Values X=0, this Configuration Values Y=2.
2) granularity generation CIR (Committed Information Rate, the committed information rate) value list that, imports long data packet list and pass over according to testing graininess module.
3), circulation reads next packet long value A, and according to the Stream (data flow) of this packet long value configuration testing instrument, the overall budget long number X=X-1 of packet.
4), judge whether X equals 0, if equaled, finish test, if be not equal to, jump to the 5th step.
5), read next cir value B and according to this cir value configuration device, total cir value is counted Y=Y-1.
6), judge whether Y equals 0, if equaled, jump to the 3rd step, if be not equal to, jump to the 7th step.
7), the actual test value C of read test instrument.
8), A, B, C are carried out to corresponding analytic operation, and result is outputed to Excel file.
The present invention can apply the multiple network testing equipment to different vendor to the method for testing of QoS granularity and precision and device, as the three-tier switch of Cisco, Huawei and Sheng Ke all can use, meanwhile, test process is full-automatic process, and test result read directly perceived, convenient.
Technology contents of the present invention and technical characterictic have disclosed as above; but those of ordinary skill in the art still may be based on teaching of the present invention and announcements and are done all replacement and modifications that does not deviate from spirit of the present invention; therefore; protection range of the present invention should be not limited to the content that embodiment discloses; and should comprise various do not deviate from replacement of the present invention and modifications, and contained by present patent application claim.
Claims (9)
1. an automated testing method for QoS granularity and precision, is characterized in that comprising the following steps:
Step 1, Devices to test and tester are carried out respectively to initialization QoS configuration;
Step 2, testing graininess block configuration equipment to be tested recording configuration value, compare the real output value of this Configuration Values and tester, and obtain granularity by adjusting Configuration Values;
Step 3, accuracy test module read described granularity, and according to the precision Configuration Values of described granularity configuration Devices to test, and contrast record with the real output value of tester; The layoutprocedure of wherein said precision Configuration Values is:
Generate committed information rate list according to importing data packet length list and described granularity;
Read a packet long value, and according to the data flow of this packet long value configuration testing instrument, record the output valve of tester, repeat aforesaid operations, until long data packet list is empty, finish test;
Step 4, interpretation of result logging modle record the data that produce in test process, and data analysis is exported.
2. method according to claim 1, is characterized in that: in described step 2, obtain the granularity of Devices to test by two points of algorithms adjustment device configuration values.
3. method according to claim 1 and 2, is characterized in that: in described step 2, in the time that described Configuration Values is greater than tester actual grain size output valve, adopt:
Y=Y-(Y-X)/2
Adjust this Configuration Values, wherein: Y is this Configuration Values, X is last Configuration Values.
4. method according to claim 1 and 2, is characterized in that: in described step 2, in the time that described Configuration Values is less than tester actual grain size output valve, adopt:
Y=Y+(Y-X)/2
Adjust this Configuration Values, wherein: Y is this Configuration Values, X is last Configuration Values.
5. method according to claim 1 and 2, is characterized in that: in described step 2, in the time that described Configuration Values equals the actual grain size output valve of tester, this Configuration Values is the equipment granularity line output of going forward side by side.
6. method according to claim 1, it is characterized in that: in described step 3, if the bag long list of described packet is not empty, read described packet next committed information rate value and record the actual test value that tester is corresponding, until all committed information rates all run through.
7. method according to claim 1, is characterized in that: in described step 3, the precision recording in described interpretation of result logging modle is the ratio of the actual test value that committed information rate is corresponding with tester.
8. an automatic test device for QoS granularity and precision, is characterized in that comprising:
Devices to test and tester configuration module, for carrying out respectively initialization QoS configuration to Devices to test and tester;
Testing graininess module, for measuring the granularity of Devices to test;
Accuracy test module, be used for reading described granularity, and according to the precision Configuration Values of this granularity measuring equipment, the layoutprocedure of wherein said precision Configuration Values comprises according to importing data packet length list and the list of described granularity generation committed information rate, then reads a packet long value, and according to the data flow of this packet long value configuration testing instrument, record the output valve of tester, repeat aforesaid operations, until long data packet list is empty, finish test;
Interpretation of result logging modle, the data that produce for recording test process, and data analysis is exported.
9. device according to claim 8, is characterized in that: described testing graininess module is by reading Configuration Values and the tester actual grain size output valve of Devices to test, and obtains granularity by two points of the algorithm debugs device configuration values.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210309228.XA CN102801586B (en) | 2012-08-28 | 2012-08-28 | Method and device for automatically testing quality of service (QoS) granularity and precision |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210309228.XA CN102801586B (en) | 2012-08-28 | 2012-08-28 | Method and device for automatically testing quality of service (QoS) granularity and precision |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102801586A CN102801586A (en) | 2012-11-28 |
CN102801586B true CN102801586B (en) | 2014-11-05 |
Family
ID=47200558
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210309228.XA Active CN102801586B (en) | 2012-08-28 | 2012-08-28 | Method and device for automatically testing quality of service (QoS) granularity and precision |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102801586B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103580929A (en) * | 2013-11-21 | 2014-02-12 | 盛科网络(苏州)有限公司 | Automation testing method and automation testing device for looped network switch delay |
CN105357036A (en) * | 2015-10-21 | 2016-02-24 | 盛科网络(苏州)有限公司 | Simulative object-oriented QoS (Quality of Service) verification model and method |
CN105721226B (en) * | 2016-04-07 | 2019-04-02 | 烽火通信科技股份有限公司 | A kind of QoS automatic test device and test method |
US10496435B2 (en) | 2016-12-08 | 2019-12-03 | Nxp Usa, Inc. | System and method for partitioning and managing timers in a virtualized system |
US10216663B2 (en) | 2016-12-30 | 2019-02-26 | Nxp Usa, Inc. | System and method for autonomous time-based debugging |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1575614A (en) * | 2001-10-25 | 2005-02-02 | 诺基亚公司 | Method and system for optimising the performance of a network |
-
2012
- 2012-08-28 CN CN201210309228.XA patent/CN102801586B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1575614A (en) * | 2001-10-25 | 2005-02-02 | 诺基亚公司 | Method and system for optimising the performance of a network |
Also Published As
Publication number | Publication date |
---|---|
CN102801586A (en) | 2012-11-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102801586B (en) | Method and device for automatically testing quality of service (QoS) granularity and precision | |
CN101924695B (en) | For the method and system that network connects | |
CN101075911B (en) | Statistical information collecting system and apparatus thereof | |
CN101814977B (en) | TCP flow on-line identification method and device utilizing head feature of data stream | |
CA2607603C (en) | Distributed traffic analysis | |
US10237192B2 (en) | Apparatus and system for optimizing communication networks | |
US20120182891A1 (en) | Packet analysis system and method using hadoop based parallel computation | |
CN103297282A (en) | Network delay measuring device and method | |
CN102045222A (en) | Real-time overall test method of network system | |
JP7036225B2 (en) | Estimator, system and method and program and learning device and method and program | |
CN105787512A (en) | Network browsing and video classification method based on novel characteristic selection method | |
CN108092856A (en) | Network quality optimization method, system and electronic equipment based on SDN | |
CN110972150A (en) | Network capacity expansion method and device, electronic equipment and computer storage medium | |
CN114006829B (en) | Method, network device and medium for synthesizing detection parameters based on historical data | |
CN104734905A (en) | Data flow detection method and device | |
CN109327356A (en) | A kind of generation method and device of user's portrait | |
CN110191024B (en) | Network traffic monitoring method and device | |
CN116828623A (en) | Multi-path scheduling device and method for data packet | |
WO2016078246A1 (en) | Method and device for supporting diversified network data access, and terminal | |
CN110417609A (en) | A kind of statistical method of network flow, device, electronic equipment and storage medium | |
CN110248379A (en) | The performance test methods and device of base station in WLAN | |
CN103312540A (en) | User service requirement parameter determining method and device | |
CN108183840A (en) | Verification method, device and the realization device of switch performance | |
CN101631066A (en) | Method and system for realizing terminal quality of service of internet voice transmission system | |
CN103916286A (en) | Test method and device for detecting network device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 215101 unit 13 / 16, 4th floor, building B, No. 5, Xinghan street, Suzhou Industrial Park, Jiangsu Province Patentee after: Suzhou Shengke Communication Co.,Ltd. Address before: 215021 unit 13 / 16, floor 4, building B, No. 5, Xinghan street, industrial park, Suzhou, Jiangsu Province Patentee before: CENTEC NETWORKS (SU ZHOU) Co.,Ltd. |