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

Method, device and system for managing network device Download PDF

Info

Publication number
CN113014411A
CN113014411A CN201911328028.7A CN201911328028A CN113014411A CN 113014411 A CN113014411 A CN 113014411A CN 201911328028 A CN201911328028 A CN 201911328028A CN 113014411 A CN113014411 A CN 113014411A
Authority
CN
China
Prior art keywords
information
network device
condition information
condition
network
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201911328028.7A
Other languages
Chinese (zh)
Other versions
CN113014411B (en
Inventor
王建平
邹芹
申辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201911328028.7A priority Critical patent/CN113014411B/en
Publication of CN113014411A publication Critical patent/CN113014411A/en
Application granted granted Critical
Publication of CN113014411B publication Critical patent/CN113014411B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • 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]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • 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/133Protocols for remote procedure calls [RPC]

Abstract

The application discloses a method, equipment and a system for managing network equipment, wherein the method comprises the following steps: the network equipment receives the first message and obtains operation indication information and condition information associated with the operation indication information from the first message. And the network equipment judges whether the data or the resources of the network equipment meet the condition information or not according to the condition information. And based on the fact that the network equipment determines that the data or the resources of the network equipment do not meet the condition information, the network equipment does not execute the operation indication information and generates a response message aiming at the first message, wherein the response message comprises the network equipment not meeting information. Or, based on the network device determining that its data or resource satisfies the condition information, the network device executes the operation instruction information.

Description

Method, device and system for managing network device
Technical Field
The present invention relates to the field of communications, and in particular, to a method, device, and system for managing network devices.
Background
Through a Network Configuration Protocol (NETCONF) or a table entry state transition Configuration Protocol (RESTCONF), the Network management device may install, operate, and delete the Configuration of the Network device, and may also obtain Configuration information and state information of the Network device. If the network management device needs the network device to execute a certain operation, the network management device may issue the operation content to the network device through a Remote Procedure Call (RPC) message, and the network device receives the operation and executes the operation. In this process, the network device can only execute the operation according to the information issued by the network management device, regardless of whether the network device can execute the operation, and therefore, the method for managing the network device is not flexible enough and has low efficiency.
Disclosure of Invention
The application provides a method, equipment and a system for managing network equipment, which are used for improving the efficiency of managing the network equipment and enabling the management method to be more flexible and intelligent.
In a first aspect, the present application provides a method for managing a network device, where the method includes receiving a first packet by the network device and acquiring operation instruction information and condition information associated with the operation instruction information from the first packet. And the network equipment judges whether the data or the resources of the network equipment meet the condition information or not according to the condition information. Based on the network device determining that the data does not satisfy the condition information, the network device does not execute or skip the operation indication information and generates a response message, wherein the response message includes the non-satisfaction information. Alternatively, based on the network device determining that the data satisfies the condition information, the network device executes the content of the operation instruction information.
By adopting the method, the network equipment can judge the condition information before executing the operation indication information so as to determine whether the data or the resource of the network equipment meets the condition information. When the network device satisfies the condition information, the network device executes the operation instruction information associated with the condition information. When the network device does not satisfy the condition information, the network device does not execute or skip the operation instruction information. The method can enable the network equipment to execute the operation instruction information according to the judgment of the condition information, improves the efficiency of managing the network equipment, and realizes network management more intelligently.
In one possible design, the network device receives a first message and obtains operation instruction information and condition information associated with the operation instruction information from the first message. And the network equipment judges whether the data or the resources of the network equipment meet the condition information or not according to the condition information. Based on the network device determining that the data does not satisfy the condition information, the network device does not execute or skip the operation indication information and generates a response message, wherein the response message includes the non-satisfaction information. And based on the network equipment determining that the data meets the condition information, the network equipment executes the content of the operation instruction information
In a possible design, before the network device receives the first packet, the network device obtains capability information, where the capability information is used to describe that the network device has a capability of judging whether data of the network device satisfies the condition information.
By adopting the method, the capability of judging the condition information can be defined for the network equipment according to the requirement.
In one possible design, the condition information includes a condition parameter and a value of the condition parameter.
By adopting the method, the parameters to be judged and the values of the parameters can be defined according to the requirements.
In one possible design, the condition information includes a node parameter or an attribute parameter, and the condition parameter value includes a value corresponding to the node parameter or a value corresponding to the attribute parameter.
By adopting the method, the content of the condition information can be defined according to the requirement, and the content comprises the node parameter or the attribute parameter, and certainly, other condition parameters capable of realizing the judgment of the condition information can be defined according to the requirement.
In one possible design, the non-satisfaction information includes one or more of an error identification, an error type, an error rating, error information, and an error description. The error identification can be used for describing the unsatisfied condition information, the error information can be used for describing the name of the value of the unsatisfied condition information, and the error explanation can be used for describing that the reason why the protocol operation or the data model for realizing the request is denied is the unsatisfied condition information. The present application adds a new description of the error identification error condition, for example, condition-determined is used to indicate that the error condition is rejection condition information, and it can be understood that the error condition is that the data or resource of the network device does not satisfy the condition information. The present application adds a new description of error information, e.g., a name of the bad condition information. The error specification is used to describe error specification, for example, the implementation of the requested protocol operation or data model is used to indicate that the requested protocol operation or data model is rejected because the condition information fails. For example, the response message includes an error identification (error-tag), an error type (error-type), and error information (error-info)
By adopting the method, the parameters of the unsatisfied information in the response message can be defined according to the needs, the detailed condition of the unsatisfied information can be clearly described, and the network management equipment can know the condition that the network equipment does not satisfy the condition information.
In one possible design, the condition information may be a plurality of condition information sets, for example, the condition information includes first information and second information. The operation indication information comprises first operation indication information and second operation indication information, wherein the first condition information is associated with the first operation indication information, and the second condition information is associated with the second operation indication information. And based on the fact that the network equipment determines that the data does not meet the first condition information, the network equipment does not execute or skip the first operation indication information, and generates a response message, wherein the response message comprises unsatisfied information that the data does not meet the first condition information. Based on the network device determining that the data satisfies the second condition information, the network device executes second operation indication information.
In a possible design, the first message is a network configuration protocol NETCONF message or a table entry layer state transition configuration protocol RESTCONF message, which may be a PRC message, for example.
In a second aspect, the present application provides a network device configured to perform the method of the first aspect or any one of the possible implementation manners of the first aspect. In particular, the network device comprises means for performing the first aspect or the method in any one of its possible implementations.
In a third aspect, the present application provides a system for managing network devices, the system comprising a management network device and a network device. The management network device is used for sending a first message to the network device, wherein the first message comprises operation indication information and condition information associated with the operation indication information. The network device is used for receiving the first message and acquiring operation instruction information and condition information associated with the operation instruction information from the first message. The network equipment is used for judging whether the data of the network equipment meets the condition information or not according to the condition information. Based on the network device determining that the data does not satisfy the condition information, the network device does not execute or skip the operation indication information and generates a response message, wherein the response message includes the non-satisfaction information. Based on the network device determining that the data satisfies the condition information, the network device executes the content of the operation instruction information.
In a fourth aspect, the present application provides a computer program product comprising computer program instructions that, when run on a network device, cause the network device to perform the method provided in the first aspect or any one of the possible implementations of the first aspect.
In a fifth aspect, a computer storage medium is provided, which is used for storing computer software instructions for the network device, and when the computer software instructions are executed by a computer, the computer is enabled to execute the program according to the first aspect or any possible implementation manner of the first aspect.
In a sixth aspect, the present application provides a network device, comprising: a processor, a communication interface, and a memory. The communication reception is used to receive or send messages. The memory may be adapted to store program code and the processor is adapted to invoke the program code in the memory to perform any one of the possible implementations of the aforementioned first aspect or first aspect.
Drawings
Fig. 1 is a schematic view of a scene structure of a management network device according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for managing a network device according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for managing a network device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a network device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a network device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a system for managing network devices according to an embodiment of the present invention.
Detailed Description
Before describing the embodiments of the present application, the terms referred to in the present application will be described and explained below.
A network configuration protocol (NETCONF) in the present application is a network management protocol based on extensible markup language (XML), and a network management device (for example, a device running a client) may configure and manage a network device (for example, a server device) using NETCONF. The network management device may implement management and configuration of the network device through a Remote Procedure Call (RPC) message defined by NETCONF. The RPC message includes a request message and a response message, e.g., the network management device encapsulates the RPC request content in a < RPC > message and sends it to the network device. The network device receives the RPC request message and executes an operation according to the RPC request. The network device may encapsulate the result of the execution operation in a < rpc-reply > element and respond with a response message to the network management device.
The presentation layer state transition protocol (REST configuration) in the present application is a representation state transition (REST) protocol, which is a network management protocol based on hypertext transfer protocol (HTTP) and can access data in the YANG model. RESTCONF is a simplified version NETCONF realizing RESTful style, and data defined by a YANG model can be edited and inquired through PUT/POST/DELETE/GET of HTTP.
YANG in the present application is a data modeling language For modeling configuration data, status data, remote procedure calls and network management protocol notifications, and the detailed description about YANG can be according to the related sections of Request For Comments (RFC) 6020 and RFC 7950. The YANG model may describe the data in Extensible Markup Language (XML) format or JavaScript Object Notation (JSON) format.
The capability (capability) in this application is a function that can extend the basic function of NETCONF, and each capability is identified by using a Uniform Resource Identifier (URI). In the capability set composed of a plurality of capabilities, the operation content supported by the device can be added, and the operation range of the existing configuration object can be expanded. The management device may discover the capability sets supported by the network devices through interactions and may define new operations, parameters, and configuration objects for the capability sets.
For example, NETCONF supports definition of capabilities, NETCONF defines base1.0 and standard capability sets (capabilities), and a network device may also define its own capability set through NETCONF. For example, NETCONF management devices and managed network devices support base1.0 capabilities, and NETCONF provides a semantic specification for defining the capabilities syntax, which allows network management devices to interact with network devices and define new capabilities.
Generally, after the network management device and the network device establish a secure link-oriented session (session), the network management device may send an RPC request to the network device, and the network device receives the RPC request and executes an operation in the RPC. In the process, regardless of whether the network device can execute the operation, the network device can only execute the operation according to the operation instruction information issued by the network management device, and if the network management device wants the network device to execute the operation after determining that the specific condition information is met, the operation needs to be executed by means of manual means. Therefore, the current implementation scheme is not flexible enough, and needs to determine whether the conditions are met through manual operation, which results in low efficiency of managing the network devices.
The method defines new capability on the network equipment, the network equipment can judge the condition information through the capability, and the network equipment executes the operation in the operation indication information associated with the condition information when the condition information is met or returns the unsatisfied information when the condition information is not met. The method improves the efficiency of managing the network equipment and realizes network management more intelligently. The method, the network equipment and the system are based on the same inventive concept. The principles of the method, network device and system for solving the problems are similar, and therefore, embodiments of the network device, method and system can be mutually referred to, and the same or similar parts are not described again.
One possible application scenario and network device of the present application is described below with reference to fig. 1. The application scenario includes a network management device and a network device, specifically, such as the management device 101, the network device 102, and the network device 103. The management device 101 interacts information with the network device 102 and the network device 103 through NETCONF or RESTCONF, respectively. The Management device 101 may have a function of Network Management, that is, may operate an Enterprise Management System (EMS) or a Network Management System (NMS). The network manager may be deployed on a Virtual Machine (VM) or Linux in the form of software. The management device may also be a device running client software, such as a mobile phone, a Personal Computer (PC), a notebook computer, an ultra mobile PC, a personal digital assistant, or a removable wearable device. Network device 102 and 103 may be a router, switch, firewall, enterprise server, operator server, or service provider server.
The management device 101 may send a request message to the network device 102 or the network device 103, where the request message is used to implement a request for creating, deleting, modifying, or querying data of the network device. After receiving the request message, the network device 102 or the network device 103 processes the request message to create, delete, modify, or query data of the network device. After the request message is processed, the network device sends a response message to the management device to report the processing result of the request message.
Referring to fig. 2 in conjunction with the application scenario shown in fig. 1, a method for managing network devices is provided, where the method includes:
s201, the network equipment receives the first message and obtains operation instruction information and condition information from the first message.
The first message may be a NETCONF message or a RESTCONF message. The first message includes operation instruction information and condition information associated with the operation instruction information, where the condition information is used by the network device to determine whether data or resources on the network device satisfy the condition information, the operation instruction information is used to instruct the network device to execute the content of the operation instruction information, and the condition information and the operation instruction information have an association relationship, for example, whether the operation instruction information is executed by the network device or not needs to be determined according to the condition information by the network device. The network equipment obtains the first message and analyzes the first message to obtain condition information and operation indication information.
In one example, the network device may define a corresponding data model according to the condition information, and the data model may include a list (list) of condition information, and the definition of the YANG model may enable the network device to identify and process the condition information from the first packet. For example, the network device may define a YANG model according to the condition information, where the YANG model includes condition information, such as list of if-match, and the condition information includes node parameters and attribute parameters, as follows:
Figure BDA0002328886390000051
Figure BDA0002328886390000061
if the condition information includes a condition information set, i.e., includes a plurality of condition information, the YANG model may further include other condition information than the above condition information, as follows:
Figure BDA0002328886390000062
as shown above, two or more leaves (leaf) may be defined for the if-match list and the then list in the YANG model, for example, the leaves may be defined as two condition parameters, i.e., a node (node) and an attribute (attribute), and corresponding values, and other condition parameters and corresponding values may also be defined as needed.
Moreover, other types of operation instruction information can be defined through the YANG model according to requirements, and the get-config is defined as follows:
Figure BDA0002328886390000071
copy-config is defined as follows:
Figure BDA0002328886390000072
in one example, the condition information in the first message includes a condition parameter and a value of the condition parameter. The condition parameter includes a node parameter and a value or an attribute parameter corresponding to the condition parameter and a value corresponding to the attribute parameter. The network device 102 in fig. 1 is taken as an example for illustration. In the application scenario shown in fig. 1, the condition information (if-match) and the operation indication information (edge-config) obtained by the network device 102 include two condition parameters that are two leaves (leaf), a first leaf is a condition parameter and a value of a node value (node value), and a second leaf is a condition parameter and a value of an attribute value (attribute value).
In one example, before the network device receives the first message, the network device obtains capability information, where the capability information is used to indicate that the network device has a capability of determining whether the network device satisfies the condition information.
For example, the network device is exemplified as the network device 102 in fig. 1. In the application scenario shown in fig. 1, the network device 102 defines a new capability set for indicating that the network device 102 has the capability of determining whether it satisfies the condition information.
S202, the network equipment judges whether the data or the resources meet the condition information.
In one example, the network device determines whether the data or resource of the network device satisfies the condition information according to the condition information obtained from the first packet. Or the network equipment acquires the condition information which is the same as the condition information in the first message and judges according to the acquired same condition information and the data of the network equipment.
In an example, before the network device executes the operation instruction information of the first packet, the network device first determines whether the condition information in the first packet is satisfied, so that the network executes the operation instruction information according to the condition information, and the efficiency of managing the network device is improved.
An example of a first packet including a node value is shown as follows:
Figure BDA0002328886390000081
in connection with the above example, xpath in getnodalue (xpath) is used to describe the path for which an instance node is to be obtained, and the xpath function represents a query on the device for the value of the node, and getnodalue (/ debug: debug/debug: cpu-info/debug: system-cpu-use) as shown above is used to obtain the value of the system-cpu-use node. For example, the condition-node getnode value (/ debug: cpu-info/debug: system-cpu-use < 80% > </condition > is used to indicate that the value of the system-cpu-use node is less than 80%, that is, the data or resource of the network device satisfies the condition information, otherwise, the condition information is not satisfied.
An example of a first packet including attribute values is shown below:
Figure BDA0002328886390000082
in connection with the above example, xpath in getnodedattribute (xpath, attribute) is used to describe the path of the instance node to be obtained, attribute describes the attribute of the xpath node, and the xpath function represents the value of querying the device for the node matching attribute, such as getnodalue (/ debug: debug/debug: cpu-info/debug: system-cpu-use, default), which represents the value used to obtain the attribute of system-cpu-use node default. For example, the < condition-node > getnododeattribute (/ debug: cpu-info/debug: system-cpu-use, default)! And when the default attribute value of the system-cpu-use node is not equal to the false, the condition returns to true, that is, the data or the resource of the network device satisfies the condition information, otherwise, the condition information is not satisfied.
The < exit-config > operation in the above example is used to load all or part of the configuration data into the specified target configuration data set, and the < exit-config > operation supports multiple loading configuration modes, for example: local files, remote files, online editing; if not, these new configuration data are created. The < config > element may also be encapsulated as a set of hierarchical configuration data defined by the data model, e.g., < data >. These configuration numbers must be placed in a specified namespace to enable the device to detect the data model that defines the configuration data that must comply with the constraints of the data model that are defined based on the capability set.
In an example, the operation indication information may also be other operation indication information such as < get-config > or < copy-config >, which replaces the < exit-config >, and this application is not illustrated.
In one example, a module is added to the netconf library of the network device to store a condition function corresponding to the condition information, such as a! Any one or combination of b, a, b, a < b, a > b, a like b, or, and, wherein'! If the front and back values are not equal, then returning true, and equal to returning false; "like" indicates that the character string which can match b in a returns true, and the character string which can not match b returns false; the general language has libraries which can be directly used, can synchronize the condition functions in the python libraries and supports extensibility.
The network device may obtain the node parameter and the attribute parameter from the first packet. And the network equipment judges whether the network equipment meets the condition information according to the node parameters and the attribute parameters and the condition function of the netconf library of the network equipment.
S203, based on the network device determining that the condition information is not satisfied, the network device generates a response message.
And if the network equipment determines that the condition information is not satisfied, the network equipment generates a response message aiming at the first message. The response message includes the unsatisfied information of the network device.
In one example, the unsatisfied condition information included in the response message may include one or more of an error identification (error-tag), an error type (error-type), an error rank (error-preference), error information (error-info), and an error Description (Description). For example, the response message includes an error identification (error-tag), an error type (error-type), and error information (error-info).
For example, the response packet may carry the unsatisfied information. As shown below, is one example of the possibilities for unsatisfied information and associated description;
error-tag:condition-denied
error-type:protocol,application
error-severity:error
error-info:name of the bad condition
Description:implement the requested protocol operation or data model is denied because condition failed.
the method includes that a character string for identifying an error condition is contained in < error-tag >, and a new description of the error condition of < error-tag > is added, for example, condition-distorted is used for indicating that the error condition is rejection condition information, and it can be understood that the error condition is that data or resources of the network device do not meet the condition information.
< error-info > contains the specific error type of the protocol or data model, and the present application adds a new description of the content of the < error-info > error, e.g., the name of the bad condition information.
< Description > is used to describe error specification, for example, the implementation of the requested protocol operation or data model is used to indicate that the requested protocol operation is executed or the data model is rejected because the condition information fails.
The network device may select one or more of the above unsatisfied messages to add to the response message as needed.
In one example, when the network device determines that the condition information (if-match) is supported according to the capability, the network device reads the condition parameter in the condition information (if-match), and determines whether the obtained result of the function condition defined in the netconf library is true or false. If the network equipment does not meet the condition information, the network equipment does not process the content in the operation indication information and returns a response message, wherein the response message comprises unsatisfied information that the network equipment does not meet the condition information. Here, the condition information may include a plurality of condition parameters, for example, a union including < condition-node > </condition-node > and < condition-attribute > </condition-attribute >, and when both are satisfied, the condition is satisfied, and when one of the two is not satisfied, the condition is not satisfied.
S204, based on the network equipment determining that the network equipment meets the condition information, the network equipment executes the operation instruction information.
In one example, if the network device determines that the network device satisfies the condition information through the judgment, the network device executes the operation instruction information.
In one example, when the network device determines that the capability information (if-match) is supported according to the capability information, the network device reads a condition parameter in the condition information, and determines whether a result of the condition is true or false according to a function defined in the netconf library. If true, the network device continues to process the content of the operation indication information.
Fig. 3 is a schematic flow chart of a method for managing network devices according to the present application. The network device in fig. 3 may be network device 102 or 103 in the scenario shown in fig. 1. The method comprises the following steps:
s301, the network device obtains the ability of supporting judgment of the condition information.
For example, in the application scenario shown in fig. 1, the network device 102 defines a new capability information for describing the capability of the network device 102 to determine whether its data or resource satisfies the condition information (e.g., if-match). For example, the capability information may be defined as follows: < capability > http:// XXX/netconf/capability/condition > wherein "XXX" needs to be determined according to a defined vendor or standard organization.
S302, the network device defines a data model supporting the condition information.
In the scenario shown in fig. 1, the network device 102 defines a data model, such as a YANG model, that supports determining conditional information. For the definition, reference may be made to the relevant description in step 201 in fig. 2.
S303, the management device sends a request message carrying the condition information and the operation instruction information to the network device.
The management device may carry condition information and operation indication information through an RPC request message, which may include a plurality of condition information and a plurality of operation indication information, for example, including condition information if-match (condition1) …. the (condition2) … is used to carry two pieces of condition information, it may be understood that when the network device satisfies the condition1, the network device may normally execute the operation indication information associated with the condition 1; when the network device satisfies condition2, the network device may normally execute the operation instruction information associated with condition2, and so on, as follows:
Figure BDA0002328886390000101
Figure BDA0002328886390000111
the above scheme may be used in the rpc request message of < exit-config >, and also in the rpc request message of < get-config > or < copy-config >.
S304, the network equipment receives the request message.
And the network equipment receives the PRC request message sent by the management equipment and acquires the condition information from the RPC request message. The network device first determines whether it supports the determination of the condition information. The network equipment determines that the network equipment has the capability of supporting the judgment condition information according to the capability information defined in the capability set.
S305, the network device determines whether its data or resource satisfies the condition information.
After the network equipment determines the capability of supporting judgment condition information, the network equipment reads condition parameters and condition parameter values in the condition information, judges whether the result of the condition is true or false according to a function defined in a lib library of the network equipment, if the result is true, the network equipment meets the condition information, and if the result is false, the network equipment does not meet the condition information.
S306, if the network equipment does not meet the condition information, the operation indication information is not executed or skipped, and the unsatisfied information is returned.
If the network device does not meet the condition, the network device does not execute the operation indication information in the PRC request message, or skips the operation indication information in the PRC request message, and returns a PRC response message carrying the unsatisfied information, as follows:
Figure BDA0002328886390000112
in one example, the condition information may include a plurality of branch condition information, such as if-match (condition1) …. then (condition 2). If the network device does not satisfy condition1, the operation indication information associated with condition1 is not executed or skipped, and unsatisfied information that does not satisfy condition1 is returned; if the network device does not satisfy conditions 1 and 2, the operation indication information associated with condition1 is not executed or skipped, and the operation indication information associated with condition2 is not executed or skipped, and a response message including non-satisfaction information that does not satisfy conditions 1 and 2 is returned.
And S307, if the network equipment meets the condition information, executing the operation instruction information.
In one example, the condition information may include a plurality of branch condition information (conditions), such as if-match (condition1) …. the (condition 2). If the network device satisfies condition1, performing an operation associated with condition 1; if the network device satisfies condition1 and condition2, the operation instruction information associated with condition1 and the operation instruction information associated with condition2 are executed, respectively. After the network device executes the corresponding operation instruction information, a PRC response may be returned, where the PRC response includes < ok >, and may also include identification information of the satisfied condition.
In one example, the network device may select one of steps 306 and 307 to perform, or perform steps 306 and 307.
Fig. 4 shows a schematic diagram of a possible structure of the network device involved in the above embodiments, and the network device 400 may have the functions of the network device in the embodiments shown in fig. 2 and fig. 3. Referring to fig. 4, the network device 400 includes: a receiving unit 401 and a processing unit 402. The network device 400 may have the corresponding functions of the network devices in the embodiments shown in fig. 2 and fig. 3, for example, the receiving unit 401 may execute the method corresponding to step 201 in fig. 2 and step 304 in fig. 3. The processing unit 402 can execute the method corresponding to steps 202-204 in FIG. 2 and the method corresponding to steps 305-307 in FIG. 3. The receiving unit 401 is configured to receive a first packet, where the first packet includes condition information and operation instruction information associated with the condition information. The processing unit 402 is configured to determine whether data of the network device satisfies the condition information according to the condition information, determine that the network device does not satisfy the condition information based on the network device, the network device does not execute or skip the operation instruction information, and generate a response packet for the first packet, where the response packet includes the network device unsatisfied information. Or the processing unit 402 determines that the network device satisfies the condition information based on the network device for executing the operation instruction information.
In one example, before the network device 400 receives the first packet, the network device 400 obtains capability information indicating that the network device has a capability of determining whether the network device satisfies the condition information.
In one example, the condition information includes a condition parameter and a value of the condition parameter.
In one example, the condition information includes a node parameter or an attribute parameter, and the condition parameter value includes a value corresponding to the node parameter or a value corresponding to the attribute parameter.
In one example, the non-satisfaction information includes one or more of an error identification, an error type, an error level, error information, and an error description.
In one example, the condition information includes first condition information and second condition information. The operation indication information comprises first operation indication information and second operation indication information, wherein the first condition information is associated with the first operation indication information, and the second condition information is associated with the second operation indication information. Based on the network device determining that the network device does not satisfy the first condition information, the network device does not execute or skip the first operation indication information, the network device generates a response message for the first message, and the response message includes the network device unsatisfied information. And/or determining that the network device satisfies the second condition information based on the network device executing the content of the second operation instruction information.
Fig. 5 shows another possible structural diagram of the network device involved in the above embodiment, and the network device 500 may implement the functions of the network device in the embodiments shown in fig. 2 and fig. 3. The network device 500 includes: memory 501, processor 502, and communication interface 503. Wherein the memory 501, the processor 502 and the communication interface 503 may be connected to each other by a bus 504. The bus 504 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus. The processor 502 is configured to control and manage the actions of the network device 500, for example, the processor 502 is configured to support the network device 500 to perform the method corresponding to steps 202 and 204 in fig. 2, and the method corresponding to steps 305 and 307 in fig. 3, and/or other processes for the technologies described herein. The communication interface 503 is used to support communication between the network device 500 and other network entities, for example, to execute the method corresponding to step 201 in fig. 2 and step 304 in fig. 3. A memory 501 for storing program codes and data of the network device 500.
The memory 501 may be a volatile memory (volatile memory), such as a random-access memory (RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory (flash memory), a Hard Disk Drive (HDD) or a solid-state drive (SSD); or a combination of the above types of memories, for storing program code for performing the methods of the present application.
The processor 502 may be a Central Processing Unit (CPU), a general purpose processor, a Digital Signal Processor (DSP), an application-specific integrated circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or execute the various illustrative logical blocks, modules, and circuits described in connection with the embodiment disclosure. The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs, and microprocessors, among others.
The communication interface 503 may be a transceiver. The communication interface 503 is used for communication with other network devices, for example, with a management device. For example, the communication with the management device may be through RPC messages. The communication interface 503 may be an Ethernet (Ethernet) interface, a Fast Ethernet (FE) interface, or a Gigabit Ethernet (GE) interface.
Referring to fig. 6, an embodiment of the present invention provides a system 600 for managing devices, where the system 600 includes a management device 601 and a network device 602. The management device 601 and the network device 602 may implement the functions of the management device and the network device, respectively, in the embodiment shown in fig. 3. For example, management device 601 performs processes 303 and 308 in fig. 3, and/or other processes performed by management devices for the techniques described herein. Network device 602 for implementing process 201 of fig. 2 and processes 301 of fig. 3 and 302 and 304 of fig. 307, and/or other processes performed by network devices for the techniques described herein.
In one example, the management device 601 is configured to send a first packet, where the first packet includes condition information and operation indication information associated with the condition information. The network device 602 is configured to receive a first packet. The network device 602 is configured to receive the first packet and obtain operation instruction information and condition information associated with the operation instruction information from the first packet. The network device 602 is configured to determine whether the data of the network device 602 satisfies the condition information according to the condition information. Based on the network device 602 determining that the data does not satisfy the condition information, the network device 602 does not execute or skip the operation indication information and generates a response message, wherein the response message includes the non-satisfaction information. And/or based on the network device 602 determining that the data satisfies the condition information, the network device 602 executes the content of the operation instruction information.
An embodiment of the present invention further provides a non-volatile storage medium, which is used to store software instructions used in the methods of fig. 2 and fig. 3 in the foregoing embodiments, and includes a program for executing the method shown in the foregoing embodiments, and when the program is executed on a computer or a network device, the computer or the network device is caused to execute the method in the foregoing method embodiments.
Embodiments of the present invention also provide a computer program product comprising computer program instructions, which, when run on a network device, cause the network device to perform the method in the foregoing method embodiments.
The "first" in the first network device mentioned in the embodiment of the present invention is only used for name identification, and does not represent the first in sequence. The rule applies equally to "second" and "third".
It should be noted that any of the above-described device embodiments are merely schematic, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiments of the network device provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between the modules, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
The steps of a method or algorithm described in the disclosure of the embodiments of the present invention may be implemented in hardware, or may be implemented by a processor executing software instructions. The software instructions may be comprised of corresponding software modules that may be stored in Random Access Memory (RAM), flash memory, Read Only Memory (ROM), Erasable Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), a hard disk, a removable hard disk, an optical disk, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an ASIC. Additionally, the ASIC may reside in a network device. Of course, the processor and the storage medium may reside as discrete components in a network device.
Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in this invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The above-described embodiments are intended to explain the objects, aspects and advantages of the present invention in further detail, and it should be understood that the above-described embodiments are merely exemplary embodiments of the present invention.

Claims (16)

1. A method of managing a network device, the method comprising:
the method comprises the steps that network equipment receives a first message and obtains operation indication information and condition information related to the operation indication information from the first message;
the network equipment judges whether the data of the network equipment meet the condition information or not according to the condition information;
based on the network equipment determining that the data does not satisfy the condition information, the network equipment does not execute the operation indication information and generates a response message, wherein the response message comprises unsatisfied information; alternatively, the first and second electrodes may be,
based on the network device determining that the data meets the condition information, the network device executes the content of the operation instruction information.
2. The method of claim 1, wherein prior to the network device receiving the first packet, the method further comprises:
and the network equipment acquires capability information, wherein the capability information is used for describing that the network equipment has the capability of judging whether the data meets the condition information.
3. The method according to claim 1 or 2, wherein the condition information includes a condition parameter and a value of the condition parameter.
4. The method according to claim 3, wherein the condition information includes a node parameter or an attribute parameter, and the condition parameter value includes a value corresponding to the node parameter or a value corresponding to the attribute parameter.
5. The method of any one of claims 1-4, wherein the non-satisfaction information comprises one or more of an error identification, an error type, an error rating, error information, and an error description.
6. The method according to any one of claims 1 to 5, wherein the condition information includes first condition information and second condition information, and the operation indication information includes first operation indication information and second operation indication information, wherein the first condition information is associated with the first operation indication information, and the second condition information is associated with the second operation indication information;
the determining, by the network device, that the data does not satisfy the condition information, the network device not executing the operation instruction information, and generating a response packet, where the response packet includes unsatisfied information, and the method includes:
based on the network equipment determining that the data does not satisfy the first condition information, the network equipment does not execute the first operation indication information and generates a response message, wherein the response message comprises unsatisfied information that the data does not satisfy the first condition information;
the determining, by the network device, that the data satisfies the condition information, and the executing, by the network device, the content of the operation instruction information includes:
based on the network device determining that the data satisfies the second condition information, the network device executes the content of the second operation instruction information.
7. The method according to any of claims 1-6, wherein the first message is a network configuration protocol NETCONF message or a table entry layer state transition configuration protocol RESTCONF message.
8. A network device, characterized in that the network device comprises:
the receiving unit is used for receiving a first message and acquiring operation indication information and condition information related to the operation indication information from the first message;
the processing unit is used for judging whether the data of the network equipment meets the condition information or not according to the condition information;
the processing unit is used for determining that the data does not meet the condition information based on the processing unit, not executing or skipping the operation indication information and generating a response message, wherein the response message comprises the non-meeting information; alternatively, the first and second electrodes may be,
the processing unit is used for determining that the data meets the condition information based on the processing unit and executing the content of the operation instruction information.
9. The network device according to claim 8, further comprising an obtaining unit configured to obtain capability information, where the capability information is used to describe that the network device has a capability of determining whether the data satisfies the condition information.
10. The network device according to claim 8 or 9, wherein the condition information includes a condition parameter and a value of the condition parameter.
11. The network device according to claim 10, wherein the condition information includes a node parameter or an attribute parameter, and a value of the condition parameter includes a value corresponding to the node parameter or a value corresponding to the attribute parameter.
12. The network device of any of claims 8-11, wherein the non-satisfied information includes one or more of an error identification, an error type, an error rating, error information, and an error description.
13. The network device according to any of claims 8-12, wherein the condition information comprises first condition information and second condition information, and the operation indication information comprises first operation indication information and second operation indication information, wherein the first condition information is associated with the first operation indication information, and the second condition information is associated with the second operation indication information;
the processing unit is configured to, based on the determination that the data does not satisfy the first condition information by the processing unit, not execute or skip the first operation instruction information, and generate a response packet, where the response packet includes unsatisfied information that does not satisfy the first condition information;
the processing unit is configured to execute the second operation instruction information based on the processing unit determining that the data satisfies the second condition information.
14. The method according to any of claims 8-13, wherein the first message is a network configuration protocol NETCONF message or a table entry layer state transition configuration protocol RESTCONF message.
15. A computer-readable storage medium comprising instructions that, when executed by a computer, cause the computer to perform the method of any of claims 1 to 7.
16. A system for managing network devices, the system comprising a management device and a network device;
the management device is configured to send a first packet, where the first packet includes operation instruction information and condition information associated with the operation instruction information;
the network device is configured to receive the first packet and obtain the operation instruction information and the condition information from the first packet;
the network equipment is used for judging whether the data of the network equipment meets the condition information or not according to the condition information;
the network device, based on the determination that the data does not satisfy the condition information by the network device, is configured to not execute the operation instruction information and generate a response packet, where the response packet includes unsatisfied information;
and the network equipment is used for executing the content of the operation instruction information based on the condition information that the data meets the condition information determined by the network equipment.
CN201911328028.7A 2019-12-20 2019-12-20 Method, device and system for managing network device Active CN113014411B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911328028.7A CN113014411B (en) 2019-12-20 2019-12-20 Method, device and system for managing network device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911328028.7A CN113014411B (en) 2019-12-20 2019-12-20 Method, device and system for managing network device

Publications (2)

Publication Number Publication Date
CN113014411A true CN113014411A (en) 2021-06-22
CN113014411B CN113014411B (en) 2022-11-22

Family

ID=76382765

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911328028.7A Active CN113014411B (en) 2019-12-20 2019-12-20 Method, device and system for managing network device

Country Status (1)

Country Link
CN (1) CN113014411B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478576A (en) * 2008-01-03 2009-07-08 华为技术有限公司 Method, apparatus and system for selecting service network
CN102123055A (en) * 2011-04-19 2011-07-13 杭州华三通信技术有限公司 Ethernet switch and method for modifying configuration of same
CN104639408A (en) * 2015-02-10 2015-05-20 联想(北京)有限公司 Information processing method and electronic equipment
CN104754013A (en) * 2013-12-31 2015-07-01 中国移动通信集团公司 Cloud computing platform network resource control method, device and system
CN105391628A (en) * 2014-08-27 2016-03-09 横河电机株式会社 Data transferring system, data transferring method, controller, controlling method, and non-transitory computer readable storage medium
CN105591796A (en) * 2015-07-21 2016-05-18 杭州华三通信技术有限公司 Network equipment configuration method and device
US20160350095A1 (en) * 2015-05-26 2016-12-01 Cisco Technology, Inc. Techniques for enabling dynamic update of device data models
CN106612196A (en) * 2015-10-23 2017-05-03 华为技术有限公司 Resource obtaining method and device
WO2018219322A1 (en) * 2017-05-31 2018-12-06 中兴通讯股份有限公司 Device management method and apparatus, and processor and storage medium
US20190132213A1 (en) * 2017-10-31 2019-05-02 Electronics And Telecommunications Research Institute Method and apparatus for modeling netconf-based network system instructions with yang language

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478576A (en) * 2008-01-03 2009-07-08 华为技术有限公司 Method, apparatus and system for selecting service network
CN102123055A (en) * 2011-04-19 2011-07-13 杭州华三通信技术有限公司 Ethernet switch and method for modifying configuration of same
CN104754013A (en) * 2013-12-31 2015-07-01 中国移动通信集团公司 Cloud computing platform network resource control method, device and system
CN105391628A (en) * 2014-08-27 2016-03-09 横河电机株式会社 Data transferring system, data transferring method, controller, controlling method, and non-transitory computer readable storage medium
CN104639408A (en) * 2015-02-10 2015-05-20 联想(北京)有限公司 Information processing method and electronic equipment
US20160350095A1 (en) * 2015-05-26 2016-12-01 Cisco Technology, Inc. Techniques for enabling dynamic update of device data models
CN105591796A (en) * 2015-07-21 2016-05-18 杭州华三通信技术有限公司 Network equipment configuration method and device
CN106612196A (en) * 2015-10-23 2017-05-03 华为技术有限公司 Resource obtaining method and device
US20180241689A1 (en) * 2015-10-23 2018-08-23 Huawei Technologies Co., Ltd. Resource obtaining method and apparatus
WO2018219322A1 (en) * 2017-05-31 2018-12-06 中兴通讯股份有限公司 Device management method and apparatus, and processor and storage medium
US20190132213A1 (en) * 2017-10-31 2019-05-02 Electronics And Telecommunications Research Institute Method and apparatus for modeling netconf-based network system instructions with yang language

Also Published As

Publication number Publication date
CN113014411B (en) 2022-11-22

Similar Documents

Publication Publication Date Title
KR102209276B1 (en) Messaging protocol communication management
US9143511B2 (en) Validation of conditional policy attachments
US20230275815A1 (en) Method and device for terminal device management based on right control
CN111090423B (en) Webhook framework system and method for realizing active calling and event triggering
US8650288B2 (en) Runtime usage analysis for a distributed policy enforcement system
US10942785B2 (en) Integration of software applications with infrastructure
US11627169B2 (en) Network-based Media Processing (NBMP) workflow management through 5G Framework for Live Uplink Streaming (FLUS) control
CN112583630B (en) Device management method, device, system, device and storage medium
CN107301053B (en) Picture configuration method and device and electronic terminal
CN108370329B (en) Management method and device for management function object
US20170237687A1 (en) Resource trees by management controller
CN113014411B (en) Method, device and system for managing network device
US11128587B2 (en) Enterprise messaging using a virtual message broker
CN111563215A (en) Method and device for controlling front-end operation authority and related equipment
CN113726855B (en) Service aggregation method, device, electronic equipment and computer-readable storage medium
CN111459819B (en) Software testing method and device, electronic equipment and computer readable medium
CN113079029B (en) Configuration information subscription method and device
CN113032004A (en) Method, apparatus and program product for managing development jobs in a development environment
CN111026502A (en) Business debugging architecture creating method and device, electronic equipment and storage medium
CN107005468B (en) Method and device for determining NSD (non-volatile memory) to be uploaded
US20230289237A1 (en) Automated nesting of existing stacks in a root stack within an aws environment
US10536508B2 (en) Flexible data communication
CN113157462A (en) Data management method, device, equipment, computer readable storage medium and system
CN117857578A (en) Multi-scene compatible mirror synchronization method, device, equipment and medium
CN117519834A (en) Method and system for realizing user-defined function of CSI plug-in

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant