Method for solving conflict, network equipment and network manager

By establishing a single network configuration session between the network device and the network management, prioritizing high-priority event notifications, and sending event notifications through the reverse network configuration channel, the problems of excessive resource consumption and event notification delay in the existing technology are solved, and Resource saving and timely processing of event notifications are achieved.

CN118540377AActive Publication Date: 2024-08-23HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310189652.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-22
Publication Date
2024-08-23
Estimated Expiration
2043-02-22

AI Technical Summary

Technical Problem

When the existing technology processes RPC messages and event notifications through NETCONF sessions between network devices and network management, excessive resource consumption makes it difficult for the network management to manage more network devices, and event notifications cannot be processed in a timely manner.

Method used

Establish a network configuration session between the network device and the network management, prioritize high-priority event notifications, pause or interrupt the RPC operation when processing RPC messages and sending event notifications, and send event notifications through the reverse network configuration channel , save resources.

Benefits of technology

It effectively solves the problem of excessive resource consumption, realizes timely processing of high-priority event notifications, and handles interruption and recovery in RPC messages, saving network resources and improving the transmission speed of event notifications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540377A
    Figure CN118540377A
Patent Text Reader

Abstract

The embodiment of the invention provides a method for solving conflicts, which comprises the following steps: after network equipment receives an RPC (Remote Procedure Call) message sent by a network manager through a network configuration session, acquiring the priority of an event notification and the priority of the RPC message when the event notification is generated in the process of processing the RPC message by the network equipment, and when the priority of the event notification is higher than the priority of the RPC message, sending the event notification to the network equipment; the network equipment stops processing the RPC message, and sends the first message processing result, the uncompleted label and the event notification to the network manager; and after the event notification is sent, the network equipment processes an unexecuted part of the RPC message to obtain a second message processing result, and sends the second message processing result to the webmaster. Under the condition that the RPC operation and the event notification occur at the same time, the event notification with the high priority can be preferentially sent, so that the event notification with the high priority can be processed in time. The invention further provides the network equipment and the network manager which can realize the method.
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 a method for resolving conflicts, network equipment, and network management. Background Art

[0002] The network configuration protocol, also known as the NETCONF protocol, provides a set of rules for communication between network management and network devices. Through the NETCONF protocol, network management can perform remote procedure call (RPC) operations on network devices. The request for comment (RFC) is a series of memoranda issued by the Internet Engineering Task Force (IETF). RFC5277 allows RPC operations and event notifications to share a NETCONF session.

[0003] Currently, there is a method to resolve the conflict as follows: establish two NETCONF sessions, one NETCONF session is used for RPC operations, and the other NETCONF session is used to transmit event notifications.

[0004] However, establishing two sessions doubles the resource consumption on the network management side, which is not conducive to the network management managing more network devices. Summary of the invention

[0005] In view of this, the present application provides a method for resolving conflicts, which can terminate the RPC operation and send the event notification when the processing of the RPC message and the generation of the event notification occur at the same time, so that the network manager can handle the event notification in time. The method can resolve the conflict by establishing a network configuration session between the network device and the network manager, which saves more resources than the method of resolving conflicts with two sessions. The present application also provides a network device and a network manager that can implement the above method.

[0006] A first aspect provides a method for resolving conflicts. The communication system used in the method includes a network manager and at least one network device. The network manager and the network device establish a network configuration session. The method includes: after the network device receives an RPC message sent by the network manager through the network configuration session, when the network device generates an event notification during the process of the network device processing the RPC message, the network device obtains the priority of the event notification and the priority of the RPC message; when the priority of the event notification is higher than the priority of the RPC message, the network device suspends processing the RPC message, generates a first message processing result according to the executed RPC message, and then sends the first message processing result and an unfinished label to the network manager through the network configuration session; then the network device sends the event notification to the network manager through the network configuration session, and when the event notification is sent, the network device processes the unexecuted part of the RPC message to obtain a second message processing result, and sends the second message processing result to the network manager through the network configuration session.

[0007] The method of the present application can solve the conflict by establishing a network configuration session between the network device and the network manager, which saves more resources than the method of solving the conflict by two sessions. In the case where the processing of RPC messages and the sending of event notifications share a network configuration session and the processing of RPC messages and the generation of event notifications occur at the same time, the high-priority event notification can be sent first, so that the network manager can process the high-priority event notification in time. Moreover, the method can interrupt and resume the processing of RPC messages to obtain the RPC message processing result.

[0008] In a first possible implementation of the first aspect, the network device obtains and saves multiple event notifications, the priority of each event notification, multiple RPC messages, and the priority of each RPC message. In this way, the priority of the event notification and the priority of the RPC message can be pre-configured, so that important events can be processed preferentially.

[0009] The second aspect provides a method for resolving conflicts. The communication system used in the method includes a network manager and a network device. The network manager and the network device have established a network configuration session. The method includes: after the network manager sends an RPC message to the network device through the network configuration session, the network manager receives the first message processing result, the unfinished label and the event notification sent by the network device through the network configuration session, and then performs the operation corresponding to the event notification; the network manager receives the second message processing result sent by the network device according to the unfinished label. The network manager can wait for the processing result of the RPC message according to the unfinished label, and can obtain the event notification in the process of waiting for the RPC message processing result, thereby resolving the problem of the conflict between the RPC message and the event notification.

