CN111404755B - Network configuration method, device and storage medium - Google Patents

Network configuration method, device and storage medium Download PDF

Info

Publication number
CN111404755B
CN111404755B CN202010213493.2A CN202010213493A CN111404755B CN 111404755 B CN111404755 B CN 111404755B CN 202010213493 A CN202010213493 A CN 202010213493A CN 111404755 B CN111404755 B CN 111404755B
Authority
CN
China
Prior art keywords
configuration
module
reverse
issuing
sequence
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
CN202010213493.2A
Other languages
Chinese (zh)
Other versions
CN111404755A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202010213493.2A priority Critical patent/CN111404755B/en
Publication of CN111404755A publication Critical patent/CN111404755A/en
Application granted granted Critical
Publication of CN111404755B publication Critical patent/CN111404755B/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/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality

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 network configuration method, a device and a computer readable storage medium, wherein the method comprises the following steps: receiving a submission instruction of network configuration of an object to be configured, wherein the network configuration comprises a dependency parameter capable of showing a dependency relationship among N functional modules of the object to be configured, and the value range of N is a positive integer; respectively determining the configuration types of the configuration operation of the network configuration; and responding to the submission instruction, and issuing the configuration operation of the network configuration in batches according to the dependence parameters and the configuration type. The network element in the embodiment of the invention can automatically issue the network configuration in batches depending on the parameters, so that a network manager can issue all the configurations to the network element at one time without considering the dependency relationship among modules, thereby avoiding the problems of large workload caused by batching the configurations and configuration rollback caused by batching configuration errors and configuration failures, and effectively improving the efficiency of network configuration.

Description

