CN101826998B - Method for realizing total switching function test of switching net and switching net - Google Patents

Method for realizing total switching function test of switching net and switching net Download PDF

Info

Publication number
CN101826998B
CN101826998B CN2010101598353A CN201010159835A CN101826998B CN 101826998 B CN101826998 B CN 101826998B CN 2010101598353 A CN2010101598353 A CN 2010101598353A CN 201010159835 A CN201010159835 A CN 201010159835A CN 101826998 B CN101826998 B CN 101826998B
Authority
CN
China
Prior art keywords
port
sending
test
switching
receiving 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.)
Active
Application number
CN2010101598353A
Other languages
Chinese (zh)
Other versions
CN101826998A (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.)
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 CN2010101598353A priority Critical patent/CN101826998B/en
Publication of CN101826998A publication Critical patent/CN101826998A/en
Application granted granted Critical
Publication of CN101826998B publication Critical patent/CN101826998B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a method for realizing a total switching function test of a switching net and a switching net, and relates to a testing technique. The invention aims to reduce the cost for testing the total switching function of the switching net. The method comprises the following steps: a first transmitting port transmits a first test message to a data unit switching module; the data unit switching module switches the received first test message to receiving ports; and each receiving port transmits a second test message to the corresponding transmitting port, so that the transmitting port checks the second test message transmitted by the receiving port according to the transmission condition of the first test message. The embodiment of the invention is mainly used in switching nets.

Description

