CN102394795A - 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
CN102394795A
CN102394795A CN2011103446491A CN201110344649A CN102394795A CN 102394795 A CN102394795 A CN 102394795A CN 2011103446491 A CN2011103446491 A CN 2011103446491A CN 201110344649 A CN201110344649 A CN 201110344649A CN 102394795 A CN102394795 A CN 102394795A
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.)
Granted
Application number
CN2011103446491A
Other languages
Chinese (zh)
Other versions
CN102394795B (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 a server, and the quality of its performance directly influences 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 the testing standard of LA Management Room based on the performance test of professional (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 (products such as SmartBits, IXIA) of specialty that equipment to be tested is carried out interconnected test, and test topology is as shown in Figure 1.But the price comparison of professional test appearance is expensive, and in actual networking is used, if desired to testing equipment to be tested, can change existing network topology environment, and the built network is tested it again.
Therefore, be necessary to provide a kind of and be embedded in throughput performance test processes engine and its implementation in the Ethernet switching chip 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.
In network environment, do not need another object of the present invention is to the network tester equipment of specialty, embedded throughput performance test processes engine can carry out in the time of at any time need testing network performance in Ethernet switching chip.
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 when the current sessions time scale expires, externally sends a message, 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 the byte number and the message number of the data message that receives according to the data structure of test session.
As further improvement of the present invention, said 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 handle;
S103 judges whether current test session enables, if do not enable, then jumps to S104 and handles, if enable then jump to S105 and handle;
S104 upgrades the index of test session, obtains the index of next test session and gets back to S102 and handle;
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 handles; If time scale expires, then externally send a message, forward S108 to and handle;
S107, the time scale timeout value in the new session more, and forward S104 to and handle;
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, sends to bag forwarding processing engine to message then and handles from the designated port transmission, gets back to S104 after message has sent and handles.
As further improvement of 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, and can the fractional part of time scale be added up, when fractional part adds up 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 further improvement of the present invention, said data structure comprises the configuration of test packet, the statistics and the heading of transmitting-receiving message.
As further improvement of the present invention, the longest 64 bytes of said heading.
As further improvement of the present invention, said 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 be looped back to message source, then changes S402 over to and handles, and handles otherwise forward S403 to;
S402, the source address and the destination address of exchange message, the outbound port of message is the port of the entering of message, delivers to bag to message then and transmits processing 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 that is embedded in the Ethernet switching chip of the present invention comprises:
The message sending module in order to obtain the data structure that current test session uses and when the current sessions time scale expires, externally to send a message, carries out byte number to the message that sends and adds up with the bag number;
The packet parsing module in order to message is resolved, parses message information;
The queries 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 the byte number and the message number of the data message that receives according to the data structure of test session.
As further improvement of the present invention, said 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 to test session upgrades, and obtains the index of next test session and waits 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, confirmed 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, sends to bag forwarding processing engine to message then and handles from the designated port transmission.
As further improvement of the present invention, said data structure comprises the configuration of test packet, the statistics and the heading of transmitting-receiving message.
As further improvement of the present invention, said message processing module (MPM) specifically is used for:
, remote test equipment can whether need loopback to judge after receiving message to message;
If message need be looped back to message source, then exchange the source address and the destination address of message, the outbound port of message is the port of the entering of message, delivers to bag to message then and transmits processing 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;, can effectively not reduce network administration cost and operation cost to the change of existing network topology.
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 implementation 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 handled;
Fig. 7 is the module composition diagram of the embedded throughput performance test processes of an embodiment of the present invention engine.
Embodiment
Below will combine each execution mode shown in the drawings to describe the present invention.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 is as shown in Figure 2, does not need the network tester equipment of specialty, tests between Ethernet switch through embedded throughput performance test processes engine.Particularly, the position of embedded throughput performance test processes engine in Ethernet switching chip is as shown in Figure 3, in order to measure the throughput between the InterWorking Equipment.
Throughput is to describe the basic index parameter of network interconnection device.Definition according to throughput can know that 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.An outstanding feature of network development is the quick growth of network link bandwidth, and 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, note following some:
(1) testing time:,, just can not correctly reflect the handling capacity of equipment if the time is too short because the measurement of Frame throughput is the transfer capability of equipment under the constant load situation.
(2) test granularity: the test granularity is set at and is no more than 1% of theoretical speed.In the design of actual test system, can adopt the granularity of variation, adopt bigger variation granularity to find the probable ranges of throughput fast when just beginning, select for use more small grain size with accurate location then, general many with two fens algorithms.
(3) test frame length: require a series of frame length (64,128,256,512,768,1024,1280,1518 byte) in the regular hour, is tested by certain number.Frame length is more little, and is big more to the test result influence of throughput, otherwise frame length is big more, more little to the test result influence of throughput.Because for the network equipment; Under same bandwidth; The frame length quantity of small data frame more is just big more; The time of these Frame costs of network device processing will be many more so, otherwise the quantity of the big more Frame of frame length is just more little, and the time of these Frame costs of network device processing will fewlyer also just handle more easily so.
It is as shown in Figure 4 that an embodiment of the present invention is embedded in the flow chart of the throughput performance test processes engine implementation method in the Ethernet switching chip, may further comprise the steps:
S10 obtains the data structure of current test session use and when the current sessions time scale expires, externally sends a message, 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 the 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 the throughput performance test simultaneously; Minimum between each session is given out a contract for a project and is defined as a time scale at interval; If the package processing capability of packet processing engine is the message that each clock cycle can handle 8 bytes; Then sending under the situation of different message lengths, when there was different message length simultaneously in message, 1 needed clock cycle of time scale should be more than or equal to the needed clock cycle of the longest message of length.
Disposing high bandwidth with a business (EVC) below is 10M, 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 like 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 of sending the time scale number that a message needs this moment is 3; Fractional part is 18432, and (decimal adopts integer representation among this paper, formula: fractional part * 2^16, promptly 18432=0.28125*2^16).
Table 1:
Packet Forwarding Rate under the 1M linear speed situation
Figure 2011103446491100002DEST_PATH_IMAGE002
Explain:
1) the Packet Forwarding Rate computing formula is under 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 is as shown in Figure 5, and concrete handling process is following:
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 handle;
S103 judges whether current test session enables, if do not enable, then jumps to S104 and handles, if enable then jump to S105 and handle;
S104 upgrades the index of test session, obtains the index of next test session and gets back to S102 and handle;
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 handles; If time scale expires, then externally send a message, forward S108 to and handle;
S107, the time scale timeout value in the new session more, and forward S104 to and handle;
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, sends to bag forwarding processing engine to message then and handles from the designated port transmission, gets back to S104 after message has sent and handles.
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 when fractional part adds up greater than 65535 the time, 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, the 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 was transmitted processing engine and is delivered to throughput performance test processes engine to test packet according to the characteristic of message; If network is carried out the test of bidirectional traffics; Then the test port of remote test equipment need carry out loopback to message after receiving this message; Deliver to the test port of local test equipment once more when message; Bag is transmitted and is delivered to throughput performance test processes engine to test packet according to the characteristic of message after processing engine is received message, and it is as shown in Figure 6 that throughput performance test processes engine receives the message process chart:
Bag is transmitted processing engine and is delivered to throughput performance test processes engine to test packet according to the characteristic of message;
Carry out packet parsing, parse the information of message, like 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 (like the keyword of port id+Vlan ID), obtain the data structure of test session, i.e. the S30 step as inquiry;
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 be looped back to message source, then changes S402 over to and handles, and handles otherwise forward S403 to;
S402, the source address and the destination address of exchange message, the outbound port of message is the port of the entering of message, delivers to bag to message then and transmits processing 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 forwarding processing engine sends message according to message outbound port information from network interface.
The composition module map of embedded throughput performance test processes engine is as shown in Figure 7 in an embodiment of the present invention, comprising:
The message sending module in order to obtain the data structure that current test session uses and when the current sessions time scale expires, externally to send a message, carries out byte number to the message that sends and adds up with the bag number;
The packet parsing module in order to message is resolved, parses message information;
The queries 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 the 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 to test session upgrades, and obtains the index of next test session and waits 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, confirmed 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, sends to bag forwarding processing engine to message then and handles from the designated port transmission.
In addition, above-mentioned message processing module (MPM) specifically is used for:
, remote test equipment can whether need loopback to judge after receiving message to message;
If message need be looped back to message source, then exchange the source address and the destination address of message, the outbound port of message is the port of the entering of message, delivers to bag to message then and transmits processing 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;, can effectively not reduce network administration cost and operation cost to the change of existing network topology.
In addition; The present invention is combining 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 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 be that the message of 64 bytes is done the maximum throughput test under this business to length, then 13340 clock cycle of configurable one-tenth be sent a message under test 100% bandwidth availability ratio; Rectangular of test frame, the frame length that the user can the nominative testing message, the present invention simultaneously also supports following function:
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 performance test simultaneously;
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). definable data of different types message is tested, as the user can self-defined ITU-T Y.1731 ETH-LB and ETH-TST network is carried out the testing throughput of 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.
Description through above execution mode can know, 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 be come out with the embodied of software product; This computer software product can be stored in the storage medium, like ROM/RAM, magnetic disc, CD etc., comprises that some instructions are with so that a computer equipment (can be a 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; Promptly can be positioned at a place, perhaps also can be distributed on a plurality of NEs.Can realize the purpose of this execution mode scheme according to the needs selection some or all of module wherein of reality.Those of ordinary skills promptly can understand and implement under 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 DCE of above any system or equipment or the like.
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, program, object, assembly, data structure or the like.Also can in DCE, put into practice the application, in these DCEs, by through communication network connected teleprocessing equipment execute the task.In DCE, program module can be arranged in this locality and the remote computer storage medium that comprises memory device.
Be to be understood that; Though 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, and those skilled in the art should make specification as a whole; Technical scheme in each execution mode also can form other execution modes that it will be appreciated by those skilled in the art that through appropriate combination.
The listed a series of detailed description of preceding text only is specifying to feasibility execution mode of the present invention; They are not in order to restriction protection scope of the present invention, allly do not break away from equivalent execution mode or the change that skill of the present invention spirit done and all should be included within protection scope of the present invention.

Claims (10)

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 when the current sessions time scale expires, externally sends a message, 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 the byte number and the message number of the data message that receives according to the data structure of test session.
2. according to claim 1 in Ethernet switching chip the implementation method of embedded throughput performance test processes engine, it is characterized in that said 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 handle;
S103 judges whether current test session enables, if do not enable, then jumps to S104 and handles, if enable then jump to S105 and handle;
S104 upgrades the index of test session, obtains the index of next test session and gets back to S102 and handle;
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 handles; If time scale expires, then externally send a message, forward S108 to and handle;
S107, the time scale timeout value in the new session more, and forward S104 to and handle;
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, sends to bag forwarding processing engine to message then and handles from the designated port transmission, gets back to S104 after message has sent and handles.
3. according to claim 2 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; When fractional part adds up 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.
4. according to claim 2 in Ethernet switching chip the implementation method of embedded throughput performance test processes engine, it is characterized in that said data structure comprises the configuration of test packet, the statistics and the heading of transmitting-receiving message.
5. according to claim 4 in Ethernet switching chip the implementation method of embedded throughput performance test processes engine, it is characterized in that the longest 64 bytes of said heading.
6. according to claim 1 in Ethernet switching chip the implementation method of embedded throughput performance test processes engine, it is characterized in that said 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 be looped back to message source, then changes S402 over to and handles, and handles otherwise forward S403 to;
S402, the source address and the destination address of exchange message, the outbound port of message is the port of the entering of message, delivers to bag to message then and transmits processing 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.
7. a throughput performance test processes engine that is embedded in the Ethernet switching chip is characterized in that, comprising:
The message sending module in order to obtain the data structure that current test session uses and when the current sessions time scale expires, externally to send a message, carries out byte number to the message that sends and adds up with the bag number;
The packet parsing module in order to message is resolved, parses message information;
The queries 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 the byte number and the message number of the data message that receives according to the data structure of test session.
8. the throughput performance test processes engine that is embedded in the Ethernet switching chip according to claim 7 is characterized in that said 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 to test session upgrades, and obtains the index of next test session and waits 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, confirmed 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, sends to bag forwarding processing engine to message then and handles from the designated port transmission.
9. the throughput performance test processes engine that is embedded in the Ethernet switching chip according to claim 8 is characterized in that, said data structure comprises the configuration of test packet, the statistics and the heading of transmitting-receiving message.
10. the throughput performance test processes engine that is embedded in the Ethernet switching chip according to claim 7 is characterized in that said message processing module (MPM) specifically is used for:
, remote test equipment can whether need loopback to judge after receiving message to message;
If message need be looped back to message source, then exchange the source address and the destination address of message, the outbound port of message is the port of the entering of message, delivers to bag to message then and transmits processing 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 true CN102394795A (en) 2012-03-28
CN102394795B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102882746A (en) * 2012-10-11 2013-01-16 盛科网络(苏州)有限公司 Measuring method and measuring system of flow table adding rate in Openflow switchboard system
CN103580936A (en) * 2012-07-20 2014-02-12 上海贝尔股份有限公司 Method for executing tests in network elements and corresponding network elements
WO2014085970A1 (en) * 2012-12-04 2014-06-12 华为技术有限公司 Method and apparatus for testing throughput, receiving end device and sending end device
CN104253723A (en) * 2014-09-29 2014-12-31 电子科技大学 Software and hardware collaborative implementation-based switch verification test method and device
CN106209499A (en) * 2016-06-28 2016-12-07 醴陵恒茂电子科技有限公司 A kind of Ethernet of stablizing is given out a contract for a project the method and apparatus of tester flow
US9645748B2 (en) 2015-06-03 2017-05-09 Hon Hai Precision Industry Co., Ltd. Method and system for transmission path optimization in a storage area network
CN111385164A (en) * 2018-12-29 2020-07-07 江苏迪纳数字科技股份有限公司 Communication protocol gateway function test method for actively reporting multi-protocol free combination message

Citations (3)

* 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
US20090161569A1 (en) * 2007-12-24 2009-06-25 Andrew Corlett System and method for facilitating carrier ethernet performance and quality measurements

Patent Citations (3)

* 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
US20090161569A1 (en) * 2007-12-24 2009-06-25 Andrew Corlett System and method for facilitating carrier ethernet performance and quality measurements
CN101267363A (en) * 2008-04-24 2008-09-17 杭州华三通信技术有限公司 Loop testing method, system and device

Cited By (13)

* 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
CN102882746A (en) * 2012-10-11 2013-01-16 盛科网络(苏州)有限公司 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
CN104040952A (en) * 2012-12-04 2014-09-10 华为技术有限公司 Method and apparatus for testing throughput, receiving end device and sending end device
CN104040952B (en) * 2012-12-04 2017-05-10 华为技术有限公司 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
CN104253723A (en) * 2014-09-29 2014-12-31 电子科技大学 Software and hardware collaborative implementation-based switch verification test method and device
US9645748B2 (en) 2015-06-03 2017-05-09 Hon Hai Precision Industry Co., Ltd. Method and system for transmission path optimization in a storage area network
CN106209499A (en) * 2016-06-28 2016-12-07 醴陵恒茂电子科技有限公司 A kind of Ethernet of stablizing is given out a contract for a project the method and apparatus of tester flow
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
CN111385164A (en) * 2018-12-29 2020-07-07 江苏迪纳数字科技股份有限公司 Communication protocol gateway function test method for actively reporting multi-protocol free combination message
CN111385164B (en) * 2018-12-29 2021-11-30 江苏迪纳数字科技股份有限公司 Communication protocol gateway testing method for actively reporting multi-protocol free combination message

Also Published As

Publication number Publication date
CN102394795B (en) 2013-10-30

Similar Documents

Publication Publication Date Title
CN102394795B (en) Throughput performance test processing engine embedded into Ethernet exchange chip and implementation method therefor
CN101986648B (en) Negotiation method, device and network device of TCP option
CN111769998B (en) Method and device for detecting network delay state
CN104378308A (en) Method and device for detecting message sending rate
CN102882746B (en) Measuring method and measuring system of flow table adding rate in Openflow switchboard system
CN1913449A (en) Method and systems for optimization analysis in networks
CN109729007A (en) A kind of method, apparatus and equipment for transmitting data
CN102104502A (en) Ethernet equipment performance test platform based on Linux system
CN101547063A (en) Method and system for testing forward delay
CN113542007A (en) Network OAM method and device
CN113328902A (en) Network performance detection method and device and network equipment
CN104378451A (en) Network communication route selecting method, device and system
CN110248379A (en) The performance test methods and device of base station in WLAN
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
CN100546261C (en) The method and system of Wireless LAN testing
CN110417687A (en) A kind of message sends and receives method and device
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
CN101777037A (en) Method and system for searching data transmission in engine real-time system
CN103701626A (en) Method and equipment for acquiring bandwidth information
US11677651B2 (en) UDPING—continuous one-way monitoring of multiple network links
CN102497296A (en) Method for testing normality of network card receiving and sending packets
CN111988158B (en) Chip-level OAM message sending method, device, system and storage medium
CN112152925B (en) Data transmission method, terminal and communication system
CN103297474A (en) Batching processing sub-packet method and batching processing sub-packet system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
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.