Information processing method and device

By exchanging query messages between network devices, we can accurately locate the cause of changes in target information, solve problems caused by information changes in the network, and achieve rapid fault repair.

CN118869711APending Publication Date: 2024-10-29HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310481669.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-27
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

In the network, when information changes, it is difficult to accurately locate the specific cause of the change, making network problems difficult to solve.

Method used

By obtaining the change reason of the locally saved target information on the first network device and generating a query message to query the related second network device for the change reason of the target information, the source of the change reason of the target information is realized.

Benefits of technology

It achieves accurate positioning of the causes of target information changes and quickly repairs network failures caused by information changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118869711A_ABST
    Figure CN118869711A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an information processing method, which is applied to first network equipment. The method comprises the following steps: acquiring a first change reason of locally stored target information, wherein the first change reason indicates that the change of the target information is related to second network equipment; the target information is information which is stored by the second network equipment and needs to be kept synchronous in the target network, and the second network equipment belongs to the target network. And generating a first query message for querying the change reason of the target information according to the first change reason, and sending the first query message to the second network device. According to the scheme of the embodiment of the invention, after the first network equipment determines that the change of the target information is related to the second network equipment based on the locally stored first change reason, the change reason of the target information can be further inquired from the second network equipment, so that the source tracing of the change reason of the target information is realized. Therefore, by utilizing the scheme of the embodiment of the invention, the change reason of the target information can be accurately positioned.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to an information processing method and device. Background Art

[0002] In the network, when some information changes, it will cause some network problems. For example, when the routing information changes, it will cause problems such as unreachable routes, routing loops, or Internet Protocol (IP) address conflicts; when the Link State Protocol (LSP) information changes, it will cause inconsistent link state information maintained between network devices, etc.

[0003] Currently, when a network problem occurs due to the above information change, it is difficult to accurately locate the specific cause of the information change, which accordingly makes it difficult to solve the above network problem.

[0004] Therefore, a solution is urgently needed to solve the above problems. Summary of the invention

[0005] The embodiments of the present application provide an information processing method and device, which can accurately locate the cause of the change of target information.

[0006] In the first aspect, an embodiment of the present application provides an information processing method, which can be applied to a first network device. The first network device can obtain a first change reason of the target information stored locally, and the first change reason indicates that the change of the target information is related to the second network device. After the first network device determines that the change of the target information is related to the second network device based on the first change reason, it can generate a first query message according to the first change reason, and the first query message is used to query the change reason of the target information. The target information can be information stored by the second network device and needs to be synchronized in the target network, and the second network device belongs to the target network. After the first network device generates the first query message, it can send the first query message to the second network device to further query the second network device for the change reason of the target information. It can be seen that, using the solution of the embodiment of the present application, after the first network device determines that the change of the target information is related to the second network device based on the first change reason stored locally, it can further query the second network device for the change reason of the target information, thereby realizing the traceability of the change reason of the target information. Therefore, using the solution of the embodiment of the present application, the change reason of the target information can be accurately located.

[0007] In one possible implementation, after receiving the first query message, the second network device can determine the second change reason of the target information based on the first query message, and further send the second change reason to the first network device. Correspondingly, the first network device can receive the second change reason sent by the second network device. Among them, the second change reason can be the change reason of the target information obtained from the third network device after the second network device obtains the third change reason of the target information stored locally, and the third change reason indicates that the change of the target information is related to the third network device. It can be seen that, using this solution, the first network device can send the first query message to the second network device, and the second network device can further obtain the second change reason from the third network device based on the first query message, thereby tracing the change reason of the target information.

[0008] In a possible implementation, if the second change reason is an inaccurate result, the second network device may also send a first indication message to the first network device, and the first indication message indicates that the second change reason is an inaccurate query result. Accordingly, the first network device may receive the first indication message sent by the second network device. In one example, the first network device may perform further measures based on the first indication message, for example, query the precise reason for the change of the target information through a third network device, thereby tracing the reason for the change of the target information.

[0009] In a possible implementation, the first network device can obtain the first change reason in response to sensing that the target information has changed, and generate the first query message based on the first change reason, so as to query the change reason of the target information through the second network device. In this way, when the first network device senses that the target information has changed, it can trace the change reason of the target information. In this way, when other devices such as a controller or a fourth network device query the first network device for the change reason of the target information, the first network device can quickly feedback the change reason of the target information it has determined to other devices.

[0010] In one possible implementation, the first network device may, in response to receiving a second query message sent by a fourth network device, obtain the first change reason stored locally, and further generate the first query message based on the first change reason to query the second network device about the change reason of the target information.

[0011] In one possible implementation, if the first network device is a controller, the first change reason may be obtained by the controller from the fifth network device that stores the target information. In a specific example, the controller may send a fourth query message to the fifth network device, and the fourth query message is used to query the change reason of the target information. After sending the fourth query message to the fifth network device, the controller may receive the first change reason sent by the fifth network device, and further save the first change reason. In this way, the controller can trace the change reason of the target information by hop-by-hop query, thereby accurately locating the change reason of the target information.

[0012] In a possible implementation, considering that a change in target information may cause certain network problems, in order to repair the network problems as quickly as possible, the aforementioned first query message may include second indication information, wherein the second indication information instructs the network device that caused the change in the target information to perform a fault self-healing operation to repair the network failure caused by the change in the target information. In this case, using the first query message can not only trace the cause of the change in the target information, but also quickly repair the network failure caused by the change in the target information.

[0013] In a possible implementation, if the first query message includes the second indication information, the second network device may also send the third indication information to the first network device, and the third indication information may be used to indicate whether the network device that caused the target information to change has performed a fault self-healing operation, so that the first network device can determine whether the network device that caused the target information to change has performed a fault self-healing operation based on the third indication information, so that the first network device can perform the next step of operation. For example, in the case where the network device that caused the target information to change has performed a fault self-healing operation, it is further determined whether the network fault caused by the change of the target information has been repaired. For another example, in the case where the network device that caused the target information to change has not performed a fault self-healing operation, a corresponding fault repair operation is performed. In one example, the second network device may carry the first change reason and the third indication information in the same message and send it to the first network device.

[0014] In a possible implementation, the first query message is a first User Datagram Protocol (UDP) message. In a specific implementation, the second network device sends the second change reason to the first network device by sending a second UDP message carrying the second change reason to the first network device.

[0015] In a possible implementation, the first query message is a first Internet Control Message Protocol (ICMP) message. In a specific implementation, the second network device sends the second change reason to the first network device by sending a second ICMP message carrying the second change reason to the first network device.

[0016] In a possible implementation, the target information may be routing information. In this case, by using the solution of the embodiment of the present application, the reason for the change of the routing information can be accurately located after the routing information is changed.

[0017] In a possible implementation, the target information may be LSP information. In this case, by using the solution of the embodiment of the present application, the cause of the change of the LSP information can be accurately located after the LSP information changes.

[0018] In a possible implementation, the first network device, the second network device, and the third network device may all belong to a target network. The target network includes a first network domain and a second network domain, the first network device may belong to the first network domain, the third network device may belong to the second network domain, and the second network device may be a cross-domain device of the first network domain and the second network domain. In this case, the first network device located in the first network domain may obtain the second change reason from the third network device located in the second network domain through the second network device, thereby accurately determining the change reason of the target information.

[0019] In a second aspect, an embodiment of the present application provides an information processing method, which can be applied to a second network device. The second network device can receive a first query message sent by a first network device, wherein the first query message is used to query the change reason of the target information, wherein the target information is information stored by the second network device and needs to be synchronized in the target network, and the second network device belongs to the target network. After the second network device receives the first query message, it can obtain the first change reason of the target information, wherein the first change reason is the change reason of the target information obtained from the third network device after the second network device obtains the second change reason stored locally, and the second change reason indicates that the change of the target information is related to the third network device. After the second network device obtains the first change reason, it can send the first change reason to the first network device. Since the first change reason is the change reason of the target information obtained from the third network device after the second network device determines that the change of the target information is related to the third network device based on the second change reason, the first change reason is the change reason obtained by the second network device by tracing the change reason of the target information. Therefore, by using the solution of the embodiment of the present application, the traceability of the change reason of the target information can be realized, so that the change reason of the target information can be accurately located.

[0020] In a possible implementation, when the second network device obtains the first change reason, it may first obtain the second change reason stored locally. In one example, the second change reason may be recorded locally when the second network device perceives that the target information has changed. The second change reason may indicate that the change of the target information is related to the third network device. In this case, the second network device may send a second query message to the third network device according to the second change reason, and the second query message is used to query the change reason of the target information, so as to query the third network device for the change reason of the target information, thereby tracing the change reason of the target information. After sending the second query message to the third network device, the second network device may receive the first change reason returned by the third network device for the second query message, or, if the response message returned by the third network device for the second query message is not received, the second change reason is determined as the first change reason.

[0021] In a possible implementation, the first change reason determined by the third network device may be obtained from the fourth network device. In a specific example, the third network device may send a third query message to the fourth network device based on the second query message, and further obtain the first change reason based on the response message returned by the fourth network device to the third query message. The third query message is used to query the change reason of the target information. In this way, the change reason of the target information can be traced back.

[0022] In one possible implementation, when the third network device does not return a response message to the second query message to the second network device, considering that the second change reason indicates that the change of the target information is related to the third network device, the second change reason cannot indicate the source of the change of the target information. Therefore, the second change reason is determined as the first change reason, and the first change reason obtained by the second network device is actually an inaccurate result. In this case, the second network device can also send a first indication message to the first network device, and the first indication message indicates that the first change reason is an inaccurate query result. In this way, the first network device can perform further measures based on the first indication message, for example, query the precise reason for the change of the target information through the third network device, thereby tracing the cause of the change of the target information.

[0023] In a possible implementation, the second network device may send the second query message to the third network device in response to receiving the first query message, so as to query the third network device for the reason for the change of the target information, thereby tracing the reason for the change of the target information. In a specific example, after receiving the first query message, the second network device may obtain the second change reason stored locally, and determine that the change of the target information is related to the third network device based on the second change reason, thereby further sending the second query message to the third network device.

[0024] In one possible implementation, the second network device may send the second query message to the third network device in response to sensing a change in the target information. In a specific example, when the second network device receives a notification message indicating a change in the target information from the third network device, it may send the second query message to the third network device. In this case, after the second network device determines the first change reason, it may save the first change reason locally. In this way, after the second network device receives the first query message, it may obtain the first change reason stored locally and send it to the first network device, thereby improving the efficiency of feeding back the first change reason to the first network device.

