CN101826998B - Method for Realizing Full Switching Function Test of Switching Fabric and Switching Fabric - Google Patents
Method for Realizing Full Switching Function Test of Switching Fabric and Switching Fabric Download PDFInfo
- 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
- test message
- port
- sending
- test
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域 technical field
本发明涉及测试技术,尤其涉及一种实现交换网片全交换功能测试的方法及交换网片。The invention relates to testing technology, in particular to a method for realizing the full switching function test of a switching network chip and a switching network chip.
背景技术 Background technique
目前业界主流路由器、交换机等数据通信产品一般采用M-S-M三级交换架构设计,交换网ASIC芯片(以下简称交换网片)是中间级(S)线路的交换功能的核心芯片。At present, data communication products such as mainstream routers and switches in the industry generally adopt the M-S-M three-level switching architecture design, and the switching network ASIC chip (hereinafter referred to as the switching network chip) is the core chip of the switching function of the intermediate level (S) line.
交换网片主要由四部分组成:高速Serdes(Serializer/Deserializer,串行器/解串器)总线接口模块(Serdes RX、Serdes TX),高速Serdes收发控制模块(RX controller、TX controller),DCS(Data Cell Switch,数据单元交换)模块以及MPI(Microprocessor Interface,微处理器接口)模块等。其中,DCS模块是交换网片的核心模块。The switching fabric is mainly composed of four parts: high-speed Serdes (Serializer/Deserializer, serializer/deserializer) bus interface module (Serdes RX, Serdes TX), high-speed Serdes transceiver control module (RX controller, TX controller), DCS ( Data Cell Switch, data unit exchange) module and MPI (Microprocessor Interface, microprocessor interface) module, etc. Among them, the DCS module is the core module of the switching fabric.
在目前的交换网测试芯片中,业界通常采用的有两种方式。In the current switching network test chip, the industry generally adopts two methods.
第一种方式是Serdes环回内建自测试(Build-In Self Test,BIST)。在这种技术中,在Serdes总线接口模块中,通常是在高速Serdes收发控制模块的控制下,在对应的收、发接口之间传送数据,例如TX1发送数据、RX1接收数据,TX2发送数据、RX2接收数据。按照这种方式,对交换网片的测试能够覆盖到高速Serdes总线接口模块、高速Serdes收发控制模块。但是,由于在这种方式下,数据只能在对应的收发接口之间传送,对于例如TX1发送数据、RX2接收数据这样的在不同收发接口之间的数据传送过程则无法测试。The first way is Serdes loopback built-in self-test (Build-In Self Test, BIST). In this technology, in the Serdes bus interface module, usually under the control of the high-speed Serdes transceiver control module, data is transmitted between the corresponding receiving and transmitting interfaces, for example, TX1 sends data, RX1 receives data, TX2 sends data, RX2 receives data. In this way, the test of the switching fabric can cover the high-speed Serdes bus interface module and the high-speed Serdes transceiver control module. However, in this way, data can only be transmitted between the corresponding transceiver interfaces, so the data transmission process between different transceiver interfaces such as TX1 sending data and RX2 receiving data cannot be tested.
为了弥补第一种方式无法进行交换网片的全交换功能测试的缺陷,在第二种方式中,增设了满配M级板来实现在对应的收发接口或者不相对应的收发接口之间传送数据,从而实现对交换网片的全交换功能测试。In order to make up for the defect that the first method cannot perform the full switching function test of the switching fabric, in the second method, a fully equipped M-level board is added to realize the transmission between the corresponding transceiver interface or the non-corresponding transceiver interface. Data, so as to realize the full switching function test of the switching fabric.
但是,在实现本发明的过程,按照上述的第二种方式虽然实现了对交换网片的全交换功能的测试,但是由于增设了M级板,因此,这种方式的成本较高。However, in the process of realizing the present invention, although the test of the full switching function of the switching fabric is realized according to the above-mentioned second method, the cost of this method is relatively high due to the addition of M-level boards.
发明内容 Contents of the invention
本发明实施例提供一种实现交换网片全交换功能测试的方法及交换网片,能够降低对交换网片进行全交换功能测试的成本。Embodiments of the present invention provide a method for implementing a full switching function test of a switching fabric and a switching fabric, which can reduce the cost of performing a full switching function test on a switching fabric.
本发明实施例采用如下技术方案:The embodiment of the present invention adopts following technical scheme:
一种实现交换网片全交换功能测试的方法,包括:A method for realizing a full switching function test of a switching fabric, comprising:
第一发送端口发送第一测试报文到数据单元交换模块;The first sending port sends the first test message to the data unit switching module;
所述数据单元交换模块将所述接收到的第一测试报文交换到各接收端口;The data unit switching module switches the received first test message to each receiving port;
所述接收端口发送第二测试报文到相应发送端口,使得所述发送端口根据所述第一测试报文的发送情况对所述接收端口发送的第二测试报文进行校验。The receiving port sends the second test message to the corresponding sending port, so that the sending port verifies the second test message sent by the receiving port according to the sending condition of the first test message.
一种交换网片,包括:至少一个发送端口,数据单元交换模块,以及至少一个接收端口;其中,A switching fabric, comprising: at least one sending port, a data unit switching module, and at least one receiving port; wherein,
所述至少一个发送端口,用于向所述数据单元交换模块发送第一测试报文,接收由所述接收端口发送的第二测试报文,并根据所述第一测试报文的发送情况对所述接收端口发送的第二测试报文进行校验;The at least one sending port is configured to send a first test message to the data unit switching module, receive a second test message sent by the receiving port, and send the first test message according to the sending situation of the first test message. Verifying the second test message sent by the receiving port;
所述数据单元交换模块,用于接收由所述发送端口发送的第一测试报文,将所述第一测试报文交换到所述各接收端口;The data unit switching module is configured to receive the first test message sent by the sending port, and switch the first test message to the receiving ports;
所述至少一个接收端口,用于接收由所述数据单元交换模块交换的第一测试报文,并发送第二测试报文到所述发送端口。The at least one receiving port is used to receive the first test message exchanged by the data unit switching module, and send the second test message to the sending port.
本发明实施例的实现交换网片全交换功能测试的方法及交换网片,通过对发送端口进行配置,使得其同时具有报文发送和校验功能,然后将发送端口发送的测试报文交换到全部的接收端口,并将由接收端口发送的数据再发送到发送端口进行校验,从而完成交换网片的全交换功能测试。由此可以看出,利用本发明实施例的交换网片和方法,无需配置M级板,因此,相较于现有技术,本发明实施例的交换网片和方法能够降低对交换网片进行全交换功能测试的成本。The method for realizing the full switching function test of the switching network chip and the switching network chip in the embodiment of the present invention configure the sending port so that it has message sending and verification functions at the same time, and then the test message sent by the sending port is switched to All the receiving ports, and send the data sent by the receiving port to the sending port for verification, so as to complete the full switching function test of the switching fabric. It can be seen from this that, using the switching fabric and the method of the embodiment of the present invention, there is no need to configure an M-level board. Therefore, compared with the prior art, the switching fabric and the method of the embodiment of the present invention can reduce The cost of a full switch functional test.
附图说明 Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that are used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.
图1为本发明实施例一实现交换网片全交换功能测试的方法的流程图;Fig. 1 is the flow chart of the method for realizing the full switching function test of switching fabric piece in the embodiment of the present invention;
图2和图3分别为本发明实施例一中的报文传递示意图;FIG. 2 and FIG. 3 are respectively schematic diagrams of message delivery in Embodiment 1 of the present invention;
图4为本发明实施例二交换网片的示意图;FIG. 4 is a schematic diagram of a switching fabric according to Embodiment 2 of the present invention;
图5为本发明实施例二交换网片的结构图。FIG. 5 is a structural diagram of a switching fabric according to Embodiment 2 of the present invention.
具体实施方式 Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
在此,首先对“全交换功能测试”这个概念进行一下解释。所谓的全交换功能测试,是指对交换网片的测试覆盖到了该交换网片内全部的功能模块,使得每个发送端口发送的报文能够传送到任意的接收端口,并测试在该发送端口到各个接收端口之间的通信路径是否可用。Here, firstly, the concept of "full switching function test" is explained. The so-called full switching function test means that the test of the switching fabric covers all the functional modules in the switching fabric, so that the message sent by each sending port can be transmitted to any receiving port, and the test on the sending port Whether the communication path to each receive port is available.
为降低对交换网片进行全交换功能测试的成本,如图1所示,本发明实施例一提供了一种实现交换网片全交换功能测试的方法,包括:In order to reduce the cost of performing a full switching function test on a switching fabric, as shown in Figure 1, Embodiment 1 of the present invention provides a method for implementing a full switching function test of a switching fabric, including:
步骤11、第一发送端口发送第一测试报文到数据单元交换模块。
在此,为描述方便,提出了“第一发送端口”的概念。需要说明的是,交换网片中可能包括多个发送端口,其中每个发送端口都可以作为在此所描述的“第一发送端口”。也就是说,“第一发送端口”并不是特指某个发送端口,而仅仅如前所述是为了描述方便所提出的一个概念。Here, for the convenience of description, the concept of "first sending port" is proposed. It should be noted that the switching fabric may include multiple sending ports, and each sending port may serve as the "first sending port" described herein. That is to say, "the first sending port" does not specifically refer to a certain sending port, but is only a concept proposed for the convenience of description as mentioned above.
另外,由于是对交换网片的全功能进行测试,根据上述对全功能测试的概念的解释,在此,上述第一发送端口是在交换网片的内部将第一测试报文发送给数据单元交换模块。In addition, because the full function of the switching fabric is tested, according to the above explanation of the concept of full function testing, here, the first sending port sends the first test message to the data unit inside the switching fabric Switch modules.
步骤12、所述数据单元交换模块将所述接收到的第一测试报文交换到各接收端口。Step 12: The data unit switching module switches the received first test message to each receiving port.
在此步骤中,所述数据单元交换模块可通过至少以下两种方式中的一种将由第一发送端口接收到的第一测试报文交换到各接收端口。In this step, the data unit switching module can switch the first test message received by the first sending port to each receiving port through at least one of the following two ways.
第一种方式:所述数据单元交换模块可解析所述第一测试报文,获得所述第一测试报文的目的接收端口信息。在所述第一测试报文中,其报文头包括有64字节的信元,用于表示该第一发送端口所发送的第一测试报文的目的接收端口,也即所述第一发送端口想要往哪个接收端口发送其第一测试报文。例如,假设有7个接收端口,该第一发送端口想要首先将其第一测试报文发送至第一接收端口,那么在所述第一测试报文的报文头中可包括该第一接收端口的信息,如该接收端口的标号,地址等。对于剩下的其他6个端口处理方式类似。由于是进行全交换功能测试,因此,该第一发送端口的第一测试报文需要发往全部的接收端口。The first way: the data unit switching module can parse the first test message to obtain destination receiving port information of the first test message. In the first test message, its message header includes a 64-byte information element, which is used to indicate the destination receiving port of the first test message sent by the first sending port, that is, the first To which receiving port the sending port wants to send its first test packet. For example, assuming there are 7 receiving ports, and the first sending port wants to send its first test message to the first receiving port, then the first test message can be included in the header of the first test message. The information of the receiving port, such as the label and address of the receiving port. The remaining 6 ports are handled in a similar manner. Since the full switching function test is performed, the first test message of the first sending port needs to be sent to all receiving ports.
第二种方式:在接收到所述第一发送端口发送的第一测试报文后,所述数据单元交换模块可获得发送所述第一测试报文的第一发送端口信息,如该第一发送端口的编号,地址等。然后,根据自身寄存器中的配置信息,将所述第一测试报文交换到相应的接收端口。例如,还是以7个发送端口和7个接收端口为例。以端口号为1的端口为例,在所述数据单元交换模块中可存储有发送端口发送的第一测试报文的次数、发输送端口信息和接收端口信息的对应关系表,如表1所示:The second way: After receiving the first test message sent by the first sending port, the data unit switching module can obtain the first sending port information for sending the first test message, such as the first The number, address, etc. of the sending port. Then, switch the first test message to the corresponding receiving port according to the configuration information in its own register. For example, still take 7 sending ports and 7 receiving ports as an example. Taking the port whose port number is 1 as an example, the number of times of the first test message sent by the sending port, the corresponding relationship table of the sending port information and the receiving port information can be stored in the data unit switching module, as shown in Table 1 Show:
由表1可以看出,当所述数据单元交换模块确定其接收到的第一测试报文来自编号为1的发送端口时,可对接收到该发送端口的第一测试报文的次数进行计数。当第一次接收到该发送端口的第一测试报文时,将该第一测试报文发送至编号为1的接收端口;当第二次接收到该发送端口的第一测试报文时,将该第一测试报文发送至编号为2的接收端口。直到将该发送端口的第一测试报文发送至全部的7个接收端口。As can be seen from Table 1, when the data unit switching module determines that the first test message it receives is from the sending port numbered 1, it can count the number of times it receives the first test message from the sending port . When the first test message of the sending port is received for the first time, the first test message is sent to the receiving port numbered 1; when the first test message of the sending port is received for the second time, Send the first test packet to the receiving port numbered 2. Until the first test packet of the sending port is sent to all 7 receiving ports.
当然,在该表1中的对应方式还可能有其他的形式。需要注意的是,在此只是举例描述了如何根据数据单元交换模块自身的配置将第一发送端口的第一测试报文发送到各个接收端口。在具体应用中,还可能有其他的实现方式,并不受在此所举示例的限制。Of course, the corresponding manner in Table 1 may also have other forms. It should be noted that this is just an example to describe how to send the first test packet of the first sending port to each receiving port according to the configuration of the data unit switching module itself. In specific applications, there may be other implementation manners, which are not limited by the examples given here.
步骤13、所述接收端口发送第二测试报文到相应发送端口,使得所述发送端口根据所述第一测试报文的发送情况对所述接收端口发送的第二测试报文进行校验。
如步骤11中所述,在本发明实施例中提出了“第一发送端口”的概念。由于在本发明实施例的交换网片的所有的发送端口都可进行数据的校验过程,因此,需要对各个发送端口做出上述区分。As described in
当所述发送端口为所述第一发送端口时,所述接收端口将所述第二测试报文发送至所述第一发送端口,然后由所述第一发送端口根据所述第一测试报文的发送情况对接收到的第二测试报文进行校验。在校验过程中,可根据在该第一发送端口上记录的它发送的第一测试报文的信息,如发送的第一测试报文的数量、格式等,对接收到的第二测试报文进行校验。若校验通过,则全交换功能测试成功,否则失败。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 sends the second test message according to the first test message Check the received second test message according to the sending status of the test message. In the verification process, according to the information of the first test message sent by it recorded on the first sending port, such as the quantity and format of the first test message sent, the received second test message The text is verified. If the verification is passed, the full switching function test is successful, otherwise it fails.
当所述发送端口不是所述第一发送端口时,所述交换网片中的收发控制模块由所述第一发送端口获取所述第一发送端口发送的第一测试报文的相关信息,如发送的第一测试报文的数量、格式等,并将所述相关信息发送给所述发送端口,然后由所述发送端口对接收到的第二测试报文进行校验。在校验过程中,可根据该发送端口获得相关信息,如第一端口发送的第一测试报文的数量、格式等,对接收到的第二测试报文进行校验。若校验通过,则全交换功能测试成功,否则失败。When the sending port is not the first sending port, the sending and receiving control module in the switching fabric obtains the relevant information of the first test message sent by the first sending port from the first sending port, such as The number and format of the first test message to be sent, and the relevant information is sent to the sending port, and then the sending port checks the received second test message. During the verification process, relevant information can be obtained according to the sending port, such as the quantity and format of the first test messages sent by the first port, and the received second test messages can be verified. If the verification is passed, the full switching function test is successful, otherwise it fails.
在此,还需要说明的是,若所述数据单元交换模块具有双向的交换功能,那么,所述接收端口还可将其第二测试报文发送给所述数据单元交换模块。相应的,所述数据单元交换模块可通过其自身将所述接收端口的第二测试报文交换到所述发送端口。Here, it should also be noted that, if the data unit switching module has a bidirectional switching function, then the receiving port can also send its second test message to the data unit switching module. Correspondingly, the data unit switching module may switch the second test message of the receiving port to the sending port by itself.
由上可以看出,利用本发明实施例一的方法,通过对发送端口进行配置,使得其同时具有报文发送和校验功能,然后将发送端口发送的测试报文交换到全部的接收端口,并将由接收端口发送的数据再发送到发送端口进行校验,从而完成交换网片的全交换功能测试。由此可以看出,利用本发明实施例的方法,无需配置M级板,因此,相较于现有技术,本发明实施例的方法能够降低对交换网片进行全交换功能测试的成本。As can be seen from the above, using the method of Embodiment 1 of the present invention, by configuring the sending port so that it has message sending and verification functions at the same time, and then switching the test message sent by the sending port to all receiving ports, And send the data sent by the receiving port to the sending port for verification, so as to complete the full switching function test of the switching fabric. It can be seen that, using the method of the embodiment of the present invention, there is no need to configure an M-level board. Therefore, compared with the prior art, the method of the embodiment of the present invention can reduce the cost of performing a full switching function test on the switching fabric.
本发明实施例中,在发送端口、数据单元交换模块、接收端口之间的报文传递过程如图2和图3所示。如图2所示,发送端口IPX1的测试报文分别通过内部发送的方式即经数据单元交换模块后交换到各个接收端口如OPX1......OPX71等。然后,由OPX1......OPX71发送的测试报文,再经外部发送到对应的发送端口。当然,由OPX1......OPX71发送的测试报文还可不发送到对应的发送端口。如图3所示,发送端口IPX1的测试报文分别通过内部发送的方式即经数据单元交换模块后交换到各个接收端口如OPX1......OPX71等。以接收端口OPX1为例,该端口发送的测试报文可再通过内部发送的方式即经数据单元交换模块交换到任意的发送端口。其他接收端口类似。需要注意的是,在此只是举例示意本发明实施例中报文的传递过程。In the embodiment of the present invention, the message transfer process between the sending port, the data unit switching module and the receiving port is shown in FIG. 2 and FIG. 3 . As shown in FIG. 2 , the test messages of the sending port IPX1 are sent internally, that is, are switched to each receiving port such as OPX1 . . . OPX71 after passing through the data unit switching module. Then, the test message sent by OPX1...OPX71 is sent to the corresponding sending port through the outside. Certainly, the test message sent by OPX1 . . . OPX71 may not be sent to the corresponding sending port. As shown in FIG. 3 , the test messages of the sending port IPX1 are sent internally, that is, are switched to each receiving port such as OPX1 . . . OPX71 after passing through the data unit switching module. Taking the receiving port OPX1 as an example, the test message sent by this port can be switched to any sending port through the data unit switching module in an internal sending manner. Other receive ports are similar. It should be noted that this is only an example to illustrate the message delivery process in the embodiment of the present invention.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM), etc.
如图4所示,本发明实施例二提供了一种交换网片,包括:至少一个发送端口21,数据单元交换模块22,以及至少一个接收端口23。其中,As shown in FIG. 4 , Embodiment 2 of the present invention provides a switching fabric, including: at least one sending
所述至少一个发送端口21,用于向所述数据单元交换模块发送第一测试报文,接收由所述接收端口发送的第二测试报文,并根据所述第一测试报文的发送情况对所述接收端口发送的第二测试报文进行校验;The at least one sending
所述数据单元交换模块22,用于接收由所述发送端口21发送的第一测试报文,将所述第一测试报文交换到所述各接收端口;The data
所述至少一个接收端口23,用于接收由所述数据单元交换模块22交换的第一测试报文,并发送第二测试报文到所述发送端口21。The at least one receiving
同样,在此实施例中,所述数据单元交换模块可配置为具有单向或者双向的交换功能。若所述数据单元交换模块具有单向的交换功能,那么所述接收端口是直接将第二测试报文还回到所述发送端口。若所述数据单元交换模块具有双向的交换功能,那么,在所述接收端口将第二测试报文发送给发送端口时,是经过所述数据单元交换模块将该第二测试报文交换到所述发送端口。也即,所述接收端口可将其第二测试报文发送给所述数据单元交换模块,并由所述数据单元交换模块通过其自身将所述接收端口的第二测试报文交换到所述发送端口。Likewise, in this embodiment, the data unit switching module can be configured to have a one-way or two-way switching function. If the data unit switching module has a one-way switching function, then the receiving port directly returns the second test message to the sending port. If the data unit switching module has a two-way switching function, then, when the receiving port sends the second test message to the sending port, the second test message is switched to the said data unit switching module through the data unit switching module. the sending port described above. That is, the receiving port may send its second test message to the data unit switching module, and the data unit switching module may switch the second test message of the receiving port to the data unit switching module by itself. sending port.
与方法实施例中描述的相同,为描述方便,在此也提出“第一发送端口”的概念。交换网片中可能包括多个发送端口,其中每个发送端口都可以作为在此所描述的“第一发送端口”。也就是说,“第一发送端口”并不是特指某个发送端口。The same as described in the method embodiments, for the convenience of description, the concept of "first sending port" is also proposed here. The switching fabric slice may include multiple sending ports, and each sending port may serve as the "first sending port" described herein. That is to say, the "first sending port" does not specifically refer to a certain sending port.
在所述接收端口将第二测试报文发送到发送端口时,是发送到各个发送端口。当发送到所述第一发送端口时,在校验过程中,该第一发送端口可根据在其上记录的它发送的第一测试报文的信息,如发送的第一测试报文的数量、格式等,对接收到的第一测试报文进行校验。若校验通过,则全交换功能测试成功,否则失败。When the receiving port sends the second test message to the sending port, it is sent to each sending port. When sending to the first sending port, in the verification process, the first sending port can record the information of the first test message it sends on it, such as the number of the first test message sent , format, etc., and verify the received first test message. If the verification is passed, the full switching function test is successful, otherwise it fails.
当发送到其他发送端口时,如图5所示,所述交换网片还可包括:收发控制模块24,用于由所述第一发送端口获得所述第一发送端口发送的第一测试报文的相关信息,并将所述相关信息发送给所述发送端口。此时,所述发送端口可根据获得的相关信息,如第一端口发送的第一测试报文的数量、格式等,对接收到的第二测试报文进行校验。若校验通过,则全交换功能测试成功,否则失败。When sending to other sending ports, as shown in Figure 5, the switching fabric can also include: a transceiver control module 24, used to obtain the first test report sent by the first sending port by the first sending port related information of the document, and send the related information to the sending port. At this time, the sending port may verify the received second test message according to the obtained relevant information, such as the quantity and format of the first test message sent by the first port. If the verification is passed, the full switching function test is successful, otherwise it fails.
在图4或者图5所示的交换网片中,所述数据交换模块22在将所述第一测试报文交换到所述各接收端口时,具体用于解析所述第一测试报文,获得所述第一测试报文的目的接收端口信息,并根据所述目的接收端口信息,将所述第一测试报文交换到相应的接收端口。或者,所述数据交换模块22在将所述第一测试报文交换到所述各接收端口时,具体用于获取发送所述第一发送端口信息,并根据自身的配置信息,将所述第一测试报文交换到相应的接收端口。In the switching fabric shown in FIG. 4 or FIG. 5, when the
本发明实施例交换网片的工作原理可参照方法实施例中的描述。For the working principle of the switching fabric in the embodiment of the present invention, reference may be made to the description in the method embodiment.
由上可以看出,本发明实施例的交换网片,通过对发送端口进行配置,使得其同时具有报文发送和校验功能,然后将发送端口发送的测试报文交换到全部的接收端口,并将由接收端口发送的数据再发送到发送端口进行校验,从而完成交换网片的全交换功能测试。由此可以看出,利用本发明实施例的交换网片,无需配置M级板,因此,相较于现有技术,本发明实施例的交换网片和方法能够降低对交换网片进行全交换功能测试的成本。As can be seen from the above, the switching fabric of the embodiment of the present invention configures the sending port so that it has message sending and verification functions at the same time, and then switches the test message sent by the sending port to all receiving ports, And send the data sent by the receiving port to the sending port for verification, so as to complete the full switching function test of the switching fabric. It can be seen from this that using the switching fabric of the embodiment of the present invention does not need to configure an M-level board. Therefore, compared with the prior art, the switching fabric and the method of the embodiment of the present invention can reduce the cost of performing full switching on the switching fabric. The cost of functional testing.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010101598353A CN101826998B (en) | 2010-04-29 | 2010-04-29 | Method for Realizing Full Switching Function Test of Switching Fabric and Switching Fabric |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010101598353A CN101826998B (en) | 2010-04-29 | 2010-04-29 | Method for Realizing Full Switching Function Test of Switching Fabric and Switching Fabric |
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 Expired - Fee Related CN101826998B (en) | 2010-04-29 | 2010-04-29 | Method for Realizing Full Switching Function Test of Switching Fabric and Switching Fabric |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101826998B (en) |
Families Citing this family (4)
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)
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)
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 |
-
2010
- 2010-04-29 CN CN2010101598353A patent/CN101826998B/en not_active Expired - Fee Related
Patent Citations (2)
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 |
---|---|---|
US11907140B2 (en) | Serial interface for semiconductor package | |
CN101911609B (en) | System, device and method for realizing unified connector architecture | |
CN101656676B (en) | Method and equipment for updating media access control (MAC) address list items | |
US9141496B2 (en) | Methods and systems for testing electrical behavior of an interconnect having asymmetrical link | |
CN112118158B (en) | Test method, test device, test equipment and storage medium for switch | |
US10705142B2 (en) | Device, system and method for providing on-chip test/debug functionality | |
CN102394732B (en) | Multi-micropacket parallel processing structure | |
CN101895423A (en) | Data transmission method and system in Ethernet | |
CN101826998B (en) | Method for Realizing Full Switching Function Test of Switching Fabric and Switching Fabric | |
CN104104488A (en) | Wireless sensor network protocol conformance testing system and method | |
EP2798800A1 (en) | Expanding member ports of a link aggregation group between clusters | |
CN102307118A (en) | Back plate test method, apparatus thereof and system thereof | |
US10069604B2 (en) | Data transmission method and apparatus | |
CN105207848A (en) | SerDes bit error rate detecting method and system based on embedded chip | |
CN102665237B (en) | Simulative Ir interface protocol conformance testing device and interoperability testing method | |
CN104092632B (en) | A kind of network equipment | |
US20130346837A1 (en) | Communication device | |
CN114124753A (en) | Message sending method and equipment | |
CN104184843B (en) | Data forwarding apparatus and method | |
CN104320333B (en) | A kind of method and apparatus for detecting asymmetric static polymerization | |
US10417170B2 (en) | Device, system and method for packet processing to facilitate circuit testing | |
CN101902369A (en) | Fault location method and device for backplane crossover system | |
CN113452468B (en) | An information processing method and related equipment based on a new fronthaul network | |
CN110912765B (en) | Embedded function self-testing method and device for high-order router chip | |
CN104243173A (en) | Interface configuration method, master card and high-speed daughter card |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20120425 |