CN115426328A - Shunting switch and testing device, system and method of switch - Google Patents

Shunting switch and testing device, system and method of switch Download PDF

Info

Publication number
CN115426328A
CN115426328A CN202210907318.2A CN202210907318A CN115426328A CN 115426328 A CN115426328 A CN 115426328A CN 202210907318 A CN202210907318 A CN 202210907318A CN 115426328 A CN115426328 A CN 115426328A
Authority
CN
China
Prior art keywords
port
switch
ports
forwarding
tested
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
CN202210907318.2A
Other languages
Chinese (zh)
Other versions
CN115426328B (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.)
Yunjian Information Technology Co ltd
Original Assignee
Yunjian Information Technology 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 Yunjian Information Technology Co ltd filed Critical Yunjian Information Technology Co ltd
Priority to CN202210907318.2A priority Critical patent/CN115426328B/en
Publication of CN115426328A publication Critical patent/CN115426328A/en
Application granted granted Critical
Publication of CN115426328B publication Critical patent/CN115426328B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • H04L49/555Error detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Abstract

The application relates to a shunt switch and a testing device, a system and a method of the switch, wherein the shunt switch comprises a first port, a second port and a third port; the second port and the third port are forwarding ports of the first port, and the third port is a forwarding port of the second port; the second port adopts a loop-back mode, and the transmission bandwidth of the third port is greater than that of the first port and the second port; the first port is an input port of the shunt switch and is used for receiving an externally input data packet; the third port is an output port of the shunt switch and is used for sending a data packet to the outside. By the method and the device, the problem that the service board cannot provide corresponding large flow is solved.

Description

