CN102394795B - Throughput performance test processing engine embedded into Ethernet exchange chip and implementation method therefor - Google Patents

Throughput performance test processing engine embedded into Ethernet exchange chip and implementation method therefor Download PDF

Info

Publication number
CN102394795B
CN102394795B CN 201110344649 CN201110344649A CN102394795B CN 102394795 B CN102394795 B CN 102394795B CN 201110344649 CN201110344649 CN 201110344649 CN 201110344649 A CN201110344649 A CN 201110344649A CN 102394795 B CN102394795 B CN 102394795B
Authority
CN
China
Prior art keywords
message
time scale
test
session
data structure
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
Application number
CN 201110344649
Other languages
Chinese (zh)
Other versions
CN102394795A (en
Inventor
何志川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Centec Communications Co Ltd
Original Assignee
Centec Networks Suzhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Centec Networks Suzhou Co Ltd filed Critical Centec Networks Suzhou Co Ltd
Priority to CN 201110344649 priority Critical patent/CN102394795B/en
Publication of CN102394795A publication Critical patent/CN102394795A/en
Application granted granted Critical
Publication of CN102394795B publication Critical patent/CN102394795B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a throughput performance test processing engine embedded into an Ethernet exchange chip and an implementation method therefor. The method comprises the following steps: acquiring the data structure adopted by a present test session, sending a message outside when the time scale of the present session is reached, and counting bytes and packages of the sent message; analyzing the message to obtain the message information; inquiring according to the message information to obtain the data structure of the test session; and counting the bytes and message quantity of the received data message according to the data structure of the test session. During the performance test of network throughput, a tool embedded into an exchanger can be directly used to replace professional tester equipment for test, and the present network topology is unchanged, so that the network management cost and the operation cost are effectively cut.

Description

Be embedded in throughput performance test processes engine and its implementation in the Ethernet switching chip
Technical field
The present invention relates to the network communications technology field, relate in particular to a kind of throughput performance test processes engine and its implementation that is embedded in the Ethernet switching chip.
Background technology
Network interconnection device is server, and the quality of its performance directly affects network size, network stabilization and network reliability.The standard that the performance test of current network InterWorking Equipment is generally used is IETF (Internet Engineering Task Force, Internet engineering duty group) RFC2544 and ITU-T are Y.1564, RFC2544 is based on a testing standard of port performance test between two ports of the network equipment, and Y.1564 ITU-T is a testing standard of the performance test of LA Management Room service based (being that the MEF definition is based on EVC), throughput (throughput) all is basic performance testing index in two standards, existing network test environment uses the network tester (SmartBits of specialty, the products such as IXIA) tested equipment is carried out interconnected test, test topology as shown in Figure 1.But the price comparison of professional test instrument is expensive, and in actual networking was used, if need to can change existing network topology environment to tested testing equipment, the built network was tested it again.
Therefore, be necessary to provide a kind of throughput performance test processes engine in the Ethernet switching chip and its implementation of being embedded in to overcome the problems referred to above.
Summary of the invention
The object of the present invention is to provide a kind of in Ethernet switching chip the implementation method of embedded throughput performance test processes engine.
Do not need in network environment to another object of the present invention is to the network tester equipment of specialty, embedded throughput performance test processes engine apparatus in Ethernet switching chip can carry out when at any time needing network performance tested.
Correspondingly, a kind of network equipment of realizing of the present invention disposes the method for installation automatically, comprises the steps:
S10 obtains the data structure of current test session use and externally send a message when the current sessions time scale expires, and the message that sends is carried out byte number and bag number statistics;
S20 resolves message, parses message information;
S30 inquires about according to message information, obtains the data structure of test session;
S40 adds up byte number and the message number of the data message that receives according to the data structure of test session;
Wherein, described S10 specifically may further comprise the steps:
S101 carries out the initialization assignment to throughput performance test processes engine;
S102 waits for overtime expiring of time scale, if there be not overtime expire then to get back to that S102 continues etc. pending, if overtime expire then jump to S103 process;
S103 judges whether current test session enables, if do not enable, then jumps to S104 and processes, if enable then jump to S105 and process;
S104 upgrades the index of test session, obtains the index of next test session and gets back to S102 and process;
S105, acquire the data structure of current test session use and obtain a current time scale variable of this session: the time scale timeout value subtracts 1 to the time scale timeout value;
S106 judges the time scale timeout value, if the current sessions time scale is not yet due, then arrives S107 and processes; If time scale expires, then externally send a message, forward S108 to and process;
S107, the time scale timeout value in the new session more, and forward S104 to and process;
S108, the message that needs are sent packages according to configuration, and the message that sends is carried out byte number and bag number statistics, then message is sent to bag forward process engine from the designated port transmission processing, gets back to S104 after message sends and processes.
As a further improvement on the present invention, in S105, must arrive current another time scale variable of session: the fractional part of time scale, each Session Time scale expires, can the fractional part of time scale be added up, when fractional part cumulative greater than 65535 the time, then integer part can be advanced one, and the time scale timeout value that next round is upgraded need add carry digit.
As a further improvement on the present invention, described data structure comprises the configuration of test packet, statistics and the heading of transmitting-receiving message.
As a further improvement on the present invention, the longest 64 bytes of described heading.
As a further improvement on the present invention, described S40 specifically may further comprise the steps:
Whether S401 can need loopback to judge to message after remote test equipment receives message, if message need to be looped back to message source, then changes S402 over to and processes, and processes otherwise forward S403 to;
S402, source address and the destination address of exchange message, the outbound port of message is the port that enters of message, then message is delivered to bag forward process engine;
S403 further obtains sequence of message number, receives the data structure of counting messages according to the data structure of test session, carries out the inspection of sequence of message number, and the byte number and the message number that receive data message are added up.
Correspondingly, a kind of throughput performance test processes engine apparatus that is embedded in the Ethernet switching chip of the present invention comprises:
The message sending module in order to obtaining the data structure that current test session uses and externally send a message when the current sessions time scale expires, carries out byte number and the bag number is added up to the message that sends;
The packet parsing module in order to message is resolved, parses message information;
The session enquiry module in order to inquire about according to message information, obtains the data structure of test session;
Message processing module (MPM) is in order to add up byte number and the message number of the data message that receives according to the data structure of test session;
Wherein, described message sending module specifically is used for:
Throughput performance test processes engine is carried out the initialization assignment;
Wait for overtime expiring of time scale, if there be not overtime expire then to get back to that this continues in step etc. pending;
If overtime expiring judges then whether current test session enables;
If do not enable, then the index of test session upgraded, obtain the index of next test session and wait for overtime expiring of time scale;
If enable, acquire the data structure of current test session use and obtain a current time scale variable of this session: the time scale timeout value subtracts 1 to the time scale timeout value;
The time scale timeout value is judged, determined whether the current sessions time scale expires;
If the current sessions time scale is not yet due, the time scale timeout value in the new session more then, and the index of test session upgraded;
If time scale expires, then externally send a message, the message that needs are sent packages according to configuration, and the message that sends is carried out byte number and bag number statistics, then message is sent to bag forward process engine from the designated port transmission processing.
As a further improvement on the present invention, described data structure comprises the configuration of test packet, statistics and the heading of transmitting-receiving message.
As a further improvement on the present invention, described message processing module (MPM) specifically is used for:
After receiving message, remote test equipment can whether need loopback to judge to message;
If message need to be looped back to message source, then exchange source address and the destination address of message, the outbound port of message is the port that enters of message, then message is delivered to bag forward process engine;
If message does not need loopback, then further obtain sequence of message number, receive the data structure of counting messages according to the data structure of test session, carry out the inspection of sequence of message number, the byte number and the message number that receive data message are added up.
The invention has the beneficial effects as follows: the present invention when design based on Ethernet switching chip, embedded throughput performance test processes engine in Ethernet switching chip, directly use the embedded instrument of switch when realizing in the Ethernet switch that adopts this exchange chip to form that network throughput carried out performance test and substitute the tester testing equipment of specialty, to the change of existing network topology, can effectively not reduce network administration cost and operation cost.
Description of drawings
Fig. 1 shows throughput performance test environment in the prior art;
Fig. 2 shows the throughput performance test environment in an embodiment of the present invention;
Fig. 3 shows the position of embedded throughput performance test processes engine in exchange chip in an embodiment of the present invention;
Fig. 4 is the flow chart that an embodiment of the present invention is embedded in the throughput performance test processes engine implementing method in the Ethernet switching chip;
Fig. 5 is the concrete process chart of S10 among Fig. 4;
Fig. 6 is that the embedded throughput performance test processes of an embodiment of the present invention engine receives the flow chart that message is processed;
Fig. 7 is the module composition diagram of the embedded throughput performance test processes of an embodiment of the present invention engine.
Embodiment
Describe the present invention below with reference to each execution mode shown in the drawings.But these execution modes do not limit the present invention, and the conversion on the structure that those of ordinary skill in the art makes according to these execution modes, method or the function all is included in protection scope of the present invention.
Throughput performance test environment in an embodiment of the present invention does not need the network tester equipment of specialty as shown in Figure 2, tests between Ethernet switch by embedded throughput performance test processes engine.Particularly, the position of embedded throughput performance test processes engine in Ethernet switching chip as shown in Figure 3, in order to measure the throughput between the InterWorking Equipment.
Throughput is to describe the most basic index parameter of network interconnection device.According to handling up definition of quantity as can be known, throughput has comprised 2 layers of implication: will guarantee that at first any one Frame to be transmitted can both correctly be forwarded to suitable address, its less important transfer capability of giving full play to equipment.A rapid growth that outstanding feature is the network link bandwidth of network Development, being reflected on the network interconnection apparatus, network interconnection is exactly the growth of device throughput, with reference to RFC2544 and ITU-T Y.1564, in the test of throughput, should be noted following some:
(1) testing time: because the measurement of Frame throughput is the transfer capability of equipment in the constant load situation, if the time is too short, just can not correctly reflect the handling capacity of equipment.
(2) test granularity: the test granularity is set as and is no more than 1% of Theoretical Rate.In the design of actual test system, can adopt the granularity of variation, adopt larger variation granularity to find fast the probable ranges of throughput when just beginning, then select more small grain size with accurate location, general multiplex two minutes algorithms.
(3) test frame length: require a series of frame length (64,128,256,512,768,1024,1280,1518 byte) within the regular hour, is tested by certain number.Frame length is less, and is larger on the test result impact of throughput, otherwise frame length is larger, less on the test result impact of throughput.Because for the network equipment, under same bandwidth, the frame length more quantity of small data frame is just larger, the time of these Frame costs of network device processing will be more so, otherwise the quantity of the larger Frame of frame length is just less, and the time of these Frame costs of network device processing will fewer also just easier processing so.
The flow chart that an embodiment of the present invention is embedded in the throughput performance test processes engine implementing method in the Ethernet switching chip may further comprise the steps as shown in Figure 4:
S10 obtains the data structure of current test session use and externally send a message when the current sessions time scale expires, and the message that sends is carried out byte number and bag number statistics;
S20 resolves message, parses message information;
S30 inquires about according to message information, obtains the data structure of test session;
S40 adds up byte number and the message number of the data message that receives according to the data structure of test session.
The present invention supports a plurality of sessions to carry out simultaneously the throughput performance test, minimum between each session interval of giving out a contract for a project is defined as a time scale, if the package processing capability of packet processing engine is the message that each clock cycle can process 8 bytes, then in the situation that sends different message lengths, when there was different message length in message simultaneously, 1 needed clock cycle of time scale should be more than or equal to the needed clock cycle of the longest message of length.
The below disposes high bandwidth as 10M take a business (EVC), is that the message of 64 bytes is treated to example explanation to length under test 100% bandwidth availability ratio.As shown in table 1 below, core frequency such as fruit chip is 200MHZ, then bandwidth is that 10M and the message that sends 100% bandwidth need 13340 cycles to send a message when chip, the number of supposing the test session of test processes engine support this moment is 16, and the number of the clock cycle of each time scale configuration is 256; Then length is that the time scale number that each session of the test packet of 64 bytes needs is: 13440/16/256=3.28125, and the integer part that sends the time scale number that a message needs this moment is 3; Fractional part is 18432, and (decimal adopts integer representation herein, formula: fractional part * 2^16, namely 18432=0.28125*2^16).
Table 1:
Packet Forwarding Rate in the 1M linear speed situation
Figure 943870DEST_PATH_IMAGE001
Testing throughput
Illustrate:
1) the Packet Forwarding Rate computing formula is in the .1M linear speed situation: 1000*1000/8/ (frame length+12+8), comprise the frame gap of 12 bytes and the lead code of 8 bytes when wherein calculating frame length;
2). the computing formula that reaches the nominated bandwidth throughput in the chip logic is: bag is transmitted number under the core frequency/specific bandwidth of chip; As the core frequency of showing chips is 200MHZ, and then bandwidth is that 10M and the message that sends 100% bandwidth need 13340 cycles to send a message when chip.
The processing logic of the transmission of message as shown in Figure 5, concrete handling process is as follows:
S101 carries out the initialization assignment to throughput performance test processes engine;
S102 waits for overtime expiring of time scale, if there be not overtime expire then to get back to that S102 continues etc. pending, if overtime expire then jump to S103 process;
S103 judges whether current test session enables, if do not enable, then jumps to S104 and processes, if enable then jump to S105 and process;
S104 upgrades the index of test session, obtains the index of next test session and gets back to S102 and process;
S105, acquire the data structure of current test session use and obtain a current time scale variable of this session: the time scale timeout value subtracts 1 to the time scale timeout value;
S106 judges the time scale timeout value, if the current sessions time scale is not yet due, then arrives S107 and processes; If time scale expires, then externally send a message, forward S108 to and process;
S107, the time scale timeout value in the new session more, and forward S104 to and process;
S108, the message that needs are sent packages according to configuration, and the message that sends is carried out byte number and bag number statistics, then message is sent to bag forward process engine from the designated port transmission processing, gets back to S104 after message sends and processes.
In S105, must arrive another current time scale variable of session: the time scale fractional part.It should be noted that each Session Time scale expires, can the fractional part of time scale be added up that cumulative greater than 65535 the time when fractional part, then integer part can be advanced one; Then the time scale timeout value of next round renewal need add carry digit.
In addition, the data structure that obtains among the S105 comprises the configuration of test packet, statistics and the heading of transmitting-receiving message.Heading can be specified by the user, the longest 64 bytes.
In the throughput performance test environment, if what network was carried out is the test of one-way flow, then after the test port of remote test equipment was received this message, bag forward process engine was delivered to throughput performance test processes engine to test packet according to the feature of message; If network is carried out the test of bidirectional traffics, then the test port of remote test equipment needs message is carried out loopback after receiving this message, again deliver to the test port of local test equipment when message, according to the feature of message test packet is delivered to throughput performance test processes engine after bag forward process engine is received message, throughput performance test processes engine receives the message process chart as shown in Figure 6:
Bag forward process engine is delivered to throughput performance test processes engine to test packet according to the feature of message;
Carry out packet parsing, parse the information of message, such as the information such as MacDa, MacSa, Vlan ID, i.e. S20 step;
Carry out the inquiry of test session according to the information of message and the information of message entry port (such as the keyword of port id+Vlan ID as inquiry), obtain the data structure of test session, i.e. the S30 step;
Next be the concrete steps of S40:
Whether S401 can need loopback to judge to message after remote test equipment receives message, if message need to be looped back to message source, then changes S402 over to and processes, and processes otherwise forward S403 to;
S402, source address and the destination address of exchange message, the outbound port of message is the port that enters of message, then message is delivered to bag forward process engine;
S403 further obtains sequence of message number, receives the data structure of counting messages according to the data structure of test session, carries out the inspection of sequence of message number, and the byte number and the message number that receive data message are added up.
At last, bag forward process engine sends message according to message outbound port information from network interface.
The composition module map of embedded throughput performance test processes engine comprises as shown in Figure 7 in an embodiment of the present invention:
The message sending module in order to obtaining the data structure that current test session uses and externally send a message when the current sessions time scale expires, carries out byte number and the bag number is added up to the message that sends;
The packet parsing module in order to message is resolved, parses message information;
The session enquiry module in order to inquire about according to message characteristic, obtains the data structure of test session;
Message processing module (MPM) is in order to add up byte number and the message number of the data message that receives according to the data structure of test session.
Above-mentioned message sending module specifically is used for:
Throughput performance test processes engine is carried out the initialization assignment;
Wait for overtime expiring of time scale, if there be not overtime expire then to get back to that this continues in step etc. pending;
If overtime expiring judges then whether current test session enables;
If do not enable, then the index of test session upgraded, obtain the index of next test session and wait for overtime expiring of time scale;
If enable, acquire the data structure of current test session use and obtain a current time scale variable of this session: the time scale timeout value subtracts 1 to the time scale timeout value;
The time scale timeout value is judged, determined whether the current sessions time scale expires;
If the current sessions time scale is not yet due, the time scale timeout value in the new session more then, and the index of test session upgraded;
If time scale expires, then externally send a message, the message that needs are sent packages according to configuration, and the message that sends is carried out byte number and bag number statistics, then message is sent to bag forward process engine from the designated port transmission processing.
In addition, above-mentioned message processing module (MPM) specifically is used for:
After receiving message, remote test equipment can whether need loopback to judge to message;
If message need to be looped back to message source, then exchange source address and the destination address of message, the outbound port of message is the port that enters of message, then message is delivered to bag forward process engine;
If message does not need loopback, then further obtain sequence of message number, receive the data structure of counting messages according to the data structure of test session, carry out the inspection of sequence of message number, the byte number and the message number that receive data message are added up.
The present invention when design based on Ethernet switching chip, embedded throughput performance test processes engine in Ethernet switching chip, directly use the embedded instrument of switch when realizing in the Ethernet switch that adopts this exchange chip to form that network throughput carried out performance test and substitute the tester testing equipment of specialty, to the change of existing network topology, can effectively not reduce network administration cost and operation cost.
In addition, the present invention is in conjunction with RFC2544 and ITU-T Y.1564 after the standard, can do flexible configuration and reach test request testing time, test granularity, test frame length, the number that the bandwidth that the user of chip can calculate the current frame length that needs test and test on the testing time disposes required transmission message reaches accurate testing time configuration, and the testing time also can be controlled by CPU simultaneously; Aspect the test granularity, the present invention program can reach test request to message of what time cycles transmission according to current test frame length and current test bandwidth accurate Calculation, as ITU-T Y.1564 a business (EVC) to dispose high bandwidth be 10M, need to be that the message of 64 bytes is done the maximum throughput test under this business to length, then under test 100% bandwidth availability ratio, can be configured to 13340 clock cycle to send a message; Rectangular of test frame, the frame length that the user can the nominative testing message, simultaneously the present invention also supports following functions:
1). can test the test packet that defines multiple load type;
2). can in test packet, add sequence number;
3). support a plurality of sessions to carry out simultaneously performance test;
4). message supports to be configured to loopback mode when receiving terminal, message with switching purpose address and source address then the loopback transmitting terminal;
5). the dissimilar data message of definable is tested, as the user can self-defined ITU-T Y.1731 ETH-LB and the ETH-TST testing throughput that network carried out one-way flow or bidirectional traffics according to standard Y.1731.
For the convenience of describing, be divided into various unit with function when describing above system and describe respectively.Certainly, when implementing the application, can in same or a plurality of softwares and/or hardware, realize the function of each unit.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the application and can realize by the mode that software adds essential general hardware platform.Based on such understanding, the part that the application's technical scheme contributes to prior art in essence in other words can embody with the form of software product, this computer software product can be stored in the storage medium, such as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each execution mode of the application or execution mode.
System Implementation mode described above only is schematic, wherein said unit as the separating component explanation can or can not be physically to separate also, the parts that show as the unit can be or can not be physical locations also, namely can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select according to the actual needs wherein some or all of module to realize the purpose of present embodiment scheme.Those of ordinary skills namely can understand and implement in the situation of not paying creative work.
The application can be used for numerous general or special purpose computingasystem environment or configuration, or in the communication equipment.For example: personal computer, server computer, handheld device or portable set, plate equipment, multicomputer system, the system based on microprocessor, set top box, programmable consumer-elcetronics devices, network PC, minicom, mainframe computer, comprise distributed computing environment (DCE) of above any system or equipment etc.
The application can describe in the general context of the computer executable instructions of being carried out by computer, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract data type, program, object, assembly, data structure etc.Also can in distributed computing environment (DCE), put into practice the application, in these distributed computing environment (DCE), be executed the task by the teleprocessing equipment that is connected by communication network.In distributed computing environment (DCE), program module can be arranged in the local and remote computer-readable storage medium that comprises memory device.
Be to be understood that, although this specification is described according to execution mode, but be not that each execution mode only comprises an independently technical scheme, this narrating mode of specification only is for clarity sake, those skilled in the art should make specification as a whole, technical scheme in each execution mode also can through appropriate combination, form other execution modes that it will be appreciated by those skilled in the art that.
Above listed a series of detailed description only is specifying for feasibility execution mode of the present invention; they are not to limit protection scope of the present invention, allly do not break away from equivalent execution mode or the change that skill spirit of the present invention does and all should be included within protection scope of the present invention.

