WO2023279848A1 - 一种查询方法、装置及设备 - Google Patents
一种查询方法、装置及设备 Download PDFInfo
- Publication number
- WO2023279848A1 WO2023279848A1 PCT/CN2022/092742 CN2022092742W WO2023279848A1 WO 2023279848 A1 WO2023279848 A1 WO 2023279848A1 CN 2022092742 W CN2022092742 W CN 2022092742W WO 2023279848 A1 WO2023279848 A1 WO 2023279848A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- query
- information
- license
- mapping relationship
- yang
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/0246—Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/14—Network analysis or design
- H04L41/145—Network analysis or design involving simulating, designing, planning or modelling of a network
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/248—Presentation of query results
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/12—Arrangements for remote connection or disconnection of substations or of equipment thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/0246—Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
- H04L41/0253—Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using browsers or web-pages for accessing management information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/085—Retrieval of network configuration; Tracking network configuration history
- H04L41/0853—Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0866—Checking the configuration
- H04L41/0869—Validating the configuration within one network element
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/133—Protocols for remote procedure calls [RPC]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/24—Negotiation of communication capabilities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0806—Configuration setting for initial configuration or provisioning, e.g. plug-and-play
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0895—Configuration of virtualised networks or elements, e.g. virtualised network function or OpenFlow elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
- H04L41/5061—Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the interaction between service providers and their network customers, e.g. customer relationship management
- H04L41/5067—Customer-centric QoS measurements
Definitions
- the present application relates to the communication field, and in particular to a query method, device and equipment.
- Network Configuration Protocol provides a mechanism for communication between network management devices and network devices. Users can use this mechanism to trigger commands to add, modify, and delete configuration data on network devices on network management devices, and Get configuration data and status information for network devices.
- License is a form of contract between the supplier and the user to authorize/authorize the scope and duration of the software products sold/purchased. Through the license, the user obtains the corresponding services promised by the supplier, that is, the user can Use the corresponding function of the network device, and have the right to perform the above-mentioned processing on the configuration data on the network device or obtain status information. If the network management device can know that the function on the network device is permitted, it can perform further processing to improve user experience.
- the embodiment of the present application provides a query method, device and equipment to achieve the purpose of the network management equipment obtaining the permission of the YANG model object on the network equipment.
- a query method which can be applied to a network management device deployed with a NETCONF client.
- the method includes the following steps: the network management device generates a query message, the query message includes query conditions, and the query conditions are used to determine the first mapping relationship between license information and YANG model object information.
- the license information may include a license name.
- the license information may also include one or more items of license version number and license enabling information.
- the YANG model object may include one or more of a YANG package (package), a model set (module-set), a model (module) and a data node (data node).
- the information of the YANG model object may include an identification of the YANG model object.
- the information of the YANG model object may also include one or more of feature information and capability information of the YANG model object.
- the network management device After generating the query message, the network management device sends the query message to the first device, and receives a response message obtained from the first device according to the query condition, where the response message includes the first mapping relationship.
- the network management device sends a query message including the query condition to the first device, and receives a response message from the first device according to the query message, thereby obtaining the license information and the YANG model object obtained by the network device according to the query condition
- the first mapping relationship among the information realizes the network management device to obtain the permission of the YANG model object on the network device, lays a foundation for the network management device to perform further processing, and improves user experience.
- the query condition in the query message can be implemented in the following possible ways:
- the query condition includes license information
- the query message is used for the first device to obtain the corresponding information of the YANG model object according to the license information.
- the license information can be used to refer to all licenses in general, and can also be used to indicate a specific license. If it refers to all licenses in general, the response message obtained by the network management device can include the information of the YANG model objects corresponding to all licenses; if it indicates a specific license, the response message obtained by the network management device includes the information corresponding to the specific license.
- Information about YANG model objects In this implementation, a new license module can be added in the YANG model, which is specially used to store the first mapping relationship.
- Implementation manner 2 the query condition includes the information of the YANG model object, and the query message is used for the first device to obtain the license information according to the information of the YANG model object.
- This implementation can extend the extension (extension) keyword of the YANG model object in the YANG module, and define the license information of the YANG model object in the extension keyword. Or, extend the existing YANG package, and add the license information of the YANG model object in the YANG package.
- Implementation mode 3 query conditions include a first query instruction and an identifier of a data node, the first query instruction is used to query the capability information of the data node in the YANG model system capabilities (system-capabilities), and the capability of the data node The information includes the first mapping relationship.
- This implementation needs to expand the existing system-capabilities module of the YANG model and add the license information of the data node. The license can control all or some capabilities of the data node.
- the query condition includes a second query instruction
- the second query instruction is used to query a YANG library (library)
- the YANG library includes the first mapping relationship. This implementation needs to expand the existing YANG library, and add the license information of the YANG model object to the YANG library.
- the query condition includes a third query instruction
- the third query instruction is used to query the structure (schema) information of the YANG model
- the schema information includes the first mapping relationship. This implementation needs to extend the existing YANG schema, and add the license information of the YANG model object to the YANG schema.
- Implementation manner six the query condition includes a file name, and the query message is used for the first device to obtain the first mapping relationship from a file corresponding to the file name.
- the type of the file may be a YANG instance file (instance-file).
- the query condition includes the device identifier of the network device carrying the YANG model object, and the query message is used for the first device to obtain the first mapping relationship according to the device identifier and the second mapping relationship , the second mapping relationship is a correspondence between the device identifier and the first mapping relationship.
- the device identifier is used to uniquely identify a network device, for example, a router identifier (router ID).
- the query message in the implementation mode 1 to the implementation mode 5 may be a remote procedure call (Remote Procedure Call, RPC) message, and the response message may be an RPC response message.
- RPC Remote Procedure Call
- the query message and the response message in the sixth implementation mode and the seventh implementation mode may be messages based on protocols such as Hyper Text Transfer Protocol (Hyper Text Transfer Protocol, HTTP), File Transfer Protocol (File Transfer Protocol, FTP) and the like.
- the query message may be generated according to a user's trigger, or may be generated according to an event trigger.
- the network management device in response to obtaining the license expiration alarm information indicated by the license information, the network management device generates a query message according to the license information to obtain information about the YANG model object of the license, For user reference or next steps.
- the query condition of the query message can refer to one or more of the above-mentioned implementation mode 1, implementation mode 4 to implementation mode 7, etc.
- the network management device in response to the network management device receiving a remote procedure call RPC response message, the network management device generates a query message, and the PRC response message instructs the network management device to configure the YANG model object
- the reason for the failure includes that the license of the YANG model object is invalid, for user reference or to perform subsequent steps, for example, in response to the license invalidation indicated by the license information, the network management device sends an activation instruction to the first device, and the activation instruction Used to indicate the activation of the license.
- the query condition in the query message may refer to the second implementation method or the third implementation method.
- the network management device in response to generating a PRC message, the network management device generates a query message to query license information of the YANG model object, where the RPC message is used to configure the YANG model object. After receiving the response message, the network management device may send the RPC message to the network device in response to the license indicated by the license information being in an active state, so as to configure the YANG model object.
- the query condition in the query message may refer to the second implementation method or the third implementation method.
- a query method is provided, which is applied to a first device, and the first device may be a server or a network device deployed with a YANG server.
- the method includes the following steps: the first device receives a query message from a network device, and the query message includes query conditions.
- the first device obtains a first mapping relationship according to the query condition, and the first mapping relationship is a mapping relationship between license information and YANG model object information.
- license information and YANG model object information please refer to the above, and will not repeat them here.
- the first device After acquiring the first mapping relationship, the first device sends a response message to the network device, where the response message includes the first mapping relationship.
- the first device receives the query message including the query condition, and sends the response message obtained according to the query message to the first device, so that the network management device obtains the license information and the YANG model obtained by the first device according to the query condition
- the first mapping relationship between object information realizes the purpose of the network management device obtaining the permission of the YANG model object on the network device, lays a foundation for the network management device to perform further processing, and improves user experience.
- the first device has different implementations for obtaining the first mapping relationship:
- Implementation manner 1 the query condition includes license information, and the first device obtaining the first mapping relationship according to the query condition includes: the first device obtaining the corresponding information of the YANG model object according to the license information.
- Implementation mode 2 the query condition includes the information of the YANG model object, and the first device obtaining the first mapping relationship according to the query condition includes: the first device obtaining the first mapping relationship according to the information of the YANG model object license information.
- the query condition includes a first query instruction and the identifier of the data node, and the first query instruction is used to query the capability information of the data node in the system-capabilities of the YANG model system.
- the first device obtaining the first mapping relationship according to the query condition includes: the first device obtaining the capability of the data node in the YANG system-capabilities according to the first query instruction and the identifier of the data node Information, the capability information of the data node includes the first mapping relationship.
- Implementation manner four the query condition includes a second query instruction, and the second query instruction is used to query the YANG library.
- the acquiring the first mapping relationship by the first device according to the query condition includes: acquiring the YANG library by the first device according to the second query instruction, and the YANG library includes the first mapping relationship.
- the query condition includes a third query instruction
- the third query instruction is used to query the structural schema information of the YANG model.
- the acquiring, by the first device, the first mapping relationship according to the query condition includes: acquiring, by the first device, the schema information according to the third query instruction, where the schema information includes the first mapping relationship.
- Implementation manner six the query condition includes a file name.
- the acquiring, by the first device, the first mapping relationship according to the query condition includes: acquiring, by the first device, the first mapping relationship from a file corresponding to the file name.
- Implementation manner seven the query condition includes the device identifier of the network device carrying the YANG model object.
- Obtaining the first mapping relationship by the first device according to the query condition includes: obtaining the first mapping relationship by the first device according to the device identifier and a second mapping relationship, the second mapping relationship being the A corresponding relationship between the identifier and the first mapping relationship.
- a query device which is applied to a network management device, and the device includes: a processing unit, configured to generate a query message, the query message includes a query condition, and the query condition is used to determine the license information and A first mapping relationship between information of YANG model objects; a sending unit, configured to send the query message to the first device; a receiving unit, configured to receive a response message obtained from the first device according to the query condition, The response message includes the first mapping relationship.
- the query condition includes license information
- the query message is used for the first device to obtain information about the corresponding YANG model object according to the license information.
- the processing unit is configured to generate a query message according to the license information in response to obtaining the license expiration alarm information indicated by the license information.
- the query condition includes the information of the YANG model object, and the query message is used for the first device to obtain the license information according to the information of the YANG model object.
- the processing unit is configured to generate a query message in response to the network management device receiving a remote procedure call (RPC) response message, and the PRC response message instructs the network management device to perform a query on the YANG model object.
- RPC remote procedure call
- the reason for the configuration failure includes that the license of the YANG model object is invalid.
- the sending unit is further configured to, after receiving the response message, send an activation instruction to the first device in response to the failure of the license indicated by the license information, where the activation instruction is used to indicate Activate the license.
- the processing unit is configured to generate a query message in response to generating a PRC message, where the RPC message is used to configure the YANG model object.
- the sending unit is further configured to, after receiving the response message, send the RPC message to the network device in response to the license indicated by the license information being in an activated state.
- the information of the YANG model object includes the identifier of the YANG model object.
- the information of the YANG model object further includes one or more of the following: feature information of the YANG model object and capability information of the YANG model object.
- the query condition includes a first query instruction and the identification of the data node
- the first query instruction is used to query the capability information of the data node in the YANG model system capability system-capabilities
- the capability information of the node includes the first mapping relationship.
- the query condition includes a second query instruction
- the second query instruction is used to query a YANG library library
- the YANG library includes the first mapping relationship
- the query condition includes a third query instruction
- the third query instruction is used to query structural schema information of the YANG model
- the schema information includes the first mapping relationship
- the query condition includes a file name
- the query message is used for the first device to obtain the first mapping relationship from a file corresponding to the file name.
- the query condition includes the device identifier of the network device carrying the YANG model object, and the query message is used for the first device to obtain the first device according to the device identifier and the second mapping relationship.
- a mapping relationship, the second mapping relationship is a correspondence relationship between the device identifier and the first mapping relationship.
- a query device which is applied to a first device, and the device includes: a receiving unit, configured to receive a query message from a network device, where the query message includes a query condition; a processing unit, configured to The query condition obtains a first mapping relationship, and the first mapping relationship is a first mapping relationship between license information and YANG model object information; a sending unit is configured to send a response message to the network device, and the The response message includes the first mapping relationship.
- the query condition includes license information
- the processing unit is configured to acquire the corresponding information of the YANG model object according to the license information.
- the query condition includes information of the YANG model object
- the processing unit is configured to acquire the license information according to the information of the YANG model object.
- the query condition includes the query condition includes a first query instruction and the identification of the data node, and the first query instruction is used to query the capability information of the data node in the YANG model system capability system-capabilities;
- the processing unit is configured to acquire capability information of the data node in the YANG system-capabilities according to the first query instruction and the identifier of the data node, where the capability information of the data node includes the first mapping relation.
- the query condition includes a second query instruction, the second query instruction is used to query the YANG library library; the processing unit is configured to obtain the YANG library according to the second query instruction,
- the YANG library includes the first mapping relationship.
- the query condition includes a third query instruction
- the third query instruction is used to query the structural schema information of the YANG model
- the processing unit is configured to obtain according to the third query instruction
- the schema information includes the first mapping relationship
- the query condition includes a file name; and the processing unit is configured to obtain the first mapping relationship from a file corresponding to the file name.
- the query condition includes the device identifier of the network device carrying the YANG model object; the processing unit is configured to obtain the first mapping relationship according to the device identifier and the second mapping relationship,
- the second mapping relationship is a correspondence between the device identifier and the first mapping relationship.
- a network management device in a fifth aspect, includes a processor chip and a memory, the memory is used to store instructions or program codes, and the processor chip is used to call and run the instructions or program codes from the memory, to Execute the query method described in the first aspect.
- a device in a sixth aspect, includes a processor chip and a memory, the memory is used to store instructions or program codes, and the processor chip is used to call and run the instructions or program codes from the memory to perform the following steps: The query method described in the second aspect.
- a computer-readable storage medium including instructions, programs or codes, which, when executed on a computer, cause the computer to execute the query method as described in the first aspect or the second aspect.
- FIG. 1 is a schematic diagram of a scene of a network architecture to which the query method provided by the embodiment of the present application can be applied;
- Fig. 2 is a schematic flow chart of the query method provided by the embodiment of the present application.
- FIG. 3 is a schematic structural diagram of a query device 300 provided in an embodiment of the present application.
- FIG. 4 is a schematic structural diagram of a query device 400 provided in an embodiment of the present application.
- FIG. 5 is a schematic structural diagram of a device 500 provided in an embodiment of the present application.
- FIG. 6 is a schematic structural diagram of a device 600 provided in an embodiment of the present application.
- YANG (Yet Another Next Generation): It was originally designed as a data modeling language for NETCONF.
- YANG model A data model built using the YANG data modeling language is called a YANG model.
- YANG models can be deployed between NETCONF clients and servers, defining data hierarchies that can be used for NETCONF-based operations.
- the data instantiated using the YANG model can be stored in the encoded format of Extensible Markup Language (Extensile Markup Language) or JSON.
- YANG model objects objects in the YANG model, such as YANG model set (module set), model (module), data node (data node), YANG data package (package), etc.
- Module-set A collection of models.
- Module Defines the hierarchical structure of YANG model data, which is used for NETCONF-based operations.
- a module includes one or more data nodes. The hierarchical organization of these data nodes is modeled as a tree. Each data node has a name or a value or a set of child nodes. Each data node can be Uniquely identifies.
- Capability A description of the support or implementation level of various features or mechanisms in the NETCONF protocol by network management equipment, network equipment, YANG model, or a certain data node in the YANG model.
- YANG library (library): The method defined by RFC8525 for the NETCONF client to obtain the YANG modules and data sets currently being used by the server.
- Schema is used to describe the data structure of YANG.
- Schema defines all managed data nodes in the network device, as well as the hierarchical relationship, read and write attributes and constraints between each data node. In actual application scenarios, the Schemas of different suppliers can be different.
- the network architecture includes a network management device 110 , one or more network devices 120 and a server 130 .
- the network management device 110 is respectively connected to each network device 120 in one or more network devices 120 , and the network management device 110 may also be connected to a server 130 .
- the network management device 110 may send a remote procedure call (Remote Procedure Call, RPC) message to the network device 120.
- RPC Remote Procedure Call
- the network device 120 may also send an RPC response (reply) message to the network management device 110 through the connection.
- the network management device 110 may be a software-defined network (Software Defined Network, SDN) controller and other devices.
- a NETCONF client (client) may be deployed on the network management device 110 .
- the network device 120 may be a router (router), a switch (switch) and other physical devices that support routing functions, and may also be a server deploying a virtual router or a virtual switch.
- a NETCONF server (server) may be deployed on the network device 120 .
- a YANG model corresponding to the network device may be deployed on the NETCONF server of each network device 120.
- the YANG model corresponding to each network device 120 of the one or more network devices 120 may be deployed on the server 130, or may not be deployed.
- FIG. 2 is a schematic flowchart of a query method provided by an embodiment of the present application. The method comprises the steps of:
- S201 The network management device generates a query message.
- the network management device may be, for example, the network management device 110 shown in FIG. 1 .
- the query message generated by the network management device includes a query condition, and the query condition is used to determine a first mapping relationship between license information and YANG model object information.
- the license information may include a license name, and the license name is used to identify the license.
- the license information may also include one or more of URL, license version number, expiration time, and license enabling (enable) information.
- the license enabling information indicates whether the license is valid. For example, when the license is activated, the license is valid; when the license expires, the license is invalid.
- YANG model objects include one or more of YANG package, module-set, module and data node.
- the information of the YANG model object may include an identifier of the YANG model object, such as XML path (XML path, XPath) information of the YANG model object.
- the mapping relationship between the license information and the identifier of the YANG model object can express whether the user is authorized to process these YANG model objects, such as sending configuration data, etc.
- the information of the YANG model object may also include one or more of feature information of the YANG model object and capability information of the YANG model object.
- the feature information may include one or more of feature name, feature type and so on.
- the feature type can include function type and resource type.
- the functional feature means that the feature expresses a certain function, and the mapping relationship between the functional feature information and the license information can express whether the user is authorized to use a certain function of a specific YANG model object in the network device. For example, users need to activate the license of the segment routing version 6 (SRv6) function before configuring SRv6 services.
- SRv6 segment routing version 6
- the mapping relationship between resource-type feature information and license information can express how many resources a user can use of a specific YANG model object in a network device.
- the bandwidth capacity of port 0 of the switch is 100G.
- the speed limit of port 0 is 50G.
- port 0 has a bandwidth capacity of 100G.
- the generated query message used to determine the above-mentioned first mapping relationship includes query conditions.
- the query conditions may be implemented in different ways.
- Scenario 1 The network management device queries the network device.
- the network device may be the network device 120 in the embodiment shown in FIG. 1 .
- the above-mentioned first mapping relationship is stored in the network device.
- the first mapping relationship is instantiated and stored in the YANG model of the network device.
- the query message generated by the network management device may be an RPC message, and the operations in the RPC message may include standard operations of the NETCONF protocol defined in RFC6241 and RFC8526, such as obtaining (get) operations, obtaining data (get-data) operations, and the like.
- the query condition may include license information
- the query message is used for the first device to obtain information about the corresponding YANG model object according to the license information.
- the query condition may include information of a YANG model object, and the query message is used for the first device to obtain the license information according to the information of the YANG model object.
- the query condition includes a first query instruction, a first query instruction, and an identifier of a data node
- the first query instruction is used to query the capability information of the data node in YANG system-capabilities
- the The capability information of the data node includes the first mapping relationship
- the query condition includes a second query instruction, and the second query instruction is used to query a YANG library (YANG library), and the YANG library includes the first mapping relationship.
- YANG library YANG library
- the query condition includes a third query instruction, where the third query instruction is used to query structure (schema) information of the YANG model, and the schema information includes the first mapping relationship.
- the query condition includes a fourth query instruction, and the fourth query instruction is used to query the first mapping relationship between all license information in the YANG model and the information of the YANG model object.
- the fourth query instruction may also be a user-defined operation instruction, for example, an operation instruction for obtaining license information (get-license-info).
- Scenario 2 The network management device queries the server.
- the server may be the server 130 in FIG. 1 .
- the YANG model of the network device may be deployed in the server, and a RESTCONF or NETCONF server may be deployed, for example, the YANG model of the network device 120 may be deployed in the server 130 , of course, it may not be deployed.
- the query message can be an RPC message, and the query condition can refer to the solution in the scenario where the network management device queries the network device.
- the query condition may also include a device identifier, which is the identifier of the network device, such as the model and version information of the network device.
- the query condition may include a file name, and the query message is used for the server to obtain all information from the file corresponding to the file name.
- the type of the file can be YANG instance-file (instance-file)
- YANG-instance-file is the Internet Engineering Task Force (The Internet Engineering Task Force, IETF) network modeling (network modeling, netmod) working group Defines a standard format for storing YANG model data.
- the query message may be a message based on protocols such as Hyper Text Transfer Protocol (Hyper Text Transfer Protocol, HTTP), File Transfer Protocol (File Transfer Protocol, FTP).
- the query condition may also include the device identifier, and the server may determine the corresponding file according to the device identifier and the file name, so as to obtain the first mapping relationship from the file.
- the query condition may only include the device identifier
- the second mapping relationship is stored on the server, and the second mapping relationship is a correspondence between the device identifier and the first mapping relationship.
- the query message is used by the server to acquire the first mapping relationship according to the second mapping relationship and the device identifier.
- the network management device may obtain the above-mentioned first mapping relationship from a file stored in the network device based on a protocol such as HTTP or FTP.
- the network management device may generate a query message based on a user's trigger operation. For example, when a user wants to query the above-mentioned first mapping relationship of a network device, the network management device may receive a user's trigger operation from an interactive interface provided to the user, and generate a query message according to the trigger operation.
- the network management device may trigger the generation of query messages when some events occur.
- the network management device may receive alarm information from the network device, and in response to receiving the alarm information, the network device can generate a query message according to the alarm information to obtain the license Information about the YANG model object, for user reference or to perform next steps.
- the network management device in response to obtaining the license expiration alarm information indicated by the license information, the network management device generates a query message according to the license information, the query condition in the query message may include the license information, and the query condition is used to The license information obtains the information of the corresponding YANG model object.
- the network device may return the reason for the configuration failure to the network management device.
- the network management device can generate a query message according to the information of the YANG model object, the query condition of the query message includes the information of the YANG model object, and the query condition is used to Information Obtains the corresponding license information for user reference or to perform subsequent steps, such as issuing an instruction to activate the license.
- the network management device in response to the network management device receiving the RPC response message, the network management device generates a query message, and the PRC response message indicates that the reason why the network management device fails to configure the YANG model object includes the YANG model object The license is invalid.
- the network management device may generate a query message to query the license information of the YANG model object.
- the license of the YANG model object is activated, it can be considered that the network management device can configure the YANG model object.
- the network management device in response to generating an RPC message, the network management device generates a query message, and the RPC message is used to configure the YANG model object.
- S202 The network management device sends the query message to the first device.
- the first device may be the above-mentioned network device or server.
- S203 The first device receives a query message from the network device.
- S204 The first device acquires the first mapping relationship according to the query condition.
- the first device queries the first mapping relationship in different ways.
- the first device searches for the information of the corresponding YANG model object according to the license information, then the first mapping relationship is the mapping relationship between the specific license information and the information corresponding to the corresponding YANG model .
- the first device searches for the corresponding license information according to the information of the specific YANG model object, then the first mapping relationship is the information of the specific YANG model object and the corresponding license Mapping relationship between information.
- the first device queries the YANG system-capabilities according to the first query instruction, and obtains the YANG capability information from the YANG system-capabilities The first mapping relationship with the corresponding license information.
- the first device queries the YANG library according to the second query instruction, and obtains the information of the YANG model object and the corresponding license information from the YANG library The first mapping relationship between.
- the first device obtains the relationship between the information of the YANG model object and the corresponding license information from the schema information according to the third query instruction The first mapping relationship.
- the first device can query the YANG model object whose root node is a license according to the query instruction, and from the The first mapping relationship between the license information and the information of the YANG model object is obtained from the child nodes under the root node.
- S205 The first device sends a response message to the network device, where the response message includes the first mapping relationship.
- the response message may be an RPC response message. If the query message is a message based on HTTP, FTP, etc., the response message is also a message based on HTTP, FTP, etc.
- S206 The network management device receives the response message from the first device.
- the network management device may obtain the first mapping relationship from the response message.
- the network management device may perform corresponding processing according to the first mapping relationship.
- the network management device when the network management device fails to configure the YANG model object and the network device returns that the failure reason is that the license is invalid, the network management device can generate a query message based on the information of the YANG model object to obtain the YANG model object. Corresponding license information.
- the network management device sends an activation instruction to the first device, the activation instruction is used to indicate activation of the license, In order to be able to configure the YANG model object corresponding to the license.
- the network management device may query the license information of the YANG model object through a query message.
- the network management device may send an RPC message for configuring the YANG model object to the network management device, so as to achieve the purpose of configuring the YANG model object. If the license indicated by the license information in the response message is invalid, the network management device may not send an RPC message for configuring the YANG model object to the network device, but may remind the user to purchase the license, or send the network The device sends an activation instruction, which is used to activate the license. After the license is activated, the network management device sends the RPC message to the network device.
- the network management device sends a query message including the query condition to the first device, and receives a response message from the first device based on the query message, thereby obtaining the query message obtained by the first device based on the query condition.
- the first mapping relationship between the license information and the information of the YANG model object realizes the purpose that the network management device obtains the licensed situation of the YANG model object on the network device, lays a foundation for the network management device to perform further processing, and improves user experience.
- the first device defines a new YANG module, that is, the YANG license module.
- the module is represented in a tree structure, the root node is license, and the child nodes include all license information in the network device and the information between the YANG model object. Mapping relations.
- the root node is AAA-license, that is, the name of the license module is AAA-license. All contents of the tree structure can be read-only by users and cannot be modified.
- the license module includes one or more license items (license-item), and each license-item has a corresponding name (name) as its unique identifier, and the license-item name can be a character string (string).
- license-item is a linked list structure, each element of its child node is the structure of the linked list structure, license-item name is the key value in the linked list structure.
- the license-item can also include description information about the license-item, the expiration time of the license-item (expired-date), and the enabling status (enable- status), where the enabling status is used to indicate whether the license-item is currently enabled on the device.
- the child nodes of each license-item respectively include the information of the YANG model object corresponding to the license, specifically including the name of the module set that can be enabled after the license-item is activated, and the name and module of the module included in the module set version number (revision), the name of the feature associated with the license-item, the name of the yang module associated with the feature, the type of the feature, the value of the resource-type feature (value), and the XPath information of the data nodes that the feature can affect .
- module name is a linked list structure.
- the first mapping relationship can be obtained by querying the tree structure.
- the query message M1 can be as follows:
- the query message M1 is an RPC message, and the identifier of the message is 101.
- AAA:yang:AAA-license is the root node information to be queried.
- the network device queries the above-mentioned YANG model whose root node is AAA-license, and returns an RPC reply message including the first mapping relationship between all license information in the YANG model and the information of the YANG model object R1.
- RPC reply message R1 is an example of RPC reply message
- the description information of the license named dhcpv6 is a dynamic host configuration protocol acting on the sixth version of the Internet protocol (Internet Protocol version 6, IPv6).
- the license named dhcpv6 is enabled on this network device.
- the name of the module set enabled by the license named dhcpv6 is dhcpv6, and the module set named dhcpv6 includes the following modules: a module named AAA-dhcpv6 and a version number of 2020-03-09; a module named AAA-dhcpv6-relay, A module whose version number is 2020-03-09; a module whose name is AAA-dhcpv6-deviations and whose version number is 2020-03-08.
- the description information of the license named evpn is the evpn attribute, and the license is enabled on the network device.
- the name of the feature enabled by this license is ethernet-segment-pbb-params, the type is function, and it is related to the module named ietf-ethernet-segment.
- the XPath information of the data node controlled by this feature is Ethernet-segments/Ethernet-segment/pbb-parameters.
- the description information of the license named ospfv3 is Configure OSPFv3config.
- the license expires on 2022-06-16.
- the name of the module-set enabled by this license is ospfv3, and the module-set includes the following modules: a module named AAA-ospfv3 with a version number of 2020-03-13; a module named AAA-ospfv3-type with a version number of 2020-03-09 module; and a module named AAA-ospfv3-srv6 and version number 2020-03-09.
- This license can also enable the module named AAA-ospfv3-deviations and version number 2020-03-09.
- Implementation method 2 the first device can extend the existing YANG library, and store the mapping relationship between the license information and the information of the YANG model object in the YANG library.
- An example tree structure of the expanded YANG library is as follows:
- the module of the YANG library includes module set, schema and datastore.
- the module set includes the name of the module set, the name of the module included in the module set, the version number, the namespace (namespace), the address (location), the name of the submodule (submodule), the version number of the submodule, the address of the submodule, and the feature and deviation.
- the module set also includes the license name, and all modules under the module set are controlled by the license.
- the module also includes the license name. If some features under a certain module are controlled by a license, the features of this module also include the name of the feature controlled by the license, the XPath information of the data nodes that the feature can enable, and the name of the license.
- the query condition of the query message may include the above-mentioned second query instruction, and the second query instruction is used to query the YANG library.
- An example of the query message M2 is as follows:
- the response message R2 includes three module sets whose names are config-state-modules, dynamic-config-state-modules and state-only-modules respectively.
- the license named ipv6-license enables the module named ietf-ip and version number 2018-02-22.
- the license named config-state-modules enables all modules of the module set, including the module named ietf-network and version number 2018-02-26 and A module named ietf-network-topology and version number 2018-02-26.
- the license enables the feature named multiple-ribs of the module named ietf-routing, the name of the license is multiple-ribs-license, and the data nodes controlled by the license
- the Xpath information is routing/ribs/rib/default-rib.
- Implementation mode 3 the first device extends the existing YANG package, and stores the mapping relationship between the license information and the information of the YANG model object in the YANG package.
- the tree structure of the extended YANG package and the query and response messages are similar to those of the YANG library, and will not be repeated here.
- Implementation method four the first device extends the existing system-capabilities module, and stores the mapping relationship between license information and YANG model object information in the system-capabilities module.
- the ietf-system-capabilities module is a mechanism defined in the Internet Engineering Task Force (IETF) NETCONF working group for discovering YANG-related capabilities on devices.
- the system-capabilities module supports the storage of the capabilities of a single data node.
- the embodiment of the present application expands the capability of a single data node, and adds a mapping relationship between capability information of a single data node and license information.
- the tree structure of the system-capabilities module is as follows:
- the name of the root node of the system-capabilities module is system-capabilities, and the child nodes of the root node describe the capabilities of each data set and the capabilities of each data node under each data set in a list structure.
- the system-capabilities module also includes the license name and related description information corresponding to the specific data node controlled by the license.
- the query condition of the query message may include a first query instruction for querying YANG system-capabilities.
- An example of the query message M3 is as follows:
- the query message M3 may adopt the get operation of the NETCONF protocol standard defined in RFC6241, and the query condition may include the name ds:operational of the data set and the name ABCD of the data node.
- the data node named ABCD is controlled by the license named 12345, and the license has the following description information: since the license has not been purchased, the current maximum value is 128kb.
- Implementation mode five the first device can extend the YANG module, and define the first mapping relationship in the extension (extension) keyword of the YANG module.
- Extension allows new keyword expressions to be defined in YANG, and this new keyword expression can be loaded and used by other YANG modules.
- the parameter of the Extension statement is an identifier, which is used as a keyword for the extension definition, followed by a substatement block containing detailed extension information.
- the extension keyword license-type is used to indicate that a certain feature in the YANG module is controlled by the license, and the value of the license-type can be functional or numeric. Among them, functional indicates that the data node is controlled by a function-limited license, and numeric indicates that the node is controlled by a resource-limited license. License-type is used to modify feature.
- the YANG module needs to be able to dynamically express the control relationship between the license and the data node. For example, if the license is enabled, the data node should be configurable; if the license is not enabled, the data node should not be configurable to users.
- the "feature" keyword defined in RFC7950 can mark certain data nodes in a YANG module as conditional.
- the if-feature expression is used to declare that if a feature is not enabled, the data nodes controlled by the if-feature expression will not be supported by network devices. However, if-feature can only be used to express a function-type license.
- the YANG extension keyword apply-feature is used in this embodiment of the application. Apply-feature is used to modify data nodes controlled by resource-type features.
- the extension definition of license-type can be as follows:
- a data node declared with License-type indicates that the feature is controlled by the license, functional indicates a functional feature, and numeric indicates a resource-type feature.
- Apply-feature can correspond to an operation (operation), and the value of operation can be replace (replace), increase (add) or delete (delete).
- Add means to add a new attribute to the target data node; replace means to replace the attribute of the target data node; delete means to delete the attribute from the target data node, and the attribute to be deleted is identified by the sub-statement of "delete”.
- the YANG data node (structure is list) of the VPN network-instance is a resource type controlled by a license.
- the maximum supported list items are 50 by default, and after the license is activated, the maximum supported list items are 200 items.
- the query condition in the query message may include a third query instruction, the third query instruction is used to query the structural schema information of the YANG model, and the schema information includes the first mapping relationship.
- the third query instruction may be a get schema operation.
- query message M4 is as follows:
- the query message M4 includes a YANG schema named bar.
- the response message R4 includes a feature named bar YANG schema named max-vpn-instances, and the license type of this feature is numeric.
- the query message may be a message based on HTTP or FTP protocol in addition to the RPC message based on the NETCONF protocol.
- the network management device may obtain the first mapping relationship from the network device or the server based on the HTTP or FTP protocol.
- An example of a query message sent by a network management device is as follows:
- license-example.com is the domain name of the server
- license-yang-mapping.json is the file name
- the response message indicates that the YANG model of the network device includes the following licenses: a license named dhcpv6, a license named evpn, and a license named ospfv3.
- the description information of the license named dhcpv6 is an IPv6-based dynamic host configuration protocol. This license is enabled on this network device.
- the name of the module set controlled by this license is dhcpv6.
- the modules included in this module set are as follows: Name module named AAA-dhcpv6 with version number 2020-03-09; module named AAA-dhcpv6-relay with version number 2020-03-09; and module named AAA-dhcpv6-deviations with version number 2020-03 -08 module.
- the description information of the license named evpn is the evpn attribute, and this license is not enabled on the network device.
- the name of the feature controlled by this license is ethernet-segment-pbb-params, the type is functional, the associated module name is ietf-ethernet-segment, and the XPath information of the associated data node is Ethernet-segments/Ethernet-segment/pbb -parameters.
- the description information of the license named ospfv3 is Configure OSPFv3config, the expiration time of the license is 2022-06-16, and the license is enabled on the network device.
- the name of the module set controlled by this license is ospfv3, including the following modules: a module named AAA-ospfv3 with a version number of 2020-03-13; a module named AAA-ospfv3-type with a version number of 2020-03-09 module; a module named AAA-ospfv3-srv6 with a version number of 2020-03-09; and a module named AAA-ospfv3-deviations with a version number of 2020-03-09.
- the embodiment of the present application also provides a query device 300 , which can implement the functions of the network management device in the embodiment shown in FIG. 2 .
- the query device 300 includes a processing unit 301 , a sending unit 302 and a receiving unit 303 .
- the processing unit 301 is used to realize S201 in the embodiment shown in FIG. 2
- the sending unit 302 is used to realize S202 in the embodiment shown in FIG. 2
- the receiving unit 303 is used to realize S206 in the embodiment shown in FIG. 2 .
- the processing unit 301 is configured to generate a query message, where the query message includes a query condition, and the query condition is used to determine a first mapping relationship between license information and YANG model object information.
- the sending unit 302 is configured to send the query message to the first device.
- a receiving unit 303 configured to receive a response message obtained from the first device according to the query condition, the response message including the first mapping relationship
- the embodiment of the present application further provides a query device 400 , which can realize the function of the first device in the embodiment shown in FIG. 2 .
- the query device 400 includes a receiving unit 401 , a processing unit 402 and a sending unit 403 .
- the receiving unit 401 is used to implement S203 in the embodiment shown in FIG. 2 ;
- the processing unit 402 is used to implement S204 in the embodiment shown in FIG. 2 , and
- the sending unit 403 is used to implement S205 in the embodiment shown in FIG. 2 .
- the receiving unit 401 is configured to receive a query message from a network device, where the query message includes a query condition.
- the processing unit 402 is configured to acquire a first mapping relationship according to the query condition, where the first mapping relationship is a first mapping relationship between license information and YANG model object information.
- the sending unit 403 is configured to send a response message to the network device, where the response message includes the first mapping relationship.
- each functional unit in the embodiment of the present application may be integrated into one processing unit, or each unit may physically exist separately, or two or more units may be integrated into one unit.
- the acquisition unit and the processing unit may be the same unit or different units.
- the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
- FIG. 5 is a schematic structural diagram of a device 500 provided in an embodiment of the present application.
- the query device 300 or the conversion query device 400 above can be implemented by the device shown in FIG. 5 .
- the device 500 includes at least one processor 501 , a communication bus 502 and at least one network interface 504 , and optionally, the device 500 may further include a memory 503 .
- the processor 501 may be a central processing unit (central processing unit, CPU), a network processor (network processor, NP) or a combination of CPU and NP.
- the processor 501 may also be a traffic management (traffic management, TM) chip or hardware integrating NP and TM chips, and the TM chip or hardware integrating NP and TM chips may control the TM chip
- the queue executes the queue scheduling method provided by the embodiment of this application.
- the processor 1010 may further include a hardware chip.
- the aforementioned hardware chip may be an application-specific integrated circuit (application-specific integrated circuit, ASIC), a programmable logic device (programmable logic device, PLD) or a combination thereof.
- the aforementioned PLD may be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), a general array logic (generic array logic, GAL) or any combination thereof.
- the processor can be used to update or verify the data message, so as to implement the message transmission method provided in the embodiment of the present application.
- the processor can be used to: generate a query message, and send the query message to the first device through the network interface 504 and receive the query message from the The response message obtained by the first device according to the query condition.
- the processor may be configured to: obtain the first mapping relationship according to the query condition, and send a response message to the network device through the network interface 504 .
- Communication bus 502 is used to transfer information between processor 501 , network interface 504 and memory 503 .
- the bus system 502 may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus or the like.
- PCI peripheral component interconnect
- EISA extended industry standard architecture
- the bus system 502 can be divided into address bus, data bus, control bus, etc., which are represented by only one thick line in FIG. 5 , but it does not mean that there is only one bus or one type of bus.
- the memory 503 can be a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, and the memory 503 can also be a random access memory (random access memory, RAM) or can store information and other types of dynamic storage devices for instructions, and can also be compact disc read-only Memory (CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, Blu-ray optical discs, etc.), magnetic disk storage media or other magnetic storage devices, or 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, but is not limited thereto.
- the memory 503 may exist independently, and is connected to the processor 501 through the communication bus 502 .
- the memory 503 can also be integrated with the processor 501 .
- the memory 503 is used to store program codes or instructions for implementing the solution of the present application, and the execution is controlled by the processor 501 .
- the processor 501 is used to execute program codes or instructions stored in the memory 503 .
- One or more software modules may be included in the program code.
- the processor 501 may also store program codes or instructions for executing the solutions of the present application. In this case, the processor 501 does not need to read the program codes or instructions from the memory 503 .
- the network interface 504 can be a device such as a transceiver for communicating with other devices or a communication network.
- the communication network can be Ethernet, radio access network (RAN) or wireless local area network (wireless local area networks, WLAN).
- RAN radio access network
- WLAN wireless local area networks
- the network interface 504 may be used to receive messages sent by other nodes in the segment routing network, and may also send messages to other nodes in the segment routing network.
- the network interface 504 may be an Ethernet interface (ethernet) interface, a fast ethernet (fast ethernet, FE) interface or a gigabit ethernet (gigabit ethernet, GE) interface, etc.
- the device 500 may include multiple processors, for example, the processor 501 and the processor 505 shown in FIG. 5 .
- processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor.
- a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
- FIG. 6 is a schematic structural diagram of a device 600 provided in an embodiment of the present application. Any one or more of the network management device and the first device in FIG. 2 may be implemented by the device shown in FIG. 6 .
- the device 600 includes a main control board and one or more interface boards.
- the main control board is communicatively connected with the interface board.
- the main control board is also called a main processing unit (main processing unit, MPU) or a route processing card (route processor card).
- the main control board includes a CPU and a memory. Route calculation, device management and maintenance functions.
- the interface board is also called a line processing unit (line processing unit, LPU) or a line card (line card), and is used to receive and send packets.
- the communication between the main control board and the interface board or between the interface board and the interface board is through a bus.
- the interface boards communicate through the SFU.
- the device 600 also includes the SFU.
- the SFU communicates with the main control board and the interface board.
- the SFU is used to forward the interface board.
- the data between them, the SFU can also be called a switch fabric unit (SFU).
- the interface board includes a CPU, a memory, a forwarding engine, and an interface card (interface card, IC), where the interface card may include one or more network interfaces.
- the network interface may be an Ethernet interface, an FE interface, or a GE interface.
- the CPU communicates with the memory, the forwarding engine and the interface card respectively.
- the memory is used to store the forwarding table.
- the forwarding engine is used to forward the received message based on the forwarding table stored in the memory.
- the message is sent to the CPU of the main control board or the interface board for further processing. Processing; if the destination address of the received message is not the IP address of the device 600, then look up the forwarding table according to the destination, if the next hop and the outgoing interface corresponding to the destination address are found from the forwarding table, the message will be Forward to the outbound interface corresponding to the destination address.
- the forwarding engine may be a network processor (network processor, NP).
- the interface card is also called a daughter card, which can be installed on the interface board. It is responsible for converting the photoelectric signal into a data frame, and checking the validity of the data frame before forwarding it to the forwarding engine for processing or the CPU of the interface board.
- the CPU can also perform the function of the forwarding engine, such as implementing soft forwarding based on a general-purpose CPU, so that no forwarding engine is needed in the interface board.
- the forwarding engine may be implemented by an ASIC or a field programmable gate array (field programmable gate array, FPGA).
- the memory storing the forwarding table can also be integrated into the forwarding engine as a part of the forwarding engine.
- the embodiment of the present application also provides a chip system, including: a processor, the processor is coupled with a memory, and the memory is used to store programs or instructions, and when the programs or instructions are executed by the processor, the The chip system implements the query method provided in the above embodiment shown in FIG. 2 .
- processors in the chip system there may be one or more processors in the chip system.
- the processor can be realized by hardware or by software.
- the processor may be a logic circuit, an integrated circuit, or the like.
- the processor may be a general-purpose processor implemented by reading software codes stored in a memory.
- the memory can be integrated with the processor, or can be set separately from the processor, which is not limited in this application.
- the memory can be a non-transitory processor, such as a read-only memory ROM, which can be integrated with the processor on the same chip, or can be respectively arranged on different chips.
- the setting method of the processor is not specifically limited.
- the system-on-a-chip can be an FPGA, an ASIC, a system on chip (SoC), a CPU, an NP, or a digital signal processing circuit (digital signal processor, DSP), can also be a microcontroller (micro controller unit, MCU), can also be a programmable controller (programmable logic device, PLD) or other integrated chips.
- SoC system on chip
- DSP digital signal processing circuit
- MCU microcontroller
- PLD programmable controller
- each step in the foregoing method embodiments may be implemented by an integrated logic circuit of hardware in a processor or instructions in the form of software.
- the method steps disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
- the embodiment of the present application also provides a computer-readable storage medium, including instructions, which, when run on a computer, cause the computer to execute the query method provided by the above method embodiment and executed by the network management device, or executed by the first device query method.
- the embodiment of the present application also provides a computer program product containing instructions. When it is run on a computer, it causes the computer to execute the query method provided by the above method embodiment and executed by the network management device, or the query executed by the first device. method.
- the disclosed system, device and method can be implemented in other ways.
- the device embodiments described above are only illustrative.
- the division of the units is only a logical module division.
- multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented.
- the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be obtained according to actual needs to achieve the purpose of the solution of this embodiment.
- each module unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
- the above-mentioned integrated units can be implemented in the form of hardware or in the form of software module units.
- the integrated unit is implemented in the form of a software module unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
- the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
- the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .
- the functions described in the present invention may be implemented by hardware, software, firmware or any combination thereof.
- 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.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本申请实施例公开了一种查询方法、装置及设备,实现网管设备获取到网络设备上YANG模型对象被许可的情况的目的。所述方法包括:网管设备生成查询消息,所述查询消息包括查询条件,所述查询条件用于确定许可证license信息和YANG模型对象的信息之间的第一映射关系;所述网管设备向第一设备发送所述查询消息;所述网管设备接收来自所述第一设备根据所述查询条件得到的响应消息,所述响应消息包括所述第一映射关系。
Description
本申请要求于2021年7月6日提交国家知识产权局、申请号为202110761856.0、发明名称为“一种表达控制关系的方法、设备及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中,以及要求于2021年7月9日提交国家知识产权局、申请号为202110780864.X、发明名称为“一种查询方法、装置及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及通信领域,尤其涉及一种查询方法、装置及设备。
网络配置协议(Network Configuration Protocol,NETCONF)提供了一种网管设备和网络设备之间通信的机制,用户可以利用这套机制在网管设备触发增加、修改、删除网络设备上的配置数据的指令,以及获取网络设备的配置数据和状态信息。
许可证(license)是供应商与用户对所销售/购买的软件产品使用范围、期限等进行授权/被授权的一种合约形式,通过license,用户获得供应商所承诺的相应服务,即用户可以使用网络设备对应的功能,具有对网络设备上的配置数据进行上述处理或获取状态信息的权利。若网管设备能够知晓网络设备上的功能被许可的情况,就可以进行更进一步的处理,提高用户体验。
发明内容
本申请实施例提供了一种查询方法、装置及设备,实现网管设备获取到网络设备上YANG模型对象被许可的情况的目的。
第一方面,提供了一种查询方法,该方法可以应用于部署有NETCONF客户端的网管设备。所述方法包括如下步骤:网管设备生成查询消息,所述查询消息包括查询条件,所述查询条件用于确定许可证(license)信息和YANG模型对象的信息之间的第一映射关系。其中,license信息可以包括license名称。可选的,license信息还可以包括license版本号和license使能信息中的一项或多项。所述YANG模型对象可以包括YANG数据包(package)、模型集(module-set)、模型(module)和数据节点(data node)中的一种或多种。YANG模型对象的信息可以包括YANG模型对象的标识。可选的,YANG模型对象的信息还可以包括YANG模型对象的特性(feature)信息和能力(capability)信息中的一种或多种。在生成查询消息之后,所述网管设备向第一设备发送所述查询消息,并接收来自所述第一设备根据所述查询条件得到的响应消息,所述响应消息包括所述第一映射关系。本申请实施例通过网管设备向第一设备发送包括查询条件的查询消息,并接收来自第一设备根据该查询消息得到的响应消息,从而获取到网络设备根据查询条件得到的license信息与YANG模型对象的信息之间的第一映射关系,实现网管设备获取到网络设备上YANG模型对象被许可的情况的目的,为网管设备执行进一步的处理奠定了基础,提高用户体验。
查询消息中的查询条件可以如下几种可能的实现方式:
实现方式一:查询条件包括license信息,所述查询消息用于所述第一设备根据所述license信息获取对应的所述YANG模型对象的信息。其中,license信息可以用于泛指所有license,也可以用于指示特定的license。如果泛指所有的license,那么网管设备获取到的响应消息中可以包括所有license对应的YANG模型对象的信息;如果指示特定的license,那么网管设备获取到的响应消息中包括该特定的license对应的YANG模型对象的信息。该实现方式可以YANG模型中新增license module,专门用于存储该第一映射关系。
实现方式二:查询条件包括所述YANG模型对象的信息,所述查询消息用于所述第一设备根据所述YANG模型对象的信息获取所述license信息。该实现方式可以扩展YANG module中的YANG模型对象的扩展(extension)关键字,在该extension关键字中定义该YANG模型对象的license信息。或者,扩展现有的YANG package,在该YANG package增加YANG模型对象的license信息。
实现方式三:查询条件包括第一查询指令和数据节点的标识,所述第一查询指令用于查询YANG模型系统能力(system-capabilities)中所述数据节点的能力信息,所述数据节点的能力信息包括所述第一映射关系。该实现方式需要扩展YANG模型现有的system-capabilities module,加入数据节点的license信息。该license可以控制该数据节点的所有能力,也可以控制部分能力。
实现方式四:所述查询条件包括第二查询指令,所述第二查询指令用于查询YANG库(library),所述YANG library包括所述第一映射关系。该实现方式需要扩展现有的YANG library,在该YANG library中加入YANG模型对象的license信息。
实现方式五:所述查询条件包括第三查询指令,所述第三查询指令用于查询所述YANG模型的结构(schema)信息,所述schema信息包括所述第一映射关系。该实现方式需要扩展现有的YANG schema,在该YANG schema中加入YANG模型对象的license信息。
实现方式六:所述查询条件包括文件名称,所述查询消息用于所述第一设备从与所述文件名称对应的文件中获取所述第一映射关系。文件的类型可以是YANG实例文件(instance-file)。
实现方式七:所述查询条件包括承载所述YANG模型对象的网络设备的设备标识,所述查询消息用于所述第一设备根据所述设备标识和第二映射关系获取所述第一映射关系,所述第二映射关系为所述设备标识与所述第一映射关系之间的对应关系。其中,设备标识用于唯一标识网络设备,例如为路由器标识(router identifier,router ID)。
实现方式一至实现方式五中的查询消息可以为远程过程调用(Remote Procedure Call,RPC)消息,响应消息可以为RPC响应消息。实现方式六和实现方式七中的查询消息和响应消息可以为基于超文本传输协议(Hyper Text Transfer Protocol,HTTP)、文件传输协议(File Transfer Protocol,FTP)等协议的消息。
在本申请实施例中,查询消息可以依据用户的触发而生成,也可以依据事件触发生成。
在一种可能的设计中,响应于获取到所述license信息指示的license到期的告警信息,所述网管设备根据所述license信息生成查询消息,以获得得到该license的YANG模型对象的信息,供用户参考或执行后续步骤。其中,查询消息的查询条件可以参考上述实现方 式一、实现方式四至实现方式七等中的一种或多种。
在另一种可能的设计中,响应于所述网管设备接收到远程过程调用RPC响应消息,所述网管设备生成查询消息,所述PRC响应消息指示所述网管设备对所述YANG模型对象进行配置失败的原因包括所述YANG模型对象的license失效,以供用户参考或者执行后续步骤,例如响应于所述license信息指示的license失效,所述网管设备向所述第一设备发送激活指令,激活指令用于指示激活所述license。其中,查询消息中的查询条件可以参考实现方式二或实现方式三等。
在再一种可能的设计中,响应于生成PRC消息,所述网管设备生成查询消息,以查询该YANG模型对象的license信息,其中,所述RPC消息用于对所述YANG模型对象进行配置。在接收到所述响应消息之后,响应于所述license信息指示的license为激活状态,所述网管设备可以向所述网络设备发送所述RPC消息,以实现对所述YANG模型对象的配置。其中,查询消息中的查询条件可以参考实现方式二或实现方式三等。
第二方面,提供了一种查询方法,应用于第一设备,该第一设备可以为服务器或部署有YANG服务端的网络设备。所述方法包括如下步骤:第一设备接收来自网络设备的查询消息,所述查询消息包括查询条件。所述第一设备根据所述查询条件获取第一映射关系,所述第一映射关系为license信息和YANG模型对象的信息之间的映射关系。关于license信息和YANG模型对象的信息的介绍请参见上文,此处不再赘述。在获取到第一映射关系之后,所述第一设备向所述网络设备发送响应消息,所述响应消息包括所述第一映射关系。本申请实施例通过第一设备接收包括查询条件的查询消息,并向第一设备发送根据该查询消息得到的响应消息,从而使网管设备获取到第一设备根据查询条件得到的license信息与YANG模型对象的信息之间的第一映射关系,实现网管设备获取到网络设备上YANG模型对象被许可的情况的目的,为网管设备执行进一步的处理奠定了基础,提高用户体验。
针对不同的查询条件,第一设备获取第一映射关系具有不同的实现:
实现方式一:所述查询条件包括license信息,所述第一设备根据所述查询条件获取第一映射关系包括:所述第一设备根据所述license信息获取对应的所述YANG模型对象的信息。
实现方式二:所述查询条件包括所述YANG模型对象的信息,所述第一设备根据所述查询条件获取第一映射关系包括:所述第一设备根据所述YANG模型对象的信息获取所述license信息。
实现方式三:所述查询条件包括查询条件包括第一查询指令和数据节点的标识,所述第一查询指令用于查询YANG模型系统能力system-capabilities中所述数据节点的能力信息。
所述第一设备根据所述查询条件获取第一映射关系包括:所述第一设备根据所述第一查询指令和所述数据节点的标识获取所述YANG system-capabilities中所述数据节点的能力信息,所述数据节点的能力信息包括所述第一映射关系。
实现方式四:所述查询条件包括第二查询指令,所述第二查询指令用于查询YANG库library。所述第一设备根据所述查询条件获取第一映射关系包括:所述第一设备根据所述第二查询指令获取所述YANG library,所述YANG library包括所述第一映射关系。
实现方式五:所述查询条件包括第三查询指令,所述第三查询指令用于查询所述YANG模型的结构schema信息。所述第一设备根据所述查询条件获取第一映射关系包括:所述第一设备根据所述第三查询指令获取所述schema信息,所述schema信息包括所述第一映射关系。
实现方式六:所述查询条件包括文件名称。所述第一设备根据所述查询条件获取第一映射关系包括:所述第一设备从与所述文件名称对应的文件中获取所述第一映射关系。
实现方式七:所述查询条件包括承载所述YANG模型对象的网络设备的设备标识。所述第一设备根据所述查询条件获取第一映射关系包括:所述第一设备根据所述设备标识和第二映射关系获取所述第一映射关系,所述第二映射关系为所述设备标识与所述第一映射关系之间的对应关系。
第三方面,提供了一种查询装置,应用于网管设备,所述装置包括:处理单元,用于生成查询消息,所述查询消息包括查询条件,所述查询条件用于确定许可证license信息和YANG模型对象的信息之间的第一映射关系;发送单元,用于向第一设备发送所述查询消息;接收单元,用于接收来自所述第一设备根据所述查询条件得到的响应消息,所述响应消息包括所述第一映射关系。
作为一种可能的设计,所述查询条件包括license信息,所述查询消息用于所述第一设备根据所述license信息获取对应的所述YANG模型对象的信息。
作为一种可能的设计,所述处理单元,用于响应于获取到所述license信息指示的license到期的告警信息,根据所述license信息生成查询消息。
作为一种可能的设计,所述查询条件包括所述YANG模型对象的信息,所述查询消息用于所述第一设备根据所述YANG模型对象的信息获取所述license信息。
作为一种可能的设计,所述处理单元,用于响应于所述网管设备接收到远程过程调用RPC响应消息,生成查询消息,所述PRC响应消息指示所述网管设备对所述YANG模型对象进行配置失败的原因包括所述YANG模型对象的license失效。
作为一种可能的设计,所述发送单元,还用于在接收到所述响应消息之后,响应于所述license信息指示的license失效,向所述第一设备发送激活指令,激活指令用于指示激活所述license。
作为一种可能的设计,所述处理单元,用于响应于生成PRC消息,生成查询消息,所述RPC消息用于对所述YANG模型对象进行配置。
作为一种可能的设计,所述发送单元,还用于在接收到所述响应消息之后,响应于所述license信息指示的license为激活状态,向所述网络设备发送所述RPC消息。
作为一种可能的设计,所述YANG模型对象的信息包括所述YANG模型对象的标识。
作为一种可能的设计,所述YANG模型对象的信息还包括以下其中一项或多项:所述YANG模型对象的特性feature信息和所述YANG模型对象的能力capability信息。
作为一种可能的设计,所述查询条件包括第一查询指令和数据节点的标识,所述第一查询指令用于查询YANG模型系统能力system-capabilities中所述数据节点的能力信息,所述数据节点的能力信息包括所述第一映射关系。
作为一种可能的设计,所述查询条件包括第二查询指令,所述第二查询指令用于查询 YANG库library,所述YANG library包括所述第一映射关系。
作为一种可能的设计,所述查询条件包括第三查询指令,所述第三查询指令用于查询所述YANG模型的结构schema信息,所述schema信息包括所述第一映射关系。
作为一种可能的设计,所述查询条件包括文件名称,所述查询消息用于所述第一设备从与所述文件名称对应的文件中获取所述第一映射关系。
作为一种可能的设计,所述查询条件包括承载所述YANG模型对象的网络设备的设备标识,所述查询消息用于所述第一设备根据所述设备标识和第二映射关系获取所述第一映射关系,所述第二映射关系为所述设备标识与所述第一映射关系之间的对应关系。
第四方面,提供了一种查询装置,应用于第一设备,所述装置包括:接收单元,用于接收来自网络设备的查询消息,所述查询消息包括查询条件;处理单元,用于根据所述查询条件获取第一映射关系,所述第一映射关系为许可证license信息和YANG模型对象的信息之间的第一映射关系;发送单元,用于向所述网络设备发送响应消息,所述响应消息包括所述第一映射关系。
作为一种可能的设计,所述查询条件包括license信息,所述处理单元,用于根据所述license信息获取对应的所述YANG模型对象的信息。
作为一种可能的设计,所述查询条件包括所述YANG模型对象的信息,所述处理单元,用于根据所述YANG模型对象的信息获取所述license信息。
作为一种可能的设计,所述查询条件包括查询条件包括第一查询指令和数据节点的标识,所述第一查询指令用于查询YANG模型系统能力system-capabilities中所述数据节点的能力信息;所述处理单元,用于根据所述第一查询指令和所述数据节点的标识获取所述YANG system-capabilities中所述数据节点的能力信息,所述数据节点的能力信息包括所述第一映射关系。
作为一种可能的设计,所述查询条件包括第二查询指令,所述第二查询指令用于查询YANG库library;所述处理单元,用于根据所述第二查询指令获取所述YANG library,所述YANG library包括所述第一映射关系。
作为一种可能的设计,所述查询条件包括第三查询指令,所述第三查询指令用于查询所述YANG模型的结构schema信息;所述处理单元,用于根据所述第三查询指令获取所述schema信息,所述schema信息包括所述第一映射关系。
作为一种可能的设计,所述查询条件包括文件名称;所述处理单元,用于从与所述文件名称对应的文件中获取所述第一映射关系。
作为一种可能的设计,所述查询条件包括承载所述YANG模型对象的网络设备的设备标识;所述处理单元,用于根据所述设备标识和第二映射关系获取所述第一映射关系,所述第二映射关系为所述设备标识与所述第一映射关系之间的对应关系。
第五方面,提供了一种网管设备,所述网络设备包括处理器芯片和存储器,存储器用于存储指令或程序代码,处理器芯片用于从存储器中调用并运行所述指令或程序代码,以执行如第一方面所述的查询方法。
第六方面,提供了一种设备,所述设备包括处理器芯片和存储器,存储器用于存储指令或程序代码,处理器芯片用于从存储器中调用并运行所述指令或程序代码,以执行如第 二方面所述的查询方法。
第七方面,提供了一种计算机可读存储介质,包括指令、程序或代码,当其在计算机上执行时,使得所述计算机执行如第一方面或第二方面所述的查询方法。
图1为本申请实施例提供的查询方法可以应用的网络架构的场景示意图;
图2为本申请实施例提供的查询方法的流程示意图;
图3为本申请实施例提供的一种查询装置300的结构示意图;
图4为本申请实施例提供的一种查询装置400的结构示意图;
图5为本申请实施例提供的一种设备500的结构示意图;
图6为本申请实施例提供的一种设备600的结构示意图。
在介绍本申请实施例提供的一种查询方法及设备之前,首先对涉及的一些关键名词进行介绍。
YANG(Yet Another Next Generation):最初被设计用来作为NETCONF的数据建模语言。
YANG模型:使用YANG数据建模语言建立的数据模型被称为是YANG模型。YANG模型可以部署在NETCONF客户端和服务器之间,定义可用于基于NETCONF的操作的数据层次结构。使用YANG模型实例化后的数据可以以可扩展标记语言(Extensile Markup Language)或JSON的编码格式存储。
YANG模型对象:YANG模型中的对象,例如YANG模型集(module set)、模型(module)、数据节点(data node)、YANG数据包(package)等。
Module-set:模型的集合。
Module:定义了YANG模型数据的层次结构,被用于基于NETCONF的操作。一个module包括一个或多个数据节点,这些数据节点的分层组织被模型化为一颗树,每个数据节点都有一个名称或一个值或一组子节点,,每个数据节点都能够被唯一标识。
特性(feature):一种将模型的一部分功能标记为有条件的机制,可以用特性名称进行定义。
能力(capability):网管设备、网络设备、YANG模型或YANG模型中的某个数据节点对NETCONF协议中的各种特性或机制的支持或实现程度的描述。
YANG库(library):RFC8525定义的用于让NETCONF client端获取server端目前正在使用的YANG modules和数据集的方式。
结构(schema)用于描述YANG的数据结构。Schema定义了网络设备中所有被管理的数据节点,以及各个数据节点之间的层次关系、读写属性和约束条件。在实际的应用场景中,不同供应商的Schema可以不同。
对于上述各个名词的详细介绍,可以参见征求意见(Request For Comments,RFC)7950、RFC6241、以及RFC8525、RFC8526的规定,这里不再赘述。
参见图1,该图为本申请实施例提供的查询方法可以应用的网络架构的场景示意图。在图1中,该网络架构包括网管设备110、一个或多个网络设备120以及服务器130。其中网管设备110分别与一个或多个网络设备120中的每个网络设备120连接,网管设备110还可以与服务器130连接。
网管设备110可以向网络设备120发送远程过程调用(Remote Procedure Call,RPC)消息。同样,网络设备120也可以通过连接向网管设备110发送RPC响应(reply)消息。
网管设备110可以是软件定义网络(Software Defined Network,SDN)控制器等设备。网管设备110上可以部署NETCONF客户端(client)。
网络设备120可以是路由器(router)、交换机(switch)等支持路由功能的实体设备,也可以是部署虚拟路由器或虚拟交换机的服务器等。网络设备120上可以部署有NETCONF服务端(server)。每个网络设备120的NETCONF server上可以分别部署有与该网络设备对应的YANG模型。
服务器130上可以部署有该一个或多个网络设备120中每个网络设备120对应的YANG模型,也可以不部署。
下面结合图1和图2对本申请实施例提供的查询方法及设备进行介绍。
图2为本申请实施例提供的查询方法的流程示意图。该方法包括如下步骤:
S201:网管设备生成查询消息。
在本申请实施例中,网管设备可以例如为图1所示的网管设备110。
所述网管设备生成的查询消息包括查询条件,所述查询条件用于确定license信息和YANG模型对象的信息之间的第一映射关系。
其中,license信息可以包括license名称,该license名称用于标识license。除了license名称以外,可选的,license信息还可以包括URL、license版本号、到期时间、license使能(enable)信息等其中的一项或多项。其中,license使能信息指示license是否为有效状态。例如,当license被激活时,license处于有效状态;当license过期时,license处于失效状态。
YANG模型对象包括YANG package、module-set、module和data node中的一种或多种。YANG模型对象的信息可以包括YANG模型对象的标识,例如YANG模型对象的XML路径(XML path,Xpath)信息。license信息和YANG模型对象的标识之间的映射关系可以表达用户是否被授权对这些YANG模型对象进行处理,例如下发配置数据等。
除了YANG模型对象的标识以外,可选的,YANG模型对象的信息还可以包括YANG模型对象的feature信息和所述YANG模型对象的capability信息中的一种或多种。
其中,feature信息可以包括feature名称、feature类型等中的一项或多项。feature类型可以包括功能型和资源型。其中,功能型feature是指该feature表达某种功能,功能型feature信息和license信息之间的映射关系可以表达用户是否被授权使用网络设备中的特定YANG模型对象的某种功能。例如,用户需要激活段路由第六版(segment routing version 6,SRv6)功能的license之后才能配置SRv6业务。
资源型feature信息和license信息之间的映射关系可以表达用户能够使用网络设备中特 定YANG模型对象的多少资源。例如,交换机0号端口带宽能力是100G,在未激活license前,0号端口限速为50G,当成功激活license后,0号端口拥有100G的带宽能力。
在本申请实施例中,用于确定上述第一映射关系的生成的查询消息中包括查询条件,在不同的场景下,查询条件可以有不同的实现方式。
场景一:网管设备向网络设备查询。
在本申请实施例中,网络设备可以是图1所示实施例中的网络设备120。在该场景中,网络设备中存储有上述第一映射关系,具体的,该第一映射关系实例化存储在网络设备的YANG模型中。网管设备生成的查询消息可以为RPC消息,该RPC消息中的操作可以包括RFC6241和RFC8526中定义的NETCONF协议的标准操作,例如获取(get)操作、获取数据(get-data)操作等。
基于该场景,作为第一种可能的实现方式,查询条件可以包括license信息,查询消息用于所述第一设备根据所述license信息获取对应的所述YANG模型对象的信息。
作为第二种可能的实现方式,查询条件可以包括YANG模型对象的信息,所述查询消息用于所述第一设备根据所述YANG模型对象的信息获取所述license信息。
作为第三种可能的实现方式,查询条件包括第一查询指令第一查询指令和数据节点的标识,所述第一查询指令用于查询YANG system-capabilities中所述数据节点的能力信息,所述数据节点的能力信息包括所述第一映射关系。
作为第四种可能的实现方式,查询条件包括第二查询指令,所述第二查询指令用于查询YANG库(YANG library),所述YANG library包括所述第一映射关系。
作为第五种可能的实现方式,查询条件包括第三查询指令,所述第三查询指令用于查询所述YANG模型的结构(schema)信息,所述schema信息包括所述第一映射关系。
作为第六种可能的实现方式,查询条件包括第四查询指令,所述第四查询指令用于查询YANG模型中所有license信息与YANG模型对象的信息之间的第一映射关系。
该第四查询指令除了可以是上述标准操作以外,还可以是一个自定义的操作指令,例如为获取许可证信息(get-license-info)的操作指令。
包括上述可能的实现方式的查询条件的查询请求将在下文举例说明,此处不再赘述。
场景二:网管设备向服务器查询。
在本申请实施例中,服务器可以是图1中的服务器130。服务器中可以部署有网络设备的YANG模型,并部署RESTCONF或NETCONF服务器,例如,服务器130中部署有网络设备120的YANG模型,当然也可以不部署。若部署YANG模型,查询消息可以是RPC消息,查询条件可以参考网管设备向网络设备查询场景下的方案。若服务器中部署了不止一个网络设备的YANG模型,那么查询条件还可以包括设备标识,设备标识为网络设备的标识,例如网络设备的型号、版本信息等。
若服务器中没有部署YANG模型,而是以文件的形式存储上述第一映射关系,那么查询条件可以包括文件名称,所述查询消息用于所述服务器从与所述文件名称对应的文件中获取所述第一映射关系。在该场景下,文件的类型可以是YANG实例文件(instance-file),YANG-instance-file是国际互联网工程任务组(The Internet Engineering Task Force,IETF)网络建模(network modeling,netmod)工作组定义的用于存储YANG模型数据的标准格式。 查询消息可以为基于超文本传输协议(Hyper Text Transfer Protocol,HTTP)、文件传输协议(File Transfer Protocol,FTP)等协议的消息。
若服务器中存储了不止一个网络设备的文件,那么可选的,查询条件中还可以包括设备标识,服务器可以根据设备标识以及文件名确定对应的文件,以从该文件中获取第一映射关系。
或者,查询条件可以仅包括设备标识,服务器上存储有第二映射关系,该第二映射关系为设备标识与所述第一映射关系之间的对应关系。查询消息用于服务器根据该第二映射关系和设备标识获取第一映射关系。
上述查询方式的可能的实现方式并不构成对本申请技术方案的限定,本领域技术人员可以根据实际情况自行设计。例如,网管设备在与网络设备建立NETCONF连接之前,可以基于HTTP或FTP等协议从网络设备中存储的文件中获取上述第一映射关系。
此外,在一些示例中,网管设备可以基于用户的触发操作生成查询消息。例如,当用户想要查询网络设备的上述第一映射关系时,网管设备可以从提供给用户的交互界面中接收用户的触发操作,并根据该触发操作生成查询消息。
在另一些示例中,网管设备可以在一些事件发生时触发生成查询消息。
例如,当license即将到期或已经到期时,网管设备可能会接收到来自网络设备的告警信息,响应于接收到该告警信息,网络设备可以根据该告警信息生成查询消息,以获得得到该license的YANG模型对象的信息,供用户参考或执行后续步骤。
具体的,响应于获取到所述license信息指示的license到期的告警信息,所述网管设备根据license信息生成查询消息,该查询消息中的查询条件可以包括该license信息,该查询条件用于根据license信息获取对应的YANG模型对象的信息。
再例如,当网管设备对网络设备的YANG模型对象配置失败时,网络设备可以向网管设备返回配置失败的原因。当该原因包括该YANG模型对象的license失效时,网管设备可以根据该YANG模型对象的信息生成查询消息,该查询消息的查询条件包括YANG模型对象的信息,该查询条件用于根据YANG模型对象的信息获取对应的license信息,以供用户参考或者执行后续步骤,例如下发激活该license的指令。
具体的,响应于所述网管设备接收到RPC响应消息,所述网管设备生成查询消息,所述PRC响应消息指示所述网管设备对所述YANG模型对象进行配置失败的原因包括所述YANG模型对象的license失效。
再例如,在网管设备在对网络设备的YANG模型对象进行配置之前,网管设备可以生成查询消息,以查询该YANG模型对象的license信息。当该YANG模型对象的license为激活状态时,可以认为网管设备能够对该YANG模型对象进行配置。具体的,响应于生成RPC消息,所述网管设备生成查询消息,所述RPC消息用于对所述YANG模型对象进行配置。
S202:网管设备向第一设备发送所述查询消息。
在本申请实施例中,第一设备可以是上文中提到的网络设备或服务器。
S203:第一设备接收来自网络设备的查询消息。
S204:第一设备根据所述查询条件获取第一映射关系。
根据前文得知,针对不同的查询条件,第一设备查询第一映射关系的方式不同。
当查询条件包括license信息时,第一设备根据该license信息查找对应的YANG模型对象的信息,那么,该第一映射关系为该特定的license信息与对应的YANG模型对应的信息之间的映射关系。
当查询条件包括特定的YANG模型对象的信息时,第一设备根据该特定的YANG模型对象的信息查找对应的license信息,那么该第一映射关系为该特定的YANG模型对象的信息与对应的license信息之间的映射关系。
当查询条件包括第一查询指令,即用于查询YANG模型system-capabilities的指令时,第一设备根据该第一查询指令查询YANG system-capabilities,并从该YANG system-capabilities中获取到YANG capability信息与对应的license信息之间的第一映射关系。
当查询条件包括第二查询指令,即用于查询YANG library的指令时,第一设备根据该第二查询指令查询YANG library,并从该YANG library中获取到YANG模型对象的信息与对应的license信息之间的第一映射关系。
当查询条件包括第三查询指令,即用于查询所述YANG模型的schema信息时,第一设备根据该第三查询指令从schema信息中获取到YANG模型对象的信息与对应的license信息之间的第一映射关系。
当查询条件包括第四查询指令,即用于查询YANG模型中所有license信息与YANG模型对象的信息的指令时,第一设备可以根据该查询指令查询根节点为license的YANG模型对象,并从该根节点下的子节点中获取到license信息与YANG模型对象的信息之间的第一映射关系。
需要说明的是,上述查询第一映射关系的实现方式并不构成对本申请实施例技术方案的限定,本领域技术人员可以根据实际情况自行设计。
S205:第一设备向所述网络设备发送响应消息,所述响应消息包括所述第一映射关系。
在本申请实施例中,若查询消息为RPC消息时,响应消息可以为RPC响应消息。若查询消息为基于HTTP、FTP等的消息时,响应消息也为基于HTTP、FTP等的消息。
关于查询消息和响应消息下文将举例进一步说明,此处不再赘述。
S206:网管设备接收来自所述第一设备的响应消息。
当网管设备接收到响应消息之后,可以从该响应消息中获取到第一映射关系。可选的,网管设备可以根据该第一映射关系执行相应的处理。
例如,如前文所提,网管设备因为对YANG模型对象配置失败,网络设备返回其失败原因是license失效时,网管设备可以根据该YANG模型对象的信息生成查询消息,以获取到与该YANG模型对象对应的license信息。当网管设备接收到的响应消息中包括该license消息时,响应于所述license信息指示的license失效,所述网管设备向所述第一设备发送激活指令,激活指令用于指示激活所述license,以便能够对该license对应的YANG模型对象进行配置。
再例如,在网管设备对YANG模型对象进行配置之前,网管设备可以通过查询消息查询该YANG模型对象的license信息。响应于响应消息中的license信息指示的license为激 活状态,网管设备可以向网管设备发送用于对该YANG模型对象进行配置的RPC消息,以实现对该YANG模型对象进行配置的目的。若响应消息中的license信息指示的license为失效状态,那么网管设备可以不向网络设备发送用于对该YANG模型对象进行配置的RPC消息,而是可以提醒用户对该license进行购买,或者向网络设备发送激活指令,该激活指令用于激活该license。在该license被激活之后,网管设备再向网络设备发送该RPC消息。
综上所述,本申请实施例通过网管设备向第一设备发送包括查询条件的查询消息,并接收来自第一设备根据该查询消息得到的响应消息,从而获取到第一设备根据查询条件得到的license信息与YANG模型对象的信息之间的第一映射关系,实现网管设备获取到网络设备上YANG模型对象被许可的情况的目的,为网管设备执行进一步的处理奠定了基础,提高用户体验。
下面结合一些示例介绍本申请实施例提供的查询消息和响应消息。
实现方式一:第一设备定义一个新的YANG module,即YANG license module,该module以树形结构表示,根节点为license,子节点包括网络设备中所有license信息与YANG模型对象的信息之间的映射关系。
该YANG license module的树形结构示例如下:
在上述树形结构中,根节点为AAA-license,即该license module的名称为AAA-license。该树形结构的所有内容可以对用户只读,不可修改。该license module包括一个或多个license 项(license-item),每个license-item分别具有对应的名称(name),作为其唯一标识,license-item name可以为字符串(string)。license-item是一个链表结构,其子节点的每个元素是该链表结构的结构体,license-item name是该链表结构中的键值。除了license-item name以外,可选的,license-item中还可以包括关于该license-item的描述(description)信息、该license-item的到期时间(expired-date)以及使能状态(enable-status)中的一项或多项,其中,使能状态用于指示该license-item目前是否在设备上使能。
每个license-item的子节点分别包括该license对应的YANG模型对象的信息,具体包括该license-item激活后所能够使能的module set的名称,以及该module set所包括的module的名称、module的版本号(revision)、与license-item关联的feature的名称、该feature所关联的yang module的名称、feature的类型、资源型feature的值(value)、该feature能够影响的数据节点的Xpath信息。其中,module name为链表结构。
当查询条件包括license信息或者是第四查询指令时,可以通过查询该树形结构,得到第一映射关系。
例如,当查询条件包括第四查询指令,该第四查询指令用于查询YANG模型中所有license信息与YANG模型对象的信息之间的第一映射关系,那么该查询消息M1可以如下:
该查询消息M1为RPC消息,该消息的标识为101。AAA:yang:AAA-license为待查询的根节点信息。网络设备在接收到该查询消息M1之后,查询根节点为AAA-license的上述YANG模型,并返回包括该YANG模型中所有license信息与YANG模型对象的信息之间的第一映射关系的RPC reply消息R1。如下是RPC reply消息R1的一种示例:
在上述RPC响应消息R1中,一共包括三个license,它们的名称分别为第六版动态主机配置协议(Dynamic Host Configuration Protocol version 6,DHCPV6)、以太网虚拟专用网(Ethernet Virtual Private Network,evpn)以及第三版开放式最短路径优先(Open Shortest Path First version 3,OSPF3)。
其中,名称为dhcpv6的license的描述信息为作用于第六版互联网协议(Internet Protocol version 6,IPv6)的动态主机配置协议。名称为dhcpv6的license在该网络设备上使能。名称为dhcpv6的license使能的module set名称为dhcpv6,该名称为dhcpv6的module set包括如下module:名称为AAA-dhcpv6、版本号为2020-03-09的module;名称为AAA-dhcpv6-relay、版本号为2020-03-09的module;名称为AAA-dhcpv6-deviations、版本号为2020-03-08的module。
名称为evpn的license的描述信息为evpn属性,该license在网络设备上使能。该license所能够使能的feature名称为ethernet-segment-pbb-params,类型为功能型(function),与名称为ietf-ethernet-segment的module相关。该feature所控制的数据节点的Xpath信息为Ethernet-segments/Ethernet-segment/pbb-parameters。
名称为ospfv3的license的描述信息为Configure OSPFv3config。该license的到期时间为2022-06-16。该license能够使能的module-set的名称为ospfv3,该module-set包括以下module:名称为AAA-ospfv3、版本号为2020-03-13的module;名称为AAA-ospfv3-type、版本号为2020-03-09的module;以及名称为AAA-ospfv3-srv6、版本号为2020-03-09的module。该license还能够使能名称为AAA-ospfv3-deviations、版本号为2020-03-09的 module。
实现方式二:第一设备可以扩展现有的YANG library,在该YANG library中存储license信息与YANG模型对象的信息之间的映射关系。
扩展之后的YANG library的树形结构示例如下:
在该YANG library的module中,包括module set、schema以及数据集(datastore)。其中,module set包括module set名称、该module set包括的module的名称、版本号、名字空间(namespace)、地址(location)、子模型(submodule)的名称、submodule的版本号、submodule的地址、feature以及偏差(deviation)。若整个module set都受license控制,那么module set还包括license名称,该module set下的所有module都受该license控制。若某个module受license控制,那么该module还包括license名称。若某module下的某些feature受license控制,那么该module的feature还包括受该license控制的feature的名称、该feature能够使能的数据节点的XPath信息以及该license的名称。
相应的,查询消息的查询条件可以包括上述第二查询指令,该第二查询指令用于查询YANG library。该查询消息M2的示例如下:
针对查询消息M2的响应消息R2的示例如下:
在该响应消息R2中包括三个module set,它们的名字分别为config-state-modules、dynamic-config-state-modules和state-only-modules。其中,在名称为config-state-modules的module set中,名称为ipv6-license的license使能名称为ietf-ip、版本号为2018-02-22的module。对于名称为dynamic-config-state-modules的module set,名称为config-state-modules的license使能该module set的所有module,包括名称为ietf-network且版本号为2018-02-26的module以及名称为ietf-network-topology且版本号为2018-02-26的module。在名称为state-only-modules的module set中,license使能名称为ietf-routing的module的名称为multiple-ribs的feature,该license的名称为multiple-ribs-license,受该license控制的数据节点的Xpath信息为routing/ribs/rib/default-rib。
实现方式三:第一设备扩展现有的YANG package,在该YANG package中存储license信息与YANG模型对象的信息之间的映射关系。关于扩展后的YANG package的树形结构以及查询消息和响应消息与YANG library类似,此处不再赘述。
实现方式四:第一设备扩展现有的system-capabilities module,在该system-capabilities module中存储license信息与YANG模型对象的信息之间的映射关系。
ietf-system-capabilities module是国际互联网工程任务组(The Internet Engineering Task Force,IETF)NETCONF工作组中定义的用于发现设备上YANG相关的能力机制。system-capabilities module支持对单个数据节点的能力的存储。本申请实施例扩展单个数据节点的能力,增加单个数据节点的能力的信息和license信息之间的映射关系。
system-capabilities module的树形结构如下所示:
其中,system-capabilities module的根节点名称为system-capabilities,该根节点的子节点分别以列表(list)结构描述每个数据集的能力以及每个数据集下每个数据节点的能力。system-capabilities module还包括受license控制的特定数据节点对应的license名称以及相关的描述信息。
基于上述system-capabilities module,查询消息的查询条件可以包括第一查询指令,用于查询YANG system-capabilities。该查询消息M3的示例如下:
该查询消息M3可以采用RFC6241中定义的NETCONF协议标准的get操作,查询条件可以包括数据集的名称ds:operational以及数据节点的名称ABCD。
针对查询消息M3的响应消息R3的示例如下:
在响应消息R3中,名称为ABCD的数据节点受名称为12345的license的控制,该license具有如下描述信息:由于未购买该license,所以目前最大值为128kb。
实现方式五:第一设备可以扩展YANG module,在该YANG module的扩展(extension)关键字中定义第一映射关系。
RFC7950中定义了“extension”关键字的使用。Extension允许在YANG中定义新的关键字表达,并且这种新的关键字表达能够被其他YANG module加载和使用。Extension语句的参数是一个标识符,被用于作为扩展定义的关键字,后面跟着一个包含详细扩展信息的子语句块。本申请实施例中,利用extension扩展关键字license-type,用于表明YANG module中的某个feature是受license控制,license-type的取值可以是功能型(functional)或数值型(numeric),其中functional表明该数据节点是功能受限型license控制,numeric表明该节点是资源受限型license控制。License-type用于修饰feature。
此外,YANG module中需要能够动态表达license对数据节点的控制关系,比如如果license使能,该数据节点应当可被配置;如果license未使能,该数据节点应当对用户不可配。RFC7950中定义的“feature”关键字可以将YANG module中的某些数据节点标记为有条件的。通过if-feature表达式声明,如果某feature未使能,那么if-feature表达式所控制的数据节点均不会被网络设备所支持。但if-feature仅能用于表达功能型license,对于资源型license,本申请实施例中利用YANG extension扩展关键字apply-feature。Apply-feature用于修饰被资源型feature控制的数据节点。
对license-type的extension定义可以如下:
使用License-type声明的数据节点表明该feature受license控制,functional表明功能型feature,numeric表明资源型feature。
对apply-feature的extension定义如下:
使用apply-feature表示该数据节点受资源型feature控制。Apply-feature可对应一个操作(operation),operation的取值可以是替换(replace)、增加(add)或删除(delete)。Add表示增加新的属性到目标数据节点;replace表示替换目标数据节点的属性;delete表示从目标数据节点删除属性,要删除的属性由“delete”的子语句标识。
假设bevpn这个功能型feature可以由license使能,bevpn feature的定义:
feature bevpn{
ext:license-type functional;
}
该feature与相应的YANG数据节点的关系:
假设VPN的network-instance这个YANG数据节点(结构是list)是一个受license控制的资源型,未激活license时最大支持list表项默认为50,激活license后最大支持200个表项。Max-vpn-instances这个资源型feature的定义:
feature max-vpn-instances{
ext:license-type numeric;
}
该feature与相应的network-instance数据节点的关系:
查询消息中的查询条件可以包括第三查询指令,第三查询指令用于查询所述YANG模型的结构schema信息,所述schema信息包括所述第一映射关系。该第三查询指令可以是get schema操作。
查询消息M4的示例如下:
查询消息M4中包括名称为bar的YANG schema。
与查询消息M4对应的响应消息R4示例如下:
响应消息R4中包括名称为bar YANG schema的名称为max-vpn-instances的feature,该feature的license类型为numeric。
实现方式五:如前文所提,查询消息除了可以为基于NETCONF协议的RPC消息之外,也可以为基于HTTP、FTP协议的消息。例如,用户在决定购买某一型号的网络设备之前希望了解该型号的网络设备目前的特性信息以及对应的license信息。那么在网管设备与网络设备建立NETCONF连接之前,网管设备可以基于HTTP或FTP协议从网络设备或者服务器中获取第一映射关系。
网管设备发送的查询消息的示例如下:
GET HTTP 1.1/product-name/serial/licenses/license-yang-mapping.json
Host:license-example.com
Accept:application/xml,application/json
其中,license-example.com为服务器的域名,license-yang-mapping.json为文件名。
响应消息的示例如下:
该响应消息表示,网络设备的YANG模型包括如下license:名称为dhcpv6的license、 名称为evpn的license以及名称为ospfv3的license。
其中,名称为dhcpv6的license的描述信息为基于IPv6的动态主机配置协议,该license在该网络设备上使能,受该license控制的module set的名称为dhcpv6,该module set包括的module如下:名称为AAA-dhcpv6、版本号为2020-03-09的module;名称为AAA-dhcpv6-relay、版本号为2020-03-09的module;以及名称为AAA-dhcpv6-deviations、版本号为2020-03-08的module。
名称为evpn的license的描述信息为evpn属性,该license在网络设备上不使能。受该license控制的feature的名称为ethernet-segment-pbb-params,类型为功能型,关联的module名称为ietf-ethernet-segment,关联的数据节点的XPath信息为Ethernet-segments/Ethernet-segment/pbb-parameters。
名称为ospfv3的license的描述信息为配置Configure OSPFv3config,该license的过期时间为2022-06-16,该license在网络设备上使能。受该license控制的module set的名称为ospfv3,包括如下module:名称为AAA-ospfv3、版本号为2020-03-13的module;名称为AAA-ospfv3-type、版本号为2020-03-09的module;名称为AAA-ospfv3-srv6、版本号为2020-03-09的module;以及名称为AAA-ospfv3-deviations、版本号为2020-03-09的module。
参见图3,本申请实施例还提供了一种查询装置300,该查询装置300可以实现图2所示实施例中网管设备的功能。该查询装置300包括处理单元301、发送单元302和接收单元303。其中,处理单元301用于实现图2所示实施例中的S201,发送单元302用于实现图2所示实施例中的S202;接收单元303用于实现图2所示实施例中的S206。
具体的,处理单元301,用于生成查询消息,所述查询消息包括查询条件,所述查询条件用于确定许可证license信息和YANG模型对象的信息之间的第一映射关系。
发送单元302,用于向第一设备发送所述查询消息。
接收单元303,用于接收来自所述第一设备根据所述查询条件得到的响应消息,所述响应消息包括所述第一映射关系
具体执行过程请参考上述图2所示实施例中相应步骤的详细描述,这里不再一一赘述。
参见图4,本申请实施例还提供了一种查询装置400,该查询装置400可以实现图2所示实施例中第一设备的功能。该查询装置400包括接收单元401、处理单元402和发送单元403。其中,接收单元401用于实现图2所示实施例中的S203;处理单元402用于实现图2所示实施例中的S204,发送单元403用于实现图2所示实施例中的S205。
具体的,接收单元401,用于接收来自网络设备的查询消息,所述查询消息包括查询条件。
处理单元402,用于根据所述查询条件获取第一映射关系,所述第一映射关系为许可证license信息和YANG模型对象的信息之间的第一映射关系。
发送单元403,用于向所述网络设备发送响应消息,所述响应消息包括所述第一映射关系。
具体执行过程请参考上述图2所示实施例中相应步骤的详细描述,这里不再一一赘述。
需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。本申请实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。例如,上述实施例中,获取单元和处理单元可以是同一个单元,也不同的单元。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
图5是本申请实施例提供的一种设备500的结构示意图。上文中的查询装置300或转查询装置400可以通过图5所示的设备来实现。参见图5,该设备500包括至少一个处理器501,通信总线502以及至少一个网络接口504,可选地,该设备500还可以包括存储器503。
处理器501可以是中央处理器(central processing unit,CPU),网络处理器(network processor,NP)或者CPU和NP的组合。在一种实现方式中,处理器501还可为流量管理(traffic management,TM)芯片或者是集成了NP和TM芯片的硬件,TM芯片或者集成了NP和TM芯片的硬件可对TM芯片中的队列执行本申请实施例提供的调度队列的方法。处理器1010还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。处理器可以用于对数据报文进行更新或校验,以实现本申请实施例中提供的报文传输方法。
比如,当图2中的网管设备通过图5所示的设备来实现时,该处理器可以用于:生成查询消息,以及通过网络接口504向第一设备发送所述查询消息以及接收来自所述第一设备根据所述查询条件得到的响应消息。当图2中的第一设备通过图5所示的设备来实现时,该处理器可以用于:根据所述查询条件获取第一映射关系,并通过网络接口504向所述网络设备发送响应消息。
通信总线502用于在处理器501、网络接口504和存储器503之间传送信息。总线系统502可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。总线系统502可以分为地址总线、数据总线、控制总线等,图5中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
存储器503可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其它类型的静态存储设备,存储器503还可以是随机存取存储器(random access memory,RAM)或者可存储信息和指令的其它类型的动态存储设备,也可以是只读光盘(compact disc read-only Memory,CD-ROM)或其它光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其它磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质,但不限于此。存储器503可以是独立存在,通过通信总线502与处理器501相连接。存储器503也可以和处理器501集成在一起。
可选地,存储器503用于存储执行本申请方案的程序代码或指令,并由处理器501来控制执行。处理器501用于执行存储器503中存储的程序代码或指令。程序代码中可以包括一个或多个软件模块。可选地,处理器501也可以存储执行本申请方案的程序代码或指令,在这种情况下处理器501不需要到存储器503中读取程序代码或指令。
网络接口504可以为收发器一类的装置,用于与其它设备或通信网络通信,通信网络可以为以太网、无线接入网(RAN)或无线局域网(wireless local area networks,WLAN)等。在本申请实施例中,网络接口504可以用于接收分段路由网络中的其他节点发送的报文,也可以向分段路由网络中的其他节点发送报文。网络接口504可以为以太接口(ethernet)接口、快速以太(fast ethernet,FE)接口或千兆以太(gigabit ethernet,GE)接口等。
在具体实现中,作为一种实施例,设备500可以包括多个处理器,例如图5中所示的处理器501和处理器505。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。
图6是本申请实施例提供的一种设备600的结构示意图。图2中的网管设备和第一设备中任意一个或多个设备可以通过图6所示的设备来实现。
参见图6所示的设备结构示意图,设备600包括主控板和一个或多个接口板。主控板与接口板通信连接。主控板也称为主处理单元(main processing unit,MPU)或路由处理卡(route processor card),主控板包括CPU和存储器,主控板负责对设备600中各个组件的控制和管理,包括路由计算、设备管理和维护功能。接口板也称为线处理单元(line processing unit,LPU)或线卡(line card),用于接收和发送报文。在一些实施例中,主控板与接口板之间或接口板与接口板之间通过总线通信。在一些实施例中,接口板之间通过交换网板通信,在这种情况下设备600也包括交换网板,交换网板与主控板、接口板通信连接,交换网板用于转发接口板之间的数据,交换网板也可以称为交换网板单元(switch fabric unit,SFU)。接口板包括CPU、存储器、转发引擎和接口卡(interface card,IC),其中接口卡可以包括一个或多个网络接口。网络接口可以为Ethernet接口、FE接口或GE接口等。CPU与存储器、转发引擎和接口卡分别通信连接。存储器用于存储转发表。转发引擎用于基于存储器中保存的转发表转发接收到的报文,如果接收到的报文的目的地址为设备600的IP地址,则将该报文发送给主控板或接口板的CPU进行处理;如果接收到的报文的目的地址不是设备600的IP地址,则根据该目的地查转发表,如果从转发表中查找到该目的地址对应的下一跳和出接口,将该报文转发到该目的地址对应的出接口。转发引擎可以是网络处理器(network processor,NP)。接口卡也称为子卡,可安装在接口板上,负责将光电信号转换为数据帧,并对数据帧进行合法性检查后转发给转发引擎处理或接口板CPU。在一些实施例中,CPU也可执行转发引擎的功能,比如基于通用CPU实现软转发,从而接口板中不需要转发引擎。在一些实施例中,转发引擎可以通过ASIC或现场可编程门阵列(field programmable gate array,FPGA)实现。在一些实施例中,存储转发表的存储器也可以集成到转发引擎中,作为转发引擎的一部分。
本申请实施例还提供一种芯片系统,包括:处理器,所述处理器与存储器耦合,所述 存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得该芯片系统实现上述图2所示实施例中提供的查询方法。
可选地,该芯片系统中的处理器可以为一个或多个。该处理器可以通过硬件实现也可以通过软件实现。当通过硬件实现时,该处理器可以是逻辑电路、集成电路等。当通过软件实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现。
可选地,该芯片系统中的存储器也可以为一个或多个。该存储器可以与处理器集成在一起,也可以和处理器分离设置,本申请并不限定。示例性的,存储器可以是非瞬时性处理器,例如只读存储器ROM,其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请对存储器的类型,以及存储器与处理器的设置方式不作具体限定。
示例性的,该芯片系统可以是FPGA,可以是ASIC,还可以是系统芯片(system on chip,SoC),还可以是CPU,还可以是NP,还可以是数字信号处理电路(digital signal processor,DSP),还可以是微控制器(micro controller unit,MCU),还可以是可编程控制器(programmable logic device,PLD)或其他集成芯片。
应理解,上述方法实施例中的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。
本申请实施例还提供了一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行以上方法实施例提供的、由网管设备执行的查询方法,或由第一设备执行的查询方法。
本申请实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行以上方法实施例提供的、由网管设备执行的查询方法,或由第一设备执行的查询方法。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑模块划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的 部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要获取其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各模块单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件模块单元的形式实现。
所述集成的单元如果以软件模块单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
本领域技术人员应该可以意识到,在上述一个或多个示例中,本发明所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。
以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已。
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。
Claims (57)
- 一种查询方法,其特征在于,所述方法包括:网管设备生成查询消息,所述查询消息包括查询条件,所述查询条件用于确定许可证license信息和YANG模型对象的信息之间的第一映射关系;所述网管设备向第一设备发送所述查询消息;所述网管设备接收来自所述第一设备根据所述查询条件得到的响应消息,所述响应消息包括所述第一映射关系。
- 根据权利要求1所述的方法,其特征在于,所述查询条件包括license信息,所述查询消息用于所述第一设备根据所述license信息获取对应的所述YANG模型对象的信息。
- 根据权利要求2所述的方法,其特征在于,所述网管设备生成查询消息包括:响应于获取到所述license信息指示的license到期的告警信息,所述网管设备根据所述license信息生成查询消息。
- 根据权利要求1所述的方法,其特征在于,所述查询条件包括所述YANG模型对象的信息,所述查询消息用于所述第一设备根据所述YANG模型对象的信息获取所述license信息。
- 根据权利要求2或4所述的方法,其特征在于,所述网管设备生成查询消息包括:响应于所述网管设备接收到远程过程调用RPC响应消息,所述网管设备生成查询消息,所述PRC响应消息指示所述网管设备对所述YANG模型对象进行配置失败的原因包括所述YANG模型对象的license失效。
- 根据权利要求4或5所述的方法,其特征在于,在接收到所述响应消息之后,所述方法还包括:响应于所述license信息指示的license失效,所述网管设备向所述第一设备发送激活指令,激活指令用于指示激活所述license。
- 根据权利要求4所述的方法,其特征在于,所述网管设备生成查询消息包括:响应于生成PRC消息,所述网管设备生成查询消息,所述RPC消息用于对所述YANG模型对象进行配置。
- 根据权利要求7所述的方法,其特征在于,在接收到所述响应消息之后,所述方法还包括:响应于所述license信息指示的license为激活状态,所述网管设备向所述网络设备发送所述RPC消息。
- 根据权利要求1-8任一项所述的方法,其特征在于,所述YANG模型对象的信息包括所述YANG模型对象的标识。
- 根据权利要求9所述的方法,其特征在于,所述YANG模型对象的信息还包括以下其中一项或多项:所述YANG模型对象的特性feature信息和所述YANG模型对象的能力capability信息。
- 根据权利要求1所述的方法,其特征在于,所述查询条件包括第一查询指令和数据节点的标识,所述第一查询指令用于查询YANG模型系统能力system-capabilities中所述数据节点的能力信息,所述数据节点的能力信息包括所述第一映射关系。
- 根据权利要求1所述的方法,其特征在于,所述查询条件包括第二查询指令,所述第二查询指令用于查询YANG库library,所述YANG library包括所述第一映射关系。
- 根据权利要求1所述的方法,其特征在于,所述查询条件包括第三查询指令,所述第三查询指令用于查询所述YANG模型的结构schema信息,所述schema信息包括所述第一映射关系。
- 根据权利要求1所述的方法,其特征在于,所述查询条件包括文件名称,所述查询消息用于所述第一设备从与所述文件名称对应的文件中获取所述第一映射关系。
- 根据权利要求1所述的方法,其特征在于,所述查询条件包括承载所述YANG模型对象的网络设备的设备标识,所述查询消息用于所述第一设备根据所述设备标识和第二映射关系获取所述第一映射关系,所述第二映射关系为所述设备标识与所述第一映射关系之间的对应关系。
- 根据权利要求1-15任一项所述的方法,其特征在于,所述license信息包括license名称。
- 根据权利要求13所述的方法,其特征在于,所述license信息还包括以下其中一项或多项:license版本号和license使能信息。
- 根据权利要求1-17任一项所述的方法,其特征在于,所述YANG模型对象包括以下其中一种或多种:YANG数据包package、模型集module-set、模型module和数据节点data node。
- 一种查询方法,其特征在于,所述方法包括:第一设备接收来自网络设备的查询消息,所述查询消息包括查询条件;所述第一设备根据所述查询条件获取第一映射关系,所述第一映射关系为许可证license信息和YANG模型对象的信息之间的映射关系;所述第一设备向所述网络设备发送响应消息,所述响应消息包括所述第一映射关系。
- 根据权利要求19所述的方法,其特征在于,所述查询条件包括license信息,所述第一设备根据所述查询条件获取第一映射关系包括:所述第一设备根据所述license信息获取对应的所述YANG模型对象的信息。
- 根据权利要求19所述的方法,其特征在于,所述查询条件包括所述YANG模型对象的信息,所述第一设备根据所述查询条件获取第一映射关系包括:所述第一设备根据所述YANG模型对象的信息获取所述license信息。
- 根据权利要求19所述的方法,其特征在于,所述查询条件包括查询条件包括第一查询指令和数据节点的标识,所述第一查询指令用于查询YANG模型系统能力system-capabilities中所述数据节点的能力信息;所述第一设备根据所述查询条件获取第一映射关系包括:所述第一设备根据所述第一查询指令和所述数据节点的标识获取所述YANG system-capabilities中所述数据节点的能力信息,所述数据节点的能力信息包括所述第一映射关系。
- 根据权利要求19所述的方法,其特征在于,所述查询条件包括第二查询指令,所 述第二查询指令用于查询YANG库library;所述第一设备根据所述查询条件获取第一映射关系包括:所述第一设备根据所述第二查询指令获取所述YANG library,所述YANG library包括所述第一映射关系。
- 根据权利要求19所述的方法,其特征在于,所述查询条件包括第三查询指令,所述第三查询指令用于查询所述YANG模型的结构schema信息;所述第一设备根据所述查询条件获取第一映射关系包括:所述第一设备根据所述第三查询指令获取所述schema信息,所述schema信息包括所述第一映射关系。
- 根据权利要求19所述的方法,其特征在于,所述查询条件包括文件名称;所述第一设备根据所述查询条件获取第一映射关系包括:所述第一设备从与所述文件名称对应的文件中获取所述第一映射关系。
- 根据权利要求19所述的方法,其特征在于,所述查询条件包括承载所述YANG模型对象的网络设备的设备标识;所述第一设备根据所述查询条件获取第一映射关系包括:所述第一设备根据所述设备标识和第二映射关系获取所述第一映射关系,所述第二映射关系为所述设备标识与所述第一映射关系之间的对应关系。
- 根据权利要求19-26任一项所述的方法,其特征在于,所述YANG模型对象的信息包括所述YANG模型对象的标识。
- 根据权利要求27所述的方法,其特征在于,所述YANG模型对象的信息还包括以下其中一项或多项:所述YANG模型对象的特性feature信息和所述YANG模型对象的能力capability信息。
- 根据权利要求19-28任一项所述的方法,其特征在于,所述license信息包括license名称。
- 根据权利要求29所述的方法,其特征在于,所述license信息还包括以下其中一项或多项:license版本号和license使能信息。
- 根据权利要求19-30任一项所述的方法,其特征在于,所述YANG模型对象包括以下其中一种或多种:YANG数据包package、模型集module-set、模型module和数据节点data node。
- 一种查询装置,其特征在于,应用于网管设备,所述装置包括:处理单元,用于生成查询消息,所述查询消息包括查询条件,所述查询条件用于确定许可证license信息和YANG模型对象的信息之间的第一映射关系;发送单元,用于向第一设备发送所述查询消息;接收单元,用于接收来自所述第一设备根据所述查询条件得到的响应消息,所述响应消息包括所述第一映射关系。
- 根据权利要求32所述的装置,其特征在于,所述查询条件包括license信息,所述查询消息用于所述第一设备根据所述license信息获取对应的所述YANG模型对象的信 息。
- 根据权利要求33所述的装置,其特征在于,所述处理单元,用于响应于获取到所述license信息指示的license到期的告警信息,根据所述license信息生成查询消息。
- 根据权利要求32所述的装置,其特征在于,所述查询条件包括所述YANG模型对象的信息,所述查询消息用于所述第一设备根据所述YANG模型对象的信息获取所述license信息。
- 根据权利要求33或35所述的装置,其特征在于,所述处理单元,用于响应于所述网管设备接收到远程过程调用RPC响应消息,生成查询消息,所述PRC响应消息指示所述网管设备对所述YANG模型对象进行配置失败的原因包括所述YANG模型对象的license失效。
- 根据权利要求35或36所述的装置,其特征在于,所述发送单元,还用于在接收到所述响应消息之后,响应于所述license信息指示的license失效,向所述第一设备发送激活指令,激活指令用于指示激活所述license。
- 根据权利要求35所述的装置,其特征在于,所述处理单元,用于响应于生成PRC消息,生成查询消息,所述RPC消息用于对所述YANG模型对象进行配置。
- 根据权利要求38所述的装置,其特征在于,所述发送单元,还用于在接收到所述响应消息之后,响应于所述license信息指示的license为激活状态,向所述网络设备发送所述RPC消息。
- 根据权利要求32-39任一项所述的装置,其特征在于,所述YANG模型对象的信息包括所述YANG模型对象的标识。
- 根据权利要求40所述的装置,其特征在于,所述YANG模型对象的信息还包括以下其中一项或多项:所述YANG模型对象的特性feature信息和所述YANG模型对象的能力capability信息。
- 根据权利要求32所述的装置,其特征在于,所述查询条件包括第一查询指令和数据节点的标识,所述第一查询指令用于查询YANG模型系统能力system-capabilities中所述数据节点的能力信息,所述数据节点的能力信息包括所述第一映射关系。
- 根据权利要求32所述的装置,其特征在于,所述查询条件包括第二查询指令,所述第二查询指令用于查询YANG库library,所述YANG library包括所述第一映射关系。
- 根据权利要求32所述的装置,其特征在于,所述查询条件包括第三查询指令,所述第三查询指令用于查询所述YANG模型的结构schema信息,所述schema信息包括所述第一映射关系。
- 根据权利要求32所述的装置,其特征在于,所述查询条件包括文件名称,所述查询消息用于所述第一设备从与所述文件名称对应的文件中获取所述第一映射关系。
- 根据权利要求32所述的装置,其特征在于,所述查询条件包括承载所述YANG模型对象的网络设备的设备标识,所述查询消息用于所述第一设备根据所述设备标识和第二映射关系获取所述第一映射关系,所述第二映射关系为所述设备标识与所述第一映射关 系之间的对应关系。
- 一种查询装置,其特征在于,应用于第一设备,所述装置包括:接收单元,用于接收来自网络设备的查询消息,所述查询消息包括查询条件;处理单元,用于根据所述查询条件获取第一映射关系,所述第一映射关系为许可证license信息和YANG模型对象的信息之间的映射关系;发送单元,用于向所述网络设备发送响应消息,所述响应消息包括所述第一映射关系。
- 根据权利要求47所述的装置,其特征在于,所述查询条件包括license信息,所述处理单元,用于根据所述license信息获取对应的所述YANG模型对象的信息。
- 根据权利要求47所述的装置,其特征在于,所述查询条件包括所述YANG模型对象的信息,所述处理单元,用于根据所述YANG模型对象的信息获取所述license信息。
- 根据权利要求47所述的装置,其特征在于,所述查询条件包括查询条件包括第一查询指令和数据节点的标识,所述第一查询指令用于查询YANG模型系统能力system-capabilities中所述数据节点的能力信息;所述处理单元,用于根据所述第一查询指令和所述数据节点的标识获取所述YANG system-capabilities中所述数据节点的能力信息,所述数据节点的能力信息包括所述第一映射关系。
- 根据权利要求47所述的装置,其特征在于,所述查询条件包括第二查询指令,所述第二查询指令用于查询YANG库library;所述处理单元,用于根据所述第二查询指令获取所述YANG library,所述YANG library包括所述第一映射关系。
- 根据权利要求47所述的装置,其特征在于,所述查询条件包括第三查询指令,所述第三查询指令用于查询所述YANG模型的结构schema信息;所述处理单元,用于根据所述第三查询指令获取所述schema信息,所述schema信息包括所述第一映射关系。
- 根据权利要求47所述的装置,其特征在于,所述查询条件包括文件名称;所述处理单元,用于从与所述文件名称对应的文件中获取所述第一映射关系。
- 根据权利要求47所述的装置,其特征在于,所述查询条件包括承载所述YANG模型对象的网络设备的设备标识;所述处理单元,用于根据所述设备标识和第二映射关系获取所述第一映射关系,所述第二映射关系为所述设备标识与所述第一映射关系之间的对应关系。
- 一种网管设备,其特征在于,所述网络设备包括处理器芯片和存储器,存储器用于存储指令或程序代码,处理器芯片用于从存储器中调用并运行所述指令或程序代码,以执行如权利要求1-18任一项所述的查询方法。
- 一种设备,其特征在于,所述设备包括处理器芯片和存储器,存储器用于存储指令或程序代码,处理器芯片用于从存储器中调用并运行所述指令或程序代码,以执行如权利要求19-31任一项所述的查询方法。
- 一种计算机可读存储介质,其特征在于,包括指令、程序或代码,当其在计算机上 执行时,使得所述计算机执行如权利要求1-31任一项所述的查询方法。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP22836604.3A EP4354802A4 (en) | 2021-07-06 | 2022-05-13 | INTERROGATION METHOD, APPARATUS AND DEVICE |
| US18/405,676 US20240143613A1 (en) | 2021-07-06 | 2024-01-05 | Query method and apparatus, and device |
Applications Claiming Priority (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110761856 | 2021-07-06 | ||
| CN202110761856.0 | 2021-07-06 | ||
| CN202110780864.XA CN115589351B (zh) | 2021-07-06 | 2021-07-09 | 一种查询方法、装置及设备 |
| CN202110780864.X | 2021-07-09 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US18/405,676 Continuation US20240143613A1 (en) | 2021-07-06 | 2024-01-05 | Query method and apparatus, and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2023279848A1 true WO2023279848A1 (zh) | 2023-01-12 |
Family
ID=84771731
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2022/092742 Ceased WO2023279848A1 (zh) | 2021-07-06 | 2022-05-13 | 一种查询方法、装置及设备 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US20240143613A1 (zh) |
| EP (1) | EP4354802A4 (zh) |
| CN (1) | CN115589351B (zh) |
| WO (1) | WO2023279848A1 (zh) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN121218188A (zh) * | 2024-06-25 | 2025-12-26 | 华为技术有限公司 | 通信方法及装置 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105634852A (zh) * | 2014-11-06 | 2016-06-01 | 中兴通讯股份有限公司 | 校验处理方法及装置 |
| CN108574593A (zh) * | 2017-03-13 | 2018-09-25 | 华为技术有限公司 | 一种nfv网络中许可证的管理系统 |
| WO2019001562A1 (zh) * | 2017-06-30 | 2019-01-03 | 中兴通讯股份有限公司 | 模型加载方法、装置、存储介质和计算机设备 |
| CN109951315A (zh) * | 2019-02-14 | 2019-06-28 | 烽火通信科技股份有限公司 | 一种实现yang模型到内部模型映射的方法及系统 |
| CN110493037A (zh) * | 2019-07-31 | 2019-11-22 | 瑞斯康达科技发展股份有限公司 | 一种网络管理方法、装置和系统、计算机可读存储介质 |
Family Cites Families (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6510513B1 (en) * | 1999-01-13 | 2003-01-21 | Microsoft Corporation | Security services and policy enforcement for electronic data |
| US7472186B2 (en) * | 2004-09-09 | 2008-12-30 | International Business Machines Corporation | Method for using SNMP as an RPC mechanism for exporting the data structures of a remote library |
| US8650210B1 (en) * | 2010-02-09 | 2014-02-11 | Google Inc. | Identifying non-search actions based on a search query |
| EP2388725B1 (en) * | 2010-05-21 | 2017-01-11 | SFNT Germany GmbH | A method for controlling the execution of an application on a computer system |
| US8838653B2 (en) * | 2010-11-01 | 2014-09-16 | Cisco Technology, Inc. | Translating an object-oriented data model to a YANG data model |
| US9900209B2 (en) * | 2015-09-14 | 2018-02-20 | Cisco Technology, Inc. | Techniques for YANG model version control validation |
| CN106998552A (zh) * | 2016-01-26 | 2017-08-01 | 中兴通讯股份有限公司 | 路由控制方法、装置及系统 |
| CN107733675B (zh) * | 2016-08-12 | 2022-05-24 | 中兴通讯股份有限公司 | 一种license鉴权的方法和系统 |
| US20170187577A1 (en) * | 2017-03-14 | 2017-06-29 | Nuviso Networks Inc | System for configuring network devices |
| KR102424056B1 (ko) * | 2017-10-31 | 2022-07-25 | 한국전자통신연구원 | Netconf 기반의 네트워크 시스템 명령어를 yang 언어로 모델링하는 방법 및 장치 |
| WO2019109210A1 (en) * | 2017-12-04 | 2019-06-13 | Telefonaktiebolaget Lm Ericsson (Publ) | Network management device and centralized authorization server for netconf |
| US10824700B2 (en) * | 2018-08-02 | 2020-11-03 | Arm Limited | Device, system, and method of selective activation, deactivation, and configuration of components |
| CN112583630B (zh) * | 2019-09-29 | 2022-07-12 | 华为技术有限公司 | 设备管理方法、装置、系统、设备及存储介质 |
| CN112688794A (zh) * | 2019-10-18 | 2021-04-20 | 华为技术有限公司 | Yang模型的管理方法、装置、系统、设备及存储介质 |
| CN111988179B (zh) * | 2020-08-21 | 2023-02-03 | 华信塞姆(成都)科技有限公司 | 一种yang模型管理系统、方法和存储介质 |
-
2021
- 2021-07-09 CN CN202110780864.XA patent/CN115589351B/zh active Active
-
2022
- 2022-05-13 EP EP22836604.3A patent/EP4354802A4/en active Pending
- 2022-05-13 WO PCT/CN2022/092742 patent/WO2023279848A1/zh not_active Ceased
-
2024
- 2024-01-05 US US18/405,676 patent/US20240143613A1/en not_active Abandoned
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105634852A (zh) * | 2014-11-06 | 2016-06-01 | 中兴通讯股份有限公司 | 校验处理方法及装置 |
| CN108574593A (zh) * | 2017-03-13 | 2018-09-25 | 华为技术有限公司 | 一种nfv网络中许可证的管理系统 |
| WO2019001562A1 (zh) * | 2017-06-30 | 2019-01-03 | 中兴通讯股份有限公司 | 模型加载方法、装置、存储介质和计算机设备 |
| CN109951315A (zh) * | 2019-02-14 | 2019-06-28 | 烽火通信科技股份有限公司 | 一种实现yang模型到内部模型映射的方法及系统 |
| CN110493037A (zh) * | 2019-07-31 | 2019-11-22 | 瑞斯康达科技发展股份有限公司 | 一种网络管理方法、装置和系统、计算机可读存储介质 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP4354802A4 |
Also Published As
| Publication number | Publication date |
|---|---|
| US20240143613A1 (en) | 2024-05-02 |
| CN115589351B (zh) | 2024-07-30 |
| EP4354802A4 (en) | 2024-09-25 |
| EP4354802A1 (en) | 2024-04-17 |
| CN115589351A (zh) | 2023-01-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110958131B (zh) | YANG配置数据模型上支持基于GraphQL的查询 | |
| US10200248B1 (en) | Translating high-level configuration instructions to low-level device configuration | |
| US20210286346A1 (en) | Method of comissioning a field device in an industrial system network | |
| US12261741B2 (en) | Server to support client data models from heterogeneous data sources | |
| US10278112B1 (en) | Resolving out-of-band configuration changes to high-level service configuration for managed network devices | |
| CN113381870B (zh) | 报文处理方法和设备 | |
| CN110247784A (zh) | 确定网络拓扑结构的方法和装置 | |
| US10382265B1 (en) | Reversible yang-based translators | |
| WO2020062959A1 (zh) | 配置数据的方法及装置 | |
| CN110580256A (zh) | 一种识别应用标识的方法、设备及系统 | |
| CN105827428A (zh) | 资产信息的管理方法及装置 | |
| CN107710196A (zh) | 一种管理资源对象的方法和系统 | |
| CN110138579A (zh) | 用户侧设备的配置方法和相关装置 | |
| WO2023045552A1 (zh) | 服务部署方法、服务部署系统、电子设备及存储介质 | |
| US20240143613A1 (en) | Query method and apparatus, and device | |
| KR20160103110A (ko) | 네트워크 요소 데이터 액세스 방법, 액세스 장치, 및 네트워크 관리 시스템 | |
| CN108270591A (zh) | 一种配置网络设备的方法和相关设备 | |
| WO2023005543A1 (zh) | 一种查询方法、装置及设备 | |
| CN117596050A (zh) | 数据访问管控方法、装置及电子设备 | |
| CN106330528A (zh) | 一种配置网络处理器的方法和装置 | |
| JP5782393B2 (ja) | ネットワークリソース分散管理方法およびプログラム | |
| EP3174245A1 (en) | Method for discovering topology network, network device and storage medium | |
| CN115529235B (zh) | 控制器设备及用于该控制器设备的方法和系统 | |
| CN111988179A (zh) | 一种yang模型管理系统、方法和存储介质 | |
| TWI428765B (zh) | 可共享應用程式配置參數的電子系統及其方法 |
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: 22836604 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2022836604 Country of ref document: EP |
|
| ENP | Entry into the national phase |
Ref document number: 2022836604 Country of ref document: EP Effective date: 20240109 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
