[0010] The third aspect provides a method for resolving conflicts. The communication system used in the method includes a network manager and a network device. The network manager and the network device establish a network configuration session. The method includes: the network device receives an RPC message sent by the network manager through the network configuration session; when the network device generates an event notification in the process of processing the RPC message, the network device obtains the priority of the event notification and the priority of the RPC message; when the priority of the event notification is higher than the priority of the RPC message, the network device sends a channel request of the subsystem to the network manager through an SSH connection, and then receives a network configuration channel success message sent by the network manager, and then establishes a reverse network configuration channel according to the network configuration channel success message, and sends the event notification to the network manager through the reverse network configuration channel. In the case of a conflict between processing an RPC message and sending an event notification, the method can establish a reverse network configuration channel through an SSH connection, send an event notification through the reverse network configuration channel, and the network configuration session is used to process the RPC message, so as to solve the conflict problem between the RPC message and the event notification. Since the reverse network configuration channel is established on the SSH connection, compared with re-establishing a network configuration session to send an event notification, there is no need to re-establish a transport layer connection, so that network resources can be saved and the speed of transmitting event notifications can be accelerated.

[0011] In a possible implementation, before the network device sends a channel request of the subsystem to the network manager through the SSH connection, the network device sends a channel opening request to the network manager through the SSH connection, and receives a channel opening confirmation message sent by the network manager through the SSH connection. This provides another method for establishing a reverse network configuration channel, and improves the flexibility of the solution implementation.

[0012] In another possible implementation, when the network device detects that the idle time of the reverse network configuration channel reaches a preset time, the network device closes the reverse network configuration channel. Such a reverse network configuration channel is a temporary channel that can be actively closed when event notifications do not need to be sent, which can save network resources.

[0013] A fourth aspect provides a method for resolving conflicts, the communication system used in the method includes a network manager and a network device, the network manager and the network device establish a network configuration session, the method includes: after the network manager sends an RPC message to the network device through the network configuration session, the network manager receives a channel request of a subsystem sent by the network device through an SSH connection; then sends a network configuration channel success message to the network device through the SSH connection, establishes a reverse network configuration channel according to the network configuration channel success message, and then receives an event notification sent by the network device through the reverse network configuration channel. The network manager can establish a reverse network configuration channel with the network device in the process of processing the RPC message, and receive an event notification through the reverse network configuration channel, thereby resolving the problem of conflicts between the RPC message and the event notification.

[0014] The fifth aspect provides a network device, which includes a receiving module, a processing module and a sending module. The receiving module is used to receive an RPC message sent by a network manager through a network configuration session; the processing module is used to obtain the priority of the event notification and the priority of the RPC message when an event notification is generated in the process of the processing module processing the RPC message; when the priority of the event notification is higher than the priority of the RPC message, the processing of the RPC message is suspended; a first message processing result is generated according to the executed RPC message; the sending module is used to send the first message processing result and the unfinished label to the network manager through the network configuration session; the event notification is sent to the network manager through the network configuration session; the processing module is also used to process the unexecuted part of the RPC message to obtain a second message processing result after the event notification is sent; the sending module is also used to send the second message processing result to the network manager through the network configuration session.

[0015] In a possible implementation, the processing module is further configured to obtain and save a plurality of event notifications, a priority of each event notification, a plurality of RPC messages, and a priority of each RPC message.

[0016] The sixth aspect provides a network management, which includes a receiving module, a processing module and a sending module, the sending module is used to send an RPC message to a network device through a network configuration session; the receiving module is used to receive a first message processing result and an unfinished label sent by the network device through the network configuration session; the event notification sent by the network device is received through the network configuration session; the processing module is used to execute an operation corresponding to the event notification; the receiving module is also used to receive a second message processing result sent by the network device according to the unfinished label.

[0017] The seventh aspect provides a network device, which includes a receiving module, a processing module and a sending module; the receiving module is used to receive an RPC message sent by a network manager through a network configuration session; the processing module is used to obtain the priority of the event notification and the priority of the RPC message when an event notification is generated in the process of processing the RPC message; the sending module is used to send a channel request of the subsystem to the network manager through an SSH connection when the priority of the event notification is higher than the priority of the RPC message, and the receiving module is used to receive a network configuration channel success message sent by the network manager; the processing module is used to establish a reverse network configuration channel according to the network configuration channel success message; the sending module is used to send the event notification to the network manager through the reverse network configuration channel.

[0018] In a possible implementation, the sending module is further used to send a channel opening request to the network manager through an SSH connection; and the receiving module is further used to receive a channel opening confirmation message sent by the network manager through the SSH connection.

[0019] In another possible implementation manner, the processing module is further configured to close the reverse network configuration channel when it is detected that the idle time length of the reverse network configuration channel reaches a preset time length.

[0020] The eighth aspect provides a network management, which includes a receiving module, a processing module and a sending module; the sending module is used to send an RPC message to a network device through a network configuration session; the receiving module is used to receive a channel request of a subsystem sent by the network device through an SSH connection; the sending module is also used to send a network configuration channel success message to the network device through an SSH connection; the processing module is used to establish a reverse network configuration channel according to the network configuration channel success message; the sending module is also used to receive an event notification sent by the network device through the reverse network configuration channel.

[0021] The ninth aspect provides a network device, which includes a processor and a memory, the memory is used to store programs; the processor is used to implement the method of the first aspect or the method of the third aspect by executing the program.

[0022] The tenth aspect provides a network management, which includes a processor and a memory, the memory is used to store programs; the processor is used to implement the method of the second aspect or the method of the fourth aspect by executing the program.

[0023] The eleventh aspect provides a communication system, which includes the network device of the fifth aspect and the network management of the sixth aspect.

[0024] The twelfth aspect provides a communication system, which includes the network device of the seventh aspect and the network management of the eighth aspect.

[0025] The thirteenth aspect provides a computing device cluster, which includes at least one computing device, each computing device includes a processor and a memory, and the processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the methods of the above aspects.

[0026] The fourteenth aspect provides a computer-readable storage medium, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the methods of the above aspects.

[0027] A fifteenth aspect provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the methods of the above aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 A schematic diagram of an application scenario in an embodiment of the present application;

[0029] Figure 2 A signaling diagram of a method for resolving conflicts in an embodiment of the present application;

[0030] Figure 3 Another signaling diagram of the conflict resolution method in an embodiment of the present application;

[0031] Figure 4 A structural diagram of a network device in an embodiment of the present application;

[0032] Figure 5 A structural diagram of a network management in an embodiment of the present application;

[0033] Figure 6 A structural diagram of a computing device in an embodiment of the present application;

[0034] Figure 7 A structural diagram of a computing device cluster in an embodiment of the present application;

[0035] Figure 8 This is another structural diagram of a computing device cluster in an embodiment of the present application. DETAILED DESCRIPTION

[0036] The conflict resolution method of the present application can be applied to a communication system having a NETCONF session established. Figure 1 In one example, a communication system includes a network management system and multiple network devices, the network management system and the network devices are connected via an Internet protocol (IP) network, and both the network management system and the network devices are configured with the NETCONF protocol. The NETCONF protocol is a network configuration and management protocol based on the extensible markup language (XML), which uses a simple RPC-based mechanism to achieve communication between the client and the server. In this application, the NETCONF client can be a network management system or a controller. The NETCONF server can be a network device, and the network device can be, but is not limited to, a server.

[0037] The network manager can use the NETCONF protocol to issue, modify, and delete network device configurations. Network devices provide standardized application programming interfaces (APIs), and network managers can use these APIs to manage network devices through the NETCONF protocol. It should be understood that the number of network managers or network devices in a communication system is not limited to Figure 1 shown.

[0038] RFC6241 defines the basic framework and basic RPC operations of the NETCONF protocol, RFC5277 defines NETCONF event notifications, and RFC8639 / 8640 / 8641 define the latest architecture of NETCONF event notifications and the next generation modeling language (yet another next generation, YANG) PUSH. NETCONF event notifications are also called event notifications or notifications. RFC5277 allows NETCONF RPC operations and event notifications to share a NETCONF session. When the network manager performs RPC operations, the NETCONF session is occupied by the RPC operation. When the network device has important event notifications to report, the event notification cannot be reported through the NETCONF session, resulting in the event notification not being processed in time. If two NETCONF sessions are used to process RPC messages and send event notifications respectively, double the resources of the network manager will be occupied. Since the number of sessions that the network manager can establish is limited, it will affect the communication between the network manager and other network devices.

[0039] This application can interrupt the processing of RPC messages and give priority to sending event notifications when NETCONF RPC operations and event notifications share a NETCONF session. The following is a detailed description of the method for resolving conflicts in this application. Figure 2 , an embodiment of the method for resolving conflicts in the present application includes:

[0040] Step 201: The network manager sends an RPC message to a network device through a network configuration session.

[0041] In this embodiment, after the network device establishes a network configuration session with the network manager, the network device receives the RPC message sent by the network manager through the network configuration session, and then processes the RPC message. Processing the RPC message includes executing the RPC operation and sending the RPC response message. The RPC response message is the RPC reply message. The instructions corresponding to the RPC operation include but are not limited to <get-config> , <get> , <edit-config> , <copy-config> , <delete-config> , <lock> , <unlock> , <close-session>or <kill-session>.

[0042] Step 202: When an event notification is generated during the process of the network device processing an RPC message, the priority of the event notification and the priority of the RPC message are obtained.

[0043] Step 203: When the priority of the event notification is higher than the priority of the RPC message, the network device suspends processing the RPC message.

[0044] When the priority of the event notification is lower than the priority of the RPC message, the network device can continue to process the RPC message and send the event notification after the RPC message processing is completed. When the priority of the event notification is equal to the priority of the RPC message, the network device can suspend the processing of the RPC message or not.

[0045] Specifically, the network device suspending the processing of the RPC message includes: when executing the RPC operation, the network device suspends the execution of the RPC operation. When sending the RPC response message, the network device suspends sending the unexecuted part of the RPC response message.

[0046] Step 204: The network device generates a first message processing result according to the executed RPC message.

[0047] Since the first message processing result is a result obtained by not completing the execution of the RPC message, the network device may set an unfinished label for the first message processing result.

[0048] Step 205: The network device sends the first message processing result and the unfinished label to the network manager through the network configuration session.

[0049] Step 206: The network device sends the event notification to the network manager through the network configuration session.