Method for realizing full switching function test of switching net and switching net
Technical Field
The invention relates to a testing technology, in particular to a method for realizing a full switching function test of an exchange net and the exchange net.
Background
Currently, data communication products such as main stream routers and switches in the industry generally adopt an M-S-M three-stage switching architecture design, and a switching network ASIC chip (hereinafter referred to as a switching mesh) is a core chip with a switching function of an intermediate-stage (S) line.
The exchange net sheet mainly comprises four parts: a high-speed Serdes (Serializer/Deserializer) bus Interface module (Serdes RX, Serdes TX), a high-speed Serdes transceiver control module (RX controller, TX controller), a DCS (Data Cell Switch) module, and an MPI (Microprocessor Interface) module. Wherein, the DCS module is a core module of the exchange net piece.
In the current testing chip for the switching network, there are two ways commonly used in the industry.
The first is Serdes loopback built-In Self Test (BIST). In this technique, in the Serdes bus interface module, data is transmitted between corresponding transmitting and receiving interfaces, for example, TX1 transmitting data and RX1 receiving data, TX2 transmitting data and RX2 receiving data, usually under the control of a high-speed Serdes transceiver control module. In this way, the test of the switching mesh can be overlaid to the high speed Serdes bus interface module and the high speed Serdes transceiver control module. However, since data can only be transmitted between corresponding transceiving interfaces in this manner, the data transmission process between different transceiving interfaces, such as TX1 transmitting data and RX2 receiving data, cannot be tested.
In order to overcome the defect that the first mode cannot perform the full switching function test of the switching mesh, in the second mode, the fully-matched M-level board is additionally arranged to realize data transmission between the corresponding transceiving interfaces or the non-corresponding transceiving interfaces, so that the full switching function test of the switching mesh is realized.
However, in the process of implementing the present invention, although the test of the full switching function of the switching mesh is implemented according to the second method, the cost of this method is high because the M-level board is added.
Disclosure of Invention
The embodiment of the invention provides a method for realizing the full switching function test of an exchange net and the exchange net, which can reduce the cost for carrying out the full switching function test on the exchange net.
The embodiment of the invention adopts the following technical scheme:
a method for realizing the test of the full switching function of a switching mesh comprises the following steps:
the first sending port sends a first test message to the data unit exchange module;
the data unit exchange module exchanges the received first test message to each receiving port;
and the receiving port sends a second test message to a corresponding sending port, so that the sending port checks the second test message sent by the receiving port according to the sending condition of the first test message.
An exchange mesh comprising: at least one transmitting port, a data unit switching module, and at least one receiving port; wherein,
the at least one sending port is used for sending a first test message to the data unit switching module, receiving a second test message sent by the receiving port, and verifying the second test message sent by the receiving port according to the sending condition of the first test message;
the data unit switching module is configured to receive a first test packet sent by the sending port, and switch the first test packet to each receiving port;
the at least one receiving port is configured to receive the first test packet exchanged by the data unit exchanging module, and send a second test packet to the sending port.
The method for realizing the test of the full switching function of the switching net and the switching net of the embodiment of the invention have the advantages that the sending port is configured to have the functions of message sending and verification at the same time, then the test message sent by the sending port is switched to all the receiving ports, and the data sent by the receiving ports is sent to the sending port again for verification, so that the test of the full switching function of the switching net is completed. Therefore, by using the switching mesh and the method of the embodiment of the invention, an M-level plate is not required to be configured, so that compared with the prior art, the cost for performing the full switching function test on the switching mesh can be reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart of a method for implementing a full switching function test of a switching mesh according to an embodiment of the present invention;
fig. 2 and fig. 3 are schematic diagrams of message delivery in a first embodiment of the present invention, respectively;
FIG. 4 is a schematic view of a second exchange mesh in accordance with an embodiment of the present invention;
fig. 5 is a structural diagram of a second exchange mesh according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Here, the concept of "full switching function test" is explained first. The full switching function test is a test performed on the switching network sheet so that all the functional modules in the switching network sheet are covered with the test, and the test is performed to determine whether or not a communication path from each transmitting port to each receiving port is available, while allowing a message transmitted from each transmitting port to be transmitted to any receiving port.
In order to reduce the cost of performing the full switching function test on the switching mesh, as shown in fig. 1, an embodiment of the present invention provides a method for implementing the full switching function test on the switching mesh, including:
step 11, the first sending port sends the first test message to the data unit exchange module.
Here, for convenience of description, a concept of "first transmission port" is proposed. It should be noted that, a plurality of transmitting ports may be included in the switching mesh, and each transmitting port may be referred to as a "first transmitting port" as described herein. That is, the "first transmission port" does not refer to a certain transmission port, but merely as described above is a concept proposed for descriptive purposes.
In addition, since the full function of the switching mesh is tested, according to the explanation of the concept of the full function test, the first sending port sends the first test message to the data unit switching module inside the switching mesh.
And step 12, the data unit exchange module exchanges the received first test message to each receiving port.
In this step, the data unit switching module may switch the first test packet received by the first sending port to each receiving port in one of at least two ways.
The first mode is as follows: the data unit exchange module can analyze the first test message to obtain the destination receiving port information of the first test message. In the first test message, the header includes 64-byte cells, which are used to indicate the destination receiving port of the first test message sent by the first sending port, that is, to which receiving port the first sending port wants to send its first test message. For example, assuming that there are 7 receiving ports, and the first sending port wants to send its first test packet to the first receiving port first, information of the first receiving port, such as the identification number, address, etc. of the receiving port, may be included in the header of the first test packet. The processing is similar for the remaining 6 ports. Since the full switching function test is performed, the first test packet of the first sending port needs to be sent to all receiving ports.
The second mode is as follows: after receiving the first test packet sent by the first sending port, the data unit switching module may obtain information of the first sending port, such as a number and an address of the first sending port, where the first test packet is sent. And then, switching the first test message to a corresponding receiving port according to the configuration information in the register of the first test message. For example, 7 transmit ports and 7 receive ports are also taken as an example. Taking a port with a port number of 1 as an example, a correspondence table of the number of times of sending a first test packet sent by a sending port, sending and transmitting port information, and receiving port information may be stored in the data unit switching module, as shown in table 1:
Figure GSA00000084847000041
Figure GSA00000084847000051
as can be seen from table 1, when the data unit switching module determines that the first test packet received by the data unit switching module is from the sending port numbered 1, the data unit switching module may count the number of times of receiving the first test packet from the sending port. When a first test message of the sending port is received for the first time, the first test message is sent to a receiving port with the number of 1; and when the first test message of the sending port is received for the second time, the first test message is sent to the receiving port with the number of 2. Until the first test packet of the sending port is sent to all 7 receiving ports.
Of course, other forms of correspondence are possible in this table 1. It is to be noted that, here, it is described only by way of example how the first test packet of the first sending port is sent to the respective receiving ports according to the configuration of the data unit switching module itself. Other implementations are possible in particular applications, and are not limited by the examples set forth herein.
And step 13, the receiving port sends a second test message to a corresponding sending port, so that the sending port checks the second test message sent by the receiving port according to the sending condition of the first test message.
As described in step 11, the concept of "first transmission port" is proposed in the embodiment of the present invention. Since all the transmitting ports of the switching mesh in the embodiment of the present invention can perform the data verification process, it is necessary to distinguish the transmitting ports.
And when the sending port is the first sending port, the receiving port sends the second test message to the first sending port, and then the first sending port checks the received second test message according to the sending condition of the first test message. In the verification process, the received second test packet may be verified according to the information of the first test packet sent by the first sending port, such as the number and format of the sent first test packets, recorded on the first sending port. If the verification is passed, the test of the full exchange function is successful, otherwise, the test is failed.
When the sending port is not the first sending port, the transceiving control module in the switching mesh acquires, by the first sending port, related information of the first test packet sent by the first sending port, such as the number, format and the like of the sent first test packet, sends the related information to the sending port, and then verifies the received second test packet by the sending port. In the verification process, the received second test message can be verified according to the related information obtained by the sending port, such as the number, format and the like of the first test message sent by the first port. If the verification is passed, the test of the full exchange function is successful, otherwise, the test is failed.
It should be noted that, if the data unit switching module has a bidirectional switching function, the receiving port may further send the second test packet to the data unit switching module. Correspondingly, the data unit switching module may switch the second test packet of the receiving port to the sending port by itself.
It can be seen from the above that, by configuring the sending port, the method according to the first embodiment of the present invention has the functions of sending and verifying the message, and then switches the test message sent by the sending port to all the receiving ports, and sends the data sent by the receiving ports to the sending port again for verification, thereby completing the test of the full switching function of the switching mesh. Therefore, the method provided by the embodiment of the invention does not need to configure an M-level board, so that compared with the prior art, the method provided by the embodiment of the invention can reduce the cost for carrying out the full switching function test on the switching mesh.
In the embodiment of the present invention, the process of message transmission among the sending port, the data unit switching module, and the receiving port is as shown in fig. 2 and fig. 3. As shown in fig. 2, the test message of the sending port IPX1 is respectively switched to each receiving port, such as an OPX1...... OPX71, by an internal sending method, i.e., after passing through the data unit switching module. Then, the test message sent by the OPX1...... OPX71 is sent to the corresponding sending port through the outside. Of course, the test packet sent by the OPX1...... OPX71 may also not be sent to the corresponding sending port. As shown in fig. 3, the test message of the sending port IPX1 is respectively switched to each receiving port, such as an OPX1...... OPX71, by an internal sending method, i.e., after passing through the data unit switching module. Taking the receiving port OPX1 as an example, the test packet sent by the port can be switched to any sending port by an internal sending mode, i.e. through the data unit switching module. The other receiving ports are similar. It should be noted that, the message passing process in the embodiment of the present invention is illustrated here only by way of example.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
As shown in fig. 4, a second embodiment of the present invention provides an exchange mesh, including: at least one transmitting port 21, a data unit switching module 22, and at least one receiving port 23. Wherein,
the at least one sending port 21 is configured to send a first test packet to the data unit switching module, receive a second test packet sent by the receiving port, and verify the second test packet sent by the receiving port according to a sending condition of the first test packet;
the data unit switching module 22 is configured to receive a first test packet sent by the sending port 21, and switch the first test packet to each receiving port;
the at least one receiving port 23 is configured to receive the first test packet exchanged by the data unit exchanging module 22, and send a second test packet to the sending port 21.
Also in this embodiment, the data unit switching module may be configured to have a unidirectional or bidirectional switching function. If the data unit switching module has a unidirectional switching function, the receiving port directly returns the second test message to the sending port. If the data unit switching module has a bidirectional switching function, then, when the receiving port sends the second test packet to the sending port, the second test packet is switched to the sending port through the data unit switching module. That is, the receiving port may send its second test packet to the data unit switching module, and the data unit switching module switches the second test packet of the receiving port to the sending port through itself.
As described in the method embodiment, the concept of "first sending port" is also proposed herein for the convenience of description. A plurality of transmit ports may be included in the switch mesh, where each transmit port may be referred to as a "first transmit port" as described herein. That is, the "first transmission port" does not refer to a certain transmission port.
And when the receiving port sends the second test message to the sending port, the second test message is sent to each sending port. When the first test packet is sent to the first sending port, in the checking process, the first sending port may check the received first test packet according to the information of the first test packet it sends, such as the number and format of the sent first test packet, recorded thereon. If the verification is passed, the test of the full exchange function is successful, otherwise, the test is failed.
When transmitting to other transmitting ports, as shown in fig. 5, the switching mesh may further include: the transceiving control module 24 is configured to obtain, by the first sending port, related information of the first test packet sent by the first sending port, and send the related information to the sending port. At this time, the sending port may check the received second test packet according to the obtained related information, such as the number and format of the first test packet sent by the first port. If the verification is passed, the test of the full exchange function is successful, otherwise, the test is failed.
In the switching mesh shown in fig. 4 or fig. 5, when the data switching module 22 switches the first test packet to each receiving port, the data switching module is specifically configured to analyze the first test packet, obtain destination receiving port information of the first test packet, and switch the first test packet to a corresponding receiving port according to the destination receiving port information. Or, when the data exchange module 22 exchanges the first test packet to each receiving port, the data exchange module is specifically configured to obtain information of the first sending port, and exchange the first test packet to a corresponding receiving port according to configuration information of the data exchange module.
The working principle of the exchange mesh in the embodiment of the present invention can refer to the description in the method embodiment.
It can be seen from the above that, in the switching mesh of the embodiment of the present invention, the sending port is configured to have both the message sending and verifying functions, and then the test message sent by the sending port is switched to all the receiving ports, and the data sent by the receiving port is sent to the sending port again for verification, thereby completing the test of the full switching function of the switching mesh. Therefore, the switching mesh sheet and the method of the embodiment of the invention do not need to be provided with an M-level plate, so that the cost for carrying out the full switching function test on the switching mesh sheet can be reduced compared with the prior art.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (11)

