Message detection method, single board and packet transport network PTN network equipment

By configuring the detection unit inside the single board of the PTN network equipment and using the network processor to perform detection packet testing, the problem of low detection efficiency and difficulty in the existing technology is solved, and comprehensive detection and rapid positioning of the PTN network equipment are achieved. Abnormalities improve detection efficiency.

CN112751723BActive Publication Date: 2024-09-03NANJING ZHONGXING XIN SOFTWARE CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN201911055521.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-10-31
Publication Date
2024-09-03
Estimated Expiration
2039-10-31

AI Technical Summary

Technical Problem

In the existing technology, the detection of PTN network equipment through instruments has the problems of low detection efficiency and high detection difficulty. It is impossible to comprehensively detect the RAM storage space of a single board, and the coupling between devices is large, making it difficult to locate the problem.

Method used

A detection unit is configured inside the single board of the PTN network equipment, and detection packets are sent to the network processor. The network processor performs the test, and the detection unit collects the test results to determine whether there is an abnormality in the unit under test.

Benefits of technology

It realizes comprehensive detection of single boards of PTN network equipment, reduces the dependence on instruments, reduces the coupling between equipment, improves detection efficiency, can quickly locate abnormalities, and improves the detection efficiency of the overall equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112751723B
    Figure CN112751723B
Patent Text Reader

Abstract

The present invention provides a message detection method, a single board and a packet transmission network PTN network device, wherein a detection message is sent to a network processor through a detection unit inside the single board, further, the network processor tests each unit to be tested according to the detection message, further, the detection unit collects the test results of each unit to be tested, further, the detection unit determines whether each unit to be tested is abnormal according to the test results; the problem that there are many deficiencies in the related art in the method of instrument detection, low detection efficiency and high detection difficulty is solved. That is, the message detection method, single board and PTN network device provided by the present invention realize the detection of each unit to be tested through the detection unit inside the single board, reduce the dependence on the instrument, have small device test coupling, are easy to locate problems, have high screening efficiency, and greatly improve the device screening efficiency; at the same time, it can also save funds to a certain extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of wireless communication, and more specifically, to a message detection method, a single board and a packet transport network (PTN) network device. Background Art

[0002] With the development of communication networks and transmission technologies, PTN network equipment has been widely used. With the continuous growth of the number and scale of services on the network and the emergence of new application scenarios, new requirements have been put forward for the service quality of the network, such as low latency, large capacity, and seamless switching in 5G networks. This will greatly improve the technical needs of PTN in all aspects and play an important role in the transmission of 5G network services.

[0003] In order to ensure the stability and reliability of market equipment, a lot of testing and verification is required before the equipment is sent to the market. The current test and verification method generally adopted is to connect the service boards of one or several devices in series through instrument flow snake series connection, and conduct a lot of networking tests to meet the test requirements, but this test method has the following shortcomings:

[0004] First, when the network element performs a long-term packet loss rate test, it relies heavily on the instrument;

[0005] Second, you need to associate the port configuration services of the test board;

[0006] Third, due to the simple service configuration, the instrument can only detect the random access memory (RAM) of a certain path of the configured service flow, and cannot perform comprehensive detection on other related RAM storage spaces on the board;

[0007] Fourth, the coupling between the serially connected test devices is large. If one of the devices has abnormal packet loss, it is necessary to locate and analyze the modules of all the test devices.

[0008] Fifth, the coupling between the service ports, boards, and switches within the serial test equipment is large. If abnormal packet loss occurs on one of the boards or internal modules, it will also take a lot of effort to locate the problem, which will affect the detection efficiency of the entire equipment.

[0009] It can be seen that there are many shortcomings in the method of instrument detection in related technologies, such as low detection efficiency and great detection difficulty. Summary of the invention

[0010] The message detection method, single board and packet transport network (PTN) network device provided by the embodiments of the present invention mainly solve the technical problem that the instrument detection method in the related art has many shortcomings, low detection efficiency and great detection difficulty.

[0011] In order to solve the above technical problems, an embodiment of the present invention provides a message detection method, which is applied to a packet transport network (PTN) network device, comprising:

[0012] The detection unit inside the board sends a detection message to the network processor;

[0013] The network processor tests each unit to be tested according to the detection message;

[0014] The detection unit collects the test results of each unit to be tested;

[0015] The detection unit determines whether each unit to be tested is abnormal according to the test result.

[0016] The embodiment of the present invention further provides a single board, the single board comprising a detection unit and a network processor;

[0017] The detection unit sends a detection message to the network processor;

[0018] The network processor is used to test each unit to be tested according to the detection message;

[0019] The detection unit is used to collect the test results of each unit to be tested, and determine whether each unit to be tested is abnormal according to the test results.