Network configuration method, device and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a network configuration method and apparatus, and a computer-readable storage medium.
Background
NETCONF (Network Configuration Protocol) defines 3 databases for a NETCONF server: a startup (startup) configuration database, a candidate (candidate) configuration database, and a running (running) configuration database. The running configuration database refers to the currently active complete configuration of the target network equipment; the candidate configuration database is a target network setting database which can be configured on the premise of not influencing the current configuration of the target network equipment, and can be submitted and configured to take effect by submitting (commit) operation after the configuration is finished; the starting configuration database is used for storing initial configuration parameters of the target network equipment.
When the network configuration is submitted, the network configuration needs to be firstly sent to the candidate database, then submitted to the running database through a submit operation (commit), and then submitted to the running database. When the network configuration is submitted to the running database, the service module needs to be informed of the change of the network configuration. However, the dependency relationship between the service module branch modules easily causes the network configuration delivery failure. For example: a certain network interface needs to bind a flow policy, and the flow policy must be created again, however, the creation of the flow policy module belongs to the policy management module, and the binding of the flow policy and the interface belongs to the interface management module. Therefore, when the network configuration is issued, the network configuration must be issued to the policy management module first and then to the interface management module, and if the network configuration is issued, the order of issuing the network configuration is changed, which will result in a failure of the network configuration.
At present, the problem of network configuration failure caused by network configuration issuing is solved, the network configuration is issued in batches according to the dependency relationship among all branch modules of a service module, but because the configuration quantity of the network configuration is large, a great deal of effort is needed for batching all the network configurations, the operation difficulty is high, errors are easy to occur, and the network configuration of the service module needs to be batched again when the dependency relationship among all the modules changes.
Disclosure of Invention
Embodiments of the present invention provide a network configuration method, a device, and a computer-readable storage medium to solve the above technical problems in the existing network configuration process.
According to a first aspect of the present invention, there is provided a network configuration method, the method comprising: receiving a submission instruction of network configuration of an object to be configured, wherein the network configuration comprises a dependency parameter capable of showing a dependency relationship among N functional modules of the object to be configured, and the value range of N is a positive integer; respectively determining the configuration types of the configuration operation of the network configuration; and responding to the submission instruction, and issuing the configuration operation of the network configuration in batches according to the dependence parameters and the configuration type.
According to an embodiment of the present invention, the determining the configuration types of the network configurations respectively includes: and respectively determining the configuration type of the configuration operation of the network configuration as an update configuration or a delete configuration according to a netconf protocol.
According to an embodiment of the present invention, issuing a plurality of configuration operations of the network configuration in batches according to the dependency parameters and the configuration types includes: determining a sequential dependency relationship and a reverse order dependency relationship among the functional modules in the N functional modules according to the dependency parameters; and issuing an updating configuration operation with the configuration type as an updating configuration according to the sequential dependency relationship, and issuing a deleting configuration operation with the configuration type as a deleting configuration according to the reverse sequential dependency relationship.
According to an embodiment of the present invention, determining the order dependency relationship and the reverse order dependency relationship between the functional modules in the N functional modules according to the dependency parameters includes: determining that a functional module which does not depend on other functional modules is a first sequence module, a functional module which depends on the first sequence module is a second sequence module, a functional module which depends on the second sequence module is a third sequence module, and so on, and a functional module which depends on an M-1 order module is an Mth sequence module, wherein M is a positive integer less than or equal to N, and the Mth sequence module is not depended on by other functional modules; determining that a module which is not depended on by other functional modules is a first reverse-order module, a module which is depended on by the first reverse-order module is a second reverse-order module, a module which is depended on by the second reverse-order module is a third reverse-order module, and so on, wherein a module which is depended on by an M-1 reverse-order module is an Mth reverse-order module, M is a positive integer which is less than or equal to N, and the Mth reverse-order module does not depend on other functional modules.
According to an embodiment of the present invention, the issuing of the update configuration operation with the configuration type as the update configuration according to the sequential dependency relationship includes: and issuing the updating configuration operation in sequence according to the following sequence: issuing an update configuration operation aiming at the first sequence module; after the update configuration operation processing of all the first sequence modules which the second sequence module depends on is completed, issuing the update configuration operation aiming at the corresponding second sequence module; and issuing the updating configuration operation in sequence until the updating configuration operation aiming at the Mth sequence module is issued.
According to an embodiment of the present invention, the issuing a configuration type as a delete configuration according to the inverse order dependency relationship includes: and the configuration deleting operation is sequentially issued according to the following sequence: issuing a deletion configuration operation aiming at the first reverse order module; after the deleting configuration operations of all the first reverse order modules depending on the second reverse order module are processed, the deleting configuration operations aiming at the corresponding second reverse order module are issued; and sequentially issuing the configuration deleting operation until the configuration deleting operation aiming at the Mth reverse-order module is issued.
According to an embodiment of the present invention, issuing configuration operations of the network configuration in batches according to the dependency parameters and the configuration types includes: and when the dependency parameters show that the functional module has no dependency relationship with other functional modules of the object to be configured, preferentially issuing all configuration operations aiming at the functional module.
According to an embodiment of the present invention, the network configuration is described by a YANG model constructed by a YANG language, and the dependency parameter is a keyword in the YANG model.
According to a second aspect of the present invention, there is also provided a network configuration apparatus, the apparatus comprising: the system comprises a receiving module and a processing module, wherein the receiving module is used for receiving a submission instruction of network configuration of an object to be configured, the network configuration comprises a dependency parameter which can show a dependency relationship among N functional modules of the object to be configured, and the value range of N is a positive integer; a determining module, configured to determine configuration types of configuration operations of the network configuration respectively; and the issuing module is used for responding to the submitting instruction and issuing the configuration operation of the network configuration in batches according to the dependent parameter and the configuration type.
According to an embodiment of the present invention, the determining module respectively determines the configuration types of the network configurations in the following manners: and respectively determining the configuration types of a plurality of configuration operations of the network configuration as update configuration or delete configuration according to a netconf protocol.
According to an embodiment of the present invention, the issuing module includes: the relation determining submodule is used for determining the sequential dependency relation and the reverse order dependency relation among the functional modules in the N functional modules according to the dependency parameters; and issuing an updating configuration operation with the configuration type as an updating configuration according to the sequential dependency relationship, and issuing a deleting configuration operation with the configuration type as a deleting configuration according to the reverse sequential dependency relationship.
According to an embodiment of the present invention, the relationship determining sub-module determines, according to the dependency parameter, a sequential dependency relationship and a reverse order dependency relationship between the functional modules in the N functional modules as follows: determining that a functional module which does not depend on other functional modules is a first sequence module, a functional module which depends on the first sequence module is a second sequence module, a functional module which depends on the second sequence module is a third sequence module, and so on, and a functional module which depends on an M-1 order module is an Mth sequence module, wherein M is a positive integer less than or equal to N, and the Mth sequence module is not depended on by other functional modules; determining that a module which is not depended on by other functional modules is a first reverse-order module, a module which is depended on by the first reverse-order module is a second reverse-order module, a module which is depended on by the second reverse-order module is a third reverse-order module, and so on, wherein a module which is depended on by an M-1 reverse-order module is an Mth reverse-order module, M is a positive integer which is less than or equal to N, and the Mth reverse-order module does not depend on other functional modules.
According to an embodiment of the present invention, the issuing module includes: the first issuing submodule is used for issuing the updating configuration operation in sequence according to the following sequence: issuing an update configuration operation aiming at the first sequence module; after the update configuration operation processing of all the first sequence modules which the second sequence module depends on is completed, issuing the update configuration operation aiming at the corresponding second sequence module; and issuing the updating configuration operation in sequence until the updating configuration operation aiming at the Mth sequence module is issued.
According to an embodiment of the present invention, the issuing module includes: the second issuing submodule is used for issuing the deleting configuration operation in sequence according to the following sequence: issuing a deletion configuration operation aiming at the first reverse order module; after the deleting configuration operations of all the first reverse order modules depending on the second reverse order module are processed, the deleting configuration operations aiming at the corresponding second reverse order module are issued; and sequentially issuing the configuration deleting operation until the configuration deleting operation aiming at the Mth reverse-order module is issued.
According to an embodiment of the present invention, the issuing module includes: and the independent issuing module is used for preferentially issuing all the configurations aiming at the functional module when the dependency parameter shows that the functional module has no dependency relationship with other functional modules of the object to be configured.
According to a third aspect of the present invention, there is also provided a computer-readable storage medium comprising a set of computer-executable instructions which, when executed, are operable to perform the above-described network configuration method.
According to the network configuration method, the network configuration device and the computer-readable storage medium, after the network element receives the submission instruction of the network configuration, the network configuration can be automatically batched and issued according to the dependency parameters which represent the dependencies among the modules in the network configuration, so that a network manager can issue all the configurations to the network element at one time without considering the dependencies among the modules, the large workload caused by batching the configurations is avoided, the problems of configuration rollback caused by configuration errors and configuration failures in a batching process are avoided, and the efficiency and the accuracy of the network configuration are effectively improved. In addition, it is important that only the dependent parameters in the network configuration need to be modified when the configuration dependency relationship between the modules changes, which facilitates the expansion.
It is to be understood that the teachings of the present invention need not achieve all of the above-described benefits, but rather that specific embodiments may achieve specific technical results, and that other embodiments of the present invention may achieve benefits not mentioned above.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
in the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Fig. 1 is a schematic flow chart illustrating an implementation of a network configuration method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating dependency relationships among functional modules of an object to be configured according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a configuration structure of a network configuration apparatus according to an embodiment of the present invention.
Detailed Description
The principles and spirit of the present invention will be described with reference to a number of exemplary embodiments. It is understood that these embodiments are given only to enable those skilled in the art to better understand and to implement the present invention, and do not limit the scope of the present invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The technical solution of the present invention is further elaborated below with reference to the drawings and the specific embodiments.
Fig. 1 is a schematic flow chart illustrating an implementation of a network configuration method according to an embodiment of the present invention.
Referring to fig. 1, a network configuration method according to an embodiment of the present invention at least includes the following operation flows: operation 101, receiving a submission instruction of a network configuration of an object to be configured, where the network configuration includes a dependency parameter capable of showing a dependency relationship among N functional modules of the object to be configured, and a value range of N is a positive integer; operation 102, respectively determining configuration types of configuration operations of the network configuration; operation 103, in response to the submission instruction, issuing the configuration operation of the network configuration in batches according to the dependent parameters and the configuration type.
In operation 101, a commit instruction of a network configuration of an object to be configured is received, where the network configuration includes a dependency parameter capable of showing a dependency relationship between N functional modules of the object to be configured, and a value range of N is a positive integer.
Specifically, when the network manager issues the network configuration to the network element, a dependency parameter capable of showing a dependency relationship between a plurality of functional modules of the network element is added to the network configuration. The network element automatically determines the dependency relationship among the functional modules according to the dependency parameters, thereby automatically determining the issuing sequence of the network configuration according to the dependency relationship among the functional modules and issuing the network configuration in batches.
For example, the submitting instruction received by the network element is a commit operation instruction sent by the network manager, and at this time, the network manager submits the network configuration to the running database of the network element.
In one embodiment of the present invention, the network configuration is described by using a YANG model constructed by YANG language, and the dependent parameter is a keyword in the YANG model.
For example, the following steps are carried out: when there is no dependency between the two modules "module ietf-system" and "module ietf-netconf-acm", the parts of the source code describing the network configuration of the two modules by using the YANG model constructed by the YANG language are as follows:
Figure BDA0002423612980000061
Figure BDA0002423612980000071
when the dependency relationship between the two modules is changed to 'module ietf-system' dependency 'module ietf-netconf-acm', the corresponding source code is changed to:
Figure BDA0002423612980000072
Figure BDA0002423612980000081
wherein, import keyword "reference" in the YANG model is a dependent parameter representing the dependency relationship between the functional modules. The value of the reference parameter may be set to true or false, and default to false. In this way, when the dependency relationship between the functional modules targeted by the network configuration changes, only the parameter value of the import keyword "reference" in the YANG model needs to be modified.
At operation 102, configuration types of configuration operations of the network configuration are respectively determined.
In an embodiment of the present invention, according to the netconf protocol, it is respectively determined that the configuration types of the plurality of configuration operations of the network configuration are update configuration or delete configuration.
Specifically, some of the configuration operations of the network configuration require deletion of part or all of the original network configuration, and some require addition or modification of part or all of the original network configuration. For different configuration operations, the influence on other functional modules with dependency relationships is different, and therefore, the network configuration operations need to be classified. In the embodiment of the invention, the network configuration needing to be added or modified is defined as the operation of updating the configuration. It should be noted that the configuration operation of the network configuration belongs to which type of configuration operation of deleting, adding, and modifying, and may be determined according to the netconf protocol, which is not described herein again.
In operation 103, in response to the commit instruction, the configuration operation of the network configuration is issued in batches according to the dependent parameters and the configuration type.
In particular, the dependency relationship between the functional modules can be automatically determined according to the dependency parameters, such as: no dependency, dependency on other modules, dependency by other functional modules, etc. Configuration types in connection with network configuration, for example: configuration updating and configuration deleting can determine which function modules to issue the network configuration first, and cannot affect the network configurations of other function modules. For example: for the independent module without dependency relationship with other functional modules, no matter when the network configuration for the independent module is issued at any time, the network configuration of other functional modules is not affected, the condition of network configuration failure is not caused, and the problem of network configuration rollback is not caused. The specific configuration batch mode will be described in detail with reference to fig. 2, and will not be described herein.
In an embodiment of the present invention, when the dependency parameter indicates that there is no dependency relationship between the function module and another function module of the object to be configured, all configuration operations for the independent function module are preferentially issued.
Specifically, a function module having no dependency relationship with other function modules of an object to be configured is issued a network configuration operation for the function module, and the execution of the corresponding network configuration operation can be smoothly executed without being influenced by the network configuration for the other function modules and without influencing the network configuration execution process of the other function modules. Therefore, all configuration operations for the independent functional modules can be preferentially issued. Of course, the configuration operations for the independent functional modules may also be adjusted as needed, and the present invention is not limited thereto.
In one embodiment of the present invention, operation 103 includes: and determining a sequential dependency relationship and an inverse order dependency relationship among the functional modules in the N functional modules according to the dependency parameters, issuing an updating configuration operation with a configuration type as an updating configuration according to the sequential dependency relationship, and issuing a deleting configuration operation with a configuration type as a deleting configuration according to the inverse order dependency relationship.
Specifically, in an embodiment of the present invention, according to the dependency parameter, the order dependency relationship and the reverse order dependency relationship between the functional modules in the N functional modules are determined as follows: determining that a functional module not dependent on other functional modules is a first sequence module, a functional module dependent on the first sequence module is a second sequence module, a functional module dependent on the second sequence module is a third sequence module, and so on, wherein a functional module dependent on an M-1 sequence module is an Mth sequence module, M is a positive integer less than or equal to N, and the Mth sequence module is not dependent on other functional modules; and determining that the module which is not depended on by other functional modules is a first reverse-order module, the module which is depended on by the first reverse-order module is a second reverse-order module, the module which is depended on by the second reverse-order module is a third reverse-order module, and so on, wherein the module which is depended on by the M-1 reverse-order module is an Mth reverse-order module, M is a positive integer less than or equal to N, and the Mth reverse-order module does not depend on other functional modules.
In an embodiment of the present invention, after determining a configuration operation type of a network configuration, a network configuration method issues an update configuration operation in sequence according to the following sequence: issuing an updating configuration operation aiming at the first sequence module; after the update configuration operation processing of all the first sequence modules which the second sequence module depends on is completed, the update configuration operation aiming at the corresponding second sequence module is issued; and issuing the updating configuration operation in sequence until the updating configuration operation aiming at the Mth sequence module is issued.
In another embodiment of the present invention, after determining the configuration operation type of the network configuration, the method of network configuration issues the configuration deletion operation in the following order: issuing a deletion configuration operation aiming at the first reverse order module; after the deleting configuration operations of all the first reverse order modules depending on the second reverse order module are processed, the deleting configuration operations aiming at the corresponding second reverse order module are issued; and sequentially issuing the configuration deleting operation until the configuration deleting operation aiming at the Mth reverse-order module is issued.
Fig. 2 is a schematic diagram illustrating a dependency relationship between functional modules of an object to be configured in the embodiment of the present invention, and a process of issuing a network configuration in batches is briefly described with reference to fig. 2. It should be noted that, although a process of batch delivery of network configuration is provided in a preferred embodiment of the present invention, in an actual implementation process, network configuration operation may be performed as needed.
Referring to FIG. 2, the dependencies between function modules A, B, C, D, E, F, G, H, I, J are as follows: module I, J is two separate modules, function module a depends on function module B, C, function module H depends on function module C, function module B depends on function module D, function module C depends on function module E, and function module F depends on function module G.
The network configuration of each functional module in the network configuration corresponds to a YANG model constructed by YANG language, and reference parameters are added in import keywords in the YANG model and used for representing the dependency relationship among the functional modules. The network configuration to be issued includes the network configurations for all the modules, and the configuration operation of the network configuration includes a configuration deleting operation and a configuration updating operation.
The network management system issues all network configurations to the network element, and when the network element receives a commit operation instruction from the network management system, the network element can issue configuration operations of the network configurations in batches according to the following sequence:
first batch: issuing all configuration operations for function block I, J; issuing addition operations and modification configuration operations for function block D, E, G; a delete configuration operation for function block A, F, H is issued.
And (2) second batch: issuing an add configuration operation for the function module B, C, G; issuing a delete configuration operation for functional module B, C, F; and merging all configuration operations for the functional module B, and merging all configuration operations for the functional module C.
And (3) third batch: issuing an add configuration operation for the function module A, H; and issues a delete configuration operation for function block D, E.
If any error does not occur in the whole process, all configuration submission failures are returned, and the configuration submission is continued after modification
Therefore, the invention sets the dependency parameters capable of showing the dependency relationship among the functional modules in the network configuration, and the network element can automatically determine the dependency relationship among the functional modules according to the dependency relationship and automatically batch and issue the network configuration. The network element can uniformly process the network configuration, and can uniformly back off when the network configuration fails, thereby avoiding the configuration back-off problem caused by the network management issuing the network configuration failure for many times. The network management can send the network configuration completely at one time without determining the sending sequence of the network configuration according to the dependency relationship among the functional modules, thereby effectively reducing the batch work of the network configuration. And when the configuration dependency relationship among the functional modules changes, only one statement of the YANG model is modified, so that the network configuration efficiency is effectively improved.
Similarly, based on the foregoing network configuration method, an embodiment of the present invention further provides a computer-readable storage medium, where a program is stored, and when the program is executed by a processor, the processor is caused to perform at least the following operation steps: operation 101, receiving a submission instruction of a network configuration of an object to be configured, where the network configuration includes a dependency parameter capable of showing a dependency relationship among N functional modules of the object to be configured, and a value range of N is a positive integer; operation 102, respectively determining configuration types of configuration operations of the network configuration; operation 103, in response to the submission instruction, issuing the configuration operation of the network configuration in batches according to the dependent parameters and the configuration type.
Further, based on the above network configuration method, an embodiment of the present invention further provides a network configuration apparatus, as shown in fig. 3, where the apparatus 30 includes: a receiving module 301, configured to receive a submission instruction of a network configuration of an object to be configured, where the network configuration includes a dependency parameter that can show a dependency relationship between N functional modules of the object to be configured, and a value range of N is a positive integer; a determining module 302, configured to determine configuration types of configuration operations of the network configuration respectively; and the issuing module 303 is configured to respond to the submission instruction, and issue the configuration operation of the network configuration in batches according to the dependent parameter and the configuration type.
According to an embodiment of the present invention, the determining module 302 respectively determines the configuration types of the network configurations by: according to netconf protocol, the configuration types of a plurality of configuration operations of network configuration are respectively determined to be updating configuration or deleting configuration.
According to an embodiment of the present invention, the issuing module 303 includes: the relation determining submodule is used for determining the sequential dependency relation and the reverse order dependency relation among the functional modules in the N functional modules according to the dependency parameters; and issuing an updating configuration operation with the configuration type as an updating configuration according to the sequential dependency relationship, and issuing a deleting configuration operation with the configuration type as a deleting configuration according to the reverse sequential dependency relationship.
According to an embodiment of the present invention, the relationship determining submodule determines, according to the dependency parameter, a sequential dependency relationship and a reverse order dependency relationship between the functional modules in the N functional modules as follows: determining that a functional module which does not depend on other functional modules is a first sequence module, a functional module which depends on the first sequence module is a second sequence module, a functional module which depends on the second sequence module is a third sequence module, and so on, and a functional module which depends on an M-1 order module is an Mth sequence module, wherein M is a positive integer less than or equal to N, and the Mth sequence module is not depended on by other functional modules; determining that a module which is not depended on by other functional modules is a first reverse-order module, a module which is depended on by the first reverse-order module is a second reverse-order module, a module which is depended on by the second reverse-order module is a third reverse-order module, and so on, wherein a module which is depended on by an M-1 reverse-order module is an Mth reverse-order module, M is a positive integer which is less than or equal to N, and the Mth reverse-order module does not depend on other functional modules.
According to an embodiment of the present invention, the issuing module 303 includes: the first issuing submodule is used for issuing the updating configuration operation in sequence according to the following sequence: issuing an updating configuration operation aiming at the first sequence module; after the update configuration operation processing of all the first sequence modules which the second sequence module depends on is completed, the update configuration operation aiming at the corresponding second sequence module is issued; and issuing the updating configuration operation in sequence until the updating configuration operation aiming at the Mth sequence module is issued.
According to an embodiment of the present invention, the issuing module 303 includes: the second issuing submodule is used for issuing the deletion configuration operation in sequence according to the following sequence: issuing a deletion configuration operation aiming at the first reverse order module; after the deleting configuration operations of all the first reverse order modules depending on the second reverse order module are processed, the deleting configuration operations aiming at the corresponding second reverse order module are issued; and sequentially issuing the configuration deleting operation until the configuration deleting operation aiming at the Mth reverse-order module is issued.
According to an embodiment of the present invention, the issuing module 303 includes: and the independent issuing module is used for issuing all the configurations aiming at the functional module preferentially when the dependency parameter shows that the functional module has no dependency relationship with other functional modules of the object to be configured.
Here, it should be noted that: the above description of the embodiment of the network configuration apparatus is similar to the description of the method embodiment shown in fig. 1-2, and has similar beneficial effects to the method embodiment shown in fig. 1-2, and therefore, the description thereof is omitted. For technical details not disclosed in the embodiment of the network configuration apparatus of the present invention, please refer to the description of the method embodiment shown in fig. 1-2 of the present invention for understanding, and therefore, for brevity, will not be described again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of a unit is only one logical function division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
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; can be located in one place or 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, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (8)

1. A method of network configuration, the method comprising:
receiving a submission instruction of network configuration of an object to be configured, wherein the network configuration comprises a dependency parameter capable of showing a dependency relationship among N functional modules of the object to be configured, and the value range of N is a positive integer;
respectively determining the configuration types of the configuration operation of the network configuration;
responding to the submission instruction, and issuing configuration operation of the network configuration in batches according to the dependence parameters and the configuration types;
wherein, according to the dependent parameters and the configuration types, issuing the configuration operation of the network configuration in batches comprises:
determining a sequential dependency relationship and a reverse order dependency relationship among the functional modules in the N functional modules according to the dependency parameters;
issuing an updating configuration operation with a configuration type of updating configuration according to the sequential dependency relationship, and issuing a deleting configuration operation with a configuration type of deleting configuration according to the reverse sequential dependency relationship;
determining a sequential dependency relationship and a reverse order dependency relationship among the functional modules in the N functional modules according to the dependency parameters, including:
determining that a functional module which does not depend on other functional modules is a first sequence module, a functional module which depends on the first sequence module is a second sequence module, a functional module which depends on the second sequence module is a third sequence module, and so on, and a functional module which depends on an M-1 order module is an Mth sequence module, wherein M is a positive integer less than or equal to N, and the Mth sequence module is not depended on by other functional modules;
determining that a module which is not depended on by other functional modules is a first reverse-order module, a module which is depended on by the first reverse-order module is a second reverse-order module, a module which is depended on by the second reverse-order module is a third reverse-order module, and so on, wherein a module which is depended on by an M-1 reverse-order module is an Mth reverse-order module, M is a positive integer which is less than or equal to N, and the Mth reverse-order module does not depend on other functional modules.
2. The method of claim 1, wherein the separately determining the configuration type of the network configuration comprises:
and respectively determining the configuration type of the configuration operation of the network configuration as an update configuration or a delete configuration according to a netconf protocol.
3. The method according to claim 1, wherein said issuing an update configuration operation with a configuration type of update configuration according to the sequential dependency relationship comprises:
and issuing the updating configuration operation in sequence according to the following sequence:
issuing an update configuration operation aiming at the first sequence module;
after the update configuration operation processing of all the first sequence modules which the second sequence module depends on is completed, issuing the update configuration operation aiming at the corresponding second sequence module;
and issuing the updating configuration operation in sequence until the updating configuration operation aiming at the Mth sequence module is issued.
4. The method according to claim 1, wherein said issuing a delete configuration operation with a configuration type of delete configuration according to the reverse order dependency relationship comprises:
and the configuration deleting operation is sequentially issued according to the following sequence:
issuing a deletion configuration operation aiming at the first reverse order module;
after the deleting configuration operations of all the first reverse order modules depending on the second reverse order module are processed, the deleting configuration operations aiming at the corresponding second reverse order module are issued;
and sequentially issuing the configuration deleting operation until the configuration deleting operation aiming at the Mth reverse-order module is issued.
5. The method of claim 1, wherein issuing the configuration operation of the network configuration in batches according to the dependency parameters and the configuration type comprises:
and when the dependency parameters show that the functional module has no dependency relationship with other functional modules of the object to be configured, preferentially issuing all configuration operations aiming at the functional module.
6. The method of any of claims 1-5, wherein the network configuration is described using a YANG model constructed in a YANG language, and the dependent parameters are keywords in the YANG model.
7. A network configuration apparatus, the apparatus comprising:
the system comprises a receiving module and a processing module, wherein the receiving module is used for receiving a submission instruction of network configuration of an object to be configured, the network configuration comprises a dependency parameter which can show a dependency relationship among N functional modules of the object to be configured, and the value range of N is a positive integer;
a determining module, configured to determine configuration types of configuration operations of the network configuration respectively;
the issuing module is used for responding to the submitting instruction and issuing the configuration operation of the network configuration in batches according to the dependent parameter and the configuration type;
the issuing module issues the configuration operation of the network configuration in batches according to the dependent parameter and the configuration type, and the issuing module includes:
determining a sequential dependency relationship and a reverse order dependency relationship among the functional modules in the N functional modules according to the dependency parameters;
issuing an updating configuration operation with a configuration type of updating configuration according to the sequential dependency relationship, and issuing a deleting configuration operation with a configuration type of deleting configuration according to the reverse sequential dependency relationship;
determining a sequential dependency relationship and a reverse order dependency relationship among the functional modules in the N functional modules according to the dependency parameters, including:
determining that a functional module which does not depend on other functional modules is a first sequence module, a functional module which depends on the first sequence module is a second sequence module, a functional module which depends on the second sequence module is a third sequence module, and so on, and a functional module which depends on an M-1 order module is an Mth sequence module, wherein M is a positive integer less than or equal to N, and the Mth sequence module is not depended on by other functional modules;
determining that a module which is not depended on by other functional modules is a first reverse-order module, a module which is depended on by the first reverse-order module is a second reverse-order module, a module which is depended on by the second reverse-order module is a third reverse-order module, and so on, wherein a module which is depended on by an M-1 reverse-order module is an Mth reverse-order module, M is a positive integer which is less than or equal to N, and the Mth reverse-order module does not depend on other functional modules.
8. A computer-readable storage medium comprising a set of computer-executable instructions that, when executed, perform the network configuration method of any of claims 1-6.
CN202010213493.2A 2020-03-24 2020-03-24 Network configuration method, device and storage medium Active CN111404755B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010213493.2A CN111404755B (en) 2020-03-24 2020-03-24 Network configuration method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010213493.2A CN111404755B (en) 2020-03-24 2020-03-24 Network configuration method, device and storage medium