[0050] Step 207: The network manager executes operations corresponding to the event notification.

[0051] Step 208: After the event notification is sent, the network device processes the unexecuted portion of the RPC message to obtain a second message processing result.

[0052] Step 209: The network device sends the second message processing result to the network manager through the network configuration session.

[0053] The second message processing result is the result obtained after executing the RPC message. The network manager can wait for the message processing result after the RPC is executed according to the unfinished tag. It should be understood that the network manager can configure the waiting time threshold. When the waiting time for the message processing result is greater than or equal to the waiting time threshold, the network manager stops waiting for the second message processing result and can resend the above RPC message to the network device.

[0054] In this embodiment, the conflict can be resolved by establishing a network configuration session between the network device and the network management, which saves more resources for establishing sessions than the method of resolving conflicts by using two sessions.

[0055] Secondly, when the RPC operation and the event notification share a network configuration session and the RPC operation and the event notification occur at the same time, the high-priority event notification can be sent first, so that the high-priority event notification can be processed in time.

[0056] Again, after the network device interrupts the RPC message processing process, it can send the first message processing result and the unfinished label to the network manager. The network manager can wait for the message processing result after the RPC execution is completed according to the unfinished label. Therefore, this method can interrupt and resume the processing of RPC messages and obtain the RPC message processing result.

[0057] In an optional embodiment, before step 202, the conflict resolution method of the present application also includes: the network device obtains multiple event notifications, the priority of each event notification, multiple RPC messages and the priority of each RPC message; the network device saves multiple event notifications, the priority of each event notification, multiple RPC messages and the priority of each RPC message.

[0058] In this application, the priority of event notification and the priority of RPC message can be pre-configured in the network device, and the priority of event notification and the priority of RPC message can be configured and modified according to the actual situation, which is not limited in this application. Event notification can be an event related to the hardware resources or software failure of the network device. Hardware resources include but are not limited to CPU resources, memory resources, disk resources and bandwidth resources. Software failures include but are not limited to operating system failures.

[0059] The following is an introduction to the method for resolving conflicts in the present application using a specific application scenario. The network device takes a server as an example, and the RPC message takes a query message as an example. The query message is:

[0060] <rpc message-id="1”xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

[0061] <get-config>

[0062] <filter type="subtree”>

[0063] <ifm>

[0064] <interfaces / >

[0065] < / ifm>

[0066]

[0067]

[0068]

[0069] After the network manager sends the query message to the server, the server executes the query operation according to the query message. During the query operation, if the central processing unit (CPU) of the server is overloaded, a CPU overload notification is generated. The server determines that the priority of the CPU overload notification is higher than the priority of the query operation, and the server suspends the query operation, generates a response message according to the query results that have been executed and the unfinished tags, and sends the response message to the network manager.

[0070] The response message is:

[0071] <rpc-reply message-id="1”xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

[0072] <data>

[0073] <ifm>

[0074] <interfaces>

[0075] <interface>

[0076] <name> eth0 / 0 / 0< / name>

[0077] < / interface>

[0078] <interface complete="false”>

[0079] <name> eth0 / 0 / 1< / name>

[0080]

[0081] < / interfaces>

[0082] < / ifm>

[0083] < / data>

[0084]

[0085] The CPU overload notification sent by the network device to the network management system is:

[0086] <notification xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0">

[0087] <eventtime> 2008-07-08T00:01:00Z< / eventtime>

[0088] <cpu-overload xmlns="urn:example:interface-module">

[0089]

[0090] After the CPU overload notification is sent, the network device continues to perform the query operation and generates a response message including the query result. The response message is:

[0091] <rpc-reply message-id="1”xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

[0092] <data>

[0093] <ifm>

[0094] <interfaces>

[0095] <interface>

[0096] <name> eth0 / 0 / 2< / name>

[0097] < / interface>

[0098] <interface>

[0099] <name> eth0 / 0 / 3< / name>

[0100] < / interface>

[0101] < / interfaces>

[0102] < / ifm>

[0103] < / data>

[0104]

[0105] In order to resolve the conflict between RPC messages and event notifications, the network device and the network manager in this application can establish a reverse network configuration channel, and then send the event notification to the network manager through the reverse network configuration channel. The following is an introduction to the process of sending event notifications through the reverse network configuration channel. Figure 3 , another embodiment of the method for resolving conflicts in the present application includes:

[0106] Step 301: The network manager sends an RPC message to a network device through a network configuration session.

[0107] Step 302: When an event notification is generated during the process of the network device processing the RPC message, the priority of the event notification and the priority of the RPC message are obtained.

[0108] Step 303: When the priority of the event notification is higher than the priority of the RPC message, the network device sends a channel opening request to the network manager through the SSH connection.

[0109] Step 304: The network manager sends a channel opening confirmation message to the network device through the SSH connection.

[0110] Step 303 and step 304 are optional steps for establishing a reverse network configuration channel. In actual applications, when a network device generates an event notification and the priority of the event notification is higher than the priority of the RPC message, steps 303 and 304 can be skipped and steps 305 to 307 can be directly executed to establish a reverse network configuration channel.

[0111] Step 305: The network device sends a subsystem channel request to the network management through the SSH connection.

[0112] Step 306: The network manager sends a network configuration channel success message to the network device through the SSH connection.

[0113] Step 307: Establish a reverse network configuration channel.

[0114] Step 308: The network device sends the event notification to the network manager through the reverse network configuration channel.

[0115] It should be understood that the network device may not interrupt the processing of the RPC message and continue to process the RPC message through the network configuration session. In the case where the RPC message processing and the sending of the event notification do not occur at the same time, the event notification may be sent through the established network configuration session.

[0116] In this embodiment, when a conflict occurs between RPC message processing and sending event notifications, the network device and the network manager utilize the feature of SSH supporting multiple subsystems, establish a reverse network configuration channel between the network device and the network manager based on the SSH connection, send notifications through the reverse network configuration channel, and process RPC messages through the network configuration session, thus providing another method for resolving the conflict between processing RPC messages and sending notifications.

[0117] Secondly, since the reverse network configuration channel is established on the SSH connection, compared with re-establishing a network configuration session to send event notifications, there is no need to re-establish a transport layer connection, thus saving network resources and speeding up the transmission of event notifications.

[0118] In an optional embodiment, the method for resolving conflicts in the present application further includes: when the network device detects that the idle time of the reverse network configuration channel reaches a preset time, the network device closes the reverse network configuration channel. In this way, the reverse network configuration channel can be actively closed when there is no need to send an event notification, which can save channel resources and reduce resource waste.

[0119] The following is an introduction to the conflict resolution method in this application using a specific application scenario. The network device is a server as an example. A network configuration session based on SSH connection has been established between the network management and the server. The RPC message sent by the network management to the server is a query message as an example. The query message is:

[0120] <rpc message-id="1”xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"

[0121] >

[0122] <get-config>

[0123] <filter type="subtree”>

[0124] <ifm>

[0125] <interfaces / >

[0126] < / ifm>

[0127]

[0128]

[0129]

[0130] The server performs a query operation according to the query message. During the query operation, when the server's CPU is overloaded, a CPU overload notification is generated. The server determines that the priority of the CPU overload notification is higher than the priority of the query operation, and then sends an SSH_MSG_CHANNEL_OPEN request message to the network manager. The network manager responds to the SSH_MSG_CHANNEL_OPEN message and returns an SSH_MSG_CHANNEL_OPEN_CONFIRMATION message to the network device. The network device then sends a subsystem SSH_MSG_CHANNEL_REQUEST message, and the subsystem name field in the message is filled with netconf. The network manager returns an SSH_MSG_CHANNEL_SUCCESS message to the network device, and then establishes a reverse network configuration channel. The channel type of the reverse network configuration channel is subsystem, and the subsystem type is netconf. Then a CPU overload notification is sent on the reverse network configuration channel. The CPU overload notification is:

[0131] <notification xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0">

[0132] <eventtime> 2008-07-08T00:01:00Z< / eventtime>

[0133] <cpu-overload xmlns="urn:example:interface-module">

[0134]

[0135] The network management system performs actions on the CPU overload notification according to preset rules. Since the reverse network configuration channel and the network configuration session are different communication connections, the network configuration session is still used to process RPC operations. When the idle time of the reverse network configuration channel reaches the idle time threshold, the network device can send an SSH_MSG_CHANNEL_CLOSE message to the network management system to close the reverse network configuration channel.

[0136] It should be understood that the RPC messages in this application are not limited to query messages and response messages, and query messages and response messages are not limited to the above examples. The event notification of this application is not limited to CPU overload notification. The waiting time threshold and the idle time threshold can be set according to actual conditions, and this application does not limit them.

[0137] The present application provides a network device capable of implementing the steps performed by the network device in the above embodiment. Figure 4 In one embodiment, the network device 400 of the present application includes:

[0138] The receiving module 401 is used to receive the RPC message sent by the network manager through the network configuration session. The network device 400 has established a network configuration session with the network manager.

[0139] The processing module 402 is used to obtain the priority of the event notification and the priority of the RPC message when the event notification is generated in the process of the processing module 402 processing the RPC message; when the priority of the event notification is higher than the priority of the RPC message, suspend the processing of the RPC message; generate a first message processing result according to the executed RPC message;

[0140] The sending module 403 is used to send the first message processing result and the unfinished label to the network manager through the network configuration session; send the event notification to the network manager through the network configuration session;

[0141] The processing module 402 is further configured to process the unexecuted portion of the RPC message to obtain a second message processing result after the event notification is sent.

[0142] The sending module 403 is further configured to send the second message processing result to the network manager through the network configuration session.

[0143] Among them, the receiving module 401, the processing module 402 and the sending module 403 can all be implemented by software, or can be implemented by hardware. Exemplarily, the implementation of the processing module 402 is introduced below by taking the processing module 402 as an example. Similarly, the implementation of the receiving module 401 and the sending module 403 can refer to the implementation of the processing module 402.

[0144] As an example of a software functional unit, the processing module 402 may include code running on a computing instance. Among them, the computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Further, the above-mentioned computing instance may be one or more. For example, the processing module 402 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region (region) or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including a data center or multiple data centers with close geographical locations. Among them, usually a region may include multiple AZs.

[0145] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.

[0146] As an example of a hardware functional unit, the processing module 402 may include at least one computing device, such as a server, etc. Alternatively, the processing module 402 may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

[0147] The multiple computing devices included in the processing module 402 can be distributed in the same region or in different regions. The multiple computing devices included in the processing module 402 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the processing module 402 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.

[0148] It should be noted that, in other embodiments, the processing module 402 may be used to execute Figure 2 The embodiments shown to Figure 3 In any step performed by the network device in the embodiment shown, the receiving module 401 can be used to perform Figure 2 The embodiments shown to Figure 3 In any step performed by the network device in the embodiment shown, the sending module 403 can be used to perform Figure 2 The embodiments shown to Figure 3 In the illustrated embodiment, any steps executed by the network device, the steps that the receiving module 401, the processing module 402 and the sending module 403 are responsible for implementing can be specified as needed, and the full functions of the network device are realized by respectively implementing different steps in the conflict resolution method by the receiving module 401, the processing module 402 and the sending module 403.

[0149] In an optional embodiment, the processing module 402 is also used to obtain multiple event notifications, the priority of each event notification, multiple RPC messages and the priority of each RPC message; save multiple event notifications, the priority of each event notification, multiple RPC messages and the priority of each RPC message.

[0150] In another embodiment, the receiving module 401 is used to receive an RPC message sent by the network manager through a network configuration session; the processing module 402 is used to obtain the priority of the event notification and the priority of the RPC message when generating an event notification in the process of processing the RPC message; the sending module 403 is used to send a channel request of the subsystem to the network manager through an SSH connection when the priority of the event notification is higher than the priority of the RPC message, and the receiving module 401 is used to receive a network configuration channel success message sent by the network manager; the processing module 402 is used to establish a reverse network configuration channel according to the network configuration channel success message; the sending module 403 is used to send the event notification to the network manager through the reverse network configuration channel.

[0151] In another optional embodiment, the sending module 403 is further used to send the channel opening request to the network manager through the SSH connection; the receiving module 401 is further used to receive the channel opening confirmation message sent by the network manager through the SSH connection.

[0152] In another optional embodiment, the processing module 402 is further configured to close the reverse network configuration channel when it is detected that the idle time length of the reverse network configuration channel reaches a preset time length.

[0153] The present application provides a network management system that can implement the steps performed by the network management system in the above embodiment. Figure 5 In one embodiment, the network management 500 of the present application includes a receiving module 501, a processing module 502 and a sending module 503; the sending module 503 is used to send an RPC message to a network device through a network configuration session; the receiving module 501 is used to receive a first message processing result and an unfinished label sent by the network device through the network configuration session; receive an event notification sent by the network device through the network configuration session; the processing module 502 is used to execute an operation corresponding to the event notification; the receiving module 501 is also used to receive a second message processing result sent by the network device according to the unfinished label, and the second message processing result is obtained by the network device executing the unexecuted part of the RPC message.

[0154] In another embodiment, the sending module 503 is used to send RPC messages to the network device through the network configuration session; the receiving module 501 is used to receive the channel request of the subsystem sent by the network device through the SSH connection; the sending module 503 is also used to send the network configuration channel success message to the network device through the SSH connection; the processing module 502 is used to establish a reverse network configuration channel according to the network configuration channel success message; the sending module 503 is also used to receive the event notification sent by the network device through the reverse network configuration channel.

[0155] Among them, the receiving module 501, the processing module 502 and the sending module 503 can all be implemented by software, or can be implemented by hardware. Exemplarily, the implementation of the processing module 502 is described below by taking the processing module 502 as an example. Similarly, the implementation of the receiving module 501 and the sending module 503 can refer to the implementation of the processing module 502.

[0156] As an example of a software functional unit, the processing module 502 may include code running on a computing instance. Among them, the computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Further, the above-mentioned computing instance may be one or more. For example, the processing module 502 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code can be distributed in the same region or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code can be distributed in the same AZ or in different AZs, and each AZ includes a data center or multiple data centers with close geographical locations. Among them, usually a region can include multiple AZs.

[0157] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same VPC or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.

[0158] As an example of a hardware functional unit, the processing module 502 may include at least one computing device, such as a server, etc. Alternatively, the processing module 502 may also be a device implemented using ASIC or PLD, etc. The PLD may be implemented using CPLD, FPGA, GAL or any combination thereof.

[0159] The multiple computing devices included in the processing module 502 can be distributed in the same region or in different regions. The multiple computing devices included in the processing module 502 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the processing module 502 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.

[0160] It should be noted that, in other embodiments, the processing module 502 may be used to execute Figure 2 The embodiments shown to Figure 3 In any step performed by the network management in the embodiment shown, the receiving module 501 can be used to perform Figure 2 The embodiments shown to Figure 3 In any step performed by the network management in the embodiment shown, the sending module 503 can be used to perform Figure 2 The embodiments shown to Figure 3 In the illustrated embodiment, any step performed by the network manager, the steps that the receiving module 501, the processing module 502 and the sending module 503 are responsible for implementing can be specified as needed, and all functions of the network manager are realized by respectively implementing different steps in the conflict resolution method by the receiving module 501, the processing module 502 and the sending module 503.

[0161] The present application provides a communication system, which includes a network management 500 and a network device 400.

[0162] The present application also provides a computing device 600. Figure 6 As shown, computing device 600 includes: bus 602, processor 604, memory 606 and communication interface 608. Processor 604, memory 606 and communication interface 608 communicate through bus 602. Computing device 600 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors, memories and communication interfaces in computing device 600.

[0163] The bus 602 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 The bus 604 may include a path for transmitting information between various components of the computing device 600 (eg, the memory 606, the processor 604, and the communication interface 608).

[0164] The processor 604 may include any one or more processors such as a CPU, a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0165] The memory 606 may include a volatile memory, such as a random access memory (RAM). The processor 604 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).

[0166] The memory 606 stores executable program codes, and the processor 604 executes the executable program codes to respectively implement the functions of the aforementioned receiving module, processing module, and sending module, thereby implementing the steps performed by the network device in the method for resolving conflicts. That is, the memory 606 stores instructions for executing the method for resolving conflicts.

[0167] Alternatively, the memory 606 stores executable codes, and the processor 604 executes the executable codes to respectively implement the functions of the aforementioned receiving module, processing module, and sending module, thereby implementing the steps performed by the network management in the method for resolving conflicts. That is, the memory 606 stores instructions for executing the method for resolving conflicts.

[0168] The communication interface 603 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 600 and other devices or a communication network.

[0169] like Figure 7 As shown, the computing device cluster includes at least one computing device 600. The memory 606 in one or more computing devices 600 in the computing device cluster may store the same instructions for executing the conflict resolution method.

[0170] In some possible implementations, the memory 606 of one or more computing devices 600 in the computing device cluster may also store partial instructions for executing the conflict resolution method. In other words, the combination of one or more computing devices 600 may jointly execute instructions for executing the conflict resolution method.

[0171] It should be noted that the memory 606 in different computing devices 600 in the computing device cluster can store different instructions, which are respectively used to execute part of the functions of the network device or the network management. That is, the instructions stored in the memory 606 in different computing devices 600 can implement the functions of one or more modules among the receiving module, the processing module and the sending module.

[0172] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network. Figure 8 A possible implementation is shown. Figure 8 As shown, two computing devices 600A and 600B are connected via a network. Specifically, the network is connected via a communication interface in each computing device. In this type of possible implementation, the memory 606 in the computing device 600A stores instructions for executing the functions of the receiving module. At the same time, the memory 606 in the computing device 600B stores instructions for executing the functions of the processing module and the sending module.

[0173] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by the computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute a method for resolving conflicts.

[0174] The embodiment of the present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes a method for resolving conflicts.

[0175] The present application also provides a chip system, which includes a processor and a memory coupled to each other. The memory is used to store computer programs or instructions, and the processor is used to execute the computer programs or instructions stored in the memory, so that the media server executes the steps performed by the receiving module, the processing module or the sending module in the above embodiment. Optionally, the memory is a memory in the chip, such as a register, a cache, etc., and the memory can also be a memory located outside the chip in the site, such as a read-only memory or other types of static storage devices that can store static information and instructions, a random access memory, etc. The processor mentioned in any of the above places can be a general-purpose central processing unit, a microprocessor, a dedicated integrated circuit, or one or more integrated circuits for implementing the above-mentioned conflict resolution method.

[0176] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application. < / unlock> < / lock> < / delete-config> < / copy-config> < / edit-config> < / get> < / get-config>

Claims

1. A method for resolving conflicts, characterized in that: The communication system used by the method includes a network management system and a network device, the network management system and the network device establish a network configuration session, and the method includes: The network device receives the remote procedure call (RPC) message sent by the network manager through the network configuration session; When the network device generates an event notification in the process of processing the RPC message, the network device obtains the priority of the event notification and the priority of the RPC message; When the priority of the event notification is higher than the priority of the RPC message, the network device suspends processing of the RPC message; The network device generates a first message processing result according to the executed RPC message; The network device sends the first message processing result and the unfinished label to the network manager through the network configuration session; The network device sends the event notification to the network manager through the network configuration session; When the event notification is sent, the network device processes the unexecuted portion of the RPC message to obtain a second message processing result; The network device sends the second message processing result to the network manager through the network configuration session.

2. The method according to claim 1, characterized in that The method further comprises: The network device obtains multiple event notifications, the priority of each event notification, multiple RPC messages, and the priority of each RPC message; The network device stores the multiple event notifications, the priority of each event notification, the multiple RPC messages, and the priority of each RPC message.

3. A method for resolving conflicts, characterized in that: The communication system used by the method includes a network management system and a network device, the network management system and the network device establish a network configuration session, and the method includes: The network manager sends a remote procedure call (RPC) message to the network device through the network configuration session; The network manager receives the first message processing result and the unfinished label sent by the network device through the network configuration session; The network manager receives an event notification sent by the network device through the network configuration session; The network manager executes the operation corresponding to the event notification; the network manager receives a second message processing result sent by the network device according to the unfinished tag, and the second message processing result is obtained by the network device executing the unexecuted part of the RPC message.

4. A method for resolving conflicts, characterized in that: The communication system used by the method includes a network management system and a network device, the network management system and the network device establish a network configuration session, and the method includes: The network device receives a remote procedure call (RPC) message sent by the network manager through a network configuration session; When the network device generates an event notification in the process of processing an RPC message, the network device obtains the priority of the event notification and the priority of the RPC message; When the priority of the event notification is higher than the priority of the RPC message, the network device sends a channel request for the subsystem to the network manager through the Secure Shell Protocol SSH connection, then receives a network configuration channel success message sent by the network manager, and then establishes a reverse network configuration channel according to the network configuration channel success message, and sends the event notification to the network manager through the reverse network configuration channel.

5. The method according to claim 4, characterized in that Before the network device sends a channel request of the subsystem to the network manager through a secure shell protocol SSH connection, the method further includes: The network device sends a channel opening request to the network manager through the SSH connection; The network device receives the channel opening confirmation message sent by the network manager through the SSH connection.

6. The method according to claim 4 or 5, characterized in that: The method further comprises: When the network device detects that the idle time of the reverse network configuration channel reaches a preset time, the network device closes the reverse network configuration channel.

7. A method for resolving conflicts, characterized in that: The communication system used by the method includes a network management system and a network device, the network management system and the network device establish a network configuration session, and the method includes: The network manager sends a remote procedure call (RPC) message to the network device through the network configuration session; The network management receives a channel request of the subsystem sent by the network device through a secure shell protocol SSH connection; The network management sends a network configuration channel success message to the network device through the SSH connection; The network management establishes a reverse network configuration channel according to the network configuration channel success message; The network manager receives the event notification sent by the network device through the reverse network configuration channel.

8. A network device, characterized in that: The network device establishes a network configuration session with the network management, and the network device includes: A receiving module, used for receiving a remote procedure call (RPC) message sent by a network manager through the network configuration session; A processing module, configured to obtain the priority of the event notification and the priority of the RPC message when an event notification is generated in the process of the processing module processing the RPC message; suspend processing of the RPC message when the priority of the event notification is higher than the priority of the RPC message; and generate a first message processing result according to the executed RPC message; A sending module, configured to send the first message processing result and the unfinished tag to the network manager through the network configuration session; and send the event notification to the network manager through the network configuration session; The processing module is further configured to process the unexecuted portion of the RPC message to obtain a second message processing result after the event notification is sent; The sending module is further used to send the second message processing result to the network manager through the network configuration session.

9. The network device according to claim 8, characterized in that: The processing module is also used to obtain multiple event notifications, the priority of each event notification, multiple RPC messages and the priority of each RPC message; and save the multiple event notifications, the priority of each event notification, the multiple RPC messages and the priority of each RPC message.

10. A network management system, characterized in that: The network management establishes a network configuration session with the network device, and the network management includes: A sending module, used for sending a remote procedure call (RPC) message to the network device through the network configuration session; A receiving module, configured to receive the first message processing result and the unfinished tag sent by the network device through the network configuration session; and receive the event notification sent by the network device through the network configuration session; A processing module, used to execute operations corresponding to the event notification; The receiving module is further configured to receive a second message processing result sent by the network device according to the unfinished tag, where the second message processing result is obtained by the network device executing an unexecuted portion of the RPC message.

11. A network device, characterized in that: The network device establishes a network configuration session with the network management, and the network device includes: A receiving module, used for receiving a remote procedure call (RPC) message sent by a network management system through a network configuration session; A processing module, configured to obtain the priority of the event notification and the priority of the RPC message when an event notification is generated during the processing of the RPC message; a sending module, configured to send a channel request of the subsystem to the network management via a secure shell protocol SSH connection when the priority of the event notification is higher than the priority of the RPC message, A receiving module, used to receive a network configuration channel success message sent by the network management; A processing module, used for establishing a reverse network configuration channel according to a network configuration channel success message; The sending module is used to send the event notification to the network management through the reverse network configuration channel.

12. The network device according to claim 11, characterized in that: The sending module is also used to send the channel opening request to the network manager through the SSH connection; The receiving module is also used to receive a channel opening confirmation message sent by the network manager through the SSH connection.

13. The network device according to claim 11 or 12, characterized in that: The processing module is further configured to close the reverse network configuration channel when it is detected that the idle time length of the reverse network configuration channel reaches a preset time length.

14. A network management system, characterized in that: The network management establishes a network configuration session with the network device, and the network management includes: A sending module, used for sending a remote procedure call (RPC) message to the network device through the network configuration session; A receiving module, used for receiving a channel request of a subsystem sent by the network device through a secure shell protocol SSH connection; The sending module is further used to send a network configuration channel success message to the network device through the SSH connection; A processing module, used for establishing a reverse network configuration channel according to the network configuration channel success message; The sending module is further used to receive the event notification sent by the network device through the reverse network configuration channel.

15. A communication system, characterized in that: include: The network device as claimed in any one of claims 8 to 9 and the network management as claimed in claim 10.

16. A communication system, characterized in that: include: The network device according to any one of claims 11 to 13 and the network management according to claim 14.

17. A computing device cluster, characterized in that: The system comprises at least one computing device, each computing device comprises a processor and a memory, the processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to any one of claims 1 to 7.

18. A computer-readable storage medium comprising computer program instructions, characterized in that: When the computer program instructions are executed by a computing device, the computing device performs the method of any one of claims 1 to 7.

19. A computer program product comprising instructions, characterized in that When the instructions are executed by a computing device, the computing device is caused to perform the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Event notice sending method, system and equipment based on network configuration protocol

    CN101110822A

  • Method, device and system for managing network device

    CN114640579A