[0020] The embodiment of the present invention further provides a packet transport network PTN network device, and the packet transport network PTN network device includes at least one single board as described above.

[0021] The beneficial effects of the present invention are:

[0022] The message detection method, single board and packet transport network PTN network equipment provided by the embodiment of the present invention send detection messages to the network processor through the detection unit inside the single board. Further, the network processor tests each unit to be tested according to the detection message. Further, the detection unit collects the test results of each unit to be tested. Further, the detection unit determines whether each unit to be tested is abnormal according to the test results. It solves the problems of many shortcomings in the related art of instrument detection, low detection efficiency and high detection difficulty. That is, the message detection method, single board and packet transport network PTN network equipment provided by the embodiment of the present invention realizes the detection of each unit to be tested through the detection unit inside the single board, and has at least the following advantages compared with the related art:

[0023] First, there is no need to rely on instruments;

[0024] Second, there is no need to associate the port configuration services of the test board;

[0025] Third, comprehensive testing of each unit under test is achieved;

[0026] Fourth, the coupling between the test devices is small. If one of the devices has abnormal packet loss, the detection unit inside each test device can directly locate and analyze it based on the test results, without the need to locate and analyze the modules of all test devices.

[0027] Fifth, the coupling between the service ports, boards, and switches within each test device is small. If abnormal packet loss occurs on one of the boards or internal modules, the detection units within each test device can directly locate and analyze the problem based on the test results. This eliminates the need to spend too much time locating the problem, greatly improving the detection efficiency of the entire device.

[0028] Other features and corresponding beneficial effects of the present invention are described in the latter part of the specification, and it should be understood that at least part of the beneficial effects become obvious from the description in the specification of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:

[0030] Figure 1 A schematic diagram of the basic flow of the message detection method provided in the first embodiment of the present invention;

[0031] Figure 2 A schematic diagram of the structure of a single board provided in Embodiment 2 of the present invention;

[0032] Figure 3 A structural diagram of a 1GE service board message detection method provided in Embodiment 3 of the present invention;

[0033] Figure 4 A structural diagram of a 10GE service board message detection method provided in Embodiment 4 of the present invention;

[0034] Figure 5 A schematic diagram of the structure of a PTN network device provided in Embodiment 5 of the present invention Figure 1 ;

[0035] Figure 6 A schematic diagram of the structure of a PTN network device provided in Embodiment 5 of the present invention Figure 2 ;

[0036] Figure 7 A schematic diagram of the structure of a PTN network device provided in Embodiment 5 of the present invention Figure 3 . DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below through specific implementation methods combined with the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain the present invention and are not used to limit the present invention.

[0038] Embodiment 1:

[0039] In order to solve the problems of low detection efficiency and great detection difficulty in the related art through instrument detection, a message detection method is provided in an embodiment of the present invention, wherein a detection message is sent to a network processor through a detection unit inside a single board, and further, the network processor tests each unit to be tested according to the detection message, and further, the detection unit collects the test results of each unit to be tested, and further, the detection unit determines whether each unit to be tested is abnormal according to the test results; see Figure 1 As shown, Figure 1 A schematic diagram of the basic flow of the message detection method provided in this embodiment.

[0040] S101: The detection unit inside the board sends a detection message to the network processor.

[0041] In the embodiment of the present invention, a detection unit is first configured in the single board, wherein the detection unit can send its related detection function configuration attributes to the network processor and each unit to be tested, so that when the tester sends a test instruction, the detection unit inside the single board starts detection.

[0042] S102: The network processor tests each unit to be tested according to the detection message.

[0043] Optionally, the unit under test in the embodiment of the present invention includes but is not limited to a port, a random access memory and a switching network, wherein the unit under test may include any one or any combination of the port, the random access memory and the switching network. It is worth noting that only several common units under test are listed here. In actual applications, the units under test can be flexibly adjusted according to specific application scenarios, and the present invention is not limited to these units under test.

[0044] Optionally, in the embodiment of the present invention, when the unit to be tested includes a port, a random access memory and a switching network, the network processor tests the port, the random access memory and the switching network in the order of the port, the random access memory and the switching network according to the detection message.

[0045] Optionally, before the network processor in the embodiment of the present invention tests each unit to be tested according to the detection message, it also includes at least the following steps:

[0046] The network processor compares whether the key field of the detection message is consistent with the key field of the pre-stored detection message;

[0047] If not, discard the detection message and record the reason for the packet loss;

[0048] If yes, send a detection message to the port.

[0049] It should be understood that the test of the network processor can be completed in this way. After the network processor passes the test, it will send the detection message to the next unit to be tested. Since the above introduction says that the network processor tests the port, random access memory and switching network in the order of port, random access memory and switching network according to the detection message, the next unit to be tested here refers to the port.

[0050] Optionally, in the embodiment of the present invention, the network processor tests the port, including at least the following steps:

[0051] The port receives the detection message sent from the network processor;

[0052] The port forwards the detection message to the network processor;

[0053] The network processor compares whether the key fields of the detection message sent to the port are consistent with the key fields of the detection message received from the port;

[0054] If not, discard the detection message and record the reason for the packet loss;

[0055] If so, send the detection message to the random access memory through the port.

[0056] It should be understood that the test of the port can be completed in this way. After the port test passes, the detection message will be sent to the next unit to be tested. For the same reason, as mentioned above, the network processor tests the port, random access memory and switching network in the order of port, random access memory and switching network according to the detection message. The next unit to be tested here refers to the random access memory.

[0057] Optionally, in the embodiment of the present invention, the network processor tests the random access memory, including at least the following steps:

[0058] The network processor uses the value corresponding to the preset position in the detection message as a keyword, and searches for table entries of different types of random access memories according to the keyword;

[0059] The network processor compares the value found from the table entry content to see if it is consistent with the pre-written value;

[0060] If not, discard the detection message and record the reason for the packet loss;

[0061] If yes, send the detection message to the switching network.

[0062] It should be understood that the test of the random access memory can be completed in this way. After the test of the random access memory is passed, the detection message will be sent to the next unit to be tested. For the same reason, as mentioned above, the network processor tests the port, random access memory and switching network in the order of port, random access memory and switching network according to the detection message. The next unit to be tested here refers to the switching network.

[0063] Optionally, in the embodiment of the present invention, the network processor tests the switching network, including at least the following steps:

[0064] The switching network receives the detection message sent from the random access memory;

[0065] The switching network forwards the detection message to the network processor;

[0066] The network processor compares whether the key fields of the detection message sent to the switching network are consistent with the key fields of the detection message received from the switching network;

[0067] If not, discard the detection message and record the reason for the packet loss;

[0068] If yes, send the detection message to the detection unit.

[0069] It should be understood that the test of the switching network can be completed in this way, and after the test of the switching network passes, the detection message is sent back to the detection unit.

[0070] S103: The detection unit collects the test results of each unit to be tested.

[0071] Optionally, the detection unit in the embodiment of the present invention may collect the test results of each unit to be tested at preset time intervals, which can reduce the workload of the detection unit to a certain extent; of course, the detection unit may also continuously collect the test results of each unit to be tested to collect as many test results of each unit to be tested as possible, thereby ensuring the accuracy of determining whether each unit to be tested is abnormal based on the test results.

[0072] Optionally, in an embodiment of the present invention, the test results of each unit to be tested collected by the detection unit are the packet loss causes recorded by the network processor collected by the detection unit, that is, the packet loss cause of each unit to be tested recorded by the network processor collected by the detection unit, such as the packet loss cause of the port, the packet loss cause of the random access memory, and the packet loss cause of the switching network.

[0073] S104: The detection unit determines whether each unit to be tested has an abnormality according to the test result.

[0074] Optionally, in an embodiment of the present invention, the detection unit determines whether each unit to be tested has an abnormality based on the packet loss cause of each unit to be tested recorded by the collected network processor. For example, when the detection unit collects the packet loss cause of the network processor, it can be determined that the current network processor has an abnormality; when the detection unit collects the packet loss cause of the port, it can be determined that the current port has an abnormality; when the detection unit collects the packet loss cause of the random access memory, it can be determined that the current random access memory has an abnormality; when the detection unit collects the packet loss cause of the switching network, it can be determined that the current switching network has an abnormality.

[0075] Optionally, in the embodiment of the present invention, the detection unit also receives a detection message sent from a network processor, and further performs a cyclic redundancy check (CRC) on the detection message to obtain a check result, and further determines whether each unit under test has an abnormality based on the check result and the collected reasons for packet loss.

[0076] The message detection method provided by the embodiment of the present invention sends a detection message to the network processor through the detection unit inside the single board. Further, the network processor tests each unit to be tested according to the detection message. Further, the detection unit collects the test results of each unit to be tested. Further, the detection unit determines whether each unit to be tested is abnormal according to the test results. It solves the problems of many shortcomings in the related art of instrument detection, low detection efficiency and high detection difficulty. That is, the message detection method provided by the embodiment of the present invention realizes the detection of each unit to be tested through the detection unit inside the single board, and has at least the following advantages:

[0077] First, there is no need to rely on instruments;

[0078] Second, there is no need to associate the port configuration services of the test board;

[0079] Third, comprehensive testing of each unit under test is achieved;

[0080] Fourth, the coupling between the test devices is small. If one of the devices has abnormal packet loss, the detection unit inside each test device can directly locate and analyze it based on the test results, without the need to locate and analyze the modules of all test devices.

[0081] Fifth, the coupling between the service ports, boards, and switches within each test device is small. If abnormal packet loss occurs on one of the boards or internal modules, the detection units within each test device can directly locate and analyze the problem based on the test results. This eliminates the need to spend too much time locating the problem, greatly improving the detection efficiency of the entire device.

[0082] Embodiment 2:

[0083] In order to solve the problems of low detection efficiency and great detection difficulty in the related technology, please refer to Figure 2 As shown, in an embodiment of the present invention, a single board is provided, which includes a detection unit 201 and a network processor 202; wherein:

[0084] The detection unit 201 sends a detection message to the network processor 202;

[0085] The network processor 202 is used to test each unit under test according to the detection message;

[0086] The detection unit 201 is used to collect the test results of each unit to be tested, and determine whether each unit to be tested is abnormal according to the test results.

[0087] Optionally, the unit under test in the embodiment of the present invention includes but is not limited to a port, a random access memory and a switching network, wherein the unit under test may include any one or any combination of the port, the random access memory and the switching network. It is worth noting that only several common units under test are listed here. In actual applications, the units under test can be flexibly adjusted according to specific application scenarios, and the present invention is not limited to these units under test.

[0088] Optionally, in the embodiment of the present invention, when the unit to be tested includes a port, a random access memory and a switching network, the network processor tests the port, the random access memory and the switching network in the order of the port, the random access memory and the switching network according to the detection message.

[0089] Optionally, before the network processor 202 in the embodiment of the present invention tests each unit to be tested according to the detection message, the method further includes:

[0090] Compare whether the key fields of the detection message are consistent with the key fields of the pre-stored detection message;

[0091] If not, discard the detection message and record the reason for the packet loss;

[0092] If yes, send a detection message to the port.

[0093] It should be understood that the test of the network processor can be completed in this way. After the network processor passes the test, it will send the detection message to the next unit to be tested. Since the above introduction says that the network processor tests the port, random access memory and switching network in the order of port, random access memory and switching network according to the detection message, the next unit to be tested here refers to the port.

[0094] Optionally, in the embodiment of the present invention, the network processor 202 tests the port, including:

[0095] The port receives the detection message sent from the network processor;

[0096] The port forwards the detection message to the network processor;

[0097] The network processor compares whether the key fields of the detection message sent to the port are consistent with the key fields of the detection message received from the port;

[0098] If not, discard the detection message and record the reason for the packet loss;

[0099] If so, send the detection message to the random access memory through the port.

[0100] It should be understood that the test of the port can be completed in this way. After the port test passes, the detection message will be sent to the next unit to be tested. For the same reason, as mentioned above, the network processor tests the port, random access memory and switching network in the order of port, random access memory and switching network according to the detection message. The next unit to be tested here refers to the random access memory.

[0101] Optionally, in the embodiment of the present invention, the network processor 202 tests the random access memory, including:

[0102] The network processor uses the value corresponding to the preset position in the detection message as a keyword, and searches for table entries of different types of random access memories according to the keyword;

[0103] The network processor compares the value found from the table entry content to see if it is consistent with the pre-written value;

[0104] If not, discard the detection message and record the reason for the packet loss;

[0105] If yes, send the detection message to the switching network.

[0106] It should be understood that the test of the random access memory can be completed in this way. After the test of the random access memory is passed, the detection message will be sent to the next unit to be tested. For the same reason, as mentioned above, the network processor tests the port, random access memory and switching network in the order of port, random access memory and switching network according to the detection message. The next unit to be tested here refers to the switching network.

[0107] Optionally, the network processor 202 in the embodiment of the present invention tests the switching network, including:

[0108] The switching network receives the detection message sent from the random access memory;

[0109] The switching network forwards the detection message to the network processor;

[0110] The network processor compares whether the key fields of the detection message sent to the switching network are consistent with the key fields of the detection message received from the switching network;

[0111] If not, discard the detection message and record the reason for the packet loss;

[0112] If yes, send the detection message to the detection unit.

[0113] It should be understood that the test of the switching network can be completed in this way, and after the test of the switching network passes, the detection message is sent back to the detection unit.

[0114] Optionally, in the embodiment of the present invention, the detection unit 201 can collect the test results of each unit to be tested at preset time intervals, which can reduce the workload of the detection unit to a certain extent; of course, the detection unit 201 can also continuously collect the test results of each unit to be tested to collect as many test results of each unit to be tested as possible, thereby ensuring the accuracy of determining whether each unit to be tested is abnormal based on the test results.