Publications (2)

Publication Number Publication Date
CN111404755A CN111404755A (en) 2020-07-10
CN111404755B true CN111404755B (en) 2022-03-25

Family

ID=71431161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010213493.2A Active CN111404755B (en) 2020-03-24 2020-03-24 Network configuration method, device and storage medium

Country Status (1)

Country Link
CN (1) CN111404755B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112134734B (en) * 2020-09-15 2023-05-23 网宿科技股份有限公司 Configuration method and device of network equipment
CN114760199B (en) * 2022-03-25 2024-03-01 阿里云计算有限公司 SDN-based network configuration information issuing method, system and storage medium
WO2023249524A1 (en) * 2022-06-23 2023-12-28 Telefonaktiebolaget Lm Ericsson (Publ) Optimizing revert functionality of network device configuration events by a network management system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631041A (en) * 2009-07-29 2010-01-20 中兴通讯股份有限公司 Service configuration processing method and configuration relation management module
US8838653B2 (en) * 2010-11-01 2014-09-16 Cisco Technology, Inc. Translating an object-oriented data model to a YANG data model
CN104965760A (en) * 2015-06-29 2015-10-07 广州酷狗计算机科技有限公司 Method and apparatus for managing life cycle of software function module
CN107959579A (en) * 2016-10-14 2018-04-24 北京京东尚科信息技术有限公司 The dispositions method and deployment system of multisystem
CN108829880A (en) * 2018-06-27 2018-11-16 烽火通信科技股份有限公司 A kind of method of the configuration management of optical network terminal
CN109728953A (en) * 2018-12-30 2019-05-07 联想(北京)有限公司 A kind of configuration device and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108628675A (en) * 2018-05-14 2018-10-09 五八有限公司 A kind of data processing method, device, equipment and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631041A (en) * 2009-07-29 2010-01-20 中兴通讯股份有限公司 Service configuration processing method and configuration relation management module
US8838653B2 (en) * 2010-11-01 2014-09-16 Cisco Technology, Inc. Translating an object-oriented data model to a YANG data model
CN104965760A (en) * 2015-06-29 2015-10-07 广州酷狗计算机科技有限公司 Method and apparatus for managing life cycle of software function module
CN107959579A (en) * 2016-10-14 2018-04-24 北京京东尚科信息技术有限公司 The dispositions method and deployment system of multisystem
CN108829880A (en) * 2018-06-27 2018-11-16 烽火通信科技股份有限公司 A kind of method of the configuration management of optical network terminal
CN109728953A (en) * 2018-12-30 2019-05-07 联想(北京)有限公司 A kind of configuration device and method