1. A method for realizing the test of the full switching function of a switching mesh is characterized by comprising the following steps:
the first sending port sends a first test message to the data unit exchange module;
the data unit exchange module exchanges the received first test message to each receiving port;
and the receiving port sends a second test message to a corresponding sending port, so that the sending port checks the second test message sent by the receiving port according to the sending condition of the first test message.
2. The method of claim 1, wherein the data unit switching module switching the received first test packet to each receiving port comprises:
analyzing the first test message to obtain the destination receiving port information of the first test message;
and switching the first test message to a corresponding receiving port according to the information of the target receiving port.
3. The method of claim 1, wherein the data unit switching module switching the received first test packet to each receiving port comprises:
acquiring first sending port information for sending the first test message;
and switching the first test message to a corresponding receiving port according to the configuration information of the first test message.
4. The method according to claim 1, wherein when the sending port is the first sending port, the receiving port sends a second test packet to the corresponding sending port, so that the sending port checks the second test packet sent by the receiving port according to the sending condition of the first test packet includes:
and the receiving port sends the second test message to the first sending port through the data unit switching module or directly, so that the first sending port checks the second test message sent by the receiving port according to the sending condition of the first test message.
5. The method according to claim 1, wherein when the sending port is not the first sending port, before the receiving port sends a second test packet to the corresponding sending port, so that the sending port checks the second test packet sent by the receiving port according to the sending condition of the first test packet, the method further comprises:
and the transceiving control module respectively connected with the sending port and the first sending port acquires the relevant information of the first test message sent by the first sending port through the first sending port and sends the relevant information to the sending port.
6. The method of claim 5, wherein the receiving port sends a second test packet to the corresponding sending port, so that the sending port checks the second test packet sent by the receiving port according to the sending condition of the first test packet comprises:
and the receiving port directly sends the second test message to the sending port through the data unit switching module, so that the sending port checks the second test message sent by the receiving port according to the relevant information.
7. An exchange mesh, comprising: at least one transmitting port, a data unit switching module, and at least one receiving port; wherein,
the at least one sending port is used for sending a first test message to the data unit switching module, receiving a second test message sent by the receiving port, and verifying the second test message sent by the receiving port according to the sending condition of the first test message;
the data unit switching module is configured to receive a first test packet sent by the sending port, and switch the first test packet to each receiving port;
the at least one receiving port is configured to receive the first test packet exchanged by the data unit exchanging module, and send a second test packet to the sending port.
8. The switching mesh according to claim 7, wherein when the sending port is not a first sending port, wherein the first port is a port that sends the first test packet, the switching mesh further comprises:
a transceiving control module respectively connected to the transmitting port and the first transmitting port, configured to obtain, by the first transmitting port, related information of a first test packet transmitted by the first transmitting port, and transmit the related information to the transmitting port;
when the second test message sent by the receiving port is verified, the sending port verifies the second test message sent by the receiving port according to the relevant information.
9. The switching mesh according to claim 7 or 8, characterized in that said receiving ports are further configured to send second test packets to said data unit switching module, and said data unit switching module is further configured to switch second test packets received by said receiving ports to corresponding sending ports.
10. The switching mesh according to claim 7 or 8, wherein the data switching module is specifically configured to, when switching the first test packet to each receiving port, parse the first test packet to obtain destination receiving port information of the first test packet, and switch the first test packet to a corresponding receiving port according to the destination receiving port information.
11. The switching mesh according to claim 7 or 8, wherein the data switching module is specifically configured to obtain first sending port information for sending the first test packet when the first test packet is switched to each receiving port, and switch the first test packet to a corresponding receiving port according to configuration information of the data switching module.
CN2010101598353A 2010-04-29 2010-04-29 Method for realizing total switching function test of switching net and switching net Active CN101826998B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101598353A CN101826998B (en) 2010-04-29 2010-04-29 Method for realizing total switching function test of switching net and switching net

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101598353A CN101826998B (en) 2010-04-29 2010-04-29 Method for realizing total switching function test of switching net and switching net

Publications (2)

Publication Number Publication Date
CN101826998A CN101826998A (en) 2010-09-08
CN101826998B true CN101826998B (en) 2012-04-25

Family

ID=42690716

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101598353A Active CN101826998B (en) 2010-04-29 2010-04-29 Method for realizing total switching function test of switching net and switching net

Country Status (1)

Country Link
CN (1) CN101826998B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10776234B2 (en) * 2018-11-08 2020-09-15 Huawei Technologies Co., Ltd. On-die input capacitive divider for wireline receivers with integrated loopback
CN110278126A (en) * 2019-06-28 2019-09-24 苏州浪潮智能科技有限公司 A kind of switch port self checking method, system, terminal and storage medium
CN110912765B (en) * 2019-09-12 2021-08-10 无锡江南计算技术研究所 Embedded function self-testing method and device for high-order router chip
CN114363274A (en) * 2021-12-24 2022-04-15 裕太微电子股份有限公司 Packet receiving and transmitting system and method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1917452A (en) * 2005-08-19 2007-02-21 上海亿人通信终端有限公司 Method for testing forwarding performance of Ethernet exchange, and method for configuring network
CN101159682A (en) * 2007-09-28 2008-04-09 中兴通讯股份有限公司 Method and equipment of implementing stream conversion

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4451558B2 (en) * 2000-09-26 2010-04-14 株式会社リコー Modem using DSP signal processor
TW569572B (en) * 2002-07-18 2004-01-01 Macronix Int Co Ltd Chip of multi-port Ethernet network switch and daisy chain test method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1917452A (en) * 2005-08-19 2007-02-21 上海亿人通信终端有限公司 Method for testing forwarding performance of Ethernet exchange, and method for configuring network
CN101159682A (en) * 2007-09-28 2008-04-09 中兴通讯股份有限公司 Method and equipment of implementing stream conversion