Claims (8)

1. the implementation method of an embedded throughput performance test processes engine in Ethernet switching chip is characterized in that, may further comprise the steps:
S10 obtains the data structure of current test session use and externally send a message when the current sessions time scale expires, and the message that sends is carried out byte number and bag number statistics;
S20 resolves message, parses message information;
S30 inquires about according to message information, obtains the data structure of test session;
S40 adds up byte number and the message number of the data message that receives according to the data structure of test session;
Wherein, described S10 specifically may further comprise the steps:
S101 carries out the initialization assignment to throughput performance test processes engine;
S102 waits for overtime expiring of time scale, if there be not overtime expire then to get back to that S102 continues etc. pending, if overtime expire then jump to S103 process;
S103 judges whether current test session enables, if do not enable, then jumps to S104 and processes, if enable then jump to S105 and process;
S104 upgrades the index of test session, obtains the index of next test session and gets back to S102 and process;
S105, acquire the data structure of current test session use and obtain a current time scale variable of this session: the time scale timeout value subtracts 1 to the time scale timeout value;
S106 judges the time scale timeout value, if the current sessions time scale is not yet due, then arrives S107 and processes; If time scale expires, then externally send a message, forward S108 to and process;
S107, the time scale timeout value in the new session more, and forward S104 to and process;
S108, the message that needs are sent packages according to configuration, and the message that sends is carried out byte number and bag number statistics, then message is sent to bag forward process engine from the designated port transmission processing, gets back to S104 after message sends and processes.
According to claim 1 in Ethernet switching chip the implementation method of embedded throughput performance test processes engine, it is characterized in that, in S105, must arrive current another time scale variable of session: the fractional part of time scale, each Session Time scale expires, can the fractional part of time scale be added up, cumulative greater than 65535 the time when fractional part, then integer part can be advanced one, and the time scale timeout value that next round is upgraded need add carry digit.
According to claim 1 in Ethernet switching chip the implementation method of embedded throughput performance test processes engine, it is characterized in that described data structure comprises the configuration of test packet, statistics and the heading of transmitting-receiving message.
According to claim 3 in Ethernet switching chip the implementation method of embedded throughput performance test processes engine, it is characterized in that the longest 64 bytes of described heading.
According to claim 1 in Ethernet switching chip the implementation method of embedded throughput performance test processes engine, it is characterized in that described S40 specifically may further comprise the steps:
Whether S401 can need loopback to judge to message after remote test equipment receives message, if message need to be looped back to message source, then changes S402 over to and processes, and processes otherwise forward S403 to;
S402, source address and the destination address of exchange message, the outbound port of message is the port that enters of message, then message is delivered to bag forward process engine;
S403 further obtains sequence of message number, receives the data structure of counting messages according to the data structure of test session, carries out the inspection of sequence of message number, and the byte number and the message number that receive data message are added up.
6. a throughput performance test processes engine apparatus that is embedded in the Ethernet switching chip is characterized in that, comprising:
The message sending module in order to obtaining the data structure that current test session uses and externally send a message when the current sessions time scale expires, carries out byte number and the bag number is added up to the message that sends;
The packet parsing module in order to message is resolved, parses message information;
The session enquiry module in order to inquire about according to message information, obtains the data structure of test session;
Message processing module (MPM) is in order to add up byte number and the message number of the data message that receives according to the data structure of test session;
Wherein, described message sending module specifically is used for:
Throughput performance test processes engine is carried out the initialization assignment;
Wait for overtime expiring of time scale, if there be not overtime expire then to get back to that this continues in step etc. pending;
If overtime expiring judges then whether current test session enables;
If do not enable, then the index of test session upgraded, obtain the index of next test session and wait for overtime expiring of time scale;
If enable, acquire the data structure of current test session use and obtain a current time scale variable of this session: the time scale timeout value subtracts 1 to the time scale timeout value;
The time scale timeout value is judged, determined whether the current sessions time scale expires;
If the current sessions time scale is not yet due, the time scale timeout value in the new session more then, and the index of test session upgraded;
If time scale expires, then externally send a message, the message that needs are sent packages according to configuration, and the message that sends is carried out byte number and bag number statistics, then message is sent to bag forward process engine from the designated port transmission processing.
7. the throughput performance test processes engine apparatus that is embedded in the Ethernet switching chip according to claim 6 is characterized in that, described data structure comprises the configuration of test packet, statistics and the heading of transmitting-receiving message.
8. the throughput performance test processes engine apparatus that is embedded in the Ethernet switching chip according to claim 6 is characterized in that described message processing module (MPM) specifically is used for:
After receiving message, remote test equipment can whether need loopback to judge to message;
If message need to be looped back to message source, then exchange source address and the destination address of message, the outbound port of message is the port that enters of message, then message is delivered to bag forward process engine;
If message does not need loopback, then further obtain sequence of message number, receive the data structure of counting messages according to the data structure of test session, carry out the inspection of sequence of message number, the byte number and the message number that receive data message are added up.
CN 201110344649 2011-11-04 2011-11-04 Throughput performance test processing engine embedded into Ethernet exchange chip and implementation method therefor Active CN102394795B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110344649 CN102394795B (en) 2011-11-04 2011-11-04 Throughput performance test processing engine embedded into Ethernet exchange chip and implementation method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110344649 CN102394795B (en) 2011-11-04 2011-11-04 Throughput performance test processing engine embedded into Ethernet exchange chip and implementation method therefor

