CN113037581B - Backboard channel testing method and device, board card and computer readable storage medium - Google Patents

Backboard channel testing method and device, board card and computer readable storage medium Download PDF

Info

Publication number
CN113037581B
CN113037581B CN201911352046.9A CN201911352046A CN113037581B CN 113037581 B CN113037581 B CN 113037581B CN 201911352046 A CN201911352046 A CN 201911352046A CN 113037581 B CN113037581 B CN 113037581B
Authority
CN
China
Prior art keywords
test
message
board
channel
interface
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
CN201911352046.9A
Other languages
Chinese (zh)
Other versions
CN113037581A (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201911352046.9A priority Critical patent/CN113037581B/en
Publication of CN113037581A publication Critical patent/CN113037581A/en
Application granted granted Critical
Publication of CN113037581B publication Critical patent/CN113037581B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a back plate channel testing method, a back plate channel testing device, a back plate card and a computer readable storage medium, and belongs to the field of testing. The method constructs the background flow message and the preset number of test messages by itself, and then enables the background flow message to be always transmitted back and forth in the back board channel to be tested, so that the preset number of test messages back and forth once in the back board channel to be tested. And then, determining whether the test passes or not by comparing the magnitude relation between the number of the returned test messages and the preset number. In the testing process of the backboard channel, a third-party tester is not needed, in addition, the tester designates the channel to be tested and then automatically tests, and for the tester, the tester does not need to repeatedly modify the testing parameters according to different testing objects, so that the testing complexity is simplified.

Description

Backboard channel testing method and device, board card and computer readable storage medium
Technical Field
The application belongs to the field of testing, and particularly relates to a back plate channel testing method, a back plate channel testing device, a back plate card and a computer readable storage medium.
Background
The backplane channels are communication links between boards in the board (e.g., between line cards and switch cards, line cards and line cards). The existing backplane channel testing method needs to provide a data stream by means of a third party tester, so that the data stream flows from the panel to the backplane. Because the bandwidth of backplate is higher than the panel, consequently, the interface that the third party's tester needs to connect a plurality of panels simultaneously just can satisfy the line speed of backplate passageway and transmit, consequently, when need test different backplate passageway, just need debug the third party's tester again for the process of test is comparatively loaded down with trivial details, and the complexity is higher.
Disclosure of Invention
In view of the foregoing, an object of the present application is to provide a method, an apparatus, a board card and a computer readable storage medium for testing a backplane channel, so that the testing of the backplane channel is completed without using a third-party tester.
Embodiments of the present application are implemented as follows:
in a first aspect, an embodiment of the present application provides a method for testing a backplane channel, which is applied to a board, where interfaces of the board and interfaces of other boards are connected to each other to form a backplane channel, and the method includes: constructing a background flow message and a preset number of test messages aiming at a local end interface of a backboard channel to be tested of the board card, wherein a destination address of the background flow message and the test messages is used for pointing to the board card, and a mapping relation exists between the destination address and the local end interface; the background stream message arriving at the local end interface is sent to an opposite end interface of the backboard channel to be tested in a forced mode, the preset number of test messages arriving at the local end interface are sent to the opposite end interface in a forced mode, and after the opposite end interface receives the background stream message and the test message, the background stream message and the test message are sent back to the local end interface according to a normal forwarding flow; counting the number of the test messages returned through the opposite port interface; and determining whether the test passes or not according to the magnitude relation between the number and the preset number. The method constructs the background flow message and the preset number of test messages by itself, and then enables the background flow message to be always transmitted back and forth in the back board channel to be tested, so that the test message is transmitted back and forth once in the back board channel to be tested. And then, determining whether the test passes or not by comparing the magnitude relation between the number of the returned test messages and the preset number. In the testing process of the backboard channel, a third-party tester is not needed, in addition, the tester designates the channel to be tested and then automatically tests, and for the tester, the tester does not need to repeatedly modify the testing parameters according to different testing objects, so that the testing complexity is simplified.
With reference to the first aspect embodiment, in a possible implementation manner, the determining whether the test passes according to a magnitude relation between the number and the preset number includes: and when the number is equal to the preset number, determining that the test passes.
With reference to the embodiment of the first aspect, in a possible implementation manner, each test packet includes a cyclic redundancy check code, and determining whether the test passes according to a size relationship between the number and the preset number includes: and when the value of the register which is used for recording the number of times of errors of the cyclic redundancy check code is zero, determining that the test passes.
With reference to the embodiment of the first aspect, in a possible implementation manner, a plurality of backplane channels are formed between the board card and other board cards, and the constructing a background stream packet and a preset number of test packets includes: constructing a background stream message and a preset number of test messages, wherein the background stream message and the test messages comprise the identification of a backboard channel, and the identification is consistent with the identification of the backboard channel to be tested; the counting the number of the test messages sent back through the opposite-end interface includes: and counting the number of the test messages which are returned through the opposite-end interface and comprise the identification of the backboard channel.
In a second aspect, an embodiment of the present application provides a back board channel testing device, which is applied to a board card, and an interface of the board card and interfaces of other board cards are connected with each other to form a back board channel, where the device includes: the device comprises a construction module, a background flow message and a preset number of test messages, wherein the construction module is used for constructing a background flow message and a preset number of test messages aiming at a local interface of a back board channel to be tested of the board card, a destination address of the background flow message and the test messages is used for pointing to the board card, and a mapping relation exists between the destination address and the local interface; the sending module is used for sending the background flow message reaching the local end interface to the opposite end interface of the back plate channel to be tested in a forced way, and sending the preset number of test messages reaching the local end interface to the opposite end interface in a forced way, wherein after the opposite end interface receives the background flow message and the test message, the background flow message and the test message are sent back to the local end interface according to a normal forwarding flow; the statistics module is used for counting the number of the test messages returned through the opposite-end interface; and the determining module is used for determining whether the test passes or not according to the magnitude relation between the number and the preset number.
With reference to the second aspect of the embodiment, in a possible implementation manner, the determining module is configured to determine that the test passes when the number is equal to the preset number.
With reference to the second aspect of the embodiment, in one possible implementation manner, each test packet includes a cyclic redundancy check code, and the determining module is configured to determine that the test passes when it is determined that the number is equal to the preset number and a value of a register used for recording a number of errors occurring in the cyclic redundancy check code is zero.
With reference to the second aspect of the embodiment, in one possible implementation manner, a plurality of backboard channels are formed between the board card and other board cards; the construction module is used for constructing background flow messages and a preset number of test messages, wherein the background flow messages and the test messages comprise the identification of the backboard channels, and the identification is consistent with the identification of the backboard channels to be tested; the statistics module is used for counting the number of the test messages which are returned through the opposite-end interface and comprise the identification of the backboard channel.
In a third aspect, an embodiment of the present application further provides a board, where an interface of the board and interfaces of other boards are connected to each other to form a backplane channel, where the board is configured to: constructing a background flow message and a preset number of test messages aiming at a local end interface of a backboard channel to be tested of the board card, wherein a destination address of the background flow message and the test messages is used for pointing to the board card, and a mapping relation exists between the destination address and the local end interface; the background stream message arriving at the local end interface is sent to an opposite end interface of the backboard channel to be tested in a forced mode, the preset number of test messages arriving at the local end interface are sent to the opposite end interface in a forced mode, and after the opposite end interface receives the background stream message and the test message, the background stream message and the test message are sent back to the local end interface according to a normal forwarding flow; counting the number of the test messages returned through the opposite port interface; and determining whether the test passes or not according to the magnitude relation between the number and the preset number.
In a fourth aspect, the embodiments of the present application further provide a non-volatile computer readable storage medium (hereinafter referred to as computer readable storage medium), on which a computer program is stored, which when executed by a computer performs the above-described embodiments of the first aspect and/or the method provided in connection with any one of the possible implementations of the embodiments of the first aspect.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the embodiments of the application. The objects and other advantages of the present application may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art. The above and other objects, features and advantages of the present application will become more apparent from the accompanying drawings. Like reference numerals refer to like parts throughout the several views of the drawings. The drawings are not intended to be drawn to scale, with emphasis instead being placed upon illustrating the principles of the present application.
Fig. 1 shows a schematic structural diagram of a board provided in an embodiment of the present application.
Fig. 2 shows a flowchart of a method for testing a backplane channel according to an embodiment of the present application.
Fig. 3 shows one of connection diagrams between boards according to an embodiment of the present application.
Fig. 4 shows a second schematic diagram of connection between boards according to an embodiment of the present disclosure.
Fig. 5 shows a block diagram of a back board channel testing device according to an embodiment of the present application.
Reference numerals: 100-board card; 110-a processor; 120-memory; 130-network chip; 400-backboard channel test device; 410 building up a module; 420-a transmitting module; 430-a statistics module; 440-determination module.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: the term "and/or" in this application is merely an association relation describing an associated object, and indicates that three relations may exist, for example, a and/or B may indicate: a exists alone, A and B exist together, and B exists alone.
In order to solve the problem that in the prior art, a third party tester is required to be relied on when a back board channel is tested, the embodiment of the application provides a back board channel testing method, a device, a board card and a computer readable storage medium, so that the back board channel is tested on the premise of not using the third party tester. The technology can be realized by adopting corresponding software, hardware and a combination of the software and the hardware.
Furthermore, the discovery process of the above-described problems, and the solutions presented below by the embodiments of the present application for the above-described problems, should be all contributions to the present application by the applicant during the course of the present application.
The following describes embodiments of the present application in detail.
First, a board 100 for implementing the backplane channel testing method and apparatus according to the embodiments of the present application will be described with reference to fig. 1.
The board card 100 may be a line card or a switch card.
Optionally, the board card 100 may include a processor 110, a memory 120, and a network chip 130 (e.g., a switch chip, a MAC chip, etc.).
It should be noted that the components and structures of the board 100 shown in fig. 1 are exemplary only and not limiting, and that the board 100 may have other components and structures, including interfaces for example, as desired.
The processor 110, the memory 120, the network chip 130, and other components that may be present on the board 100 are electrically connected to each other, either directly or indirectly, to enable transmission or interaction of data. For example, the processor 110, the memory 120, the plurality of boards 100, and possibly other components may be electrically connected to each other by one or more communication buses or signal lines.
The memory 120 is used for storing a program, for example, a program corresponding to a back plane channel testing method appearing later or a back plane channel testing device appearing later. Alternatively, when the back plane channel test device is stored in the memory 120, the back plane channel test device includes at least one software functional module that may be stored in the memory 120 in the form of software or firmware (firmware).
The processor 110 is configured to execute executable modules stored in the memory 120, such as software functional modules or computer programs included in the backplane channel testing device. When the processor 110 receives the execution instructions, it may execute a computer program, for example, to perform the backplane channel test method hereinafter.
Of course, the methods disclosed in any of the embodiments of the present application may be applied to the processor 110 or implemented by the processor 110.
For the board card 100 in the embodiment of the present application, the included backplane interface may be connected with interfaces of other board cards 100 to form a backplane channel. The following describes a back plane channel test method for a back plane channel provided in the present application.
Referring to fig. 2, an embodiment of the present application provides a method for testing a backplane channel of the above board card, which includes the following steps.
Step S110: and constructing a background stream message and a preset number of test messages aiming at the local end interface of the backboard channel to be tested of the board card.
As mentioned above, a plurality of boards 100 may be connected by an interface, thereby forming one to a plurality of backplane channels.
For the connection relationship between the plurality of boards 100, as an optional implementation manner, when the plurality of boards 100 are all line cards, the plurality of line cards may be directly connected through the interfaces included in each of the plurality of line cards, so as to form one to a plurality of back board channels. For example, in fig. 3, each line card includes two interfaces, the P1 interface of line card a is connected with the P2 interface of line card C, the P2 interface of line card a is connected with the P1 interface of line card B, and the P2 interface of line card B is connected with the P1 interface of line card C, thereby forming three backplane channels.
As another alternative, when a plurality of board cards 100 include both line cards and switch cards, the switch cards may be connected to each line card as intermediate nodes to form one or more backplane channels. For example, in fig. 4, the F1 interface of the switch card is connected to the P1 interface of the line card a, the F2 interface of the switch card is connected to the P1 interface of the line card B, and the F3 interface of the switch card is connected to the P1 interface of the line card C, thereby forming three backplane channels.
Each back plate channel comprises two interfaces, one is the interface of one of the two mutually connected boards, and the other is the interface of the other board. For convenience of description, in the embodiment of the present application, two concepts of a local interface and an opposite interface are defined, where after the interfaces of two boards are connected to each other to form a backplane channel, for one board, the interface of the local end is the local interface of the backplane channel that the interface of the other board participates in to form, and the interface of the other board is the opposite interface of the backplane channel. For example, in fig. 4, a backplane channel is formed between an interface F1 of the switch card and an interface P1 of the line card a, for the switch card, F1 is a local interface of the backplane channel, P1 is an opposite interface of the backplane channel, for the line card a, P1 is a local interface of the backplane channel, and F1 is an opposite interface of the backplane channel.
After the tester designates the backplane channel to be tested (in general, all the existing backplane channels in the board card can be the backplane channels to be tested, of course, in special cases, the tester can designate to test a certain or a plurality of backplane channels), one board card connected with the backplane channel to be tested can serve as a message builder to build a message for testing.
Generally, when the frame structure between the boards 100 is a direct connection type as shown in fig. 3, for each backplane channel to be tested, any one of the boards 100 included therein serves as a message builder. When the frame structure between the boards 100 includes intermediate nodes as shown in fig. 4, the boards 100 as intermediate nodes, i.e., the switch cards, serve as message constructors for each backplane channel to be tested.
The messages constructed by the board 100 acting as a message constructor include background stream messages and a preset number of test messages.
For the background stream message and the test message, a message type identifier, a destination address (a destination MAC address or a destination IP address) may be included. The message format of the background stream message and the test message may not be limited. In addition, the background stream message and the test message may further include a message serial number, an identifier (e.g., ID) of the backplane channel, and the like.
The message type is used for representing that the message is a background stream message or a test message.
The background flow message is used for forwarding back and forth in the back board channel to be tested all the time, so that the back board channel to be tested is always in a busy state, the pressure of a link is increased, the bandwidth utilization rate is improved, and the line speed forwarding performance of the back board channel to be tested under the condition of high flow pressure is tested.
Each test in the preset number of test messages is used for making a round trip in the back board channel to be tested, so that whether the performance of the back board channel to be tested passes the test is tested.
In order to enable the background stream message and the test message constructed by the board card 100 as the message constructor to have the functions, for the board card 100 as the constructor, a mapping relation table of an address and an interface is stored in advance, and when a destination address (which may be a MAC address or an IP address) of a certain message constructed by the board card 100 is consistent with a certain address (assumed to be an address 1) in the mapping relation table, the message needs to be forcedly sent out from the interface corresponding to the address (address 1) in the mapping relation table in the board card 100 as the constructor.
In addition, in each board 100, a forwarding table entry is pre-stored, in which a correspondence between each address and each board 100 is recorded, and the forwarding table entry is used to represent a destination address (may be a MAC address or an IP address) of a certain packet, and when the forwarding table is a two-layer forwarding table entry and is an IP address, the forwarding table entry is a three-layer forwarding table entry) and a certain address (assumed to be address 2) in the forwarding table entry are consistent, in the board 100 as a board that receives the packet, the packet needs to be forwarded to the board 100 corresponding to the address (address 2) in the forwarding table entry according to a normal forwarding flow.
After a mapping relation table is stored in the board 100 as a message constructor and a forwarding table item is stored in each board 100, the board 100 as a message constructor constructs a background flow message and a test message, wherein the destination address of each constructed background flow message and test message is the same, in the forwarding table item, the destination address is used for pointing to the interface corresponding to the interface of the back board channel to be tested at the local end in the mapping relation table, the destination address is used for representing the interface of the back board channel to be tested at the outlet of the board 100 as the message constructor, and simultaneously, after the opposite end interface of the back board channel to be tested receives the background flow message and the test message, the background flow message and the test message are forwarded to the local end interface of the board 100 as the message constructor according to a normal forwarding flow, namely two-layer and three-layer forwarding table lookup.
When a certain board 100 as a constructor corresponds to a plurality of back board channels to be tested, a plurality of interfaces are correspondingly arranged on the board 100, and the interfaces are respectively used as the local interfaces of the back board channels to be tested. Accordingly, when constructing a message for testing, the board 100 needs to construct multiple sets of messages corresponding to multiple back board channels to be tested. The method comprises the steps that each set of messages comprises background flow messages and a preset number of test messages, and the background flow messages and the destination addresses of the test messages of each set of messages are different. It should be noted that, the background flow message of each set of message and the destination address of the test message are used to point to the board 100 itself as the constructor in the forwarding table entry, and the background flow message of each set of message and the destination address of the test message have a mapping relationship with the corresponding to-be-tested back board channel in the mapping relationship table at the local interface on the board 100.
Still taking fig. 4 as an example, for a switch card, three interfaces included in the switch card form three backplane channels to be tested with the line card a, the line card B, and the line card C, respectively. Assuming that the switch card is used as a message constructor, a mapping relation table is stored in the switch card, when the switch card is used for constructing the message, three sets of messages need to be constructed to respectively form one-to-one correspondence with the back plate channel 1 to be tested (F1-P1), the back plate channel 2 to be tested (F2-P1) and the back plate channel 3 to be tested (F3-P1). Aiming at a background stream message and a test message corresponding to the back board channel 1 to be tested, a target MAC address of the background stream message and the test message has a mapping relation with F1 in a mapping relation table; aiming at a background flow message and a test message corresponding to the back plate channel 2 to be tested, the destination MAC address of the background flow message and the test message has a mapping relation with F2 in a mapping relation table; for the background stream message and the test message corresponding to the back board channel 3 to be tested, the destination MAC address has a mapping relation with F3 in a mapping relation table. Of course, forwarding table entries (corresponding to MAC addresses, i.e. two-layer forwarding table entries) are stored in each of the line cards a, B and C, and destination MAC addresses of the three sets of messages are used in the forwarding table entries to point to the switch card.
It should be noted that, for different back board channels to be tested, the number of the test messages corresponding to the back board channels to be tested is predetermined. Of course, the number of test messages corresponding to each backplane channel to be tested may be the same or different.
Step S120: and sending the background stream message which reaches the local end interface to the opposite end interface of the back plate channel to be tested in a forced way, and sending the preset number of test messages which reach the local end interface to the opposite end interface in a forced way.
After the board 100 constructs the background stream message and the preset number of test messages, the board 100 queries the mapping relation table, so that the background stream message and the test messages are forcedly sent out from the corresponding interfaces.
Because the destination address of the message constructed by the board 100 is the interface of the back board channel to be tested on the side of the board 100 (the local interface is opposite to the board 100 itself), after the background stream message and the preset number of test messages are acquired, the local interface forcibly sends the background stream message and the acquired preset number of test messages to the interface of the back board channel to be tested on the other board 100 (the opposite interface is opposite to the board 100 itself).
It should be noted that, after the board 100 where the opposite port is located acquires the packet, the packet is forwarded to the board 100 (i.e. the constructor of the packet) pointed by the destination address of the packet according to the destination address carried in the packet, and therefore, after the board 100 where the opposite port is located acquires the test packet and the background stream packet, the acquired test packet and background stream packet are returned to the board 100 where the local port is located.
Through the above-mentioned process, for the board 100 where the home interface is located, it acquires the background stream message and the test message again.
At this time, for the background flow message, the board card 100 where the home interface is located sends the background flow message to the board card 100 where the opposite interface is located according to the forced sending flow, and correspondingly, the board card 100 where the opposite interface is located forwards the background flow message to the board card 100 where the home interface is located according to the forwarding flow. When the subsequent board 100 with the local interface and the board 100 with the opposite interface acquire the background flow message again, the above process is repeated, so that the background flow message is always forwarded between the board 100 corresponding to the local interface and the board 100 corresponding to the opposite interface, and the back board channel to be tested is always in a busy state, the pressure of the link is increased, the bandwidth utilization rate is improved, and the performance of the back board channel to be tested in the online speed forwarding process is tested.
For the test message, when the board card 100 where the local interface is located obtains the test message from the opposite-end interface for the second time, in this embodiment, the board card 100 where the local interface is located does not forward the same test message after the board card is obtained for the second time, and at the same time, the board card 100 where the local interface is located records the same test message.
Step S130: and counting the number of the test messages returned through the opposite-end interface.
The board 100 where the home interface is located can count the number of the messages to be tested that are sent back through the board 100 where the home interface is located after delaying for a preset period of time.
In addition, as an alternative implementation manner, when a plurality of back board channels are formed between the same board 100 and other boards 100, in order to avoid that when the board 100 where the interface is located performs statistics on the test message returned, the test message corresponding to the other channels to be tested is counted by mistake into the category of the test message corresponding to the channel to be tested, and when the board 100 where the interface is located constructs the test message, the identifier of the back board channel is added into the test message, and the identifier is consistent with the identifier of the back board channel to be tested corresponding to the test message. Therefore, when the board card 100 where the home interface is located counts the test messages, the number of the test messages that are looped back through the board card 100 where the home interface is located and include the corresponding identifiers of the backplane channels to be tested can be counted.
Step S140: and determining whether the test passes or not according to the magnitude relation between the number and the preset number.
Optionally, for a certain back board channel to be tested, when the number of the messages to be tested, which are counted by the board 100 and sent back by the board 100 where the opposite end of the back board channel to be tested is located, is consistent with the number of the test messages with a preset number, which are constructed for the back board channel to be tested, the board 100 where the local end interface is located can determine that the test of the back board channel to be tested passes, otherwise, the test of the back board channel to be tested does not pass.
In addition, as an alternative embodiment, each test packet constructed by the board 100 where the home interface is located further includes a Cyclic Redundancy Check (CRC). Before the board 100 where the local interface is located sends out the test messages, the network chip included in the board records the CRC of each test message in the sending state, for example, a corresponding relationship is established between the message serial number and the CRC. When the board 100 where the local interface is located acquires the test message returned by the board 100 where the opposite interface is located, the CRC of the test message in the receiving state is recorded again, whether the CRC corresponding to the same message serial number is equal is checked, and when an unequal condition is checked, the network chip automatically adds a register for recording CRC check errors. In this embodiment, when the number of the test messages counted by the board 100 where the home interface is located is equal to the preset number and the value of the register for recording the number of errors of the cyclic redundancy check code is zero, the board 100 determines that the test of the back board channel to be tested corresponding to the test message passes.
Of course, after determining the test result, the board 100 where the home interface is located may stop forwarding the background flow message.
According to the back board channel testing method, the background flow messages and the preset number of the testing messages are built, then the background flow messages are always forwarded back and forth in the back board channel to be tested, and the preset number of the testing messages are made to back and forth once in the back board channel to be tested. And then, determining whether the test passes or not by comparing the magnitude relation between the number of the returned test messages and the preset number. In the testing process of the backboard channel, a third-party tester is not needed, in addition, the tester designates the channel to be tested and then automatically tests, and for the tester, the tester does not need to repeatedly modify the testing parameters according to different testing objects, so that the testing complexity is simplified.
As shown in fig. 5, the embodiment of the present application further provides a back board channel testing device 400, where the back board channel testing device 400 may include: a construction module 410, a transmission module 420, a statistics module 430, and a determination module 440.
A construction module 410, configured to construct a background flow message and a preset number of test messages for a local interface of a backplane channel to be tested of the board, where a destination address of the background flow message and a destination address of the test message are used to point to the board, and the destination address and the local interface have a mapping relationship;
the sending module 420 is configured to send the background flow message arriving at the home terminal interface to an opposite terminal interface of the back board channel to be tested, and send the preset number of test messages arriving at the home terminal interface to the opposite terminal interface, where the opposite terminal interface sends the background flow message and the test message back to the home terminal interface according to a normal forwarding flow after receiving the background flow message and the test message;
a statistics module 430, configured to count the number of the test messages sent back through the interface of the opposite port;
a determining module 440, configured to determine whether the test passes according to a magnitude relation between the number and the preset number.
Optionally, the determining module 440 is configured to determine that the test passes when the number is equal to the preset number.
Optionally, each test packet includes a cyclic redundancy check code, and the determining module 440 is configured to determine that the test is passed when the number is equal to the preset number and a value of a register for recording a number of errors occurring in the cyclic redundancy check code is zero.
Optionally, a plurality of backboard channels are formed between the board card and other board cards. In this embodiment, the construction module 410 is configured to construct a background stream packet and a preset number of test packets, where the background stream packet and the test packets include an identifier of a backplane channel, and the identifier is consistent with the identifier of the backplane channel to be tested. The statistics module 430 is configured to count the number of the test packets sent back through the opposite port interface and including the identifier of the backplane channel.
The back plane channel testing device 400 provided in the embodiments of the present application has the same implementation principle and technical effects as those of the foregoing method embodiments, and for brevity, reference may be made to the corresponding contents of the foregoing method embodiments for the parts of the device embodiment that are not mentioned.
In addition, the embodiment of the application further provides a computer readable storage medium, and the computer readable storage medium stores a computer program, and when the computer program is executed by a computer, the computer program executes the steps included in the back panel channel testing method.
In summary, the method, the device, the board card and the computer readable storage medium for testing the back board channel provided by the embodiments of the present invention construct the background flow message and the preset number of test messages by itself, and then forward the background flow message back and forth in the back board channel to be tested all the time, so that the preset number of test messages back and forth in the back board channel to be tested once. And then, determining whether the test passes or not by comparing the magnitude relation between the number of the returned test messages and the preset number. In the testing process of the backboard channel, a third-party tester is not needed, in addition, the tester designates the channel to be tested and then automatically tests, and for the tester, the tester does not need to repeatedly modify the testing parameters according to different testing objects, so that the testing complexity is simplified.
It should be noted that, in the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described as different from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners as well. The apparatus embodiments described above are merely illustrative, for example, flow diagrams and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application.

Claims (10)

1. The back plate channel testing method is characterized by being applied to a board card, wherein interfaces of the board card and interfaces of other board cards are mutually connected to form a back plate channel, and the method comprises the following steps:
constructing a background flow message and a preset number of test messages aiming at a local interface of a back board channel to be tested of the board card, wherein a destination address of the background flow message and a destination address of the test message are used for pointing to the board card, a mapping relation exists between the destination address and the local interface, and the mapping relation is used for representing that the background flow message and the test message are local interfaces of the back board channel to be tested at an outlet of the board card;
the background stream message arriving at the local end interface is sent to an opposite end interface of the backboard channel to be tested in a forced mode, the preset number of test messages arriving at the local end interface are sent to the opposite end interface in a forced mode, and after the opposite end interface receives the background stream message and the test message, the background stream message and the test message are sent back to the local end interface according to a normal forwarding flow;
counting the number of the test messages returned through the opposite port interface;
and determining whether the test passes or not according to the magnitude relation between the number and the preset number.
2. The method of claim 1, wherein determining whether the test passes based on the magnitude relationship between the number and the preset number comprises:
and when the number is equal to the preset number, determining that the test passes.
3. The method of claim 1, wherein each of the test messages includes a cyclic redundancy check code, wherein determining whether the test passes based on a size relationship between the number and the preset number comprises:
and when the value of the register which is used for recording the number of times of errors of the cyclic redundancy check code is zero, determining that the test passes.
4. The method of claim 1, wherein a plurality of backplane channels are formed between the board card and other board cards, and the constructing the background stream message and the preset number of test messages includes:
constructing a background stream message and a preset number of test messages, wherein the background stream message and the test messages comprise the identification of a backboard channel, and the identification is consistent with the identification of the backboard channel to be tested;
the counting the number of the test messages sent back through the opposite-end interface includes:
and counting the number of the test messages which are returned through the opposite-end interface and comprise the identification of the backboard channel.
5. The utility model provides a backplate passageway testing arrangement, its characterized in that is applied to the integrated circuit board, interconnect forms the backplate passageway between the interface of integrated circuit board and the interface of other integrated circuit boards, the device includes:
the device comprises a construction module, a background flow message and a preset number of test messages, wherein the background flow message and a destination address of the test message are used for pointing to the board card, a mapping relation exists between the destination address and the local interface, and the mapping relation is used for representing that the background flow message and the test message are local interfaces of the back board channel to be tested at an outlet of the board card;
the sending module is used for sending the background flow message reaching the local end interface to the opposite end interface of the back plate channel to be tested in a forced way, and sending the preset number of test messages reaching the local end interface to the opposite end interface in a forced way, wherein after the opposite end interface receives the background flow message and the test message, the background flow message and the test message are sent back to the local end interface according to a normal forwarding flow;
the statistics module is used for counting the number of the test messages returned through the opposite-end interface;
and the determining module is used for determining whether the test passes or not according to the magnitude relation between the number and the preset number.
6. The apparatus of claim 5, wherein the means for determining determines that the test passes when the number is equal to the preset number.
7. The apparatus of claim 5, wherein each of the test messages includes a cyclic redundancy check code, wherein the determining module is configured to determine that the test passes when the number of registers equal to the preset number and used to record the number of errors in the cyclic redundancy check code is zero.
8. The apparatus of claim 5, wherein a plurality of backplane channels are formed between the board and other boards;
the construction module is used for constructing background flow messages and a preset number of test messages, wherein the background flow messages and the test messages comprise the identification of the backboard channels, and the identification is consistent with the identification of the backboard channels to be tested;
the statistics module is used for counting the number of the test messages which are returned through the opposite-end interface and comprise the identification of the backboard channel.
9. The board card is characterized in that the interfaces of the board card and the interfaces of other board cards are mutually connected to form a back board channel, and the board card is used for: constructing a background flow message and a preset number of test messages aiming at a local interface of a back board channel to be tested of the board card, wherein a destination address of the background flow message and a destination address of the test message are used for pointing to the board card, a mapping relation exists between the destination address and the local interface, and the mapping relation is used for representing that the background flow message and the test message are local interfaces of the back board channel to be tested at an outlet of the board card; the background stream message arriving at the local end interface is sent to an opposite end interface of the backboard channel to be tested in a forced mode, the preset number of test messages arriving at the local end interface are sent to the opposite end interface in a forced mode, and after the opposite end interface receives the background stream message and the test message, the background stream message and the test message are sent back to the local end interface according to a normal forwarding flow; counting the number of the test messages returned through the opposite port interface; and determining whether the test passes or not according to the magnitude relation between the number and the preset number.
10. A computer-readable storage medium, on which a computer program is stored, which computer program, when run by a computer, performs the method according to any of claims 1-4.
CN201911352046.9A 2019-12-24 2019-12-24 Backboard channel testing method and device, board card and computer readable storage medium Active CN113037581B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911352046.9A CN113037581B (en) 2019-12-24 2019-12-24 Backboard channel testing method and device, board card and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911352046.9A CN113037581B (en) 2019-12-24 2019-12-24 Backboard channel testing method and device, board card and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113037581A CN113037581A (en) 2021-06-25
CN113037581B true CN113037581B (en) 2024-02-27

Family

ID=76452468

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911352046.9A Active CN113037581B (en) 2019-12-24 2019-12-24 Backboard channel testing method and device, board card and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113037581B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115757052A (en) * 2021-09-03 2023-03-07 华为技术有限公司 Method, device and system for processing message

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4504783A (en) * 1982-09-30 1985-03-12 Storage Technology Partners Test fixture for providing electrical access to each I/O pin of a VLSI chip having a large number of I/O pins
CN102307118A (en) * 2011-08-10 2012-01-04 福建星网锐捷网络有限公司 Back plate test method, apparatus thereof and system thereof
CN102970187A (en) * 2012-12-04 2013-03-13 华为技术有限公司 Single board testing method, device and system
CN103631688A (en) * 2013-12-05 2014-03-12 迈普通信技术股份有限公司 Method and system for testing interface signal
CN104717109A (en) * 2015-04-02 2015-06-17 迈普通信技术股份有限公司 Simulation testing method and system for wide area network links
CN108415801A (en) * 2018-03-07 2018-08-17 深圳市风云实业有限公司 Backplane test method and computer storage media
CN110233779A (en) * 2019-07-16 2019-09-13 迈普通信技术股份有限公司 Test method, test macro and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4504783A (en) * 1982-09-30 1985-03-12 Storage Technology Partners Test fixture for providing electrical access to each I/O pin of a VLSI chip having a large number of I/O pins
CN102307118A (en) * 2011-08-10 2012-01-04 福建星网锐捷网络有限公司 Back plate test method, apparatus thereof and system thereof
CN102970187A (en) * 2012-12-04 2013-03-13 华为技术有限公司 Single board testing method, device and system
CN103631688A (en) * 2013-12-05 2014-03-12 迈普通信技术股份有限公司 Method and system for testing interface signal
CN104717109A (en) * 2015-04-02 2015-06-17 迈普通信技术股份有限公司 Simulation testing method and system for wide area network links
CN108415801A (en) * 2018-03-07 2018-08-17 深圳市风云实业有限公司 Backplane test method and computer storage media
CN110233779A (en) * 2019-07-16 2019-09-13 迈普通信技术股份有限公司 Test method, test macro and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"The research on a new implementation scheme of the portable general purpose Automatic Test System";Yonghui Xu;《IEEE》;20141027;全文 *
"基于TCL的报文转发自动化测试***设计与实现";李文佳;《中国优秀硕士论文全文数据库》;全文 *

Also Published As

Publication number Publication date
CN113037581A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
EP1603272B1 (en) Communication network event logging systems and methods
US7957402B2 (en) UDP to TCP bridge
US8014297B2 (en) Network test apparatus, network test method and network test program
CN101094121B (en) Method, system and device for detecting Ethernet links among not direct connected devices
CN112653600A (en) Network card performance testing method and device based on USB network card and electronic equipment
CN107547304A (en) Network card testing method, device and machinable medium
CN102571492B (en) Method and device for detecting failure of routing equipment
CN108632099B (en) Fault detection method and device for link aggregation
CN105553885B (en) A kind of FC interchanger priority test method
CN111314180A (en) Ethernet link test method, terminal and storage medium
CN108092922B (en) Method and device for transmitting message by interface board
CN113037581B (en) Backboard channel testing method and device, board card and computer readable storage medium
CN108111367A (en) Performance test methods and device
CN111200544B (en) Network port flow testing method and device
CN115396529A (en) Multichannel communication method, device, terminal equipment and storage medium
CN110908845B (en) Method for testing cross loop of dual-port 1553B bus of suspension management system based on real airborne environment
US20070055913A1 (en) Facilitating detection of hardware service actions
WO2015131613A1 (en) Method and device for detecting random-access memory (ram) malfunction
CN113572698B (en) Multicast group capacity testing method and device, storage medium and electronic device
CN113835946A (en) Pressure testing method for data exchange
CN101136807B (en) Port VLAN based switching chip port detecting method
US8125906B2 (en) Capture RCDT and SNTT SAS speed negotiation decodes in a network diagnostic component
US20040201382A1 (en) Error-tolerant connection test
CN113242292A (en) Message transmission method, device, equipment, medium and product
CN111641538B (en) MAC address table capacity test method, device, electronic device and readable storage medium

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