[0115] Optionally, in the embodiment of the present invention, the test results of each unit under test collected by the detection unit 201 are the packet loss causes recorded by the network processor collected by the detection unit, that is, the packet loss cause of each unit under test recorded by the network processor collected by the detection unit 201, such as the packet loss cause of the port, the packet loss cause of the random access memory, and the packet loss cause of the switching network.

[0116] Optionally, the detection unit 201 in the embodiment of the present invention determines whether each unit to be tested has an abnormality based on the packet loss cause of each unit to be tested recorded by the collected network processor. For example, when the detection unit collects the packet loss cause of the network processor, it can be determined that the current network processor has an abnormality; when the detection unit collects the packet loss cause of the port, it can be determined that the current port has an abnormality; when the detection unit collects the packet loss cause of the random access memory, it can be determined that the current random access memory has an abnormality; when the detection unit collects the packet loss cause of the switching network, it can be determined that the current switching network has an abnormality.

[0117] Optionally, in the embodiment of the present invention, the detection unit 201 also receives a detection message sent from a network processor, and further performs a cyclic redundancy check (CRC) on the detection message to obtain a check result, and further determines whether each unit under test has an abnormality based on the check result and the collected reasons for packet loss.

[0118] The single board provided by the embodiment of the present invention sends a detection message to the network processor 202 through the detection unit 201 inside the single board. Further, the network processor 202 tests each unit to be tested according to the detection message. Further, the detection unit 201 collects the test results of each unit to be tested. Further, the detection unit 201 determines whether each unit to be tested is abnormal according to the test results. This solves the problem that there are many deficiencies in the related art in the method of instrument detection, such as low detection efficiency and high detection difficulty. That is, the single board provided by the embodiment of the present invention realizes the detection of each unit to be tested through the detection unit inside the single board, reduces the dependence on the instrument, has comprehensive RAM screening, has low device test coupling, is easy to locate problems, has high screening efficiency, and greatly improves the device screening efficiency. At the same time, it can also save money to a certain extent.

[0119] Embodiment three:

[0120] The embodiment of the present invention is based on the first and second embodiments and takes application scenario 1 involving a 1GE (Gigabit Ethernet) service board as an example for illustration.

[0121] It should be understood that there are many GE service boards involved in the entire PTN network equipment, and the processing process of each GE service board is similar. The embodiment of the present invention selects one of the GE service boards for explanation, and uses port 1 of slot m as an example.

[0122] The PTN network equipment starts the spontaneous flow test mode and sends the configuration attributes related to the spontaneous flow to each module to be tested. The flow rate is 800Mbit / s. Since the service board type currently being tested is a 1GE port type, the sent test message traffic has met the port detection level, so there is no need for internal loopback processing; the detection process includes the following steps, and please refer to Figure 3 As shown, it is a structural diagram of a 1GE service board message detection method provided by an embodiment of the present invention:

[0123] Step 1: The detection unit starts to send packets. The detection message carries a fixed destination MAC, source MAC, ETYPE and random payload content. In addition, the slot m and port number 1 of the board to be detected are sent to the network processor through a specific protocol channel of the detection message, and then jump to step 2.

[0124] Step 2: After receiving the detection message, the network processor determines whether the spontaneous flow detection mode is turned on. If not, it discards it and ends the process; if so, jump to step 3;

[0125] Step 3: The network processor performs a first check on the received detection message according to the pre-stored detection message, that is, compares and judges the key fields (such as the destination MAC address, the source MAC address, and the Ethernet type), and optionally determines whether the BIT bits of the key fields are modified; if some BITs are flipped and modified, the packet is discarded and the reason for the packet loss is recorded, and the process goes to step 11; if the detection message is normal, the process goes to step 4;

[0126] Step 4: After the network processor detects itself, it searches the corresponding port information table 1 for the downstream flow ID in the outbound direction through the information of the slot m and port number 1 carried in the detection message, and then sends the detection message to port 1, and jumps to step 5;

[0127] Step 5: Port 1 sends the detection message to the network processor. Since the fiber self-loop is set on the port, the detection message will continue to loop back from the optical port to the single board service detection, and jump to step 6;

[0128] Step 6: After the detection message is looped back to the single-board service, it is processed by the network processor again. The network processor performs a second check on the received detection message, that is, compares and judges the key fields (such as destination MAC address, source MAC address, Ethernet type), and optionally determines whether the BIT bits of the key fields are modified; if some BITs are flipped and modified, they are discarded and the reasons for packet loss are recorded, and jump to step 11; if the detection message is normal, jump to step 7;

[0129] Step 7: After the network processor detects the port, it uses the random value at the preset position in the detection message as the keyword key to search for the table entry content of different types of random access memories. The key here is related to the size of the table entry allocation space stored in different random access memories. In order to ensure that all random access memory spaces can be detected, it is necessary to ensure that the number of key bits matches the total number of address entries in the table entry. After looking up the table, it is determined whether the return value (i.e., the value found from the table entry content) is consistent with a specific value written in advance. If not, it is abnormally discarded and the reason for the packet loss is recorded, and jump to step 11; if it is normal, jump to step 8;

[0130] Step 8: After the network processor detects the random access memory, it searches the corresponding port information table 2 through the slot m and port number 1 carried in the detection message to obtain the upstream flow ID sent to the switching network, sends the detection message to the switching network, and jumps to step 9;

[0131] Step 9: After the detection message returns to the downstream network processor through the switching network, the network processor performs a third check on the received detection message, that is, compares and judges the key fields (such as the destination MAC address, the source MAC address, and the Ethernet type), and optionally determines whether the BIT bits of the key fields are modified. If some BITs are flipped and modified, they are discarded and the reasons for packet loss are recorded, and the process goes to step 11; if the detection message is normal, the process goes to step 10;

[0132] Step 10: The network processor sends the detection message to the detection unit;

[0133] Step 11: The detection unit collects various packet loss reasons recorded by the network processor;

[0134] It is worth noting that step 11 can be executed in parallel with steps 3 to 10.

[0135] Step 12: The detection unit performs a cyclic redundancy check code CRC check on the detection message received from the network processor to obtain a check result;

[0136] Step 13: The detection unit determines whether each unit under test has an abnormality according to the verification result and the collected reasons for packet loss.

[0137] Optionally, the detection unit performs CRC check on the detection message and collects statistics on the reasons for packet loss, such as recording the number of error packets, source board slot number, etc., so as to complete the detection of each module passed by the GE port service type board.

[0138] Embodiment 4:

[0139] The embodiment of the present invention is based on the first and second embodiments and takes application scenario 2 involving a 10GE (Gigabit Ethernet) service board port as an example for description.

[0140] It should be understood that there are many 10GE service boards involved in the entire PTN network equipment, and the processing process of each 10GE service board is similar. The embodiment of the present invention selects one of the GE service boards for illustration, and uses port 1 of slot n as an example.

[0141] The PTN network equipment starts the spontaneous flow test mode, sends the configuration attributes related to the spontaneous flow to each module to be tested, and the flow rate is 800Mbit / s. Since the service board type currently being tested is a 10GE port type, the sent test message flow of 800M cannot meet the port detection level and needs to be processed in an internal loop. According to 10G / 800M is greater than 12 times, the number of cycles Q is 12, 12*800Mbit / s=9.6G, which meets the verification requirements; when the detection unit starts to send the test message, the number of cycles Q carried by the test message is 12; the detection process includes the following steps, and please refer to Figure 4 As shown, it is a structural diagram of a 10GE service board message detection method provided by an embodiment of the present invention:

[0142] Step 1: The detection unit starts to send packets. The detection message carries a fixed destination MAC, source MAC, ETYPE and random payload content. In addition, the slot n and port number 1 of the board to be detected are sent to the network processor through the specific protocol channel of the detection message, and then jump to step 2;

[0143] Step 2: After receiving the detection message, the network processor determines whether the spontaneous flow mode detection is turned on. If not, it discards it and ends the process; if so, jump to step 3;

[0144] Step 3: The network processor performs a first check on the received detection message according to the pre-stored detection message, that is, compares and judges the key fields (such as the destination MAC address, the source MAC address, and the Ethernet type), and optionally determines whether the BIT bits of the key fields are modified; if some BITs are flipped and modified, the packet is discarded and the reason for the packet loss is recorded, and the process goes to step 13; if the detection message is normal, the process goes to step 4;

[0145] Step 4: After the network processor detects itself, it searches the corresponding port information table 1 for the downstream flow ID in the outbound direction through the information of slot n and port number 1 carried in the detection message, and then sends the detection message to port 1, and jumps to step 5 for processing;

[0146] Step 5: Port 1 sends the detection message to the network processor. Since the fiber self-loop is set on the port, the detection message will continue to loop back from the optical port to the single board service detection, and jump to step 6;

[0147] Step 6: After the detection message is looped back to the single-board service, it is processed by the network processor again. The network processor performs a second check on the received detection message, that is, compares and judges the key fields (such as destination MAC address, source MAC address, Ethernet type), and optionally determines whether the BIT bits of the key fields are modified; if some BITs are flipped and modified, they are discarded and the reasons for packet loss are recorded, and jump to step 13; if the detection message is normal, jump to step 7;

[0148] Step 7: The network processor uses the random value at the preset position in the detection message as the keyword key to search for the table entry content of different types of random access memories. The key here is related to the size of the table entry allocation space stored in different RAMs. In order to ensure that all random access memory spaces can be detected, it is necessary to ensure that the number of key bits matches the total number of address entries in the table entry. After looking up the table, it is determined whether the return value (i.e., the value found from the table entry content) is consistent with a specific value written in advance. If not, the packet is abnormally discarded and the reason for the packet loss is recorded, and the process goes to step 13. If it is normal, the process goes to step 8.