Publications (2)

Publication Number Publication Date
CN102394795A CN102394795A (en) 2012-03-28
CN102394795B true CN102394795B (en) 2013-10-30

Family

ID=45862006

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110344649 Active CN102394795B (en) 2011-11-04 2011-11-04 Throughput performance test processing engine embedded into Ethernet exchange chip and implementation method therefor

Country Status (1)

Country Link
CN (1) CN102394795B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103580936A (en) * 2012-07-20 2014-02-12 上海贝尔股份有限公司 Method for executing tests in network elements and corresponding network elements
CN102882746B (en) * 2012-10-11 2015-04-22 盛科网络(苏州)有限公司 Measuring method and measuring system of flow table adding rate in Openflow switchboard system
WO2014085970A1 (en) * 2012-12-04 2014-06-12 华为技术有限公司 Method and apparatus for testing throughput, receiving end device and sending end device
CN104253723B (en) * 2014-09-29 2017-11-14 电子科技大学 The method and device for the interchanger validation test realized based on software-hardware synergism
TWI585593B (en) 2015-06-03 2017-06-01 鴻海精密工業股份有限公司 Method and system for optimizing transfer path
CN106209499B (en) * 2016-06-28 2017-06-23 湖南恒茂高科股份有限公司 A kind of stabilization Ethernet is given out a contract for a project the method and apparatus of tester flow
CN111385164B (en) * 2018-12-29 2021-11-30 江苏迪纳数字科技股份有限公司 Communication protocol gateway testing method for actively reporting multi-protocol free combination message
CN114363274A (en) * 2021-12-24 2022-04-15 裕太微电子股份有限公司 Packet receiving and transmitting system and method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026504A (en) * 2006-02-24 2007-08-29 华为技术有限公司 Network for formance measuring method
CN101267363A (en) * 2008-04-24 2008-09-17 杭州华三通信技术有限公司 Loop testing method, system and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090161569A1 (en) * 2007-12-24 2009-06-25 Andrew Corlett System and method for facilitating carrier ethernet performance and quality measurements

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026504A (en) * 2006-02-24 2007-08-29 华为技术有限公司 Network for formance measuring method
CN101267363A (en) * 2008-04-24 2008-09-17 杭州华三通信技术有限公司 Loop testing method, system and device