[0025] In a possible implementation, the first network device may be a controller or a network device storing the target information. Using the solution of the embodiment of the present application, after receiving the first query message, the second network device may obtain the change reason of the target information obtained from the third network device, and send the change reason to the controller or the first network device storing the target information, so that the controller or the first network device storing the target information can obtain the first change reason obtained by the second network device from the third network device, thereby tracing the change reason of the target information.

[0026] In one possible implementation, considering that a change in target information may cause certain network problems, in order to repair the network problem as soon as possible, the aforementioned first query message and the second query message may include second indication information, and the second indication information instructs the network device that causes the change in the target information to perform a fault self-healing operation to repair the network failure caused by the change in the target information. As an example, if the third network device is the network device that causes the change in target information, when the second query message is forwarded to the third network device, the third network device can perform a fault self-healing operation based on the second indication information, thereby repairing the network failure caused by the change in the target information. For example, the third network device can revoke the operation that it has performed to cause the change in target information, thereby repairing the network failure caused by the change in the target information. As another example, if the fourth network device is the network device that causes the target information to change, when the second query message is forwarded to the third network device, the third network device can send a third query message to the third network device based on the second query message, and the third query message can also include the second indication information. Correspondingly, the fourth network device can perform a fault self-healing operation based on the second indication information, thereby repairing the network fault caused by the change of the target information. In this case, using the solution of the embodiment of the present application, not only can the cause of the change of the target information be traced, but also the network fault caused by the change of the target information can be quickly repaired.

[0027] In one possible implementation, if the first query message and the second query message include second indication information, the second network device may also send third indication information to the first network device, and the third indication information may be used to indicate whether the network device that caused the target information to change has performed a fault self-healing operation, so that the first network device can determine whether the network device that caused the target information to change has performed a fault self-healing operation based on the third indication information, so that the first network device can perform the next step of operation.

[0028] In a possible implementation, the first query message is a first User Datagram Protocol UDP message, and sending the first change reason to the first network device includes: sending a second UDP message to the first network device, wherein the second UDP message includes the first change reason.

[0029] In a possible implementation, the first query message is a first Internet Control Message Protocol (ICMP) message, and sending the first change reason to the first network device includes: sending a second ICMP message to the first network device, wherein the second ICMP message includes the first change reason.

[0030] In a possible implementation, the target information may be routing information. In this case, by using the solution of the embodiment of the present application, the reason for the change of the routing information can be accurately located after the routing information is changed.

[0031] In a possible implementation, the target information may be LSP information. In this case, by using the solution of the embodiment of the present application, the cause of the change in the LSP information can be accurately located after the LSP information changes. In a possible implementation, the target network includes a first network domain and a second network domain, the first network device belongs to the first network domain, the third network device belongs to the second network domain, and the second network device is a cross-domain device of the first network domain and the second network domain.

[0032] In the third aspect, an embodiment of the present application provides an information processing method, which can be applied to a second network device, and the second network device can receive a first query message sent by a first network device, wherein the first query message is used to query the change reason of the target information, and the target information is information saved by the second network device and needs to be synchronized in the target network, and the second network device belongs to the target network. After the second network device receives the first query information, it can obtain the first change reason of the target information based on the first query information, and send the first change reason to the first network device. The first change reason is recorded by the second network device after performing an operation to change the target information. It can be seen that, using this solution, when the target information is changed after the second network device performs an operation to change the target information, the second network device can send the locally recorded first change reason to the first network device after receiving the first query message, so that the first network device can accurately locate the cause of the change in the target information.

[0033] In a possible implementation, the first query message is generated after the first network device obtains a second change reason stored locally, and the second change reason indicates that the change of the target information is related to the second network device.

[0034] In a fourth aspect, an embodiment of the present application provides an information processing device, which is applied to a first network device, and the device includes: a processing unit, which is used to obtain a first change reason of locally stored target information, and generate a first query message according to the first change reason, the first query message is used to query the change reason of the target information, the first change reason indicates that the change of the target information is related to a second network device, the target information is information stored by the second network device and needs to be synchronized in the target network, and the second network device belongs to the target network; a sending unit, which is used to send the first query message to the second network device.

[0035] In one possible implementation, the device also includes: a receiving unit, used to receive a second change reason sent by the second network device based on the first query message, the second change reason being the change reason of the target information obtained from the third network device after the second network device obtains the third change reason of the target information stored locally, and the third change reason indicates that the change of the target information is related to the third network device.

[0036] In a possible implementation manner, the receiving unit is further used to: receive first indication information sent by the second network device, where the first indication information indicates that the second change reason is an inaccurate query result.

[0037] In a possible implementation, the first network device stores the target information, and generating the first query message according to the first change reason includes: in response to sensing that the target information has changed, generating the first query message according to the first change reason.

[0038] In a possible implementation, the first network device stores the target information, and the receiving unit is further used to: receive a second query message sent by a fourth network device, where the second query message is used to query the reason for the change of the target information; and obtaining the first change reason of the locally stored target information includes: obtaining the first change reason stored locally according to the second query message.

[0039] In a possible implementation, the first network device is a controller, and the sending unit is further used to: send a fourth query message to the fifth network device, where the fourth query message is used to query the reason for the change of the target information; the receiving unit included in the first network device is further used to receive the first change reason sent by the fifth network device; and the processing unit is further used to store the first change reason sent by the fifth network device.

[0040] In a possible implementation, the first query message includes second indication information, and the second indication information instructs the network device that causes the target information to change to perform a fault self-healing operation to repair the network fault caused by the change of the target information.

[0041] In a possible implementation, the first query message is a first User Datagram Protocol UDP message, and the receiving unit is used to: receive a second UDP message returned by the second network device in response to the first query message, wherein the second UDP message includes the second change reason.

[0042] In a possible implementation, the first query message is a first Internet Control Message Protocol (ICMP) message, and the receiving unit is used to: receive a second ICMP message returned by the second network device in response to the first query message, wherein the second ICMP message includes the second change reason.

[0043] In a possible implementation manner, the target information includes: routing information, or link state protocol LSP information.

[0044] In a possible implementation, the target network includes a first network domain and a second network domain, the first network device belongs to the first network domain, the third network device belongs to the second network domain, and the second network device is a cross-domain device of the first network domain and the second network domain. In a fifth aspect, an embodiment of the present application provides an information processing device, which is applied to a second network device, and the device includes: a receiving unit, which is used to receive a first query message sent by a first network device, the first query message is used to query the change reason of the target information, the target information is information stored by the second network device and needs to be synchronized in the target network, and the second network device belongs to the target network; a processing unit, which is used to obtain the first change reason of the target information based on the first query message, the first change reason is the change reason of the target information obtained from the third network device after the second network device obtains the second change reason of the target information stored locally, and the second change reason indicates that the change of the target information is related to the third network device; a sending unit, which is used to send the first change reason to the first network device.

[0045] In one possible implementation, obtaining the first change reason of the target information includes: sending a second query message to the third network device according to the second change reason, the second query message being used to query the change reason of the target information; receiving the first change reason returned by the third network device in response to the second query message, or, if a response message returned by the third network device in response to the second query message is not received, determining the second change reason as the first change reason.

[0046] In a possible implementation, the first change reason sent by the third network device is obtained after the third network device sends a third query message to the fourth network device based on the second query message, and the response message returned by the fourth network device to the third query message is obtained, and the third query message is used to query the change reason of the target information.

[0047] In a possible implementation, the sending unit is further used to: if a response message returned by the third network device to the second query message is not received, send first indication information to the first network device, wherein the first indication information indicates that the first change reason is an inaccurate query result.

[0048] In one possible implementation, the sending of the second query message to the third network device includes: sending the second query message to the third network device in response to sensing a change in the target information; or sending the second query message to the third network device in response to receiving the first query message.

[0049] In a possible implementation manner, the first network device includes: a controller, or a network device storing the target information.

[0050] In one possible implementation, the first query message and the second query message both include second indication information, and the second indication information instructs the network device that causes the target information to change to perform a fault self-healing operation to repair the network fault caused by the change of the target information.

[0051] In a possible implementation, the first query message is a first User Datagram Protocol UDP message, and the sending unit is used to: send a second UDP message to the first network device, where the second UDP message includes the first change reason.

[0052] In a possible implementation, the first query message is a first Internet Control Message Protocol (ICMP) message, and the sending unit is used to send a second ICMP message to the first network device, where the second ICMP message includes the first change reason.

[0053] In a possible implementation manner, the target information includes: routing information, or link state protocol LSP information.

[0054] In a possible implementation, the target network includes a first network domain and a second network domain, the first network device belongs to the first network domain, the third network device belongs to the second network domain, and the second network device is a cross-domain device of the first network domain and the second network domain.

[0055] In a sixth aspect, an embodiment of the present application provides an information processing device, which can be applied to a second network device, and the device includes: a receiving unit, a processing unit, and a sending unit. The receiving unit is used to receive a first query message sent by the first network device, and the first query message is used to query the change reason of the target information. The target information is information stored by the second network device and needs to be synchronized in the target network. The second network device belongs to the target network. The processing unit is used to obtain the first change reason of the target information based on the first query information after receiving the first query information. The sending unit is used to send the first change reason to the first network device, and the first change reason is recorded by the second network device after performing an operation to change the target information.

[0056] In a possible implementation, the first query message is generated after the first network device obtains a second change reason stored locally, and the second change reason indicates that the change of the target information is related to the second network device.

[0057] In a seventh aspect, an embodiment of the present application provides a device. The device includes a processor and a memory. The memory is used to store instructions or computer programs. The processor is used to execute the instructions or computer programs in the memory, execute the method described in any one of the first aspects above, or execute the method described in any one of the second aspects above, or execute the method described in any one of the third aspects above.

[0058] In the eighth aspect, an embodiment of the present application provides a computer-readable storage medium, including instructions or a computer program, which, when executed on a computer, enables the computer to execute the method described in any one of the first aspect above, or execute the method described in any one of the second aspect above, or execute the method described in any one of the third aspect above.

[0059] In the ninth aspect, an embodiment of the present application provides a computer program product comprising instructions or computer programs, which, when executed on a computer, enables the computer to execute the method described in any one of the first aspect above, or execute the method described in any one of the second aspect above, or execute the method described in any one of the third aspect above.

[0060] In the tenth aspect, an embodiment of the present application also provides a communication system, which includes: a first network device that executes the method described in any one of the first aspects above and a second network device that executes the method described in any one of the second aspects above, or the communication system includes: a first network device that executes the method described in any one of the first aspects above and a second network device that executes the method described in any one of the third aspects above. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0062] Figure 1a A schematic diagram of an exemplary application scenario provided for an embodiment of the present application;

[0063] Figure 1b A schematic diagram of another exemplary application scenario provided for an embodiment of the present application;

[0064] Figure 1c A schematic diagram of another exemplary application scenario provided for an embodiment of the present application;

[0065] Figure 1d A schematic diagram of another exemplary application scenario provided for an embodiment of the present application;

[0066] Figure 2 A flowchart of an information processing method provided in an embodiment of the present application;

[0067] Figure 3a A schematic diagram of the structure of a first UDP message provided in an embodiment of the present application;

[0068] Figure 3b A schematic diagram of the structure of a second UDP message provided in an embodiment of the present application;

[0069] Figure 3c A schematic diagram of the structure of a second ICMP message provided in an embodiment of the present application;

[0070] Figure 3d A schematic diagram of the structure of a second ICMP message provided in an embodiment of the present application;

[0071] Figure 4 A flowchart of another information processing method provided in an embodiment of the present application;

[0072] Figure 5 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application;

[0073] Figure 6 A schematic diagram of the structure of another information processing device provided in an embodiment of the present application;

[0074] Figure 7 A schematic diagram of the structure of a device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0075] The embodiments of the present application provide an information processing method and device, which can accurately locate the cause of the change of target information.

[0076] In a network, when some information changes, it may cause some network problems. Furthermore, when network problems occur due to the above information changes, it is difficult to accurately locate the specific cause of the information change.

[0077] The following is an explanation based on specific scenarios.

[0078] See also Figure 1a , which is a schematic diagram of an exemplary application scenario provided in an embodiment of the present application.

[0079] like Figure 1a As shown, network devices RT1, RT2, RT3, RT4, RT5, RT6, RT7, RT8, RT9 and RT10 all belong to autonomous system (AS) 100, which is an internal gateway protocol (IGP) network domain. RT5 is connected to AS 200. AS 100 includes intermediate system-to-intermediate system (ISIS) 1 and ISIS 2. Among them, RT3, RT4, RT5, RT8, RT9 and RT10 belong to ISIS 1, and RT1, RT2, RT3, RT6, RT7 and RT8 belong to ISIS 2, that is, RT3 and RT8 are cross-domain devices of ISIS 1 and ISIS 2.

[0080] There is a network segment route 10.1.1.0 / 24 in AS 200. In order to allow network devices in AS 100 to learn the network segment route 10.1.1.0 / 24 in AS 200, RT5 can configure static routing or Border Gateway Protocol (BGP) routing ( Figure 1a After RT5 learns the route 10.1.1.0 / 24, it can introduce the route into ISIS 1 and publish it to the outside through the ISIS protocol. All devices in ISIS 1 can learn the network segment route 10.1.1.0 / 24. After RT3 learns the network segment route 10.1.1.0 / 24, it can introduce the network segment route 10.1.1.0 / 24 into ISIS 2, so that the network devices in ISIS 2 can also learn the routing information. Therefore, under normal circumstances, any network device in AS 100 can detect that the network segment route 10.1.1.0 / 24 is reachable.

[0081] However, if RT5 can no longer learn the network segment route 10.1.1.0 / 24 due to deletion of static route configuration, link failure, or BGP neighbor disconnection, other network devices in AS 100 will no longer be able to learn the network segment route 10.1.1.0 / 24 through IGP protocol flooding and convergence. At this time, the network devices in AS 100 determine that the network segment route 10.1.1.0 / 24 is unreachable, and the devices in AS 100 cannot accurately determine the reason for the change in the status of the network segment route 10.1.1.0 / 24, that is, the devices in AS 100 cannot accurately determine the reason for the change in the status of the network segment route 10.1.1.0 / 24 from reachable to unreachable.

[0082] See also Figure 1b , which is a schematic diagram of another exemplary application scenario provided in an embodiment of the present application.

[0083] like Figure 1b As shown, network devices RT1, RT2, RT3, RT4, RT5 and RT6 belong to AS 1, which runs ISIS 1. RT3, RT6, RT7, RT8, RT9 and RT10 belong to AS 2, which runs ISIS 2. RT3 and RT6 are cross-domain devices of AS1 and AS2.

[0084] like Figure 1bAs shown, when RT3 introduces route 1.1.1.1 / 32 of ISIS 2 into ISIS 1, the route policy (route-policy) adopted is: route-policy 2to1, and when introducing route 1.1.1.1 / 32 into ISIS 1, tag information tag2 is added to route 1.1.1.1 / 32, and tag 2 indicates that the route comes from ISIS 2. In this way, when RT6 introduces the route of ISIS 1 into ISIS 2, based on the tag information tag2 of route 1.1.1.1 / 32, route 1.1.1.1 / 32 is not introduced into ISIS 2, thereby avoiding a routing loop.

[0085] However, if RT3 changes the route-policy of the imported route due to an operation, for example, the tag information tag 2 of route 1.1.1.1 / 32 is deleted, then when RT6 imports the route of ISIS 1 into ISIS 2, since route 1.1.1.1 / 32 does not have tag information tag2, route 1.1.1.1 / 32 will be imported back into the ISIS 2 process again, thus causing a routing loop. Currently, it is impossible to accurately locate the cause of the change of route 1.1.1.1 / 32, specifically, it is impossible to accurately locate the cause of the change of route 1.1.1.1 / 32 from not causing a routing loop to causing a routing loop.

[0086] See also Figure 1c , which is a schematic diagram of another exemplary application scenario provided in an embodiment of the present application.

[0087] like Figure 1c As shown, network devices RT1, RT2, RT3, RT4, RT5 and RT6 belong to network domain 1, RT3, RT6, RT7, RT8, RT9 and RT10 belong to network domain 2, and RT3 and RT6 are cross-domain devices of network domain 1 and network domain 2.

[0088] like Figure 1c As shown in the figure, there is a preconfigured routing address 1.1.1.1 / 32 on RT8. When the same routing address 1.1.1.1 / 32 is configured on RT6, a routing conflict will occur in the network. At present, it is impossible to accurately locate the reason why the routing address 1.1.1.1 / 32 changes. Specifically, it is impossible to accurately locate the reason why the routing address 1.1.1.1 / 32 changes from no routing conflict to routing conflict.

[0089] See also Figure 1d , which is a schematic diagram of another exemplary application scenario provided in an embodiment of the present application.

[0090] like Figure 1dAs shown, network devices RTA, RTB, RTF and RTG belong to network domain 1, network devices RTB, RTC, RTG and RTH belong to network domain 2, network devices RTC, RTD, RTH and RTI belong to network domain 3, and network devices RTD, RTE, RTI and RTJ belong to network domain 4. LSP information needs to be synchronized in the four network domains of network domain 1, network domain 2, network domain 3 and network domain 4.

[0091] Under normal circumstances, RTC serves as the publishing source of LSP information. Other network devices in the four network domains learn the LSPs published by RTC and update local related entries according to the content carried in the learned LSP information.

[0092] However, due to reasons such as link disconnection or local clock anomalies, the local LSP information of RTJ aged after the maximum survival time, and RTJ published the information of the aged LSP by publishing IGP merge messages, causing RTI, RTH, RTG, RTF, and RTA to perform aging processing on the local LSP, resulting in inconsistent LSP information in these four network domains. At present, it is impossible to accurately locate the cause of the change in the LSP information.

[0093] Figure 1c and Figure 1d The network domain mentioned in may be an AS, an ISIS network domain, or an open shortest path first (OSPF) domain, and the embodiments of the present application do not make specific limitations thereto.

[0094] In order to solve the above problems, the embodiments of the present application provide corresponding information processing methods and devices. Next, the information processing methods and devices provided by the embodiments of the present application are introduced in conjunction with the accompanying drawings.

[0095] See also Figure 2 , which is a flow chart of an information processing method provided in an embodiment of the present application. Figure 2 The information processing method shown can be applied to the first network device, for example.

[0096] In one example, the first network device may be a controller.

[0097] In another example, the first network device may belong to the target network. The target network may include multiple network domains, and the first network device may be a device in one of the network domains included in the target network, or the first network device may be a cross-domain device in two of the multiple network domains included in the target network. In this case, the first network device stores the target information. Figure 1aIn the scenario shown, the first network device may be RT1 or RT3; Figure 1b In the scenario shown, the first network device may be RT10 or RT6; Figure 1c In the scenario shown, the first network device may be RT1; for example, in Figure 1d In the illustrated scenario, the first network device may be RTA, RTF, RTG, RTH, or RHI. Figure 2 The method shown may, for example, include the following S101 - S103 .

[0098] S101: Obtain a first change reason of locally stored target information, where the first change reason indicates that a change of the target information is related to a second network device, the target information is information stored by the second network device and needs to be synchronized in a target network, and the second network device belongs to the target network.

[0099] In the embodiment of the present application, the target information may be a message stored by the second network device and needs to be synchronized in the target network. The target network in the embodiment of the present application may be, for example, a network including multiple network domains. For network domains, reference may be made to the relevant description above and no repetitive description is given here. In one example, the target information may be routing information, for example, Figure 1a , Figure 1b as well as Figure 1c In the corresponding application scenario, the target information may be routing information. In another example, the target information may be LSP information, for example, Figure 1d In the scenario shown, the target information may be LSP information.

[0100] In one example, if the first network device is a network device that stores target information, then because the target information is information that needs to be synchronized in the target network, when the target information changes, the changed target information will also be synchronized in the target network. In other words, when the target information changes, the first network device can perceive the change in the target information. In one example, if the first network device obtains the target information from the second network device during the synchronization phase of the target information, then when the target information changes, the second network device can send a notification message of the change in the target information to the first network device. For example, Figure 1aIn the scenario shown, when RT5 deletes the static route 10.1.1.0 / 24, it sends a notification message to RT3 to notify RT3 that it has deleted the route 10.1.1.0 / 24. Accordingly, RT3 will also delete the route 10.1.1.0 / 24 and send a notification message to RT1 to notify RT1 that it has deleted the route 10.1.1.0 / 24. Further, RT1 will also delete the route 10.1.1.0 / 24, so that the route 10.1.1.0 / 24 remains synchronized within AS 100. In one example, when the first network device senses that the target information has changed, it locally records the first change reason of the target information, for example, Figure 1a In the scenario shown, if the first network device is RT1, the first change reason may be: RT3 deletes the route 10.1.1.0 / 24; if the first network device is RT3, the first change reason may be: RT5 deletes the route 10.1.1.0 / 24.

[0101] In one example, since the first network device senses the change of the target information through the second network device, the first change reason may indicate that the change of the target information is related to the second network device. Figure 1a In the scenario shown, if the first network device is RT1, the second network device may be RT3, and the first change reason may be: RT3 deleted the route 10.1.1.0 / 24; if the first network device is RT3, the second network device may be RT5, and the first change reason may be that RT5 deleted the route 10.1.1.0 / 24.

[0102] In another example, if the first network device is a controller, the first change reason may be obtained by the controller from the fifth network device storing the target information. In a specific example, the controller may send a fourth query message to the fifth network device, and the fourth query message is used to query the change reason of the target information. After sending the fourth query message to the fifth network device, the controller may receive the first change reason sent by the fifth network device, and further save the first change reason. In an example, the first change reason may be, for example, the change reason of the target information stored locally by the fifth network device, and the first change reason may be stored locally by the fifth network device when the target information is perceived to have changed, or may be queried by the fifth network device from other network devices, which is not specifically limited in the embodiments of the present application. Regarding the specific implementation of the fifth network device obtaining the first change reason from other network devices, it is similar to the implementation principle of the first network device querying the change reason of the target information from the second network device, and will not be described in detail here.

[0103] S102: Generate a first query message according to the first change reason, where the first query message is used to query the change reason of the target information.

[0104] S103: Send the first query message to the second network device.

[0105] After the first network device determines that the change of the target information is related to the second network device based on the first change reason, it can further generate a first query message for querying the change reason of the target information, and send the first query message to the second network device to further query the second network device for the change reason of the target information, thereby tracing the change reason of the target information.

[0106] The embodiment of the present application does not specifically limit the first query message, and the first query message may be a first ICMP message or a first UDP message, and the embodiment of the present application does not specifically limit it. In an example, when the first query message is a first UDP message, the first query message may include a UDP header and UDP data (data), and the first query message may be carried in the UDP data in the UDP message.

[0107] When the first network device is a network device storing the target information, the embodiment of the present application does not specifically limit the timing when the first network device generates the first query message.

[0108] In one example, the first network device may acquire the first change reason in response to sensing that the target information has changed, and generate the first query message based on the first change reason. In a specific example, when the first network device receives a notification message indicating that the target information has changed from the second network device, the first change reason is saved locally, and further acquired the first change reason saved locally, and the first query message is generated based on the first change reason.

[0109] In another example, the first network device may receive a second query message sent by a fourth network device, and the second query message is used to query the change reason of the target information. After receiving the second query message, the first network device may obtain the first change reason stored locally, and further generate the first query message based on the first change reason. The fourth network device mentioned here may be a network device storing the target information, or a controller, which is not specifically limited in the embodiment of the present application. In one example, after receiving the first query message, the second network device may determine the second change reason of the target information based on the first query message, and further send the second change reason to the first network device. In an embodiment of the present application, the second change reason may be the change reason of the target information obtained from the third network device after the second network device obtains the third change reason of the target information stored locally, and the third change reason indicates that the change of the target information is related to the third network device. Regarding the specific implementation of the second network device obtaining the second change reason from the third network device, reference may be made to the specific implementation of the second network device obtaining the first change reason from the third network device below, which is not described in detail here.

[0110] Regarding the first network device, the second network device and the third network device, it should be noted that, in an example, the first network device, the second network device and the third network device can all belong to the target network. The target network includes a first network domain and a second network domain. The first network device can belong to the first network domain, the third network device can belong to the second network domain, and the second network device can be a cross-domain device of the first network domain and the second network domain. In this case, the first network device located in the first network domain can obtain the second change reason from the third network device located in the second network domain through the second network device, thereby accurately determining the change reason of the target information. See Figure 1a To understand, the first network device can correspond to Figure 1a As shown in RT1, the second network device may correspond to Figure 1a As shown in RT3, the third network device can correspond to Figure 1a RT5 shown.

[0111] In one example, if the second change reason is an inaccurate result, the second network device may also send a first indication message to the first network device, and the first indication message indicates that the second change reason is an inaccurate query result. In this way, the first network device may perform further measures based on the first indication message, for example, querying the precise reason why the target information has changed through a third network device. As an example, the second network device may carry the second change reason and the first indication message in the same message and send it to the first network device.

[0112] In one example, considering that changes in target information may cause certain network problems, in order to repair the network problems as soon as possible, the aforementioned first query message may include second indication information, wherein the second indication information instructs the network device that causes the change in the target information to perform a fault self-healing operation to repair the network fault caused by the change in the target information.

[0113] In one example, if the first query message includes second indication information, the second network device may also send third indication information to the first network device, and the third indication information may be used to indicate whether the network device that caused the target information to change has performed a fault self-healing operation, so that the first network device can determine whether the network device that caused the target information to change has performed a fault self-healing operation based on the third indication information, so that the first network device can perform the next step of operation. For example, in the case where the network device that caused the target information to change has performed a fault self-healing operation, it is further determined whether the network fault caused by the change of the target information has been repaired. For another example, in the case where the network device that caused the target information to change has not performed a fault self-healing operation, a corresponding fault repair operation is performed. In one example, the second network device may carry the second change reason and the third indication information in the same message and send it to the first network device.

[0114] In one example, if the first query message is a first UDP message, the second network device sending the second change reason to the first network device may be implemented by sending a second UDP message carrying the second change reason to the first network device.

[0115] For the first UDP message and the second UDP message, please refer to Figure 3a and Figure 3b To understand, Figure 3a A schematic diagram of the structure of a first UDP message provided in an embodiment of the present application. Figure 3b A schematic diagram of the structure of a second UDP message provided in an embodiment of the present application.

[0116] like Figure 3a As shown, the first UDP message includes a type field, a length field, a flags field, an A1 indicator bit, and at least one key information field, wherein the value of the type field is 1, indicating that the first UDP message is a query message in the DMP protocol, the A1 indicator bit is used to carry the aforementioned second indication information, and the key information field can be used to carry target information.

[0117] like Figure 3b As shown, the second UDP message includes a type field, a length field, a flags field, an A2 indicator bit, at least one key information field, and a change reason field corresponding to each key information field, wherein the value of the type field is 2, indicating that the second UDP message is a response message in the DMP protocol, the A2 indicator bit can be used to indicate whether to perform a fault self-healing operation, the key information field can be used to carry target information, and the change reason field corresponding to the key information field can be used to carry the change reason of the target information.

[0118] Figure 3a and Figure 3b This is only shown for the purpose of understanding the present solution and does not constitute a limitation on the embodiments of the present application. The first UDP message and the second UDP message may also include other fields, which are not described in detail here.

[0119] In another example, if the first query message is a first ICMP message, the second network device sending the second change reason to the first network device may be implemented by sending a second ICMP message carrying the second change reason to the first network device.

[0120] For the first ICMP message and the second ICMP message, please refer to Figure 3c and Figure 3d To understand, Figure 3c A schematic diagram of the structure of a first ICMP message provided in an embodiment of the present application. Figure 3d A schematic diagram of the structure of a second ICMP message provided in an embodiment of the present application.

[0121] like Figure 3c As shown, the first ICMP message includes a type field, a code field, a checksum field, a flags field, an A1 indication bit, and at least one key information field, wherein the type field indicates that the first ICMP message is a query message in the DMP protocol, the A1 indication bit is used to carry the aforementioned second indication information, and the key information field can be used to carry target information.

[0122] like Figure 3dAs shown, the second ICMP message includes a type field, a code field, a checksum field, a flags field, an A2 indicator bit, at least one key information field, and a change reason field corresponding to each key information field, wherein the type field indicates that the second ICMP message is a response message in the DMP protocol, the A2 indicator bit can be used to indicate whether to perform a fault self-healing operation, the key information field can be used to carry target information, and the change reason field corresponding to the key information field can be used to carry the change reason of the target information.

[0123] Figure 3c and Figure 3d This is only shown for the purpose of understanding the present solution and does not constitute a limitation on the embodiments of the present application. The first ICMP message and the second ICMP message may also include other fields, which are not described in detail here.

[0124] From the above description, it can be known that, using the solution of the embodiment of the present application, after the first network device determines that the change of the target information is related to the second network device based on the first change reason stored locally, it can further query the second network device for the change reason of the target information, thereby tracing the change reason of the target information. Therefore, using the solution of the embodiment of the present application, the change reason of the target information can be accurately located.

[0125] Next, the information processing method executed by the second network device is introduced. Figure 4 , which is a flow chart of another information processing method provided in an embodiment of the present application. Figure 4 The information processing method shown can be applied to a second network device belonging to the target network.

[0126] In one example, the target network may include multiple network domains, and the second network device may be a device in one of the network domains included in the target network, or the second network device may be a cross-domain device in two of the multiple network domains included in the target network. Figure 1a In the scenario shown, the second network device may be RT1 or RT3; Figure 1b In the scenario shown, the first network device may be RT10 or RT6; Figure 1c In the scenario shown, the first network device may be RT1; for example, in Figure 1d In the illustrated scenario, the first network device may be RTA, RTF, RTG, RTH, or RHI.

[0127] Figure 4 The method shown may include the following S201-S203.

[0128] S201: Receive a first query message sent by a first network device, where the first query message is used to query a change reason of target information, where the target information is a message stored by the second network device and needs to be synchronized in the target network.

[0129] In the embodiment of the present application, the target information may be a message stored by the second network device and needs to be synchronized in the target network. The target network in the embodiment of the present application may be, for example, a network including multiple network domains. For network domains, reference may be made to the relevant description above, which will not be repeated here. For target information, reference may be made to the relevant description above, which will not be repeated here.

[0130] In the embodiment of the present application, the first network device may be a controller, or a network device storing the target information. Figure 1a Taking the scenario shown as an example, when the second network device is RT1, the first network device may be a controller; when the second network device is RT3, the first network device may be a controller or RT1.

[0131] The embodiment of the present application does not specifically limit the first query message, and the first query message may be a first ICMP message or a first UDP message, and the embodiment of the present application does not specifically limit it. In an example, when the first query message is a first UDP message, the first query message may include a UDP header and UDP data (data), and the first query message may be carried in the UDP data in the UDP message.

[0132] S202: Based on the first query message, obtain a first change reason of the target information, wherein the first change reason is the change reason of the target information obtained from a third network device after the second network device obtains a second change reason of the target information stored locally, and the second change reason indicates that the change of the target information is related to the third network device.

[0133] S203: Send the first change reason to the first network device.

[0134] After receiving the first query information, the second network device may obtain the first change reason of the target information based on the first query information, and further send the first change reason to the first network device.

[0135] In an embodiment of the present application, the first change reason may be obtained from a third network device after the second network device obtains the second change reason of the target information stored locally. In one example, the first network device, the second network device, and the third network device all belong to the target network. Specifically, the target network includes a first network domain and a second network domain, the first network device belongs to the first network domain, the third network device belongs to the second network domain, and the second network device is a cross-domain device of the first network domain and the second network domain.

[0136] Next, a specific implementation method for the second network device to obtain the first change reason is introduced.

[0137] In an example, the first change reason may be actively sent by the third network device to the second network device after determining that the target information has changed.

[0138] In yet another example, the second network device may obtain the first change reason from the third network device through the following steps A1-A3.

[0139] A1: Acquire a second change reason of the target information locally stored in the second network device, where the second change reason indicates that a change of the target information is related to the third network device.

[0140] In one example, since the target information is information that needs to be synchronized in the target network, when the target information changes, the changed target information will also be synchronized in the target network. In other words, when the target information changes, the second network device can perceive the change in the target information. In one example, if the second network device obtains the target information from the third network device during the synchronization phase of the target information, then when the target information changes, the third network device can send a notification message of the change in the target information to the second network device. For example, Figure 1a In the scenario shown, when RT5 deletes the static route 10.1.1.0 / 24, it sends a notification message to RT3 to notify RT3 that it has deleted the route 10.1.1.0 / 24. Accordingly, RT3 will also delete the route 10.1.1.0 / 24 and send a notification message to RT1 to notify RT1 that it has deleted the route 10.1.1.0 / 24. Further, RT1 will also delete the route 10.1.1.0 / 24, so that the route 10.1.1.0 / 24 remains synchronized within AS 100. In one example, when the second network device senses that the target information has changed, it locally records the second change reason of the target information, for example, Figure 1aIn the scenario shown, if the second network device is RT1, the second change reason may be: RT3 deletes the route 10.1.1.0 / 24; if the second network device is RT3, the second change reason may be: RT5 deletes the route 10.1.1.0 / 24.

[0141] In one example, since the second network device senses the change of the target information through the third network device, the second change reason may indicate that the change of the target information is related to the third network device. Figure 1a In the scenario shown, if the second network device is RT1, the third network device may be RT3, and the second change reason may be: RT3 deleted the route 10.1.1.0 / 24; if the second network device is RT3, the third network device may be RT5, and the second change reason may be that RT5 deleted the route 10.1.1.0 / 24.

[0142] A2: According to the second change reason, a second query message is sent to the third network device, where the second query message is used to query the change reason of the target information.

[0143] In one example, after the second network device obtains the second change reason stored locally and determines that the change of the target information is related to the third network device based on the second change reason, it can further send a second query message to the third network device to query the third network device for the change reason of the target information, thereby tracing the change reason of the target information.

[0144] Similar to the first query message, the second query message may also be a UDP message or an ICMP message. In a specific example, if the first query message is a UDP message, the second query message is also a UDP message, and if the first query message is an ICMP message, the second query message is also an ICMP message.

[0145] The embodiment of the present application does not specifically limit the timing when the second network device sends the second query message to the third network device.

[0146] In one example, the second network device may send the second query message to the third network device in response to receiving the first query message. In a specific example, after receiving the first query message, the second network device may obtain the second change reason stored locally, and determine that the change of the target information is related to the third network device based on the second change reason, thereby further sending the second query message to the third network device.

[0147] In another example, the second network device may send the second query message to the third network device in response to sensing that the target information has changed. In a specific example, when the second network device receives a notification message indicating that the target information has changed from the third network device, the second query message may be sent to the third network device. In this case, after the second network device determines the first change reason, the first change reason may be saved locally.

[0148] A3: receiving the first change reason returned by the third network device in response to the second query message, or, if no response message returned by the third network device in response to the second query message is received, determining the second change reason as the first change reason.

[0149] In one example, if the second network device does not receive a response message returned by the third network device to the second query message, for example, the third network device fails to correctly parse the second query message and thus fails to send a response message to the first network device to the second query message, then the second network device may determine the second change reason stored in itself as the first change reason. In one example, the third network device fails to correctly parse the second query message, for example, the second network device supports the Distributed Maintenance Protocol (DMP) and sends the second query message to the third network device based on the DMP, while the third network device does not support DMP.

[0150] In one example, when the third network device does not return a response message to the second query message to the second network device, considering that the second change reason indicates that the change of the target information is related to the third network device, the second change reason cannot indicate the source of the change of the target information. Therefore, the second change reason is determined as the first change reason, and the first change reason obtained by the second network device is actually an inaccurate result. In this case, the second network device can also send a first indication message to the first network device, and the first indication message indicates that the first change reason is an inaccurate query result. In this way, the first network device can perform further measures based on the first indication message, for example, query the precise reason for the change of the target information through the third network device. As an example, the second network device can carry the first change reason and the first indication message in the same message and send it to the first network device.

[0151] In another example, if the third network device can correctly parse the second query message, for example, the third network device and the second network device both enable the Distributed Maintenance Protocol (DMP), the third network device can obtain the first change reason of the target information according to the second query message, and send the first change reason to the first network device.

[0152] In one example, the third network device may obtain a third change reason stored locally. If the third change reason indicates that the change of the target information is related to the third network device itself, the third network device may determine the third change reason as the first change reason and send the first change reason to the second network device. In this case, the third network device is the source of the change in the target information. Accordingly, the third change reason may be recorded locally on the third network device after the third network device performs the operation of changing the target information. For example, Figure 1a In the scenario shown, the target information is the static route 10.1.1.0 / 24, the second network device is RT3, and the third network device can be RT5. At this time, after RT5 deletes the static route 10.1.1.0 / 24, it can record its behavior of deleting the static route 10.1.1.0 / 24, that is, RT5 can record the third change reason of the target information: RT5 deleted the static route 10.1.1.0 / 24. Correspondingly, after RT5 receives the second query message from RT3, it can obtain the third change reason and send the third change reason to the second network device. In this case, RT3 can determine the reason for the change of the target information based on the first change reason: RT5 deleted the static route 10.1.1.0 / 24.

[0153] In another example, the third network device may send a third query message to the fourth network device based on the second query message, and further obtain the first change reason based on the response message returned by the fourth network device to the third query message, and the third query message is used to query the change reason of the target information. In a specific example, the third network device may perform the following steps B1-B3 to obtain the first change reason.

[0154] B1: Acquire a third change reason of the target information locally stored by the third network device, where the third change reason indicates that the change of the target information is related to a fourth network device.

[0155] B2: According to the third change reason, a third query message is sent to the fourth network device, where the third query message is used to query the change reason of the target information.

[0156] B3: receiving the first change reason returned by the fourth network device in response to the third query message, or, if no response message returned by the fourth network device in response to the third query message is received, determining the third change reason as the first change reason.

[0157] The implementation principle of steps B1-B3 is the same as that of steps A1-A3. Therefore, for the specific implementation of steps B1-B3, please refer to the description of steps A1-A3, and no repeated explanation will be given here.

[0158] In one example, considering that changes in target information may cause certain network problems, in order to repair the network problems as soon as possible, the aforementioned first query message and the second query message may include second indication information, and the second indication information instructs the network device that causes the change in the target information to perform a fault self-healing operation to repair the network fault caused by the change in the target information.

[0159] As an example, if the third network device is the network device that causes the target information to change, when the second query message is forwarded to the third network device, the third network device can perform a fault self-healing operation based on the second indication information, thereby repairing the network fault caused by the change of the target information. For example, the third network device can cancel the operation that it has performed to cause the target information to change, thereby repairing the network fault caused by the change of the target information.

[0160] As another example, if the fourth network device is a network device that causes the target information to change, when the second query message is forwarded to the third network device, the third network device may send a third query message to the third network device based on the second query message, and the third query message may also include the second indication information. Accordingly, the fourth network device may perform a fault self-healing operation based on the second indication information, thereby repairing the network fault caused by the change of the target information.

[0161] In one example, if the first query message and the second query message include the second indication information, the second network device may further send the third indication information to the first network device, and the third indication information may be used to indicate whether the network device that caused the target information to change has performed a fault self-healing operation, so that the first network device can determine whether the network device that caused the target information to change has performed a fault self-healing operation based on the third indication information, so that the first network device can perform the next step of operation. For example, in the case where the network device that caused the target information to change has performed a fault self-healing operation, it is further determined whether the network fault caused by the change of the target information has been repaired. For another example, in the case where the network device that caused the target information to change has not performed a fault self-healing operation, a corresponding fault repair operation is performed. In one example, the second network device may carry the first change reason and the third indication information in the same message and send it to the first network device.

[0162] In one example, if the first query message is a first UDP message, the second network device sends the first change reason to the first network device. In a specific implementation, the second network device may send a second UDP message carrying the first change reason to the first network device. For the first UDP message and the second UDP message, please refer to the relevant description above, and no repeated description is given here.

[0163] In another example, if the first query message is a first ICMP message, the second network device may send the first change reason to the first network device by sending a second ICMP message carrying the first change reason to the first network device. For the first ICMP message and the second ICMP message, please refer to the relevant description above, and no repeated description will be given here.

[0164] It can be known from the above description that, by using the solution of the embodiment of the present application, after the second network device obtains the second change reason saved locally, it can obtain the change reason of the target information from the third network device and send the first change reason to the first network device. Since the first change reason is the change reason of the target information obtained from the third network device after the first network device determines that the change of the target information is related to the third network device based on the second change reason, the first change reason is the change reason obtained by the second network device by tracing the change reason of the target information. Therefore, by using the solution of the embodiment of the present application, it is possible to trace the change reason of the target information, so that the change reason of the target information can be accurately located.

[0165] In one example, when the second network device is the source device that causes the target information to be changed, the second network device may perform the following steps C1-C3, so that the first network device can trace the cause of the change of the target information.

[0166] C1: receiving a first query message sent by a first network device, where the first query message is used to query a change reason of target information, where the target information is information stored by the second network device and needs to be synchronized in the target network, and the second network device belongs to the target network.

[0167] In a possible implementation, the first query message is generated after the first network device obtains a second change reason stored locally, wherein the second change reason indicates that the change of the target information is related to the second network device.

[0168] Regarding step C1, please refer to the relevant description of S101 above, and no repeated description is given here.

[0169] C2: Based on the first query message, obtain a first change reason of the target information, where the first change reason is recorded by the second network device after performing an operation of changing the target information.

[0170] After receiving the first query message, the second network device can obtain the first change reason stored locally, which can be recorded by the second network device after performing the operation of changing the target information. Therefore, the first change reason can be the source that causes the target information to be changed.

[0171] The embodiment of the present application does not specifically limit the operation of changing the target information, and the operation may be any operation that can change the target information. Figure 1a In the scenario shown, the operation to change the target information can be to delete the static route 10.1.1.0 / 24; Figure 1b In the scenario shown, the operation of changing the target information may be to delete the routing tag tag2; Figure 1c In the scenario shown, the operation to change the target information can be to configure the routing address 1.1.1.1 / 32; Figure 1d In the scenario shown, the operation of changing the target information may be deleting the LSP information.

[0172] C3: Send the first change reason to the first network device.

[0173] After the second network device determines the first change reason, it can send the first change reason to the first network device. For the specific implementation of the second network device sending the first change reason to the first network device, please refer to Figure 2 The description of the information processing method shown will not be repeated here.

[0174] Regarding steps C1-C3, now combined Figure 1a For example, the first network device is RT3, the second network device is RT5, and the target information is static route 10.1.1.0 / 24. After RT5 deletes static route 10.1.1.0 / 24, it can locally record the first change reason of static route 10.1.1.0 / 24: RT5 deleted the static route. RT3 can send a first query message to RT5. After RT5 receives the first query message, it can obtain the first change reason stored locally: RT5 deleted the static route, and send the first change reason: RT5 deleted the static route to RT3.

[0175] From the above description of C1-C3, it can be seen that when the target information is changed after the second network device executes an operation to change the target information, the second network device can send the locally recorded first change reason to the first network device after receiving the first query message, so that the first network device can accurately locate the reason for the change of the target information.

[0176] The above is an introduction to the information processing method provided in the embodiment of the present application. Figure 1a to Figure 1d The application scenario shown introduces the solution provided by the embodiment of the present application.

[0177] exist Figure 1a In the scenario shown:

[0178] When the static route 10.1.1.0 / 24 is deleted due to misconfiguration in RT5, RT5 locally records the information of the route, where the information of the route includes: status and change reason, as shown in Table 1 below:

[0179] Table 1

[0180] Routing table entries state Reason for change 10.1.1.0 / 24 Unreachable RT5 deleted the static route

[0181] RT3 recognizes the change in route 10.1.1.0 / 24 through ISIS 1. RT3 also updates the local routing table and records the routing information locally, as shown in Table 2 below.

[0182] Table 2

[0183] Routing table entries state Reason for change 10.1.1.0 / 24 Unreachable RT5 removes the routing prefix

[0184] RT3 imports the route of ISIS 1 into ISIS 2. Therefore, RT1 recognizes the change of route 10.1.1.0 / 24 through ISIS 2, and RT1 also updates the local routing table and records the routing information locally, as shown in Table 3 below:

[0185] Table 3

[0186] Routing table entries state Reason for change 10.1.1.0 / 24 Unreachable RT3 removes the routing prefix

[0187] The “routing prefix” in Table 2 and Table 3 above may be an “IP prefix”.

[0188] In an example, when a user finds that the network segment route 10.1.1.0 / 24 on the RT1 device is unreachable, a corresponding operation can be triggered on RT1 to locate the reason why the network segment route 10.1.1.0 / 24 is unreachable.

[0189] RT1 can obtain the locally saved change reason "RT3 deleted the routing prefix", generate a query message 1 according to the reason, and send the query message 1 to RT3;

[0190] RT3 may obtain the locally saved change reason "RT5 deleted the routing prefix" according to the query message 1, generate a query message 2 according to the reason, and send the query message 2 to RT5;

[0191] RT5 can obtain the locally saved change reason "RT5 deleted the static route" according to query message 2. Therefore, RT5 can determine that the change in the network segment route is related to itself, so RT5 sends the change reason "RT5 deleted the static route" to RT3, and RT3 further sends the change reason "RT5 deleted the static route" to RT1. At this point, RT1 has achieved the tracing of the change reason.

[0192] It should be noted that although in the above description, RT3 generates query message 2 after receiving query message 1, RT3 can also send a query message to RT5 when it senses that the network segment route has changed. Similarly, RT1 can also send a query message to RT3 when it senses that the network segment route has changed.

[0193] In yet another example, the controller may send a query message 1 to RT1 and receive a change reason returned by RT1.

[0194] If RT1 obtains the locally saved change reason "RT3 deleted the routing prefix", and sends the reason "RT3 deleted the routing prefix" to the controller.

[0195] The controller may further send a query message 2 to RT3 based on “RT3 deleted the routing prefix”. RT3 may obtain the locally saved change reason “RT5 deleted the routing prefix” and send the reason “RT5 deleted the routing prefix” to the controller.

[0196] The controller can further send a query message 3 to RT5 based on "RT5 deleted the route prefix". RT5 can obtain the locally saved change reason "RT5 deleted the static route" and send the reason "RT5 deleted the static route" to the controller. At this point, the controller has achieved the traceability of the change reason.

[0197] exist Figure 1b In the scenario shown:

[0198] When RT3 deletes tag information tag2 of route 1.1.1.1 / 32, it can record the route information locally, as shown in Table 4 below:

[0199] Table 4

[0200] Routing table entries state Reason for change 1.1.1.1 / 32 Revise RT3 modified the route introduction strategy

[0201] Accordingly, when RT6 detects that the route 1.1.1.1 / 32 has changed, it can record the route information locally, as shown in Table 5 below:

[0202] Table 5

[0203]

[0204] Accordingly, when RT10 detects that the route 1.1.1.1 / 32 has changed, it can record the route information locally, as shown in Table 6 below:

[0205] Table 6

[0206] Routing table entries state Reason for change 1.1.1.1 / 32 Revise RT6 adds routing prefix

[0207] The “routing prefix” in Table 5 and Table 6 above may be an “IP prefix”.

[0208] Similarly, when the user finds route 1.1.1.1 / 32 on the RT10 device, the user can trigger corresponding operations on RT10 to locate the reason why route 1.1.1.1 / 32 is changed.

[0209] RT10 may obtain the locally saved change reason "RT6 added a routing prefix", generate a query message 1 according to the reason, and send the query message 1 to RT6;

[0210] RT6 can obtain the locally saved change reason "RT3 updated the routing prefix (deleted the tag information tag2)" according to the query message 1, generate the query message 2 according to the reason, and send the query message 2 to RT3;

[0211] RT3 can obtain the locally saved change reason "RT3 modified the route introduction policy" according to query message 2. Therefore, RT3 can determine that the route change is related to itself, so RT3 sends the change reason "RT3 modified the route introduction policy" to RT6, and RT6 further sends the change reason "RT3 modified the route introduction policy" to RT10. At this point, RT10 has achieved the tracing of the change reason.

[0212] It should be noted that although in the above description, RT6 generates query message 2 after receiving query message 1, RT6 can also send a query message to RT3 when it senses that the route has changed. Similarly, RT10 can also send a query message to RT6 when it senses that the route has changed.

[0213] In yet another example, the controller may send a query message 1 to RT10 , and receive a change reason returned by RT1 .

[0214] If RT10 obtains the locally saved change reason "RT6 added a routing prefix", and sends the reason "RT6 added a routing prefix" to the controller.

[0215] The controller can further send query message 2 to RT6 based on "RT6 added the routing prefix". RT6 can obtain the locally saved change reason "RT3 updated the routing prefix (deleted tag information tag2)" and send the reason "RT3 updated the routing prefix (deleted tag information tag2)" to the controller.

[0216] The controller can further send query message 3 to RT3 based on "RT3 updated the route prefix (deleted tag information tag2)". RT3 can obtain the locally saved change reason "RT3 modified the route introduction policy" and send the reason "RT3 modified the route introduction policy" to the controller. At this point, the controller has achieved the traceability of the change reason.

[0217] exist Figure 1c In the scenario shown:

[0218] When RT6 is configured with the routing address 1.1.1.1 / 32, the routing information can be recorded locally, as shown in Table 7 below:

[0219] Table 7

[0220] Routing table entries state Reason for change 1.1.1.1 / 32 Revise RT6 newly configured routing address

[0221] Accordingly, when RT1 detects that the route 1.1.1.1 / 32 has changed, it can record the route information locally, as shown in Table 8 below:

[0222] Table 8

[0223] Routing table entries state Reason for change 1.1.1.1 / 32 Revise RT6 adds routing prefix

[0224] When the user traces route 1.1.1.1 / 32 on RT1, the user can trigger corresponding operations on RT1 to locate the reason why route 1.1.1.1 / 32 is changed.

[0225] RT1 can obtain the locally saved change reason "RT6 added a routing prefix", generate a query message 1 according to the reason, and send the query message 1 to RT6;

[0226] RT6 can obtain the locally saved change reason "RT6 newly configured the routing address" according to query message 1. Therefore, RT6 can determine that the route change is related to itself, so RT6 sends the change reason "RT6 newly configured the routing address" to RT1, so that RT1 can trace the change reason.

[0227] In an example, RT1 may also send a query message to RT6 when sensing that a route change occurs.

[0228] In yet another example, the controller may send a query message 1 to RT1 and receive a change reason returned by RT1.

[0229] If RT1 obtains the locally saved change reason "RT6 added a routing prefix", and sends the reason "RT6 added a routing prefix" to the controller.

[0230] The controller can further send a query message 2 to RT6 based on "RT6 added a routing prefix". RT6 can obtain the locally saved change reason "RT6 newly configured a routing address" and send the reason "RT6 newly configured a routing address" to the controller. At this point, the controller has achieved the traceability of the change reason.

[0231] exist Figure 1d In the scenario shown:

[0232] After RTJ ages the LSP information, it can record the following information in Table 9 locally:

[0233] Table 9

[0234] LSP entry state Reason for change **** Clear LSP information has reached the maximum usage period

[0235] Accordingly, when RTI senses that the LSP information has changed, it can locally record the information shown in Table 10 below:

[0236] Table 10

[0237] LSP entry state Reason for change **** Clear RTJ clears LSP information

[0238] Accordingly, when RTH senses that the LSP information has changed, it can locally record the information shown in Table 11 below:

[0239] Table 11

[0240] LSP entry state Reason for change **** Clear RTI clears LSP information

[0241] Accordingly, when the RTG detects that the LSP information has changed, it can locally record the information shown in Table 12 below:

[0242] Table 12

[0243] LSP entry state Reason for change **** Clear RTH clears LSP information

[0244] Accordingly, when RTF detects that the LSP information has changed, it can locally record the information shown in Table 13 below:

[0245] Table 13

[0246] LSP entry state Reason for change **** Clear RTG clears LSP information

[0247] Accordingly, when RTA detects that the LSP information has changed, it can locally record the information shown in Table 14 below:

[0248] Table 14

[0249] LSP entry state Reason for change **** Clear RTF clears LSP information

[0250] When the user tracks the LSP entry "****" on the RTA device, the user can trigger corresponding operations on RTA to locate the reason why the LSP entry "****" is changed.

[0251] RTA may obtain the locally saved change reason "RTF cleared the LSP information", generate a query message 1 according to the reason, and send the query message 1 to RTF;

[0252] After receiving the query message 1, the RTF may obtain the locally saved change reason "RTG cleared the LSP information", and generate a query message 2 according to the change reason "RTG cleared the LSP information", and send the query message 2 to the RTG;

[0253] When RTG receives the query message 2, it can obtain the locally saved change reason "RTH cleared the LSP information", and generate a query message 3 according to the change reason "RTH cleared the LSP information", and send the query message 2 to RTH;

[0254] After receiving the query message 3, the RTH may obtain the locally saved change reason "RTI cleared the LSP information", and generate a query message 4 according to the change reason "RTI cleared the LSP information", and send the query message 4 to the RTI;

[0255] Upon receiving the query message 4, the RTI may obtain the locally saved change reason "RTJ cleared the LSP information", and generate a query message 5 according to the change reason "RTJ cleared the LSP information", and send the query message 5 to the RTJ;

[0256] RTJ receives query message 5 and can obtain the locally saved change reason "LSP information reaches the maximum usage period" to determine that the change of the LSP information is related to itself. Therefore, RTJ sends the change reason "LSP information reaches the maximum usage period" to RTI, RTI sends the change reason "LSP information reaches the maximum usage period" to RTH, RTH sends the change reason "LSP information reaches the maximum usage period" to RTG, RTG sends the change reason "LSP information reaches the maximum usage period" to RTF, RTF sends the change reason "LSP information reaches the maximum usage period" to RTA, so that RTA can trace the reason for the change of the LSP information.

[0257] It should be noted that RTI can also send a query message to RTJ when it senses that the LSP information has changed; RTH can also send a query message to RTI when it senses that the LSP information has changed; RTG can also send a query message to RTH when it senses that the LSP information has changed; RTF can also send a query message to RTG when it senses that the LSP information has changed; RTA can also send a query message to RTF when it senses that the LSP information has changed.

[0258] In yet another example, the controller may send a query message 1 to the RTA, and receive a change reason returned by the RTA.

[0259] If RTA obtains the locally saved change reason "RTF clears the LSP information", it sends the reason "RTF clears the LSP information" to the controller.

[0260] The controller may further send a query message 2 to RTF based on “RTF cleared the LSP information”. RTF may obtain the locally saved change reason “RTG cleared the LSP information” and send the reason “RTG cleared the LSP information” to the controller.

[0261] The controller may further send a query message 3 to RTG based on “RTG cleared the LSP information”. RTG may obtain the locally stored change reason “RTH cleared the LSP information” and send the reason “RTH cleared the LSP information” to the controller.

[0262] The controller may further send a query message 4 to RTH based on “RTH cleared the LSP information”. RTH may obtain the locally stored change reason “RTI cleared the LSP information” and send the reason “RTI cleared the LSP information” to the controller.

[0263] The controller may further send a query message 5 to the RTI based on the “RTI cleared the LSP information”. The RTI may obtain the locally stored change reason “RTJ cleared the LSP information” and send the reason “RTJ cleared the LSP information” to the controller.

[0264] The controller can further send a query message 6 to RTJ based on "RTJ cleared the LSP information". RTJ can obtain the locally saved change reason "LSP information has reached the maximum usage period" and send the reason "LSP information has reached the maximum usage period" to the controller. At this point, the controller has achieved the traceability of the reason for the change of LSP information.

[0265] Based on the information processing method provided in the above embodiment, the embodiment of the present application also provides a corresponding device. Next, the information processing device provided in the embodiment of the present application is introduced in conjunction with the accompanying drawings.

[0266] See also Figure 5 , which is a structural schematic diagram of an information processing device provided in an embodiment of the present application. Figure 5 The information processing apparatus 500 shown can be applied to a first network device. The information processing apparatus 500 is used to implement the information processing method provided in the above method embodiment and executed by the first network device.

[0267] In one example, Figure 5 The information processing device 500 shown may include a processing unit 501 and a sending unit 502 .

[0268] Processing unit 501 is used to obtain a first change reason of locally stored target information, and generate a first query message according to the first change reason, wherein the first query message is used to query the change reason of the target information, and the first change reason indicates that the change of the target information is related to a second network device, and the target information is information stored by the second network device and needs to be kept synchronized in the target network, and the second network device belongs to the target network.

[0269] The sending unit 502 is configured to send the first query message to the second network device.

[0270] In one possible implementation, the device also includes: a receiving unit, used to receive a second change reason sent by the second network device based on the first query message, the second change reason being the change reason of the target information obtained from the third network device after the second network device obtains the third change reason of the target information stored locally, and the third change reason indicates that the change of the target information is related to the third network device.

[0271] In a possible implementation manner, the receiving unit is further used to: receive first indication information sent by the second network device, where the first indication information indicates that the second change reason is an inaccurate query result.

[0272] In a possible implementation, the first network device stores the target information, and generating the first query message according to the first change reason includes: in response to sensing that the target information has changed, generating the first query message according to the first change reason.

[0273] In a possible implementation, the first network device stores the target information, and the receiving unit is further used to: receive a second query message sent by a fourth network device, where the second query message is used to query the reason for the change of the target information; and obtaining the first change reason of the locally stored target information includes: obtaining the first change reason stored locally according to the second query message.

[0274] In a possible implementation, the first network device is a controller, and the sending unit 502 is further used to: send a fourth query message to the fifth network device, where the fourth query message is used to query the reason for the change of the target information; the receiving unit included in the first network device is further used to receive the first change reason sent by the fifth network device; the processing unit 501 is further used to store the first change reason sent by the fifth network device.

[0275] In a possible implementation, the first query message includes second indication information, and the second indication information instructs the network device that causes the target information to change to perform a fault self-healing operation to repair the network fault caused by the change of the target information.

[0276] In a possible implementation, the first query message is a first User Datagram Protocol UDP message, and the receiving unit is used to: receive a second UDP message returned by the second network device in response to the first query message, wherein the second UDP message includes the second change reason.

[0277] In a possible implementation, the first query message is a first Internet Control Message Protocol (ICMP) message, and the receiving unit is used to: receive a second ICMP message returned by the second network device in response to the first query message, wherein the second ICMP message includes the second change reason.

[0278] In a possible implementation manner, the target information includes: routing information, or link state protocol LSP information.

[0279] In a possible implementation, the target network includes a first network domain and a second network domain, the first network device belongs to the first network domain, the third network device belongs to the second network domain, and the second network device is a cross-domain device of the first network domain and the second network domain.

[0280] Regarding the specific implementation of each unit of the information processing device 500, since it is the same concept as the information processing method performed by the first network device provided in the above method embodiment, therefore, regarding the specific implementation of each unit of the information processing device 500, reference can be made to the relevant description part of the above method embodiment, for example, reference can be made to the above description of Figure 2 The description of the information processing method performed by the first network device is not repeated here.

[0281] See also Figure 6 , which is a structural schematic diagram of another information processing device provided in an embodiment of the present application. Figure 6 The information processing apparatus 600 shown can be applied to a second network device.

[0282] In one example, Figure 6 The information processing device 600 shown may include a receiving unit 601 , a processing unit 602 and a sending unit 603 .

[0283] In a specific example, the information processing device 600 is used to implement the above method embodiment provided by the second network device. Figure 4The information processing method shown. For this case:

[0284] The receiving unit 601 is used to receive a first query message sent by a first network device, where the first query message is used to query the reason for the change of target information. The target information is information stored by the second network device and needs to be synchronized in the target network. The second network device belongs to the target network.

[0285] The processing unit 602 is used to obtain a first change reason for the target information based on the first query message, wherein the first change reason is the change reason for the target information obtained from a third network device after the second network device obtains a second change reason for the target information stored locally, and the second change reason indicates that the change of the target information is related to the third network device.

[0286] The sending unit 603 is configured to send the first change reason to the first network device.

[0287] In one possible implementation, obtaining the first change reason of the target information includes: sending a second query message to the third network device according to the second change reason, the second query message being used to query the change reason of the target information; receiving the first change reason returned by the third network device in response to the second query message, or, if a response message returned by the third network device in response to the second query message is not received, determining the second change reason as the first change reason.

[0288] In a possible implementation, the first change reason sent by the third network device is obtained after the third network device sends a third query message to the fourth network device based on the second query message, and the response message returned by the fourth network device to the third query message is obtained, and the third query message is used to query the change reason of the target information.

[0289] In a possible implementation, the sending unit 603 is further used to: if a response message returned by the third network device to the second query message is not received, send first indication information to the first network device, wherein the first indication information indicates that the first change reason is an inaccurate query result.

[0290] In one possible implementation, the sending of the second query message to the third network device includes: sending the second query message to the third network device in response to sensing a change in the target information; or sending the second query message to the third network device in response to receiving the first query message.

[0291] In a possible implementation manner, the first network device includes: a controller, or a network device storing the target information.

[0292] In one possible implementation, the first query message and the second query message both include second indication information, and the second indication information instructs the network device that causes the target information to change to perform a fault self-healing operation to repair the network fault caused by the change of the target information.

[0293] In a possible implementation, the first query message is a first User Datagram Protocol UDP message, and the sending unit 603 is used to: send a second UDP message to the first network device, where the second UDP message includes the first change reason.

[0294] In a possible implementation, the first query message is a first Internet Control Message Protocol (ICMP) message, and the sending unit 603 is used to send a second ICMP message to the first network device, where the second ICMP message includes the first change reason.

[0295] In a possible implementation manner, the target information includes: routing information, or link state protocol LSP information.

[0296] In a possible implementation, the target network includes a first network domain and a second network domain, the first network device belongs to the first network domain, the third network device belongs to the second network domain, and the second network device is a cross-domain device of the first network domain and the second network domain.

[0297] In another specific example, the information processing device 600 is used to implement steps C1-C3 performed by the second network device provided in the above method embodiment.

[0298] The receiving unit 601 is used to receive a first query message sent by a first network device, where the first query message is used to query the reason for the change of target information. The target information is information stored by the second network device and needs to be synchronized in the target network. The second network device belongs to the target network.

[0299] The processing unit 602 is used to obtain a first change reason of the target information based on the first query information after receiving the first query information, where the first change reason is recorded by the second network device after performing an operation of changing the target information.

[0300] The sending unit 603 is configured to send the first change reason to the first network device.

[0301] Regarding the specific implementation of each unit of the information processing device 600, since it is the same concept as the information processing method performed by the second network device provided in the above method embodiment, therefore, regarding the specific implementation of each unit of the information processing device 600, reference can be made to the relevant description part of the above method embodiment, for example, reference can be made to the above description of Figure 4 For the description of the information processing method executed by the second network device shown, for example, reference can be made to the description of steps C1-C3 above, and no repeated description is made here.

[0302] It should be noted that the hardware structure of the information processing device mentioned above can be as follows: Figure 7 The structure shown, Figure 7 A schematic diagram of the structure of a device provided in an embodiment of the present application.

[0303] See also Figure 7 As shown, the device 700 includes: a processor 710, a communication interface 720 and a memory 730. The number of the processor 710 in the device 700 can be one or more. Figure 7 In the embodiment of the present application, the processor 710, the communication interface 720 and the memory 730 may be connected via a bus system or other means, wherein: Figure 7 The connection via bus system 740 is taken as an example.

[0304] The processor 710 may be a central processing unit (CPU), a network processor (NP) or a combination of a CPU and a NP. The processor 710 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

[0305] The memory 730 may include a volatile memory (English: volatile memory), such as a random-access memory (RAM); the memory 730 may also include a non-volatile memory (English: non-volatile memory), such as a flash memory (English: flash memory), a hard disk drive (HDD) or a solid-state drive (SSD); the memory 730 may also include a combination of the above-mentioned types of memory. When the device 700 corresponds to the above information processing device 500, the memory 730 may, for example, store the first change reason. When the device 700 corresponds to the above information processing device 600, the memory 730 may, for example, store the second change reason or the first change reason.

[0306] Optionally, the memory 730 stores an operating system and a program, an executable module or a data structure, or a subset thereof, or an extended set thereof, wherein the program may include various operating instructions for implementing various operations. The operating system may include various system programs for implementing various basic services and processing hardware-based tasks. The processor 710 may read the program in the memory 730 to implement the information processing method provided in the embodiment of the present application.

[0307] The bus system 740 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus system 740 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0308] The embodiment of the present application also provides a computer-readable storage medium, including instructions or computer programs, which, when executed on a computer, enable the computer to execute the information processing method provided in the above embodiment.

[0309] The embodiments of the present application also provide a computer program product including instructions or a computer program, which, when executed on a computer, enables the computer to execute the information processing method provided in the above embodiments.

[0310] The present application also provides a communication system, which may include a first network device and a second network device that execute the information processing method provided by the above method embodiment. Figure 2 The first network device of the information processing method shown in the figure, and the method embodiment provided by performing the above method Figure 4 For example, the communication system may include a second network device that performs the information processing method provided in the above method embodiment. Figure 2 The first network device of the information processing method shown, and the second network device that executes C1-C3 provided in the above method embodiment.

[0311] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0312] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0313] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical business division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0314] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0315] In addition, each business unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software business units.

[0316] If the integrated unit is implemented in the form of a software business unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0317] Those skilled in the art will appreciate that in one or more of the above examples, the services described in the present invention may be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, the services may be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. Storage media may be any available media that can be accessed by a general-purpose or special-purpose computer.

[0318] The above specific implementation modes further describe the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation modes of the present invention.

[0319] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. An information processing method, characterized in that: Applied to a first network device, the method comprises: Acquire a first change reason of the locally stored target information, where the first change reason indicates that the change of the target information is related to the second network device, the target information is information stored by the second network device and needs to be synchronized in the target network, and the second network device belongs to the target network; generating a first query message according to the first change reason, where the first query message is used to query the change reason of the target information; The first query message is sent to the second network device.

2. The method according to claim 1, characterized in that The method further comprises: Receive a second change reason sent by the second network device based on the first query message, where the second change reason is the change reason of the target information obtained from the third network device after the second network device obtains the third change reason of the target information stored locally, and the third change reason indicates that the change of the target information is related to the third network device.

3. The method according to claim 2, characterized in that The method further comprises: First indication information sent by the second network device is received, where the first indication information indicates that the second change reason is an inaccurate query result.

4. The method according to any one of claims 1 to 3, characterized in that: The first network device stores the target information, and the generating a first query message according to the first change reason includes: In response to sensing that the target information has changed, the first query message is generated according to the first change reason.

5. The method according to any one of claims 1 to 3, characterized in that: The first network device stores the target information, and the method further includes: receiving a second query message sent by a fourth network device, where the second query message is used to query a change reason of the target information; The first change reason of obtaining the locally stored target information includes: According to the second query message, the first change reason saved locally is obtained.

6. The method according to claim 1, characterized in that The first network device is a controller, and the method further includes: Sending a fourth query message to the fifth network device, where the fourth query message is used to query a change reason of the target information; Receive and store the first change reason sent by the fifth network device.

7. The method according to any one of claims 1 to 6, characterized in that: The first query message includes second indication information, and the second indication information instructs the network device that causes the target information to change to perform a fault self-healing operation to repair the network fault caused by the change of the target information.

8. The method according to claim 2 or 3, characterized in that: The first query message is a first User Datagram Protocol (UDP) message, and the receiving of the second change reason sent by the second network device based on the first query message includes: Receive a second UDP message returned by the second network device in response to the first query message, where the second UDP message includes the second change reason.

9. The method according to claim 2 or 3, characterized in that: The first query message is a first Internet Control Message Protocol (ICMP) message, and the receiving of the second change reason sent by the second network device based on the first query message includes: A second ICMP message returned by the second network device in response to the first query message is received, where the second ICMP message includes the second change reason.

10. The method according to any one of claims 1 to 9, characterized in that: The target information includes: Routing information, or link state protocol LSP information.

11. The method according to claim 2, characterized in that The target network includes a first network domain and a second network domain, the first network device belongs to the first network domain, the third network device belongs to the second network domain, and the second network device is a cross-domain device of the first network domain and the second network domain.

12. An information processing method, characterized in that: Applied to the second network device, the method comprises: receiving a first query message sent by a first network device, where the first query message is used to query a change reason of target information, where the target information is information stored by the second network device and needs to be synchronized in a target network, and the second network device belongs to the target network; Acquire, based on the first query message, a first change reason of the target information, wherein the first change reason is the change reason of the target information acquired from a third network device after the second network device acquires a second change reason of the target information stored locally, and the second change reason indicates that the change of the target information is related to the third network device; The first change reason is sent to the first network device.

13. The method according to claim 12, characterized in that The first change reason for obtaining the target information includes: Sending a second query message to the third network device according to the second change reason, where the second query message is used to query the change reason of the target information; The first change reason is received from the third network device in response to the second query message, or, if a response message is not received from the third network device in response to the second query message, the second change reason is determined as the first change reason.

14. The method according to claim 13, characterized in that The first change reason sent by the third network device is obtained after the third network device sends a third query message to the fourth network device based on the second query message, and according to a response message returned by the fourth network device to the third query message, and the third query message is used to query the change reason of the target information.

15. The method according to claim 13, characterized in that The method further comprises: If a response message returned by the third network device to the second query message is not received, first indication information is sent to the first network device, where the first indication information indicates that the first change reason is an inaccurate query result.

16. The method according to any one of claims 13 to 15, characterized in that: The sending a second query message to the third network device includes: In response to sensing that the target information has changed, sending the second query message to the third network device; or, In response to receiving the first query message, the second query message is sent to the third network device.

17. The method according to any one of claims 12 to 16, characterized in that: The first network device comprises: A controller, or a network device storing the target information.

18. The method according to claim 13, characterized in that The first query message and the second query message both include second indication information, and the second indication information instructs the network device that causes the target information to change to perform a fault self-healing operation to repair the network fault caused by the change of the target information.

19. The method according to any one of claims 12 to 18, characterized in that: The first query message is a first User Datagram Protocol (UDP) message, and the sending the first change reason to the first network device includes: A second UDP message is sent to the first network device, where the second UDP message includes the first change reason.

20. The method according to any one of claims 12 to 18, characterized in that: The first query message is a first Internet Control Message Protocol (ICMP) message, and the sending the first change reason to the first network device includes: A second ICMP message is sent to the first network device, where the second ICMP message includes the first change reason.

21. The method according to any one of claims 12 to 20, characterized in that: The target information includes: Routing information, or link state protocol LSP information.

22. The method according to any one of claims 12 to 21, characterized in that: The target network includes a first network domain and a second network domain, the first network device belongs to the first network domain, the third network device belongs to the second network domain, and the second network device is a cross-domain device of the first network domain and the second network domain.

23. An information processing device, characterized in that: Applied to a first network device, the apparatus comprises: a processing unit, configured to obtain a first change reason of the locally stored target information, and generate a first query message according to the first change reason, wherein the first query message is used to query the change reason of the target information, wherein the first change reason indicates that the change of the target information is related to a second network device, the target information is information stored by the second network device and needs to be synchronized in the target network, and the second network device belongs to the target network; A sending unit is used to send the first query message to the second network device.

24. An information processing device, characterized in that: Applied to a second network device, the apparatus comprises: a receiving unit, configured to receive a first query message sent by a first network device, wherein the first query message is used to query a change reason of target information, wherein the target information is information stored by the second network device and needs to be synchronized in a target network, and the second network device belongs to the target network; a processing unit, configured to obtain, based on the first query message, a first change reason of the target information, wherein the first change reason is the change reason of the target information obtained from a third network device after the second network device obtains a second change reason of the target information stored locally, and the second change reason indicates that the change of the target information is related to the third network device; A sending unit is used to send the first change reason to the first network device.

25. A device, characterized in that include: Processor and memory; The memory is used to store instructions or computer programs; The processor is used to execute the instructions or computer programs to perform the method according to any one of claims 1 to 22.

26. A computer-readable storage medium, characterized in that: The method comprises instructions or a computer program, which, when executed on a computer, causes the computer to execute the method according to any one of claims 1 to 22.

27. A communication system, characterized in that: The system comprises: a first network device executing the method according to any one of claims 1 to 11 and a second network device executing the method according to any one of claims 12 to 22.