WO2022111635A1 - Method for managing network device, and device and system - Google Patents

Method for managing network device, and device and system Download PDF

Info

Publication number
WO2022111635A1
WO2022111635A1 PCT/CN2021/133533 CN2021133533W WO2022111635A1 WO 2022111635 A1 WO2022111635 A1 WO 2022111635A1 CN 2021133533 W CN2021133533 W CN 2021133533W WO 2022111635 A1 WO2022111635 A1 WO 2022111635A1
Authority
WO
WIPO (PCT)
Prior art keywords
request
server
target
task
rpc
Prior art date
Application number
PCT/CN2021/133533
Other languages
French (fr)
Chinese (zh)
Inventor
黎楚熙
戴新宁
陈锐
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022111635A1 publication Critical patent/WO2022111635A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding

Definitions

  • the embodiments of the present application relate to the field of communications technologies, and in particular, to methods, devices, and systems for managing network devices.
  • the network configuration protocol is a network protocol that implements the network configuration for managing network devices.
  • the NETCONF network system includes a client and a server, and the client and the server can transmit configuration data, status data and remote procedure calls (RPC) to each other.
  • RPC remote procedure calls
  • the client can add, modify or delete the configuration of the network device through NETCONF, and can also obtain the configuration and status information of the network device.
  • the present application provides a method, device and system for managing network devices, which can implement priority processing of tasks that need priority processing or urgent, so as to reduce waste of network resources.
  • a method for managing a network device is provided.
  • the server-side executing a task corresponding to a first remote procedure call RPC request
  • receives a target request sent by a connected first client where the target request includes: A first identifier, this first identifier indicates that the server should preferentially execute the task corresponding to the target request, that is, the task priority of the target request is higher, and the target request includes the second identifier of the first RPC request
  • the server The end can determine the first RPC request or the task corresponding to the first RPC request according to the second identifier, and the target request instructs the server end to interrupt the task corresponding to the first RPC request being executed.
  • the server side interrupts the task corresponding to the first RPC request being executed can be understood as the server side suspends the execution of the task corresponding to the first RPC request, and preferentially executes the task corresponding to the target request.
  • the task corresponding to the target request may be a cancel-get instruction, which is used to instruct the server to interrupt the specified executing task.
  • the server side can interrupt the task corresponding to the first RPC request being executed by the server side according to the target request, so that the server side can perform priority processing that requires priority processing. Or urgent tasks, reducing the waste of network resources on the server side.
  • the client instructs the server to interrupt the task corresponding to the first RPC request, it often sends tasks that need to be prioritized or urgent to the server.
  • the client can instruct the server to execute the second RPC request by sending the second RPC request.
  • the task corresponding to the second RPC request is a task that needs to be prioritized or urgent. It can also be realized by making the target request carry a task that needs to be prioritized or urgent. The following is specifically explained:
  • the target request further includes a target task
  • the method further includes: the server side interrupts the task corresponding to the first RPC request being executed by the server side according to the target request, and executes the target request according to the target request
  • the corresponding target task can be a task that needs to be prioritized or urgent.
  • the target task does not include a task corresponding to instructing the server to interrupt the first RPC request.
  • the target task does not include a task corresponding to an instruction to interrupt the first RPC request, and the target task may be an RPC task corresponding to other RPC requests different from the task corresponding to the first RPC request.
  • the target request further includes a target task
  • the server can interrupt the task corresponding to the first RPC request and execute the target task, and the server does not need to wait for the task corresponding to the first RPC request to be executed before executing the target task , which speeds up the execution efficiency of the target task
  • the target request also includes the target task
  • the client can send the target request including the task corresponding to the first RPC request and the target task instructing the server to interrupt the first RPC request to the server, reducing network resources. waste.
  • the method further includes: the server side receives a second RPC request sent by the second client, the The second RPC request instructs the server to execute the task corresponding to the second RPC request; correspondingly, the server executes the task corresponding to the second RPC request.
  • the first client and the second client may be the same client, or may be different clients.
  • the server executes the task corresponding to the second RPC request after interrupting the task corresponding to the first RPC request, and the server executes the task corresponding to the second RPC request without waiting for the task corresponding to the first RPC request to be executed.
  • the task corresponding to the second RPC request is preferentially executed, thereby reducing the waste of network resources on the server side.
  • the server side interrupts the task corresponding to the first RPC request according to the target request, including: if the server side determines according to the second identifier of the first RPC request that the task being executed by the server side is the If the first RPC requests a task corresponding to the first RPC, the server interrupts the task corresponding to the first RPC being executed.
  • the server side interrupts the task being executed, including: the server side stops executing the task being executed; or stops executing the task being executed and puts the task identifier corresponding to the first RPC request to the server on the task list on the side.
  • the server side arranges tasks that need to be executed but not executed in a task list according to a preset rule, and all tasks in the task list have a one-to-one corresponding identifier.
  • the server side interrupting the task corresponding to the first RPC request according to the target request includes: the server side determines the task corresponding to the first RPC request in the task list according to the second identifier, and the task list includes tasks that have not been executed by the server side. ; The server side deletes the task corresponding to the first RPC request in the task list.
  • a solution is specifically provided in which the task corresponding to the first RPC request has not been executed when the server side interrupts the task corresponding to the first RPC request according to the target request, which improves the achievability of the solution. sex.
  • the request sent by the client to the server not only includes an RPC request, but also includes a configuration data acquisition request and a status data acquisition request.
  • a method for managing a network device includes: a first client sends a target request to the server in the process of executing a task corresponding to the first remote procedure call RPC request, where the target request includes A first identifier, the first identifier instructs the server to preferentially execute the task corresponding to the target request, the target request includes the second identifier, and the target request instructs the server to interrupt the corresponding first RPC request being executed by the server. Task.
  • the client can send the target request after sending the first RPC request, so that the server can interrupt the task corresponding to the first RPC request, and the client can interrupt the task executed by the server, thereby reducing the number of servers. waste of network resources.
  • the target request further instructs the server to execute the target task corresponding to the target request.
  • the target request further includes the target task
  • the first client can send the target request including the task corresponding to the first RPC request and the target task instructing the server to interrupt the first RPC request to the server, without sending them separately, reducing the need for Waste of network resources.
  • a method for managing network devices specifically includes: a second client sends a second RPC request to the server, where the second RPC request instructs the server to execute a corresponding request for the second RPC Task.
  • the client that sends the second RPC request and the client that sends the target request are the same client.
  • a device in a fourth aspect, includes a unit for executing the method for managing a network device provided in the first aspect or any possible implementation manner of the first aspect, for example, the device includes: a receiving unit, Used to receive a target request sent by a first client, the target request includes a first identifier, the first identifier instructs the server to preferentially execute a task corresponding to the target request, and the target request includes a second identifier of the first RPC request , the target request instructs the server to interrupt the task corresponding to the first RPC request being executed by the server.
  • a device in a fifth aspect, includes a unit for executing the method for managing a network device provided in the second aspect or any possible implementation manner of the second aspect, for example, the device includes: a sending unit, Used to send a target request to the server, the target request includes a first identifier, the first identifier instructs the server to preferentially execute the task corresponding to the target request, the target request includes the second identifier of the first RPC request, the target The request instructs the server to interrupt the task corresponding to the first RPC request being executed by the server.
  • a client comprising: a sending unit configured to send a second RPC request to a server, where the second RPC request instructs the server to execute a task corresponding to the second RPC request.
  • the client has the function of implementing the third aspect or the method of any possible implementation manner of the third aspect.
  • This function can be realized by hardware or by software program.
  • the hardware or software includes one or more modules corresponding to the above functions, such as a sending unit.
  • a seventh aspect provides a server side, the server side includes at least one processor, a memory, a communication interface, and a computer-executable instruction stored in the memory and executable on the processor, when the computer-executable instruction is executed by the processor,
  • the processor executes the method according to the first aspect or any possible implementation manner of the first aspect.
  • a first client comprising at least one processor, a memory, a communication interface, and computer-executable instructions stored in the memory and executable on the processor, when the computer-executable instructions are processed
  • the processor executes, the processor executes the method according to the second aspect or any possible implementation manner of the second aspect.
  • a second client comprising at least one processor, a memory, a communication interface, and computer-executable instructions stored in the memory and executable on the processor, when the computer-implemented instructions are processed
  • the processor executes, the processor executes the method according to the third aspect or any possible implementation manner of the third aspect.
  • a tenth aspect provides a computer-readable storage medium that stores one or more computer-executable instructions.
  • the computer-executable instructions or codes are executed by a device, the device is made to perform the above-mentioned first aspect or any one of the first aspects. possible implementation methods.
  • a computer-readable storage medium storing one or more computer-executable instructions
  • the device when the computer-executable instructions or codes are executed by a device, the device can perform the second aspect or any one of the second aspects described above. method of implementation.
  • a twelfth aspect provides a computer-readable storage medium that stores one or more computer-executable instructions.
  • the device can perform the third aspect or any one of the third aspects. method of implementation.
  • a thirteenth aspect provides a system including a client and a server.
  • the server side in the system may execute the method of the first aspect or any possible implementation manner of the first aspect.
  • the client in the system may execute the method of the second aspect or any possible implementation manner of the second aspect.
  • a fourteenth aspect provides a computer program (product), the computer program (product) comprising: computer program code, when the computer program code is executed by a computer, causing the computer to perform the first aspect or the first A method in any possible implementation of the aspect, or performing the second aspect or a method in any possible implementation of the second aspect, performing the third aspect or any possible implementation of the third aspect method in .
  • Fig. 1 is the scene schematic diagram of NETCONF network system
  • Fig. 2 is a schematic flow chart of the related art
  • FIG. 3 is a schematic flowchart of a method for managing network devices in an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of a method for managing network devices in an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of a method for managing network devices in an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a server side in an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a client in an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a client in an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a server side in an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a client in an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a client in an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a NETCONF network system in an embodiment of the present application.
  • the network configuration protocol is a network protocol that manages the network configuration of network devices.
  • the NETCONF network system includes a client and a server.
  • One server can be connected to multiple clients, and the client and the server can transmit configuration data, status data and remote procedure calls (RPC) to each other.
  • RPC remote procedure calls
  • the client can add, modify or delete the configuration of the network device on the server side through the NETCONF protocol, and can obtain the configuration and status information of the network device on the server side.
  • the client when the client performs a new message query, the task being executed by the server cannot be interrupted.
  • the client may send a new second RPC request, and the server will only process the tasks in the second RPC request after processing the tasks in the first RPC request.
  • the server side when the server side executes the task corresponding to the first RPC request, when the client side needs the server side to preferentially execute the second RPC request, the first client side will send a message to the server side with The target request of the first identifier, correspondingly, the server side receives the target request with the first identifier sent by the first client, the target request includes the second identifier of the first RPC request, and the target request instructs the server side to interrupt the server
  • the task corresponding to the first RPC request being executed by the terminal, the first identifier instructs the server to prioritize the processing of the target request, that is, when the server recognizes that the target request carries the first identifier, the server interrupts according to the second identifier
  • the first RPC requests the corresponding task.
  • the server end may execute the target task corresponding to the target request, or may execute the task corresponding to the second RPC sent by the second client.
  • the server executes the task corresponding to the second RPC sent by the second client.
  • a process of the method for managing network devices in the embodiment of the present application includes:
  • the first client sends a target request to the server.
  • the first client-side sends a target request to the server-side, and accordingly, the server-side receives the target-side request sent by the client-side, and the target-side request instructs the server-side to interrupt the server
  • the target request includes the second identifier of the first RPC request.
  • the target request has a priority identifier, that is, a first identifier, and the first identifier is used to indicate that the target request is a message that needs to be preferentially processed, and the server side needs to preferentially process the target request after receiving the target request;
  • the target request also includes the second identifier of the first RPC request.
  • the procedure for one embodiment of the target request is as follows:
  • the target request includes a cancel-get instruction, which is used to instruct the server to interrupt a specified task being executed by the server; the user can enter a preset shortcut instruction on the first client to make the client send the server to the server.
  • the target request includes a cancel-get instruction, which is used to instruct the server side to interrupt a specified task being executed by the server side; the user can input a preset shortcut instruction on the client side to make the first client end to the server side Send the command, for example, the shortcut command can be Ctrl+c.
  • the above urg identifier is a priority identifier, that is, the first identifier, which is used to indicate that the instruction is an emergency instruction with a higher priority than a conventional instruction.
  • the server should prioritize the processing of the message, that is, execute the target request with priority.
  • the server side can set the query instruction and the notification instruction as a regular instruction with a low priority, and set the interrupt instruction as a regular instruction with a high priority.
  • the message-id in the instruction indicates a task corresponding to a specified request message, and the identifier of the message is "101", that is, the second identifier of the first RPC request is 101.
  • the server will preferentially execute the task corresponding to the interrupt message whose message-id is 101.
  • the server side interrupts the task corresponding to the first RPC request according to the target request.
  • the server side interrupts the task corresponding to the first RPC request being executed by the server side according to the second identifier of the first RPC request in the target request.
  • the server side when the server side receives the target request, the server side preferentially processes the target request according to the first identifier of the target request.
  • the server determines whether the second identifier is the same as the identifier of the currently executing task, if the same, interrupts the currently executing task; if not, traverses the The task on the server side determines whether there is an identifier of the task that is the same as the second identifier in the target request, and if so, deletes the task; if not, discards the target request.
  • the second client sends a second RPC request to the server.
  • the client sends a second RPC request to the server, and accordingly, the server receives the second RPC request sent by the client, and the second RPC request instructs the server to execute the task corresponding to the second RPC request.
  • the task corresponding to the second RPC request is a task that needs to be prioritized or urgent.
  • the server side executes the task corresponding to the second RPC request.
  • the server performs the task corresponding to the second RPC request according to the second RPC request.
  • the request corresponding to the task being executed by the server and the request sent by the second client to the server are RPC requests, and may actually be messages such as configuration data acquisition requests and status data acquisition requests. There is no limitation here.
  • the server side interrupts the task corresponding to the first RPC request by deleting the identifier of the task corresponding to the first RPC request in the task list of the server side or by stopping the execution of the task being executed.
  • the server side may also not delete the task corresponding to the first RPC request and place the task in the corresponding waiting area on the server side.
  • the server side implements the concurrency of messages for a single session of a single client through the main thread and the worker thread.
  • the concurrency mechanism and the concurrency mechanism based on validity confirmation are used to realize the concurrency of messages for a single session of a single client, which is not specifically limited here.
  • the client that sends the second RPC request to the server is the second client
  • the client that sends the target request to the server is the first client
  • the second RPC is sent to the server
  • the requesting client and the client sending the target request to the server may also be the same client, which is not limited here.
  • the target request instructs the server to interrupt the task corresponding to the first RPC request
  • the target request may also instruct the server to execute the task corresponding to the target request, which will be described below:
  • the server side executes the target task corresponding to the target request.
  • another process of the method for managing network devices in the embodiment of the present application includes:
  • the first client sends a target request to the server.
  • the first client-side sends a target request to the server-side, and accordingly, the server-side receives the target-side request sent by the client-side, and the target-side request instructs the server-side to interrupt the server
  • the target request includes the second identifier of the first RPC request.
  • the target request also instructs the server to execute the target task corresponding to the target request.
  • the target task does not include the task corresponding to the instruction to interrupt the first RPC request, and the target task may be different from the task corresponding to the first RPC request.
  • the task corresponding to the RPC request is not include the task corresponding to the instruction to interrupt the first RPC request.
  • the target request has a priority identifier, that is, a first identifier, and the first identifier is used to indicate that the target request is an urgent message, and the server side needs to prioritize the target request after receiving the target request;
  • the target request Also included is a second identification of the first RPC request.
  • the procedure for one embodiment of the target request is as follows:
  • the target request includes a cancel-get instruction, which is used to instruct the server to interrupt a specified task being executed by the server; the user can enter a preset shortcut instruction on the first client to make the client send the server to the server.
  • the target request includes a cancel-get instruction, which is used to instruct the server side to interrupt a specified task being executed by the server side; the user can input a preset shortcut instruction on the client side to make the first client end to the server side Send the command, for example, the shortcut command can be Ctrl+c.
  • the above-mentioned urg identifier can be a priority identifier, that is, the first identifier, which is used to indicate that the instruction is an emergency instruction with a higher priority than a conventional instruction.
  • the corresponding task is requested; for example, the server side can set the query instruction and the notification instruction as a regular instruction with a low priority, and set the interrupt instruction as a regular instruction with a high priority.
  • the message-id in the instruction indicates a task corresponding to a specified request message, and the identifier of the message is "101", that is, the second identifier of the first RPC request is 101.
  • the server After receiving the command, the server will preferentially execute the task corresponding to the interrupt message whose message-id is 101.
  • the server side interrupts the task corresponding to the first RPC request according to the target request.
  • step 504 is similar to step 402 in FIG. 4 , and details are not repeated here.
  • the server side executes the target task corresponding to the target request.
  • the server side executes the target task corresponding to the target request according to the target request.
  • the target task does not include the cancel-get instruction
  • the target task is a task corresponding to other RPC requests different from the task corresponding to the first RPC request.
  • the request message corresponding to the task being executed by the server is an RPC request, and may actually be a configuration data acquisition request, a status data acquisition request, or other messages, which are not specifically limited here.
  • the server side interrupts the task corresponding to the first RPC request by deleting the identifier of the task corresponding to the first RPC request in the task list of the server side or interrupting the task being executed.
  • the task corresponding to the first RPC request may not be deleted, and the task may be placed in a corresponding waiting area on the server side.
  • the server side to specifically interrupt the task corresponding to the first RPC request, which is not specifically limited here.
  • the server side implements the concurrency of messages for a single session of a single client through the main thread and the worker thread.
  • the concurrency mechanism and the concurrency mechanism based on validity confirmation are used to realize the concurrency of messages for a single session of a single client, which is not specifically limited here.
  • a server side 600 provided by the embodiment of the present application may be the server side in the above-mentioned FIG. 4 or FIG. 5, and the server side 600 includes:
  • a receiving unit 601 configured to receive a target request sent by a first client, where the target request includes a first identifier, the first identifier instructs the server to preferentially execute a task corresponding to the target request, and the target request includes the first RPC request
  • the second identifier of the target request instructs the server to interrupt the task corresponding to the first RPC request being executed by the server.
  • the first client sending a target request to the server in step 401 in FIG. 4 and the first client sending a target request to the server in step 501 in FIG. 5 , which will not be repeated here.
  • the server side 600 may further include a first processing unit 602, and the first processing unit 602 is configured to: if the server side determines according to the second identifier of the first RPC request that the task being executed by the server side is the first When an RPC requests a corresponding task, the server interrupts the task being executed.
  • the server interrupts the task corresponding to the first RPC request according to the target request.
  • step 502 in FIG. 5 the server interrupts the task corresponding to the first RPC request according to the target request, which is not repeated here. Repeat.
  • the first processing unit 602 is configured to execute the target task corresponding to the target request according to the target request.
  • the server side executes the target task corresponding to the target request, which will not be repeated here.
  • the receiving unit is further configured to receive a second RPC request sent by the second client, where the second RPC request instructs the server to execute a task corresponding to the second RPC request.
  • the second client sends a second RPC request to the server, which will not be repeated here.
  • the server 600 may further include a second processing unit 603, and the second processing unit 603 is configured to execute the task corresponding to the second RPC request.
  • the server side executes the task corresponding to the second RPC request, which will not be repeated here.
  • the first processing unit is further configured to: determine, according to the second identifier of the first RPC request, a task corresponding to the first RPC request in the task list of the server, where the task list includes tasks that have not been executed by the server; or , delete the task corresponding to the first RPC request in the task list.
  • the server interrupts the task corresponding to the first RPC request according to the target request
  • step 502 in FIG. 5 the server interrupts the task corresponding to the first RPC request according to the target request, which is not repeated here. Repeat.
  • the division of modules in the embodiments of the present application is schematic, and is only a logical function division. In actual implementation, there may be other division methods.
  • the functional modules in the various embodiments of the present application may be integrated into one processing unit. In a unit, it can also exist physically alone, or two or more modules can be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.
  • the server side 600 may perform the operations performed by the server side in any of the foregoing embodiments shown in FIG. 4 to FIG. 5 , and details are not repeated here.
  • a client 700 provided by the embodiment of the present application may be the first client in the above-mentioned FIG. 4 or FIG. 5 .
  • the client End 700 includes:
  • a sending unit 701 is configured to send a target request to the server, where the target request includes a first identifier, the first identifier instructs the server to preferentially execute the task corresponding to the target request, and the target request includes the second RPC request.
  • the target request includes instructing the server to interrupt the task corresponding to the first RPC request.
  • step 401 in FIG. 4 the first client sends a target request to the server and step 501 in FIG. 5 : the first client sends a target request to the server, which will not be repeated here.
  • the target request further includes instructing the server to execute the target task corresponding to the target request.
  • the division of modules in the embodiments of the present application is schematic, and is only a logical function division. In actual implementation, there may be other division methods.
  • the functional modules in the various embodiments of the present application may be integrated into one processing unit. In a unit, it can also exist physically alone, or two or more modules can be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.
  • the client 700 may perform the operations performed by the first client in any of the foregoing embodiments shown in FIG. 4 to FIG. 5 , and details are not described herein again.
  • a client 800 provided by the embodiment of the present application may be the second client in the above-mentioned FIG. 4, and the client 800 includes:
  • the sending unit 801 is configured to send a second RPC request to the server, where the second RPC request instructs the server to execute the task corresponding to the second RPC request.
  • the second client sends a second RPC request to the server, which will not be repeated here.
  • the division of modules in the embodiments of the present application is schematic, and is only a logical function division. In actual implementation, there may be other division methods.
  • the functional modules in the various embodiments of the present application may be integrated into one processing unit. In a unit, it can also exist physically alone, or two or more modules can be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.
  • the client 800 may perform the operations performed by the client in the foregoing embodiment shown in FIG. 4 , and details are not repeated here.
  • the server side can be the structure shown in FIG. 9
  • the processing unit provided in FIG. 6 can correspond to the processor 901 in FIG. 9
  • the processor 901 may be a central processing unit (CPU), a specific integrated circuit (application specific integrated circuit, ASIC), or one or more integrated circuits configured to implement the embodiments of the present application , for example: one or more digital signal processors (digital signal processors, DSP), or, one or more field programmable gate arrays (field programmable gate array, FPGA).
  • the server end may further include a communication interface 902, and the communication interface 902 is used for communicating with other server ends.
  • the server side further includes: a memory 903 for storing programs executed by the processor 901 .
  • the memory 903 can be a volatile memory (volatile memory), such as random-access memory (random-access memory, RAM); or a non-volatile memory (non-volatile memory), such as read-only memory (read-only memory, ROM), flash memory (flash memory), hard disk (hard disk drive, HDD) or solid-state drive (solid-state drive, SSD); or a combination of the above-mentioned types of memories, for storing program codes that can realize the method of the present application , server-side configuration files in the TSN domain, or other content.
  • the memory 903 is, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
  • the processor 901 is used for executing the program codes stored in the memory 903 .
  • the specific connection medium between the communication interface 902 , the processor 901 , and the memory 903 is not limited in the embodiments of the present application.
  • the memory 903, the processor 902, and the communication interface 902 are connected through a bus 904 in FIG. 9.
  • the bus is represented by a thick line in FIG. 9, and the connection between other components is only for schematic illustration. , is not limited.
  • the bus can be divided into address bus, data bus, control bus and so on.
  • the communication interface 902 is configured to receive a target request sent by a first client, where the target request includes a first identifier, where the first identifier indicates that the server side preferentially executes a task corresponding to the target request, and the target request includes the The second identifier of the first RPC request, where the target request includes instructing the server to interrupt the task corresponding to the first RPC request.
  • the processor 901 is configured to interrupt the task corresponding to the first RPC request according to the target request.
  • the processor 901 is configured to execute the target task corresponding to the target request according to the target request.
  • the processor 901 is configured to interrupt the task being executed if the server determines that the task being executed by the server is a task corresponding to the first RPC request according to the second identifier.
  • the processor 901 is configured to determine, according to the second identifier, the task corresponding to the first RPC request in the task list of the server, where the task list is a task that has not been executed by the server, and delete the first task in the task list.
  • the processor 901 is configured to determine, according to the second identifier, the task corresponding to the first RPC request in the task list of the server, where the task list is a task that has not been executed by the server, and delete the first task in the task list.
  • the communication interface 902 is configured to receive a first RPC request sent by a client, and receive a target request sent by the client, where the target request includes a first identifier, and the first identifier indicates that the server side preferentially executes the target request
  • the corresponding task the target request includes the second identifier of the first RPC request, and the target request instructs the server to interrupt the task corresponding to the first RPC request; for receiving the second RPC request sent by the second client, The second RPC request instructs the server to execute the task corresponding to the second RPC request.
  • the processor 901 is configured to interrupt the task corresponding to the first RPC request according to the target request.
  • the processor 901 is configured to execute the task corresponding to the second RPC request.
  • the processor 901 is configured to interrupt the task being executed if the server determines that the task being executed by the server is a task corresponding to the first RPC request according to the second identifier.
  • the processor 901 is configured to determine, according to the second identifier, the task corresponding to the first RPC request in the task list of the server, where the task list is a task that has not been executed by the server, and delete the first RPC request in the task list corresponding task.
  • the server side 900 can implement the functions of the server side in FIG. 4 and FIG. 5 , for details, refer to the description of the method related to the drawings.
  • the first client can be the structure shown in FIG. 10 , and the processing unit provided in FIG. 7 can correspond to the processor 1001 in FIG. 10 .
  • the processor 1001 may be a central processing unit (CPU), a specific integrated circuit (application specific integrated circuit, ASIC), or one or more integrated circuits configured to implement the embodiments of the present application , for example: one or more digital signal processors (digital signal processors, DSP), or, one or more field programmable gate arrays (field programmable gate array, FPGA).
  • the first client may also include a communication interface 1002 for communicating with other clients.
  • the client further includes: a memory 1003 for storing programs executed by the processor 1001 .
  • the memory 1003 may be a volatile memory (volatile memory), such as random-access memory (RAM); or a non-volatile memory (non-volatile memory), such as read-only memory (read-only memory, ROM), flash memory (flash memory), hard disk (hard disk drive, HDD) or solid-state drive (solid-state drive, SSD); or a combination of the above-mentioned types of memories, for storing program codes that can realize the method of the present application , configuration files of clients in the TSN domain, or other content.
  • Memory 1003 is, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
  • the processor 1001 is used for executing the program codes stored in the memory 1003 .
  • the specific connection medium between the communication interface 1002 , the processor 1001 , and the memory 1003 is not limited in the embodiments of the present application.
  • the memory 1003, the processor 1002, and the communication interface 1002 are connected through a bus 1004 in FIG. 10.
  • the bus is represented by a thick line in FIG. 10, and the connection mode between other components is only for schematic illustration. , is not limited.
  • the bus can be divided into address bus, data bus, control bus and so on.
  • the communication interface 1002 is configured to send a target request to the server, where the target request includes a first identifier, the first identifier instructs the server to preferentially execute a task corresponding to the target request, and the target request includes the first RPC The second identifier of the request, the target request instructs the server to interrupt the task corresponding to the first RPC request.
  • the target request further includes instructing the server to execute the target task corresponding to the target request.
  • the first server end 1000 can implement the functions of the first server end in FIG. 4 and FIG. 5 , for details, reference may be made to the description of the method related to the drawings.
  • the second client can be the structure shown in FIG. 11 , and the processing unit provided in FIG. 8 can correspond to the processor 1101 in FIG. 11 .
  • the processor 1101 may be a central processing unit (CPU), a specific integrated circuit (application specific integrated circuit, ASIC), or one or more integrated circuits configured to implement the embodiments of the present application , for example: one or more digital signal processors (digital signal processors, DSP), or, one or more field programmable gate arrays (field programmable gate array, FPGA).
  • the second client may also include a communication interface 1102 for communicating with other clients.
  • the client further includes: a memory 1103 for storing programs executed by the processor 1101 .
  • the memory 1103 may be a volatile memory (volatile memory), such as random-access memory (RAM); or a non-volatile memory (non-volatile memory), such as read-only memory (read-only memory, ROM), flash memory (flash memory), hard disk (hard disk drive, HDD) or solid-state drive (solid-state drive, SSD); or a combination of the above-mentioned types of memories, for storing program codes that can realize the method of the present application , configuration files of clients in the TSN domain, or other content.
  • the memory 1103 is, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
  • the processor 1101 is used for executing the program codes stored in the memory 1103 .
  • the specific connection medium between the communication interface 1102 , the processor 1101 , and the memory 1103 is not limited in the embodiments of the present application.
  • the memory 1103, the processor 1102, and the communication interface 1102 are connected through a bus 1104 in FIG. 11.
  • the bus is represented by a thick line in FIG. 11, and the connection between other components is only for schematic illustration. , is not limited.
  • the bus can be divided into address bus, data bus, control bus and so on. For ease of presentation, only one thick line is used in FIG. 11, but it does not mean that there is only one bus or one type of bus.
  • the communication interface 1102 is configured to send a second RPC request to the server, where the second RPC request instructs the server to perform a task corresponding to the second RPC request.
  • the second server end 1100 may implement the functions of the second server end in FIG. 4 , for details, reference may be made to the description of the method related to the accompanying drawing.
  • a NETCONF network system 1200 provided by the embodiment of the present application includes the server end 1201 in the embodiment in FIG. 6 , and the embodiment in FIG. 7 .
  • the server 1201 is connected with the first client 1202 and the second client 1203 respectively.
  • the system may perform the operations performed by the NETCONF network system in the embodiment shown in any of Figures 4-5.
  • the server side 1201 is configured to receive a target request sent by the first client, the target request includes a first identifier, the first identifier instructs the server side to preferentially execute the task corresponding to the target request, the target request includes the second identifier, the The target request instructs the server to interrupt the task corresponding to the first RPC request.
  • the server 1201 is further configured to interrupt the task corresponding to the first RPC request being executed by the server according to the target request, and execute the target task corresponding to the target request according to the target request.
  • the server end 1201 is further configured to receive a second RPC request sent by the second client, where the second RPC request instructs the server end to perform a task corresponding to the second RPC request.
  • the server end 1201 is further configured to: the server end determines, according to the second identifier, that the task being executed by the server end is the task corresponding to the first RPC request, and interrupts the task corresponding to the first RPC request being executed.
  • the server 1201 is further configured to: determine the task corresponding to the first RPC request in the task list of the server according to the second identifier, the task list includes tasks that have not been executed by the server, and delete the first RPC request in the task list corresponding task.
  • the first client 1202 is configured to send a target request to the server, where the target request includes a first identifier, the first identifier instructs the server to preferentially execute the task corresponding to the target request, the target request includes the second identifier, the target The request instructs the server to interrupt the task corresponding to the first RPC request.
  • the second client 1203 is configured to send a second RPC request to the server, where the second RPC request instructs the server to execute a task corresponding to the second RPC request.
  • Embodiments of the present application also provide a computer-readable storage medium, where at least one program instruction or code is stored in the storage medium, and when the program instruction or code is loaded and executed by a processor, the computer realizes the above-mentioned FIG. 4 and FIG. 5
  • Embodiments of the present application provide a computer program, which, when the computer program is executed by a computer, can cause a processor or computer to execute respective steps and/or processes corresponding to the method embodiments in the foregoing FIG. 4 and FIG. 5 .
  • An embodiment of the present application provides a chip, including a processor, configured to call and execute an instruction stored in the memory from a memory, so that a communication device installed with the chip executes the method embodiments in the above-mentioned FIG. 4 and FIG. 5 . corresponding steps and/or processes.
  • An embodiment of the present application provides another chip, including: an input interface, an output interface, a processor, and a memory, the input interface, the output interface, the processor, and the memory are connected through an internal connection path, and the processor is used to execute the The code in the memory, when the code is executed, the processor is configured to execute the corresponding steps and/or processes in the foregoing method embodiments.
  • the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions
  • the apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