Also Published As

Publication number Publication date
CN102394795A (en) 2012-03-28

Similar Documents

Publication Publication Date Title
CN102394795B (en) Throughput performance test processing engine embedded into Ethernet exchange chip and implementation method therefor
CN111769998B (en) Method and device for detecting network delay state
CN1913449A (en) Method and systems for optimization analysis in networks
CN109729007A (en) A kind of method, apparatus and equipment for transmitting data
CN104378308A (en) Method and device for detecting message sending rate
CN110971445B (en) Network OAM method and device
CN112039796B (en) Data packet transmission method and device, storage medium and electronic equipment
KR101467137B1 (en) In-service throughput testing in distributed router/switch architectures
CN112311628B (en) Network speed measuring method, system, network equipment and storage medium
CN113328902A (en) Network performance detection method and device and network equipment
CN109547356A (en) A kind of data transmission method of electrical energy measurement, system, equipment and computer storage medium
CN110417687B (en) Message sending and receiving method and device
CN110248379A (en) The performance test methods and device of base station in WLAN
Olvera-Irigoyen et al. Available bandwidth probing for path selection in heterogeneous home networks
CN102957613A (en) OAM (Operation Administration and Maintenance) message and data message uniform transmission path method and device in MPLS (Multiple protocol Label Switching)-TP (Transport Profile) network
CN101072135A (en) Wireless LAN testing method and system
CN112152925B (en) Data transmission method, terminal and communication system
CN111490907B (en) Method and device for determining VXLAN network performance parameters
CN102845042B (en) The aggregation of bandwidth system and method for the multiple movable physical interface of a kind of application layer
CN115208808B (en) Service quality testing method and device, chip equipment and storage medium
US11677651B2 (en) UDPING—continuous one-way monitoring of multiple network links
CN101374112B (en) Method, system and apparatus for transmitting packet
CN111988158B (en) Chip-level OAM message sending method, device, system and storage medium
KR101659341B1 (en) Apparatus and method for measuring quality of internet
Ebleme et al. Examination and Performance Evaluation of MQTT

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Throughput performance test processing engine embedded into Ethernet exchange chip and implementation method therefor

