CN105721226B - A kind of QoS automatic test device and test method - Google Patents
A kind of QoS automatic test device and test method Download PDFInfo
- Publication number
- CN105721226B CN105721226B CN201610214193.XA CN201610214193A CN105721226B CN 105721226 B CN105721226 B CN 105721226B CN 201610214193 A CN201610214193 A CN 201610214193A CN 105721226 B CN105721226 B CN 105721226B
- Authority
- CN
- China
- Prior art keywords
- test
- information
- result
- parameter information
- module
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0806—Configuration setting for initial configuration or provisioning, e.g. plug-and-play
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
- H04L43/0882—Utilisation of link capacity
Abstract
The invention discloses a kind of QoS automatic test device and test method, the QoS the field of test technology that is related in FPGA prototype verification.The configuration database of the test device is used to save the DUT configuration parameter information of setting and the test instrumentation configuration parameter information of setting;Control interface is issued to DUT for converting related command row for DUT configuration parameter information;Test instrumentation drive module is used to drive test instrumentation to generate driving source according to test instrumentation configuration parameter information;Packet reads the actual test result that statistical module is used to read the DUT that instrument returns after tested;Simulation process module calculates expected results for emulating the relevant various functions of QoS;Result treatment module obtains final testing result for actual test result to be compared with expected results.The present invention is able to achieve the QoS test of automation, shortens the testing time, improves testing efficiency, reduces error rate, reducing human cost, and is convenient for regression test.
Description
Technical field
The present invention relates to FPGA (Field Programmable Gate Array, field programmable gate array) prototypes to test
QoS (Quality of Service, service quality) the field of test technology in card is specifically a kind of QoS automation survey
Trial assembly is set and test method.
Background technique
In network service, QoS (service quality) include data transmission bandwidth, time delay, shake, data packet loss
Deng.QoS (service quality) the relevant technologies include that flow point class, traffic policing, traffic shaping, Limit Rate, congestion management, congestion are kept away
Exempt from.
Internet resources are always limited, simply by the presence of grab Internet resources the case where, just will appear to QoS (service quality)
Requirement.Network manager is needed according to Internet resources are reasonably planned and distributed the characteristics of various businesses, thus
Utilize Internet resources efficiently.Therefore, in the test of several obturator pieces, QoS (service quality) test is that an emphasis is surveyed
Try content.
Currently, the test method of QoS (service quality) is mainly tested by manually using manually.But carrying out QoS
It needs constantly dynamic modification configuration, modification to send the operation such as flow of data flow in (service quality) test, observes DUT in real time
The QoS (service quality) of (Device under test, equipment under test) is handled, if aforesaid operations all use manual test,
Test job amount is big, and repetition is more, higher for manpower requirements, and repetitive work is also easy to cause fault, and regression test is difficult
To realize.
Summary of the invention
In view of the deficiencies in the prior art, the technical problem to be solved in the present invention are as follows: how to realize the QoS of automation
Test shortens the testing time, improves testing efficiency, reduces error rate, reducing human cost, and is convenient for regression test.
In order to solve the above technical problems, the technical solution adopted by the present invention is that: a kind of QoS automatic test device is provided,
The test device carry out QoS automatic test when, connect respectively with equipment under test DUT, test instrumentation, DUT also with test instrumentation
It is connected;The test device includes that configuration database, test instrumentation drive module, packet read statistical module, control interface, at emulation
Manage module and result treatment module;The configuration database, test instrumentation drive module, packet read statistical module, result treatment
Module is sequentially connected, and the simulation process module is connected with configuration database, result treatment module respectively, the control interface with
Configuration database is connected;
The configuration database is used for: saving the DUT configuration parameter information of setting and the test instrumentation configuration parameter of setting
Information;
The control interface is used for: converting related command for the DUT configuration parameter information stored in configuration database
Row is issued to DUT;
The test instrumentation drive module is used for: according to the test instrumentation configuration parameter information in configuration database, driving
Test instrumentation generates driving source;
The packet reads statistical module and is used for: after test instrumentation generates driving source, reading the DUT that instrument returns after tested
Actual test as a result, and the actual test result read is sent to result treatment module;
The simulation process module is used for: the relevant various functions of emulation QoS;And according to DUT configuration parameter information, calculate
The simulation process result of DUT out;The simulation process result being calculated is sent to result treatment module as expected results;
The result treatment module is used for: packet is read the actual test result and simulation process module that statistical module is sent
The expected results sent are compared, and obtain final testing result and save.
Based on the above technical solution, the DUT configuration parameter information includes that traffic policing parameter information, flow are whole
Driving source parameter information needed for shape parameter information, congestion management parameter information and test case;The test instrumentation configuration ginseng
Number information includes the discharge model information of test instrumentation.
Based on the above technical solution, it includes: to flow that the packet, which reads the actual test result that statistical module is read,
It measures in transmission process, the transmission rate of the data flow read in real time, receiving velocity;After flow sends stopping, the data of reading
The transmission number-of-packet of stream, received data packet number, discarded packets number and data transmission wrong packet status information, out-of-order state letter
Breath, retransmission state information.
Based on the above technical solution, which further includes result output interface, the result output interface
For exporting the final testing result of result treatment module preservation.
The present invention also provides a kind of QoS automated testing methods based on above-mentioned test device, comprising the following steps:
Step S1: setting DUT configuration parameter information and test instrumentation configuration parameter information, and it is stored in configuration database
In, it is transferred to step S2;
Step S2: related command is converted for the DUT configuration parameter information stored in configuration database by control interface
Row is issued to DUT, is transferred to step S3;
Step S3: test instrumentation drive module is driven according to the test instrumentation configuration parameter information stored in configuration database
Dynamic test instrumentation generates driving source, is transferred to step S4;
Step S4: simulation process modular simulation QoS relevant various functions, calculate DUT simulation process result;By the knot
Fruit is sent to result treatment module as expected results, is transferred to step S5;
Step S5: packet reads statistical module and reads the actual test for the DUT that instrument returns after tested as a result, and by the result
It is sent to result treatment module;Packet is read the actual test result and simulation process mould that statistical module is sent by result treatment module
The expected results that block is sent are compared, and obtain final testing result and save.
Based on the above technical solution, the DUT configuration parameter information includes that traffic policing parameter information, flow are whole
Driving source parameter information needed for shape parameter information, congestion management parameter information and test case;The test instrumentation configuration ginseng
Number information includes the discharge model information of test instrumentation.
Based on the above technical solution, the relevant various functions of simulation process modular simulation QoS described in step S4,
DUT simulation process is calculated as a result, specifically including following operation:
Step S401: simulation process module is joined from the traffic policing read in DUT configuration parameter information in configuration database
Driving source parameter information needed for number information, test case and the discharge model information in test instrumentation configuration parameter information;Root
The emulation of tactful monitoring function, the input of the emulation are carried out according to driving source parameter information needed for test case and discharge model information
Flow information is determined by discharge model information;In simulation process, according to traffic policing parameter information, calculates and obtain every circulation
The flow information exported after inflow-rate of water turbine supervision, is transferred to step S402;
Step S402: simulation process module is joined from the traffic shaping read in DUT configuration parameter information in configuration database
In driving source parameter information needed for number information, congestion management parameter information, test case and test instrumentation configuration parameter information
Discharge model information;The driving source parameter information according to needed for test case and discharge model information carry out traffic shaping and congestion
The input flow rate information of the emulation of management function, the emulation is determined by the flow information of the output calculated in step S401;Imitative
During true, according to traffic shaping parameter information, congestion management parameter information, it is calculated at every final DUT emulation of stream
Manage result.
Based on the above technical solution, it includes: to flow that the packet, which reads the actual test result that statistical module is read,
It measures in transmission process, the transmission rate of the data flow read in real time, receiving velocity;After flow sends stopping, the data of reading
The transmission number-of-packet of stream, received data packet number, discarded packets number and data transmission wrong packet status information, out-of-order state letter
Breath, retransmission state information.
Based on the above technical solution, step S5 specifically includes following operation:
Step S501: in flow transmission process, packet reads the reception that statistical module reads 1 data stream from test instrumentation
Rate, and it is sent to result treatment module;Result treatment module judges whether the receiving velocity is not inconsistent and error with expected results
Not within the scope of the acceptable accuracy of setting, if so, being transferred to step S502;Otherwise, continue to judge next data stream, return to step
Rapid S501;
Step S502: data traffic stops after sending, and packet reads the received data packet that statistical module reads the data stream
Number and transmission number-of-packet, are calculated mean received rate, and be sent to result treatment module;The judgement of result treatment module should
Whether the mean received rate of data stream is not inconsistent with expected results, if so, continuing to judge next number after misregistration information
According to stream, return step S501;Otherwise, it is transferred to step S503;
Step S503: packet reads statistical module and reads the wrong packet status information that instrument returns after tested, and is sent to result
Processing module;Whether result treatment module misdeems in packet status information prbs payload filling information mistake or fcs
Check errors information, if so, continuing to judge next data stream, return step S501 after misregistration information;Otherwise, it is transferred to
Step S504;
Step S504: packet reads statistical module and reads the out-of-order status information that instrument returns after tested, and is sent to result
Processing module;Result treatment module judge in out-of-order status information whether wrong false information, if so, after misregistration information, after
It is continuous to judge next data stream, return step S501;Otherwise, it is transferred to step S505;
Step S505: packet reads statistical module and reads the retransmission state information that instrument returns after tested, and is sent to result
Processing module;Result treatment module judge in retransmission state information whether wrong false information, if so, after misregistration information, after
It is continuous to judge next data stream, return step S501;Otherwise, it is transferred to step S506;
Step S506: result treatment module judges whether the data stream is the last item data flow, if so, will finally survey
Test result saves, and step S5 terminates;Otherwise, continue to judge next data stream, return step S501.
Based on the above technical solution, further comprising the steps of after step S5: output result treatment module saves
Final testing result.
The beneficial effects of the present invention are:
The present invention provides the test device and method of a kind of automation for the QoS test in number obturator built-in testing.The dress
It has centered packet and has read statistical module, simulation process module and result treatment module, wherein packet reads statistical module and can read
The actual test result for the DUT that test instrumentation of learning from else's experience returns;Simulation process module being capable of the relevant every function of automatic simulation QoS
Can, and according to DUT configuration parameter information, calculate the simulation process result of DUT (as expected results);Result treatment module energy
Packet is read the expected results that the actual test result that statistical module is sent is sent with simulation process module to be compared, and
It obtains final testing result and feeds back to tester (or user).
Compared with prior art, the present invention is able to achieve the QoS test of automation, liberates people by automated testing method
Power automates cumbersome test assignment, improves testing efficiency, shortens the testing time, to improve test accuracy and test
The enthusiasm of personnel, and large-scale regression test can be carried out, there is reproducibility, it can be thoroughly by measuring technology personnel from repeatedly
Work in free, allow to put into more energy to designing in better test case.
Detailed description of the invention
Fig. 1 is the application scenarios schematic diagram of QoS automatic test device in the embodiment of the present invention;
Fig. 2 is the structural block diagram of QoS automatic test device in the embodiment of the present invention;
Fig. 3 is the flow chart of QoS automated testing method in the embodiment of the present invention;
Fig. 4 is the specific flow chart that simulation process module realizes emulation QoS various functions;
Fig. 5 is the specific flow chart of step S5.
Specific embodiment
With reference to the accompanying drawing and specific embodiment the present invention is described in further detail.
Shown in Figure 1, the embodiment of the present invention provides a kind of QoS automatic test device, which carries out QoS certainly
Dynamicization test when, connect respectively with equipment under test DUT, test instrumentation (data transmitter-receiver set), equipment under test DUT also with tester
Table connection.Wherein, the test instrumentation is used under the driving of test device, generates driving source, and receives DUT treated number
According to packet, the attribute of data flow is analyzed.The test device is used to issue DUT configuration parameter information to DUT, and receives returning for DUT
It writes in reply and ceases;Driving test instrumentation is given out a contract for a project, the practical received traffic flow information of read test instrument;Emulate the relevant every function of QoS
Can, expected results are calculated according to DUT configuration parameter information, by expected results and the received traffic flow information ratio of test instrumentation
It is right, analyze the operation result of test case, and the result judgement final to user.
Shown in Figure 2, which includes configuration database, test instrumentation drive module, packet reading
Statistical module, control interface, simulation process module, result treatment module and result output interface;Wherein, the configuration data
Library, test instrumentation drive module, packet read statistical module, result treatment module, result output interface and are sequentially connected, the emulation
Processing module is connected with configuration database, result treatment module respectively, and the control interface is connected with configuration database.
The configuration database is used for: saving the DUT configuration parameter information of setting and the test instrumentation configuration parameter of setting
Information.Wherein, the DUT configuration parameter information includes but is not limited to: traffic policing parameter information, traffic shaping parameter information,
Driving source parameter information needed for congestion management parameter information and test case;The test instrumentation configuration parameter information include but
It is not limited to the discharge model information of test instrumentation.
Specifically, traffic policing parameter information includes but is not limited to: the leaky bucket speed limit mode (single speed that rfc2697 is defined
The modified dual rate three that a two rate three color marker mode that rate tricolor marker mode, rfc2698 are defined, rfc4115 are defined
Color marker mode), leaky bucket committed information rate (CIR), the peak information rate (PIR), Committed Burst Size of traffic policing
(CBS), peak burst size (PBS), the quick mark (Color Mode) of colour blindness color, and the spy under modified trTCM mode
Some couplings identify (Coupling Flag).Traffic shaping parameter information includes but is not limited to: the leaky bucket of shapings at different levels promises to undertake letter
Cease rate (CIR), peak information rate (PIR), Committed Burst Size (CBS), peak burst size (PBS).Congestion management ginseng
Number information includes but is not limited to: queue priority, scheduling method, queue weight.Driving source parameter needed for test case include but
It is not limited to: the boundary condition of DUT, maximum conditions.
The control interface is used for: converting related command for the DUT configuration parameter information stored in configuration database
Row is issued to DUT.
The test instrumentation drive module is used for: according to the test instrumentation configuration parameter information in configuration database, driving
Test instrumentation generates driving source.
The packet reads statistical module and is used for: after test instrumentation generates driving source, reading the DUT that instrument returns after tested
Actual test as a result, and the actual test result read is sent to result treatment module.
Specifically, it includes: in flow transmission process, in fact that the packet, which reads the actual test result that statistical module is read,
When read the transmission rate of data flow, receiving velocity;After flow sends stopping, the transmission number-of-packet of the data flow of reading
TotalTxPktCnt, received data packet number TotalRxPktCnt, discarded packets number and data transmission wrong packet status information,
Out-of-order status information, retransmission state information.
The simulation process module is used for: the relevant various functions of emulation QoS;And according to DUT configuration parameter information, calculate
The simulation process result of DUT out;It is sent to result treatment module using the simulation process result being calculated as expected results, is used
It compares in final actual test result.
The result treatment module is used for: packet is read the actual test result and simulation process module that statistical module is sent
The expected results sent are compared, and obtain final testing result;By final testing result according to test case title into
Row saves.
The result output interface is used for: the final testing result that output result treatment module saves.
Shown in Figure 3, the embodiment of the present invention also provides a kind of automatic test side QoS based on above-mentioned test device
Method, comprising the following steps:
Step S1: setting DUT configuration parameter information and test instrumentation configuration parameter information, and it is stored in configuration database
In, it is transferred to step S2;
It is understood that being according to set DUT configuration parameter information when setting test instrumentation configuration parameter information
It is configured, that is to say, that the setting of DUT configuration parameter information is first carried out, then according to the DUT configuration parameter letter being arranged
Breath carries out the setting of test instrumentation configuration parameter;
Step S2: related command is converted for the DUT configuration parameter information stored in configuration database by control interface
Row is issued to DUT, is transferred to step S3;
Step S3: test instrumentation drive module is driven according to the test instrumentation configuration parameter information stored in configuration database
Dynamic test instrumentation generates driving source, is transferred to step S4;
Step S4: simulation process modular simulation QoS relevant various functions, calculate DUT simulation process result;By the knot
Fruit is sent to result treatment module as expected results, is transferred to step S5;
Step S5: packet reads statistical module and reads the actual test for the DUT that instrument returns after tested as a result, and by the result
It is sent to result treatment module;Packet is read the actual test result and simulation process mould that statistical module is sent by result treatment module
The expected results that block is sent are compared, and obtain final testing result and save, and are transferred to step S6;
Step S6: the final testing result that result treatment module saves is exported by result output interface, is terminated.
It is shown in Figure 4 when practical operation, the relevant various functions of simulation process modular simulation QoS described in step S4,
DUT simulation process is calculated as a result, specifically including following operation:
Step S401: Simulation Strategy monitoring function: simulation process module reads DUT configuration parameter letter from configuration database
In driving source parameter information needed for traffic policing parameter information, test case in breath and test instrumentation configuration parameter information
Discharge model information;The driving source parameter information according to needed for test case and discharge model information carry out tactful monitoring function
Emulation, the input flow rate information of the emulation are determined by discharge model information;In simulation process, according to traffic policing parameter information
(the leaky bucket committed information rate of leaky bucket speed limit mode, the quick mark of colour blindness color and traffic policing, peak information rate etc.), meter
The flow information for obtaining and being exported after every circulation inflow-rate of water turbine supervision is calculated, step S402 is transferred to;
Step S402: simulating traffic shaping and congestion management feature: simulation process module reads DUT from configuration database
Driving source parameter information needed for traffic shaping parameter information, congestion management parameter information, test case in configuration parameter information,
And the discharge model information in test instrumentation configuration parameter information;Driving source parameter information and flow according to needed for test case
Model information carries out the emulation of traffic shaping and congestion management feature, and the input flow rate information of the emulation in step S401 by calculating
Output flow information determine;In simulation process, according to traffic shaping parameter information (the leaky bucket commitment information of shapings at different levels
Rate, peak information rate etc.), congestion management parameter information (queue priority, scheduling method, queue weight etc.), calculate
To every final DUT simulation process of stream as a result, including the data stream reception rate of emulation in the DUT simulation process result and imitative
Genuine mean received rate.
On this basis, shown in Figure 5, step S5 specifically includes following operation:
Step S501: in flow transmission process, packet reads the reception that statistical module reads 1 data stream from test instrumentation
Rate, and it is sent to result treatment module;Result treatment module judge the receiving velocity whether with the expected results (data of emulation
Stream receiving velocity) it is not inconsistent and error is not within the scope of the acceptable accuracy of setting, if so, being transferred to step S502;Otherwise, continue to sentence
Break next data stream, return step S501.
It is understood that being from the 1st when reading receiving velocity of the statistical module from test instrumentation 1 data stream of reading
What data stream started to have read.
Step S502: data traffic stops after sending, and packet reads the received data packet that statistical module reads the data stream
Number TotalRxPktCnt and transmission number-of-packet TotalTxPktCnt, is calculated mean received rate, and be sent to result
Processing module;Result treatment module judge the data stream mean received rate whether with expected results (being averaged for emulation connects
Receive rate) it is not inconsistent, if so, continuing to judge next data stream, return step S501 after misregistration information;Otherwise, show
The mean received rate of the data stream meets the requirements, but shake is larger, is transferred to step S503.
Step S503: packet reads statistical module and reads the wrong packet status information that instrument returns after tested, and is sent to result
Processing module;Whether result treatment module misdeems in packet status information prbs (Pseudo-Random Binary
Sequence, pseudo-random binary sequence) payload (payload) filling information mistake or fcs (Frame Check
Sequence, frame check sequence) check errors information, if so, continuing to judge next data stream, returning after misregistration information
Return step S501;Otherwise, it is transferred to step S504.
Step S504: packet reads statistical module and reads the out-of-order status information that instrument returns after tested, and is sent to result
Processing module;Result treatment module judge in out-of-order status information whether wrong false information, if so, after misregistration information, after
It is continuous to judge next data stream, return step S501;Otherwise, it is transferred to step S505.
Step S505: packet reads statistical module and reads the retransmission state information that instrument returns after tested, and is sent to result
Processing module;Result treatment module judge in retransmission state information whether wrong false information, if so, after misregistration information, after
It is continuous to judge next data stream, return step S501;Otherwise, it is transferred to step S506.
Step S506: result treatment module judges whether the data stream is the last item data flow, if so, will finally survey
Test result saves, and step S5 terminates;Otherwise, continue to judge next data stream, return step S501.
It is understood that during the test, can dynamically modify DUT configuration parameter information and test instrumentation configuration ginseng
Number information, is repeated in and executes step S4 and step S5, to reach dynamic test purpose.
The present invention is not limited to the above-described embodiments, for those skilled in the art, is not departing from
Under the premise of the principle of the invention, several improvements and modifications can also be made, these improvements and modifications are also considered as protection of the invention
Within the scope of.The content being not described in detail in this specification belongs to the prior art well known to professional and technical personnel in the field.
Claims (9)
1. a kind of QoS automatic test device, when which carries out QoS automatic test, respectively with equipment under test DUT,
Test instrumentation connection, DUT are also connected with test instrumentation, it is characterised in that: the test device includes configuration database, test instrumentation
Drive module, packet read statistical module, control interface, simulation process module and result treatment module;The configuration database, survey
Examination instrument drive module, packet read statistical module, result treatment module and are sequentially connected, the simulation process module respectively with configuration
Database, result treatment module are connected, and the control interface is connected with configuration database;
The configuration database is used for: saving the DUT configuration parameter information of setting and the test instrumentation configuration parameter information of setting;
The control interface is used for: converting the DUT configuration parameter information stored in configuration database under related command row
It is sent to DUT;
The test instrumentation drive module is used for: according to the test instrumentation configuration parameter information in configuration database, driving test
Instrument generates driving source;
The packet reads statistical module and is used for: after test instrumentation generates driving source, reading the reality for the DUT that instrument returns after tested
Border test result, and the actual test result read is sent to result treatment module;
The simulation process module is used for: the relevant various functions of emulation QoS;And according to DUT configuration parameter information, calculate
The simulation process result of DUT;The simulation process result being calculated is sent to result treatment module as expected results;
The result treatment module is used for: packet being read the actual test result that statistical module is sent and is sent with simulation process module
Expected results be compared, obtain final testing result and save;
The DUT configuration parameter information includes traffic policing parameter information, traffic shaping parameter information, congestion management parameter information
And driving source parameter information needed for test case;The test instrumentation configuration parameter information includes the discharge model of test instrumentation
Information.
2. QoS automatic test device as described in claim 1, it is characterised in that: the packet reads what statistical module was read
Actual test result includes: the transmission rate of the data flow in flow transmission process, read in real time, receiving velocity;In flow
Send after stopping, the transmission number-of-packet of the data flow of reading, received data packet number, discarded packets number and data transmission mistake
Packet status information, out-of-order status information, retransmission state information.
3. the QoS automatic test device as described in any one of claims 1 to 2, it is characterised in that: the test device is also wrapped
Result output interface is included, the result output interface is used to export the final testing result of result treatment module preservation.
4. a kind of QoS automated testing method based on test device described in claim 1, which is characterized in that including following step
It is rapid:
Step S1: setting DUT configuration parameter information and test instrumentation configuration parameter information, and be stored in configuration database, turn
Enter step S2;
Step S2: it is converted the DUT configuration parameter information stored in configuration database under related command row by control interface
It is sent to DUT, is transferred to step S3;
Step S3: test instrumentation drive module is surveyed according to the test instrumentation configuration parameter information stored in configuration database, driving
It tries instrument and generates driving source, be transferred to step S4;
Step S4: simulation process modular simulation QOS relevant various functions, calculate DUT simulation process result;The result is made
It is sent to result treatment module for expected results, is transferred to step S5;
Step S5: packet reads statistical module and reads the actual test for the DUT that instrument returns after tested as a result, and sending the result
To result treatment module;Packet is read the actual test result and simulation process module hair that statistical module is sent by result treatment module
The expected results come are compared, and obtain final testing result and save.
5. QoS automated testing method as claimed in claim 4, it is characterised in that: the DUT configuration parameter information includes stream
Driving source parameter needed for amount policing parameters information, traffic shaping parameter information, congestion management parameter information and test case is believed
Breath;The test instrumentation configuration parameter information includes the discharge model information of test instrumentation.
6. QoS automated testing method as claimed in claim 5, it is characterised in that: simulation process module described in step S4
The relevant various functions of QoS are emulated, calculate DUT simulation process as a result, specifically including following operation:
Step S401: simulation process module is believed from the traffic policing parameter read in DUT configuration parameter information in configuration database
Driving source parameter information needed for breath, test case and the discharge model information in test instrumentation configuration parameter information;According to survey
Driving source parameter information needed for example on probation and discharge model information carry out the emulation of tactful monitoring function, the input flow rate of the emulation
Information is determined by discharge model information;In simulation process, according to traffic policing parameter information, calculates and obtain every circulation overcurrent
The flow information exported after amount supervision, is transferred to step S402;
Step S402: simulation process module is believed from the traffic shaping parameter read in DUT configuration parameter information in configuration database
Driving source parameter information needed for breath, congestion management parameter information, test case and the stream in test instrumentation configuration parameter information
Measure model information;The driving source parameter information according to needed for test case and discharge model information carry out traffic shaping and congestion management
The input flow rate information of the emulation of function, the emulation is determined by the flow information of the output calculated in step S401;It was emulating
Every final DUT simulation process knot of stream is calculated according to traffic shaping parameter information, congestion management parameter information in Cheng Zhong
Fruit.
7. QoS automated testing method as claimed in claim 4, it is characterised in that: the packet reads what statistical module was read
Actual test result includes: the transmission rate of the data flow in flow transmission process, read in real time, receiving velocity;In flow
Send after stopping, the transmission number-of-packet of the data flow of reading, received data packet number, discarded packets number and data transmission mistake
Packet status information, out-of-order status information, retransmission state information.
8. QoS automated testing method as claimed in claim 7, which is characterized in that step S5 specifically includes following operation:
Step S501: in flow transmission process, packet reads the reception speed that statistical module reads 1 data stream from test instrumentation
Rate, and it is sent to result treatment module;Result treatment module judge the receiving velocity whether be not inconsistent with expected results and error not
Within the scope of the acceptable accuracy of setting, if so, being transferred to step S502;Otherwise, continue to judge next data stream, return step
S501;
Step S502: data traffic stop send after, packet read statistical module read the data stream received data packet number and
Number-of-packet is sent, mean received rate is calculated, and be sent to result treatment module;Result treatment module judges this number
Whether it is not inconsistent with expected results according to the mean received rate of stream, if so, continuing to judge next data after misregistration information
Stream, return step S501;Otherwise, it is transferred to step S503;
Step S503: packet reads statistical module and reads the wrong packet status information that instrument returns after tested, and is sent to result treatment
Module;Whether result treatment module misdeems in packet status information prbs payload filling information mistake or fcs verification
Error message, if so, continuing to judge next data stream, return step S501 after misregistration information;Otherwise, it is transferred to step
S504;
Step S504: packet reads statistical module and reads the out-of-order status information that instrument returns after tested, and is sent to result treatment
Module;Result treatment module judge in out-of-order status information whether wrong false information, if so, continuing to sentence after misregistration information
Break next data stream, return step S501;Otherwise, it is transferred to step S505;
Step S505: packet reads statistical module and reads the retransmission state information that instrument returns after tested, and is sent to result treatment
Module;Result treatment module judge in retransmission state information whether wrong false information, if so, continuing to sentence after misregistration information
Break next data stream, return step S501;Otherwise, it is transferred to step S506;
Step S506: result treatment module judges whether the data stream is the last item data flow, if so, by final test knot
Fruit saves, and step S5 terminates;Otherwise, continue to judge next data stream, return step S501.
9. the method for the emulation bus effective bandwidth based on token bucket as described in any one of claim 4 to 8, feature exist
In: it is further comprising the steps of after step S5: the final testing result that output result treatment module saves.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610214193.XA CN105721226B (en) | 2016-04-07 | 2016-04-07 | A kind of QoS automatic test device and test method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610214193.XA CN105721226B (en) | 2016-04-07 | 2016-04-07 | A kind of QoS automatic test device and test method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105721226A CN105721226A (en) | 2016-06-29 |
CN105721226B true CN105721226B (en) | 2019-04-02 |
Family
ID=56159752
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610214193.XA Active CN105721226B (en) | 2016-04-07 | 2016-04-07 | A kind of QoS automatic test device and test method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105721226B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107977519A (en) * | 2017-12-07 | 2018-05-01 | 郑州云海信息技术有限公司 | A kind of automation error-detection mechanism of high speed interconnecting interface |
CN113010432B (en) * | 2021-03-31 | 2023-09-12 | 上海天旦网络科技发展有限公司 | White box simulation test method and system based on flow time sequence playback |
CN116633791B (en) * | 2023-07-26 | 2023-09-26 | 常州楠菲微电子有限公司 | Bandwidth detection method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1512717A (en) * | 2002-12-28 | 2004-07-14 | 鸿富锦精密工业(深圳)有限公司 | Network test equipment system and method |
CN1688135A (en) * | 2005-05-13 | 2005-10-26 | 清华大学 | Flow receiving taking and statistic circuit assembly for 10G network performance tester |
CN102801586A (en) * | 2012-08-28 | 2012-11-28 | 盛科网络(苏州)有限公司 | Method and device for automatically testing quality of service (QoS) granularity and precision |
CN103178996A (en) * | 2013-03-15 | 2013-06-26 | 烽火通信科技股份有限公司 | Distributed packet-switching chip model verification system and method |
CN105357036A (en) * | 2015-10-21 | 2016-02-24 | 盛科网络(苏州)有限公司 | Simulative object-oriented QoS (Quality of Service) verification model and method |
-
2016
- 2016-04-07 CN CN201610214193.XA patent/CN105721226B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1512717A (en) * | 2002-12-28 | 2004-07-14 | 鸿富锦精密工业(深圳)有限公司 | Network test equipment system and method |
CN1688135A (en) * | 2005-05-13 | 2005-10-26 | 清华大学 | Flow receiving taking and statistic circuit assembly for 10G network performance tester |
CN102801586A (en) * | 2012-08-28 | 2012-11-28 | 盛科网络(苏州)有限公司 | Method and device for automatically testing quality of service (QoS) granularity and precision |
CN103178996A (en) * | 2013-03-15 | 2013-06-26 | 烽火通信科技股份有限公司 | Distributed packet-switching chip model verification system and method |
CN105357036A (en) * | 2015-10-21 | 2016-02-24 | 盛科网络(苏州)有限公司 | Simulative object-oriented QoS (Quality of Service) verification model and method |
Also Published As
Publication number | Publication date |
---|---|
CN105721226A (en) | 2016-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105721226B (en) | A kind of QoS automatic test device and test method | |
CN107659434A (en) | A kind of automatic test approach of Devices to test, apparatus and system | |
CN106503308A (en) | A kind of CAN controller IP verification platform based on UVM | |
CN104253723B (en) | The method and device for the interchanger validation test realized based on software-hardware synergism | |
CN104536858B (en) | For the method for 1553B bus communication remote terminal automatic tests | |
CN100428252C (en) | System and method for testing and measuring percentage of coverage of function | |
CN106326056A (en) | Reusable WISHBONE bus protocol verification platform and verification method thereof | |
CN103235593A (en) | System and method for automatically testing main control hardware of fan on basis of PLC (Programmable Logic Controller) | |
CN108092854A (en) | The test method and device of train grade ethernet device based on IEC61375 agreements | |
CN106155950A (en) | Parameter processing method and device | |
CN109194551A (en) | A kind of real-time ethernet equipment performance test method, apparatus and system | |
CN105553885B (en) | A kind of FC interchanger priority test method | |
CN103716209B (en) | A kind of tunnel concurrent test system and equipment | |
CN105610641A (en) | Switch testing system and testing method based on semi-physical simulation | |
CN102291274B (en) | A kind of system and method realizing automatic adaptation of network testing instrument | |
CN105827476A (en) | High-speed PING implementation method and PING testing method | |
CN106656667B (en) | Test method, system and the control device of interchanger forwarding performance | |
CN108039961A (en) | A kind of apparatus and method for automatically configuring high speed serialization transceiver parameters | |
CN109617763B (en) | Pressure testing method and device for FC-AE bus | |
CN107770798A (en) | A kind of data analysing method and device | |
CN105974297B (en) | It is a kind of to realize the virtual test instrument and test method efficiently tested | |
CN107124241B (en) | A kind of system and method for Ieee1588 modular simulation in OTN | |
CN106777665A (en) | Improve the method and system of cooperating simulation platform verification efficiency | |
CN108270628B (en) | OPNET-based power system SDH communication transmission network simulation modeling method | |
CN105357036A (en) | Simulative object-oriented QoS (Quality of Service) verification model and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |