CN102801586A - 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 PDF

Info

Publication number
CN102801586A
CN102801586A CN201210309228XA CN201210309228A CN102801586A CN 102801586 A CN102801586 A CN 102801586A CN 201210309228X A CN201210309228X A CN 201210309228XA CN 201210309228 A CN201210309228 A CN 201210309228A CN 102801586 A CN102801586 A CN 102801586A
Authority
CN
China
Prior art keywords
granularity
tester
configuration
configuration values
test
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.)
Granted
Application number
CN201210309228XA
Other languages
Chinese (zh)
Other versions
CN102801586B (en
Inventor
任钰彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Centec Communications Co Ltd
Original Assignee
Centec Networks Suzhou Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Centec Networks Suzhou Co Ltd filed Critical Centec Networks Suzhou Co Ltd
Priority to CN201210309228.XA priority Critical patent/CN102801586B/en
Publication of CN102801586A publication Critical patent/CN102801586A/en
Application granted granted Critical
Publication of CN102801586B publication Critical patent/CN102801586B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

The automated testing method of QoS granularity and precision and device
Technical field
The present invention relates to network communications technology field, relate in particular to the method and the device that in the Internet QoS granularity and the precision of the network equipment are carried out automatic test.
Background technology
In traditional I P network; All messages are all treated by nondistinctive being equal to; Each router all adopts the strategy of FIFO (FIFO) to handle to all messages; It do one's best (Best-Effort) message is delivered to the destination, but performances such as the reliability that message is transmitted, propagation delay do not provide any assurance.
Network development is maked rapid progress; Along with new continuous appearance of using on the IP network, new requirement has also been proposed for the service quality of IP network, for example VoIP (Voice over IP; Ip voice) etc. real time business has just proposed high requirement to the transmission delay of message; 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 and insensitive).Business such as voice, video and data in order to support to have different demands for services require network can distinguish different communication, and then corresponding service are provided for it.
The various traffic categorys in the network can not discerned 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, and the best effort pattern of legacy network can not satisfy the needs of application thus.The appearance of QoS (Quality of Service, service quality) technology just is devoted to address this problem.
QoS is intended to the different demands to various application, for it provides different service quality, for example: dedicated bandwidth is provided, reduces the message dropping rate, reduces message transfer delay and time delay shake etc.For realizing above-mentioned purpose, 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 commonly used among the 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; It can automation granularity and precision to Devices to test test; And can cross-platform testing equipment to different vendor, with the utilance that improves test resource and the extensibility of test case.
For realizing above-mentioned purpose, the present invention proposes following technical scheme: the automated testing method of a kind of QoS granularity and precision may further comprise the steps:
Step 1, Devices to test and tester are carried out initialization QoS configuration respectively;
Step 2, testing graininess block configuration equipment to be tested and recording configuration value compare the actual grain size output valve of this Configuration Values and tester, and obtain granularity through the adjustment Configuration Values;
Step 3, accuracy test module read said granularity, and according to the precision Configuration Values of said granularity configuration Devices to test, and compare record with the real output value of tester;
Step 4, interpretation of result logging modle write down the data that produce in the test process, and data are analyzed output.
Further, in the said step 2, adjust the granularity that device configuration values obtains equipment through two fens algorithms.
In the said step 2,, adopt when said Configuration Values during greater than tester actual grain size output valve:
Y=Y-(Y-X)/2
Adjust this Configuration Values, wherein: Y is this Configuration Values, and X is last Configuration Values.
When said Configuration Values during, adopt less than tester actual grain size output valve:
Y=Y+(Y-X)/2
Adjust this Configuration Values, wherein: Y is this Configuration Values, and X is last Configuration Values.
When said Configuration Values equaled the actual grain size output valve of tester, this Configuration Values was the equipment granularity line output of going forward side by side.
In the said step 3, said precision Configuration Values layoutprocedure is:
Generate the committed information rate tabulation according to importing long data packet kilsyth basalt and said granularity;
Read a packet long value, and according to the data flow of this packet long value configuration testing appearance, record tester output valve repeats aforesaid operations, for empty, then finishes test until the long data packet tabulation.
If the bag long list of said packet is not empty, then read said packet next committed information rate value and write down the corresponding actual test value of tester, all run through until all committed information rates.
The precision that writes down in the said interpretation of result logging modle is the ratio of the committed information rate actual test value 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 are used for Devices to test and tester are carried out initialization QoS configuration respectively;
The testing graininess module is used for the granularity of measuring equipment;
The accuracy test module is used to read said granularity, and according to the precision of this granularity measuring equipment;
The interpretation of result logging modle is used for writing down the data that test process produces, and data is analyzed output.
Wherein, said testing graininess module is passed through the Configuration Values and the tester actual grain size output valve of fetch equipment, and obtains granularity through two fens algorithm commissioning device Configuration Values.
Compared with prior art, the QoS granularity of the present invention's proposition and the automated testing method of precision and the beneficial effect of device have:
One, the collocation method of built-in a plurality of vendor equipment, and expansion interface is provided, can be to different testing equipments, extensibility is good;
Two, full-automatic test need not manual intervention, has avoided the great amount of manpower resource to do the work of repetition, has reduced the cost of test;
Three, support test result synchronous recording and Macro or mass analysis to export as the Excel file, visual pattern is conveniently filed test result;
Four, simplify test process, improved the utilance of test resource.
Description of 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 among Fig. 1 in the testing graininess module;
Fig. 3 is the flow chart that carries out accuracy test among Fig. 1 in the accuracy test module.
Embodiment
To combine accompanying drawing of the present invention below, the technical scheme in the preferred embodiment of the present invention will be carried out clear, complete description.
Shown in Figure 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 such as the switch of qos feature in network environment; Routers etc. carry out the automatic test of QoS granularity and precision; This testing apparatus comprise be provided with in the tester in test process, carry out the equipment and the tester configuration module S102 of exchanges data, testing graininess module S104, accuracy test module S106 with automatic test platform; Real-time results analytic record module S108, summarized results analytic record module S110.
Wherein, equipment and tester configuration module S102 are used for equipment to be tested and tester are carried out the QoS configuration, with the initialization test environment; Said testing graininess module S104 is used to read the Configuration Values of Devices to test; And this Configuration Values and tester real output value compared; And constantly adjust device configuration values through two fens algorithms, up to obtaining immediate value (being the QoS granularity of equipment) and passing to the accuracy test module.
Said accuracy test module S106 is used to read the granularity that testing graininess module S104 passes over, according to this granularity configuration Configuration Values of establishing to be measured, and with this Configuration Values and tester real output value and compare record.
Real-time results analytic record module S108 is used for all data of real time record testing graininess module S104 and accuracy test module S106 test process, and data are analyzed and outputed in the Excel file.
Summarized results analytic record module S110 is used for after all test modules are finished, all data of real-time results analytic record module S108 record being carried out Macro or mass analysis, and outputs in the 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:
At first carry 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, export test result to real-time results analytic record module S108 then, and analyze, and analysis result is exported by summarized results analytic record module S110.
The flow chart that Fig. 2 carries out the granularity test for testing graininess module of the present invention, its handling process is following:
1), tester and Devices to test are carried out initial configuration, and write down last Configuration Values X=0, this Configuration Values Y=2.
2), configuration device, write down current Configuration Values Y.
3), read test appearance actual grain size output valve Z.
4), judge whether Y equals Z, if equal, jump to the 5th the step, if be not equal to, jump to the 6th the step.
5), export Y as a result, end.
6), whether judge Y greater than Z, if greater than, jump to the 7th the step, if less than, jump to the 8th the step.
7), temporary variable TEMP=Y is set, current Configuration Values Y=Y-(Y-X)/2, last Configuration Values X=TEMP, jump to the 2nd the step.
8), temporary variable TEMP=Y is set, current Configuration Values Y=Y+ (Y-X)/2, last Configuration Values X=TEMP, jump to the 2nd the step.
The above-mentioned steps circulation is carried out, and is basic identical until the actual grain size output valve of Configuration Values and tester, and just the granularity of output configuration is given the 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 following:
1), tester and Devices to test are carried out initial configuration, and write down 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 the long data packet tabulation and pass over according to the 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 appearance, the overall budget long number X=X-1 of packet.
4), judge whether X equals 0, if equal, then finish test, if be not equal to, then jumped to for 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 equal, then jump to the 3rd the step, if be not equal to, then jump to the 7th the step.
7), the actual test value C of read test appearance.
8), A, B, C are analyzed computing accordingly, and the result is outputed to the Excel file.
The present invention can use the multiple network testing equipment to different vendor to QoS granularity and accuracy test method with device; Three-tier switch like Cisco, Huawei and Sheng Ke all can use; Simultaneously, 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; Yet those of ordinary skill in the art still maybe 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 is contained by the present patent application claim.