Effective date of registration: 20150629

Granted publication date: 20131030

Pledgee: Zhenhua Group Finance Co. Ltd.

Pledgor: Centec Networks (Suzhou) Inc.

Registration number: 2015320010004

PLDC Enforcement, change and cancellation of contracts on pledge of patent right or utility model
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20160627

Granted publication date: 20131030

Pledgee: Zhenhua Group Finance Co. Ltd.

Pledgor: Centec Networks (Suzhou) Inc.

Registration number: 2015320010004

PLDC Enforcement, change and cancellation of contracts on pledge of patent right or utility model
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Throughput performance test processing engine embedded into Ethernet exchange chip and implementation method therefor

Effective date of registration: 20160718

Granted publication date: 20131030

Pledgee: Zhenhua Group Finance Co. Ltd.

Pledgor: Centec Networks (Suzhou) Inc.

Registration number: 2016320010011

PLDC Enforcement, change and cancellation of contracts on pledge of patent right or utility model
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20161130

Granted publication date: 20131030

Pledgee: Zhenhua Group Finance Co. Ltd.

Pledgor: Centec Networks (Suzhou) Inc.

Registration number: 2016320010011

PLDC Enforcement, change and cancellation of contracts on pledge of patent right or utility model
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 215000 unit 13 / 16, 4th floor, building B, No.5 Xinghan street, Suzhou Industrial Park, Jiangsu Province

Patentee after: Suzhou Shengke Communication Co.,Ltd.

Address before: 215021 unit 13 / 16, floor 4, building B, No. 5, Xinghan street, Suzhou Industrial Park, Suzhou, Jiangsu

Patentee before: CENTEC NETWORKS (SU ZHOU) Co.,Ltd.