[0149] Step 8: After the network processor detects the random access memory, it checks the slot n and port number 1 carried in the detection message, checks the corresponding port information table 2 to obtain the upstream flow ID sent to the switch, sends the detection message to the switching network, and jumps to step 9;

[0150] Step 9: The network processor determines whether the traffic cycle number Q is 0. If not, the cycle number Q is decremented by 1, and then the detection message is sent to the switching network through the acquired upstream flow ID, and the loop processing continues (i.e., looping steps 4 to 8); if it is equal to 0, the detection message is sent to the switching network with a special destination port number x value, and then jumps to step 10;

[0151] Step 10: After the detection message returns to the downstream network processor through the switching network, the network processor performs a third check on the received detection message, that is, compares and judges the key fields (such as the destination MAC address, the source MAC address, and the Ethernet type), and optionally determines whether the BIT bits of the key fields are modified; if some BITs are flipped and modified, the packet is discarded and the reason for the packet loss is recorded, and the process goes to step 13; if the detection message is normal, the process goes to step 11;

[0152] Step 11: When the number of cycles Q decreases to non-zero, the detection message is exchanged from the common channel to the downlink. When the number of cycles Q decreases to 0, the detection message is exchanged from the special channel y to the downlink. If the detection message comes from the common channel, jump to step 4. If the detection message comes from the special channel y (x and y have a specific mapping relationship), it means that the detection message detection process has met the detection purpose, jump to step 12.

[0153] Step 12: The network processor sends the detection message to the detection unit;

[0154] Step 13: The detection unit collects various packet loss reasons recorded by the network processor;

[0155] It is worth noting that step 13 can be executed in parallel with steps 3 to 12.

[0156] Step 14: The detection unit performs a cyclic redundancy check code CRC check on the detection message according to the detection message received from the network processor to obtain a check result;

[0157] Step 15: The detection unit determines whether each unit under test has an abnormality according to the verification result and the collected reasons for packet loss.

[0158] Optionally, the detection unit performs CRC check on the detection message and collects statistics on the reasons for packet loss, such as recording the number of error packets, source board slot number, etc., so as to complete the detection of each module passed by the 10GE port service type board.

[0159] It is worth noting that the embodiment of the present invention is an example description using the number of cycles Q as 12. In actual applications, it needs to be flexibly adjusted according to specific application scenarios.

[0160] Embodiment five:

[0161] In order to solve the problems of low detection efficiency and great detection difficulty in the related art through instrument detection, a packet transport network PTN network device is provided in an embodiment of the present invention, which includes at least one single board as described in the second embodiment, see Figure 5 As shown, the packet transport network PTN network equipment includes K boards, where K is an integer greater than or equal to 1.

[0162] See also Figure 6 As shown, a packet transport network PTN network device including m slot boards as described in Example 3, wherein each slot board has r ports, and m and r are integers greater than or equal to 1;

[0163] See also Figure 7 As shown, a packet transport network PTN network device including n slot boards as described in the fourth embodiment, wherein each slot board has r ports, and n and r are integers greater than or equal to 1;

[0164] It is worth noting that in practical applications, the values ​​of m, n, and r can be flexibly adjusted according to specific application scenarios.

[0165] It is also worth noting that, in order to avoid redundant description, all examples in Embodiments 2 to 4 are not fully described in this embodiment. It should be clear that all examples in Embodiments 2 to 4 are applicable to this embodiment.

[0166] The packet transport network PTN network device provided by the embodiment of the present invention includes at least one single board as described in the second to fourth embodiments, and sends a detection message to the network processor through the detection unit inside the single board. Further, the network processor tests each unit to be tested according to the detection message. Further, the detection unit collects the test results of each unit to be tested. Further, the detection unit determines whether each unit to be tested is abnormal according to the test results. It solves the problems of many shortcomings in the related art of instrument detection, low detection efficiency and high detection difficulty. That is, the packet transport network PTN network device provided by the embodiment of the present invention realizes the detection of each unit to be tested through the detection unit inside the single board it contains, reduces the dependence on the instrument, has comprehensive RAM screening, small device test coupling, easy to locate problems, high screening efficiency, and greatly improves the equipment screening efficiency. At the same time, it also saves funds to a certain extent.

[0167] Embodiment six:

[0168] An embodiment of the present invention further provides a computer-readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the steps of the message detection method in the above-mentioned embodiment 1.

[0169] The computer-readable storage medium includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules or other data). Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable read only memory), flash memory or other memory technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer.

