CN105721226A - QoS (Quality of Service) automatic test device and test method - Google Patents

QoS (Quality of Service) automatic test device and test method Download PDF

Info

Publication number
CN105721226A
CN105721226A CN201610214193.XA CN201610214193A CN105721226A CN 105721226 A CN105721226 A CN 105721226A CN 201610214193 A CN201610214193 A CN 201610214193A CN 105721226 A CN105721226 A CN 105721226A
Authority
CN
China
Prior art keywords
test
parameter information
result
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.)
Granted
Application number
CN201610214193.XA
Other languages
Chinese (zh)
Other versions
CN105721226B (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201610214193.XA priority Critical patent/CN105721226B/en
Publication of CN105721226A publication Critical patent/CN105721226A/en
Application granted granted Critical
Publication of CN105721226B publication Critical patent/CN105721226B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0882Utilisation of link capacity

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Environmental & Geological Engineering (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a QoS automatic test device and test method, and relates to the technical field of a QoS test in FPGA (Field Programmable Gate Array) prototype verification. The configuration database of the test device is used for storing set DUT (Device under test) configuration parameter information and set test instrument configuration parameter information; a control interface is used for converting the DUT configuration parameter information into related command lines; the related command lines are sent to a DUT; a test instrument drive module is used for driving a test instrument to generate an excitation source according to the test instrument configuration parameter information; a packet reading statistic module is used for reading actual test results of the DUT returned by the test instrument; a simulation processing module is used for simulating QoS related various functions and calculating expected results; and a result processing module is used for comparing and analyzing the actual test results and the expected results, thus obtaining the final test results. According to the device and the method, the automatic QoS test is realized; the test time is shortened; the test efficiency is improved; the error rate is reduced; the manpower cost is reduced; and the method and the device are convenient in realizing a regression test.

Description

A kind of QoS automatic test device and method of testing
Technical field
The present invention relates to FPGA (FieldProgrammableGateArray, field programmable gate array) QoS (QualityofService in prototype verification, service quality) specifically technical field of measurement and test is a kind of QoS automatic test device and method of testing.
Background technology
In Network, QoS (service quality) includes the packet loss etc. of the bandwidth of data transmission, time delay, shake, data.QoS (service quality) correlation technique includes flow point class, traffic policing, traffic shaping, Limit Rate, congestion management, Congestion Avoidance etc..
Internet resources are always limited, simply by the presence of the situation grabbing Internet resources, arise that the requirement to QoS (service quality).Network manager needs the feature according to miscellaneous service that Internet resources carry out reasonably planning and distribution, so that Internet resources are efficiently utilized.Therefore, in the test of several obturator sheets, QoS (service quality) test is a stress test content.
At present, the method for testing of QoS (service quality) is mainly performed manually by test by artificial employing.; need constantly dynamically to revise configuration in carrying out QoS (service quality) test, the flow etc. of amendment transmission data stream operates; Real Time Observation DUT (Deviceundertest; equipment under test) QoS (service quality) process, if aforesaid operations all adopts manual test, test job amount is big; repetition is many; higher for manpower requirements, repetitive work is also easily caused error, and regression test is difficult to.
Summary of the invention
For the defect existed in prior art, the technical problem to be solved in the present invention is: how to realize the QoS test of automatization, shortens the testing time, improves testing efficiency, reduces error rate, reduces human cost, and is easy to regression test.
For solving above technical problem, the present invention adopts the technical scheme that: providing a kind of QoS automatic test device, when this test device carries out QoS automatic test, be connected with equipment under test DUT, test instrumentation respectively, DUT is also connected with test instrumentation;This test device includes configuration database, test instrumentation drives module, bag reads statistical module, control interface, simulation process module and result treatment module;Described configuration database, test instrumentation drive module, bag reading statistical module, result treatment module to be sequentially connected, and described simulation process module is connected with configuration database, result treatment module respectively, and described control interface is connected with configuration database;
Described configuration database is used for: preserve the test instrumentation configuration parameter information of DUT configuration parameter information and the setting arranged;
Described control interface is used for: DUT configuration parameter information stored in configuration database is converted into related command row and is issued to DUT;
Described test instrumentation drives module to be used for: according to the test instrumentation configuration parameter information in configuration database, drives test instrumentation to produce driving source;
Described bag reads statistical module and is used for: after test instrumentation produces driving source, reads the actual test result of the DUT that instrument returns after tested, and sends the actual test result read to result treatment module;
Described simulation process module is used for: the various functions that emulation QoS is relevant;And according to DUT configuration parameter information, calculate the simulation process result of DUT;Calculated simulation process result is sent to result treatment module as expected results;
Described result treatment module is used for: the expected results that the actual test result sent by bag reading statistical module and simulation process module are sent compares, and obtains final testing result and preserves.
On the basis of technique scheme, described DUT configuration parameter information includes driving source parameter information needed for traffic policing parameter information, traffic shaping parameter information, congestion management parameter information and test case;Described test instrumentation configuration parameter information includes the discharge model information of test instrumentation.
On the basis of technique scheme, described bag reads the actual test result of statistical module reading and includes: in flow transmission process, the transmission rate of data stream of real-time reading, receiving velocity;After flow sends stopping, the transmission number-of-packet of the data stream of reading, reception number-of-packet, discarded packets number, and the wrong bag status information of data transmission, out of order status information, retransmission state information.
On the basis of technique scheme, this test device also includes result output interface, and described result output interface is for exporting the final testing result that result treatment module preserves.
The present invention also provides for a kind of QoS automated testing method based on above-mentioned test device, comprises the following steps:
Step S1: DUT configuration parameter information and test instrumentation configuration parameter information are set, and are saved in configuration database, proceed to step S2;
Step S2: by control interface, the DUT configuration parameter information stored in configuration database is converted into related command row and is issued to DUT, proceed to step S3;
Step S3: test instrumentation drives module according to the test instrumentation configuration parameter information of storage in configuration database, drives test instrumentation to produce driving source, proceeds to step S4;
Step S4: simulation process modular simulation QoS relevant various functions, calculates DUT simulation process result;This result is sent to result treatment module as expected results, proceeds to step S5;
Step S5: bag reads statistical module and reads the actual test result of the DUT that instrument returns after tested, and sends this result to result treatment module;The expected results that the actual test result that bag reading statistical module is sent by result treatment module and simulation process module are sent compares, and obtains final testing result and preserves.
On the basis of technique scheme, described DUT configuration parameter information includes driving source parameter information needed for traffic policing parameter information, traffic shaping parameter information, congestion management parameter information and test case;Described test instrumentation configuration parameter information includes the discharge model information of test instrumentation.
On the basis of technique scheme, the various functions that the QoS of simulation process modular simulation described in step S4 is relevant, calculate DUT simulation process result, specifically include following operation:
Step S401: simulation process module reads driving source parameter information needed for the traffic policing parameter information in DUT configuration parameter information, test case and the discharge model information in test instrumentation configuration parameter information from configuration database;Carry out the emulation of strategy monitoring function according to driving source parameter information needed for test case and discharge model information, the input flow rate information of this emulation is determined by discharge model information;In simulation process, according to traffic policing parameter information, calculate the flow information exported after obtaining every circulation inflow-rate of water turbine supervision, proceed to step S402;
Step S402: simulation process module reads driving source parameter information needed for the traffic shaping parameter information in DUT configuration parameter information, congestion management parameter information, test case and the discharge model information in test instrumentation configuration parameter information from configuration database;Carry out the emulation of traffic shaping and congestion management feature according to driving source parameter information needed for test case and discharge model information, the input flow rate information of this emulation is determined by the flow information of the output calculated in step S401;In simulation process, according to traffic shaping parameter information, congestion management parameter information, calculate and obtain every final DUT simulation process result of stream.
On the basis of technique scheme, described bag reads the actual test result of statistical module reading and includes: in flow transmission process, the transmission rate of data stream of real-time reading, receiving velocity;After flow sends stopping, the transmission number-of-packet of the data stream of reading, reception number-of-packet, discarded packets number, and the wrong bag status information of data transmission, out of order status information, retransmission state information.
On the basis of technique scheme, step S5 specifically includes following operation:
Step S501: in flow transmission process, bag reads statistical module and reads the receiving velocity of 1 data stream from test instrumentation, and sends to result treatment module;Result treatment module judges that whether this receiving velocity is not inconsistent with expected results and error is not within the scope of the acceptable accuracy arranged, and if so, proceeds to step S502;Otherwise, continue to judge next data stream, return step S501;
Step S502: after data traffic stopping sends, bag reads statistical module and reads reception number-of-packet and the transmission number-of-packet of this data stream, calculates mean received rate, and sends to result treatment module;Result treatment module judges whether the mean received rate of this data stream is not inconsistent with expected results, if so, after misregistration information, continues to judge next data stream, returns step S501;Otherwise, step S503 is proceeded to;
Step S503: bag reads statistical module and reads the wrong bag status information that instrument returns after tested, and sends to result treatment module;Result treatment module misdeems whether have prbspayload filling information mistake or fcs check errors information in bag status information, if so, after misregistration information, continues to judge next data stream, return step S501;Otherwise, step S504 is proceeded to;
Step S504: bag reads statistical module and reads the out of order status information that instrument returns after tested, and sends to result treatment module;Result treatment module judges in out of order status information whether wrong information if so, after misregistration information, to continue to judge next data stream, return step S501;Otherwise, step S505 is proceeded to;
Step S505: bag reads statistical module and reads the retransmission state information that instrument returns after tested, and sends to result treatment module;Result treatment module judges in retransmission state information whether wrong information if so, after misregistration information, to continue to judge next data stream, return step S501;Otherwise, step S506 is proceeded to;
Step S506: result treatment module judges whether this data stream is the last item data stream, if so, preserves final testing result, and step S5 terminates;Otherwise, continue to judge next data stream, return step S501.
On the basis of technique scheme, after step S5, further comprising the steps of: the final testing result that output result treatment module preserves.
The beneficial effects of the present invention is:
The present invention is the test apparatus and method that the QoS test in several obturator built-in testing provides a kind of automatization.Being provided with bag in this device and read statistical module, simulation process module and result treatment module, wherein, bag reads statistical module can read the actual test result of the DUT that instrument returns after tested;Simulation process module can be relevant for automatic simulation QoS various functions, and according to DUT configuration parameter information, calculate the simulation process result (as expected results) of DUT;Bag can be read the expected results that the actual test result that send of statistical module and simulation process module send and compare by result treatment module, and obtains final testing result and feed back to tester (or user).
Compared with prior art, the present invention can realize the QoS test of automatization, liberate manpower by automated testing method, by loaded down with trivial details test assignment automatization, improve testing efficiency, shorten the testing time, thus improving the enthusiasm of test accuracy and tester, and large-scale regression test can be carried out, there is reproducibility, thoroughly measuring technology personnel can be freed from the work repeated so that it is more energy can be put into designing in better test case.
Accompanying drawing explanation
Fig. 1 is the application scenarios schematic diagram of QoS automatic test device in the embodiment of the present invention;
Fig. 2 is the structured flowchart 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 particular flow sheet that simulation process module realizes emulation QoS various functions;
Fig. 5 is the particular flow sheet of step S5.
Detailed description of the invention
Below in conjunction with drawings and the specific embodiments, 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, when this test device carries out QoS automatic test, being connected with equipment under test DUT, test instrumentation (data source and sink) respectively, equipment under test DUT is also connected with test instrumentation.Wherein, described test instrumentation is for, under the driving of test device, producing driving source, and receive the packet after DUT processes, the attribute of analytical data stream.Described test device is for issuing DUT configuration parameter information to DUT, and receives the return information of DUT;Driving test instrumentation is given out a contract for a project, the traffic flow information of the actual reception of read test instrument;The various functions that emulation QoS is relevant, calculates expected results according to DUT configuration parameter information, the traffic flow information comparison received with test instrumentation by expected results, analyzes the operation result of test case, and the result giving user final judges.
Shown in Figure 2, this QoS automatic test device includes configuration database, test instrumentation drives module, bag reads statistical module, control interface, simulation process module, result treatment module and result output interface;Wherein, described configuration database, test instrumentation drive module, bag reading statistical module, result treatment module, result output interface to be sequentially connected, described simulation process module is connected with configuration database, result treatment module respectively, and described control interface is connected with configuration database.
Described configuration database is used for: preserve the test instrumentation configuration parameter information of DUT configuration parameter information and the setting arranged.Wherein, described DUT configuration parameter information includes but not limited to: driving source parameter information needed for traffic policing parameter information, traffic shaping parameter information, congestion management parameter information and test case;Described test instrumentation configuration parameter information includes but not limited to the discharge model information of test instrumentation.
Specifically, traffic policing parameter information includes but not limited to: leaky bucket speed limit pattern (the single-rate three-color marker pattern of rfc2697 definition, the a two rate three color marker pattern of rfc2698 definition, the modified a two rate three color marker pattern of rfc4115 definition), the leaky bucket committed information rate (CIR) of traffic policing, peak information rate (PIR), Committed Burst Size (CBS), peak burst size (PBS), the quick mark of achromatopsia color (ColorMode), and distinctive coupling identifies (CouplingFlag) under modifiedtrTCM pattern.Traffic shaping parameter information includes but not limited to: the leaky bucket committed information rate (CIR) of shapings at different levels, peak information rate (PIR), Committed Burst Size (CBS), peak burst size (PBS).Congestion management parameter information includes but not limited to: queue priority, scheduling method, queue weight.Needed for test case, driving source parameter includes but not limited to: the boundary condition of DUT, maximum conditions.
Described control interface is used for: DUT configuration parameter information stored in configuration database is converted into related command row and is issued to DUT.
Described test instrumentation drives module to be used for: according to the test instrumentation configuration parameter information in configuration database, drives test instrumentation to produce driving source.
Described bag reads statistical module and is used for: after test instrumentation produces driving source, reads the actual test result of the DUT that instrument returns after tested, and sends the actual test result read to result treatment module.
Specifically, described bag reads the actual test result of statistical module reading and includes: in flow transmission process, the transmission rate of data stream of real-time reading, receiving velocity;Flow sends after stopping, the transmission number-of-packet TotalTxPktCnt of the data stream of reading, reception number-of-packet TotalRxPktCnt, discarded packets number, and the wrong bag status information of data transmission, out of order status information, retransmission state information.
Described simulation process module is used for: the various functions that emulation QoS is relevant;And according to DUT configuration parameter information, calculate the simulation process result of DUT;Calculated simulation process result is sent to result treatment module as expected results, for comparing with final actual test result.
Described result treatment module is used for: the expected results that the actual test result sent by bag reading statistical module and simulation process module are sent compares, and obtains final testing result;Final testing result is preserved according to test case title.
Described result output interface is used for: the final testing result that output result treatment module preserves.
Shown in Figure 3, the embodiment of the present invention also provides for a kind of QoS automated testing method based on above-mentioned test device, comprises the following steps:
Step S1: DUT configuration parameter information and test instrumentation configuration parameter information are set, and are saved in configuration database, proceed to step S2;
It is understandable that, when test instrumentation configuration parameter information is set, it is be configured according to set DUT configuration parameter information, say, that, first carry out the setting of DUT configuration parameter information, then carry out the setting of test instrumentation configuration parameter according to the DUT configuration parameter information arranged;
Step S2: by control interface, the DUT configuration parameter information stored in configuration database is converted into related command row and is issued to DUT, proceed to step S3;
Step S3: test instrumentation drives module according to the test instrumentation configuration parameter information of storage in configuration database, drives test instrumentation to produce driving source, proceeds to step S4;
Step S4: simulation process modular simulation QoS relevant various functions, calculates DUT simulation process result;This result is sent to result treatment module as expected results, proceeds to step S5;
Step S5: bag reads statistical module and reads the actual test result of the DUT that instrument returns after tested, and sends this result to result treatment module;The expected results that the actual test result that bag reading statistical module is sent by result treatment module and simulation process module are sent compares, and obtains final testing result and preserves, proceeding to step S6;
Step S6: export the final testing result that result treatment module preserves by result output interface, terminates.
Various functions during practical operation, shown in Figure 4, that the QoS of simulation process modular simulation described in step S4 is relevant, calculates DUT simulation process result, specifically includes following operation:
Step S401: Simulation Strategy monitoring function: simulation process module reads driving source parameter information needed for the traffic policing parameter information in DUT configuration parameter information, test case and the discharge model information in test instrumentation configuration parameter information from configuration database;Carry out the emulation of strategy monitoring function according to driving source parameter information needed for test case and discharge model information, the input flow rate information of this emulation is determined by discharge model information;In simulation process, according to traffic policing parameter information (leaky bucket speed limit pattern, the quick mark of achromatopsia color, and the leaky bucket committed information rate of traffic policing, peak information rate etc.), calculate the flow information exported after obtaining every circulation inflow-rate of water turbine supervision, proceed to step S402;
Step S402: simulating traffic shaping and congestion management feature: simulation process module reads driving source parameter information needed for the traffic shaping parameter information in DUT configuration parameter information, congestion management parameter information, test case and the discharge model information in test instrumentation configuration parameter information from configuration database;Carry out the emulation of traffic shaping and congestion management feature according to driving source parameter information needed for test case and discharge model information, the input flow rate information of this emulation is determined by the flow information of the output calculated in step S401;In simulation process, according to traffic shaping parameter information (the leaky bucket committed information rate of shapings at different levels, peak information rate etc.), congestion management parameter information (queue priority, scheduling method, queue weight etc.), calculating and obtain every final DUT simulation process result of stream, this DUT simulation process result includes the data stream reception speed of emulation and the mean received rate of emulation.
On this basis, shown in Figure 5, step S5 specifically includes following operation:
Step S501: in flow transmission process, bag reads statistical module and reads the receiving velocity of 1 data stream from test instrumentation, and sends to result treatment module;Result treatment module judges that whether this receiving velocity is not inconsistent with expected results (the data stream reception speed of emulation) and error is not within the scope of the acceptable accuracy arranged, and if so, proceeds to step S502;Otherwise, continue to judge next data stream, return step S501.
It is understood that read statistical module when reading the receiving velocity of 1 data stream from test instrumentation, from the 1st data stream starts to read.
Step S502: after data traffic stopping sends, bag reads statistical module and reads the reception number-of-packet TotalRxPktCnt and transmission number-of-packet TotalTxPktCnt of this data stream, calculates mean received rate, and sends to result treatment module;Result treatment module judges whether the mean received rate of this data stream is not inconsistent with expected results (mean received rate of emulation), if so, after misregistration information, continues to judge next data stream, returns step S501;Otherwise, it was shown that the mean received rate of this data stream meets the requirements, but shake relatively big, proceed to step S503.
Step S503: bag reads statistical module and reads the wrong bag status information that instrument returns after tested, and sends to result treatment module;Result treatment module misdeems whether there is prbs (Pseudo-RandomBinarySequence in bag status information, pseudo-random binary sequence) payload (payload) filling information mistake or fcs (FrameCheckSequence, frame check sequence) check errors information, if, after misregistration information, continue to judge next data stream, return step S501;Otherwise, step S504 is proceeded to.
Step S504: bag reads statistical module and reads the out of order status information that instrument returns after tested, and sends to result treatment module;Result treatment module judges in out of order status information whether wrong information if so, after misregistration information, to continue to judge next data stream, return step S501;Otherwise, step S505 is proceeded to.
Step S505: bag reads statistical module and reads the retransmission state information that instrument returns after tested, and sends to result treatment module;Result treatment module judges in retransmission state information whether wrong information if so, after misregistration information, to continue to judge next data stream, return step S501;Otherwise, step S506 is proceeded to.
Step S506: result treatment module judges whether this data stream is the last item data stream, if so, preserves final testing result, and step S5 terminates;Otherwise, continue to judge next data stream, return step S501.
It is understood that in test process, it is possible to dynamically amendment DUT configuration parameter information and test instrumentation configuration parameter information, it is repeated in performing step S4 and step S5, to reach dynamic test purpose.
The present invention is not limited to above-mentioned embodiment, for those skilled in the art, under the premise without departing from the principles of the invention, it is also possible to make some improvements and modifications, and these improvements and modifications are also considered as within protection scope of the present invention.The content not being described in detail in this specification belongs to the known prior art of professional and technical personnel in the field.

Claims (10)

1. a QoS automatic test device, when this test device carries out QoS automatic test, it is connected with equipment under test DUT, test instrumentation respectively, DUT is also connected with test instrumentation, it is characterised in that: this test device includes configuration database, test instrumentation drives module, bag reads statistical module, control interface, simulation process module and result treatment module;Described configuration database, test instrumentation drive module, bag reading statistical module, result treatment module to be sequentially connected, and described simulation process module is connected with configuration database, result treatment module respectively, and described control interface is connected with configuration database;
Described configuration database is used for: preserve the test instrumentation configuration parameter information of DUT configuration parameter information and the setting arranged;
Described control interface is used for: DUT configuration parameter information stored in configuration database is converted into related command row and is issued to DUT;
Described test instrumentation drives module to be used for: according to the test instrumentation configuration parameter information in configuration database, drives test instrumentation to produce driving source;
Described bag reads statistical module and is used for: after test instrumentation produces driving source, reads the actual test result of the DUT that instrument returns after tested, and sends the actual test result read to result treatment module;
Described simulation process module is used for: the various functions that emulation QoS is relevant;And according to DUT configuration parameter information, calculate the simulation process result of DUT;Calculated simulation process result is sent to result treatment module as expected results;
Described result treatment module is used for: the expected results that the actual test result sent by bag reading statistical module and simulation process module are sent compares, and obtains final testing result and preserves.
2. QoS automatic test device as claimed in claim 1, it is characterised in that: described DUT configuration parameter information includes driving source parameter information needed for traffic policing parameter information, traffic shaping parameter information, congestion management parameter information and test case;Described test instrumentation configuration parameter information includes the discharge model information of test instrumentation.
3. QoS automatic test device as claimed in claim 1, it is characterised in that: described bag reads the actual test result that statistical module reads and includes: in flow transmission process, the transmission rate of data stream that reads in real time, receiving velocity;After flow sends stopping, the transmission number-of-packet of the data stream of reading, reception number-of-packet, discarded packets number, and the wrong bag status information of data transmission, out of order status information, retransmission state information.
4. QoS automatic test device as claimed any one in claims 1 to 3, it is characterised in that: this test device also includes result output interface, and described result output interface is for exporting the final testing result that result treatment module preserves.
5. one kind based on the QoS automated testing method testing device described in claim 1, it is characterised in that comprise the following steps:
Step S1: DUT configuration parameter information and test instrumentation configuration parameter information are set, and are saved in configuration database, proceed to step S2;
Step S2: by control interface, the DUT configuration parameter information stored in configuration database is converted into related command row and is issued to DUT, proceed to step S3;
Step S3: test instrumentation drives module according to the test instrumentation configuration parameter information of storage in configuration database, drives test instrumentation to produce driving source, proceeds to step S4;
Step S4: simulation process modular simulation QOS relevant various functions, calculates DUT simulation process result;This result is sent to result treatment module as expected results, proceeds to step S5;
Step S5: bag reads statistical module and reads the actual test result of the DUT that instrument returns after tested, and sends this result to result treatment module;The expected results that the actual test result that bag reading statistical module is sent by result treatment module and simulation process module are sent compares, and obtains final testing result and preserves.
6. QoS automated testing method as claimed in claim 5, it is characterised in that: described DUT configuration parameter information includes driving source parameter information needed for traffic policing parameter information, traffic shaping parameter information, congestion management parameter information and test case;Described test instrumentation configuration parameter information includes the discharge model information of test instrumentation.
7. QoS automated testing method as claimed in claim 6, it is characterised in that: the various functions that the QoS of simulation process modular simulation described in step S4 is relevant, calculate DUT simulation process result, specifically include following operation:
Step S401: simulation process module reads driving source parameter information needed for the traffic policing parameter information in DUT configuration parameter information, test case and the discharge model information in test instrumentation configuration parameter information from configuration database;Carry out the emulation of strategy monitoring function according to driving source parameter information needed for test case and discharge model information, the input flow rate information of this emulation is determined by discharge model information;In simulation process, according to traffic policing parameter information, calculate the flow information exported after obtaining every circulation inflow-rate of water turbine supervision, proceed to step S402;
Step S402: simulation process module reads driving source parameter information needed for the traffic shaping parameter information in DUT configuration parameter information, congestion management parameter information, test case and the discharge model information in test instrumentation configuration parameter information from configuration database;Carry out the emulation of traffic shaping and congestion management feature according to driving source parameter information needed for test case and discharge model information, the input flow rate information of this emulation is determined by the flow information of the output calculated in step S401;In simulation process, according to traffic shaping parameter information, congestion management parameter information, calculate and obtain every final DUT simulation process result of stream.
8. QoS automated testing method as claimed in claim 5, it is characterised in that: described bag reads the actual test result that statistical module reads and includes: in flow transmission process, the transmission rate of data stream that reads in real time, receiving velocity;After flow sends stopping, the transmission number-of-packet of the data stream of reading, reception number-of-packet, discarded packets number, and the wrong bag status information of data transmission, out of order status information, retransmission state information.
9. QoS automated testing method as claimed in claim 8, it is characterised in that step S5 specifically includes following operation:
Step S501: in flow transmission process, bag reads statistical module and reads the receiving velocity of 1 data stream from test instrumentation, and sends to result treatment module;Result treatment module judges that whether this receiving velocity is not inconsistent with expected results and error is not within the scope of the acceptable accuracy arranged, and if so, proceeds to step S502;Otherwise, continue to judge next data stream, return step S501;
Step S502: after data traffic stopping sends, bag reads statistical module and reads reception number-of-packet and the transmission number-of-packet of this data stream, calculates mean received rate, and sends to result treatment module;Result treatment module judges whether the mean received rate of this data stream is not inconsistent with expected results, if so, after misregistration information, continues to judge next data stream, returns step S501;Otherwise, step S503 is proceeded to;
Step S503: bag reads statistical module and reads the wrong bag status information that instrument returns after tested, and sends to result treatment module;Result treatment module misdeems whether have prbspayload filling information mistake or fcs check errors information in bag status information, if so, after misregistration information, continues to judge next data stream, return step S501;Otherwise, step S504 is proceeded to;
Step S504: bag reads statistical module and reads the out of order status information that instrument returns after tested, and sends to result treatment module;Result treatment module judges in out of order status information whether wrong information if so, after misregistration information, to continue to judge next data stream, return step S501;Otherwise, step S505 is proceeded to;
Step S505: bag reads statistical module and reads the retransmission state information that instrument returns after tested, and sends to result treatment module;Result treatment module judges in retransmission state information whether wrong information if so, after misregistration information, to continue to judge next data stream, return step S501;Otherwise, step S506 is proceeded to;
Step S506: result treatment module judges whether this data stream is the last item data stream, if so, preserves final testing result, and step S5 terminates;Otherwise, continue to judge next data stream, return step S501.
10. the method for the emulation bus effective bandwidth based on token bucket as according to any one of claim 5 to 9, it is characterised in that: after step S5, further comprising the steps of: the final testing result that output result treatment module preserves.
CN201610214193.XA 2016-04-07 2016-04-07 A kind of QoS automatic test device and test method Active CN105721226B (en)

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 true CN105721226A (en) 2016-06-29
CN105721226B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
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
CN113010432A (en) * 2021-03-31 2021-06-22 上海天旦网络科技发展有限公司 White box simulation test method and system based on flow time sequence playback
CN116633791A (en) * 2023-07-26 2023-08-22 常州楠菲微电子有限公司 Bandwidth detection method and device

Citations (5)

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

Patent Citations (5)

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

Cited By (5)

* Cited by examiner, † Cited by third party
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
CN113010432A (en) * 2021-03-31 2021-06-22 上海天旦网络科技发展有限公司 White box simulation test method and system based on flow time sequence playback
CN113010432B (en) * 2021-03-31 2023-09-12 上海天旦网络科技发展有限公司 White box simulation test method and system based on flow time sequence playback
CN116633791A (en) * 2023-07-26 2023-08-22 常州楠菲微电子有限公司 Bandwidth detection method and device
CN116633791B (en) * 2023-07-26 2023-09-26 常州楠菲微电子有限公司 Bandwidth detection method and device

Also Published As

Publication number Publication date
CN105721226B (en) 2019-04-02

Similar Documents

Publication Publication Date Title
CN110618929B (en) Verification platform and verification method of symmetric encryption algorithm based on UVM
CN107659434A (en) A kind of automatic test approach of Devices to test, apparatus and system
CN106771991B (en) Automatic testing method applied to antifuse Field Programmable Gate Array (FPGA) before programming
CN105721226A (en) QoS (Quality of Service) automatic test device and test method
CN100428252C (en) System and method for testing and measuring percentage of coverage of function
CN101499937A (en) Software and hardware collaborative simulation verification system and method based on FPGA
CN102680812A (en) Method and device for evaluating life of product
CN105528288A (en) Software testing method and apparatus
CN105610641A (en) Switch testing system and testing method based on semi-physical simulation
CN104392069B (en) A kind of WAMS delay character modeling method
CN108646684B (en) Multi-product production line production period prediction method based on variability measurement
CN101145977A (en) A QoS monitoring system and its measuring method of IP data network
CN109740634A (en) Disaggregated model training method and terminal device
CN110471857A (en) The automatic test approach and device of artificial intelligence model performance capability
CN105739481B (en) The test method of industrial control software, apparatus and system
CN107786993A (en) A kind of signal testing method and device
CN109710536B (en) System and method for automatically extracting simulation waveform of FPGA software verification result
CN100366003C (en) Device and method for emulated route analysis test
CN109617763A (en) A kind of method for testing pressure and device for FC-AE bus
CN102801586A (en) Method and device for automatically testing quality of service (QoS) granularity and precision
CN109685120A (en) Quick training method and terminal device of the disaggregated model under finite data
CN115811489A (en) Exchange chip verification system and method based on UVM and storage medium
CN107124241B (en) A kind of system and method for Ieee1588 modular simulation in OTN
CN105974297A (en) Virtual test instrument capable of realizing efficient testing and test method
CN109726742A (en) The quick training method of disaggregated model and terminal 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
GR01 Patent grant
GR01 Patent grant