CN110120881A - Method of data synchronization and device - Google Patents

Method of data synchronization and device Download PDF

Info

Publication number
CN110120881A
CN110120881A CN201810123044.1A CN201810123044A CN110120881A CN 110120881 A CN110120881 A CN 110120881A CN 201810123044 A CN201810123044 A CN 201810123044A CN 110120881 A CN110120881 A CN 110120881A
Authority
CN
China
Prior art keywords
switching equipment
configuration data
configuration information
configuration
data
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
CN201810123044.1A
Other languages
Chinese (zh)
Other versions
CN110120881B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201810123044.1A priority Critical patent/CN110120881B/en
Publication of CN110120881A publication Critical patent/CN110120881A/en
Application granted granted Critical
Publication of CN110120881B publication Critical patent/CN110120881B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a kind of method of data synchronization and devices, this method comprises: detecting that the configuration data of server of cloud platform and the synchronized relation of the configuration data of switching equipment are destroyed;Receive the first configuration information that server issues;According to the configuration data of the first configuration information synchronized update switching equipment.Through the invention, when the corresponding relationship for solving the configuration data of the configuration data and switching equipment of server of cloud platform in the related technology is destroyed, business can not the normal use corresponding relationship the problem of.

Description

Method of data synchronization and device
Technical field
The present invention relates to the communications fields, in particular to a kind of method of data synchronization and device.
Background technique
Cloud computing management platform OpenStack can provide one easily for large-scale public cloud and small-scale private clound In extension, elastic cloud computing service, so that making the realization of cloud computing simpler has preferably extension with cloud computing framework Property.
Neutron provides network support, including Layer2 switching, three one-tenth routings for entire Openstack, and load balancing is prevented Wall with flues etc., wherein neutron plug-in unit agency is the important component of Openstack cloud platform networking component neutron, is inserted The most important function of part agency is exactly the corresponding relationship of judgement and storage logical network and physical network, and is remotely logged into soft Part, which defines, to be configured on network (Software Defined Network, referred to as SDN) interchanger to realize this correspondence Relationship, but (interchanger is restarted, plug-in unit is restarted, neutron server-side (neutron-server) is restarted) under abnormal conditions, usually It will lead to this corresponding relationship to be destroyed, so that business can not normal use.
Summary of the invention
The embodiment of the invention provides a kind of method of data synchronization and device, at least to solve cloud platform in the related technology When the corresponding relationship of the configuration data of the configuration data and switching equipment of server is destroyed, business can not the normal use correspondence The problem of relationship.
According to one embodiment of present invention, a kind of method of data synchronization is provided, comprising: detect the service of cloud platform The synchronized relation of the configuration data of the configuration data and switching equipment of device is destroyed;Receive the first configuration that the server issues Information;According to the configuration data of switching equipment described in the first configuration information synchronized update.
Optionally, detect the synchronized relation of the configuration data of server and the configuration data of switching equipment be destroyed including At least one of: detect that the server is abnormal;Detect that the switching equipment is abnormal;Detect the cloud The plug-in unit agency of platform is abnormal.
Optionally, when detecting that the server is abnormal, according to the first configuration information synchronized update The configuration data of switching equipment includes: to be obtained according to the server configuration data of first configuration information and the storage of this ground Second configuration information;Second configuration information is issued to the switching equipment, wherein second configuration information is for synchronizing Update the configuration data of the switching equipment.
Optionally, when detecting that the switching equipment is abnormal, according to the first configuration information synchronized update institute The configuration data for stating switching equipment includes: the configuration data for receiving the switching equipment and sending after restoring normal;According to described The switching equipment configuration of configuration data, the storage of this ground that first configuration information, the switching equipment are sent after restoring normal Data and the server configuration data of this ground storage, obtain third configuration information;Described is issued to the switching equipment Three configuration informations, wherein configuration data of the third configuration information for switching equipment described in synchronized update.
Optionally, when detecting that the plug-in unit agency is abnormal, according to the first configuration information synchronized update institute The configuration data for stating switching equipment includes: the switching equipment of this ground of the data initialization storage sent according to the switching equipment Configuration data;The server configuration data of this ground storage is initialized according to first configuration information;According to described ground The server configuration data of the switching equipment configuration data of storage and described storage on the ground, obtains the 4th configuration information; The 4th configuration information is issued to the switching equipment, wherein the 4th configuration information described in synchronized update for exchanging The configuration data of equipment.
Optionally, second configuration information or the third configuration information or described are being issued to the switching equipment After four configuration informations, further includes: update the switching equipment configuration data of this ground storage and/or the server of this ground storage Configuration data.
According to another embodiment of the invention, a kind of data synchronization unit is provided, comprising: detection module, for examining The synchronized relation for measuring the configuration data of server of cloud platform and the configuration data of switching equipment is destroyed;Receiving module is used In the first configuration information that the reception server issues;Update module, for according to the first configuration information synchronized update The configuration data of the switching equipment.
Optionally, detect the synchronized relation of the configuration data of server and the configuration data of switching equipment be destroyed including At least one of: detect that the server is abnormal;Detect that the switching equipment is abnormal;Detect the cloud The plug-in unit agency of platform is abnormal.
According to still another embodiment of the invention, a kind of storage medium is additionally provided, the storage medium includes storage Program, wherein described program executes method described in any of the above embodiments when running.
According to still another embodiment of the invention, a kind of electronic device, including memory and processor are additionally provided, it is special Sign is, computer program is stored in the memory, and the processor is arranged to run the computer program to hold Row method described in any of the above embodiments.
Through the invention, synchronous with the configuration data of switching equipment in the configuration data for detecting server of cloud platform After relationship is destroyed;The first configuration information synchronized update for being issued according to server configuration data of switching equipment, so that cloud The configuration data of the configuration data and switching equipment of the server of platform can be synchronous in time.Therefore, it can solve related skill When the corresponding relationship of the configuration data of the configuration data and switching equipment of server of cloud platform is destroyed in art, business can not be just The problem of being often used the corresponding relationship.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of hardware block diagram of the mobile terminal of method of data synchronization of the embodiment of the present invention;
Fig. 2 is the flow chart of method of data synchronization according to an embodiment of the present invention;
Fig. 3 is several method of synchronization flow charts according to an embodiment of the present invention;
Fig. 4 is the structural block diagram of data synchronization unit according to an embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment 1
Embodiment of the method provided by the embodiment of the present application one can be in mobile terminal, terminal or similar fortune It calculates and is executed in device.For running on mobile terminals, Fig. 1 is a kind of movement of method of data synchronization of the embodiment of the present invention The hardware block diagram of terminal.As shown in Figure 1, mobile terminal 10 may include one or more (only showing one in figure) processing Device 102 (processing unit that processor 102 can include but is not limited to Micro-processor MCV or programmable logic device FPGA etc.), Memory 104 for storing data and the transmitting device 106 for communication function.Those of ordinary skill in the art can be with Understand, structure shown in FIG. 1 is only to illustrate, and does not cause to limit to the structure of above-mentioned electronic device.For example, mobile terminal 10 It may also include than shown in Fig. 1 more perhaps less component or with the configuration different from shown in Fig. 1.
Memory 104 can be used for storing the software program and module of application software, such as the data in the embodiment of the present invention Corresponding program instruction/the module of synchronous method, processor 102 by the software program that is stored in memory 104 of operation and Module realizes above-mentioned method thereby executing various function application and data processing.Memory 104 may include high speed with Machine memory, may also include nonvolatile memory, as one or more magnetic storage device, flash memory or other it is non-easily The property lost solid-state memory.In some instances, memory 104 can further comprise depositing relative to processor 102 is remotely located Reservoir, these remote memories can pass through network connection to mobile terminal 10.The example of above-mentioned network is including but not limited to mutual Networking, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include The wireless network that the communication providers of mobile terminal 10 provide.In an example, transmitting device 106 includes a Network adaptation Device (Network Interface Controller, NIC), can be connected by base station with other network equipments so as to it is mutual Networking is communicated.In an example, transmitting device 106 can be radio frequency (Radio Frequency, RF) module, use In wirelessly being communicated with internet.
A kind of method of data synchronization for running on above-mentioned mobile terminal is provided in the present embodiment, and Fig. 2 is according to this hair The flow chart of the method for data synchronization of bright embodiment, as shown in Fig. 2, the process includes the following steps:
Step S202 detects the synchronized relation of the configuration data of server of cloud platform and the configuration data of switching equipment It is destroyed;
Step S204 receives the first configuration information that server issues;
Step S206, according to the configuration data of the first configuration information synchronized update switching equipment.
Through the above steps, the configuration data and switching equipment that detect server of cloud platform configuration data it is same After step relationship is destroyed;The first configuration information synchronized update for being issued according to server configuration data of switching equipment, so that The configuration data of the configuration data and switching equipment of server of cloud platform can be synchronous in time.Therefore, it can solve correlation When the corresponding relationship of the configuration data of the configuration data and switching equipment of server of cloud platform is destroyed in technology, business can not The problem of normal use corresponding relationship.
Optionally, detect the synchronized relation of the configuration data of server and the configuration data of switching equipment be destroyed including At least one of: detect that server is abnormal;Detect that switching equipment is abnormal;Detect the plug-in unit generation of cloud platform Reason is abnormal.
Optionally, when detecting that server is abnormal, according to matching for the first configuration information synchronized update switching equipment Setting data includes: to obtain the second configuration information according to the server configuration data of the first configuration information and the storage of this ground;To friendship Exchange device issues the second configuration information, wherein the second configuration information is used for the configuration data of synchronized update switching equipment.
Optionally, when detecting that switching equipment is abnormal, according to the first configuration information synchronized update switching equipment Configuration data includes: the configuration data for receiving switching equipment and sending after restoring normal;According to first configuration information, exchange The switching equipment configuration data of configuration data, the storage of this ground that equipment is sent after restoring normal and the clothes of this ground storage Business device configuration data, obtains third configuration information;Third configuration information is issued to switching equipment, wherein third configuration information is used In the configuration data of synchronized update switching equipment.
Optionally, when detecting that plug-in unit agency is abnormal, according to the first configuration information synchronized update switching equipment Configuration data includes: the switching equipment configuration data of this ground of the data initialization storage sent according to switching equipment;According to One configuration information initializes the server configuration data of this ground storage;According to this ground storage switching equipment configuration data and The server configuration data of this ground storage, obtains the 4th configuration information;The 4th configuration information is issued to switching equipment, wherein 4th configuration information is used for the configuration data of synchronized update switching equipment.
Optionally, to after switching equipment down distributing configuration data, further includes: the switching equipment for updating the storage of this ground is matched Set the server configuration data of data and/or the storage of this ground.
It should be noted that above-mentioned cloud platform can be openstack cloud platform, interchanger can be SDN switch, under Face is described in detail by taking openstack cloud platform and SDN switch as an example, and the embodiment of the present invention provides one kind and is The openstack cloud platform method synchronous with SDN switch progress data, at this point, plug-in unit agency needs to safeguard two databases When no exceptions (i.e. the database that stores): database D 1 (being equivalent to the server configuration data of above-mentioned storage on the ground) Corresponding neutron-server data information, database D 2 (the switching equipment configuration data for being equivalent to above-mentioned storage on the ground) are right Interactive device data information is answered, D1 and D2 are corresponded, and keyword is identical.
Fig. 3 is several method of synchronization flow charts according to an embodiment of the present invention, as shown in figure 3, a point several situations are located respectively Reason:
1. plug-in unit agency is synchronous with switching equipment under normal circumstances:
When normal configuration updates, plug-in unit agency receives the data D1 ' of neutron-server update, by local data base number It issues data D1 ' with neutron-server according to D1 to be compared, if the data local data base that neutron-server is issued Do not have in D1, then increases this configuration, if the data neutron-server in local data base D1, which is issued in data, not to be had, This configuration is deleted, after the success of configuration distributing equipment, synchronized update local data base D1, D2.
2.neutron-server abnormal restarting:
When neutron-server restarts online, the data in database can be acted on behalf of to plug-in unit again and be distributed, inserted at this time The data D1 ' that part agency only needs to issue neutron-server is compared with local data base D1, integrates D2 to equipment Again lower configuration, updates D1, D2, and similar with normal configuration update processing (1), details are not described herein again.
3. switching equipment abnormal restarting (such as: power-off causes to restart):
Plug-in unit is acted on behalf of local data base data D2 and switching equipment data D2 ' and is compared, and according to comparison result, comprehensive D1 is to setting It is standby to re-issue configuration, update D2.
4. plug-in unit proxy exception is restarted:
Plug-in unit is initialized by device data and acts on behalf of local data base data D2, at the beginning of when neutron-server issues data Beginningization D1, D1 and D2 re-issue configuration according to keyword comparison result, update D2.
Optionally, it is that openstack cloud platform is synchronous with SDN switch progress data that the embodiment of the present invention, which also provides a kind of, Method, under various abnormal conditions, guaranteeing that the data in various configuration datas and SDN switch in cloud platform keep same Step, to guarantee the normal use of every business.This method comprises:
Openstack platform, the platform can flexibly set network scenarios, and it is each to be managed collectively every network, routing etc. Item configuration;
Plug-in unit agency, is acted on behalf of by plug-in unit and contacts Openstack platform and SDN switching equipment.When plug-in unit is acted on behalf of The configuration information that neutron server-side (neutron-server) issues is received, plug-in unit agency can convert relevant configuration information It is configured for SDN switching equipment, and Telnet tradition interactive device issues relevant configuration;
SDN switch, the basic institute with general switch are functional.The special function of SDN switch is to support OpenFlow agreement.
There is provided through the foregoing embodiment is the openstack cloud platform method synchronous with SDN switch progress data, In the case that there is abnormal restarting in cloud platform or SDN switch, it is ensured that the synchronism of the two data information, to guarantee Every business is unaffected.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
A kind of data synchronization unit is additionally provided in the present embodiment, and the device is real for realizing above-described embodiment and preferably Mode is applied, the descriptions that have already been made will not be repeated.As used below, the soft of predetermined function may be implemented in term " module " The combination of part and/or hardware.Although device described in following embodiment is preferably realized with software, hardware, or The realization of the combination of software and hardware is also that may and be contemplated.
Fig. 4 is the structural block diagram of data synchronization unit according to an embodiment of the present invention, as shown in figure 4, the device includes:
Detection module 42, for detecting the same of the configuration data of server of cloud platform and the configuration data of switching equipment Step relationship is destroyed;
Receiving module 44 is connected to above-mentioned detection module 42, the first configuration information issued for receiving server;
Update module 46 is connected to above-mentioned receiving module 44, for according to the first configuration information synchronized update switching equipment Configuration data.
Optionally, detect the synchronized relation of the configuration data of server and the configuration data of switching equipment be destroyed including At least one of: detect that server is abnormal;Detect that switching equipment is abnormal;Detect the plug-in unit generation of cloud platform Reason is abnormal.
Optionally, when detecting that server is abnormal, update module 46, for according to the first configuration information and local The server configuration data of upper storage obtains the second configuration information;And the second configuration information is issued to switching equipment, wherein Second configuration information is used for the configuration data of synchronized update switching equipment.
Optionally, when detecting that switching equipment is abnormal, update module 46 is being restored just for receiving switching equipment The configuration data sent after often;The configuration data that is sent after restoring normal according to first configuration information, switching equipment, this The switching equipment configuration data of storage and the server configuration data of this ground storage on the ground, obtain third configuration information;With And third configuration information is issued to switching equipment, wherein third configuration information is used for the configuration data of synchronized update switching equipment.
Optionally, when detecting that plug-in unit agency is abnormal, update module 46, the number for being sent according to switching equipment According to the switching equipment configuration data for initializing the storage of this ground;The server of this ground storage is initialized according to the first configuration information Configuration data;According to the server configuration data of the switching equipment configuration data of this ground storage and this ground storage, acquisition the Four configuration informations;And the 4th configuration information is issued to switching equipment, wherein the 4th configuration information is set for synchronized update exchange Standby configuration data.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any Combined form is located in different processors.
Embodiment 3
The embodiments of the present invention also provide a kind of storage medium, which includes the program of storage, wherein above-mentioned Program executes method described in any of the above embodiments when running.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store the journey for executing following steps Sequence code:
S1 detects that the synchronized relation of the configuration data of server of cloud platform and the configuration data of switching equipment is broken It is bad;
S2 receives the first configuration information that server issues;
S3, according to the configuration data of the first configuration information synchronized update switching equipment.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store the journey for executing following steps Sequence code:
S1 detects that the configuration data of server and the synchronized relation of the configuration data of switching equipment are destroyed including following At least one: detect that server is abnormal;Detect that switching equipment is abnormal;Detect plug-in unit agency's hair of cloud platform It is raw abnormal.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store the journey for executing following steps Sequence code:
S1, when detecting that server is abnormal, according to the configuration number of the first configuration information synchronized update switching equipment According to including: the server configuration data stored according to the first configuration information and this ground, the second configuration information is obtained;It is set to exchange It is standby to issue the second configuration information, wherein the second configuration information is used for the configuration data of synchronized update switching equipment.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store the journey for executing following steps Sequence code:
S1, when detecting that switching equipment is abnormal, according to the configuration of the first configuration information synchronized update switching equipment Data include: the configuration data for receiving switching equipment and sending after restoring normal;According to first configuration information, switching equipment The switching equipment configuration data of the configuration data, the storage of this ground that are sent after restoring normal and the server of this ground storage Configuration data obtains the second configuration data;Third configuration information is issued to switching equipment, wherein third configuration information is for same Step updates the configuration data of switching equipment.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store the journey for executing following steps Sequence code:
S1, when detecting that plug-in unit agency is abnormal, according to the configuration of the first configuration information synchronized update switching equipment Data include: the switching equipment configuration data of this ground of the data initialization storage sent according to switching equipment;Match according to first Set the server configuration data of this ground of information initializing storage;According to the switching equipment configuration data of this ground storage and local The server configuration data of upper storage obtains the 4th configuration information;The 4th configuration information is issued to switching equipment, wherein the 4th Configuration information is used for the configuration data of synchronized update switching equipment.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store the journey for executing following steps Sequence code:
S1 is issuing second configuration information or the third configuration information to the switching equipment or the described 4th is matching After confidence breath, further includes: update the switching equipment configuration data of this ground storage and/or the server configuration of this ground storage Data.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read- Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard The various media that can store program code such as disk, magnetic or disk.
The embodiments of the present invention also provide a kind of electronic device, including memory and processor, stored in the memory There is computer program, which is arranged to run computer program to execute the step in any of the above-described embodiment of the method Suddenly.
Optionally, above-mentioned electronic device can also include transmission device and input-output equipment, wherein the transmission device It is connected with above-mentioned processor, which connects with above-mentioned processor.
Optionally, in the present embodiment, above procedure is for executing following steps:
S1 detects that the synchronized relation of the configuration data of server of cloud platform and the configuration data of switching equipment is broken It is bad;
S2 receives the first configuration information that server issues;
S3, according to the configuration data of the first configuration information synchronized update switching equipment.
Optionally, in the present embodiment, above procedure is for executing following steps:
S1 detects that the configuration data of server and the synchronized relation of the configuration data of switching equipment are destroyed including following At least one: detect that server is abnormal;Detect that switching equipment is abnormal;Detect plug-in unit agency's hair of cloud platform It is raw abnormal.
Optionally, in the present embodiment, above procedure is for executing following steps:
S1, when detecting that server is abnormal, according to the configuration number of the first configuration information synchronized update switching equipment According to including: the server configuration data stored according to the first configuration information and this ground, the second configuration information is obtained;It is set to exchange It is standby to issue the second configuration information, wherein the second configuration information is used for the configuration data of synchronized update switching equipment.
Optionally, in the present embodiment, above procedure is for executing following steps:
S1, when detecting that switching equipment is abnormal, according to the configuration of the first configuration information synchronized update switching equipment Data include: the configuration data for receiving switching equipment and sending after restoring normal;According to first configuration information, switching equipment The switching equipment configuration data of the configuration data, the storage of this ground that are sent after restoring normal and the server of this ground storage Configuration data obtains third configuration information;Third configuration information is issued to switching equipment, wherein third configuration information is for same Step updates the configuration data of switching equipment.
Optionally, in the present embodiment, above procedure is for executing following steps:
S1, when detecting that plug-in unit agency is abnormal, according to the configuration of the first configuration information synchronized update switching equipment Data include: the switching equipment configuration data of this ground of the data initialization storage sent according to switching equipment;Match according to first Set the server configuration data of this ground of information initializing storage;According to the switching equipment configuration data of this ground storage and local The server configuration data of upper storage obtains the 4th configuration information;The 4th configuration information is issued to switching equipment, wherein the 4th Configuration information is used for the configuration data of synchronized update switching equipment.
Optionally, in the present embodiment, above procedure is for executing following steps:
S1 is issuing second configuration information or the third configuration information to the switching equipment or the described 4th is matching After confidence breath, further includes: update the switching equipment configuration data of this ground storage and/or the server configuration of this ground storage Data.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment Example, details are not described herein for the present embodiment.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.It is all within principle of the invention, it is made it is any modification, etc. With replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of method of data synchronization characterized by comprising
Detect that the configuration data of server of cloud platform and the synchronized relation of the configuration data of switching equipment are destroyed;
Receive the first configuration information that the server issues;
According to the configuration data of switching equipment described in the first configuration information synchronized update.
2. the method according to claim 1, wherein detecting the configuration data of server and matching for switching equipment The synchronized relation for setting data is destroyed including at least one of:
Detect that the server is abnormal;
Detect that the switching equipment is abnormal;
Detect that the plug-in unit agency of the cloud platform is abnormal.
3. according to the method described in claim 2, it is characterized in that, when detecting that the server is abnormal, according to institute The configuration data for stating switching equipment described in the first configuration information synchronized update includes:
According to the server configuration data of first configuration information and the storage of this ground, the second configuration information is obtained;
Second configuration information is issued to the switching equipment, wherein second configuration information is for described in synchronized update The configuration data of switching equipment.
4. according to the method described in claim 2, it is characterized in that, when detecting that the switching equipment is abnormal, according to The configuration data of switching equipment described in the first configuration information synchronized update includes:
Receive the configuration data that the switching equipment is sent after restoring normal;
According to first configuration information, the switching equipment, the configuration data of transmission, this ground are stored after restoring normal Switching equipment configuration data and the server configuration data of this ground storage, obtain third configuration information;
The third configuration information is issued to the switching equipment, wherein the third configuration information is for described in synchronized update The configuration data of switching equipment.
5. according to the method described in claim 2, it is characterized in that, when detecting that plug-in unit agency is abnormal, according to The configuration data of switching equipment described in the first configuration information synchronized update includes:
According to the switching equipment configuration data for this ground of data initialization storage that the switching equipment is sent;
The server configuration data of this ground storage is initialized according to first configuration information;
According to the described server configuration data that the switching equipment configuration data of storage and described ground store on the ground, obtain 4th configuration information;
The 4th configuration information is issued to the switching equipment, wherein the 4th configuration information is for described in synchronized update The configuration data of switching equipment.
6. method according to any one of claim 3 to 5, which is characterized in that described being issued to the switching equipment After second configuration information or the third configuration information or the 4th configuration information, further includes:
Update the switching equipment configuration data of this ground storage and/or the server configuration data of this ground storage.
7. a kind of data synchronization unit characterized by comprising
Detection module, for detecting the synchronized relation of the configuration data of server of cloud platform and the configuration data of switching equipment It is destroyed;
Receiving module, the first configuration information issued for receiving the server;
Update module, the configuration data for the switching equipment according to the first configuration information synchronized update.
8. device according to claim 7, which is characterized in that detect the configuration data of server and matching for switching equipment The synchronized relation for setting data is destroyed including at least one of:
Detect that the server is abnormal;
Detect that the switching equipment is abnormal;
Detect that the plug-in unit agency of the cloud platform is abnormal.
9. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer Program is arranged to execute method described in any one of claim 1 to 6 when operation.
10. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory Sequence, the processor are arranged to run the computer program to execute side described in any one of claim 1 to 6 Method.
CN201810123044.1A 2018-02-07 2018-02-07 Data synchronization method and device Active CN110120881B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810123044.1A CN110120881B (en) 2018-02-07 2018-02-07 Data synchronization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810123044.1A CN110120881B (en) 2018-02-07 2018-02-07 Data synchronization method and device

Publications (2)

Publication Number Publication Date
CN110120881A true CN110120881A (en) 2019-08-13
CN110120881B CN110120881B (en) 2022-04-19

Family

ID=67520085

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810123044.1A Active CN110120881B (en) 2018-02-07 2018-02-07 Data synchronization method and device

Country Status (1)

Country Link
CN (1) CN110120881B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105391568A (en) * 2014-09-05 2016-03-09 华为技术有限公司 SDN (Software Defined Network) implementation method, device and system
CN105429811A (en) * 2016-01-11 2016-03-23 刘昱 Network management system and method
CN105933253A (en) * 2016-04-13 2016-09-07 浪潮集团有限公司 Switch configuration recovery method in SDN (Software Defined Networking)
US9584363B1 (en) * 2013-11-11 2017-02-28 Softnas, Llc. Redundant storage solution
CN106572173A (en) * 2016-11-07 2017-04-19 网易无尾熊(杭州)科技有限公司 Method, apparatus and system for updating configuration information
CN107645394A (en) * 2016-07-22 2018-01-30 上海诺基亚贝尔股份有限公司 A kind of exchange configuration method in SDN
CN107645658A (en) * 2016-07-22 2018-01-30 南京中兴新软件有限责任公司 Method for authenticating, the apparatus and system of IPTV IPTV platforms

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9584363B1 (en) * 2013-11-11 2017-02-28 Softnas, Llc. Redundant storage solution
CN105391568A (en) * 2014-09-05 2016-03-09 华为技术有限公司 SDN (Software Defined Network) implementation method, device and system
CN105429811A (en) * 2016-01-11 2016-03-23 刘昱 Network management system and method
CN105933253A (en) * 2016-04-13 2016-09-07 浪潮集团有限公司 Switch configuration recovery method in SDN (Software Defined Networking)
CN107645394A (en) * 2016-07-22 2018-01-30 上海诺基亚贝尔股份有限公司 A kind of exchange configuration method in SDN
CN107645658A (en) * 2016-07-22 2018-01-30 南京中兴新软件有限责任公司 Method for authenticating, the apparatus and system of IPTV IPTV platforms
CN106572173A (en) * 2016-11-07 2017-04-19 网易无尾熊(杭州)科技有限公司 Method, apparatus and system for updating configuration information

Also Published As

Publication number Publication date
CN110120881B (en) 2022-04-19

Similar Documents

Publication Publication Date Title
CN107172169A (en) Method of data synchronization, device, server and storage medium
CN107800565B (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
CN113453213B (en) Authentication data synchronization method and device
US11463327B2 (en) Commerce characteristic data reporting method and device, network slice arrangement method and device
CN112202746B (en) RPC member information acquisition method, device, electronic equipment and storage medium
CN110391940A (en) Response method, device, system, equipment and the storage medium of address of service
CN109885612A (en) The synchronization take-effective method and device of block chain intelligence contract
US9949061B2 (en) Fault management method and apparatus
CN105933379A (en) Business processing method, device and system
CN110493736A (en) Note transmission method, device and storage medium
CN111078463A (en) Data backup method, device and system
CN108900603A (en) A kind of server discovery methods, devices and systems
CN109905260A (en) Method, management equipment and the service processing equipment of device configuration
CN110851186B (en) Network equipment restarting method and device, electronic equipment and readable storage medium
CN108089968A (en) A kind of method of host's machine monitoring virtual-machine data storehouse state
CN116150273A (en) Data processing method, device, computer equipment and storage medium
CN110460497A (en) A kind of automated testing method, apparatus and system
CN110120881A (en) Method of data synchronization and device
CN107968798A (en) A kind of network management resources label acquisition method, cache synchronization method, apparatus and system
CN105933352B (en) Method of data synchronization, client and system between client-based server
CN106126426B (en) The test method and device of computer software
CN112804313B (en) Data synchronization method, device, equipment and medium based on cross-domain edge node
CN115361382A (en) Data processing method, device, equipment and storage medium based on data group
CN103731501A (en) Mobile-terminal-based multi-people cooperative management method and system for backlogs
CN113434176A (en) Data updating processing method and device, storage medium and electronic device

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