Shunting switch and testing device, system and method of switch
Technical Field
The present application relates to the field of switch testing, and in particular, to a shunting switch and a device, system and method for testing the shunting switch.
Background
With the increasing port density of network products, the traffic ports gradually develop from 10GE to 25G, 40G, 100G, 200G, 400G and 800G. As a research and development internal software and hardware test, a simple and feasible method is needed to verify the reliability, service conformity and the like of a product, and as a production test, a single plate with a fault needs to be screened out through a large-flow pressure test, so that the delivery quality of the single plate is guaranteed.
In the prior art, various methods for testing a service single board exist.
For example, one test method is: and a special flow test instrument is used to be in one-to-one butt joint with the external service ports of the tested service board, so that flow receiving and sending are completed, and each port butted by the test instrument is counted to see whether the single board is normal or not. However, this testing method needs to occupy a large number of ports of the tester and double optical module resources, and is relatively complex in networking and relatively high in cost.
Another example of the test method is: and (3) carrying out a transceiving loopback test on the service port by using the CPU of the service board, and comparing the transceiving packets of each port by using the CPU to see whether packet loss exists or not after the transceiving packets of each port are finished. Although the testing method is simple, the pressure of the service board is not enough, and the requirement of the whole service pressure test of the single board cannot be met.
Generally speaking, in many methods for testing a service board, a loopback test of transceiving to a service port is relatively simple, but a relatively large amount of data packets is required, and the service board itself cannot provide a corresponding amount of data packets. Although dedicated traffic test instruments can provide a large amount of data packets, the corresponding instrument costs are very high.
Aiming at the problems that in the related art, when a service board is produced and tested, a single board with a fault needs to be screened out through a large-flow pressure test, and the service board cannot provide a corresponding large flow, an effective solution is not provided at present.
Disclosure of Invention
In this embodiment, a shunt switch and a testing apparatus, a testing system and a testing method for a shunt switch are provided to solve the problem that in the related art, a faulty board needs to be screened out through a large flow pressure test during a production test of a service board, and the service board itself cannot provide a corresponding large flow.
In a first aspect, a splitter switch is provided in this embodiment, where the splitter switch includes a first port, a second port, and a third port;
the second port and the third port are forwarding ports of the first port, and the third port is a forwarding port of the second port;
the second port adopts a loop-back mode;
the first port is an input port of the shunt switch and is used for receiving an externally input data packet;
the third port is an output port of the shunt switch and is used for sending a data packet to the outside.
In some embodiments, the number of the second ports and the third ports in the shunting switch is multiple;
the plurality of second ports and the plurality of third ports are forwarding ports of the first port, and the plurality of third ports are forwarding ports of each second port;
and the second ports all adopt a loop-back mode.
In some embodiments, the shunt switch further includes a first sub-network card and a second sub-network card connected to each other, and the number of the first ports is one;
the data forwarding bandwidth of the second sub-network card is a preset multiple of the data forwarding bandwidth of the first sub-network card;
the first port and the second port are connected with the first subnet card, and the third port is connected with the second subnet card;
the total number of the first ports and the second ports is the same as the preset multiple.
In some embodiments, the first sub-network card is a 100G sub-network card, and the second sub-network card is a 400G sub-network card;
the first port and the second port are both 100G ports, and the third port is a 400G port;
the total number of the first ports and the second ports is four.
In a second aspect, in this embodiment, there is provided a testing apparatus for a switch, the apparatus including: a tester and a shunt switch;
the shunting switch is the shunting switch provided in the first aspect;
the output port of the tester is connected with the input port of the shunt switch, and the output port of the shunt switch is the output port of the testing device.
In a third aspect, in this embodiment, a test system for a switch is provided, the system including: the system comprises a testing device and a switch to be tested;
the testing device is the testing device of the switch provided in the second aspect;
the switch to be tested comprises a fourth port and a fifth port, and the output port of the testing device is connected with the fourth port of the switch to be tested;
a fourth port and a fifth port in the switch to be tested are configured to form a forwarding loop, the fourth port is an input port and an output port of the forwarding loop, and the fifth port is a link port of the forwarding loop.
In some embodiments, the number of the fourth ports is one, and the number of the fifth ports is plural;
each fifth port adopts a loopback mode, the latter fifth port is a forwarding port of the former fifth port, the first fifth port is a forwarding port of the fourth port, and the fourth port is a forwarding port of the last fifth port.
In some embodiments, the number of the switches to be tested is multiple, and the number of the output ports of the testing device is also multiple;
and a plurality of output ports of the testing device are respectively connected with the fourth ports of the plurality of switches to be tested.
In a fourth aspect, in this embodiment, a method for testing a switch is provided, where the method is applied to the system for testing a switch provided in the third aspect, and the method includes:
connecting an output port of a testing device with a fourth port of a switch to be tested, and sending a data packet to the fourth port of the switch to be tested through the output port of the testing device;
detecting whether the number of data packets received by the fourth port of the switch to be tested is the same as the number of data packets sent by the fourth port of the switch to be tested;
if the number of the data packets is the same, judging that the tested switch is normal;
and if the number of the data packets is different, judging that the tested exchanger is abnormal.
In some of these embodiments, the method further comprises:
configuring a second port and a third port of a shunt switch as a forwarding port of a first port, configuring the third port as a forwarding port of the second port, and configuring the second port as a loopback mode;
configuring the first port as an input port of the shunt switch, connecting the first port with an output port of a tester, and configuring the third port as an output port of the shunt switch;
configuring a fourth port and a fifth port in the switch to be tested to form a forwarding loop; the fourth port is an input port and an output port of the forwarding loop, and the fifth port is a link port of the forwarding loop.
Compared with the related art, the shunting switch and the testing device, system and method of the switch provided in the embodiment can copy and forward data through the shunting switch, so that the data sending rate is greater than the data receiving rate. When the shunting switch is applied to a service board test scheme, the first port of the shunting switch can be connected with the output port of the tester, and then the third port can be connected with the port of the service board to be tested. After receiving the low-rate data sent by the tester, the shunt switch sends the high-rate data to the port of the tested service board through copying and forwarding of the data, and further meets the large-flow pressure required by the port test of the service board. Thereby solving the problem that the service board can not provide corresponding large flow.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic structural diagram of the shunt switch of the present embodiment.
Fig. 2 is a schematic diagram of switch test networking in the preferred embodiment.
Detailed Description
For a clearer understanding of the objects, aspects and advantages of the present application, reference is made to the following description and accompanying drawings.
Unless defined otherwise, technical or scientific terms used herein shall have the same general meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The use of the terms "a" and "an" and "the" and similar referents in the context of describing the invention (including a reference to the context of the specification and claims) are to be construed to cover both the singular and the plural, as well as the singular and plural. The terms "comprises," "comprising," "has," "having," and any variations thereof, as referred to in this application, are intended to cover non-exclusive inclusions; for example, a process, method, and system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or modules, but may include other steps or modules (elements) not listed or inherent to such process, method, article, or apparatus. Reference in this application to "connected," "coupled," and the like is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. Reference to "a plurality" in this application means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. In general, the character "/" indicates a relationship in which the objects associated before and after are an "or". The terms "first," "second," "third," and the like in this application are used for distinguishing between similar items and not necessarily for describing a particular sequential or chronological order.
In this embodiment, a shunt switch is provided, and fig. 1 is a schematic structural diagram of the shunt switch in this embodiment, as shown in fig. 1:
the tap changer includes a first port 110, a second port 120, and a third port 130;
the second port 120 and the third port 130 are forwarding ports of the first port 110, and the third port 130 is a forwarding port of the second port 120;
the second port 120 adopts a loop-back mode, and the transmission bandwidth of the third port 130 is greater than that of the first port 110 and the second port 120;
the first port 110 is an input port of the shunting switch, and is configured to receive an externally input data packet;
the third port 130 is an output port of the shunting switch, and is used for sending a data packet to the outside.
Specifically, the splitter switch includes at least a first port 110, a second port 120, and a third port 130. The second port 120 and the third port 130 are forwarding ports of the first port 110, that is, the first port 110 will forward data to the second port 120 and the third port 130 after receiving the data. The third port 130 is a forwarding port of the second port 120, that is, the second port 120 forwards the data to the third port 130 after receiving the data. The second port 120 adopts a loopback mode, where the loopback mode refers to that data stream continues to flow in from the port after flowing out from the port; it should be noted that the loopback mode can be implemented by configuring a shunt switch, or by externally connecting a corresponding loopback module to a port, which is a mature technology in the prior art. After the switch adopts the above configuration, the data received by the first port 110 can be amplified and then transmitted from the third port 130, so that the data transmission rate of the third port 130 is higher, thereby achieving the effect of amplifying the transmission rate of the data stream.
In the data splitting and forwarding process, the first port 110 first receives a copy of data, then the first port 110 copies the data, sends a copy of data to the third port 130, and simultaneously sends a copy of data to the second port 120, and the data is looped and flowed in the second port 120 and then forwarded to the third port 130 by the second port 120. Therefore, the third port 130 actually receives two copies of the data, and the transmission bandwidth of the third port 130 is larger than that of the first port 110 and the second port 120, so the third port 130 can forward the data at a higher transmission rate. Exemplarily, assuming that the transmission bandwidths of the first port 110 and the second port 120 are 100G and the transmission bandwidth of the third port 130 is 200G, when the first port 110 receives data at a rate of 100G and then forwards the data to the third port 130 and the second port 120 at a rate of 100G, and the second port 120 also forwards the data to the third port 130 at a rate of 100G, the third port 130 receives duplicate data at a rate of 200G and then sends the data to the outside at a rate of 200G.
As can be seen from the above examples, the offload switch may perform duplicate forwarding on the data, so that the data sending rate is greater than the data receiving rate. When the splitter switch is used in a service board test scheme, the first port 110 of the splitter switch may be connected to an output port of a tester, and then the third port 130 may be connected to a service board port under test. After receiving the low-rate data sent by the tester, the shunt switch sends the high-rate data to the port of the service board to be tested through data copying and forwarding, and further meets the large-flow pressure required by the port test of the service board. Thereby solving the problem that the service board can not provide corresponding large flow.
In some of these embodiments, the number of the second port 120 and the third port 130 in the shunting switch is plural;
the plurality of second ports 120 and the plurality of third ports 130 are forwarding ports of the first port 110, and the plurality of third ports 130 are forwarding ports of each second port 120;
the plurality of second ports 120 each employ a loopback mode.
Specifically, when there are a plurality of second ports 120 and third ports 130, the plurality of second ports 120 and the plurality of third ports 130 are forwarding ports of the first port 110, that is, the first port 110 copies a plurality of data after receiving the data, and forwards the data to each of the second ports 120 and the third ports 130, and each of the second ports 120 and the third ports 130 receives one data; the plurality of third ports 130 are forwarding ports of each second port 120, that is, each second port 120 copies the data to multiple copies after receiving the data, and forwards the data to each third port 130. For any third port 130, it receives the data transmitted by the first port 110 and the data transmitted by each second port 120.
The data received by each third port 130 is the same, and thus the data can be sent with the same bandwidth, so that the plurality of third ports 130 can meet the test requirements of the plurality of service boards to be tested. For example, if there are three third ports 130, three service boards to be tested may be connected, and then three service boards to be tested may be tested simultaneously.
And the number of second ports 120 determines the amplification of the data transmission rate. For example, when the number of the second ports 120 is one, the third port 130 additionally receives one copy of data, and thus can transmit data at twice the data transmission rate of the first port 110; when the number of the second ports 120 is two, the third port 130 additionally receives two copies of data, and thus can transmit data at a data transmission rate three times that of the first port 110. It should be noted that, in consideration of the limitation of the port bandwidth on the transmission rate, the set number of the second ports 120 should be determined by the bandwidth size relationship between the first port 110 and the third port 130.
Further, in some specific embodiments, the splitter switch further includes a first sub-network card and a second sub-network card connected to each other, and the number of the first ports 110 is one;
the data forwarding bandwidth of the second sub-network card is a preset multiple of the data forwarding bandwidth of the first sub-network card;
the first port 110 and the second port 120 are connected with a first subnet card, and the third port 130 is connected with a second subnet card;
the total number of the first ports 110 and the second ports 120 is the same as the preset multiple.
Specifically, a first sub-network card and a second sub-network card are arranged inside the shunting switch, and the first port 110 and the second port 120 are provided by the first sub-network card, so that the port bandwidth is the same as the data forwarding bandwidth of the first sub-network card; the third port 130 is provided by the second sub-network card, so its port bandwidth is the same as the data forwarding bandwidth of the second sub-network card. And the total number of the first ports 110 and the second ports 120 is the same as the preset multiple. For example, when the bandwidth of the second sub-network card is four times that of the first sub-network card, three second ports 120 may be set, so that the data forwarding rate of the third port 130 is four times that of the first port 110. For another example, when the bandwidth of the second sub-network card is eight times that of the second sub-network card, seven second ports 120 may be provided at this time.
Exemplarily, in one specific embodiment, the first sub-network card is a 100G sub-network card, and the second sub-network card is a 400G sub-network card;
the first port 110 and the second port 120 are both 100G ports, and the third port 130 is a 400G port;
the total number of the first port 110 and the second port 120 is four.
Specifically, in this embodiment, a 100G sub-network card and a 400G sub-network card are adopted, so that the bandwidths of the first port 110 and the second port 120 are 100G, and the bandwidth of the third port 130 is 400G. Wherein the number of the first ports 110 is one and the number of the second ports 120 is three. In a specific service board test scenario, data sent by the low-rate tester at the 100G rate may be received through the first port 110, and then sent to the service board port under test at the 400G rate through the third port 130.
In this embodiment, a testing apparatus for a switch is further provided, the apparatus including: a tester and a shunt switch;
the shunt switch is any one of the shunt switches provided in this embodiment;
the output port of the tester is connected with the input port of the shunt switch, and the output port of the shunt switch is the output port of the testing device.
Specifically, the testing apparatus of the switch in this embodiment is composed of a tester and the shunt switch in this embodiment. The shunting switch can copy and amplify low-speed data sent by the tester and then forward high-speed data. Therefore, when the exchanger to be tested (the built-in service board) is tested, high-speed data can be sent to the exchanger to be tested, and the large-flow pressure required by the test is met. Thereby solving the problem that the service board can not provide corresponding large flow.
Compared with the prior art that a high-speed tester is directly adopted, the use cost of a professional high-speed tester is very high; and adopt the combination of low rate tester and reposition of redundant personnel switch in this embodiment, enlarge the sending rate of tester through the reposition of redundant personnel switch, the use cost of low rate tester and reposition of redundant personnel switch is less than the high rate tester far away. Therefore, the embodiment has the technical effect of reducing the use cost.
In this embodiment, a system for testing a switch is further provided, where the system includes: the system comprises a testing device and a switch to be tested;
the test device is a test device of the switch provided in the embodiment;
the switch to be tested comprises a fourth port and a fifth port, and the output port of the testing device is connected with the fourth port of the switch to be tested;
and a fourth port and a fifth port in the switch to be tested are configured to form a forwarding loop, the fourth port is an input port and an output port of the forwarding loop, and the fifth port is a link port of the forwarding loop.
Specifically, the test system of the switch in this embodiment includes a test device and a switch to be tested, where the test device is the test device of the switch provided in the above embodiment, and the specific working principle may refer to the above embodiment. For the switch to be tested, its ports need to be configured as forwarding loops, i.e. data stream starts to flow through the initial port and then flows back to the initial port after passing through all ports. In this embodiment, the fourth port is the initial port of the forwarding loop, i.e. the input/output port. And the fifth port is the port other than the fourth port in the forwarding loop, that is, the link port through which the data stream passes.
When the test system of the switch is in operation, the test device first sends a data stream to the fourth port in the switch to be tested, the data stream flows in the forwarding loop and finally flows out of the fourth port, during which the data stream passes through all the fifth ports. Therefore, whether a port has a fault can be judged by judging whether the number of the data packets flowing in from the fourth port is the same as the number of the data packets flowing out from the fourth port. Because a packet loss situation is necessarily generated when a port fails, the data packet flowing out from the fourth port is less than the data packet flowing in.
It should be noted that, in one switch to be tested, there may be one forwarding loop or multiple forwarding loops, that is, multiple fourth ports and multiple groups of fifth ports, where each fourth port and corresponding group of fifth ports form one forwarding loop. In this case, the test device is then required to provide multiple sets of data streams.
Thus, in one embodiment, the number of the fourth ports is one, and the number of the fifth ports is plural;
each fifth port adopts a loopback mode, the next fifth port is a forwarding port of the previous fifth port, the first fifth port is a forwarding port of the fourth port, and the fourth port is a forwarding port of the last fifth port.
Specifically, the switch to be tested in this embodiment has only one fourth port, and the fourth port and the other fifth ports form a forwarding loop, so that the switch to be tested only needs the testing apparatus to provide one group of data streams, and only occupies one output port of the testing apparatus. Further specifically, in the process of constructing the forwarding loop, the multiple fifth ports are all set to the loopback mode, that is, a data stream flows out from one of the fifth ports, or flows in from the same fifth port. Then, the fifth ports are sequenced according to any sequence, the next fifth port is configured as a forwarding port of the previous fifth port, the fourth port is used as an input/output port of the forwarding loop, that is, the first fifth port is a forwarding port of the fourth port, and the fourth forwarding port is a forwarding port of the last fifth port, so that the fourth port and the fifth ports form a forwarding loop.
Further, in one embodiment, the number of switches to be tested is plural, and the number of output ports of the testing apparatus is plural;
and a plurality of output ports of the testing device are respectively connected with the fourth ports of the plurality of switches to be tested.
Specifically, the number of switches to be tested in this embodiment is multiple, and each switch to be tested occupies one output port of the testing apparatus, so that multiple output ports in the testing apparatus can be connected to multiple switches to be tested at the same time, and thus multiple switches to be tested can be tested. It should be further noted that the testing apparatus is composed of a splitter switch and a tester, the output port of the testing apparatus is provided by the splitter switch, and the splitter switch having a plurality of output ports occupies only one output port of the tester. Therefore, in the test system of the switch, a plurality of switches to be tested can be tested simultaneously by using only one output port of the tester, and the use cost of the professional tester is further reduced.
In this embodiment, a method for testing a switch is further provided, where the method is applied to a system for testing a switch provided in this embodiment, and the method includes:
connecting an output port of the testing device with a fourth port of the switch to be tested, and sending a data packet to the fourth port of the switch to be tested through the output port of the testing device;
detecting whether the number of data packets received by the fourth port of the switch to be tested is the same as the number of data packets sent by the fourth port of the switch to be tested;
if the number of the data packets is the same, judging that the tested switch is normal;
if the number of the data packets is different, the tested exchanger is judged to be abnormal.
Specifically, the testing method of the switch is implemented on the testing system of the switch in this implementation, and the output port of the testing device is connected with the fourth port of the switch to be tested, and then the high-speed data stream is sent to the test device. The data flow flows for a circle in a forwarding loop in the switch to be tested and then flows out from the fourth port. Then detecting whether the number of data packets received by the fourth port of the switch to be tested is the same as the number of data packets sent by the fourth port of the switch to be tested, if the number of the data packets received by the fourth port of the switch to be tested is the same as the number of the data packets sent by the fourth port of the switch to be tested, the condition that no packet is lost is indicated, so that all ports in a forwarding loop work normally, a corresponding service board is normal, and the switch to be tested is judged to be normal; if the data packets are received and transmitted differently, the packet loss situation is present, so that the port is not normally operated, and the corresponding service board is also problematic, thereby judging that the tested switch is abnormal.
In some of these embodiments, the method further comprises:
configuring a second port and a third port of the shunt switch as a forwarding port of the first port, configuring the third port as a forwarding port of the second port, and configuring the second port as a loopback mode;
configuring a first port as an input port of the shunt switch, connecting the first port with an output port of the tester, and configuring a third port as an output port of the shunt switch;
configuring a fourth port and a fifth port in the switch to be tested to form a forwarding loop; the fourth port is an input port and an output port of the forwarding loop, and the fifth port is a link port of the forwarding loop.
Specifically, before testing the switch to be tested, the shunting switch and the switch to be tested need to be configured correspondingly.
The configuration method of the shunt switch comprises the following steps: configuring a second port and a third port of the shunt switch as forwarding ports of the first port, configuring the third port as forwarding ports of the second port, and configuring the second port as a loopback mode; and configuring the first port as an input port of the shunt switch, connecting the first port with an output port of the tester, and configuring the third port as an output port of the shunt switch. The output port of the shunt switch is the output port of the testing device, and is connected with the fourth port of the switch to be tested.
The configuration method of the switch to be tested comprises the following steps: configuring a fourth port and a fifth port in the switch to be tested to form a forwarding loop; the fourth port is an input port and an output port of the forwarding loop, and the fifth port is a link port of the forwarding loop.
The technical solution in the present application is explained below by a specific preferred embodiment.
The preferred embodiment provides a method for testing a preferred switch, which is a method for testing the service performance of the whole single board of a high-density high-speed switch by simple networking.
Fig. 2 is a schematic diagram of switch test networking in the preferred embodiment. Referring to fig. 2, the networking configuration of the switch test is as follows:
the test instrument 200: A100G (QSFP 28 type) port is provided, and various types of data messages can be constructed to meet the test requirements of UUT (device under test).
The shunt switch 100: a 100G port (the 100G daughtercard 140 is shown providing 16 100G QSFP28 ports) and a 400G port (the 400G daughtercard 150 is shown providing 4 400G ports) are provided for port traffic replication and offloading to the device under test.
UUT1-4: the devices under test 1 to 4, except for the 31 ports interfacing with the shunt switch 100, employ self-looping modules.
Port1 on 100G daughter card 140 of shunt switch 100 interfaces with Port1 (100G) of tester 200 through optical modules and optical fibers.
Port1 on 400G daughter card 150 of the shunt switch 100 is connected to Port31 of device under test 1 by a cable, port2 on 400G daughter card 150 is connected to Port31 of device under test 2 by a cable, port3 on 400G daughter card 150 is connected to Port31 of device under test 3 by a cable, and Port4 on 400G daughter card 150 is connected to Port31 of device under test 4 by a cable.
And finally, judging whether the equipment is normal or not by judging whether the number of the packets transmitted and received by the Port31 of the tested equipment is the same or not.
Before the test, the flow distribution switch 100 and the tested single board need to be configured in sequence, and the flow test can be performed after the configuration is completed.
The configuration of the breakout switch 100 is as follows:
1. configuring ports 2/3/4 of 100G daughter card 140 of the shunt switch 100 as a loopback mode;
2. configuring forwarding table entries of the shunt switch 100 such that traffic of Port1 of the 100G daughter card 140 is forwarded to Port2/3/4 ports of the 100G daughter card 140
3. Configuring a forwarding table entry of the shunt switch 100, so that the traffic of Port1 of the 100G daughter card 140 is forwarded to Port1/2/3/4 Port of the 400G daughter card 150;
4. the forwarding table entries of the shunt switch 100 are configured such that traffic for the Port2/3/4 Port of the 100G daughter card 140 is forwarded to the Port1/2/3/4 Port of the 400G daughter card 150.
By configuring the shunt switch 100, 100G traffic from Port1 ports of the tester 200 may output identical 400G traffic through the shunt switch 100 to Port1/2/3/4 ports of the 400G daughter card 150.
And configuring the tested single board (UUT 1/2/3/4) to enable the flow entering the tested single board to travel according to the appointed path. Description of flow path of device under test: port31 in- > Port1 (self-loop) - > Port2 (self-loop) - > Port3 (self-loop) - > Port4 (self-loop) - > … - > Port30 (self-loop) - > Port32 (self-loop) - > Port 31.
The tester 200, the shunting switch 100 and the tested device end can perform the packet receiving and sending test and result comparison after being configured.
Compared with the prior art, the test method of the preferred switch in the preferred embodiment has the following advantages:
1. a simple and reliable traffic test networking method is provided.
2. The cost of environmental materials is saved, only one port of precious tester resources is occupied for one tested veneer, a large amount of tester resources and test environment resources are not occupied, and the utilization rate of the tester is effectively improved.
3. The shunt switch is used, the low-speed tester is used for meeting the test of high-speed port equipment, and meanwhile, a plurality of pieces of tested equipment can be tested in parallel.
4. By utilizing a simple networking mode and configuring the flow direction of the tested equipment, the full load pressure test requirement forwarded by all service ports of the whole tested equipment can be met.
5. The method can be used for the production test requirements of the tested equipment, and can effectively screen the service single boards with poor performance.
It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to be limiting. All other embodiments, which can be derived by a person skilled in the art from the examples provided herein without any inventive step, shall fall within the scope of protection of the present application.
It is obvious that the drawings are only examples or embodiments of the present application, and it is obvious to those skilled in the art that the present application can be applied to other similar cases according to the drawings without creative efforts. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
The term "embodiment" is used herein to mean that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly or implicitly understood by one of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the patent protection. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A breakout switch, wherein the breakout switch comprises a first port, a second port, and a third port;
the second port and the third port are forwarding ports of the first port, and the third port is a forwarding port of the second port;
the second port adopts a loop-back mode, and the transmission bandwidth of the third port is greater than that of the first port and the second port;
the first port is an input port of the shunt switch and is used for receiving an externally input data packet;
the third port is an output port of the shunt switch and is used for sending a data packet to the outside.
2. The shunt switch of claim 1, wherein the number of the second ports and the third ports in the shunt switch is plural;
the plurality of second ports and the plurality of third ports are forwarding ports of the first port, and the plurality of third ports are forwarding ports of each second port;
and the second ports all adopt a loop-back mode.
3. The flow distribution switch according to claim 1, further comprising a first sub-network card and a second sub-network card connected to each other, wherein the number of the first ports is one;
the data forwarding bandwidth of the second sub-network card is a preset multiple of the data forwarding bandwidth of the first sub-network card;
the first port and the second port are connected with the first subnet card, and the third port is connected with the second subnet card;
the total number of the first ports and the second ports is the same as the preset multiple.
4. The flow distribution switch according to claim 3, wherein the first sub-network card is a 100G sub-network card, and the second sub-network card is a 400G sub-network card;
the first port and the second port are both 100G ports, and the third port is a 400G port;
the total number of the first ports and the second ports is four.
5. An apparatus for testing a switch, the apparatus comprising: a tester and a shunt switch;
the shunt switch is the shunt switch of any one of claims 1 to 4;
the output port of the tester is connected with the input port of the shunt switch, and the output port of the shunt switch is the output port of the testing device.
6. A system for testing a switch, the system comprising: the system comprises a testing device and a switch to be tested;
the testing device is the testing device of the switch in claim 5;
the switch to be tested comprises a fourth port and a fifth port, and the output port of the testing device is connected with the fourth port of the switch to be tested;
a fourth port and a fifth port in the switch to be tested are configured to form a forwarding loop, the fourth port is an input port and an output port of the forwarding loop, and the fifth port is a link port of the forwarding loop.
7. The test system of the switch according to claim 6, wherein the number of the fourth ports is one, and the number of the fifth ports is plural;
each fifth port adopts a loopback mode, the latter fifth port is a forwarding port of the former fifth port, the first fifth port is a forwarding port of the fourth port, and the fourth port is a forwarding port of the last fifth port.
8. The system for testing switches according to claim 7, wherein the number of switches to be tested is plural, and the number of output ports of the testing device is plural;
and a plurality of output ports of the testing device are respectively connected with the fourth ports of the switches to be tested.
9. A method for testing a switch, the method being applied to a system for testing a switch according to any one of claims 6 to 8, the method comprising:
connecting an output port of a testing device with a fourth port of a switch to be tested, and sending a data packet to the fourth port of the switch to be tested through the output port of the testing device;
detecting whether the number of data packets received by the fourth port of the switch to be tested is the same as the number of data packets sent by the fourth port of the switch to be tested;
if the number of the data packets is the same, judging that the tested exchanger is normal;
and if the number of the data packets is different, judging that the tested exchanger is abnormal.
10. The method for testing a switch of claim 9, further comprising:
configuring a second port and a third port of a shunt switch as a forwarding port of a first port, configuring the third port as a forwarding port of the second port, and configuring the second port as a loopback mode;
configuring the first port as an input port of the shunt switch, connecting the first port with an output port of a tester, and configuring the third port as an output port of the shunt switch;
configuring a fourth port and a fifth port in the switch to be tested to form a forwarding loop; the fourth port is an input port and an output port of the forwarding loop, and the fifth port is a link port of the forwarding loop.
CN202210907318.2A 2022-07-29 2022-07-29 Shunt switch, and test device, system and method of switch Active CN115426328B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210907318.2A CN115426328B (en) 2022-07-29 2022-07-29 Shunt switch, and test device, system and method of switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210907318.2A CN115426328B (en) 2022-07-29 2022-07-29 Shunt switch, and test device, system and method of switch