Claims (10)

1. the automated testing method of QoS granularity and precision is characterized in that may further comprise the steps:
Step 1, Devices to test and tester are carried out initialization QoS configuration respectively;
Step 2, testing graininess block configuration equipment to be tested and recording configuration value compare the real output value of this Configuration Values and tester, and obtain granularity through the adjustment Configuration Values;
Step 3, accuracy test module read said granularity, and according to the precision Configuration Values of said granularity configuration Devices to test, and compare record with the real output value of tester;
Step 4, interpretation of result logging modle write down the data that produce in the test process, and data are analyzed output.
2. method according to claim 1 is characterized in that: in the said step 2, adjust the granularity that device configuration values obtains equipment through two fens algorithms.
3. method according to claim 1 and 2 is characterized in that: in the said step 2, when said Configuration Values during greater than tester actual grain size output valve, adopt:
Y=Y-(Y-X)/2
Adjust this Configuration Values, wherein: Y is this Configuration Values, and X is last Configuration Values.
4. method according to claim 1 and 2 is characterized in that:: in the said step 2,, adopt when said Configuration Values during less than tester actual grain size output valve:
Y=Y+(Y-X)/2
Adjust this Configuration Values, wherein: Y is this Configuration Values, and X is last Configuration Values.
5. method according to claim 1 and 2 is characterized in that:: in the said step 2, when said Configuration Values equaled the actual grain size output valve of tester, this Configuration Values was the equipment granularity line output of going forward side by side.
6. method according to claim 1 is characterized in that: in the said step 3, said precision Configuration Values layoutprocedure is:
Generate the committed information rate tabulation according to importing data packet length tabulation and said granularity;
Read a packet long value, and according to the data flow of this packet long value configuration testing appearance, record tester output valve repeats aforesaid operations, for empty, then finishes test until the long data packet tabulation.
7. method according to claim 6; It is characterized in that: if the bag long list of said packet is not for empty; Then read said packet next committed information rate value and write down the corresponding actual test value of tester, all run through until all committed information rates.
8. method according to claim 6 is characterized in that: the precision that writes down in the said interpretation of result logging modle is the ratio of the committed information rate actual test value corresponding with tester.
9. the automatic test device of QoS granularity and precision is characterized in that comprising:
Equipment and tester configuration module are used for Devices to test and tester are carried out initialization QoS configuration respectively;
The testing graininess module is used for the granularity of measuring equipment;
The accuracy test module is used to read said granularity, and according to the precision of this granularity measuring equipment;
The interpretation of result logging modle is used for writing down the data that test process produces, and data is analyzed output.
10. device according to claim 9 is characterized in that: said testing graininess module is passed through the Configuration Values and the tester actual grain size output valve of fetch equipment, and obtains granularity through two fens algorithm commissioning device Configuration Values.
CN201210309228.XA 2012-08-28 2012-08-28 Method and device for automatically testing quality of service (QoS) granularity and precision Active CN102801586B (en)

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 true CN102801586A (en) 2012-11-28
CN102801586B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
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
CN105721226A (en) * 2016-04-07 2016-06-29 烽火通信科技股份有限公司 QoS (Quality of Service) automatic test device and test method
US10216663B2 (en) 2016-12-30 2019-02-26 Nxp Usa, Inc. System and method for autonomous time-based debugging
US10496435B2 (en) 2016-12-08 2019-12-03 Nxp Usa, Inc. System and method for partitioning and managing timers in a virtualized system

