Nothing Special   »   [go: up one dir, main page]

CN109194519B - Configuration method and device of network equipment, controller and computer storage medium - Google Patents

Configuration method and device of network equipment, controller and computer storage medium Download PDF

Info

Publication number
CN109194519B
CN109194519B CN201811133516.8A CN201811133516A CN109194519B CN 109194519 B CN109194519 B CN 109194519B CN 201811133516 A CN201811133516 A CN 201811133516A CN 109194519 B CN109194519 B CN 109194519B
Authority
CN
China
Prior art keywords
configuration
node
child
configuration parameters
network equipment
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.)
Active
Application number
CN201811133516.8A
Other languages
Chinese (zh)
Other versions
CN109194519A (en
Inventor
陈小龙
陈斯祥
郑金珠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ruijie Networks Co Ltd
Original Assignee
Ruijie Networks Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ruijie Networks Co Ltd filed Critical Ruijie Networks Co Ltd
Priority to CN201811133516.8A priority Critical patent/CN109194519B/en
Publication of CN109194519A publication Critical patent/CN109194519A/en
Application granted granted Critical
Publication of CN109194519B publication Critical patent/CN109194519B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • H04L41/044Network management architectures or arrangements comprising hierarchical management structures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a configuration method and device of network equipment, a controller and a computer storage medium, which are used for improving the configuration efficiency of the network equipment. The configuration method of the network equipment comprises the following steps: aggregating at least one child node according to each parent node corresponding to at least one child node supported by the network device, wherein configuration parameters corresponding to each parent node are used for configuring functional components corresponding to the network device; generating configuration messages corresponding to the parent nodes; and sending the configuration message corresponding to each father node to the network equipment so that the network equipment configures the corresponding functional component according to the configuration information corresponding to each father node.

Description

Configuration method and device of network equipment, controller and computer storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for configuring a network device, a controller, and a computer storage medium.
Background
The (OC) protocol is implemented in compliance with a standard network configuration (NETCONF) protocol, which is a network management protocol based on extensible Markup Language (XML), and specifies a method for configuring and managing network devices.
Referring to fig. 1, fig. 1 is a system architecture diagram of a prior art network configuration. At present, a controller based on the OC protocol may be connected to a plurality of network devices, for example, a switch or a router, and the controller may configure the network devices connected thereto by sending a configuration message. At present, when a controller configures a network device, the controller needs to send a configuration message for each child node supported by the network device, so as to implement configuration of the network device. And there are multiple sub-nodes supported by each network device, if the controller needs to send a configuration message for each sub-node, then more configuration messages are sent by the controller, resulting in inefficient configuration of the network device.
Disclosure of Invention
The embodiment of the invention provides a configuration method and device of network equipment, a controller and a computer storage medium, which are used for improving the configuration efficiency of the network equipment.
In a first aspect, a configuration method of a network device is provided, and is applied in a controller, and the method includes:
aggregating at least one child node according to each parent node corresponding to at least one child node supported by the network device, wherein configuration parameters corresponding to each parent node are used for configuring functional components corresponding to the network device;
generating configuration messages corresponding to the parent nodes;
and sending the configuration message corresponding to each father node to the network equipment so that the network equipment configures the corresponding functional component according to the configuration information corresponding to each father node.
In the embodiment of the invention, the controller aggregates a plurality of child nodes which can be supported by the network equipment, generates the configuration message for each father node corresponding to the aggregated plurality of child nodes and sends the configuration message to the network equipment. Because one generated configuration message corresponds to one father node and one father node corresponds to a plurality of child nodes, the controller can configure at least two child nodes of the network equipment by sending one configuration message, so that all the child nodes of the network equipment are configured, and less configuration messages are sent, thereby improving the efficiency of network configuration.
Optionally, aggregating at least one child node according to each parent node corresponding to the at least one child node supported by the network device includes:
receiving support capability information from the network equipment, wherein the support capability information is used for indicating at least one sub-node supported by the network equipment;
determining each father node corresponding to the at least one child node;
and aggregating the child nodes corresponding to the same father node in the at least one child node.
Optionally, generating a configuration message corresponding to each parent node includes:
respectively establishing a configuration data table corresponding to each father node, wherein the configuration data table is used for indicating configuration parameters of all child nodes included in the corresponding father node;
and respectively generating configuration messages corresponding to the parent nodes based on the established configuration data table, wherein each configuration message carries configuration parameters of the child nodes included in the corresponding parent node.
In the two optional modes, the controller may aggregate a plurality of child nodes corresponding to one parent node, and establish a configuration data table for the aggregated parent node, where the configuration data table carries configuration parameters of the plurality of child nodes, so as to generate configuration information corresponding to each parent node.
Optionally, respectively establishing a configuration data table corresponding to each parent node includes:
acquiring configuration parameters of all child nodes included in each father node;
carrying out format conversion on the acquired configuration parameters to obtain converted configuration parameters, wherein the format of the acquired configuration parameters is an XML format, and the format of the converted configuration parameters is a JSON format;
and establishing the configuration data table according to the converted configuration parameters.
In the embodiment of the present invention, the controller uses a JSON Object representation (JSON) format configuration parameter, and since the JSON format configuration parameter is not transmitted one by one, compared with the current network device configuration parameter based on an XML format, the controller needs to load the entire XML document to construct a hierarchical structure, which is large in consumption, and meanwhile, for the case that the controller reads the configuration information of the network device one by one or sends the configuration message to the node, the consumption of network transmission and process transmission can be reduced.
In a second aspect, a configuration apparatus of a network device is provided, and is applied in a controller, and the configuration apparatus includes:
the aggregation unit is used for aggregating at least one child node according to each father node corresponding to at least one child node supported by the network equipment, wherein configuration parameters corresponding to each father node are used for configuring functional components corresponding to the network equipment;
a generating unit, configured to generate configuration messages corresponding to the parent nodes;
and the sending unit is used for sending the configuration message corresponding to each parent node to the network equipment so that the network equipment configures the corresponding functional component according to the configuration information corresponding to each parent node.
Optionally, the polymerization unit is specifically used for:
receiving support capability information from the network equipment, wherein the support capability information is used for indicating at least one sub-node supported by the network equipment;
determining each father node corresponding to the at least one child node;
and aggregating the child nodes corresponding to the same father node in the at least one child node.
Optionally, the generating unit is specifically configured to:
respectively establishing a configuration data table corresponding to each father node, wherein the configuration data table is used for indicating configuration parameters of all child nodes included in the corresponding father node;
and respectively generating configuration messages corresponding to the parent nodes based on the established configuration data table, wherein each configuration message carries configuration parameters of the child nodes included in the corresponding parent node.
Optionally, the generating unit is specifically configured to:
acquiring configuration parameters of all child nodes included in each father node;
carrying out format conversion on the acquired configuration parameters to obtain converted configuration parameters, wherein the format of the acquired configuration parameters is an XML format, and the format of the converted configuration parameters is a JSON format;
and establishing the configuration data table according to the converted configuration parameters.
In a third aspect, a controller for configuring a network device is provided, the controller comprising:
at least one processor, and
a memory coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, the at least one processor implementing the method of any one of the first aspect by executing the instructions stored by the memory.
In a fourth aspect, there is provided a computer storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any of the first aspects.
In the embodiment of the invention, the controller aggregates a plurality of child nodes which can be supported by the network equipment, generates the configuration message for each father node corresponding to the aggregated plurality of child nodes and sends the configuration message to the network equipment. Because one generated configuration message corresponds to one father node and one father node corresponds to a plurality of child nodes, the controller can configure at least two child nodes of the network equipment by sending one configuration message, so that all the child nodes of the network equipment are configured, and less configuration messages are sent, thereby improving the efficiency of network configuration.
Drawings
FIG. 1 is a system architecture diagram of a network device configuration provided by the prior art;
fig. 2 is a flowchart illustrating a configuration method of a network device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a configuration apparatus of a network device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a controller according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clearly and completely understood, the technical solutions in the embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention.
At present, a controller based on an OC protocol configures a network device and needs to send more configuration messages, which results in low efficiency of configuring and managing the network device.
In view of this, an embodiment of the present invention provides a configuration method for a network device, in which a controller aggregates a plurality of child nodes that can be supported by the network device, generates a configuration message for each parent node corresponding to the aggregated plurality of child nodes, and sends the configuration message to the network device. Because one configuration message is generated to correspond to one father node and one father node corresponds to a plurality of child nodes, the controller sends one configuration message to realize the configuration of at least two child nodes of the network equipment, so all the child nodes of the network equipment are configured, and less configuration messages are sent, thereby improving the efficiency of network configuration
The configuration of the two network devices is different, and the commands supported by the two network devices may be considered to be different, or the commands supported by the two network devices may be considered to be the same, but the configuration parameters carried by the commands are different. A network device supporting multiple commands may be considered a network device supporting multiple child nodes.
The technical scheme provided by the embodiment of the invention is described below by combining the accompanying drawings.
Referring to fig. 2, an embodiment of the present invention provides a method, which may be executed by a controller, for configuring a network device, such as a switch or a router. The process of the method is described as follows:
s201, aggregating at least one child node according to each father node corresponding to at least one child node supported by the network equipment, wherein configuration parameters corresponding to each father node are used for configuring functional components corresponding to the network equipment;
s202, generating configuration messages corresponding to the parent nodes;
s203, sending the configuration information corresponding to each father node to the network equipment so that the network equipment configures the corresponding functional component according to the configuration information corresponding to each father node.
In the embodiment of the invention, one controller is connected with a plurality of network devices at the same time, and the configuration of the plurality of network devices may be different. Different controllers may also support different service capabilities, e.g., some controllers may support multiple configuration operations, e.g., create operations, append operations, replace operations, etc. Some controllers may support fewer configuration operations, e.g., only delete operations, etc. While the child nodes (commands) supported by different network devices may also be different. When the controller configures the network device, the configuration operation can be performed only based on the configuration operation that the controller can support and the nodes that the network device can support. It is possible that one configuration operation may correspond to only one child node, or it is possible that one configuration operation may correspond to multiple child nodes. Similarly, a child node may correspond to only one configuration operation, or may correspond to multiple configuration operations. If a configuration operation does not correspond to a child node, the controller cannot configure the child node of the network device even if the controller supports the configuration operation and the network device supports the child node.
Therefore, the controller may send service capability information to the network devices when configuring the plurality of network devices, wherein the service capability information may be used to indicate configuration operations supported by the controller, that is, service capabilities of the controller. After receiving the service capability information from the controller, the network device may feed back its own support capability information to the controller, where the support capability information may be used to indicate at least one child node supported by the network device. After receiving the support capability information fed back from the network device, the controller may determine a child node that can be supported by the network device according to the received support capability information.
If the controller determines that there is one child node that the network device can support, the controller may generate a configuration message that may be used to configure the child node that the network device supports. And if the controller determines that the number of child nodes that can be supported by the network device is multiple, the controller may aggregate the multiple child nodes, and specifically, the controller may determine that the multiple child nodes are aggregated by each parent node corresponding to the multiple child nodes supported by the network device, and aggregate the child nodes corresponding to the same parent node among the multiple child nodes. In the embodiment of the present invention, there may be one or more parent nodes.
After the controller aggregates the plurality of child nodes, a configuration message may be generated for each parent-child node after aggregation. The configuration message carries configuration parameters corresponding to all child nodes included in each parent node, and may be used to configure all child nodes included in each parent node, that is, to configure functional components corresponding to the network device. All the child nodes included in each father node can be configured through the configuration message, so that the controller can send one configuration message to configure at least two child nodes, and even if the configuration of each network device is different, and the network devices connected with the controller are configured, the configuration messages sent by the controller are less, and the efficiency of network configuration is improved.
In embodiments of the present invention, the controller may generate one configuration message for each parent node when generating the configuration message. The controller may add an Identification (ID) to the configuration message each time it generates a configuration message. In a possible embodiment, the controller may add an ID for each configuration message in increments of IDs. Specifically, the controller may respectively establish a configuration data table corresponding to each parent node, and the configuration data table may be used to indicate configuration parameters of child nodes included in the corresponding parent node. The data structure of the configuration data table may include an index identifier for indicating a parent node, so that the configuration parameters of the child nodes under the corresponding parent node can be found through the index identifier. Each parent node includes child node members and/or child node formats, such as child node type and access rights of the child node.
When the controller generates the configuration message, the controller may respectively generate the configuration message corresponding to each parent node based on the established configuration data table, where each configuration message carries configuration parameters of child nodes included in the corresponding parent node. Specifically, the controller may set an initial value for each member of the data structure of the configuration data table, e.g., child node member, child node format, etc. After the controller establishes connection with the network device, the controller may obtain child node information of the network device, such as child node members, child node formats, configuration parameters, and the like, and update the data structure members of the configuration data table according to the obtained child node information.
The controller configures the network device, and sends the configuration parameters to the network device, so that the network device can write the configuration parameters to achieve the purpose of configuration. Because the configuration parameters of the current network equipment are based on an XML format, and usually the controller needs to load the whole XML document to construct a hierarchical structure, the consumption is high, meanwhile, the controller reads configuration information of the network equipment or configuration information of the child nodes one by one, and the XML analysis time is too long under a big data scene, so that the transmission efficiency and the equipment performance are reduced.
In view of this, in the embodiment of the present invention, the controller uses the configuration parameters in the JSON format, and since the transmission of the configuration parameters in the JSON format does not need to be read one by one, the consumption of network transmission and process transmission can be reduced.
Specifically, the controller may initialize the JSON format, store the ID of the configuration operation or the configuration message, and the like, and the controller may further obtain the configuration parameters of the child nodes included in each parent node of the network device, where the configuration parameters obtained by the controller are in the XML format. The controller may check the integrity of the retrieved configuration parameters in XML format, i.e., determine whether the retrieved configuration parameters are complete for a parent node, and if the retrieved configuration parameters are not complete, the controller may retrieve the configuration parameters. If the acquired configuration parameters are complete, the controller can convert the format of the acquired configuration parameters to convert the configuration parameters into the JS format, and then establish a configuration data table according to the configuration parameters in the JSON format.
For ease of understanding, how the controller generates the configuration message is described below with respect to a specific example.
In an embodiment of the present invention, the controller may create a configuration data table, as shown in table 1. The configuration data table may include a table name, table index identification, child node type, configuration data, output format, and the like.
TABLE 1
Figure BDA0001814140940000081
Figure BDA0001814140940000091
In table 1, "Xml data child node prototype" is used to indicate a storage path of configuration parameters of a child node, "Xml data" is used to indicate configuration data of the child node, and "child node format" is used to indicate a child node type, access authority, output format, and the like.
The controller utilizes the created configuration data table to realize the configuration parameter aggregation of the child nodes, and aggregates the data in the XML format into the data in the JSON format, so as to realize that different configuration data are sent through one configuration message. Each father node independently makes a configuration data table for storage, so that the consumption of network transmission and process transmission can be reduced.
First, the controller may initialize the configuration data table, such as initializing a table index, a child node type, a child node format, etc. included in the configuration data table. After the controller establishes connection with the network device, the controller may acquire child node information of the network device, such as a child node type, a child node format, configuration parameters of the child node, and the like, and the controller may update the configuration data table according to the acquired child node information. And the controller converts the acquired XML format configuration parameters into JSON format configuration parameters.
The controller first generates a message ID in an incremental manner, defaults to 1 as an ID initial value, and stores the generated session ID as a mapping value of a message-ID field in a key value pair of a json character string. The controller obtains the operation type in xml, such as create (create), add (merge), replace (replace), delete (delete), etc., for example: and (a) the operation is equal to ' create ' 1 ', and the parameter value of the xc operation attribute is taken out to be stored in the key value pair of the json character string as the mapping value of the operation field. The controller extracts the node child node name with the parameter value in the xml, for example, the < key > value </key >, and stores the node child node name and the parameter value in the form of < key, value >, as shown in table 2.
TABLE 2
Figure BDA0001814140940000092
Figure BDA0001814140940000101
Figure BDA0001814140940000111
In table 2, Xml data child node prototype: a { i }. bn is used to indicate that n child nodes are aggregated to the ith child node. XML data: < b2> value2</b2> is used to represent the configuration parameters for converting the configuration parameters of the 2 nd child node into JSON format. Child node format: an output format such as one illustrated in table 2 is specified.
In the embodiment of the present invention, there may be N child nodes under one parent node, and one parent node may also be a child node of another parent node. In this way, the controller can aggregate configuration parameters of a large number of sub-nodes in a complex and redundant huge xml data format in a form of < key, value >, the configuration data of the { } part in table 2 is regarded as a value, and "a" is regarded as a key value, so that the data structure is simplified, and one configuration message can realize parameters of the configuration parameters of a plurality of sub-nodes, thereby improving the efficiency of network configuration.
By aggregating the configuration parameters of multiple sub-nodes as in table 2, the time consumed for reading 9 network sub-nodes into 1 network sub-node is 1.1 times that of a single network sub-node, i.e. the configuration performance is improved by about 8.1 times. The performance of N network sub-nodes is improved to N/1.1, the effect is more obvious when N is larger, and the upper limit of N depends on the transmittable content length of the configuration data table.
Taking the example of configuring bgp, if the controller is ready to send the following three cli commands to the network device:
the first one is: i route bgp 1
A second bar: neighbor 2.2.2.2remote-as 2
And a third: neighbor pg1remote-as 100
The above first and second cli commands encapsulate data information in the conventional xml format as follows, and the above xml to json fields are stored in the configuration data table in the manner of < key, value >, as shown in table 3.
TABLE 3
Figure BDA0001814140940000121
Figure BDA0001814140940000131
The controller extracts the ruijieBgpJsonContent field information from the information of the configuration data table after conversion. When the traditional xml is used for transmitting configuration information, the names of the child nodes must exist in pairs in the form of < nodeb name > </nodeb name >, and often in order to transmit a parameter value, the outer layer needs to pack multiple layers of parent nodes, resulting in a large amount of redundancy of data, and when a large amount of configuration parameters need to be sent to network equipment, bandwidth congestion is easily caused. In the embodiment of the invention, the global, neighbor and peer-group in the bgp closure are aggregated into the parameter value of the bgp, and the parameter value is stored in the data in a form of < key, value >, even if a large number of configuration parameters need to be sent to the network equipment, the number of sent configuration messages is small, and thus the efficiency of network configuration is improved.
The controller is connected with network devices, The configuration of each network device is different, for each network device, The OC sends a configuration message in a standard NETCONF controller, and reads Information Management Base (MIB) Information of The On Router (TOR) for about 8 minutes through XML in an Internet Data Center (Internet Data Center, IDC), which is low in efficiency. According to the embodiment of the invention, NETCONF is packaged in a Json data format, the information reading performance of the equipment is improved to microsecond level, and the problem of low efficiency of configuration and management of network equipment is solved.
The controller sends the generated configuration message to the network equipment, and if the network equipment receives the configuration message, the controller feeds back a response message to inform the controller that the configuration message is successfully received. The controller may start a timer after determining that the configuration message is successfully sent, and refresh the timer period if a new configuration message needs to be sent in the timer period, so as to ensure that the configuration parameters of the network device are the most recent configuration. In a possible embodiment, the timer may have a longest period, and if the controller does not continue to refresh after the longest period is exceeded, the configuration saving function is enabled to save the configuration parameters after the timer expires.
In summary, in the embodiment of the present invention, the controller aggregates a plurality of child nodes that can be supported by the network device, generates a configuration message for each parent node corresponding to the aggregated plurality of child nodes, and sends the configuration message to the network device. Because one generated configuration message corresponds to one father node and one father node corresponds to a plurality of child nodes, the controller can configure at least two child nodes of the network equipment by sending one configuration message, so that all the child nodes of the network equipment are configured, and less configuration messages are sent, thereby improving the efficiency of network configuration.
And each new aggregation father node independently makes a configuration data table for storage, so that the network equipment can quickly acquire configuration parameters and even acquire the effect of microsecond-level reading. Meanwhile, according to the embodiment of the invention, through Json aggregation, the establishment, deletion, updating and acquisition of the configuration data by NETCONF are completed within microsecond level, so that the consumption of network transmission and process transmission is reduced.
The following describes the equipment provided by the embodiment of the invention with the attached drawings of the specification
Referring to fig. 3, based on the same inventive concept of the embodiment shown in fig. 2, an embodiment of the present invention provides a configuration apparatus for a network device, which is applied in a controller, and is configured to configure the network device, for example, an upstream device such as a switch or a router may be configured. The configuration apparatus includes an aggregation unit 301, a generation unit 302, and a transmission unit 303. Wherein: the aggregation unit 301 is configured to aggregate at least one child node according to each parent node corresponding to at least one child node supported by the network device, where configuration parameters corresponding to each parent node are used to configure a functional component corresponding to the network device. The generating unit 302 is configured to generate configuration messages corresponding to the respective parent nodes. The sending unit 303 is configured to send the configuration message corresponding to each parent node to the network device, so that the network device configures the corresponding functional component according to the configuration information corresponding to each parent node.
Optionally, the aggregation unit 301 is specifically configured to:
receiving support capability information from the network equipment, wherein the support capability information is used for indicating at least one sub-node supported by the network equipment;
determining each father node corresponding to at least one child node;
and aggregating the child nodes corresponding to the same father node in at least one child node.
Optionally, the generating unit 302 is specifically configured to:
respectively establishing a configuration data table corresponding to each father node, wherein the configuration data table is used for indicating configuration parameters of all child nodes included in the corresponding father node;
and respectively generating configuration messages corresponding to the parent nodes based on the established configuration data table, wherein each configuration message carries configuration parameters of the child nodes included in the corresponding parent node.
Optionally, the generating unit 302 is specifically configured to:
acquiring configuration parameters of all child nodes included in each father node;
carrying out format conversion on the acquired configuration parameters to obtain converted configuration parameters, wherein the format of the acquired configuration parameters is an XML format, and the format of the converted configuration parameters is a JSON format;
and establishing a configuration data table according to the converted configuration parameters.
The configuration apparatus of the network device may be configured to execute the configuration method of the network device provided in the embodiment of the present invention, and therefore, for functions and the like that can be realized by each functional module of the configuration apparatus of the network device, reference may be made to the description of the embodiment of the configuration method of the network device provided in the present invention, which is not described in detail herein.
Referring to fig. 4, an embodiment of the present invention provides a controller for configuring a network device, where the controller includes: at least one processor 401, where the processor 401 is configured to execute the computer program stored in the memory to implement the steps of the method for configuring a network device as shown in fig. 2 according to the embodiment of the present invention.
Alternatively, the processor 401 may be a central processing unit, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits for controlling program execution.
Optionally, the controller further includes a Memory 402 connected to the at least one processor, and the Memory 402 may include a Read Only Memory (ROM), a Random Access Memory (RAM), and a disk Memory. The memory 402 is used for storing data required by the processor 401 during operation, that is, storing instructions executable by the at least one processor 401, and the at least one processor 401 executes the method for configuring a network device according to the embodiment of the present invention by executing the instructions stored in the memory 402. The number of the memories 402 is one or more. The memory 402 is also shown in fig. 4, but it should be understood that the memory 402 is not an optional functional block, and is shown in fig. 4 by a dotted line.
The entity devices corresponding to the aggregation unit 301, the generation unit 302, and the sending unit 303 may be the processor 401 described above. The controller may be configured to execute the method provided by the embodiment shown in the configuration method of the network device provided by the embodiment of the present invention. Therefore, regarding the functions that can be realized by each functional module in the device, reference may be made to the corresponding description in the embodiment shown in the network configuration method provided by the present invention, and details are not repeated.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer instructions, and when the computer instructions are run on a computer, the computer is caused to execute the configuration method of the network device shown in fig. 2.
It will be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a Universal Serial Bus flash disk (usb flash disk), a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A configuration method of a network device, applied in a controller, is characterized by comprising:
aggregating at least one child node according to each parent node corresponding to at least one child node supported by the network device, and aggregating child nodes corresponding to the same parent node in a plurality of child nodes, wherein configuration parameters corresponding to each parent node are used for configuring functional components corresponding to the network device;
generating configuration messages corresponding to the parent nodes; the configuration message carries configuration parameters corresponding to all child nodes included in the father node;
and sending the configuration message corresponding to each father node to the network equipment so that the network equipment configures the corresponding functional component according to the configuration information corresponding to each father node.
2. The method of claim 1, wherein aggregating at least one child node supported by the network device according to respective parent nodes corresponding to the at least one child node comprises:
receiving support capability information from the network equipment, wherein the support capability information is used for indicating at least one sub-node supported by the network equipment;
determining each father node corresponding to the at least one child node;
and aggregating the child nodes corresponding to the same father node in the at least one child node.
3. The method of any of claims 1-2, wherein generating the configuration message corresponding to the respective parent node comprises:
respectively establishing a configuration data table corresponding to each father node, wherein the configuration data table is used for indicating configuration parameters of all child nodes included in the corresponding father node;
and respectively generating configuration messages corresponding to the parent nodes based on the established configuration data table, wherein each configuration message carries configuration parameters of the child nodes included in the corresponding parent node.
4. The method of claim 3, wherein separately building a configuration data table corresponding to each parent node comprises:
acquiring configuration parameters of all child nodes included in each father node;
carrying out format conversion on the acquired configuration parameters to obtain converted configuration parameters, wherein the format of the acquired configuration parameters is an XML format, and the format of the converted configuration parameters is a JSON format;
and establishing the configuration data table according to the converted configuration parameters.
5. A configuration apparatus of a network device, applied in a controller, comprising:
the aggregation unit is used for aggregating at least one child node according to each father node corresponding to at least one child node supported by the network equipment, and aggregating the child nodes corresponding to the same father node in a plurality of child nodes, wherein the configuration parameters corresponding to each father node are used for configuring the functional components corresponding to the network equipment;
a generating unit, configured to generate configuration messages corresponding to the parent nodes; the configuration message carries configuration parameters corresponding to all child nodes included in the father node;
and the sending unit is used for sending the configuration message corresponding to each parent node to the network equipment so that the network equipment configures the corresponding functional component according to the configuration information corresponding to each parent node.
6. The apparatus of claim 5, wherein the polymerization unit is specifically configured to:
receiving support capability information from the network equipment, wherein the support capability information is used for indicating at least one sub-node supported by the network equipment;
determining each father node corresponding to the at least one child node;
and aggregating the child nodes corresponding to the same father node in the at least one child node.
7. The apparatus according to any one of claims 5 to 6, wherein the generating unit is specifically configured to:
respectively establishing a configuration data table corresponding to each father node, wherein the configuration data table is used for indicating configuration parameters of all child nodes included in the corresponding father node;
and respectively generating configuration messages corresponding to the parent nodes based on the established configuration data table, wherein each configuration message carries configuration parameters of the child nodes included in the corresponding parent node.
8. The apparatus as claimed in claim 7, wherein said generating unit is specifically configured to:
acquiring configuration parameters of all child nodes included in each father node;
carrying out format conversion on the acquired configuration parameters to obtain converted configuration parameters, wherein the format of the acquired configuration parameters is an XML format, and the format of the converted configuration parameters is a JSON format;
and establishing the configuration data table according to the converted configuration parameters.
9. A controller for configuring a network device, comprising:
at least one processor, and
a memory coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, the at least one processor implementing the method of any one of claims 1-4 by executing the instructions stored by the memory.
10. A computer storage medium on which a computer program is stored, which computer program, when being executed by a processor, carries out the method according to any one of claims 1-4.
CN201811133516.8A 2018-09-27 2018-09-27 Configuration method and device of network equipment, controller and computer storage medium Active CN109194519B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811133516.8A CN109194519B (en) 2018-09-27 2018-09-27 Configuration method and device of network equipment, controller and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811133516.8A CN109194519B (en) 2018-09-27 2018-09-27 Configuration method and device of network equipment, controller and computer storage medium

Publications (2)

Publication Number Publication Date
CN109194519A CN109194519A (en) 2019-01-11
CN109194519B true CN109194519B (en) 2021-11-16

Family

ID=64906460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811133516.8A Active CN109194519B (en) 2018-09-27 2018-09-27 Configuration method and device of network equipment, controller and computer storage medium

Country Status (1)

Country Link
CN (1) CN109194519B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112367187B (en) * 2020-10-16 2023-07-14 深圳市信锐网科技术有限公司 Control method and device of frame type equipment, frame type equipment and storage medium
CN114844756A (en) * 2022-05-09 2022-08-02 杭州云合智网技术有限公司 Method for managing network equipment based on NETCONF proxy server

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9722856B2 (en) * 2014-09-18 2017-08-01 Tech Mahindra Ltd. System and method to orchestrate and control sequence of recovery actions for resumption of business services by dynamically changing recovery action sequence based on feedback received from agent/open flow based devices catering to both traditional and software defined networks
CN107222321A (en) * 2016-03-21 2017-09-29 华为技术有限公司 A kind of configuration message sending method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102148698A (en) * 2010-12-29 2011-08-10 华为技术有限公司 Network configuration protocol-based network configuration management method, equipment and system
CN105591819B (en) * 2015-12-24 2019-05-07 新华三技术有限公司 The method and device of Configuration network equipment
CN107302443B (en) * 2016-04-15 2020-10-16 华为技术有限公司 Device configuration method and device based on network configuration protocol
CN106301956B (en) * 2016-09-27 2019-05-07 北京交通大学 A NETCONF-based network device configuration management method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9722856B2 (en) * 2014-09-18 2017-08-01 Tech Mahindra Ltd. System and method to orchestrate and control sequence of recovery actions for resumption of business services by dynamically changing recovery action sequence based on feedback received from agent/open flow based devices catering to both traditional and software defined networks
CN107222321A (en) * 2016-03-21 2017-09-29 华为技术有限公司 A kind of configuration message sending method and device

Also Published As

Publication number Publication date
CN109194519A (en) 2019-01-11

Similar Documents

Publication Publication Date Title
CN107302443B (en) Device configuration method and device based on network configuration protocol
EP3471445B1 (en) Lightweight iot information model
US11799735B2 (en) Information processing method in M2M and apparatus
US10097397B2 (en) System and method for managing CWSN with GUI
US10250441B2 (en) Network configuration access
CN108989066A (en) device management method and device
CN102447585A (en) Method and device for converting network configuration protocol response message into command line
CN109194519B (en) Configuration method and device of network equipment, controller and computer storage medium
CN112838940A (en) A network controller framework and data processing method
JP2019506785A (en) Resource acquisition method and apparatus
CN106899605B (en) Communication method and device based on STOMP protocol
KR20160103110A (en) Network element data access method and apparatus, and network management system
WO2016110070A1 (en) Data acquiring method and device, and storage medium
WO2023005543A1 (en) Query method and apparatus, and device
CN116471177A (en) Dynamic configuration management system, method and medium for time sensitive network
US11949548B2 (en) Method for service status analysis, server, and storage medium
JP6893568B2 (en) Data interaction methods, equipment and devices
CN110134467B (en) Parameter configuration processing method and device, storage medium and processor
US12238523B2 (en) Bundled audit for stale session bindings
CN115589351B (en) Query method, device and equipment
US11924309B2 (en) Managing resource state notifications
US20240284177A1 (en) Bundled audit for stale session bindings
CN112054916B (en) Method and system for automatic event conversion
US11456889B2 (en) Information notification method, apparatus, and system
JPH09107356A (en) Controller with agent device, management system, and network control / management system

Legal Events

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