[0170] Obviously, those skilled in the art should understand that all or some steps, systems, and functional modules / units in the above disclosed methods can be implemented as software (which can be implemented with program code executable by a computing device), firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component can have multiple functions, or a function or step can be performed by several physical components in cooperation. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, executed by a computing device, and in some cases, the steps shown or described can be performed in a different order than herein, and the computer-readable medium can include a computer storage medium (or a non-transitory medium) and a communication medium (or a transient medium). As is known to those skilled in the art, the term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data.

[0171] In addition, it is well known to those skilled in the art that communication media generally contain 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 media. Therefore, the present invention is not limited to any specific hardware and software combination.

[0172] The above contents are further detailed descriptions of the embodiments of the present invention in combination with specific implementation methods, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the scope of protection of the present invention.

Claims

1. A message detection method, applied to a packet transport network (PTN) network device, comprising: The detection unit inside the board sends a detection message to the network processor; The network processor compares whether the key field of the detection message is consistent with the key field of the pre-stored detection message to complete the test of the network processor; if not, discard the detection message and record the reason for the packet loss; The network processor tests each unit to be tested in sequence according to the detection message; The detection unit collects the test results corresponding to each of the units to be tested; The detection unit determines whether each unit to be tested is abnormal according to the test result; The network processor tests each unit to be tested in sequence according to the detection message, including the network processor testing the port, specifically including: The port receives a detection message sent from the network processor; The port forwards the detection message to the network processor; The network processor compares whether the key field of the detection message sent to the port is consistent with the key field of the detection message received from the port; If not, discard the detection message and record the reason for packet loss; If so, the detection message is sent to the next unit to be tested through the port.

2. The message detection method according to claim 1, characterized in that: The unit to be tested includes at least one of a port, a random access memory and a switching network.

3. The message detection method according to claim 2, characterized in that: When the unit to be tested includes a port, a random access memory and a switching network, the network processor tests the port, the random access memory and the switching network in the order of the port, the random access memory and the switching network according to the detection message.

4. The message detection method according to claim 1, characterized in that: The network processor tests each unit to be tested in sequence according to the detection message, and also includes the network processor testing the random access memory, specifically including: The network processor uses the value corresponding to the preset position in the detection message as a keyword, and searches for table entry contents of different types of random access memories according to the keyword; The network processor compares whether the value found from the table entry content is consistent with the pre-written value; If not, discard the detection message and record the reason for packet loss; If yes, the detection message is sent to the switching network.

5. The message detection method according to claim 4, characterized in that: The network processor tests each unit to be tested in sequence according to the detection message, and also includes the network processor testing the switching network, specifically including: The switching network receives a detection message sent from the random access memory; The switching network forwards the detection message to the network processor; The network processor compares whether the key field of the detection message sent to the switching network is consistent with the key field of the detection message received from the switching network; If not, discard the detection message and record the reason for packet loss; If so, the detection message is sent to the detection unit.

6. The message detection method according to any one of claims 1 to 5, characterized in that: The detection unit collects the test results of each unit to be tested, including: The detection unit collects each packet loss reason recorded by the network processor; The detection unit determines whether each unit to be tested is abnormal according to the test result, including: The detection unit performs a cyclic redundancy check code CRC check on the detection message according to the detection message received from the network processor to obtain a check result; The detection unit determines whether each unit to be tested has an abnormality according to the verification result and the collected reasons for packet loss.

7. A single board, characterized in that: The single board includes a detection unit and a network processor; The detection unit sends a detection message to the network processor; The network processor compares whether the key field of the detection message is consistent with the key field of the pre-stored detection message to complete the test of the network processor; if not, discard the detection message and record the reason for the packet loss; The network processor is used to test each unit to be tested in sequence according to the detection message; The detection unit is used to collect the test results corresponding to each unit under test, and determine whether each unit under test is abnormal according to the test results; The network processor tests each unit to be tested in sequence according to the detection message, including the network processor testing the port, specifically including: The port receives a detection message sent from the network processor; The port forwards the detection message to the network processor; The network processor compares whether the key field of the detection message sent to the port is consistent with the key field of the detection message received from the port; If not, discard the detection message and record the reason for packet loss; If so, the detection message is sent to the next unit to be tested through the port.

8. A packet transport network (PTN) network device, characterized in that: The packet transport network (PTN) network device comprises at least one single board as claimed in claim 7.

Citation Information

Patent Citations

  • Network equipment and method for detecting links of physical ports of same

    CN101924659A

  • Single board failure detection method, single board and router

    CN102143014A

  • State detecting method of distributed system and distributed system

    CN103138996A

  • Single-board testing method and device

    CN105656708A

  • Circuit board detection method and device

    CN108226742A