Detection methods, service line cards, forwarding devices, and computer-readable storage media
By using service line cards to generate and receive data packets in communication service forwarding equipment, rapid and convenient detection of backplane links can be achieved, solving the problems of time-consuming, labor-intensive, and costly processes in existing technologies, and improving detection efficiency and accuracy.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ZTE CORP
- Filing Date
- 2021-06-16
- Publication Date
- 2026-07-14
AI Technical Summary
Existing backplane testing methods are time-consuming, labor-intensive, costly, and difficult to locate faults, making it difficult to guarantee the signal quality of backplane connections in communication service forwarding equipment.
Data packets are generated by the service line card, passed through the backplane and switching board in sequence, and then sent to the receiving line card. The receiving line card is used to detect the backplane links, realizing targeted link detection and selective detection of multiple links.
It has achieved a fast and convenient detection process, reduced detection costs, improved detection efficiency, and can accurately identify abnormal links to ensure that data packets are forwarded normally.
Smart Images

Figure CN115484199B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to, but are not limited to, the field of communication technology, and particularly to a detection method, a service line card, a forwarding device, and a computer-readable storage medium. Background Technology
[0002] Communication service forwarding equipment generally includes service line cards, backplanes, switching boards, and other components. The backplane is used to realize the link connection between different boards on the device. Specifically, each service line card and each switching board will have a corresponding number of link connections through the backplane, so that packets can be forwarded between different service line cards through the switching board.
[0003] When equipment is mass-produced and shipped, it needs to undergo many hardware tests to screen out unqualified equipment. These tests include backplane testing, which requires ensuring that the backplane connection signal is good enough to guarantee the correct forwarding of messages.
[0004] Existing backplane testing methods often suffer from problems such as being time-consuming, labor-intensive, costly, and difficult to locate faults. Summary of the Invention
[0005] The following is an overview of the subject matter described in detail herein. This overview is not intended to limit the scope of the claims.
[0006] This invention provides a detection method, a service line card, a forwarding device, and a computer-readable storage medium, which can realize a fast and convenient detection process, reduce detection costs, and improve detection efficiency.
[0007] In a first aspect, embodiments of the present invention provide a detection method applied to a service transmission line card in a forwarding device. The forwarding device further includes a backplane, a switching board, and a service receiving line card. The service transmission line card is connected to the switching board through a link in the backplane, and the switching board is connected to the service receiving line card through a link in the backplane.
[0008] The detection method includes:
[0009] Generate data packets;
[0010] The data packet is sequentially transmitted through the backplane, the switching board, and the backplane before being sent to the service receiving line card, so that the service receiving line card can detect the link of the backplane based on the data packet.
[0011] Secondly, embodiments of the present invention also provide a detection method applied to a service receiving line card in a forwarding device. The forwarding device further includes a service transmitting line card, a backplane, and a switching board. The service transmitting line card is connected to the switching board through a link on the backplane, and the switching board is connected to the service receiving line card through a link on the backplane.
[0012] The detection method includes:
[0013] Data packets are acquired from the service transmission line card, wherein the data packets are sent by the service transmission line card and pass through the backplane, the switching board and the backplane in sequence;
[0014] The backplane links are detected based on the data packets.
[0015] Thirdly, embodiments of the present invention also provide a service line card, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the detection method as described in the first or second aspect above.
[0016] Fourthly, embodiments of the present invention also provide a forwarding device, including the service line card as described in the third aspect above.
[0017] Fifthly, embodiments of the present invention also provide a computer-readable storage medium storing computer-executable instructions for performing the detection method as described in the first or second aspect above.
[0018] This invention includes a forwarding device comprising a service transmitting line card, a backplane, a switching board, and a service receiving line card. The service transmitting line card is connected to the switching board via a link in the backplane, and the switching board is connected to the service receiving line card via a link in the backplane. Specifically, in the detection method of this invention, the service transmitting line card generates a data packet, which is then sequentially transmitted through the backplane, the switching board, and backplane before being sent to the service receiving line card. The service receiving line card then detects the backplane link based on the aforementioned data packet. According to the technical solution of this invention, since the condition of the backplane link affects the forwarding of data packets, based on the principle of actual data packet forwarding, as long as it does not affect the service, the data packet can be forwarded normally, and correspondingly, the backplane link is also functioning correctly. Therefore, this invention detects the backplane link signal by actually forwarding data packets. This invention, through the transmission and reception of messages by the service line cards themselves and between service line cards, avoids the time-consuming and labor-intensive traditional methods such as backplane signal measurement. It also avoids situations where measurements fail due to long-term signal instability, resulting in more convenient and accurate detection. Secondly, this invention uses data packets generated by the service line cards themselves for testing. All traffic volumes can be adjusted according to needs, and the generated data packets can include different message formats, allowing for more verification mechanisms to facilitate the detection of problems along the entire forwarding path. Furthermore, this invention enables targeted link detection; for multiple backplane links, one or several links can be selectively detected, and even if a link detection problem occurs, the specific link causing the anomaly can be identified. Therefore, this invention overcomes the problems of high cost, time-consuming and labor-intensive processes, and difficult fault location in existing technologies, achieving a fast and convenient testing process, reducing testing costs, and improving testing efficiency.
[0019] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures particularly pointed out in the description, claims, and drawings. Attached Figure Description
[0020] The accompanying drawings are provided to further understand the technical solutions of the present invention and constitute a part of the specification. They are used together with the embodiments of the present invention to explain the technical solutions of the present invention, and do not constitute a limitation on the technical solutions of the present invention.
[0021] Figure 1 This is a schematic diagram of a system architecture platform for performing a detection method according to an embodiment of the present invention;
[0022] Figure 2 This is a flowchart of a detection method on the service transmission line card side provided in an embodiment of the present invention;
[0023] Figure 3 This is a flowchart of increasing data packet traffic through a closed-loop method provided in one embodiment of the present invention;
[0024] Figure 4 This is a flowchart of increasing data packet traffic through a closed-loop method provided in another embodiment of the present invention;
[0025] Figure 5 This is a flowchart of obtaining a preset traffic based on the bandwidth capability of a single board, provided by an embodiment of the present invention;
[0026] Figure 6 This is a flowchart of obtaining forwarding path information based on the port information of a single board, provided by an embodiment of the present invention;
[0027] Figure 7 This is a flowchart of a detection method on the service receiving line card side according to an embodiment of the present invention;
[0028] Figure 8 This is a flowchart of detecting backplane links based on CRC check information, provided by an embodiment of the present invention.
[0029] Figure 9 This is a flowchart of a detection method provided in one embodiment of the present invention. Detailed Implementation
[0030] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0031] It should be noted that although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first," "second," etc., in the specification, claims, or the aforementioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0032] In related technologies, PTN (Packet Transport Network) has been widely used as a transmission network. Communication service forwarding equipment generally includes service line cards, backplanes, switching boards, and other components. The backplane, unlike the user side, is located inside the equipment and is used to establish link connections between different boards. Specifically, each service line card and each switching board has a corresponding number of link connections through the backplane, enabling packets to be forwarded between different service line cards via the switching board.
[0033] When equipment is mass-produced and shipped, it needs to undergo many hardware tests to screen out unqualified equipment. These tests include backplane testing, which requires ensuring that the backplane connection signal is good enough to guarantee the correct forwarding of messages.
[0034] Existing backplane testing methods typically include the following two methods:
[0035] The first testing method is to measure the actual signal. This testing method is relatively direct, but it often requires measuring each device individually during the mass production process, which is time-consuming and labor-intensive, and cannot guarantee mass production efficiency. Moreover, even if the measured results meet expectations, it is usually necessary to conduct actual business forwarding tests to ensure that there are no problems.
[0036] The second testing method is to test through actual business forwarding. This method is suitable for the application scenario, but in mass production, there are often many devices, making testing with instrumentation tools costly. Alternatively, a small number of instruments can be used to test in series, but this can lead to difficulties in locating and troubleshooting problems. In addition, during whole-machine traffic testing, due to customization issues, the boards on the equipment are not fully installed, and not all backplane links are traversed, so it cannot be guaranteed that all backplane links are problem-free.
[0037] Therefore, the two existing backplane testing methods mentioned above often suffer from problems such as being time-consuming, labor-intensive, costly, and difficult to locate faults.
[0038] Based on the above, embodiments of the present invention provide a detection method, a service line card, a forwarding device, and a computer-readable storage medium. Specifically, the forwarding device includes a service transmitting line card, a backplane, a switching board, and a service receiving line card. The service transmitting line card is connected to the switching board via a link on the backplane, and the switching board is connected to the service receiving line card via a link on the backplane. Specifically, in the detection method of the present invention, the service transmitting line card generates a data packet, and then sends the data packet sequentially through the backplane, the switching board, and the backplane to the service receiving line card. The service receiving line card then detects the backplane link based on the aforementioned data packet. According to the technical solution of the present invention, since the quality of the backplane link affects the forwarding of data packets, based on the principle of actual data packet forwarding, as long as it does not affect the service, the data packet can be forwarded normally, and correspondingly, the backplane link is also fine. Therefore, the present invention detects the backplane link signal by actually forwarding data packets. This invention, through the transmission and reception of messages by the service line cards themselves and between service line cards, avoids the time-consuming and labor-intensive traditional methods such as backplane signal measurement. It also avoids situations where measurements fail due to long-term signal instability, resulting in more convenient and accurate detection. Secondly, this invention uses data packets generated by the service line cards themselves for testing. All traffic volumes can be adjusted according to needs, and the generated data packets can include different message formats, allowing for more verification mechanisms to facilitate the detection of problems along the entire forwarding path. Furthermore, this invention enables targeted link detection; for multiple backplane links, one or several links can be selectively detected, and even if a link detection problem occurs, the specific link causing the anomaly can be identified. Therefore, this invention overcomes the problems of high cost, time-consuming and labor-intensive processes, and difficult fault location in existing technologies, achieving a fast and convenient testing process, reducing testing costs, and improving testing efficiency.
[0039] The embodiments of the present invention will be further described below with reference to the accompanying drawings.
[0040] like Figure 1 As shown, Figure 1 This is a schematic diagram of a system architecture platform 100 for performing a detection method according to an embodiment of the present invention.
[0041] exist Figure 1 In this example, the system architecture platform 100 includes a processor 110 and a memory 120, which can be connected via a bus or other means. Figure 1 Taking the example of a connection between China and Israel via a bus.
[0042] Memory 120, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory 120 may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 120 may optionally include memory 120 remotely located relative to processor 110, and these remote memories can be connected to the system architecture platform via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0043] Those skilled in the art will understand that this system architecture platform can be applied to 3G communication network systems, LTE communication network systems, 5G communication network systems and subsequent evolved mobile communication network systems, etc., and this embodiment does not specifically limit it in this regard.
[0044] It will be understood by those skilled in the art that Figure 1 The system architecture platform shown does not constitute a limitation on the embodiments of the present invention, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0045] exist Figure 1 In the system architecture platform shown, the processor 110 can call the detection program stored in the memory 120 to execute the detection method.
[0046] Based on the above system architecture platform, various embodiments of the detection method of the present invention are proposed below.
[0047] like Figure 2 As shown, Figure 2 This is a flowchart of a detection method for a service transmission line card according to an embodiment of the present invention. The detection method is applied to a service transmission line card in a forwarding device. The forwarding device also includes a backplane, a switching board, and a service receiving line card. The service transmission line card is connected to the switching board through a link in the backplane, and the switching board is connected to the service receiving line card through a link in the backplane. Specifically, the detection method includes, but is not limited to, steps S100 and S200.
[0048] Step S100: Generate data packet;
[0049] Step S200: The data packet is sent to the service receiving line card after passing through the backplane, the switching board and the backplane in sequence, so that the service receiving line card can detect the link of the backplane based on the data packet.
[0050] Specifically, the forwarding device in this embodiment of the invention includes, but is not limited to, a chassis, power supply, fan, service line card, backplane, and switching board. Since this embodiment involves the transmission and reception of data packets, the service line card is divided into a service transmission line card and a service reception line card. The service transmission line card is connected to the switching board via a link on the backplane, and the switching board is connected to the service reception line card via a link on the backplane. Specifically, in the detection method of this embodiment, the service transmission line card generates a data packet, which is then transmitted sequentially through the backplane, the switching board, and backplane before being sent to the service reception line card. The service reception line card then detects the backplane link based on the data packet.
[0051] It is worth noting that for each service line card, including but not limited to the service transmit and receive line cards, there is an FPGA (Field Programmable Gate Array) and a forwarding control chip. Secondly, for each switching board, there is a switching chip, and the forwarding control chip and the switching chip are connected via a SERDE (serialization deserializer) connection through the backplane. Specifically, the FPGA is connected to the backplane link through the forwarding control chip.
[0052] Additionally, it is worth noting that, regarding step S100 above, each service sending line card can send packets independently, and the data packets can be generated by the FPGA or by the forwarding control chip.
[0053] It should be noted that in order to detect all backplane links to be used, before step S100 above, service line cards and switching boards must be fully inserted, that is, all service line cards and all switching boards must be connected to the backplane.
[0054] Additionally, it should be noted that the aforementioned service transmission line card and service reception line card can be the same service line card or different service line cards. Specifically, when the service transmission line card and service reception line card are the same service line card, and if the service transmission line card and service reception line card are designated as the first service line card, the detection method of this embodiment is as follows: the first service line card generates a data packet, and the data packet passes through the backplane, the switching board, and the backplane sequentially before returning to the first service line card. Then, the first service line card detects the backplane link based on the data packet. Alternatively, when the service transmission line card and service reception line card are different service line cards, and if the service transmission line card is designated as the first service line card and the service reception line card is designated as the second service line card, the detection method of this embodiment is as follows: the first service line card generates a data packet, and the data packet passes through the backplane, the switching board, and the backplane sequentially before returning to the second service line card. Then, the second service line card detects the backplane link based on the data packet.
[0055] According to the technical solution of this invention, since the condition of the backplane link affects the forwarding of data packets, based on the principle of actual data packet forwarding, as long as it does not affect the service, the data packets can be forwarded normally, and correspondingly, the backplane link is also fine. Therefore, this invention detects the backplane link signal by actually forwarding data packets. This invention avoids the time-consuming and laborious traditional methods such as backplane signal measurement by having the service line cards themselves send and receive messages and by having service line cards send and receive messages to each other. It also avoids situations where the signal is unstable over a long period and therefore undetected, achieving a more convenient and accurate detection effect. Secondly, this invention tests by having the service line cards themselves generate data packets. All traffic volumes can be adjusted according to their own needs, and the generated data packets can include different forms of messages, allowing for more verification mechanisms to facilitate the detection of problems throughout the forwarding path. Furthermore, this invention can achieve targeted link detection; for multiple backplane links, one or several links can be selectively detected, and if a link detection problem occurs, it can also identify which specific link is abnormal. In addition, this invention can detect not only the backplane condition but also the entire data packet forwarding path and its functionality. Therefore, the embodiments of the present invention can overcome the problems of high cost, time-consuming and labor-intensive, and difficult fault location in the prior art, realize a fast and convenient testing process, reduce testing costs, and improve testing efficiency.
[0056] In addition, such as Figure 3 and Figure 4 As shown, Figure 3 This is a flowchart of an embodiment of the present invention that increases data packet traffic through a closed-loop method. Figure 4 This is a flowchart of increasing data packet traffic through a closed-loop method provided in another embodiment of the present invention.
[0057] like Figure 3 As shown, prior to step S200, the detection method of this embodiment of the invention also includes, but is not limited to, step S300.
[0058] Step S300: The data packet is sent to the user port through the forwarding control chip, and the data packet is returned to the FPGA through the user port until the traffic of the generated data packet reaches the preset traffic. The forwarding control chip, the user port and the FPGA are connected in a closed loop.
[0059] like Figure 4 As shown, prior to step S200, the detection method of this embodiment of the invention also includes, but is not limited to, step S400.
[0060] Step S400: The data packet is sent to the user port through the forwarding control chip, and the data packet is returned to the forwarding control chip through the user port until the traffic of the generated data packet reaches the preset traffic. The forwarding control chip and the user port are connected in a closed loop.
[0061] Specifically, in order to ensure that data packets are only sent to the backplane after the data packet traffic reaches a preset threshold, embodiments of the present invention may employ the following: Figure 3 or Figure 4 The closed-loop method is as follows. Specifically, each service line card sends data packets to all ports of all service line cards, including itself. Before the data packet traffic reaches the preset traffic, the user port can use fiber optic self-loop or SERDES self-loop, or fiber optic interconnection. Then the data packets return to the FPGA or forwarding control chip through the same path.
[0062] In addition, such as Figure 5 As shown, Figure 5 This is a flowchart illustrating how a preset traffic volume is obtained based on the bandwidth capability of a single board, according to an embodiment of the present invention. Prior to step S100, the detection method of this embodiment of the present invention further includes, but is not limited to, steps S510 and S520.
[0063] Step S510: Obtain the bandwidth capabilities of the service transmission line card, switching board, and service reception line card;
[0064] Step S520: Calculate the preset traffic based on bandwidth capacity.
[0065] Specifically, before sending data packets, this embodiment of the invention obtains the bandwidth capability of the single board, namely the bandwidth capability of the service sending line card, the switching board, and the service receiving line card. Since different bandwidth capabilities will affect the preset traffic, this embodiment of the invention will calculate the preset traffic based on the bandwidth capability.
[0066] In addition, such as Figure 6 As shown, Figure 6 This is a flowchart illustrating how forwarding path information is obtained based on the port information of a single board, according to an embodiment of the present invention. Prior to step S100, the detection method of this embodiment also includes, but is not limited to, steps S610 and S620.
[0067] Step S610: Obtain the port information of the service sending line card, the switching board, and the service receiving line card;
[0068] Step S620: Generate forwarding path information based on port information, wherein data packets are sent according to the forwarding path information.
[0069] Specifically, in order to measure the signal status of all links on the backplane before sending data packets, this embodiment of the invention obtains the port information of the single board, namely the port information of the service sending line card, the switching board and the service receiving line card, and obtains the forwarding path information that can pass through all links based on the port information, and forwards the data packets according to the forwarding path information in the subsequent step S200.
[0070] It should be noted that the port information mentioned above includes, but is not limited to, the number of ports and port addresses.
[0071] like Figure 7 As shown, Figure 7 This is a flowchart of a detection method for a service receiving line card according to an embodiment of the present invention. The detection method is applied to a service receiving line card in a forwarding device. The forwarding device also includes a service transmitting line card, a backplane, and a switching board. The service transmitting line card is connected to the switching board through a link on the backplane, and the switching board is connected to the service receiving line card through a link on the backplane. Specifically, the detection method includes, but is not limited to, steps S700 and S800.
[0072] Step S700: Obtain data packets from the service transmission line card, wherein the data packets are sent by the service transmission line card and pass through the backplane, switching board and backplane in sequence;
[0073] Step S800: Detect the backplane links based on the data packets.
[0074] According to the technical solution of this invention, since the condition of the backplane link affects the forwarding of data packets, based on the principle of actual data packet forwarding, as long as it does not affect the service, the data packets can be forwarded normally, and correspondingly, the backplane link is also fine. Therefore, this invention detects the backplane link signal by actually forwarding data packets. This invention avoids the time-consuming and laborious traditional methods such as backplane signal measurement by having the service line cards themselves send and receive messages and by having service line cards send and receive messages to each other. It also avoids situations where the signal is unstable over a long period and therefore undetected, achieving a more convenient and accurate detection effect. Secondly, this invention tests by having the service line cards themselves generate data packets. All traffic volumes can be adjusted according to their own needs, and the generated data packets can include different forms of messages, allowing for more verification mechanisms to facilitate the detection of problems throughout the forwarding path. Furthermore, this invention can achieve targeted link detection; for multiple backplane links, one or several links can be selectively detected, and if a link detection problem occurs, it can also identify which specific link is abnormal. In addition, this invention can detect not only the backplane condition but also the entire data packet forwarding path and its functionality. Therefore, the embodiments of the present invention can overcome the problems of high cost, time-consuming and labor-intensive, and difficult fault location in the prior art, realize a fast and convenient testing process, reduce testing costs, and improve testing efficiency.
[0075] It should be noted that the aforementioned service transmission line card and service reception line card can be the same service line card or different service line cards. Specifically, when the service transmission line card and service reception line card are the same service line card, and if the service transmission line card and service reception line card are referred to as the first service line card, the detection method of this embodiment is as follows: the first service line card generates a data packet, and the data packet passes through the backplane, the switching board, and the backplane sequentially before returning to the first service line card. Then, the first service line card detects the backplane link based on the data packet. Alternatively, when the service transmission line card and service reception line card are different service line cards, and if the service transmission line card is referred to as the first service line card and the service reception line card is referred to as the second service line card, the detection method of this embodiment is as follows: the first service line card generates a data packet, and the data packet passes through the backplane, the switching board, and the backplane sequentially before returning to the second service line card. Then, the second service line card detects the backplane link based on the data packet.
[0076] It is worth noting that the specific implementation method and corresponding technical effects of the detection method on the service receiving line card side in this embodiment of the invention can be referred to the above-described embodiment of the detection method on the service sending line card side.
[0077] In addition, such as Figure 8 As shown, Figure 8This is a flowchart of a backplane link detection based on CRC check information provided in one embodiment of the present invention. Step S800 includes, but is not limited to, steps S910 and S920.
[0078] Step S910: Decompose the data packet to obtain the decomposed CRC check information;
[0079] Step S920: Detect the backplane links based on the CRC check information.
[0080] Specifically, the service sending line card configures the message and calculates the CRC (Cyclic Redundancy Check) verification information, packages the message and CRC verification information into a data packet, and then sends the data packet. The data packet passes through the backplane, the switching board, and the backplane again before reaching the service receiving line card. Then, the service receiving line card decomposes the data packet to obtain the decomposed CRC verification information, and then uses the obtained CRC verification information to detect the link of the backplane.
[0081] It is worth noting that the specific implementation method and corresponding technical effects of the detection method on the service receiving line card side in this embodiment of the invention can be referred to the above-described embodiment of the detection method on the service sending line card side.
[0082] Based on the above Figures 2 to 8 The detection method of the present invention is described below, and specific embodiments of the detection method of the present invention are presented.
[0083] like Figure 9 As shown, Figure 9 This is a flowchart of a detection method provided in an embodiment of the present invention, including but not limited to steps S1010, S1020, S1030, S1040, S1050 and S1060.
[0084] Step S1010: Initial Configuration. Specifically, fully insert the single boards of the device, obtain the relevant information of the service line cards for the entire chassis, and configure the initial data packet forwarding. Step S1010 includes, but is not limited to, the following steps: obtaining the corresponding single board type; configuring the relevant configurations of each module of the forwarding control chip, including but not limited to the various channels through which the packets pass, queue-attached traffic shaping, and the forwarding control table required by the microcode.
[0085] Step S1020: Fill in and send messages. Specifically, the FPGA in the service sending line card fills in messages for different paths, calculates CRC check information, and sends the messages.
[0086] Step S1030: Forward the message to different ports of different service receiving line cards.
[0087] Step S1040: The data packet is forwarded to the service receiving line card via the backplane and the switching board. According to the initial configuration in step S1010, regardless of whether the message crosses boards, the forwarding control chip of the service sending line card is configured to force it to go to the switching board, ensuring that it passes through the backplane and the switching board to the target line card, i.e., the service receiving line card.
[0088] Step S1050: The service receiving line card calculates the CRC check information and sends the message to the FPGA. Specifically, the messages switched from the switching board back to each service receiving line card are then sent back to the FPGA via the protocol channel. Before sending, a total CRC check information is calculated specifically to verify the protocol channel link.
[0089] Step S1060: FPGA verifies CRC check information. Specifically, the FPGA verifies the CRC check information of the protocol channel, whereby the FPGA verifies the CRC of each message to ensure it is correct.
[0090] Based on the above detection method, various embodiments of the service line card, forwarding device, and computer-readable storage medium of the present invention are proposed below.
[0091] In addition, one embodiment of the present invention provides a service line card, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the detection method described above.
[0092] It is understandable that processors and memory can be connected via a bus or other means.
[0093] It should be noted that the service line card in this embodiment can correspond to, for example, the following: Figure 1 The system architecture platform shown in the embodiment can constitute Figure 1 The system architecture platform shown in the embodiment is part of the same inventive concept, and therefore has the same implementation principle and beneficial effects, which will not be described in detail here.
[0094] The non-transient software program and instructions required to implement the detection method of the above embodiments are stored in memory. When executed by a processor, the detection method of the above embodiments is executed, for example, the method described above is executed. Figure 2 Method steps S100 to S200, Figure 3 Method steps S300, Figure 4 Method steps S400, Figure 5 Method steps S510 to S520 in the text Figure 6 Method steps S610 to S620 in the text Figure 7 Method steps S700 to S800 in the middle Figure 8Method steps S910 to S920 in the text Figure 9 Method steps S1010 to S1060.
[0095] It is worth noting that the specific implementation methods and technical effects of the service line card in this embodiment of the invention can be referred to the specific implementation methods and technical effects of the above-described detection method.
[0096] In addition, one embodiment of the present invention provides a forwarding device, which includes, but is not limited to, the aforementioned service line card.
[0097] It is worth noting that, since the forwarding device of this embodiment includes the aforementioned service line card, and the aforementioned service line card is capable of performing the aforementioned detection method, the specific implementation method and technical effects of the forwarding device of this embodiment can be referred to the specific implementation method and technical effects of the aforementioned detection method.
[0098] Furthermore, one embodiment of the present invention also provides a computer-readable storage medium storing computer-executable instructions, which, when used to perform the detection method described above, for example, execute the above-described... Figure 2 Method steps S100 to S200, Figure 3 Method steps S300, Figure 4 Method steps S400, Figure 5 Method steps S510 to S520 in the text Figure 6 Method steps S610 to S620 in the text Figure 7 Method steps S700 to S800 in the middle Figure 8 Method steps S910 to S920 in the text Figure 9 Method steps S1010 to S1060.
[0099] It will be understood by those skilled in the art that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically include computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0100] The above provides a detailed description of the preferred embodiments of the present invention. However, the present invention is not limited to the above embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention. All such equivalent modifications or substitutions are included within the scope defined by the claims of the present invention.
Claims
1. A detection method applied to a service transmission line card in a forwarding device, the forwarding device further comprising a backplane, a switching board, and a service reception line card, wherein the service transmission line card is connected to the switching board via a link of the backplane, and the switching board is connected to the service reception line card via a link of the backplane; The detection method includes: Generate data packets; The data packet is sequentially transmitted through the backplane, the switching board, and the backplane to the service receiving line card, so that the service receiving line card can detect the link of the backplane based on the data packet; The service transmission line card includes an FPGA and a forwarding control chip; Before the data packet is sent to the service receiving line card after passing through the backplane, the switching board, and the backplane in sequence, the detection method further includes one of the following: The forwarding control chip sends the data packet to the user port, and the user port returns the data packet to the FPGA until the traffic of the generated data packets reaches the preset traffic. The forwarding control chip, the user port and the FPGA are connected in a closed loop. The forwarding control chip sends the data packet to the user port, and the user port returns the data packet to the forwarding control chip until the traffic of the generated data packets reaches a preset traffic. The forwarding control chip and the user port are connected in a closed loop.
2. The detection method according to claim 1, characterized in that, The FPGA is connected to the backplane via the forwarding control chip, and the data packets are generated by the FPGA or by the forwarding control chip.
3. The detection method according to claim 1, characterized in that, Before generating the data packet, the detection method further includes: Obtain the bandwidth capabilities of the service transmission line card, the switching board, and the service reception line card; The preset traffic is calculated based on the bandwidth capacity.
4. The detection method according to claim 1, characterized in that, Before generating the data packet, the detection method further includes: Obtain the port information of the service sending line card, the switching board, and the service receiving line card; Forwarding path information is generated based on the port information, wherein the data packet is sent according to the forwarding path information.
5. The detection method according to any one of claims 1 to 4, characterized in that: The service sending line card and the service receiving line card can be the same service line card or different service line cards.
6. A detection method applied to a service receiving line card in a forwarding device, the forwarding device further comprising a service transmitting line card, a backplane and a switching board, the service transmitting line card being connected to the switching board via a link of the backplane, and the switching board being connected to the service receiving line card via a link of the backplane; The detection method includes: Data packets are acquired from the service transmission line card, wherein the data packets are sent by the service transmission line card and sequentially pass through the backplane, the switching board, and the backplane; the service transmission line card includes an FPGA and a forwarding control chip; before acquiring the data packets from the service transmission line card, the data packets are sent to a user port through the forwarding control chip and returned to the FPGA through the user port until the traffic of the generated data packets reaches a preset traffic, wherein the forwarding control chip, the user port, and the FPGA are connected in a closed loop; or, the data packets are sent to a user port through the forwarding control chip and returned to the forwarding control chip through the user port until the traffic of the generated data packets reaches a preset traffic, wherein the forwarding control chip and the user port are connected in a closed loop. The backplane links are detected based on the data packets.
7. The detection method according to claim 6, characterized in that, The step of detecting the link of the backplane based on the data packet includes: The data packet is decomposed to obtain the decomposed CRC check information; The links on the backplane are detected based on the CRC check information.
8. The detection method according to claim 6 or 7, characterized in that: The service sending line card and the service receiving line card can be the same service line card or different service line cards.
9. A service line card, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the detection method as described in any one of claims 1 to 8.
10. A relay device, characterized in that, Includes the service line card as described in claim 9.
11. A computer-readable storage medium, characterized in that, The device stores computer-executable instructions for performing the detection method as described in any one of claims 1 to 8.