Publications (2)

Publication Number Publication Date
CN115426328A true CN115426328A (en) 2022-12-02
CN115426328B CN115426328B (en) 2023-08-22

Family

ID=84197321

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210907318.2A Active CN115426328B (en) 2022-07-29 2022-07-29 Shunt switch, and test device, system and method of switch

Country Status (1)

Country Link
CN (1) CN115426328B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101557322A (en) * 2008-04-07 2009-10-14 智邦科技股份有限公司 Method using network switch as network device testing instrument
CN102355377A (en) * 2011-06-30 2012-02-15 迈普通信技术股份有限公司 Entire test system and method for Ethernet switch
US8138778B1 (en) * 2005-03-31 2012-03-20 Stephen William Smith Apparatus for high density low cost automatic test applications
CN102447590A (en) * 2010-10-13 2012-05-09 无锡江南计算技术研究所 Method, device and system for testing exchange board circuit
CN102684948A (en) * 2012-05-29 2012-09-19 合肥华云通信技术有限公司 Serpentine-flow-based network port testing method
CN106533846A (en) * 2016-12-30 2017-03-22 盛科网络(苏州)有限公司 Network configuration method and test method for testing forwarding performance of switch
US20170366442A1 (en) * 2016-06-20 2017-12-21 Mellanox Technologies Tlv Ltd. Generating high-speed test traffic in a network switch
WO2017219840A1 (en) * 2016-06-21 2017-12-28 中兴通讯股份有限公司 Device port detection method and apparatus
CN107579880A (en) * 2017-10-12 2018-01-12 上海斐讯数据通信技术有限公司 A kind of network-building method and system of test router various flow rate model
CN109150667A (en) * 2018-10-26 2019-01-04 京信通信系统(中国)有限公司 Switch test system
CN110034978A (en) * 2019-04-19 2019-07-19 杭州迪普科技股份有限公司 A kind of method and apparatus of network apparatus test performance
CN113676380A (en) * 2021-09-30 2021-11-19 西安易朴通讯技术有限公司 Switch port testing method, electronic equipment and system
US20220109533A1 (en) * 2020-10-01 2022-04-07 Rohde & Schwarz Gmbh & Co. Kg Test system, electronic device and loopback testing method

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8138778B1 (en) * 2005-03-31 2012-03-20 Stephen William Smith Apparatus for high density low cost automatic test applications
CN101557322A (en) * 2008-04-07 2009-10-14 智邦科技股份有限公司 Method using network switch as network device testing instrument
CN102447590A (en) * 2010-10-13 2012-05-09 无锡江南计算技术研究所 Method, device and system for testing exchange board circuit
CN102355377A (en) * 2011-06-30 2012-02-15 迈普通信技术股份有限公司 Entire test system and method for Ethernet switch
CN102684948A (en) * 2012-05-29 2012-09-19 合肥华云通信技术有限公司 Serpentine-flow-based network port testing method
US20170366442A1 (en) * 2016-06-20 2017-12-21 Mellanox Technologies Tlv Ltd. Generating high-speed test traffic in a network switch
WO2017219840A1 (en) * 2016-06-21 2017-12-28 中兴通讯股份有限公司 Device port detection method and apparatus
CN106533846A (en) * 2016-12-30 2017-03-22 盛科网络(苏州)有限公司 Network configuration method and test method for testing forwarding performance of switch
CN107579880A (en) * 2017-10-12 2018-01-12 上海斐讯数据通信技术有限公司 A kind of network-building method and system of test router various flow rate model
CN109150667A (en) * 2018-10-26 2019-01-04 京信通信系统(中国)有限公司 Switch test system
CN110034978A (en) * 2019-04-19 2019-07-19 杭州迪普科技股份有限公司 A kind of method and apparatus of network apparatus test performance
US20220109533A1 (en) * 2020-10-01 2022-04-07 Rohde & Schwarz Gmbh & Co. Kg Test system, electronic device and loopback testing method
CN113676380A (en) * 2021-09-30 2021-11-19 西安易朴通讯技术有限公司 Switch port testing method, electronic equipment and system

Also Published As

Publication number Publication date
CN115426328B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
US4951280A (en) Method and apparatus for configuring data paths within a supernet station
CA1252168A (en) Communications network
US7564798B2 (en) Methods and devices for testing and monitoring high speed communication networks
US6188702B1 (en) High speed linking module
US20130343177A1 (en) Switching system and method for improving switching bandwidth
CN101296131A (en) Method, device and system for testing switchboard connectivity
US7411946B2 (en) Network monitor and method
JP3574425B2 (en) Packet Processing Method Using Multi-Fault-Tolerant Network Structure
JPH0556021A (en) Preliminary switching system
CN103248567B (en) A kind of BFD session message transmitting method and equipment
CN111083580A (en) Method and device for protecting Ethernet link in optical transmission network
CN109633414B (en) Backboard testing device and method based on ATCA (advanced telecom computing architecture)
CN115426328A (en) Shunting switch and testing device, system and method of switch
US6347073B1 (en) Method and system for controlling data transfer between a logical switch set and outside nodes
CN101136807B (en) Port VLAN based switching chip port detecting method
US5513369A (en) Star coupler device including means for connecting multiple star couplers together in a cascaded relationship
CN207037638U (en) A kind of multi node server expansion card dynamically distributes device
CN110166316B (en) Test method of AFDX (avionics full Duplex switched Ethernet) network selection module
KR100748685B1 (en) apparatus and method of frame monitoring in network
JPH0697940A (en) Lan connection processor
US20020122222A1 (en) Data path integrity in transparent OEO switch
CN116668330A (en) Link testing method
KR100464154B1 (en) Apparatus for Between Switching Board and Subscriber Board duplexing implementation
JPH11252145A (en) Bypass communication system in looped transmission system
JPS60251738A (en) Line switching device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant