CN111654398A - Configuration updating method and device, computer equipment and readable storage medium - Google Patents

Configuration updating method and device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN111654398A
CN111654398A CN202010511445.1A CN202010511445A CN111654398A CN 111654398 A CN111654398 A CN 111654398A CN 202010511445 A CN202010511445 A CN 202010511445A CN 111654398 A CN111654398 A CN 111654398A
Authority
CN
China
Prior art keywords
configuration
client
controller
identifier
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010511445.1A
Other languages
Chinese (zh)
Other versions
CN111654398B (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.)
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Original Assignee
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing 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 Qianxin Technology Group Co Ltd, Secworld Information Technology Beijing Co Ltd filed Critical Qianxin Technology Group Co Ltd
Priority to CN202010511445.1A priority Critical patent/CN111654398B/en
Publication of CN111654398A publication Critical patent/CN111654398A/en
Application granted granted Critical
Publication of CN111654398B publication Critical patent/CN111654398B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/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
    • 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/0866Checking the configuration
    • H04L41/0869Validating the configuration within one network element
    • 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

Abstract

The invention discloses a method, a device, computer equipment and a readable storage medium for updating configuration, wherein the method comprises the following steps: when an updating instruction for updating the controller side configuration to a target client terminal of the SD-WAN is detected, acquiring a configuration record corresponding to the target client terminal; judging whether the value of the client configuration identifier contained in the configuration record is consistent with the value of the local configuration identifier; if the configuration is consistent, comparing the client side configuration updated to the local controller with the controller side configuration to determine a difference configuration; or, under the condition of inconsistency, acquiring the client side configuration currently on the target client terminal, and comparing the acquired client side configuration with the controller side configuration to determine a difference configuration; sending the difference configuration to the target client terminal; the invention improves the configuration issuing efficiency and reduces the resource occupation.

Description

Configuration updating method and device, computer equipment and readable storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method and an apparatus for updating configuration, a computer device, and a readable storage medium.
Background
SD-WAN, a software-defined wide area network, is a service formed by applying SDN technology to a wide area network scenario, and is used to connect enterprise networks, data centers, internet applications, and cloud services in a wide geographic area. In the existing SD-WAN scenario, each time a controller of the SD-WAN issues configuration to a Customer Premise Equipment (CPE) of the SD-WAN, the controller needs to acquire all configuration information from the Customer premise equipment and perform configuration comparison, which not only causes a problem of long configuration comparison time, but also causes a situation that the configuration comparison process occupies more resources; in addition, if the user manually makes configuration modification at the client terminal, the controller does not sense the change of the configuration information at the client terminal side, thereby causing incorrect configuration comparison. Therefore, how to improve the efficiency of configuration delivery and enable the controller to sense the change of the configuration information at the client terminal side becomes a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a method and a device for updating configuration, computer equipment and a readable storage medium, which can enable a controller to sense the change of configuration information at a client terminal side, improve the efficiency of configuration issuing and reduce the resource occupation.
According to an aspect of the present invention, there is provided a method for updating a configuration, applied to a controller of an SD-WAN, the method including:
when an updating instruction for updating the controller side configuration to a target client terminal of the SD-WAN is detected, acquiring a configuration record corresponding to the target client terminal;
judging whether the value of the client configuration identifier contained in the configuration record is consistent with the value of the local configuration identifier; wherein the client configuration identifier is used for characterizing the version of the client side configuration currently on the target client terminal, and the local configuration identifier is used for characterizing the version of the client side configuration updated to the local of the controller;
if the configuration is consistent, comparing the client side configuration updated to the local controller with the controller side configuration to determine a difference configuration; or, under the condition of inconsistency, acquiring the client side configuration currently on the target client terminal, and comparing the acquired client side configuration with the controller side configuration to determine a difference configuration;
and sending the difference configuration to the target client terminal.
Optionally, before the obtaining of the configuration record corresponding to the target client terminal when the update instruction for updating the controller-side configuration to the target client terminal of the SD-WAN is detected, the method further includes:
when the configuration at the controller side is modified, modifying the value of the controller configuration identifier contained in the configuration record, and triggering the updating instruction; wherein the controller configuration identifier is used to characterize a version of the controller-side configuration.
Optionally, after the sending the difference configuration to the target client terminal, the method further includes:
and when the difference configuration is successfully sent to the target client terminal, setting the value of the controller configuration identifier as the value of the client configuration identifier.
Optionally, before the obtaining of the configuration record corresponding to the target client terminal when the update instruction for updating the controller-side configuration to the target client terminal of the SD-WAN is detected, the method further includes:
receiving a keep-alive packet containing a client configuration identifier sent by the target client terminal;
and setting the value of the client configuration identifier in the configuration record as the value of the client configuration identifier in the keep-alive packet.
Optionally, in the case of inconsistency, after obtaining the client-side configuration currently on the target client terminal, the method further includes:
updating the acquired client side configuration to the local controller;
and setting the value of the local configuration identifier as the value of the client configuration identifier.
Optionally, the client configuration identifier includes: template class customer configuration identification and policy class customer configuration identification, the local configuration identification comprising: template class local configuration identification and strategy class local configuration identification;
the determining whether the value of the client configuration identifier included in the configuration record is consistent with the value of the local configuration identifier specifically includes:
judging whether the value of the template class client configuration identifier is consistent with the value of the template class local configuration identifier or not and judging whether the value of the strategy class client configuration identifier is consistent with the value of the strategy class local configuration identifier or not.
Optionally, the obtaining of the client-side configuration currently on the target client terminal under the inconsistent condition specifically includes:
under the condition that the value of the template client configuration identifier is inconsistent with the value of the template local configuration identifier, acquiring client template configuration currently on the target client terminal; and/or the presence of a gas in the gas,
and under the condition that the value of the policy client configuration identifier is inconsistent with the value of the policy local configuration identifier, acquiring the client side policy configuration currently on the target client terminal.
In order to achieve the above object, the present invention further provides an apparatus for updating a configuration, applied to a controller of an SD-WAN, the apparatus comprising:
the system comprises an acquisition module, a configuration module and a configuration module, wherein the acquisition module is used for acquiring a configuration record corresponding to a target client terminal when an update instruction for updating the controller side configuration to the target client terminal of the SD-WAN is detected;
the judging module is used for judging whether the value of the client configuration identifier contained in the configuration record is consistent with the value of the local configuration identifier; wherein the client configuration identifier is used for characterizing the version of the client side configuration currently on the target client terminal, and the local configuration identifier is used for characterizing the version of the client side configuration updated to the local of the controller;
the comparison module is used for comparing the client side configuration updated to the local controller with the controller side configuration under the condition of consistency so as to determine the difference configuration; or, under the condition of inconsistency, acquiring the client side configuration currently on the target client terminal, and comparing the acquired client side configuration with the controller side configuration to determine a difference configuration;
a sending module, configured to send the difference configuration to the target client terminal.
In order to achieve the above object, the present invention further provides a computer device, which specifically includes: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the above-described steps of the method of updating a configuration when executing the computer program.
In order to achieve the above object, the present invention also provides a computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, realizes the above-introduced steps of the method of updating a configuration.
According to the method, the device, the computer equipment and the readable storage medium for updating the configuration, provided by the invention, the controller can sense the change of the client side configuration on the target client terminal in real time, and the value of the client side configuration identifier in the configuration record is compared with the value of the local configuration identifier to determine whether the client side configuration needs to be acquired from the target client terminal; if the client side configuration is consistent with the client side configuration, the client side configuration does not need to be obtained from the target client terminal, so that the technical problem that more resources are occupied in the configuration comparison process is solved, and the client side configuration needs to be obtained from the target client terminal only under the condition of inconsistency. In addition, in the invention, all the control side configurations are not required to be transmitted to the target client terminal, and only the difference configurations after the configuration comparison are required to be transmitted to the target client terminal, so that the resource occupation is reduced, and the configuration transmission efficiency is improved.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a schematic flowchart illustrating an alternative configuration updating method according to an embodiment;
fig. 2 is an alternative flowchart of the method for updating configuration according to the second embodiment;
fig. 3 is a schematic diagram of an alternative structure of an apparatus for updating configuration according to a third embodiment;
fig. 4 is a schematic diagram of an alternative hardware architecture of the computer device according to the fourth embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
The embodiment of the invention provides a configuration updating method, which is applied to a controller of an SD-WAN (secure digital-to-WAN), and as shown in FIG. 1, the method specifically comprises the following steps:
step S101: when an update instruction for updating the controller-side configuration to a target client terminal of the SD-WAN is detected, a configuration record corresponding to the target client terminal is acquired.
Specifically, before step S101, the method further includes:
when the target client terminal is registered to the controller, generating a unique corresponding configuration record for the target client terminal locally at the controller; wherein the configuration record comprises: the system comprises a controller configuration identifier, a client configuration identifier and a local configuration identifier;
the controller configuration identification is used for representing whether the version of the controller side configuration changes or not; the client configuration identification is used for representing the version of the client side configuration currently on the target client terminal; the local configuration identification is used to characterize a version of the client-side configuration that has been updated locally to the controller. In an initial state, the values of the controller configuration identifier, the client configuration identifier and the local configuration identifier are all 0.
Further, before step S101, the method further includes:
when the controller side configuration is modified, modifying the value of the controller configuration identifier contained in the configuration record, and triggering the update instruction.
In this embodiment, a controller side configuration corresponding to the target client terminal is configured on the controller, and when a user updates the controller side configuration corresponding to the target client terminal on the controller, the controller configuration identifier is modified synchronously, for example, a value of the controller configuration identifier is changed from 0 to 1. In addition, when the controller side configuration is updated, a configuration issuing task is triggered, and an updating instruction is issued to issue the updated controller side configuration to the target client terminal.
Step S102: and judging whether the value of the client configuration identifier contained in the configuration record is consistent with the value of the local configuration identifier.
Further, before step S102, the method further includes:
receiving a keep-alive packet containing a client configuration identifier sent by the target client terminal;
and setting the value of the client configuration identifier in the configuration record as the value of the client configuration identifier in the keep-alive packet.
Wherein the keep-alive packet is periodically sent to the controller by the target client terminal according to a set time interval.
In this embodiment, a client configuration identifier is also set on the target client terminal, where the client configuration identifier is used to characterize a version of a client-side configuration currently on the target client terminal, and in an initial state, the target client terminal sets a value of the client configuration identifier to 0. When the user modifies the client-side configuration on the target client terminal manually, the value of the client configuration identifier is modified from 0 to 1, and a keep-alive packet containing the modified client configuration identifier is sent to the controller, so that the controller can modify the value of the client configuration identifier in the configuration record, and the controller can sense the change of the client-side configuration on the target client terminal through the client configuration identifier.
Step S103: if the configuration is consistent, comparing the client side configuration updated to the local controller with the controller side configuration to determine a difference configuration; or, in the case of inconsistency, acquiring the client-side configuration currently on the target client terminal, and comparing the acquired client-side configuration with the controller-side configuration to determine a difference configuration.
Specifically, before step S103, the method further includes:
and when the target client terminal is registered to the controller, acquiring the client side configuration on the target client terminal, and storing the client side configuration to the local controller.
In this embodiment, if the value of the client configuration identifier in the configuration record is consistent with the value of the local configuration identifier, it indicates that the client-side configuration currently on the target client terminal is consistent with the client-side configuration already existing in the local controller, and the client-side configuration may be directly obtained from the local controller to perform configuration comparison. Furthermore, if the value of the client configuration identifier in the configuration record does not match the value of the local configuration identifier, it indicates that the current client-side configuration on the target client terminal does not match the client-side configuration already existing locally in the controller, and the latest client-side configuration needs to be acquired from the target client terminal to compare the acquired latest client-side configuration with the controller-side configuration.
Therefore, the value of the client configuration identifier in the configuration record is compared with the value of the local configuration identifier to determine whether the client side configuration needs to be acquired from the target client terminal; if the client side configuration is consistent with the client side configuration, the client side configuration does not need to be obtained from the target client terminal, so that the technical problem that more resources are occupied in the configuration comparison process is solved, and the client side configuration needs to be obtained from the target client terminal only under the condition of inconsistency.
Further, after acquiring the client-side configuration currently on the target client terminal in the case of the inconsistency, the method further includes:
updating the acquired client side configuration to the local controller;
and setting the value of the local configuration identifier as the value of the client configuration identifier.
In this embodiment, the controller may sense a change in the client-side configuration on the target client terminal in real time, and when the change in the client-side configuration on the target client terminal is found, modify the client-side configuration identifier from 0 to 1, but not synchronize the client-side configuration on the target client terminal to the local controller; and only when the controller needs to execute the configuration issuing task, the client side configuration on the target client terminal is acquired and stored in the local of the controller, and meanwhile, the local configuration identifier is modified from 0 to 1.
Step S104: and sending the difference configuration to the target client terminal.
In this embodiment, all the control side configurations do not need to be issued to the target client terminal, and only the differential configurations after configuration comparison need to be issued to the target client terminal, so that the resource occupation is reduced, and the configuration issuing efficiency is improved.
Specifically, after step S104, the method further includes:
and when the difference configuration is successfully sent to the target client terminal, setting the value of the controller configuration identifier as the value of the client configuration identifier.
It should be noted that, since the value of the local configuration identifier in the configuration record has been set as the value of the client configuration identifier in step S103, when the differential configuration is successfully sent to the target client terminal, the values of the controller configuration identifier, the client configuration identifier and the local configuration identifier in the configuration record will be consistent.
Example two
The embodiment of the invention provides a configuration updating method, which is applied to a controller of an SD-WAN (secure digital-to-WAN), and as shown in FIG. 2, the method specifically comprises the following steps:
step S201: when an update instruction for updating the controller-side configuration to a target client terminal of the SD-WAN is detected, a configuration record corresponding to the target client terminal is acquired.
Specifically, before step S201, the method further includes:
when the target client terminal is registered to the controller, generating a unique corresponding configuration record for the target client terminal locally at the controller; wherein the configuration record comprises: the system comprises a controller configuration identifier, a client configuration identifier and a local configuration identifier; the controller configuration identification comprises: the template class controller configuration identifier and the policy class controller configuration identifier, wherein the client configuration identifier comprises: template class customer configuration identification and policy class customer configuration identification, the local configuration identification comprising: template class local configuration identification and policy class local configuration identification.
In the present embodiment, the configuration is divided into two main categories: template class configuration and policy class configuration; wherein, the template class configuration comprises: interface, user, IPSEC tunnel, route, strategy route, BGP, DHCP service; the policy class configuration comprises the following steps: security policy, NAT policy, QOS, address object, service object, time object, antivirus policy, vulnerability protection policy. Setting template class configuration identification in the configuration record aiming at template class configuration, and setting strategy class configuration identification in the configuration record aiming at strategy class configuration. In the initial state, the values of the template class controller configuration identifier, the strategy class controller configuration identifier, the template class client configuration identifier, the strategy class client configuration identifier, the template class local configuration identifier and the strategy class local configuration identifier are all 0.
Further, before step S201, the method further includes:
when the controller side configuration is modified, modifying the value of the controller configuration identifier contained in the configuration record, and triggering the update instruction.
In this embodiment, a controller side configuration corresponding to the target client terminal is configured on the controller, and when a user updates the controller side configuration corresponding to the target client terminal on the controller, the controller configuration identifier is modified synchronously, for example, a value of the controller configuration identifier is changed from 0 to 1. In addition, when the controller side configuration is updated, a configuration issuing task is triggered, and an updating instruction is issued to issue the updated controller side configuration to the target client terminal.
Step S202: judging whether the value of the template class client configuration identifier is consistent with the value of the template class local configuration identifier or not and judging whether the value of the strategy class client configuration identifier is consistent with the value of the strategy class local configuration identifier or not; if they are both the same, step S203 is executed, and if they are not the same, step S204 is executed.
Specifically, before step S202, the method further includes:
receiving a keep-alive packet which is sent by the target client terminal and contains a template class client configuration identifier and a strategy class client configuration identifier;
setting the value of the template class client configuration identifier in the configuration record as the value of the template class client configuration identifier in the keep-alive package, and setting the value of the policy class client configuration identifier in the configuration record as the value of the policy class client configuration identifier in the keep-alive package.
In this embodiment, a template class client configuration identifier and a policy class client configuration identifier are also set on the target client terminal, and in an initial state, both a value of the template class client configuration identifier and a value of the policy class client configuration identifier are 0. When the user modifies the client-side template class configuration and/or the client-side strategy class configuration on the target client terminal manually, modifying the values of the template class client configuration identifier and the strategy class client configuration identifier correspondingly; for example, if the user only modifies the client-side template class configuration, the value of the template class client configuration identifier is modified from 0 to 1, but the value of the policy class client configuration identifier is still 0.
Step S203: and comparing the client side template class configuration and the client side strategy class configuration which are updated to the local controller with the controller side configuration to determine the difference configuration under the condition that the value of the template class client configuration identifier is consistent with the value of the template class local configuration identifier and the value of the strategy class client configuration identifier is consistent with the value of the strategy class local configuration identifier.
Specifically, before step S203, the method further includes:
and when the target client terminal is registered to the controller, acquiring all the configurations on the target client terminal, and storing all the acquired configurations to the local controller.
It should be noted that, there are other configuration information besides the client-side template class configuration and the client-side policy class configuration on the target client terminal, and when the target client terminal is registered to the controller, all the configuration information on the target client terminal needs to be updated to the local controller
In this embodiment, if the value of the template class client configuration identifier is consistent with the value of the template class local configuration identifier, and the value of the policy class client configuration identifier is consistent with the value of the policy class local configuration identifier, it indicates that the client-side configuration currently on the target client terminal is consistent with the client-side configuration already existing locally in the controller, and the client-side configuration may be directly obtained locally from the controller to perform configuration comparison.
Step S204: under the condition that the value of the template client configuration identifier is inconsistent with the value of the template local configuration identifier, acquiring client template configuration currently on the target client terminal; and/or, under the condition that the value of the policy class client configuration identifier is inconsistent with the value of the policy class local configuration identifier, acquiring the client side policy class configuration currently on the target client terminal.
In this embodiment, when a certain type of client-side configuration changes, only this type of client-side configuration is obtained, thereby further reducing the time used for configuration comparison and the consumption of resources in the configuration comparison process.
Step S205: and updating the acquired client-side template type configuration and/or client-side strategy type configuration to the local controller.
Step S206: setting the value of the template class local configuration identifier as the value of the template class client configuration identifier, and setting the value of the strategy class local configuration identifier as the value of the strategy class client configuration identifier.
Step S207: and comparing the client side template class configuration and the client side strategy class configuration which are updated to the local controller with the controller side configuration to determine the difference configuration.
Therefore, whether the client-side template configuration and/or the client-side strategy configuration needs to be acquired from the target client terminal is determined by judging whether the values of the configuration identifiers are consistent; if the client side template configuration and the client side strategy configuration are consistent, the client side template configuration and the client side strategy configuration do not need to be acquired from the target client terminal, and therefore the technical problem that more resources are occupied in the configuration comparison process is solved; if the client-side template configuration and/or the client-side strategy configuration are not consistent, the client-side template configuration and/or the client-side strategy configuration can be acquired from the target client terminal in a targeted mode.
Step S208: and sending the difference configuration to the target client terminal.
In this embodiment, all the control side configurations do not need to be issued to the target client terminal, and only the differential configurations after configuration comparison need to be issued to the target client terminal, so that the resource occupation is reduced, and the configuration issuing efficiency is improved.
Specifically, after step S208, the method further includes:
and when the difference configuration is successfully sent to the target client terminal, setting the value of the template class controller configuration identifier as the value of the template class client configuration identifier, and setting the value of the strategy class controller configuration identifier as the value of the strategy class client configuration identifier.
It should be noted that, when the difference configuration is successfully sent to the target client terminal, the values of the template class controller configuration identifier, the template class client configuration identifier, and the template class local configuration identifier are consistent, and the values of the policy class controller configuration identifier, the policy class client configuration identifier, and the policy class local configuration identifier are consistent.
EXAMPLE III
The embodiment of the invention provides a device for updating configuration, which is applied to a controller of an SD-WAN (secure digital-to-WAN), and as shown in FIG. 3, the device specifically comprises the following components:
an obtaining module 301, configured to, when an update instruction for updating a controller-side configuration to a target client terminal of an SD-WAN is detected, obtain a configuration record corresponding to the target client terminal;
a judging module 302, configured to judge whether a value of the client configuration identifier included in the configuration record is consistent with a value of the local configuration identifier; wherein the client configuration identifier is used for characterizing the version of the client side configuration currently on the target client terminal, and the local configuration identifier is used for characterizing the version of the client side configuration updated to the local of the controller;
a comparison module 303, configured to, in a case of consistency, compare the client-side configuration updated to the local controller with the controller-side configuration to determine a difference configuration; or, under the condition of inconsistency, acquiring the client side configuration currently on the target client terminal, and comparing the acquired client side configuration with the controller side configuration to determine a difference configuration;
a sending module 304, configured to send the difference configuration to the target client terminal.
Specifically, the apparatus further comprises:
a first modification module, configured to modify a value of a controller configuration identifier included in the configuration record and trigger the update instruction when the controller-side configuration is modified; wherein the controller configuration identifier is used to characterize a version of the controller-side configuration.
Further, the first modification module is further configured to:
and when the difference configuration is successfully sent to the target client terminal, setting the value of the controller configuration identifier as the value of the client configuration identifier.
Further, the apparatus further comprises:
a second modification module, configured to receive a keep-alive packet containing a client configuration identifier sent by the target client terminal; and setting the value of the client configuration identifier in the configuration record as the value of the client configuration identifier in the keep-alive packet.
Further, the apparatus further comprises:
the third modification module is used for updating the acquired client side configuration to the local controller; and setting the value of the local configuration identifier as the value of the client configuration identifier.
Further, the client configuration identifier includes: template class customer configuration identification and policy class customer configuration identification, the local configuration identification comprising: template class local configuration identification and policy class local configuration identification.
The determining module 302 is specifically configured to:
judging whether the value of the template class client configuration identifier is consistent with the value of the template class local configuration identifier or not and judging whether the value of the strategy class client configuration identifier is consistent with the value of the strategy class local configuration identifier or not.
When the function of the client side configuration currently on the target client terminal is obtained in the case of the inconsistency, the comparing module 303 is specifically configured to:
under the condition that the value of the template client configuration identifier is inconsistent with the value of the template local configuration identifier, acquiring client template configuration currently on the target client terminal; and/or the presence of a gas in the gas,
and under the condition that the value of the policy client configuration identifier is inconsistent with the value of the policy local configuration identifier, acquiring the client side policy configuration currently on the target client terminal.
Example four
The embodiment also provides a computer device, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server or a rack server (including an independent server or a server cluster composed of a plurality of servers) capable of executing programs, and the like. As shown in fig. 4, the computer device 40 of the present embodiment at least includes but is not limited to: a memory 401, a processor 402, which may be communicatively coupled to each other via a system bus. It is noted that FIG. 4 only shows the computer device 40 having components 401 and 402, but it is understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
In this embodiment, the memory 401 (i.e., a readable storage medium) includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the storage 401 may be an internal storage unit of the computer device 40, such as a hard disk or a memory of the computer device 40. In other embodiments, the memory 401 may also be an external storage device of the computer device 40, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, provided on the computer device 40. Of course, the memory 401 may also include both internal and external storage devices for the computer device 40. In the present embodiment, the memory 401 is generally used for storing an operating system and various types of application software installed in the computer device 40. Further, the memory 401 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 402 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 402 is generally operative to control the overall operation of the computer device 40.
Specifically, in this embodiment, the processor 402 is configured to execute the program of the method for updating configuration stored in the processor 402, and when the program of the method for updating configuration is executed, the following steps are implemented:
when an updating instruction for updating the controller side configuration to a target client terminal of the SD-WAN is detected, acquiring a configuration record corresponding to the target client terminal;
judging whether the value of the client configuration identifier contained in the configuration record is consistent with the value of the local configuration identifier; wherein the client configuration identifier is used for characterizing the version of the client side configuration currently on the target client terminal, and the local configuration identifier is used for characterizing the version of the client side configuration updated to the local of the controller;
if the configuration is consistent, comparing the client side configuration updated to the local controller with the controller side configuration to determine a difference configuration; or, under the condition of inconsistency, acquiring the client side configuration currently on the target client terminal, and comparing the acquired client side configuration with the controller side configuration to determine a difference configuration;
and sending the difference configuration to the target client terminal.
The specific embodiment process of the above method steps can be referred to in the first embodiment, and the detailed description of this embodiment is not repeated here.
EXAMPLE five
The present embodiments also provide a computer readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application mall, etc., having stored thereon a computer program that when executed by a processor implements the method steps of:
when an updating instruction for updating the controller side configuration to a target client terminal of the SD-WAN is detected, acquiring a configuration record corresponding to the target client terminal;
judging whether the value of the client configuration identifier contained in the configuration record is consistent with the value of the local configuration identifier; wherein the client configuration identifier is used for characterizing the version of the client side configuration currently on the target client terminal, and the local configuration identifier is used for characterizing the version of the client side configuration updated to the local of the controller;
if the configuration is consistent, comparing the client side configuration updated to the local controller with the controller side configuration to determine a difference configuration; or, under the condition of inconsistency, acquiring the client side configuration currently on the target client terminal, and comparing the acquired client side configuration with the controller side configuration to determine a difference configuration;
and sending the difference configuration to the target client terminal.
The specific embodiment process of the above method steps can be referred to in the first embodiment, and the detailed description of this embodiment is not repeated here.
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.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method of updating a configuration, applied to a controller of an SD-WAN, the method comprising:
when an updating instruction for updating the controller side configuration to a target client terminal of the SD-WAN is detected, acquiring a configuration record corresponding to the target client terminal;
judging whether the value of the client configuration identifier contained in the configuration record is consistent with the value of the local configuration identifier; wherein the client configuration identifier is used for characterizing the version of the client side configuration currently on the target client terminal, and the local configuration identifier is used for characterizing the version of the client side configuration updated to the local of the controller;
if the configuration is consistent, comparing the client side configuration updated to the local controller with the controller side configuration to determine a difference configuration; or, under the condition of inconsistency, acquiring the client side configuration currently on the target client terminal, and comparing the acquired client side configuration with the controller side configuration to determine a difference configuration;
and sending the difference configuration to the target client terminal.
2. The method for updating configuration according to claim 1, wherein before the obtaining of the configuration record corresponding to a target client terminal when the update instruction for updating the controller-side configuration to the target client terminal of the SD-WAN is detected, the method further comprises:
when the configuration at the controller side is modified, modifying the value of the controller configuration identifier contained in the configuration record, and triggering the updating instruction; wherein the controller configuration identifier is used to characterize a version of the controller-side configuration.
3. The method of updating a configuration of claim 2, wherein after the sending the differential configuration to the target client terminal, the method further comprises:
and when the difference configuration is successfully sent to the target client terminal, setting the value of the controller configuration identifier as the value of the client configuration identifier.
4. The method for updating configuration according to claim 1, wherein before the obtaining of the configuration record corresponding to a target client terminal when the update instruction for updating the controller-side configuration to the target client terminal of the SD-WAN is detected, the method further comprises:
receiving a keep-alive packet containing a client configuration identifier sent by the target client terminal;
and setting the value of the client configuration identifier in the configuration record as the value of the client configuration identifier in the keep-alive packet.
5. The method of updating configuration of claim 1, wherein after obtaining the client-side configuration currently on the target client terminal in case of the inconsistency, the method further comprises:
updating the acquired client side configuration to the local controller;
and setting the value of the local configuration identifier as the value of the client configuration identifier.
6. The method of updating a configuration of claim 5 wherein the client configuration identifier comprises: template class customer configuration identification and policy class customer configuration identification, the local configuration identification comprising: template class local configuration identification and strategy class local configuration identification;
the determining whether the value of the client configuration identifier included in the configuration record is consistent with the value of the local configuration identifier specifically includes:
judging whether the value of the template class client configuration identifier is consistent with the value of the template class local configuration identifier or not and judging whether the value of the strategy class client configuration identifier is consistent with the value of the strategy class local configuration identifier or not.
7. The method for updating a configuration according to claim 6, wherein the obtaining of the client-side configuration currently on the target client terminal in the case of inconsistency specifically includes:
under the condition that the value of the template client configuration identifier is inconsistent with the value of the template local configuration identifier, acquiring client template configuration currently on the target client terminal; and/or the presence of a gas in the gas,
and under the condition that the value of the policy client configuration identifier is inconsistent with the value of the policy local configuration identifier, acquiring the client side policy configuration currently on the target client terminal.
8. An apparatus for updating a configuration, applied to a controller of an SD-WAN, the apparatus comprising:
the system comprises an acquisition module, a configuration module and a configuration module, wherein the acquisition module is used for acquiring a configuration record corresponding to a target client terminal when an update instruction for updating the controller side configuration to the target client terminal of the SD-WAN is detected;
the judging module is used for judging whether the value of the client configuration identifier contained in the configuration record is consistent with the value of the local configuration identifier; wherein the client configuration identifier is used for characterizing the version of the client side configuration currently on the target client terminal, and the local configuration identifier is used for characterizing the version of the client side configuration updated to the local of the controller;
the comparison module is used for comparing the client side configuration updated to the local controller with the controller side configuration under the condition of consistency so as to determine the difference configuration; or, under the condition of inconsistency, acquiring the client side configuration currently on the target client terminal, and comparing the acquired client side configuration with the controller side configuration to determine a difference configuration;
a sending module, configured to send the difference configuration to the target client terminal.
9. A computer device, the computer device comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 7 are implemented when the processor executes the program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202010511445.1A 2020-06-08 2020-06-08 Configuration updating method and device, computer equipment and readable storage medium Active CN111654398B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010511445.1A CN111654398B (en) 2020-06-08 2020-06-08 Configuration updating method and device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010511445.1A CN111654398B (en) 2020-06-08 2020-06-08 Configuration updating method and device, computer equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111654398A true CN111654398A (en) 2020-09-11
CN111654398B CN111654398B (en) 2022-07-19

Family

ID=72344783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010511445.1A Active CN111654398B (en) 2020-06-08 2020-06-08 Configuration updating method and device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111654398B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112468341A (en) * 2020-11-27 2021-03-09 武汉船舶通信研究所(中国船舶重工集团公司第七二二研究所) Network node synchronization method and network equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160112252A1 (en) * 2014-10-15 2016-04-21 Cisco Technology, Inc. Deployment and upgrade of network devices in a network environment
CN107203395A (en) * 2017-05-19 2017-09-26 北京京东尚科信息技术有限公司 Resource graded method, device and computer-readable recording medium and electronic equipment
CN110768811A (en) * 2018-07-26 2020-02-07 中国电信股份有限公司 Method, device and system for updating YANG model file library

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160112252A1 (en) * 2014-10-15 2016-04-21 Cisco Technology, Inc. Deployment and upgrade of network devices in a network environment
CN107203395A (en) * 2017-05-19 2017-09-26 北京京东尚科信息技术有限公司 Resource graded method, device and computer-readable recording medium and electronic equipment
CN110768811A (en) * 2018-07-26 2020-02-07 中国电信股份有限公司 Method, device and system for updating YANG model file library

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112468341A (en) * 2020-11-27 2021-03-09 武汉船舶通信研究所(中国船舶重工集团公司第七二二研究所) Network node synchronization method and network equipment

Also Published As

Publication number Publication date
CN111654398B (en) 2022-07-19

Similar Documents

Publication Publication Date Title
CN105867947B (en) Data processing method and device after preset application program updating
CN108494771B (en) Electronic device, firewall opening verification method and storage medium
CN107786344B (en) Method and device for realizing application and use of digital certificate
CN108388599B (en) Electronic device, data migration and calling method and storage medium
US9519654B2 (en) Method, device, processing center and system for desktop synchronization
CN110222535B (en) Processing device, method and storage medium for block chain configuration file
CN110278192B (en) Method and device for accessing intranet by extranet, computer equipment and readable storage medium
CN111225064A (en) Ceph cluster deployment method, system, device and computer-readable storage medium
CN111343168A (en) Identity authentication method and device, computer equipment and readable storage medium
CN111752770A (en) Service request processing method, system, computer device and storage medium
CN109104368B (en) Connection request method, device, server and computer readable storage medium
CN111654399B (en) Networking method, device, equipment and storage medium based on SD-WAN
CN111654398B (en) Configuration updating method and device, computer equipment and readable storage medium
CN111736876A (en) Client update control method, device, storage medium and server
CN113077260A (en) Data access method and device based on block chain and electronic equipment
US11431795B2 (en) Method, apparatus and storage medium for resource configuration
CN111327680B (en) Authentication data synchronization method, device, system, computer equipment and storage medium
CN116450165A (en) Method, system, terminal and storage medium for quickly building environment and deploying program
US20190098045A1 (en) Browser injection prevention method, browser client and apparatus
CN111447080B (en) Private network decentralization control method, device and computer readable storage medium
CN112217770A (en) Security detection method and device, computer equipment and storage medium
CN109522014B (en) Algorithm processing method based on new product development, electronic device and readable storage medium
CN110505189B (en) Identification method, identification device and storage medium for terminal security agent breakthrough
CN111949363A (en) Service access management method, computer equipment, storage medium and system
CN115277408B (en) Agent configuration information updating method, device, equipment 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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 332, 3 / F, Building 102, 28 xinjiekouwei street, Xicheng District, Beijing 100088

Applicant after: Qianxin Technology Group Co.,Ltd.

Applicant after: Qianxin Wangshen information technology (Beijing) Co.,Ltd.

Address before: Room 332, 3 / F, Building 102, 28 xinjiekouwei street, Xicheng District, Beijing 100088

Applicant before: Qianxin Technology Group Co.,Ltd.

Applicant before: LEGENDSEC INFORMATION TECHNOLOGY (BEIJING) Inc.

GR01 Patent grant
GR01 Patent grant