Also Published As

Publication number Publication date
CN101826998A (en) 2010-09-08

Similar Documents

Publication Publication Date Title
CN101296131B (en) Method, device and system for testing switchboard connectivity
US9678842B2 (en) PCIE switch-based server system, switching method and device
CN202261360U (en) Device for testing robustness of router data path
EP2628087B1 (en) Methods and systems for testing electrical behavior of an interconnect having asymmetrical links
CN105406998A (en) Dual-redundancy gigabit ethernet media access controller IP core based on FPGA
CN103249069B (en) The test macro of the method for testing of mobile terminal and testing equipment, mobile terminal
CN111177065B (en) Multi-chip interconnection method and device
CN101895423A (en) Data transmission method and system in Ethernet
CN112118158B (en) Test method, test device, test equipment and storage medium of switch
CN102142987B (en) Serial bus equipment and data transmission method thereof
CN101826998B (en) Method for realizing total switching function test of switching net and switching net
CN103530211A (en) PCIE loop back self-test method based on UVM platform
CN104104488A (en) Wireless sensor network protocol conformance testing system and method
CN105656708A (en) Single-board testing method and device
CN102318267A (en) Data communication method, communication equipment and communication system
CN102123110B (en) Data transmission method for gateway system, and gateway system
CN112383933A (en) Wireless CPE (customer premises equipment) and method for realizing load balancing based on wireless CPE
CN108632168A (en) A kind of asynchronous serial communication method for interchanging data based on FPGA
CN207588888U (en) A kind of test device and mainboard
JP2013030909A (en) Processing device, test signal generating device, and test signal generating method
CN104427012A (en) Port negotiation method and device
JP2010122762A (en) Expansion card, fault diagnosis processing method, information processing apparatus, and fault diagnosis processing program
CN202218247U (en) Switch fault detection system
CN103684719A (en) Network dual-redundancy hot swap method independent of platforms
CN103888375A (en) Communication method based on ARINC 429, device thereof and expansion interface

Legal Events

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