Citations (1)

* Cited by examiner, † Cited by third party
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

Patent Citations (1)

* Cited by examiner, † Cited by third party
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

Cited By (6)

* Cited by examiner, † Cited by third party
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
CN105721226A (en) * 2016-04-07 2016-06-29 烽火通信科技股份有限公司 QoS (Quality of Service) automatic test device and test 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

Also Published As

Publication number Publication date
CN102801586B (en) 2014-11-05

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
CN101814977B (en) TCP flow on-line identification method and device utilizing head feature of data stream
CA2607603C (en) Distributed traffic analysis
US20120182891A1 (en) Packet analysis system and method using hadoop based parallel computation
US10237192B2 (en) Apparatus and system for optimizing communication networks
CN108667747A (en) The method, apparatus and computer readable storage medium of network flow application type identification
CN104980317A (en) Automatic test system and test method for dispatching data network equipment
CN102315974A (en) Stratification characteristic analysis-based method and apparatus thereof for on-line identification for TCP, UDP flows
CN108092856A (en) Network quality optimization method, system and electronic equipment based on SDN
US20210352516A1 (en) Estimating apparatus, system, method, and computer-readable medium, and learning apparatus, method, and computer-readable medium
CN114006829B (en) Method, network device and medium for synthesizing detection parameters based on historical data
CN112217725A (en) Delay optimization method based on edge calculation
CN108055167B (en) Application-oriented interface communication protocol modeling method and device
CN104734905A (en) Data flow detection method and device
CN106535240A (en) Mobile APP centralized performance analysis method based on cloud platform
CN109327356A (en) A kind of generation method and device of user's portrait
Oshiba et al. Robust available bandwidth estimation against dynamic behavior of packet scheduler in operational LTE networks
DE602004007948D1 (en) METHOD AND DEVICE FOR TRANSLATING DATA PACKAGES FROM ONE NETWORK PROTOCOL TO ANOTHER
WO2016078246A1 (en) Method and device for supporting diversified network data access, and terminal
CN110248379A (en) The performance test methods and device of base station in WLAN
CN105991367B (en) The method and system of dependence is communicated between a kind of measurement virtual machine
US20140092900A1 (en) Methods and apparatuses to split incoming data into sub-channels to allow parallel processing
CN106257867A (en) A kind of business recognition method encrypting flow and device
CN101631066A (en) Method and system for realizing terminal quality of service of internet voice transmission system

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.