CN1996817A - A method and device for testing the high-speed channel of the communication products - Google Patents

A method and device for testing the high-speed channel of the communication products Download PDF

Info

Publication number
CN1996817A
CN1996817A CN 200610167201 CN200610167201A CN1996817A CN 1996817 A CN1996817 A CN 1996817A CN 200610167201 CN200610167201 CN 200610167201 CN 200610167201 A CN200610167201 A CN 200610167201A CN 1996817 A CN1996817 A CN 1996817A
Authority
CN
China
Prior art keywords
ethernet
data frame
ethernet data
switching equipment
port
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.)
Pending
Application number
CN 200610167201
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 200610167201 priority Critical patent/CN1996817A/en
Publication of CN1996817A publication Critical patent/CN1996817A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

This invention relates to communication field and provides one method and device of communication product high speed channel testing, which solves the current technique problems for not able to suit Ethernet with high test cost and low reliability and small test data flow, wherein, it realizes terminal flexible match for terminal speed business flow testing.

Description

Method and device for testing high-speed channel of communication product
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for testing a high-speed channel of a communication product.
Background
Ethernet switching technology has been developed from the original FE (fast ethernet) to the present GE (gigabit ethernet) and the future 10GE (gigabit ethernet), and is widely applied to network devices (also called access layer devices) on the access network layer. If the ethernet adopts a star network connection, as shown in fig. 1; if the uplink capacity of each slot of the access layer equipment is also increased to 10GE from the original GE, the upgrading of the uplink capacity causes problems such as signal crosstalk and the switching port can not reach the port linear speed of a chip nominal, so that a series of related test problems are brought to designers when designing communication products, and if the designers can test the performances of the designed products when designing the communication products, the designed communication products can be ensured to be suitable for the rapid development of the Ethernet switching technology.
At present, when a communication product is tested in a high-speed channel, a manual testing mode is mostly adopted, a tester needs to test according to an actual application environment, only the product performance of the tested communication product in the current environment can be obtained, the problem that the signal quality of the communication product designed by the designer cannot have crosstalk is difficult to ensure, the actual linear speed of a switching port cannot reach the port linear speed which is nominal by a chip and cannot adapt to the high-speed development of the Ethernet; in addition, different test environments need to be set up according to different communication products when the performance of the communication products is tested in a manual mode, as shown in fig. 2, a test environment needs to be set up once after one product is tested, and a lot of test terminals (optional) and network tester ports can be used during testing, so that the cost is high; the reliability of the terminal is low; often, the convergence ratio between the interface board and the terminal will make the data flow smaller, and the expected test effect cannot be achieved.
It can be seen from the above that, the existing testing technology for the high-speed channel of the communication product cannot adapt to the high-speed development of the ethernet, has the defects of high testing cost, low terminal reliability and small testing data flow, is difficult to achieve the expected testing effect, and brings great difficulty to the design and testing of the communication product.
Disclosure of Invention
In view of the problems existing in the prior art, embodiments of the present invention provide a method and an apparatus for testing a high-speed channel of a communication product, which solve the requirement of port linear speed traffic testing, can test the crosstalk problem between backplane wires connecting a switching network board and each interface board in a real environment, and solve the reliability problem of the long-term linear speed traffic testing.
The embodiment of the invention is realized by the following technical scheme:
a method of high-speed channel testing of a communication product, the method comprising:
a. sending an Ethernet data frame to the tested Ethernet switching equipment, and receiving the Ethernet data frame by the Ethernet switching equipment;
b. outputting an ethernet data frame through a sending end of a first port according to a destination MAC address or a Vlan ID identified by a virtual local area network in the ethernet data frame, wherein the first port is a port corresponding to the destination MAC address or the Vlan ID;
c. after the Ethernet data frame is output, modifying a destination MAC address or vlan ID in the Ethernet data frame into an address corresponding to a second port, wherein the second port is another port of the Ethernet switching equipment, and sending the Ethernet data frame with the modified address to a receiving end of a first port of the Ethernet switching equipment;
d. the Ethernet switching equipment receives the Ethernet data frame again, and executes the steps b and c until the Ethernet data frame passes through all ports needing to be tested on the tested Ethernet switching equipment, and the Ethernet data frame is output through the sending end of the port needing to be tested finally; and measuring a performance parameter indicating the capability of the Ethernet switching equipment for processing the Ethernet data frame according to the Ethernet data frame flowing through all the ports of the Ethernet switching equipment.
The device for testing the high-speed channel of the communication product comprises a sending module, a modifying module, a receiving module and a counting module,
the sending module is used for sending the Ethernet data frame and sending the Ethernet data frame to the tested Ethernet switching equipment;
the modification module is used for receiving an Ethernet data frame sent by Ethernet switching equipment, replacing a destination MAC address or Vlan ID in the Ethernet data frame with a MAC address or Vlan ID corresponding to another port of the Ethernet switching equipment, returning the Ethernet data frame to the Ethernet switching equipment, repeating the steps until the Ethernet data frame flows through all ports on the Ethernet switching equipment, and sending the Ethernet data frame to the receiving module;
the receiving module is used for receiving the Ethernet data frame sent by the modifying module;
the statistic module is used for counting the Ethernet data frames sent by the receiving module and the sending module, and measuring the performance parameters of the Ethernet switching equipment for processing the Ethernet data frames.
A system for testing a high-speed channel of a communication product comprises an Ethernet switching device to be tested, a sending module, a modifying module, a receiving module and a counting module;
the sending module is used for sending the Ethernet data frame and sending the Ethernet data frame to the tested Ethernet switching equipment;
the modification module is used for receiving an Ethernet data frame sent by Ethernet switching equipment, replacing a destination MAC address or Vlan ID in the Ethernet data frame with a MAC address or Vlan ID corresponding to another port of the Ethernet switching equipment, returning the Ethernet data frame to the Ethernet switching equipment, executing the steps until the Ethernet data frame flows through all ports on the Ethernet switching equipment, and sending the Ethernet data frame to the receiving module;
the receiving module is used for receiving the Ethernet data frame sent by the modifying module;
the statistic module is used for counting the Ethernet data frames sent by the receiving module and the sending module, and measuring the performance parameters of the Ethernet switching equipment for processing the Ethernet data frames.
The technical scheme provided by the invention can show that the invention provides a method and a device for testing a high-speed channel of a communication product, and solves the defects that the existing testing technology of the high-speed channel of the communication product cannot adapt to the high-speed development of Ethernet, the testing cost is high, the terminal reliability is low, and the testing data flow is small, so that the testing cost is reduced, the flexible configuration among ports is realized, the requirement of port linear speed service flow testing is met, the problem of crosstalk between backboard wiring connecting a switching network board and each interface board can be tested in a real environment, and the reliability problem of the long-time incoming linear speed service flow testing is solved. The test system provided by the invention has higher test reliability and comprehensive test coverage capability, is consistent with the actual environment of a product, and has higher simulation degree.
Drawings
FIG. 1 is an Ethernet network employing a star connection;
FIG. 2 is a schematic diagram of a method for testing a high-speed channel of a communication product according to the prior art;
FIG. 3 is a schematic flow chart of example 1 according to the present invention;
FIG. 4 is a schematic flow chart of example 2 provided by the present invention;
fig. 5 is a schematic flow chart of the application of the apparatus of the present invention in the case of embodiment 1.
Detailed Description
The embodiment of the invention provides a method and a device for testing a high-speed channel of a communication product, provides a flexible service test scheme and a positioning means with relatively low test cost and a simple test system structure, and has better compatibility and portability. The technical scheme of the invention can also be realized in logic embedded design, the code portability after design and molding is strong, and the code portability can be integrated in the forwarding logic of the interface board of the communication product, thereby providing a new solution for the problem of product performance positioning of the communication product at each stage.
The method provided by the embodiment of the invention comprises the following steps:
1) sending an Ethernet data frame to the tested Ethernet switching equipment, and receiving the Ethernet data frame by the Ethernet switching equipment;
2) outputting an ethernet data frame through a sending end of a first port according to a destination MAC address or a Vlan ID identified by a virtual local area network in the ethernet data frame, where the first port is a port corresponding to the current destination MAC address or Vlan ID;
3) after the Ethernet data frame is output, modifying a destination MAC address or Vlan ID in the Ethernet data frame to be an address corresponding to a second port, wherein the second port is another port of the Ethernet switching equipment, and sending the Ethernet data frame with the modified address to a receiving end of the current first port of the Ethernet switching equipment;
4) the Ethernet switching equipment receives the Ethernet data frame again, and executes the steps 2) and 3) until the Ethernet data frame passes through all ports needing to be tested on the tested Ethernet switching equipment, and the Ethernet data frame is output through the sending end of the port needing to be tested finally;
5) and for each Ethernet data frame sent to the tested Ethernet equipment, executing the steps 1) to 4) until the Ethernet data frame is stopped being sent to the Ethernet switching equipment, counting the number of the Ethernet data frames sent from the last port of the Ethernet switching equipment, or the number of the correct Ethernet data frames sent out, or the number of the wrong Ethernet data frames sent out (including the number of wrong frames and the number of out-of-order frames).
Before testing an Ethernet switching device, firstly configuring a corresponding relation between a port in the Ethernet switching device and a static MAC address or a Vlan ID, and establishing a port forwarding MAC address or a port forwarding Vlan ID table; in the port forwarding MAC address table or the port forwarding Vlan ID table, one static MAC address or Vlan ID corresponds to a receiving end of one port and a transmitting end of another port of the ethernet switching device under test.
Setting the flow of data frames sent by a port of the test equipment or the time for sending the data frames, generally setting the time for sending the ethernet data frames by the test equipment to be 24 hours, that is, sending the ethernet data frames to the ethernet switching equipment uninterruptedly within 24 hours; the following will describe in detail the specific implementation steps of the embodiment of the present invention, where the specific implementation steps include specific testing steps and statistical steps, and the testing steps include:
step 1, a test device sends an ethernet data frame, sets an initial address of a destination MAC address or an initial Vlan ID of a destination Vlan ID in the ethernet data frame according to a port forwarding MAC address table or a port forwarding Vlan ID table of an ethernet switching device to be tested, and sends the ethernet data frame to the ethernet switching device through a receiving end of a first port corresponding to the initial address or the initial Vlan ID by the test device, and the step 2 is executed;
step 2, the ethernet switching device receives the ethernet data frame, analyzes the ethernet data frame to obtain a destination MAC address or a destination Vlan ID in the ethernet data frame, searches for a sending end of a second port corresponding to the destination MAC address or the destination Vlan ID in the port forwarding MAC address table or the port forwarding Vlan ID table according to the destination MAC address or the destination Vlan ID to obtain a second port number, and forwards the ethernet data frame to an FPGA (field programmable logic array) through the sending end of the second port to step 3;
step 3, after receiving the ethernet data frame, the FPGA analyzes the ethernet data frame to obtain a destination MAC address or a destination Vlan ID of the ethernet data frame, and replaces the destination MAC address or the destination Vlan ID of the ethernet data frame with an MAC address or a Vlan ID corresponding to a third port of the ethernet switching device according to an MAC address conversion relationship or a Vlan ID conversion relationship configured in advance by the FPGA; in order to better ensure the correctness of the Ethernet data frame, the FPGA carries out check sum calculation again on the check bit of the Ethernet data frame which replaces the destination MAC address or the destination Vlan ID; then sending the layer 2 data frame to the receiving end of the second port of the LSW, and going to step 4;
the MAC address conversion relation or Vlan ID conversion relation may be sequentially increased or decreased in order of the MAC address or Vlan ID, or may be a MAC address that is set to be changed into another MAC address when the FPGA is configured, where the two MAC addresses may be randomly set, and there is no rule between the two, or may be set according to a certain rule;
the check bit is used for the Ethernet equipment receiving the Ethernet data frame to judge whether the received 2-layer data frame is a correct Ethernet data frame; after receiving the ethernet data frame, the ethernet device checks the check bit of the ethernet data frame and the content of the ethernet data frame, and if the check bit is found to be inconsistent with the content of the ethernet data frame, the ethernet device considers that the ethernet data frame may have an error in the transmission process and discards the data frame, so that the check bit needs to be recalculated after replacing the MAC address or Vlan ID of the ethernet data frame;
the third port of the ethernet switching device is different from the first port and the second port, and is one of the ports to be tested in the ethernet switching device, but is different from the first port and the second port;
step 4, after the ethernet data frame is re-received by the ethernet switching device, analyzing to obtain a current destination MAC address or a current destination Vlan ID in the ethernet data frame, the ethernet switching device looking up a port number corresponding to the current destination MAC address or the current destination Vlan ID of the ethernet data frame, that is, the port number of the third port, in the port forwarding MAC address table or the port forwarding Vlan ID table, and then continuing to forward the ethernet data frame to the FPGA through the transmitting end of the third port; in this step, after the ethernet switching device receives the ethernet data frame again, it may determine whether the ethernet data frame is correct according to the check bit of the ethernet data frame, if so, the forwarding to the forwarding FPGA is performed, otherwise, the data frame of the layer 2 data is discarded; go to step 5;
step 5, the FPGA receives the Ethernet data frame, replaces a target MAC address or a target Vlan ID in the Ethernet data frame according to a MAC address conversion relation or a Vlan ID conversion relation configured in advance by the FPGA, and performs checksum calculation on the check bit of the Ethernet data frame again, namely, step 3 is executed;
step 6, according to the above steps, the ethernet data frame flows through all ports to be tested on the ethernet switching device, that is, the ethernet data frame traverses all ports to be tested on the ethernet switching device until all ports to be tested on the ethernet switching device are connected in series for testing; the Ethernet data frame receives the Ethernet data frame forwarded by the FPGA through a receiving end of a port to be tested at last, forwards the Ethernet data frame to a port corresponding to an initial MAC address or an initial Vlan ID of the Ethernet data frame, and sends the Ethernet data frame to the testing equipment from the Ethernet switching equipment through a sending end of the port;
one or more ports to be tested on the ethernet switching device may be provided, and only steps 1 to 2 need to be executed when the port is one; when the number of the ports is more than one, the ethernet data frame needs to traverse each port to be tested according to the above steps.
And (3) executing the steps 1 to 6 for each Ethernet data frame sent to the Ethernet switching equipment until the test equipment stops sending the Ethernet data frame to the Ethernet switching equipment.
The above is the testing step in the specific implementation steps provided by the embodiments of the present invention; the statistical steps are as follows:
after the test equipment stops receiving the ethernet data frames sent by the ethernet switching equipment, the test equipment counts the received and sent ethernet data frames, that is, counts the ethernet data frames received and sent by the test equipment in a specific time period, and counts the number of the ethernet data frames, the number of the received correct ethernet data frames, and the number of the received error ethernet data frames (including error frames and out-of-order frames);
usually, the time for the test device to continuously send the ethernet data frame to the tested ethernet switching device is 24 hours, that is, within 24 hours, the ethernet data frame is continuously sent to the tested ethernet switching device, after the test device stops sending the ethernet data frame to the ethernet switching device, statistics is performed on the ethernet data frame received and sent by the test device within 24 hours, the number of erroneous ethernet data frames received by the test device and the number of ethernet data frames sent by the test device are counted, and a performance parameter indicating the ethernet data frame processing capability of the ethernet switch is measured, for example, according to the formula:
Figure A20061016720100121
calculating the test result in m*10-nIs used to indicate the test result to see if n meets the requirements of the relevant criteria on the processing capacity of the ethernet switch.
The technical solution of the present invention is described below with reference to fig. 3 and 4 and specific embodiments:
example 1: as shown in fig. 3, the technical solution of the present invention is described by taking an example that an ethernet data frame is a layer 2 data frame, a destination MAC address in the layer 2 data frame is modified, an ethernet switch device to be tested is an lans switch (local area network switch, abbreviated as "LSW"), and a device for modifying the destination MAC address in the layer 2 data frame is an FPGA;
before starting testing, the corresponding relation between the port in the LSW and the static MAC address needs to be configured, and a port forwarding MAC address table is established; in the port forwarding MAC address table, each static MAC address corresponds to a receiving end of a first port and a transmitting end of a second port of a LSW to be tested at the same time, where the first port may be any one port on the LSW and is used for the LSW to receive a layer 2 data frame for the first time, and the second port is another port on the LSW and is different from the first port;
setting the flow of data frames sent by a tester port or the time for sending the data frames by the tester port, generally setting the time for sending the data frames of the 2 layer by the tester to be 24 hours, continuously sending the data frames of the 2 layer to the LSW within 24 hours, and starting testing, wherein the specific operation steps comprise a testing step and a statistic step, wherein the testing step comprises:
step 31, the tester sends the layer 2 data frame, and sets the initial address of the destination MAC address in the layer 2 data frame according to the port forwarding MAC address table of the LSW to be tested, as shown in fig. 3, the initial address of the destination MAC address in the layer 2 data frame is 00: e0: fc:00:00:01, the port number of the corresponding first port is M, the tester sends the layer 2 data frame to the LSW to be tested through the receiving end of the port M, and step 32;
step 32, receiving the layer 2 data frame by the LSW, analyzing to obtain a destination MAC address in the layer 2 data frame, as shown in fig. 3, where the destination MAC address is 00: e0: fc:00:00:01, obtaining a port number of a second port corresponding to the destination MAC address by forwarding the MAC address table query at the port as x, and the LSW sends the layer 2 data frame to the FPGA through a sending end of the port x, and then step 33;
step 33, after receiving the data frame of the layer 2, the FPGA analyzes the data frame of the layer 2 to obtain a destination MAC address of the data frame of the layer 2, configures the FPGA in advance, sets a conversion relation of the destination MAC address in the data frame of the layer 2 received by the FPGA, and in a MAC address change shown in a first FPGA frame on the right in fig. 3, the FPGA replaces the MAC address 00: e0: fc:00:00:01 with 00: e0: fc:00:00: 00:02, in order to better ensure the correctness of the data frame of the layer 2, the FPGA performs check and calculation again on the check bit of the data frame of the layer 2 which has replaced the MAC address, and then sends the data frame of the layer 2 to the receiving end of the LSW port x, and goes to step 34;
the check bit is used for the Ethernet equipment receiving the 2-layer data frame to judge whether the 2-layer data frame received by the Ethernet equipment is a correct 2-layer data frame; after receiving the layer 2 data frame, the ethernet device (including the LSW) checks the check bits of the layer 2 data frame and the content of the layer 2 data frame, and if the check bits are found to be inconsistent with the content of the layer 2 data frame, the ethernet device (including the LSW) considers that the layer 2 data frame may be in error in the transmission process, and discards the data frame, so that the check bits need to be recalculated after replacing the MAC address of the layer 2 data frame;
step 34, after the data frame of the layer 2 is re-received by the LSW, analyzing to obtain the destination MAC address of the data frame of the layer 2 at this time, as shown in fig. 3, the current destination MAC address of the data frame of the layer 2 is 00: e0: fc:00:00: 00:02, looking up in the port forwarding MAC address table to obtain the port as port y, and then forwarding the data frame of the layer 2 to the FPGA connected to the port y through the transmitting end of the port y, and going to step 35;
in this step, after receiving the data frame of the layer 2 again, the LSW may determine whether the data frame of the layer 2 is correct according to the check bit of the data frame of the layer 2, if so, perform forwarding to the forwarding FPGA, otherwise, discard the data frame of the layer 2; go to step 35;
step 35, as shown in fig. 3, receiving the data frame of the layer 2 sent by the LSW by the FPGA connected to the port y, replacing 00: e0: fc:00:00:02 with 00: e0: fc:00:00:03 according to the MAC address configured in advance by the FPGA, checking and calculating the check bit of the data frame of the layer 2 with the destination MAC address by the FPGA, sending the data frame of the layer 2 to the receiving end of the port y, receiving the data frame of the layer 2 again by the LSW, analyzing to obtain the current destination MAC address in the data frame of the layer 2, where the current destination MAC address in the data frame of the layer 2 is 00: e0: fc:00:00: 00:03, searching to obtain the port in the port forwarding MAC address table, and forwarding the data frame of the layer 2 to the FPGA connected to the port through the sending end of the port;
step 36, for each port to be tested on the LSW, a cyclic operation similar to the above-mentioned step of replacing the destination MAC address is performed until the layer 2 data frame passes through all ports to be tested on the LSW, that is, until all ports to be tested on the LSW are connected in series for testing, and the layer 2 data frame is forwarded to the port M according to the port forwarding MAC address table through the receiving end of the last tested port N, and returned to the tester through the transmitting end of the port M; the value of N may be 0 or any positive integer other than 0, where N is 0 corresponds to only one port of the LSW to be tested, and N is any positive integer other than 0 corresponds to more than one port of the LSW to be tested.
Steps 31 through 36 are performed for each layer 2 data frame sent to the LSW until the tester stops sending layer 2 data frames to the LSW.
The statistical steps comprise:
after the tester stops receiving the data frame of 2 layer sent by the LSW, the tester makes statistics on the data frame of 2 layer received and sent by the tester, namely makes statistics on the data frame of 2 layer received and sent by the tester, and makes statistics on the number of data frame of 2 layer sent by the sending port of the tester, the number of data frame of 2 layer received by the receiving port of the tester, the number of correct data frame of 2 layer received, and the number of wrong data frame of 2 layer (including error frame and disorder frame) received; according to the formula:
calculating the test result in m*10-nIs used to express the test results to see if n meets the requirements of the relevant criteria on LSW processing power.
Usually, the time for the tester to continuously send the data frame of the layer 2 to the LSW is set to 24 hours, namely, the data frame of the layer 2 is continuously sent to the LSW within 24 hours; and after the tester stops sending the data frame of the 2 layer to the LSW, counting the data frame of the 2 layer received and sent by the tester within 24 hours, counting the number of the data frame of the 2 layer with errors and the number of the data frame of the 2 layer sent, and measuring a performance parameter which indicates the capability of the LSW for processing the data frame of the 2 layer.
Example 2: as shown in fig. 4, the technical solution of the present invention is described by taking an ethernet data frame as a layer 2 data frame, modifying Vlan ID in the layer 2 data frame, an ethernet switch device to be tested as lan switch (local area network switch, abbreviated as "LSW"), and a device for performing the function of modifying Vlan ID in the layer 2 data frame as FPGA as an example;
the specific operation steps of embodiment 2 are similar to the specific operation steps of embodiment 1, except that the target Vlan ID in the layer 2 data frame is modified by the FPGA in embodiment 2, where the transformation of the Vlan ID value is shown in fig. 4, and is not described again here.
The performance parameters in embodiment 1 and embodiment 2 include frame loss rate, frame error rate, and frame out-of-order rate of processing 2-layer data frames by the LSW, and LSW nominal performance parameters.
The data frame of the 2-layer is only one of ethernet data frames, and besides the data frame of the 2-layer, the data frame to be tested may also be other types of data frames transmitted in the ethernet.
Fig. 5 is a schematic flow chart of the application of the apparatus for testing a high-speed channel of a communication product according to the present invention in the above embodiment 1; the device comprises a sending module, a modifying module, a calculating module, a receiving module and a counting module; wherein,
a sending module, configured to send the layer 2 data frame according to the port forwarding MAC address table, specifically, it needs to be described here that the sending module sends the layer 2 data frame to the LSW to be tested on the premise that the LSW has established the port forwarding MAC address table;
and the modification module is used for modifying the destination MAC address in the data frame of the 2 layer after receiving the data frame of the 2 layer, and specifically, the destination MAC address of the data frame of the 2 layer is replaced by the MAC address corresponding to the next port of the LSW according to the MAC address conversion relation of the FPGA which is configured in advance.
The calculation module is used for carrying out check sum calculation on the check parameters of the data frame of the layer 2 with the destination MAC address replaced again, calculating the check parameters of the data frame of the layer 2, and then forwarding the data frame of the layer 2 to the tested LSW by the modification module;
the receiving module is used for receiving the data frame of the layer 2 returned by the LSW to be tested;
the counting module is used for counting the 2-layer data frames which are sent and received by the sending module and the receiving module within a set time after the sending module finishes sending the 2-layer data frames to the LSW and the receiving module stops receiving the 2-layer data frames returned by the tested LSW, and counting the number of the 2-layer data frames sent by the sending module, the number of the 2-layer data frames received by the receiving module, the number of the correct received 2-layer data frames and the number of the wrong received 2-layer data frames (including error frames and disordered frames);
in general, the statistical time is 24 hours, and in 24 hours, the sending module sends the data frame of 2 layer to the LSW to be tested without interruption; a performance parameter is measured that indicates the ability of the LSW to process the layer 2 data frames. According to the formula:
calculating the test result in m*10-nIs used to express the test results to see if n meets the requirements of the relevant criteria on LSW processing power.
The specific operation steps of the apparatus embodiment are similar to those of method embodiment 1, and as shown in fig. 5, are not described herein again.
It should be noted that the function of the modification module in the apparatus may be performed by the FPGA, or may be performed by the programmable logic device, the network processor, or the ethernet switching chip.
The specific operation steps of the embodiment of the system for testing the high-speed channel of the communication product provided by the invention are the same as the application process of the device for testing the high-speed channel of the communication product provided by the invention in the method embodiment 1, and are not repeated here; the ethernet switching device to be tested comprises an LSW.
The technical solutions provided by the present invention have been described only by taking the ethernet data frame as the data frame of layer 2, the tested ethernet switching device as the LSW, and the device performing modification and modification of the destination MAC address or Vlan ID in the data frame of layer 2 as the FPGA, but the present invention is not limited to these examples, and all technical solutions based on sending the ethernet data frame to the tested ethernet switching device, modifying the destination MAC address and/or Vlan ID in the ethernet data frame, and thereby measuring the capability of the tested ethernet switching device to process the ethernet data frame are within the protection scope of the present invention, regardless of the form used.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for high-speed channel testing of communication products, the method comprising:
a. sending an Ethernet data frame to the tested Ethernet switching equipment, and receiving the Ethernet data frame by the Ethernet switching equipment;
b. outputting an ethernet data frame through a sending end of a first port according to a destination MAC address or a Vlan ID identified by a virtual local area network in the ethernet data frame, wherein the first port is a port corresponding to the destination MAC address or the Vlan ID;
c. after the Ethernet data frame is output, modifying a destination MAC address or Vlan ID in the Ethernet data frame to be an address corresponding to a second port, wherein the second port is another port of the Ethernet switching equipment, and sending the Ethernet data frame with the modified destination MAC address or Vlan ID to a receiving end of a first port of the Ethernet switching equipment;
d. the Ethernet switching equipment receives the Ethernet data frame again, and executes the steps b and c until the Ethernet data frame passes through the port needing to be tested on the tested Ethernet switching equipment, and the Ethernet data frame is output through the sending end of the last tested port; and measuring a performance parameter indicating the capability of the Ethernet switching equipment for processing the Ethernet data frame according to the Ethernet data frame which flows through the port needing to be tested of the Ethernet switching equipment in a specific time.
2. The method of claim 1, wherein step c further comprises: and replacing the destination MAC address or the Vlan ID in the Ethernet data frame according to the preset relationship of the destination MAC address or the Vlan ID.
3. Method according to claim 1, characterized in that the check parameters of the ethernet data frame are recalculated after the destination MAC address or Vlan ID in the ethernet data frame has been modified.
4. The method of claim 1, wherein the performance parameters include one or more of the following:
a nominal performance parameter of the Ethernet switching device;
parameters indicating whether the Ethernet switching equipment has frame loss, error frame and disorder frame conditions when processing the Ethernet data frame;
and the parameter indicates whether the proportion of the frame loss, the frame error and the disordered frame of the Ethernet switching equipment meets the nominal proportion requirement of the Ethernet switching equipment.
5. The method of claim 1, wherein the number of ports to be tested is one or more than one;
when the number of the ports to be tested is more than one, the ethernet data frame needs to traverse each port to be tested.
6. The device for testing the high-speed channel of the communication product is characterized by comprising a sending module, a modifying module, a receiving module and a counting module, wherein,
the sending module is used for sending the Ethernet data frame and sending the Ethernet data frame to the tested Ethernet switching equipment;
the modification module is used for receiving an Ethernet data frame sent by Ethernet switching equipment, replacing a destination MAC address or Vlan ID in the Ethernet data frame with a MAC address or Vlan ID corresponding to another port of the Ethernet switching equipment, returning the Ethernet data frame to the Ethernet switching equipment, executing the steps until the Ethernet data frame flows through all ports on the Ethernet switching equipment, and sending the Ethernet data frame to the receiving module;
the receiving module is used for receiving the Ethernet data frame sent by the modifying module;
the statistic module is used for counting the Ethernet data frames sent by the receiving module and the sending module, and measuring the performance parameters of the Ethernet switching equipment for processing the Ethernet data frames.
7. The apparatus of claim 6, wherein the modification module replaces the destination MAC address or Vlan ID in the ethernet data frame according to a preconfigured relationship between the destination MAC address or Vlan ID.
8. The apparatus of claim 6, further comprising a calculation module, wherein the calculation module is configured to recalculate the check parameter of the ethernet frame after the destination MAC address or Vlan ID in the ethernet frame is modified.
9. The apparatus of claim 6, wherein the performance parameters include one or more of the parameters:
a nominal performance parameter of the Ethernet switching device;
parameters indicating whether the Ethernet switching equipment has frame loss, error frame and disorder frame conditions when processing the Ethernet data frame;
and the parameter indicates whether the proportion of the frame loss, the frame error and the disordered frame of the Ethernet switching equipment meets the nominal proportion requirement of the Ethernet switching equipment.
10. The system for testing the high-speed channel of the communication product is characterized by comprising Ethernet switching equipment to be tested, a sending module, a modifying module, a receiving module and a counting module;
the sending module is used for sending the Ethernet data frame and sending the Ethernet data frame to the tested Ethernet switching equipment;
the modification module is used for receiving an Ethernet data frame sent by Ethernet switching equipment, replacing a destination MAC address or Vlan ID in the Ethernet data frame with a MAC address or Vlan ID corresponding to another port of the Ethernet switching equipment, returning the Ethernet data frame to the Ethernet switching equipment, executing the steps until the Ethernet data frame flows through all ports on the Ethernet switching equipment, and sending the Ethernet data frame to the receiving module;
the receiving module is used for receiving the Ethernet data frame sent by the modifying module;
the statistic module is used for counting the Ethernet data frames sent by the receiving module and the sending module, and measuring the performance parameters of the Ethernet switching equipment for processing the Ethernet data frames.
CN 200610167201 2006-12-13 2006-12-13 A method and device for testing the high-speed channel of the communication products Pending CN1996817A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610167201 CN1996817A (en) 2006-12-13 2006-12-13 A method and device for testing the high-speed channel of the communication products

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200610167201 CN1996817A (en) 2006-12-13 2006-12-13 A method and device for testing the high-speed channel of the communication products

Publications (1)

Publication Number Publication Date
CN1996817A true CN1996817A (en) 2007-07-11

Family

ID=38251778

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610167201 Pending CN1996817A (en) 2006-12-13 2006-12-13 A method and device for testing the high-speed channel of the communication products

Country Status (1)

Country Link
CN (1) CN1996817A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453390B (en) * 2008-12-30 2011-10-26 中兴通讯股份有限公司 Test method and system for biplane double layer communication
WO2017219840A1 (en) * 2016-06-21 2017-12-28 中兴通讯股份有限公司 Device port detection method and apparatus
CN112910739A (en) * 2021-02-07 2021-06-04 杭州迪普科技股份有限公司 Method and device for testing performance of equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453390B (en) * 2008-12-30 2011-10-26 中兴通讯股份有限公司 Test method and system for biplane double layer communication
WO2017219840A1 (en) * 2016-06-21 2017-12-28 中兴通讯股份有限公司 Device port detection method and apparatus
CN112910739A (en) * 2021-02-07 2021-06-04 杭州迪普科技股份有限公司 Method and device for testing performance of equipment

Similar Documents

Publication Publication Date Title
US7710888B2 (en) Apparatus and method for testing and fault isolation in a communication network
CN105099828B (en) A kind of implementation method of high performance network tester
US7805657B2 (en) Techniques to determine transmission quality of a signal propagation medium
US9294355B2 (en) Adjustable data rates
US20090080459A1 (en) Long-reach ethernet for 1000BASE-T and 10GBASE-T
KR102364803B1 (en) Communication method, communication device and storage medium
CN101621328A (en) Method for realizing photoelectric mutual exclusion, Ethernet photoelectric mutual exclusion interface and network equipment
CN106452942A (en) Track traffic industry vehicle Ethernet exchange software performance test system and method
CN110493310B (en) Software defined protocol controller and method
CN110943889B (en) Intelligent substation in-place looped network communication testing device and method
CN102413018A (en) FPGA (field programmable gate array) based software-hardware coordinated network test system and method
CN106649012B (en) A kind of method and apparatus of automatic test
JP5694717B2 (en) Traffic distribution control process and apparatus
CN103107924A (en) Testing method for performance of network device with high-rate port by utilizing low-rate port
CN105337815A (en) Testing method and device for master-slave switching time
CN1996817A (en) A method and device for testing the high-speed channel of the communication products
CN109815073B (en) PXI platform-based high-speed serial port SRIO test method
CN112511375B (en) Automatic test method for intelligent substation process level GOOSE dual-network receiving mechanism
CN104471888B (en) Processing method, equipment and the system of free block IDLE in block of burst data
CN107395454B (en) Simplified test verification system suitable for laser microwave hybrid link exchange
CN107769997B (en) AFDX exchange product exchange technology delay index testing device
CN109995603B (en) Method and device for measuring packet loss under Tag model and electronic equipment
CN103441818B (en) The detection method of a kind of data transmission fault and device
CN208707659U (en) A kind of Ethernet interface physical layer detection circuit based on RMII interface
Yi et al. Design and fpga implementation of ten gigabit ethernet mac controller

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20070711