Also Published As

Publication number Publication date
CN111404755A (en) 2020-07-10

Similar Documents

Publication Publication Date Title
CN111404755B (en) Network configuration method, device and storage medium
US8589909B2 (en) Techniques for reducing down time in updating applications with metadata
CN110162344B (en) Isolation current limiting method and device, computer equipment and readable storage medium
CN112579569A (en) Data migration method and device
CN111459629A (en) Azkaban-based project operation method and device and terminal equipment
US20220012050A1 (en) Mini program batch processing method and apparatus, electronic device, and readable storage medium
US20220413906A1 (en) Method, device, and program product for managing multiple computing tasks based on batch
CN112988280B (en) Configuration data processing method and device
US11243979B1 (en) Asynchronous propagation of database events
JP2013534347A (en) System and method for execution of high performance computing applications
CN112148762A (en) Statistical method and device for real-time data stream
CN110858199A (en) Document data distributed computing method and device
JP2003242313A (en) Business progress controller and method thereof, business progress control program, and recording medium recorded with the program
CN114385657A (en) Data storage method, device and storage medium
CN114020745A (en) Index construction method and device, electronic equipment and storage medium
CN113495723A (en) Method and device for calling functional component and storage medium
US20210165728A1 (en) Intelligent automated way of baselining integration content using messages from historical tests to be used for regression testing
CN112633851A (en) Method and device for controlling idempotent
US11809394B1 (en) Amendments for transactional index
CN108459914B (en) Middleware command execution method and device
CN116821250B (en) Distributed graph data processing method and system
CN114168275B (en) Task scheduling method, system, terminal device and storage medium
CN114900531B (en) Data synchronization method, device and system
CN114650287B (en) Breakpoint continuous method, device and system for data file
WO2022156099A1 (en) Host upgrade method and apparatus, and electronic device and storage medium

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