Disclosed are a method for managing a network device, and a device and a system, which are used for reducing the waste of network resources. The method comprises: during the process of a server executing a task corresponding to a first RPC request, the server receiving a target request sent by a first client. The target request comprises a first identifier; the first identifier indicates that the server preferentially executes a task corresponding to the target request; the target request comprises a second identifier of the first RPC request; and the target request indicates that the server interrupts, according to the second identifier, the task corresponding to the first RPC request.

Description

管理网络设备的方法、设备和系统Method, device and system for managing network devices
本申请要求于2020年11月30日提交中国专利局、申请号为202011378969.4、发明名称为“管理网络设备的方法、设备和系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202011378969.4 and the invention titled "Method, Device and System for Managing Network Equipment", which was filed with the China Patent Office on November 30, 2020, the entire contents of which are incorporated herein by reference Applying.
技术领域technical field
本申请实施例涉及通信技术领域,尤其涉及管理网络设备的方法、设备和系统。The embodiments of the present application relate to the field of communications technologies, and in particular, to methods, devices, and systems for managing network devices.
背景技术Background technique
网络配置协议(network configuration protocol,NETCONF)是一个实现管理网络设备的网络配置的网络协议。NETCONF网络系统包括客户端和服务器端,客户端和服务器端之间可以互相传输配置数据、状态数据和远程过程调用(remote procedure call,RPC)。客户端可以通过NETCONF增加、修改或删除网络设备的配置,还可以获取网络设备的配置和状态信息。The network configuration protocol (NETCONF) is a network protocol that implements the network configuration for managing network devices. The NETCONF network system includes a client and a server, and the client and the server can transmit configuration data, status data and remote procedure calls (RPC) to each other. The client can add, modify or delete the configuration of the network device through NETCONF, and can also obtain the configuration and status information of the network device.
相关技术中,用户在需要优先执行新的请求任务时,需要等待服务器端在处理完正在执行的任务后才能开始执行新的请求任务,这样大大增加了处理紧急任务或者优先任务的时间,增加了网络资源浪费。In the related art, when a user needs to execute a new request task preferentially, the user needs to wait for the server to process the currently executing task before starting to execute the new request task, which greatly increases the time for processing urgent tasks or priority tasks, and increases Waste of network resources.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种管理网络设备的方法、设备和系统,可以实现优先处理需要优先处理或者紧急的任务,以减小网络资源浪费。The present application provides a method, device and system for managing network devices, which can implement priority processing of tasks that need priority processing or urgent, so as to reduce waste of network resources.
第一方面,提供了一种管理网络设备的方法,在服务器端执行第一远程过程调用RPC请求对应的任务过程中,服务器端接收相连接的第一客户端发送的目标请求,该目标请求包括一个第一标识,这个第一标识指示该服务器端应该优先执行该目标请求对应的任务,即指示该目标请求的任务优先级较高,而且该目标请求包括第一RPC请求的第二标识,服务器端可以根据该第二标识确定第一RPC请求或第一RPC请求对应的任务,该目标请求指示服务器端中断正在执行的第一RPC请求对应的任务。In a first aspect, a method for managing a network device is provided. During the server-side executing a task corresponding to a first remote procedure call RPC request, the server-side receives a target request sent by a connected first client, where the target request includes: A first identifier, this first identifier indicates that the server should preferentially execute the task corresponding to the target request, that is, the task priority of the target request is higher, and the target request includes the second identifier of the first RPC request, the server The end can determine the first RPC request or the task corresponding to the first RPC request according to the second identifier, and the target request instructs the server end to interrupt the task corresponding to the first RPC request being executed.
其中,服务器端中断正在执行的第一RPC请求对应的任务,可以理解为服务器端中止执行第一RPC请求对应的任务,优先执行目标请求中对应的任务。目标请求对应的任务可以是cancel-get指令,该指令用于指示服务器端中断指定的正在执行的任务。Wherein, that the server side interrupts the task corresponding to the first RPC request being executed can be understood as the server side suspends the execution of the task corresponding to the first RPC request, and preferentially executes the task corresponding to the target request. The task corresponding to the target request may be a cancel-get instruction, which is used to instruct the server to interrupt the specified executing task.
本申请实施例中,服务器端在接收到客户端发送的目标请求后,该服务器端可以根据目标请求中断该服务器端正在执行的第一RPC请求对应的任务,使得服务器端可以优先执行需要优先处理或者紧急的任务,减小了服务器端的网络资源浪费。In this embodiment of the present application, after the server side receives the target request sent by the client, the server side can interrupt the task corresponding to the first RPC request being executed by the server side according to the target request, so that the server side can perform priority processing that requires priority processing. Or urgent tasks, reducing the waste of network resources on the server side.
在客户端指示服务器端中断第一RPC请求对应的任务时,往往还会向服务器端发送需要优先处理或者紧急的任务,客户端可以通过发送第二RPC请求来指示服务器端执行第二RPC请求对应的任务,该第二RPC请求对应的任务为需要优先处理或者紧急的任务,也可以通过使目标请求携带需要优先处理或者紧急的任务的方式来实现,下面具体进行说明:When the client instructs the server to interrupt the task corresponding to the first RPC request, it often sends tasks that need to be prioritized or urgent to the server. The client can instruct the server to execute the second RPC request by sending the second RPC request. The task corresponding to the second RPC request is a task that needs to be prioritized or urgent. It can also be realized by making the target request carry a task that needs to be prioritized or urgent. The following is specifically explained:
在一种可能的实现方式中,该目标请求还包括目标任务,该方法还包括:该服务器端根据目标请求中断该服务器端正在执行的第一RPC请求对应的任务,并根据目标请求执行目标请求对应的目标任务,该目标任务可以是需要优先处理或者紧急的任务。在一种可能的实现方式中,该目标任务不包括指示服务器端中断第一RPC请求对应的任务。可选的,目标任务不包括指示中断第一RPC请求对应的任务,目标任务可以是不同于第一RPC请求对应的任务的其他RPC请求对应的RPC任务。In a possible implementation manner, the target request further includes a target task, and the method further includes: the server side interrupts the task corresponding to the first RPC request being executed by the server side according to the target request, and executes the target request according to the target request The corresponding target task, the target task can be a task that needs to be prioritized or urgent. In a possible implementation manner, the target task does not include a task corresponding to instructing the server to interrupt the first RPC request. Optionally, the target task does not include a task corresponding to an instruction to interrupt the first RPC request, and the target task may be an RPC task corresponding to other RPC requests different from the task corresponding to the first RPC request.
在上述实现方式中,该目标请求还包括目标任务,服务器端可以中断第一RPC请求对应的任务并执行目标任务,服务器端不需要等在执行完第一RPC请求对应的任务后再执行目标任务,增快了目标任务的执行效率;并且该目标请求还包括目标任务,客户端可以将包括指示服务器端中断第一RPC请求对应的任务和目标任务的目标请求发送给服务器端,减少了网络资源浪费。In the above implementation manner, the target request further includes a target task, the server can interrupt the task corresponding to the first RPC request and execute the target task, and the server does not need to wait for the task corresponding to the first RPC request to be executed before executing the target task , which speeds up the execution efficiency of the target task; and the target request also includes the target task, and the client can send the target request including the task corresponding to the first RPC request and the target task instructing the server to interrupt the first RPC request to the server, reducing network resources. waste.
另外,在第一方面的一种可能的实现方式中,在该服务器端接收第一客户端发送的目标请求之后,该方法还包括:服务器端接收第二客户端发送的第二RPC请求,该第二RPC请求指示该服务器端执行该第二RPC请求对应的任务;相应地,该服务器端执行该第二RPC请求对应的任务。在一种可能的实现方式中,第一客户端和第二客户端可以是同一客户端,也可以是不同的客户端。In addition, in a possible implementation manner of the first aspect, after the server side receives the target request sent by the first client, the method further includes: the server side receives a second RPC request sent by the second client, the The second RPC request instructs the server to execute the task corresponding to the second RPC request; correspondingly, the server executes the task corresponding to the second RPC request. In a possible implementation manner, the first client and the second client may be the same client, or may be different clients.
上述方法中,服务器端在中断该第一RPC请求对应的任务之后执行该第二RPC请求对应的任务,服务器端不用等执行完第一RPC请求对应的任务在执行第二RPC请求对应的任务,实现优先执行第二RPC请求对应的任务,减小了服务器端的网络资源浪费。In the above method, the server executes the task corresponding to the second RPC request after interrupting the task corresponding to the first RPC request, and the server executes the task corresponding to the second RPC request without waiting for the task corresponding to the first RPC request to be executed. The task corresponding to the second RPC request is preferentially executed, thereby reducing the waste of network resources on the server side.
在一种可能的实现方式中,服务器端根据目标请求中断该第一RPC请求对应的任务,包括:若该服务器端根据该第一RPC请求的第二标识确定该服务器端正在执行的任务为该第一RPC请求对应的任务,则该服务器端中断正在执行的第一RPC对应的任务。In a possible implementation manner, the server side interrupts the task corresponding to the first RPC request according to the target request, including: if the server side determines according to the second identifier of the first RPC request that the task being executed by the server side is the If the first RPC requests a task corresponding to the first RPC, the server interrupts the task corresponding to the first RPC being executed.
上述方法中,具体提供了一种服务器端根据目标请求中断该第一RPC请求对应的任务的方案。In the above method, there is specifically provided a solution in which the server side interrupts the task corresponding to the first RPC request according to the target request.
在一种可能的实现方式中,则该服务器端中断正在执行的任务,包括:服务器端停止执行正在执行的任务;或停止执行正在执行的任务并将第一RPC请求对应的任务标识放到服务器端的任务列表中。In a possible implementation manner, the server side interrupts the task being executed, including: the server side stops executing the task being executed; or stops executing the task being executed and puts the task identifier corresponding to the first RPC request to the server on the task list on the side.
在一种可能的实现方式中,服务器端会将需要执行但未执行的任务根据预设规则排列在任务列表中,任务列表中的所有任务有一一对应的标识。服务器端根据该目标请求中断该第一RPC请求对应的任务包括:该服务器端根据该第二标识确定任务列表中该第一RPC请求对应的任务,该任务列表包括该服务器端还未执行的任务;该服务器端删除该任务列表中该第一RPC请求对应的任务。In a possible implementation manner, the server side arranges tasks that need to be executed but not executed in a task list according to a preset rule, and all tasks in the task list have a one-to-one corresponding identifier. The server side interrupting the task corresponding to the first RPC request according to the target request includes: the server side determines the task corresponding to the first RPC request in the task list according to the second identifier, and the task list includes tasks that have not been executed by the server side. ; The server side deletes the task corresponding to the first RPC request in the task list.
该种可能的实现方式中,具体提供了一种服务器端根据目标请求中断该第一RPC请求对应的任务时,该第一RPC请求对应的任务还未执行的方案,提升了本方案的可实现性。In this possible implementation manner, a solution is specifically provided in which the task corresponding to the first RPC request has not been executed when the server side interrupts the task corresponding to the first RPC request according to the target request, which improves the achievability of the solution. sex.
在一种可能的实现方式中,客户端向服务器端发送的请求不仅包括RPC请求,还包括配置数据获取请求和状态数据获取请求。In a possible implementation manner, the request sent by the client to the server not only includes an RPC request, but also includes a configuration data acquisition request and a status data acquisition request.
第二方面,提供了一种管理网络设备的方法,该方法包括:第一客户端在执行第一远 程过程调用RPC请求对应的任务的过程中,向该服务器端发送目标请求,该目标请求包括第一标识,该第一标识指示该服务器端优先执行该目标请求对应的任务,该目标请求包括该第二标识,该目标请求指示该服务器端中断服务器端正在执行的该第一RPC请求对应的任务。In a second aspect, a method for managing a network device is provided. The method includes: a first client sends a target request to the server in the process of executing a task corresponding to the first remote procedure call RPC request, where the target request includes A first identifier, the first identifier instructs the server to preferentially execute the task corresponding to the target request, the target request includes the second identifier, and the target request instructs the server to interrupt the corresponding first RPC request being executed by the server. Task.
该种可能的实现方式中,客户端可以在发送第一RPC请求后发送目标请求,使得服务器端中断该第一RPC请求对应的任务,客户端可以中断服务器端执行的任务,从而减小了服务器端的网络资源浪费。In this possible implementation manner, the client can send the target request after sending the first RPC request, so that the server can interrupt the task corresponding to the first RPC request, and the client can interrupt the task executed by the server, thereby reducing the number of servers. waste of network resources.
在一种可能的实现方式中,该目标请求还指示该服务器端执行目标请求对应的目标任务。In a possible implementation manner, the target request further instructs the server to execute the target task corresponding to the target request.
该种可能的实现方式中,目标请求还包括目标任务,第一客户端可以将包括指示服务器端中断第一RPC请求对应的任务和目标任务的目标请求发送给服务器端,不用分开发送,减少了网络资源浪费。In this possible implementation manner, the target request further includes the target task, and the first client can send the target request including the task corresponding to the first RPC request and the target task instructing the server to interrupt the first RPC request to the server, without sending them separately, reducing the need for Waste of network resources.
第三方面,提供了一种管理网络设备的方法,该方法具体包括:第二客户端向该服务器端发送第二RPC请求,该第二RPC请求指示该服务器端执行该第二RPC请求对应的任务。In a third aspect, a method for managing network devices is provided, the method specifically includes: a second client sends a second RPC request to the server, where the second RPC request instructs the server to execute a corresponding request for the second RPC Task.
在一种可能的实现方式中,本申请实施例中发送第二RPC请求的客户端和发送目标请求的客户端为同一个客户端。In a possible implementation manner, in this embodiment of the present application, the client that sends the second RPC request and the client that sends the target request are the same client.
第四方面,提供一种设备,该设备包括用于执行第一方面或第一方面中任意一种可能的实现方式所提供的管理网络设备的方法的单元,例如,该设备包括:接收单元,用于接收第一客户端发送的目标请求,该目标请求包括第一标识,该第一标识指示该服务器端优先执行该目标请求对应的任务,该目标请求包括该第一RPC请求的第二标识,该目标请求指示该服务器端中断该服务器端正在执行的第一RPC请求对应的任务。In a fourth aspect, a device is provided, the device includes a unit for executing the method for managing a network device provided in the first aspect or any possible implementation manner of the first aspect, for example, the device includes: a receiving unit, Used to receive a target request sent by a first client, the target request includes a first identifier, the first identifier instructs the server to preferentially execute a task corresponding to the target request, and the target request includes a second identifier of the first RPC request , the target request instructs the server to interrupt the task corresponding to the first RPC request being executed by the server.
第五方面,提供一种设备,该设备包括用于执行第二方面或第二方面中任意一种可能的实现方式所提供的管理网络设备的方法的单元,例如,该设备包括:发送单元,用于向服务器端发送目标请求,该目标请求包括第一标识,该第一标识指示该服务器端优先执行该目标请求对应的任务,该目标请求包括该第一RPC请求的第二标识,该目标请求指示该服务器端中断该服务器端正在执行的第一RPC请求对应的任务。In a fifth aspect, a device is provided, the device includes a unit for executing the method for managing a network device provided in the second aspect or any possible implementation manner of the second aspect, for example, the device includes: a sending unit, Used to send a target request to the server, the target request includes a first identifier, the first identifier instructs the server to preferentially execute the task corresponding to the target request, the target request includes the second identifier of the first RPC request, the target The request instructs the server to interrupt the task corresponding to the first RPC request being executed by the server.
第六方面,提供一种客户端,该客户端包括:发送单元,用于向服务器端发送第二RPC请求,该第二RPC请求指示该服务器端执行该第二RPC请求对应的任务。In a sixth aspect, a client is provided, the client comprising: a sending unit configured to send a second RPC request to a server, where the second RPC request instructs the server to execute a task corresponding to the second RPC request.
该客户端具有实现上述第三方面或第三方面任意一种可能实现方式的方法的功能。该功能可以通过硬件实现,也可以通过软件程序实现。该硬件或软件包括一个或多个与上述功能相对应的模块,例如:发送单元。The client has the function of implementing the third aspect or the method of any possible implementation manner of the third aspect. This function can be realized by hardware or by software program. The hardware or software includes one or more modules corresponding to the above functions, such as a sending unit.
第七方面,提供一种服务器端,该服务器端包括至少一个处理器、存储器、通信接口以及存储在存储器中并可在处理器上运行的计算机执行指令,当计算机执行指令被处理器执行时,处理器执行如上述第一方面或第一方面任意一种可能的实现方式的方法。A seventh aspect provides a server side, the server side includes at least one processor, a memory, a communication interface, and a computer-executable instruction stored in the memory and executable on the processor, when the computer-executable instruction is executed by the processor, The processor executes the method according to the first aspect or any possible implementation manner of the first aspect.
第八方面,提供一种第一客户端,该第一客户端包括至少一个处理器、存储器、通信接口以及存储在存储器中并可在处理器上运行的计算机执行指令,当计算机执行指令被处理器执行时,处理器执行如上述第二方面或第二方面任意一种可能的实现方式的方法。In an eighth aspect, a first client is provided, the first client comprising at least one processor, a memory, a communication interface, and computer-executable instructions stored in the memory and executable on the processor, when the computer-executable instructions are processed When the processor executes, the processor executes the method according to the second aspect or any possible implementation manner of the second aspect.
第九方面,提供一种第二客户端,该第二客户端包括至少一个处理器、存储器、通信接口以及存储在存储器中并可在处理器上运行的计算机执行指令,当计算机执行指令被处理器执行时,处理器执行如上述第三方面或第三方面任意一种可能的实现方式的方法。In a ninth aspect, a second client is provided, the second client comprising at least one processor, a memory, a communication interface, and computer-executable instructions stored in the memory and executable on the processor, when the computer-implemented instructions are processed When the processor executes, the processor executes the method according to the third aspect or any possible implementation manner of the third aspect.
第十方面,提供一种存储一个或多个计算机执行指令的计算机可读存储介质,当计算机执行指令或代码被设备执行时,使得所述设备执行如上述第一方面或第一方面任意一种可能的实现方式的方法。A tenth aspect provides a computer-readable storage medium that stores one or more computer-executable instructions. When the computer-executable instructions or codes are executed by a device, the device is made to perform the above-mentioned first aspect or any one of the first aspects. possible implementation methods.
第十一方面,提供一种存储一个或多个计算机执行指令的计算机可读存储介质,当计算机执行指令或代码被设备执行时,使得设备执行如上述第二方面或第二方面任意一种可能的实现方式的方法。In an eleventh aspect, a computer-readable storage medium storing one or more computer-executable instructions is provided, when the computer-executable instructions or codes are executed by a device, the device can perform the second aspect or any one of the second aspects described above. method of implementation.
第十二方面,提供一种存储一个或多个计算机执行指令的计算机可读存储介质,当计算机执行指令或代码被设备执行时,使得设备执行如上述第三方面或第三方面任意一种可能的实现方式的方法。A twelfth aspect provides a computer-readable storage medium that stores one or more computer-executable instructions. When the computer-executable instructions or codes are executed by a device, the device can perform the third aspect or any one of the third aspects. method of implementation.
第十三方面,提供了一种系统,该系统包括客户端和服务器端。该系统中的服务器端可以执行上述第一方面或第一方面任意一种可能的实现方式的方法。该系统中的客户端可以执行上述第二方面或第二方面任意一种可能的实现方式的方法。A thirteenth aspect provides a system including a client and a server. The server side in the system may execute the method of the first aspect or any possible implementation manner of the first aspect. The client in the system may execute the method of the second aspect or any possible implementation manner of the second aspect.
第十四方面,提供了一种计算机程序(产品),所述计算机程序(产品)包括:计算机程序代码,当所述计算机程序代码被计算机运行时,使得所述计算机执行第一方面或第一方面的任一种可能的实现方式中的方法,或者执行第二方面或第二方面的任一种可能的实现方式中的方法,执行第三方面或第三方面的任一种可能的实现方式中的方法。A fourteenth aspect provides a computer program (product), the computer program (product) comprising: computer program code, when the computer program code is executed by a computer, causing the computer to perform the first aspect or the first A method in any possible implementation of the aspect, or performing the second aspect or a method in any possible implementation of the second aspect, performing the third aspect or any possible implementation of the third aspect method in .
附图说明Description of drawings
图1为NETCONF网络系统的场景示意图;Fig. 1 is the scene schematic diagram of NETCONF network system;
图2为相关技术的流程示意图;Fig. 2 is a schematic flow chart of the related art;
图3为本申请实施例中管理网络设备方法的流程示意图;3 is a schematic flowchart of a method for managing network devices in an embodiment of the present application;
图4为本申请实施例中管理网络设备方法的流程示意图;4 is a schematic flowchart of a method for managing network devices in an embodiment of the present application;
图5为本申请实施例中管理网络设备方法的流程示意图;5 is a schematic flowchart of a method for managing network devices in an embodiment of the present application;
图6为本申请实施例中服务器端的结构示意图;6 is a schematic structural diagram of a server side in an embodiment of the present application;
图7为本申请实施例中客户端的结构示意图;FIG. 7 is a schematic structural diagram of a client in an embodiment of the present application;
图8为本申请实施例中客户端的结构示意图;FIG. 8 is a schematic structural diagram of a client in an embodiment of the present application;
图9为本申请实施例中服务器端的结构示意图;FIG. 9 is a schematic structural diagram of a server side in an embodiment of the present application;
图10为本申请实施例中客户端的结构示意图;FIG. 10 is a schematic structural diagram of a client in an embodiment of the present application;
图11为本申请实施例中客户端的结构示意图;FIG. 11 is a schematic structural diagram of a client in an embodiment of the present application;
图12为本申请实施例中NETCONF网络系统结构示意图。FIG. 12 is a schematic structural diagram of a NETCONF network system in an embodiment of the present application.
具体实施方式Detailed ways
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。 此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second" and the like in the description and claims of the present application and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.
请参阅图1,网络配置协议(network configuration protocol,NETCONF)是一个管理网络设备的网络配置的网络协议。NETCONF网络系统包括客户端和服务器端,一个服务器端可以与多个客户端相连接,客户端和服务器端之间可以互相传输配置数据、状态数据和远程过程调用(remote procedure call,RPC)。客户端可以通过NETCONF协议增加、修改或删除服务器端的网络设备的配置,并且可以获取服务器端的网络设备的配置和状态信息。Referring to Figure 1, the network configuration protocol (NETCONF) is a network protocol that manages the network configuration of network devices. The NETCONF network system includes a client and a server. One server can be connected to multiple clients, and the client and the server can transmit configuration data, status data and remote procedure calls (RPC) to each other. The client can add, modify or delete the configuration of the network device on the server side through the NETCONF protocol, and can obtain the configuration and status information of the network device on the server side.
请参阅图2,在相关技术中,客户端在进行新的报文查询时,无法中断服务器端正在执行的任务。对于交互式的客户端,客户端可以发送新的第二RPC请求,服务器端也只有在处理完第一RPC请求中的任务之后,才会处理第二RPC请求中的任务。Referring to FIG. 2 , in the related art, when the client performs a new message query, the task being executed by the server cannot be interrupted. For an interactive client, the client may send a new second RPC request, and the server will only process the tasks in the second RPC request after processing the tasks in the first RPC request.
基于上述NETCONF网络系统,下面对本申请实施例中的管理网络设备的方法进行描述:Based on the above-mentioned NETCONF network system, the method for managing network equipment in the embodiment of the present application is described below:
请参阅图3,本申请实施例中,在服务器端执行第一RPC请求对应的任务过程中,当客户端需要服务器端优先执行第二RPC请求时,第一客户端会向服务器端发送带有第一标识的目标请求,相应地,服务器端接收第一客户端发送的带有第一标识的目标请求,该目标请求包括该第一RPC请求的第二标识,该目标请求指示服务器端中断服务器端正在执行的第一RPC请求对应的任务,该第一标识指示服务器端优先处理该目标请求,即当服务器端识别出该目标请求带有该第一标识时,服务器端根据该第二标识中断第一RPC请求对应的任务。Referring to FIG. 3, in the embodiment of the present application, when the server side executes the task corresponding to the first RPC request, when the client side needs the server side to preferentially execute the second RPC request, the first client side will send a message to the server side with The target request of the first identifier, correspondingly, the server side receives the target request with the first identifier sent by the first client, the target request includes the second identifier of the first RPC request, and the target request instructs the server side to interrupt the server The task corresponding to the first RPC request being executed by the terminal, the first identifier instructs the server to prioritize the processing of the target request, that is, when the server recognizes that the target request carries the first identifier, the server interrupts according to the second identifier The first RPC requests the corresponding task.
本申请实施例中,服务器端在根据目标请求中断第一RPC请求对应的任务之后,服务器端可以执行目标请求对应的目标任务,也可以执行第二客户端发送的第二RPC对应的任务。下面分别进行说明:In the embodiment of the present application, after the server end interrupts the task corresponding to the first RPC request according to the target request, the server end may execute the target task corresponding to the target request, or may execute the task corresponding to the second RPC sent by the second client. The following are respectively explained:
一、服务器端在根据目标请求中断第一RPC请求对应的任务之后,服务器端执行第二客户端发送的第二RPC对应的任务。1. After the server interrupts the task corresponding to the first RPC request according to the target request, the server executes the task corresponding to the second RPC sent by the second client.
请参阅图4,本申请实施例中管理网络设备的方法的一个流程包括:Referring to FIG. 4, a process of the method for managing network devices in the embodiment of the present application includes:
401、第一客户端向服务器端发送目标请求。401. The first client sends a target request to the server.
在服务器端执行第一远程过程调用RPC请求对应的任务过程中,第一客户端向服务器端发送目标请求,相应地,服务器端接收客户端发送的目标请求,该目标请求指示服务器端中断服务器端正在执行的第一RPC请求对应的任务,该目标请求包括第一RPC请求的第二标识。During the server-side executing the task corresponding to the first remote procedure call RPC request, the first client-side sends a target request to the server-side, and accordingly, the server-side receives the target-side request sent by the client-side, and the target-side request instructs the server-side to interrupt the server When executing the task corresponding to the first RPC request, the target request includes the second identifier of the first RPC request.
具体地,该目标请求带有优先标识即第一标识,该第一标识用于指示该目标请求为一个需要优先处理的报文,需要服务器端在收到该目标请求后优先处理该目标请求;该目标请求还包括第一RPC请求的第二标识。例如,该目标请求的一个实施例的程序如下所示:Specifically, the target request has a priority identifier, that is, a first identifier, and the first identifier is used to indicate that the target request is a message that needs to be preferentially processed, and the server side needs to preferentially process the target request after receiving the target request; The target request also includes the second identifier of the first RPC request. For example, the procedure for one embodiment of the target request is as follows:
+---x cancel-get+---x cancel-get
+----input+----input
|+---w message-id uint32|+---w message-id uint32
该目标请求包括一种cancel-get指令,该指令用于指示服务器端中断一个服务器端正在执行的指定的任务;用户可以在第一客户端输入预设的快捷指令的方式使得客户端向服务器端发送该指令;该指令中的message-id指示一个指定的请求报文,该message-id包括第一RPC请求的第二标识。The target request includes a cancel-get instruction, which is used to instruct the server to interrupt a specified task being executed by the server; the user can enter a preset shortcut instruction on the first client to make the client send the server to the server. Send the instruction; the message-id in the instruction indicates a specified request message, and the message-id includes the second identifier of the first RPC request.
该目标请求的另一个实施例的程序如下所示:The procedure of another embodiment of the target request is as follows:
<rpc urg=”true”message-id=”101”<rpc urg="true" message-id="101"
Xmlns=”urn:ietf:params:ns:netconf:base:1.0”>Xmlns="urn:ietf:params:ns:netconf:base:1.0">
<cancel-get Xmlns=”urn:huawei:yang:huawei-netconf”><cancel-get Xmlns="urn:huawei:yang:huawei-netconf">
<message-id>100</message-id><message-id>100</message-id>
</cancel-get></cancel-get>
</rpc></rpc>
该目标请求包括一种cancel-get指令,该指令用于指示服务器端中断一个服务器端正在执行的指定的任务;用户可以在客户端输入预设的快捷指令的方式使得第一客户端向服务器端发送该指令,例如该快捷指令可以为Ctrl+c。上述urg标识为一个优先标识即第一标识,用于指示该指令为一个优先级高于常规指令的紧急指令,服务器端在收到该指令后应当优先处理该报文,即优先执行该目标请求对应的任务;例如,服务器端可以将查询指令和通知指令设置为优先级低的常规指令,将该中断指令设置为优先级高的常规指令。该指令中的message-id指示一个指定的请求报文对应的任务,该报文的标识为“101”,即第一RPC请求的第二标识为101。服务器端在接收到该指令后,会优先执行中断message-id为101的报文对应的任务。The target request includes a cancel-get instruction, which is used to instruct the server side to interrupt a specified task being executed by the server side; the user can input a preset shortcut instruction on the client side to make the first client end to the server side Send the command, for example, the shortcut command can be Ctrl+c. The above urg identifier is a priority identifier, that is, the first identifier, which is used to indicate that the instruction is an emergency instruction with a higher priority than a conventional instruction. After receiving the instruction, the server should prioritize the processing of the message, that is, execute the target request with priority. Corresponding tasks; for example, the server side can set the query instruction and the notification instruction as a regular instruction with a low priority, and set the interrupt instruction as a regular instruction with a high priority. The message-id in the instruction indicates a task corresponding to a specified request message, and the identifier of the message is "101", that is, the second identifier of the first RPC request is 101. After receiving the command, the server will preferentially execute the task corresponding to the interrupt message whose message-id is 101.
402、服务器端根据目标请求中断第一RPC请求对应的任务。402. The server side interrupts the task corresponding to the first RPC request according to the target request.
服务器端根据该目标请求中的第一RPC请求的第二标识中断服务器端正在执行的该第一RPC请求对应的任务。The server side interrupts the task corresponding to the first RPC request being executed by the server side according to the second identifier of the first RPC request in the target request.
具体地,当服务器端收到该目标请求时,服务器端根据该目标请求的第一标识优先处理该目标请求。服务器端根据该目标请求中的第一RPC请求的第二标识,确定该第二标识是否与当前正在执行的任务的标识相同,若相同,则中断当前正在执行的任务;若不同,则遍历该服务器端的任务,确定是否存在与该目标请求中的第二标识相同的任务的标识,若存在,则删除该任务;若不存在,则丢弃该目标请求。Specifically, when the server side receives the target request, the server side preferentially processes the target request according to the first identifier of the target request. According to the second identifier of the first RPC request in the target request, the server determines whether the second identifier is the same as the identifier of the currently executing task, if the same, interrupts the currently executing task; if not, traverses the The task on the server side determines whether there is an identifier of the task that is the same as the second identifier in the target request, and if so, deletes the task; if not, discards the target request.
403、第二客户端向服务器端发送第二RPC请求。403. The second client sends a second RPC request to the server.
客户端向服务器端发送第二RPC请求,相应地,服务器端接收客户端发送的第二RPC请求,该第二RPC请求指示服务器端执行该第二RPC请求对应的任务,本实施例中该第二RPC请求对应的任务是需要优先处理或者紧急的任务。The client sends a second RPC request to the server, and accordingly, the server receives the second RPC request sent by the client, and the second RPC request instructs the server to execute the task corresponding to the second RPC request. The task corresponding to the second RPC request is a task that needs to be prioritized or urgent.
404、服务器端执行该第二RPC请求对应的任务。404. The server side executes the task corresponding to the second RPC request.
服务器端根据第二RPC请求执行该第二RPC请求对应的任务。The server performs the task corresponding to the second RPC request according to the second RPC request.
本申请实施例中,服务器端正在执行的任务对应的请求和第二客户端向服务器端向发 送的请求为RPC请求,实际上还可以是配置数据获取请求和状态数据获取请求等报文,具体此处不做限定。In the embodiment of the present application, the request corresponding to the task being executed by the server and the request sent by the second client to the server are RPC requests, and may actually be messages such as configuration data acquisition requests and status data acquisition requests. There is no limitation here.
本申请实施例中,服务器端通过删除服务器端的任务列表中的第一RPC请求的对应的任务的标识或者停止执行正在执行的任务的方式实现中断第一RPC请求对应的任务,除此之外,服务器端也可以不删除第一RPC请求对应的任务并将该任务放到服务器端相应地等候处理区,服务器端具体实现中断第一RPC请求对应的任务的方法有多种,具体此处不做限定。In the embodiment of the present application, the server side interrupts the task corresponding to the first RPC request by deleting the identifier of the task corresponding to the first RPC request in the task list of the server side or by stopping the execution of the task being executed. The server side may also not delete the task corresponding to the first RPC request and place the task in the corresponding waiting area on the server side. There are various methods for the server side to implement interrupting the task corresponding to the first RPC request. limited.
本申请实施例中,服务器端通过主线程和工作线程的方式实现对于单个客户端的单个会话的报文并发,除此之外,服务器端也可以通过基于封锁技术的并发机制、基于时间戳机制的并发机制和基于有效性确认的并发机制等方式实现对于单个客户端的单个会话的报文并发,具体此处不做限定。In the embodiment of the present application, the server side implements the concurrency of messages for a single session of a single client through the main thread and the worker thread. The concurrency mechanism and the concurrency mechanism based on validity confirmation are used to realize the concurrency of messages for a single session of a single client, which is not specifically limited here.
本申请实施例中,向服务器端发送第二RPC请求的客户端是第二客户端,向服务器端发送目标请求的客户端是第一客户端,除此之外,向服务器端发送第二RPC请求的客户端和向服务器端发送目标请求的客户端也可以是同一个客户端,具体此处不做限定。In this embodiment of the present application, the client that sends the second RPC request to the server is the second client, the client that sends the target request to the server is the first client, and in addition, the second RPC is sent to the server The requesting client and the client sending the target request to the server may also be the same client, which is not limited here.
本实施例中,目标请求指示服务器端中断第一RPC请求对应的任务,目标请求还可以指示服务器端执行目标请求对应的任务,下面分别进行说明:In this embodiment, the target request instructs the server to interrupt the task corresponding to the first RPC request, and the target request may also instruct the server to execute the task corresponding to the target request, which will be described below:
二、服务器端在根据目标请求中断第一RPC请求对应的任务之后,服务器端执行目标请求对应的目标任务。2. After the server side interrupts the task corresponding to the first RPC request according to the target request, the server side executes the target task corresponding to the target request.
请参阅图5,本申请实施例中管理网络设备的方法的另一个流程包括:Referring to FIG. 5 , another process of the method for managing network devices in the embodiment of the present application includes:
501、第一客户端向服务器端发送目标请求。501. The first client sends a target request to the server.
在服务器端执行第一远程过程调用RPC请求对应的任务过程中,第一客户端向服务器端发送目标请求,相应地,服务器端接收客户端发送的目标请求,该目标请求指示服务器端中断服务器端正在执行的第一RPC请求对应的任务,该目标请求包括第一RPC请求的第二标识。该目标请求还指示服务器端执行目标请求对应的目标任务,本实施例中,该目标任务不包括指示中断第一RPC请求对应的任务,目标任务可以是不同于第一RPC请求对应的任务的其他RPC请求对应的任务。During the server-side executing the task corresponding to the first remote procedure call RPC request, the first client-side sends a target request to the server-side, and accordingly, the server-side receives the target-side request sent by the client-side, and the target-side request instructs the server-side to interrupt the server When executing the task corresponding to the first RPC request, the target request includes the second identifier of the first RPC request. The target request also instructs the server to execute the target task corresponding to the target request. In this embodiment, the target task does not include the task corresponding to the instruction to interrupt the first RPC request, and the target task may be different from the task corresponding to the first RPC request. The task corresponding to the RPC request.
具体地,该目标请求带有优先标识即第一标识,该第一标识用于指示该目标请求为一个紧急报文,需要服务器端在收到该目标请求后优先处理该目标请求;该目标请求还包括第一RPC请求的第二标识。例如,该目标请求的一个实施例的程序如下所示:Specifically, the target request has a priority identifier, that is, a first identifier, and the first identifier is used to indicate that the target request is an urgent message, and the server side needs to prioritize the target request after receiving the target request; the target request Also included is a second identification of the first RPC request. For example, the procedure for one embodiment of the target request is as follows:
+---x cancel-get+---x cancel-get
+----input+----input
|+---w message-id uint32|+---w message-id uint32
该目标请求包括一种cancel-get指令,该指令用于指示服务器端中断一个服务器端正在执行的指定的任务;用户可以在第一客户端输入预设的快捷指令的方式使得客户端向服务器端发送该指令;该指令中的message-id指示一个指定的请求报文,该message-id包括第一RPC请求的第二标识。The target request includes a cancel-get instruction, which is used to instruct the server to interrupt a specified task being executed by the server; the user can enter a preset shortcut instruction on the first client to make the client send the server to the server. Send the instruction; the message-id in the instruction indicates a specified request message, and the message-id includes the second identifier of the first RPC request.
该目标请求的另一个实施例的程序如下所示:The procedure of another embodiment of the target request is as follows:
<rpc urg=”true”message-id=”101”<rpc urg="true" message-id="101"
Xmlns=”urn:ietf:params:ns:netconf:base:1.0”>Xmlns="urn:ietf:params:ns:netconf:base:1.0">
<cancel-get Xmlns=”urn:huawei:yang:huawei-netconf”><cancel-get Xmlns="urn:huawei:yang:huawei-netconf">
<message-id>100</message-id><message-id>100</message-id>
</cancel-get></cancel-get>
</rpc></rpc>
该目标请求包括一种cancel-get指令,该指令用于指示服务器端中断一个服务器端正在执行的指定的任务;用户可以在客户端输入预设的快捷指令的方式使得第一客户端向服务器端发送该指令,例如该快捷指令可以为Ctrl+c。上述urg标识可以为一个优先标识即第一标识,用于指示该指令为一个优先级高于常规指令的紧急指令,服务器端在收到该指令后应当优先处理该报文,即优先执行该目标请求对应的任务;例如,服务器端可以将查询指令和通知指令设置为优先级低的常规指令,将该中断指令设置为优先级高的常规指令。该指令中的message-id指示一个指定的请求报文对应的任务,该报文的标识为“101”,即第一RPC请求的第二标识为101。服务器端在接收到该指令后,会优先执行中断message-id为101的报文对应的任务。The target request includes a cancel-get instruction, which is used to instruct the server side to interrupt a specified task being executed by the server side; the user can input a preset shortcut instruction on the client side to make the first client end to the server side Send the command, for example, the shortcut command can be Ctrl+c. The above-mentioned urg identifier can be a priority identifier, that is, the first identifier, which is used to indicate that the instruction is an emergency instruction with a higher priority than a conventional instruction. The corresponding task is requested; for example, the server side can set the query instruction and the notification instruction as a regular instruction with a low priority, and set the interrupt instruction as a regular instruction with a high priority. The message-id in the instruction indicates a task corresponding to a specified request message, and the identifier of the message is "101", that is, the second identifier of the first RPC request is 101. After receiving the command, the server will preferentially execute the task corresponding to the interrupt message whose message-id is 101.
502、服务器端根据目标请求中断第一RPC请求对应的任务。502. The server side interrupts the task corresponding to the first RPC request according to the target request.
本申请实施例中,步骤504与图4中步骤402类似,具体此处不再赘述In this embodiment of the present application, step 504 is similar to step 402 in FIG. 4 , and details are not repeated here.
503、服务器端执行目标请求对应的目标任务。503. The server side executes the target task corresponding to the target request.
服务器端根据目标请求执行目标请求对应的目标任务。在一种可能的实现方式中,目标任务不包括cancel-get指令,目标任务为区别于第一RPC请求对应任务的其他RPC请求对应的任务。The server side executes the target task corresponding to the target request according to the target request. In a possible implementation manner, the target task does not include the cancel-get instruction, and the target task is a task corresponding to other RPC requests different from the task corresponding to the first RPC request.
本申请实施例中,服务器端正在执行的任务对应的请求报文为RPC请求,实际上还可以是配置数据获取请求和状态数据获取请求等报文,具体此处不做限定。In this embodiment of the present application, the request message corresponding to the task being executed by the server is an RPC request, and may actually be a configuration data acquisition request, a status data acquisition request, or other messages, which are not specifically limited here.
本申请实施例中,服务器端通过删除服务器端的任务列表中的第一RPC请求对应的任务的标识或者中断正在执行的任务的方式实现中断第一RPC请求对应的任务,除此之外,服务器端也可以不删除第一RPC请求对应的任务并将该任务放到服务器端相应地等候处理区,服务器端具体实现中断第一RPC请求对应的任务的方法有多种,具体此处不做限定。In the embodiment of the present application, the server side interrupts the task corresponding to the first RPC request by deleting the identifier of the task corresponding to the first RPC request in the task list of the server side or interrupting the task being executed. Alternatively, the task corresponding to the first RPC request may not be deleted, and the task may be placed in a corresponding waiting area on the server side. There are various methods for the server side to specifically interrupt the task corresponding to the first RPC request, which is not specifically limited here.
本申请实施例中,服务器端通过主线程和工作线程的方式实现对于单个客户端的单个会话的报文并发,除此之外,服务器端也可以通过基于封锁技术的并发机制、基于时间戳机制的并发机制和基于有效性确认的并发机制等方式实现对于单个客户端的单个会话的报文并发,具体此处不做限定。In the embodiment of the present application, the server side implements the concurrency of messages for a single session of a single client through the main thread and the worker thread. The concurrency mechanism and the concurrency mechanism based on validity confirmation are used to realize the concurrency of messages for a single session of a single client, which is not specifically limited here.
下面对本申请实施例中的服务器端进行描述,请参阅图6,本申请实施例提供的一种服务器端600,该服务器端可以为上述图4或图5中服务器端,该服务器端600包括:The server side in the embodiment of the present application will be described below. Referring to FIG. 6, a server side 600 provided by the embodiment of the present application may be the server side in the above-mentioned FIG. 4 or FIG. 5, and the server side 600 includes:
接收单元601,用于接收第一客户端发送的目标请求,该目标请求包括第一标识,该第一标识指示该服务器端优先执行该目标请求对应的任务,该目标请求包括该第一RPC请求的第二标识,该目标请求指示该服务器端中断该服务器端正在执行的第一RPC请求对应的任务。具体实现方式,请参考图4中步骤401中第一客户端向服务器端发送目标请求和 图5中步骤501中第一客户端向服务器端发送目标请求,此处不再赘述。A receiving unit 601, configured to receive a target request sent by a first client, where the target request includes a first identifier, the first identifier instructs the server to preferentially execute a task corresponding to the target request, and the target request includes the first RPC request The second identifier of the target request instructs the server to interrupt the task corresponding to the first RPC request being executed by the server. For a specific implementation, please refer to the first client sending a target request to the server in step 401 in FIG. 4 and the first client sending a target request to the server in step 501 in FIG. 5 , which will not be repeated here.
可选的,该服务器端600还可以包括第一处理单元602,第一处理单元602用于:若该服务器端根据该第一RPC请求的第二标识确定该服务器端正在执行的任务为该第一RPC请求对应的任务,则该服务器端中断正在执行的任务。具体实现方式,请参考图4中步骤402:服务器端根据目标请求中断第一RPC请求对应的任务和图5中步骤502:服务器端根据目标请求中断第一RPC请求对应的任务,此处不再赘述。Optionally, the server side 600 may further include a first processing unit 602, and the first processing unit 602 is configured to: if the server side determines according to the second identifier of the first RPC request that the task being executed by the server side is the first When an RPC requests a corresponding task, the server interrupts the task being executed. For the specific implementation, please refer to step 402 in FIG. 4: the server interrupts the task corresponding to the first RPC request according to the target request and step 502 in FIG. 5: the server interrupts the task corresponding to the first RPC request according to the target request, which is not repeated here. Repeat.
具体地,第一处理单元602用于根据目标请求执行目标请求对应的目标任务。具体实现方式,请参考图5中步骤503:服务器端执行目标请求对应的目标任务,此处不再赘述。Specifically, the first processing unit 602 is configured to execute the target task corresponding to the target request according to the target request. For a specific implementation manner, please refer to step 503 in FIG. 5 : the server side executes the target task corresponding to the target request, which will not be repeated here.
具体地,接收单元还用于接收该第二客户端发送的第二RPC请求,该第二RPC请求指示该服务器端执行该第二RPC请求对应的任务。具体实现方式,请参考图4中步骤403:第二客户端向服务器端发送第二RPC请求,此处不再赘述。Specifically, the receiving unit is further configured to receive a second RPC request sent by the second client, where the second RPC request instructs the server to execute a task corresponding to the second RPC request. For a specific implementation, please refer to step 403 in FIG. 4 : the second client sends a second RPC request to the server, which will not be repeated here.
可选的,该服务器端600还可以包括第二处理单元603,该第二处理单元603用于执行该第二RPC请求对应的任务。具体实现方式,请参考图4中步骤404:服务器端执行该第二RPC请求对应的任务,此处不再赘述。Optionally, the server 600 may further include a second processing unit 603, and the second processing unit 603 is configured to execute the task corresponding to the second RPC request. For a specific implementation manner, please refer to step 404 in FIG. 4 : the server side executes the task corresponding to the second RPC request, which will not be repeated here.
具体地,第一处理单元还用于:根据该第一RPC请求的第二标识确定服务器端的任务列表中该第一RPC请求对应的任务,该任务列表包括该服务器端还未执行的任务;或者,删除该任务列表中该第一RPC请求对应的任务。具体实现方式,请参考图4中步骤402:服务器端根据目标请求中断第一RPC请求对应的任务和图5中步骤502:服务器端根据目标请求中断第一RPC请求对应的任务,此处不再赘述。Specifically, the first processing unit is further configured to: determine, according to the second identifier of the first RPC request, a task corresponding to the first RPC request in the task list of the server, where the task list includes tasks that have not been executed by the server; or , delete the task corresponding to the first RPC request in the task list. For the specific implementation, please refer to step 402 in FIG. 4: the server interrupts the task corresponding to the first RPC request according to the target request and step 502 in FIG. 5: the server interrupts the task corresponding to the first RPC request according to the target request, which is not repeated here. Repeat.
本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,另外,在本申请各个实施例中的各功能模块可以集成在一个处理单元中,也可以是单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。The division of modules in the embodiments of the present application is schematic, and is only a logical function division. In actual implementation, there may be other division methods. In addition, the functional modules in the various embodiments of the present application may be integrated into one processing unit. In a unit, it can also exist physically alone, or two or more modules can be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.
本实施例中,服务器端600可以执行前述图4至图5中任一项所示实施例中服务器端所执行的操作,具体此处不再赘述。In this embodiment, the server side 600 may perform the operations performed by the server side in any of the foregoing embodiments shown in FIG. 4 to FIG. 5 , and details are not repeated here.
下面对本申请实施例中的第一客户端进行描述,请参阅图7,本申请实施例提供的一种客户端700,该客户端可以为上述图4或图5中第一客户端,该客户端700包括:The first client in the embodiment of the present application is described below. Referring to FIG. 7 , a client 700 provided by the embodiment of the present application may be the first client in the above-mentioned FIG. 4 or FIG. 5 . The client End 700 includes:
发送单元701,用于向服务器端发送目标请求,该目标请求包括第一标识,该第一标识指示该服务器端优先执行该目标请求对应的任务,该目标请求包括该第一RPC请求的第二标识,该目标请求包括指示该服务器端中断该第一RPC请求对应的任务。具体实现方式,请参考图4中步骤401:第一客户端向服务器端发送目标请求和图5中步骤501:第一客户端向服务器端发送目标请求,此处不再赘述。A sending unit 701 is configured to send a target request to the server, where the target request includes a first identifier, the first identifier instructs the server to preferentially execute the task corresponding to the target request, and the target request includes the second RPC request. The target request includes instructing the server to interrupt the task corresponding to the first RPC request. For a specific implementation, please refer to step 401 in FIG. 4 : the first client sends a target request to the server and step 501 in FIG. 5 : the first client sends a target request to the server, which will not be repeated here.
具体地,目标请求还包括指示该服务器端执行目标请求对应的目标任务。Specifically, the target request further includes instructing the server to execute the target task corresponding to the target request.
本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,另外,在本申请各个实施例中的各功能模块可以集成在一个处理单元中,也可以是单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。The division of modules in the embodiments of the present application is schematic, and is only a logical function division. In actual implementation, there may be other division methods. In addition, the functional modules in the various embodiments of the present application may be integrated into one processing unit. In a unit, it can also exist physically alone, or two or more modules can be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.
本实施例中,客户端700可以执行前述图4至图5中任一项所示实施例中第一客户端所执行的操作,具体此处不再赘述。In this embodiment, the client 700 may perform the operations performed by the first client in any of the foregoing embodiments shown in FIG. 4 to FIG. 5 , and details are not described herein again.
下面对本申请实施例中的客户端进行描述,请参阅图8,本申请实施例提供的一种客户端800,该客户端可以为上述图4中第二客户端,该客户端800包括:The client in the embodiment of the present application is described below. Referring to FIG. 8, a client 800 provided by the embodiment of the present application may be the second client in the above-mentioned FIG. 4, and the client 800 includes:
发送单元801,用于向服务器端发送第二RPC请求,该第二RPC请求指示该服务器端执行该第二RPC请求对应的任务。具体实现方式,请参考图4中步骤403:第二客户端向服务器端发送第二RPC请求,此处不再赘述。The sending unit 801 is configured to send a second RPC request to the server, where the second RPC request instructs the server to execute the task corresponding to the second RPC request. For a specific implementation, please refer to step 403 in FIG. 4 : the second client sends a second RPC request to the server, which will not be repeated here.
本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,另外,在本申请各个实施例中的各功能模块可以集成在一个处理单元中,也可以是单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。The division of modules in the embodiments of the present application is schematic, and is only a logical function division. In actual implementation, there may be other division methods. In addition, the functional modules in the various embodiments of the present application may be integrated into one processing unit. In a unit, it can also exist physically alone, or two or more modules can be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.
本实施例中,客户端800可以执行前述图4所示实施例中客户端所执行的操作,具体此处不再赘述。In this embodiment, the client 800 may perform the operations performed by the client in the foregoing embodiment shown in FIG. 4 , and details are not repeated here.
其中,集成的模块既可以采用硬件的形式实现时,服务器端可以是图9所示的结构,则图6中所提供处理单元可以对应图9中的处理器901。处理器901,可以是一个中央处理器(central processing unit,CPU),也可以是特定集成电路(application specific integrated circuit,ASIC),或者是被配置成实施本申请实施例的一个或多个集成电路,例如:一个或多个数字信号处理器(digital signal processor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA)。该服务器端还可以包括通信接口902,通信接口902用于与其他服务器端进行通信。该服务器端还包括:存储器903,用于存储处理器901执行的程序。存储器903可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);或者非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);或者上述种类的存储器的组合,用于存储可实现本申请方法的程序代码、TSN域内服务器端的配置文件或其他内容。存储器903是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。Wherein, when the integrated module can be implemented in the form of hardware, the server side can be the structure shown in FIG. 9 , and the processing unit provided in FIG. 6 can correspond to the processor 901 in FIG. 9 . The processor 901 may be a central processing unit (CPU), a specific integrated circuit (application specific integrated circuit, ASIC), or one or more integrated circuits configured to implement the embodiments of the present application , for example: one or more digital signal processors (digital signal processors, DSP), or, one or more field programmable gate arrays (field programmable gate array, FPGA). The server end may further include a communication interface 902, and the communication interface 902 is used for communicating with other server ends. The server side further includes: a memory 903 for storing programs executed by the processor 901 . The memory 903 can be a volatile memory (volatile memory), such as random-access memory (random-access memory, RAM); or a non-volatile memory (non-volatile memory), such as read-only memory (read-only memory, ROM), flash memory (flash memory), hard disk (hard disk drive, HDD) or solid-state drive (solid-state drive, SSD); or a combination of the above-mentioned types of memories, for storing program codes that can realize the method of the present application , server-side configuration files in the TSN domain, or other content. The memory 903 is, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
处理器901用于执行存储器903存储的程序代码,该处理器901。本申请实施例中不限定上述通信接口902、处理器901以及存储器903之间的具体连接介质。本申请实施例在图9中以存储器903、处理器902以及通信接口902之间通过总线904连接,总线在图9中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。该总线可以分为地址总线、数据总线、控制总线等。The processor 901 is used for executing the program codes stored in the memory 903 . The specific connection medium between the communication interface 902 , the processor 901 , and the memory 903 is not limited in the embodiments of the present application. In the embodiment of the present application, the memory 903, the processor 902, and the communication interface 902 are connected through a bus 904 in FIG. 9. The bus is represented by a thick line in FIG. 9, and the connection between other components is only for schematic illustration. , is not limited. The bus can be divided into address bus, data bus, control bus and so on.
在一个示例中,通信接口902用于接收第一客户端发送的目标请求,该目标请求包括第一标识,该第一标识指示该服务器端优先执行该目标请求对应的任务,该目标请求包括该第一RPC请求的第二标识,该目标请求包括指示该服务器端中断该第一RPC请求对应的任务。In an example, the communication interface 902 is configured to receive a target request sent by a first client, where the target request includes a first identifier, where the first identifier indicates that the server side preferentially executes a task corresponding to the target request, and the target request includes the The second identifier of the first RPC request, where the target request includes instructing the server to interrupt the task corresponding to the first RPC request.
处理器901用于根据目标请求中断该第一RPC请求对应的任务。The processor 901 is configured to interrupt the task corresponding to the first RPC request according to the target request.
处理器901用于根据该目标请求执行目标请求对应的目标任务。The processor 901 is configured to execute the target task corresponding to the target request according to the target request.
处理器901用于若该服务器端根据该第二标识确定该服务器端正在执行的任务为该第一RPC请求对应的任务,则中断正在执行的任务。The processor 901 is configured to interrupt the task being executed if the server determines that the task being executed by the server is a task corresponding to the first RPC request according to the second identifier.
可选的,处理器901用于根据该第二标识确定服务器端的任务列表中该第一RPC请求对应的任务,该任务列表为该服务器端还未执行的任务,并删除该任务列表中该第一RPC请求对应的任务。Optionally, the processor 901 is configured to determine, according to the second identifier, the task corresponding to the first RPC request in the task list of the server, where the task list is a task that has not been executed by the server, and delete the first task in the task list. A task corresponding to an RPC request.
在一个示例中,通信接口902用于接收客户端发送的第一RPC请求,接收该客户端发送的目标请求,该目标请求包括第一标识,该第一标识指示该服务器端优先执行该目标请求对应的任务,该目标请求包括该第一RPC请求的第二标识,该目标请求指示该服务器端中断该第一RPC请求对应的任务;用于接收该第二客户端发送的第二RPC请求,该第二RPC请求指示该服务器端执行该第二RPC请求对应的任务。In an example, the communication interface 902 is configured to receive a first RPC request sent by a client, and receive a target request sent by the client, where the target request includes a first identifier, and the first identifier indicates that the server side preferentially executes the target request The corresponding task, the target request includes the second identifier of the first RPC request, and the target request instructs the server to interrupt the task corresponding to the first RPC request; for receiving the second RPC request sent by the second client, The second RPC request instructs the server to execute the task corresponding to the second RPC request.
处理器901用于根据该目标请求中断该第一RPC请求对应的任务。The processor 901 is configured to interrupt the task corresponding to the first RPC request according to the target request.
处理器901用于根据执行该第二RPC请求对应的任务。The processor 901 is configured to execute the task corresponding to the second RPC request.
处理器901用于若该服务器端根据该第二标识确定该服务器端正在执行的任务为该第一RPC请求对应的任务,则中断正在执行的任务。The processor 901 is configured to interrupt the task being executed if the server determines that the task being executed by the server is a task corresponding to the first RPC request according to the second identifier.
或者,处理器901用于根据该第二标识确定服务器端的任务列表中该第一RPC请求对应的任务,该任务列表为该服务器端还未执行的任务,删除该任务列表中该第一RPC请求对应的任务。Alternatively, the processor 901 is configured to determine, according to the second identifier, the task corresponding to the first RPC request in the task list of the server, where the task list is a task that has not been executed by the server, and delete the first RPC request in the task list corresponding task.
该服务器端900可以实现图4和图5中服务器端的功能,具体可以参考与附图相关的方法的描述。The server side 900 can implement the functions of the server side in FIG. 4 and FIG. 5 , for details, refer to the description of the method related to the drawings.
其中,集成的模块既可以采用硬件的形式实现时,第一客户端可以是图10所示的结构,则图7中所提供处理单元可以对应图10中的处理器1001。处理器1001,可以是一个中央处理器(central processing unit,CPU),也可以是特定集成电路(application specific integrated circuit,ASIC),或者是被配置成实施本申请实施例的一个或多个集成电路,例如:一个或多个数字信号处理器(digital signal processor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA)。该第一客户端还可以包括通信接口1002,通信接口1002用于与其他客户端进行通信。该客户端还包括:存储器1003,用于存储处理器1001执行的程序。存储器1003可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);或者非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);或者上述种类的存储器的组合,用于存储可实现本申请方法的程序代码、TSN域内客户端的配置文件或其他内容。存储器1003是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。Wherein, when the integrated module can be implemented in the form of hardware, the first client can be the structure shown in FIG. 10 , and the processing unit provided in FIG. 7 can correspond to the processor 1001 in FIG. 10 . The processor 1001 may be a central processing unit (CPU), a specific integrated circuit (application specific integrated circuit, ASIC), or one or more integrated circuits configured to implement the embodiments of the present application , for example: one or more digital signal processors (digital signal processors, DSP), or, one or more field programmable gate arrays (field programmable gate array, FPGA). The first client may also include a communication interface 1002 for communicating with other clients. The client further includes: a memory 1003 for storing programs executed by the processor 1001 . The memory 1003 may be a volatile memory (volatile memory), such as random-access memory (RAM); or a non-volatile memory (non-volatile memory), such as read-only memory (read-only memory, ROM), flash memory (flash memory), hard disk (hard disk drive, HDD) or solid-state drive (solid-state drive, SSD); or a combination of the above-mentioned types of memories, for storing program codes that can realize the method of the present application , configuration files of clients in the TSN domain, or other content. Memory 1003 is, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
处理器1001用于执行存储器1003存储的程序代码,该处理器1001。本申请实施例中不限定上述通信接口1002、处理器1001以及存储器1003之间的具体连接介质。本申请实施例在图10中以存储器1003、处理器1002以及通信接口1002之间通过总线1004连接, 总线在图10中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。该总线可以分为地址总线、数据总线、控制总线等。The processor 1001 is used for executing the program codes stored in the memory 1003 . The specific connection medium between the communication interface 1002 , the processor 1001 , and the memory 1003 is not limited in the embodiments of the present application. In the embodiment of the present application, the memory 1003, the processor 1002, and the communication interface 1002 are connected through a bus 1004 in FIG. 10. The bus is represented by a thick line in FIG. 10, and the connection mode between other components is only for schematic illustration. , is not limited. The bus can be divided into address bus, data bus, control bus and so on.
在一个示例中,通信接口1002用于向服务器端发送目标请求,该目标请求包括第一标识,该第一标识指示该服务器端优先执行该目标请求对应的任务,该目标请求包括该第一RPC请求的第二标识,该目标请求指示该服务器端中断该第一RPC请求对应的任务。In an example, the communication interface 1002 is configured to send a target request to the server, where the target request includes a first identifier, the first identifier instructs the server to preferentially execute a task corresponding to the target request, and the target request includes the first RPC The second identifier of the request, the target request instructs the server to interrupt the task corresponding to the first RPC request.
具体地,目标请求还包括指示该服务器端执行目标请求对应的目标任务。Specifically, the target request further includes instructing the server to execute the target task corresponding to the target request.
该第一服务器端1000可以实现图4和图5中第一服务器端的功能,具体可以参考与附图相关的方法的描述。The first server end 1000 can implement the functions of the first server end in FIG. 4 and FIG. 5 , for details, reference may be made to the description of the method related to the drawings.
其中,集成的模块既可以采用硬件的形式实现时,第二客户端可以是图11所示的结构,则图8中所提供处理单元可以对应图11中的处理器1101。处理器1101,可以是一个中央处理器(central processing unit,CPU),也可以是特定集成电路(application specific integrated circuit,ASIC),或者是被配置成实施本申请实施例的一个或多个集成电路,例如:一个或多个数字信号处理器(digital signal processor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA)。该第二客户端还可以包括通信接口1102,通信接口1102用于与其他客户端进行通信。该客户端还包括:存储器1103,用于存储处理器1101执行的程序。存储器1103可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);或者非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);或者上述种类的存储器的组合,用于存储可实现本申请方法的程序代码、TSN域内客户端的配置文件或其他内容。存储器1103是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。Wherein, when the integrated module can be implemented in the form of hardware, the second client can be the structure shown in FIG. 11 , and the processing unit provided in FIG. 8 can correspond to the processor 1101 in FIG. 11 . The processor 1101 may be a central processing unit (CPU), a specific integrated circuit (application specific integrated circuit, ASIC), or one or more integrated circuits configured to implement the embodiments of the present application , for example: one or more digital signal processors (digital signal processors, DSP), or, one or more field programmable gate arrays (field programmable gate array, FPGA). The second client may also include a communication interface 1102 for communicating with other clients. The client further includes: a memory 1103 for storing programs executed by the processor 1101 . The memory 1103 may be a volatile memory (volatile memory), such as random-access memory (RAM); or a non-volatile memory (non-volatile memory), such as read-only memory (read-only memory, ROM), flash memory (flash memory), hard disk (hard disk drive, HDD) or solid-state drive (solid-state drive, SSD); or a combination of the above-mentioned types of memories, for storing program codes that can realize the method of the present application , configuration files of clients in the TSN domain, or other content. The memory 1103 is, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
处理器1101用于执行存储器1103存储的程序代码,该处理器1101。本申请实施例中不限定上述通信接口1102、处理器1101以及存储器1103之间的具体连接介质。本申请实施例在图11中以存储器1103、处理器1102以及通信接口1102之间通过总线1104连接,总线在图11中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图11中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The processor 1101 is used for executing the program codes stored in the memory 1103 . The specific connection medium between the communication interface 1102 , the processor 1101 , and the memory 1103 is not limited in the embodiments of the present application. In this embodiment of the present application, the memory 1103, the processor 1102, and the communication interface 1102 are connected through a bus 1104 in FIG. 11. The bus is represented by a thick line in FIG. 11, and the connection between other components is only for schematic illustration. , is not limited. The bus can be divided into address bus, data bus, control bus and so on. For ease of presentation, only one thick line is used in FIG. 11, but it does not mean that there is only one bus or one type of bus.
在一个示例中,通信接口1102用于向服务器端发送第二RPC请求,该第二RPC请求指示该服务器端执行该第二RPC请求对应的任务。In one example, the communication interface 1102 is configured to send a second RPC request to the server, where the second RPC request instructs the server to perform a task corresponding to the second RPC request.
该第二服务器端1100可以实现图4中第二服务器端的功能,具体可以参考与附图相关的方法的描述。The second server end 1100 may implement the functions of the second server end in FIG. 4 , for details, reference may be made to the description of the method related to the accompanying drawing.
下面对本申请实施例中的NETCONF网络系统进行描述,请参阅图12,本申请实施例提供的一种NETCONF网络系统1200,该系统包括如图6实施例中的服务器端1201、如图7实施例中的第一客户端1202和如图8实施例中的第二客户端1203,服务器端1201分别与第一客户端1202和第二客户端1203相连接。The NETCONF network system in the embodiment of the present application will be described below. Referring to FIG. 12 , a NETCONF network system 1200 provided by the embodiment of the present application includes the server end 1201 in the embodiment in FIG. 6 , and the embodiment in FIG. 7 . In the first client 1202 and the second client 1203 in the embodiment of FIG. 8 , the server 1201 is connected with the first client 1202 and the second client 1203 respectively.
该系统可以执行如图4至图5中任一项所示实施例中NETCONF网络系统所执行的操 作。The system may perform the operations performed by the NETCONF network system in the embodiment shown in any of Figures 4-5.
服务器端1201用于接收第一客户端发送的目标请求,该目标请求包括第一标识,该第一标识指示该服务器端优先执行该目标请求对应的任务,该目标请求包括该第二标识,该目标请求指示该服务器端中断该第一RPC请求对应的任务。The server side 1201 is configured to receive a target request sent by the first client, the target request includes a first identifier, the first identifier instructs the server side to preferentially execute the task corresponding to the target request, the target request includes the second identifier, the The target request instructs the server to interrupt the task corresponding to the first RPC request.
服务器端1201还用于根据目标请求中断该服务器端正在执行的第一RPC请求对应的任务,根据目标请求执行目标请求对应的目标任务。The server 1201 is further configured to interrupt the task corresponding to the first RPC request being executed by the server according to the target request, and execute the target task corresponding to the target request according to the target request.
服务器端1201还用于接收该第二客户端发送的第二RPC请求,该第二RPC请求指示该服务器端执行该第二RPC请求对应的任务。The server end 1201 is further configured to receive a second RPC request sent by the second client, where the second RPC request instructs the server end to perform a task corresponding to the second RPC request.
服务器端1201还用于:该服务器端根据该第二标识确定该服务器端正在执行的任务为该第一RPC请求对应的任务,中断正在执行的第一RPC请求对应的任务。The server end 1201 is further configured to: the server end determines, according to the second identifier, that the task being executed by the server end is the task corresponding to the first RPC request, and interrupts the task corresponding to the first RPC request being executed.
服务器端1201还用于:根据该第二标识确定服务器端的任务列表中该第一RPC请求对应的任务,该任务列表包括该服务器端还未执行的任务,删除该任务列表中该第一RPC请求对应的任务。The server 1201 is further configured to: determine the task corresponding to the first RPC request in the task list of the server according to the second identifier, the task list includes tasks that have not been executed by the server, and delete the first RPC request in the task list corresponding task.
第一客户端1202用于向服务器端发送目标请求,该目标请求包括第一标识,该第一标识指示该服务器端优先执行该目标请求对应的任务,该目标请求包括该第二标识,该目标请求指示该服务器端中断该第一RPC请求对应的任务。The first client 1202 is configured to send a target request to the server, where the target request includes a first identifier, the first identifier instructs the server to preferentially execute the task corresponding to the target request, the target request includes the second identifier, the target The request instructs the server to interrupt the task corresponding to the first RPC request.
第二客户端1203用于向服务器端发送第二RPC请求,该第二RPC请求指示该服务器端执行该第二RPC请求对应的任务。The second client 1203 is configured to send a second RPC request to the server, where the second RPC request instructs the server to execute a task corresponding to the second RPC request.
本申请实施例还提供了一种计算机可读存储介质,存储介质中存储有至少一条程序指令或代码,该程序指令或代码由处理器加载并执行时以使计算机实现如上图4和图5中任一附图所示的管理网络设备的方法。Embodiments of the present application also provide a computer-readable storage medium, where at least one program instruction or code is stored in the storage medium, and when the program instruction or code is loaded and executed by a processor, the computer realizes the above-mentioned FIG. 4 and FIG. 5 The method for managing network equipment shown in any of the accompanying drawings.
本申请实施例提供了一种计算机程序,当计算机程序被计算机执行时,可以使得处理器或计算机执行上述图4和图5中的方法实施例中对应的各个步骤和/或流程。Embodiments of the present application provide a computer program, which, when the computer program is executed by a computer, can cause a processor or computer to execute respective steps and/or processes corresponding to the method embodiments in the foregoing FIG. 4 and FIG. 5 .
本申请实施例提供了一种芯片,包括处理器,用于从存储器中调用并运行该存储器中存储的指令,使得安装有该芯片的通信设备执行上述图4和图5中的方法实施例中对应的各个步骤和/或流程。An embodiment of the present application provides a chip, including a processor, configured to call and execute an instruction stored in the memory from a memory, so that a communication device installed with the chip executes the method embodiments in the above-mentioned FIG. 4 and FIG. 5 . corresponding steps and/or processes.
本申请实施例提供另一种芯片,包括:输入接口、输出接口、处理器和存储器,该输入接口、输出接口、该处理器以及该存储器之间通过内部连接通路相连,该处理器用于执行该存储器中的代码,当该代码被执行时,该处理器用于执行上述方法实施例中对应的各个步骤和/或流程。An embodiment of the present application provides another chip, including: an input interface, an output interface, a processor, and a memory, the input interface, the output interface, the processor, and the memory are connected through an internal connection path, and the processor is used to execute the The code in the memory, when the code is executed, the processor is configured to execute the corresponding steps and/or processes in the foregoing method embodiments.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by those skilled in the art, the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/ 或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the present application. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims (17)

  1. 一种管理网络设备的方法,其特征在于,所述方法包括:A method for managing network equipment, characterized in that the method comprises:
    在服务器端执行第一远程过程调用RPC请求对应的任务的过程中,所述服务器端接收第一客户端发送的目标请求,所述目标请求包括第一标识,所述第一标识指示所述服务器端优先执行所述目标请求对应的任务,所述目标请求包括所述第一RPC请求的第二标识,所述目标请求指示所述服务器端根据所述第二标识中断所述第一RPC请求对应的任务。In the process of the server side executing the task corresponding to the first remote procedure call RPC request, the server side receives a target request sent by the first client, the target request includes a first identifier, and the first identifier indicates the server The terminal preferentially executes the task corresponding to the target request, the target request includes the second identifier of the first RPC request, and the target request instructs the server side to interrupt the correspondence of the first RPC request according to the second identifier task.
  2. 根据权利要求1所述的方法,其特征在于,所述目标请求还包括目标任务;The method of claim 1, wherein the target request further comprises a target task;
    所述方法还包括:The method also includes:
    所述服务器端根据所述目标请求中断所述第一RPC请求对应的任务;The server interrupts the task corresponding to the first RPC request according to the target request;
    所述服务器端执行所述目标任务。The server side executes the target task.
  3. 根据权利要求1所述的方法,其特征在于,在所述服务器端接收第一客户端发送的目标请求之后,所述方法还包括:The method according to claim 1, wherein after the server side receives the target request sent by the first client, the method further comprises:
    所述服务器端接收第二客户端发送的第二RPC请求,所述第二RPC请求指示所述服务器端执行所述第二RPC请求对应的任务;receiving, by the server, a second RPC request sent by a second client, where the second RPC request instructs the server to execute a task corresponding to the second RPC request;
    所述服务器端执行所述第二RPC请求对应的任务。The server side executes the task corresponding to the second RPC request.
  4. 根据权利要求2所述的方法,其特征在于,所述服务器端根据目标请求中断所述第一RPC请求对应的任务,包括:The method according to claim 2, wherein the server side interrupts the task corresponding to the first RPC request according to the target request, comprising:
    所述服务器端根据所述第二标识确定所述服务器端正在执行的任务包括所述第一RPC请求对应的任务,并中断正在执行的所述第一RPC对应的任务。The server determines, according to the second identifier, that the task being executed by the server includes the task corresponding to the first RPC request, and interrupts the executing task corresponding to the first RPC.
  5. 根据权利要求2所述的方法,其特征在于,所述服务器端根据所述目标请求中断所述第一RPC请求对应的任务,包括:The method according to claim 2, wherein the server side interrupts the task corresponding to the first RPC request according to the target request, comprising:
    所述服务器端根据所述第二标识确定所述服务器端的任务列表中包括所述第一RPC请求对应的任务;The server determines that the task list of the server includes the task corresponding to the first RPC request according to the second identifier;
    所述服务器端删除所述任务列表中与所述第一RPC请求对应的任务。The server side deletes the task corresponding to the first RPC request in the task list.
  6. 一种管理网络设备的方法,其特征在于,所述方法包括:A method for managing network equipment, characterized in that the method comprises:
    第一客户端向服务器端发送目标请求,所述目标请求包括第一标识,所述第一标识指示所述服务器端优先执行所述目标请求对应的任务,所述目标请求包括第一远程过程调用RPC请求的第二标识,所述目标请求指示所述服务器端中断所述服务器端正在执行的所述第一RPC请求对应的任务。The first client sends a target request to the server, the target request includes a first identifier, the first identifier instructs the server to preferentially execute the task corresponding to the target request, and the target request includes a first remote procedure call The second identifier of the RPC request, the target request instructs the server end to interrupt the task corresponding to the first RPC request being executed by the server end.
  7. 根据权利要求6所述的方法,其特征在于,所述目标请求还包括目标任务,所述目标任务用于指示所述服务器端执行所述目标任务。The method according to claim 6, wherein the target request further comprises a target task, and the target task is used to instruct the server to execute the target task.
  8. 一种设备,其特征在于,所述设备包括:A device, characterized in that the device comprises:
    接收单元,用于在执行第一远程过程调用RPC请求对应的任务的过程中,接收第一客户端发送的目标请求,所述目标请求包括第一标识,所述第一标识指示优先执行所述目标请求对应的任务,所述目标请求包括所述第一RPC请求的第二标识,所述目标请求包括指示所述服务器端中断服务器端正在执行的所述第一RPC请求对应的任务。a receiving unit, configured to receive a target request sent by a first client in the process of executing the task corresponding to the first remote procedure call RPC request, where the target request includes a first identifier, and the first identifier indicates that the A task corresponding to a target request, where the target request includes a second identifier of the first RPC request, and the target request includes a task corresponding to the first RPC request that instructs the server end to interrupt the server end being executed.
  9. 根据权利要求8所述的设备,其特征在于,所述目标请求还包括目标任务;The device according to claim 8, wherein the target request further comprises a target task;
    所述设备还包括:The device also includes:
    第一处理单元,用于根据所述目标请求中断所述第一RPC请求对应的任务,根据所述目标请求执行所述目标任务。A first processing unit, configured to interrupt the task corresponding to the first RPC request according to the target request, and execute the target task according to the target request.
  10. 根据权利要求8所述的设备,其特征在于,所述设备还包括第二处理单元;The device according to claim 8, wherein the device further comprises a second processing unit;
    所述接收单元,还用于接收第二客户端发送的第二RPC请求,所述第二RPC请求指示所述服务器端执行所述第二RPC请求对应的任务;The receiving unit is further configured to receive a second RPC request sent by a second client, where the second RPC request instructs the server to execute a task corresponding to the second RPC request;
    所述第二处理单元,用于执行所述第二RPC请求对应的任务。The second processing unit is configured to execute the task corresponding to the second RPC request.
  11. 根据权利要求9所述的设备,其特征在于,所述第一处理单元具体用于:根据所述第二标识确定所述服务器端正在执行的任务为所述第一RPC请求对应的任务,并中断正在执行的所述第一RPC请求对应的任务。The device according to claim 9, wherein the first processing unit is specifically configured to: determine, according to the second identifier, that the task being executed by the server is a task corresponding to the first RPC request, and The task corresponding to the first RPC request being executed is interrupted.
  12. 根据权利要求9所述的设备,其特征在于,所述第一处理单元具体还用于:The device according to claim 9, wherein the first processing unit is further configured to:
    根据所述第二标识确定服务器端的任务列表中所述第一RPC请求对应的任务,所述任务列表为所述设备还未执行的任务;Determine the task corresponding to the first RPC request in the task list on the server side according to the second identifier, where the task list is the task that has not been executed by the device;
    删除所述任务列表中所述第一RPC请求对应的任务。Delete the task corresponding to the first RPC request in the task list.
  13. 一种设备,其特征在于,所述设备包括:A device, characterized in that the device comprises:
    发送单元,用于向服务器端发送目标请求,所述目标请求包括第一标识,所述第一标识指示所述服务器端优先执行所述目标请求对应的任务,所述目标请求包括第一远程过程调用RPC请求的第二标识,所述目标请求指示所述服务器端中断所述服务器端正在执行的所述第一RPC请求对应的任务。a sending unit, configured to send a target request to the server, where the target request includes a first identifier, the first identifier instructs the server to preferentially execute the task corresponding to the target request, and the target request includes a first remote process The second identifier of the RPC request is called, and the target request instructs the server end to interrupt the task corresponding to the first RPC request that is being executed by the server end.
  14. 根据权利要求13所述的设备,其特征在于,所述目标请求还包括指示所述服务器端执行的目标任务。The device according to claim 13, wherein the target request further comprises a target task instructing the server to execute.
  15. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括指令或代码,当所述指令在计算机上执行时,使得所述计算机执行如权利要求1-7任一所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium comprises instructions or codes, which, when the instructions are executed on a computer, cause the computer to execute the method according to any one of claims 1-7. method.
  16. 一种计算机程序产品,其特征在于,所述计算机程序包括程序代码,当所述计算机程序代码被计算机运行时,使得所述计算机执行如权利要求1-7任一所述的方法。A computer program product, characterized in that the computer program includes program code, which, when the computer program code is executed by a computer, causes the computer to execute the method according to any one of claims 1-7.
  17. 一种系统,其特征在于,所述系统包括服务器端和客户端,所述服务器端执行如权利要求1-5任一项所述的方法,所述客户端执行如权利要求6或7所述的方法。A system, characterized in that the system includes a server and a client, the server executes the method according to any one of claims 1-5, and the client executes the method according to claim 6 or 7 Methods.
PCT/CN2021/133533 2020-11-30 2021-11-26 Method for managing network device, and device and system WO2022111635A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011378969.4A CN114640579A (en) 2020-11-30 2020-11-30 Method, device and system for managing network device
CN202011378969.4 2020-11-30

Publications (1)

Publication Number Publication Date
WO2022111635A1 true WO2022111635A1 (en) 2022-06-02

Family

ID=81753783

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/133533 WO2022111635A1 (en) 2020-11-30 2021-11-26 Method for managing network device, and device and system

Country Status (2)

Country Link
CN (1) CN114640579A (en)
WO (1) WO2022111635A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030200329A1 (en) * 2002-04-23 2003-10-23 Delaney William P. Polling-based mechanism for improved RPC timeout handling
CN102594888A (en) * 2012-02-16 2012-07-18 西北工业大学 Method for enhancing real-time performance of network file system
CN107924411A (en) * 2015-08-14 2018-04-17 甲骨文国际公司 The recovery of UI states in transaction system
CN108111499A (en) * 2017-12-15 2018-06-01 腾讯科技(深圳)有限公司 Service process performance optimization method, device, electronic equipment and storage medium
CN109144679A (en) * 2017-06-27 2019-01-04 华为技术有限公司 Processing method, device and the virtual equipment of interrupt requests
CN111796735A (en) * 2020-06-29 2020-10-20 维沃移动通信(杭州)有限公司 Application program control method and device and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030200329A1 (en) * 2002-04-23 2003-10-23 Delaney William P. Polling-based mechanism for improved RPC timeout handling
CN102594888A (en) * 2012-02-16 2012-07-18 西北工业大学 Method for enhancing real-time performance of network file system
CN107924411A (en) * 2015-08-14 2018-04-17 甲骨文国际公司 The recovery of UI states in transaction system
CN109144679A (en) * 2017-06-27 2019-01-04 华为技术有限公司 Processing method, device and the virtual equipment of interrupt requests
CN108111499A (en) * 2017-12-15 2018-06-01 腾讯科技(深圳)有限公司 Service process performance optimization method, device, electronic equipment and storage medium
CN111796735A (en) * 2020-06-29 2020-10-20 维沃移动通信(杭州)有限公司 Application program control method and device and electronic equipment

Also Published As

Publication number Publication date
CN114640579A (en) 2022-06-17

Similar Documents

Publication Publication Date Title
US9244817B2 (en) Remote debugging in a cloud computing environment
JP2020530722A (en) PDU type setting method, UE policy setting method, and related entities
WO2015067117A1 (en) Cloud upload method and system, scheduling device and client
EP3343364A1 (en) Accelerator virtualization method and apparatus, and centralized resource manager
KR102308269B1 (en) Transmission of control data in proxy-based network communications
JP2018509674A (en) Clustering host-based non-volatile memory using network-mapped storage
JP2017509936A (en) Facilitating third-party execution of batch processing of requests that require authorization from resource owners for repeated access to resources
CN109729040B (en) Method, apparatus and computer readable medium for selection of a protocol
WO2014194677A1 (en) Service process control method and network device
WO2014190791A1 (en) Method for setting identity of gateway device and management gateway device
WO2012088954A1 (en) Method, apparatus and system for management of network configuration based on network configuration protocol
US10609125B2 (en) Method and system for transmitting communication data
WO2014078989A1 (en) Message processing method and server
WO2018120397A1 (en) Reverse file uploading method and system
US20170034311A1 (en) Method for selecting between multiple RPC frameworks during a TCP/IP session
WO2021184992A1 (en) Mirror image file uploading method, related device and computer storage medium
JP2020504557A (en) Media downlink transmission control method and related devices
CN112395107A (en) Tax control equipment control method and device, storage medium and electronic equipment
US11316916B2 (en) Packet processing method, related device, and computer storage medium
WO2020034827A1 (en) Method for creating network slice, device, equipment and storage medium
EP3767895A1 (en) Method and system for audio and video interaction between plurality of groups
WO2022257247A1 (en) Data processing method and apparatus, and computer-readable storage medium
US8984129B2 (en) Remote session management
WO2022111635A1 (en) Method for managing network device, and device and system
US9424273B2 (en) System and method for asynchronous use of a network-based file system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21897135

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21897135

Country of ref document: EP

Kind code of ref document: A1