CN109274763B - Information synchronization method and dual-computer hot standby equipment - Google Patents

Information synchronization method and dual-computer hot standby equipment Download PDF

Info

Publication number
CN109274763B
CN109274763B CN201811242962.2A CN201811242962A CN109274763B CN 109274763 B CN109274763 B CN 109274763B CN 201811242962 A CN201811242962 A CN 201811242962A CN 109274763 B CN109274763 B CN 109274763B
Authority
CN
China
Prior art keywords
equipment
host
standby
synchronization
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811242962.2A
Other languages
Chinese (zh)
Other versions
CN109274763A (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.)
Zhangzhou Kehua Technology Co Ltd
Kehua Data Co Ltd
Xiamen Kehua Digital Energy Tech Co Ltd
Original Assignee
Xiamen Kehua Hengsheng Co Ltd
Zhangzhou Kehua Technology 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 Xiamen Kehua Hengsheng Co Ltd, Zhangzhou Kehua Technology Co Ltd filed Critical Xiamen Kehua Hengsheng Co Ltd
Priority to CN201811242962.2A priority Critical patent/CN109274763B/en
Publication of CN109274763A publication Critical patent/CN109274763A/en
Application granted granted Critical
Publication of CN109274763B publication Critical patent/CN109274763B/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
    • 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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S40/00Systems for electrical power generation, transmission, distribution or end-user application management characterised by the use of communication or information technologies, or communication or information technology specific aspects supporting them
    • Y04S40/12Systems for electrical power generation, transmission, distribution or end-user application management characterised by the use of communication or information technologies, or communication or information technology specific aspects supporting them characterised by data transport means between the monitoring, controlling or managing units and monitored, controlled or operated electrical equipment
    • Y04S40/124Systems for electrical power generation, transmission, distribution or end-user application management characterised by the use of communication or information technologies, or communication or information technology specific aspects supporting them characterised by data transport means between the monitoring, controlling or managing units and monitored, controlled or operated electrical equipment using wired telecommunication networks or data transmission busses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Hardware Redundancy (AREA)

Abstract

The application provides an information synchronization method and dual-computer hot-standby equipment, a communication protocol between the host equipment and the standby equipment of the dual-computer hot-standby equipment is UDP, an information synchronization strategy is determined according to the function type of a synchronization message, the synchronization efficiency between the dual-computer hot-standby equipment can be improved, and the response speed of a micro-grid system is improved. The method in the embodiment of the application comprises the following steps: the host equipment acquires a synchronous message of information to be synchronized; the host equipment determines the function type of the synchronous message according to the information type of the information to be synchronized; the host equipment determines an information synchronization strategy according to the function type of the synchronization message; the host equipment sends the synchronous message to the standby equipment according to the information synchronization strategy; and the standby equipment executes the information synchronization of the information to be synchronized with the host equipment according to the synchronization message.

Description

Information synchronization method and dual-computer hot standby equipment
Technical Field
The application relates to the field of energy, in particular to an information synchronization method and dual-computer hot standby equipment.
Background
In order to ensure the high-efficiency and stable operation of the micro-grid, the micro-grid system comprises an energy management monitor, a central energy controller, at least one regional energy controller and at least one unit collector, wherein the central energy controller, the regional energy controller and the unit collectors are master-slave dual-machine hot standby, the central energy controller comprises a master central controller and a slave central controller, the regional energy controller comprises a master regional controller and a slave regional controller, the master central controller and the master regional controller are connected with a master optical fiber ring network, the slave regional controller and the master central controller are connected with a slave optical fiber ring network, the master optical fiber ring network and the slave optical fiber ring network are connected with the energy management monitor, the unit collectors comprise a master collector and a slave collector, the master collector is connected with the master regional controller, the slave collector is connected with the slave regional controller, and the control flow and the data flow of the micro-grid system are separated, the stability and the real-time performance of the energy control of the micro-grid system are improved.
However, when the collector for collecting data Of the intelligent device is in a dual-computer hot standby mode, there is multi-channel device data collection with different protocols, which may cause the collection Of device data to be not completed synchronously under the dual-computer redundancy condition, resulting in the inefficient synchronization Of information such as remote measurement, remote signaling, Event Sequence record (SOE), fixed value, remote control command and control command in the micro-grid system, and affecting the response speed Of the micro-grid system.
Disclosure of Invention
The application provides an information synchronization method and dual-computer hot-standby equipment, a communication protocol between the host equipment and the standby equipment of the dual-computer hot-standby equipment is UDP, an information synchronization strategy is determined according to the function type of a synchronization message, the synchronization efficiency between the dual-computer hot-standby equipment can be improved, and the response speed of a micro-grid system is improved.
The first aspect of the present application provides an information synchronization method, which is applied to a dual-computer hot-standby device of a micro-grid system, where the dual-computer hot-standby device includes a host device and a standby device, and a communication protocol between the host device and the standby device is UDP, and the method includes:
the host equipment acquires a synchronous message of information to be synchronized;
the host equipment determines the function type of the synchronous message according to the information type of the information to be synchronized;
the host equipment determines an information synchronization strategy according to the function type of the synchronization message;
the host equipment sends the synchronous message to the standby equipment according to the information synchronization strategy;
and the standby equipment executes the information synchronization of the information to be synchronized with the host equipment according to the synchronization message.
With reference to the first aspect of the present application, in a first implementation manner of the first aspect, the determining, by the host device, an information synchronization policy according to the function type of the synchronization packet includes:
the host equipment determines the synchronization priority according to the function type of the synchronization message;
and when the number of the synchronous messages is at least one and the synchronous messages have different synchronous priorities, the host equipment determines an information synchronization strategy according to the synchronous priorities, wherein the information synchronization strategy is to perform information synchronization according to a descending order principle of the synchronous priorities from high to low.
With reference to the first aspect or the first implementation manner of the first aspect, in a second implementation manner of the first aspect, before the host device obtains the sync packet of the information to be synchronized, the method further includes:
when the host equipment is started for the first time and the standby equipment is in a running state, the host equipment generates a data request;
the host equipment sends the data request to the standby equipment;
the standby machine equipment sends standby machine data to the host machine equipment according to the received data request;
after the host device works normally, the host device periodically acquires holographic data of a host working port, and synchronizes the holographic data to the standby device.
With reference to the second implementation manner of the first aspect of the present application, in a third implementation manner of the first aspect, before the sending, by the host device, the synchronization packet to the standby device according to the information synchronization policy, the method further includes:
the host equipment judges whether the communication between the standby equipment and the micro-grid system is normal or not;
if the communication between the standby machine equipment and the micro-grid system is abnormal, the host machine equipment sends the synchronous message to the standby machine equipment according to the information synchronization strategy;
and if the communication between the standby machine equipment and the micro-grid system is normal, the host machine equipment does not need to send the synchronous message to the standby machine equipment.
With reference to the second implementation manner of the first aspect of the present application, in a fourth implementation manner of the first aspect, before the sending, by the host device, the synchronization packet to the standby device according to the information synchronization policy, the method further includes:
the host equipment judges whether the host working port is abnormal or not;
if the host working port of the host equipment is abnormal, the host equipment generates a port switching message;
the host equipment sends the port switching message to the standby equipment;
the standby machine equipment switches a standby machine working port from a port interception state to a data request state according to the port switching message;
the standby machine equipment sends the data acquired by the standby machine working port to the host machine equipment;
when the host working port of the host equipment returns to normal, the host equipment generates a port switching instruction and sends the port switching instruction to the standby equipment;
and the standby machine equipment switches the standby machine working port from the data request state to the port interception state according to the port switching indication.
A second aspect of the present application provides a dual-computer hot-standby device, which is applied to a micro-grid system, and the dual-computer hot-standby device includes:
the communication protocol between the host equipment and the standby equipment is a User Datagram Protocol (UDP);
the host equipment is used for acquiring a synchronous message of information to be synchronized;
the host equipment is also used for determining the function type of the synchronous message according to the information type of the information to be synchronized;
the host equipment is also used for determining an information synchronization strategy according to the function type of the synchronization message;
the host equipment is further used for sending the synchronous message to the standby equipment according to the information synchronization strategy;
and the standby equipment is also used for executing the information synchronization of the information to be synchronized according to the synchronous message and the host equipment.
In combination with the second aspect of the present application, in the first embodiment of the second aspect,
the host equipment is also used for determining the synchronization priority according to the function type of the synchronization message;
the host device is further configured to determine an information synchronization policy according to the synchronization priority when the number of the synchronization packets is at least one and the synchronization packets have different synchronization priorities, where the information synchronization policy is to perform information synchronization according to a descending order principle of the synchronization priorities from high to low.
In combination with the second aspect of the present application or the first embodiment of the second aspect, in the second embodiment of the second aspect,
the host equipment is also used for generating a data request when the host equipment is started for the first time and the standby equipment is in a running state;
the host equipment is further used for sending the data request to the standby equipment;
the standby machine equipment is also used for sending standby machine data to the host machine equipment according to the received data request;
the host device is further configured to periodically obtain holographic data of a host working port after the host device works normally, and synchronize the holographic data to the standby device.
In combination with the second embodiment of the second aspect of the present application, in the third embodiment of the second aspect,
the host equipment is also used for judging whether the communication between the standby equipment and the micro-grid system is normal or not;
the host equipment is further used for sending the synchronous message to the standby equipment according to the information synchronization strategy if the communication between the standby equipment and the microgrid system is abnormal;
the host device is further configured to not send the synchronization packet to the standby device if the communication between the standby device and the microgrid system is normal.
In combination with the second embodiment of the second aspect of the present application, in the fourth embodiment of the second aspect,
the host equipment is also used for judging whether the host working port is abnormal or not;
the host device is further configured to generate a port switching message if the host working port of the host device is abnormal;
the host equipment is further used for sending the port switching message to the standby equipment;
the standby machine equipment is also used for switching a working port of the standby machine from a port interception state to a data request state according to the port switching message;
the standby machine equipment is also used for sending the data acquired by the standby machine working port to the host machine equipment;
the host device is further configured to generate a port switching instruction when the host working port of the host device returns to normal, and send the port switching instruction to the standby device;
and the standby machine equipment is also used for switching the working port of the standby machine from the data request state to the port interception state according to the port switching indication.
To sum up, the information synchronization method of the application is applied to dual-computer hot standby equipment of a micro-grid system, the dual-computer hot standby equipment comprises host equipment and standby equipment, a communication protocol between the host equipment and the standby equipment is UDP, the host equipment acquires a synchronization message of information to be synchronized, the function type of the synchronization message is determined according to the information type of the information to be synchronized, an information synchronization strategy is determined according to the function type of the synchronization message, the synchronization message is sent to the standby equipment according to the information synchronization strategy, and the standby equipment executes information synchronization of the information to be synchronized according to the synchronization message and the standby equipment. The synchronous efficiency between the dual-computer hot standby equipment can be improved, and the response speed of the micro-grid system is improved.
Drawings
Fig. 1 is a schematic structural diagram of a microgrid system provided herein;
FIG. 2 is a flowchart illustrating an embodiment of an information synchronization method provided herein;
fig. 3 is a schematic structural diagram of a dual-computer hot-standby device according to an embodiment of the present application.
Detailed Description
The application provides an information synchronization method and dual-computer hot-standby equipment, a communication protocol between the host equipment and the standby equipment of the dual-computer hot-standby equipment is UDP, an information synchronization strategy is determined according to the function type of a synchronization message, the synchronization efficiency between the dual-computer hot-standby equipment can be improved, and the response speed of a micro-grid system is improved.
The terms "upstream" and "downstream" appearing in the present application are used in some scenarios to describe the direction of data/information transmission, for example, the "upstream" direction is the direction of data/information transmission from the terminal device to the network side, the "downstream" direction is the direction of data/information transmission from the network side device to the terminal device, the "upstream" and "downstream" are used only to describe the direction, and the specific devices from which the data/information transmission starts and ends are not limited.
The term "and/or" appearing in the present application may be an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in this application generally indicates that the former and latter related objects are in an "or" relationship.
Various objects such as various messages/information/devices/network elements/systems/devices/actions/operations/flows/concepts may be named in the present application, but these specific names do not constitute limitations on related objects, and the named names may vary with factors such as scenes, contexts or usage habits, and understanding of technical meaning of related objects should be mainly determined from functions and technical effects embodied/executed in the technical solutions.
The terms "first," "second," and the like in the description and in the claims of the present application and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Moreover, the terms "comprises," "comprising," and any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not expressly listed or inherent to such process, method, article, or apparatus. The naming or numbering of the steps appearing in the present application does not mean that the steps in the method flow have to be executed in the chronological/logical order indicated by the naming or numbering, and the named or numbered process steps may be executed in a modified order depending on the technical purpose to be achieved, as long as the same or similar technical effects are achieved. The division of the modules presented in this application is a logical division, and in practical applications, there may be another division, for example, multiple modules may be combined or integrated into another system, or some features may be omitted, or not executed, and in addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some interfaces, and the indirect coupling or communication connection between the modules may be in an electrical or other similar form, which is not limited in this application. The modules or sub-modules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed in a plurality of circuit modules, and some or all of the modules may be selected according to actual needs to achieve the purpose of the present disclosure.
The structure of a micro-grid system applied by the application is shown in fig. 1, the micro-grid system comprises an energy management monitor, a central energy controller and at least one regional energy controller, the central energy controller and the regional energy controllers are master-slave dual-machine hot standby, the central energy controller comprises a master central controller and a slave central controller, the regional energy controllers comprise a master regional controller and a slave regional controller, the master central controller and the master regional controller are connected into a master optical fiber ring network, the slave optical fiber ring network is connected from the central controller and the slave regional controller, and the master optical fiber ring network and the slave optical fiber ring network are connected with the energy management monitor. The working mode of master-slave dual-computer hot standby is as follows: the master controller and the slave controller are configured in a port redundancy mode, and the data network synchronization between the master controller and the slave controller is not efficient, which will affect the response speed of the whole microgrid system, so that an improvement of an information synchronization method in the dual-computer hot-standby device is necessary, and the information synchronization method of the present application is described below by an embodiment.
Referring to fig. 2, an embodiment of the present application provides an information synchronization method, including:
201. the host equipment acquires a synchronous message of information to be synchronized;
in this embodiment, with reference to the microgrid system shown in fig. 1, the dual-computer hot-standby device includes a host device and a standby device, and a communication Protocol between the host device and the standby device is a User Data Protocol (UDP), and therefore, the UDP is a Protocol corresponding to the TCP. The UDP is a non-connection oriented protocol, does not establish connection with the other party, but directly sends a data packet, and is suitable for an application environment which only transmits a small amount of data at a time and has low requirement on reliability. For example, a "ping" command is often used to test whether TCP/IP communication between two hosts is normal, but the principle of the "ping" command is to send a UDP packet to the host of the other host, and then the host of the other host confirms that the packet is received, and if a message indicating whether the packet arrives is fed back in time, the network is up. After the host device obtains the information to be synchronized, in order to ensure information synchronization between the dual-device hot-standby devices, a synchronization message of the information to be synchronized needs to be generated, where the message type of the synchronization message is based on a communication protocol between the host device and the standby device, for example, if the communication protocol is UDP, then the synchronization message is UDP.
202. The host equipment determines the function type of the synchronous message according to the information type of the information to be synchronized;
in this embodiment, the host device determines the function type of the synchronization message according to the information type of the information to be synchronized, where the information type of the information to be synchronized may specifically be a port switching message, a remote signaling state message, a remote sensing data message, a remote pulse data message, a remote control operation message, an SOE message, a remote signaling displacement message, a wave recording data message, a heartbeat message, a remote control authority message, a fixed value data message, and the like, and then the synchronization message may be classified into a port switching message, a remote signaling state synchronization message, a remote sensing data synchronization message, a remote pulse data synchronization message, a remote control operation message, an SOE synchronization message, a remote signaling displacement synchronization message, a wave recording data synchronization message, a heartbeat synchronization message, a remote control authority synchronization message, a fixed value data synchronization message, and the like according to the function type.
203. The host equipment determines an information synchronization strategy according to the function type of the synchronization message;
in this embodiment, the host device determines an information synchronization policy according to the function type of the synchronization packet, where the information synchronization policy is a processing policy of the host device for the synchronization packet, and may specifically be a default priority processing of some synchronization packets, for example, to ensure efficient synchronization of information, a control command type (e.g., remote control operation message) and an SOE are preferentially executed.
204. The host equipment sends the synchronous message to the standby equipment according to the information synchronization strategy;
in this embodiment, after determining the information synchronization policy, the host device sends the synchronization packet to the standby device according to the information synchronization policy.
205. And the standby equipment executes the information synchronization of the information to be synchronized with the host equipment according to the synchronization message.
In this embodiment, after the standby device receives the synchronization packet, the standby device performs information synchronization of information to be synchronized with the host device according to the synchronization packet.
In the embodiment of the application, the dual-computer hot standby device includes a host device and a standby device, a communication protocol between the host device and the standby device is UDP, the host device obtains a synchronization packet of information to be synchronized, determines a function type of the synchronization packet according to the information type of the information to be synchronized, determines an information synchronization policy according to the function type of the synchronization packet, sends the synchronization packet to the standby device according to the information synchronization policy, and the standby device performs information synchronization of the information to be synchronized with the standby device according to the synchronization packet. The synchronous efficiency between the dual-computer hot standby equipment can be improved, and the response speed of the micro-grid system is improved.
Optionally, in some embodiments of the present application, the determining, by the host device, the information synchronization policy according to the function type of the synchronization packet includes:
the host equipment determines the synchronization priority according to the function type of the synchronization message;
when the number of the synchronous messages is at least one and the synchronous messages have different synchronous priorities, the host equipment determines an information synchronization strategy according to the synchronous priorities, and the information synchronization strategy performs information synchronization according to a descending order principle of the synchronous priorities from high to low.
In the embodiment of the application, the host device determines the synchronization priority according to the function type of the synchronization packet, and the synchronization priority may be defined in advance according to the function type of the synchronization packet, for example, the control command type (for example, a remote control message) and the priority of the SOE are set to be the highest synchronization priority, a plurality of synchronization packets may exist at the same time, and when different synchronization priorities are provided, the host device determines an information synchronization policy according to the synchronization priority, and the information synchronization policy is information synchronization according to a descending order principle of the synchronization priorities from high to low, so that a scheme of how to determine the information synchronization policy is specifically described.
Optionally, in some embodiments of the present application, before the host device obtains the synchronization packet of the information to be synchronized, the method further includes:
when the host equipment is started for the first time and the standby equipment is in a running state, the host equipment generates a data request;
the host equipment sends the data request to the standby equipment;
the standby machine equipment sends standby machine data to the host machine equipment according to the received data request;
after the host device works normally, the host device periodically acquires the holographic data of the host working port and synchronizes the holographic data to the standby device.
In the embodiment of the application, when the host device is started for the first time, if the standby device is started in advance, the standby device is in a running state, the host device does not have data of the standby device at this time, all data needs to be acquired from the standby device, the host device generates a data request, the host device sends the data request to the standby device, the standby device sends the standby data to the host device according to the received data request, after the host device works normally, a host working port of the host device can acquire running data from intelligent equipment of a microgrid system, the host device periodically acquires holographic data of the host working port, and synchronizes the holographic data to the standby device, so that the host device completes synchronization of the data from the first start to the normal running and the standby device.
Optionally, in some embodiments of the application, before the host device sends the synchronization packet to the standby device according to the information synchronization policy, the method further includes:
the host equipment judges whether the communication between the standby equipment and the micro-grid system is normal or not;
if the communication between the standby machine equipment and the micro-grid system is abnormal, the host machine equipment sends the synchronous message to the standby machine equipment according to the information synchronization strategy;
if the communication between the standby machine equipment and the micro-grid system is normal, the host machine equipment does not need to send the synchronous message to the standby machine equipment.
In the embodiment of the application, before the host device sends the synchronization message, if the communication between the standby device and the microgrid system is normal and the operation is also normal, the standby device can also acquire the information to be synchronized, the information synchronization is not needed, since the host device determines that the standby device is normally operated before the operation, only the judgment on whether the communication between the standby device and the microgrid system is normal is needed, and if the communication between the standby device and the microgrid system is abnormal, the standby device cannot acquire the information to be synchronized, the host device needs to send the synchronization message to the standby device, so that the information synchronization of the information to be synchronized is completed; if the communication between the standby machine equipment and the micro-grid system is normal, the host machine equipment does not need to send the synchronous message to the standby machine equipment, so that the waste of communication resources during the sending of the synchronous message can be saved.
Optionally, in some embodiments of the application, before the host device sends the synchronization packet to the standby device according to the information synchronization policy, the method further includes:
the host equipment judges whether the host working port is abnormal or not;
if the host working port of the host equipment is abnormal, the host equipment generates a port switching message;
the host equipment sends the port switching message to the standby equipment;
the standby machine equipment switches the working port of the standby machine from a port interception state to a data request state according to the port switching message;
the standby machine equipment sends the data acquired by the standby machine working port to the host machine equipment;
when the host working port of the host equipment returns to normal, the host equipment generates a port switching instruction and sends the port switching instruction to the standby equipment;
and the standby machine equipment switches the working port of the standby machine from the data request state to the port interception state according to the port switching instruction.
In the embodiment of the application, before the host device sends the synchronous message, whether the host working port is abnormal or not needs to be judged, and if the host working port of the host device is normal, the host device can send the synchronous message; if the host working port of the host device is abnormal and data cannot be acquired from the intelligent device, the host device generates a port switching message and sends the port switching message to the standby device, the standby device switches the standby working port from a port interception state to a data request state according to the port switching message, so that the data can be obtained from the intelligent equipment, and the standby equipment can send the data obtained by the standby working port to the host equipment, in order to ensure the uniform state of the working port, when the host working port of the host equipment recovers to be normal later, the host equipment generates a port switching instruction, actively returns the communication control right, requires the slave equipment to stop sending, sends the port switching instruction to the standby equipment, and switches the standby working port from a data request state to a port interception state according to the port switching instruction, so that the processing of the host equipment when the port is abnormal is realized.
The above implementation describes an information synchronization method, and the following describes a dual-computer hot-standby device applying the method through an embodiment.
Referring to fig. 3, an embodiment of the present application provides a dual-device hot-standby device, which is applied to a micro-grid system, and the dual-device hot-standby device includes:
the communication protocol between the host device 301 and the standby device 302 is UDP;
the host device 301 is configured to obtain a synchronization packet of information to be synchronized;
the host device 301 is further configured to determine a function type of the synchronization packet according to the information type of the information to be synchronized;
the host device 301 is further configured to determine an information synchronization policy according to the function type of the synchronization packet;
the host device 301 is further configured to send a synchronization packet to the standby device 302 according to the information synchronization policy;
the standby device 302 is further configured to perform information synchronization of the information to be synchronized with the host device 301 according to the sync message.
In this embodiment, the dual-computer hot-standby device includes a host device 301 and a standby device 302, a communication protocol between the host device 301 and the standby device 302 is UDP, the host device 301 obtains a synchronization packet of information to be synchronized, determines a function type of the synchronization packet according to the information type of the information to be synchronized, determines an information synchronization policy according to the function type of the synchronization packet, sends the synchronization packet to the standby device 302 according to the information synchronization policy, and the standby device 302 performs information synchronization of the information to be synchronized with the standby device according to the synchronization packet. The synchronous efficiency between the dual-computer hot standby equipment can be improved, and the response speed of the micro-grid system is improved.
Alternatively, in some embodiments of the present application,
the host device 301 is further configured to determine a synchronization priority according to the function type of the synchronization packet;
the host device 301 is further configured to determine an information synchronization policy according to the synchronization priority when the number of the synchronization packets is at least one and the synchronization packets have different synchronization priorities, where the information synchronization policy is to perform information synchronization according to a descending order principle of the synchronization priorities from high to low.
In this embodiment of the application, the host device 301 determines a synchronization priority according to a function type of a synchronization packet, where the synchronization priority may be defined in advance according to the function type of the synchronization packet, for example, setting a control command type (for example, a remote control message) and a priority of an SOE to be a highest synchronization priority, where a plurality of synchronization packets may exist at the same time, and when different synchronization priorities are provided, the host device 301 determines an information synchronization policy according to the synchronization priority, and the information synchronization policy is information synchronization according to a descending order principle of the synchronization priorities from high to low, so as to specifically describe a scheme how to determine the information synchronization policy.
Alternatively, in some embodiments of the present application,
the host device 301 is further configured to generate a data request when the host device 301 is started for the first time and the standby device is in a running state;
the host device 301 is further configured to send a data request to the standby device;
the standby device 302 is further configured to send standby data to the host device 301 according to the received data request;
the host device 301 is further configured to periodically acquire the holographic data of the host working port and synchronize the holographic data to the standby device 302 after the host device 301 normally works.
In the embodiment of the present application, when the host device 301 is first started, if the standby device 302 is already turned on in advance, the standby device 302 is in a running state, at this time, the host device 301 does not have data of the backup device 302, and needs to acquire all data from the backup device 302, the host device 301 generates a data request, the host device 301 transmits the data request to the backup device, the backup device 302 transmits backup data to the host device 301 according to the received data request, after the host device 301 works normally, the host working port of the host device 301 can acquire the operating data from the smart device of the microgrid system, the host device 301 periodically acquires the holographic data of the host working port, synchronizes the holographic data to the standby device, thereby completing the synchronization of the host device 301 from the first startup to the normal operation and the completion of the data by the standby device 302.
Alternatively, in some embodiments of the present application,
the host device 301 is further configured to determine whether communication between the standby device 302 and the microgrid system is normal;
the host device 301 is further configured to send a synchronization message to the standby device 302 according to an information synchronization policy if the communication between the standby device 302 and the microgrid system is not normal;
the host device 301 is further configured to, if the communication between the standby device 302 and the microgrid system is normal, not send a synchronization packet to the standby device 302.
In this embodiment of the application, before the host device 301 sends the synchronization message, if the communication between the standby device 302 and the microgrid system is normal and the operation is also normal, then the standby device 302 can also acquire the information to be synchronized, then information synchronization is not needed, since the host device 301 has previously determined that the standby device 302 is normally operating, then it is only necessary to determine whether the communication between the standby device 302 and the microgrid system is normal, and if the communication between the standby device 302 and the microgrid system is abnormal, then the standby device 302 cannot acquire the information to be synchronized, then the host device 301 needs to send the synchronization message to the standby device 302, thereby completing information synchronization of the information to be synchronized; if the communication between the standby device 302 and the microgrid system is normal, the host device 301 does not need to send the sync message to the standby device 302, so that the waste of communication resources during sending the sync message can be saved.
Alternatively, in some embodiments of the present application,
the host device 301 is further configured to determine whether the host working port is abnormal,
the host device 301 is further configured to generate a port switching message if a host working port of the host device 301 is abnormal;
the host device 301 is further configured to send a port switching message to the standby device 302;
the standby device 302 is further configured to switch the standby working port from the port listening state to the data request state according to the port switching message;
the standby device 302 is further configured to send data acquired by the standby working port to the host device 301;
the host device 301 is further configured to generate a port switching instruction when the host working port of the host device 301 returns to normal, and send the port switching instruction to the standby device 302;
the standby device 302 is further configured to switch the standby working port from the data request state to the port listening state according to the port switching indication.
In this embodiment of the present application, before the host device 301 sends the synchronization packet, it is further required to determine whether the host working port is abnormal, and if the host working port of the host device 301 is normal, the host device 301 may send the synchronization packet; if the host working port of the host device 301 is abnormal and data cannot be acquired from the intelligent device, the host device 301 generates a port switching message and transmits the port switching message to the standby device 302, the standby device 302 switches the standby working port from a port listening state to a data requesting state according to the port switching message so as to acquire data from the intelligent device, the standby device 302 transmits the data acquired by the standby working port to the host device 301, in order to ensure the working port state to be uniform, when the host working port of the host device 301 recovers to be normal later, the host device 301 generates a port switching instruction and actively returns the communication control right to request the slave device to stop transmitting, the port switching instruction is transmitted to the standby device 302, the standby device 302 switches the standby working port from the data requesting state to the port listening state according to the port switching instruction, thereby realizing the processing of the host device 301 when the port is abnormal.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. The procedures or functions described in accordance with the embodiments of the application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. An information synchronization method is characterized in that the method is applied to dual-computer hot-standby equipment of a micro-grid system, the dual-computer hot-standby equipment comprises host equipment and standby equipment, and a communication protocol between the host equipment and the standby equipment is a User Datagram Protocol (UDP), and the method comprises the following steps:
the host equipment acquires a synchronous message of information to be synchronized;
the host equipment determines the function type of the synchronous message according to the information type of the information to be synchronized;
the host device determines an information synchronization strategy according to the function type of the synchronization message, wherein the information synchronization strategy is a processing strategy of the host device for the synchronization message;
the host equipment sends the synchronous message to the standby equipment according to the information synchronization strategy;
and the standby equipment executes the information synchronization of the information to be synchronized with the host equipment according to the synchronization message.
2. The method of claim 1, wherein the determining, by the host device, an information synchronization policy according to the function type of the synchronization packet comprises:
the host equipment determines the synchronization priority according to the function type of the synchronization message;
and when the number of the synchronous messages is at least one and the synchronous messages have different synchronous priorities, the host equipment determines an information synchronization strategy according to the synchronous priorities, wherein the information synchronization strategy is to perform information synchronization according to a descending order principle of the synchronous priorities from high to low.
3. The method according to claim 1 or 2, wherein before the host device obtains the sync message of the information to be synchronized, the method further comprises:
when the host equipment is started for the first time and the standby equipment is in a running state, the host equipment generates a data request;
the host equipment sends the data request to the standby equipment;
the standby machine equipment sends standby machine data to the host machine equipment according to the received data request;
after the host device works normally, the host device periodically acquires holographic data of a host working port, and synchronizes the holographic data to the standby device.
4. The method according to claim 3, wherein before the host device sends the sync packet to the standby device according to the information synchronization policy, the method further comprises:
the host equipment judges whether the communication between the standby equipment and the micro-grid system is normal or not;
if the communication between the standby machine equipment and the micro-grid system is abnormal, the host machine equipment sends the synchronous message to the standby machine equipment according to the information synchronization strategy;
and if the communication between the standby machine equipment and the micro-grid system is normal, the host machine equipment does not need to send the synchronous message to the standby machine equipment.
5. The method according to claim 4, wherein before the host device sends the synchronization packet to the standby device according to the information synchronization policy, the method further comprises:
the host equipment judges whether the host working port is abnormal or not;
if the host working port of the host equipment is abnormal, the host equipment generates a port switching message;
the host equipment sends the port switching message to the standby equipment;
the standby machine equipment switches a standby machine working port from a port interception state to a data request state according to the port switching message;
the standby machine equipment sends the data acquired by the standby machine working port to the host machine equipment;
when the host working port of the host equipment returns to normal, the host equipment generates a port switching instruction and sends the port switching instruction to the standby equipment;
and the standby machine equipment switches the standby machine working port from the data request state to the port interception state according to the port switching indication.
6. The dual-computer hot-standby equipment is applied to a micro-grid system and comprises:
the communication protocol between the host equipment and the standby equipment is a User Datagram Protocol (UDP);
the host equipment is used for acquiring a synchronous message of information to be synchronized;
the host equipment is also used for determining the function type of the synchronous message according to the information type of the information to be synchronized;
the host device is further configured to determine an information synchronization policy according to the function type of the synchronization packet, where the information synchronization policy is a processing policy of the host device for the synchronization packet;
the host equipment is further used for sending the synchronous message to the standby equipment according to the information synchronization strategy;
and the standby equipment is also used for executing the information synchronization of the information to be synchronized according to the synchronous message and the host equipment.
7. The dual-standby device of claim 6,
the host equipment is also used for determining the synchronization priority according to the function type of the synchronization message;
the host device is further configured to determine an information synchronization policy according to the synchronization priority when the number of the synchronization packets is at least one and the synchronization packets have different synchronization priorities, where the information synchronization policy is to perform information synchronization according to a descending order principle of the synchronization priorities from high to low.
8. The apparatus according to claim 6 or 7,
the host equipment is also used for generating a data request when the host equipment is started for the first time and the standby equipment is in a running state;
the host equipment is further used for sending the data request to the standby equipment;
the standby machine equipment is also used for sending standby machine data to the host machine equipment according to the received data request;
the host device is further configured to periodically obtain holographic data of a host working port after the host device works normally, and synchronize the holographic data to the standby device.
9. The apparatus of claim 8,
the host equipment is also used for judging whether the communication between the standby equipment and the micro-grid system is normal or not;
the host equipment is further used for sending the synchronous message to the standby equipment according to the information synchronization strategy if the communication between the standby equipment and the microgrid system is abnormal;
the host device is further configured to not send the synchronization packet to the standby device if the communication between the standby device and the microgrid system is normal.
10. The apparatus of claim 9,
the host equipment is also used for judging whether the host working port is abnormal or not;
the host device is further configured to generate a port switching message if the host working port of the host device is abnormal;
the host equipment is further used for sending the port switching message to the standby equipment;
the standby machine equipment is also used for switching a working port of the standby machine from a port interception state to a data request state according to the port switching message;
the standby machine equipment is also used for sending the data acquired by the standby machine working port to the host machine equipment;
the host device is further configured to generate a port switching instruction when the host working port of the host device returns to normal, and send the port switching instruction to the standby device;
the standby equipment is further used for switching the standby working port from the data request state to the port interception state according to the port switching instruction.
CN201811242962.2A 2018-10-24 2018-10-24 Information synchronization method and dual-computer hot standby equipment Active CN109274763B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811242962.2A CN109274763B (en) 2018-10-24 2018-10-24 Information synchronization method and dual-computer hot standby equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811242962.2A CN109274763B (en) 2018-10-24 2018-10-24 Information synchronization method and dual-computer hot standby equipment

Publications (2)

Publication Number Publication Date
CN109274763A CN109274763A (en) 2019-01-25
CN109274763B true CN109274763B (en) 2022-06-07

Family

ID=65193359

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811242962.2A Active CN109274763B (en) 2018-10-24 2018-10-24 Information synchronization method and dual-computer hot standby equipment

Country Status (1)

Country Link
CN (1) CN109274763B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111371680B (en) * 2020-03-04 2022-04-29 深信服科技股份有限公司 Route management method, device, equipment and storage medium for dual-computer hot standby
CN114006756A (en) * 2021-10-29 2022-02-01 北京天融信网络安全技术有限公司 Data synchronization method based on attack message, host, standby machine and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1741404A (en) * 2004-08-27 2006-03-01 华为技术有限公司 Method for negat main spare board in communication equipment
CN101056195A (en) * 2006-04-14 2007-10-17 中兴通讯股份有限公司 Data synchronization method between the main board and spare board in the communication system
CN102142999A (en) * 2011-03-28 2011-08-03 华为技术有限公司 Method, equipment and system for recovering links
JP2013175852A (en) * 2012-02-24 2013-09-05 Nec Saitama Ltd Time synchronization system, master unit, slave unit, time synchronization method and time synchronization program
CN103401789A (en) * 2013-07-23 2013-11-20 杭州华三通信技术有限公司 Method and equipment for transmitting LSP (Link State Protocol Data Unit) messages
WO2016095344A1 (en) * 2014-12-17 2016-06-23 中兴通讯股份有限公司 Link switching method and device, and line card

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1741404A (en) * 2004-08-27 2006-03-01 华为技术有限公司 Method for negat main spare board in communication equipment
CN101056195A (en) * 2006-04-14 2007-10-17 中兴通讯股份有限公司 Data synchronization method between the main board and spare board in the communication system
CN102142999A (en) * 2011-03-28 2011-08-03 华为技术有限公司 Method, equipment and system for recovering links
JP2013175852A (en) * 2012-02-24 2013-09-05 Nec Saitama Ltd Time synchronization system, master unit, slave unit, time synchronization method and time synchronization program
CN103401789A (en) * 2013-07-23 2013-11-20 杭州华三通信技术有限公司 Method and equipment for transmitting LSP (Link State Protocol Data Unit) messages
WO2016095344A1 (en) * 2014-12-17 2016-06-23 中兴通讯股份有限公司 Link switching method and device, and line card

Also Published As

Publication number Publication date
CN109274763A (en) 2019-01-25

Similar Documents

Publication Publication Date Title
CN106331098B (en) Server cluster system
CN103744809B (en) Vehicle information management system double hot standby method based on VRRP
CN108234191A (en) The management method and device of cloud computing platform
CN103812823A (en) Method, device and system for configuration information migration in thermal migration of virtual machine
CN109274763B (en) Information synchronization method and dual-computer hot standby equipment
CN110868278B (en) Method for dual-computer redundancy of communication front-end processor of rail transit comprehensive monitoring system
CN109218232A (en) A kind of method that realizing Mux machine, equipment and system
CN112612769A (en) File processing method, device and storage medium
CN108737006A (en) A kind of method for synchronizing time, client and computer readable storage medium
CN109150709A (en) A kind of method that realizing Mux machine, equipment and system
CN103259639B (en) A kind of clock synchronizing method of stack equipment and equipment
CN114978871B (en) Node switching method and node switching device of service system and electronic equipment
CN112820092B (en) Method for collecting electricity consumption data, terminal equipment and storage medium
CN115567400A (en) Whole cabinet management method, device, equipment and medium
CN114221882A (en) Method, device, equipment and storage medium for detecting fault link
CN113133097B (en) Wireless communication method and system
CN114363111A (en) Method for determining parallel operation master-slave relationship of communication power supply equipment based on CAN protocol
CN114338361A (en) Communication method of communication device, communication device and distributed control system
CN106992890B (en) Multi-server switching method and system
CN204390224U (en) A kind of fault-tolerant master-slave synchronisation serial communication system based on FPGA
CN110086657B (en) Configuration synchronization method and device
CN114301763A (en) Distributed cluster fault processing method and system, electronic device and storage medium
CN106992889B (en) Multi-server switching method and system
CN114189565B (en) Head area restoration system, method and related equipment
CN115277375B (en) Method, system, equipment and storage medium for switching master server and standby server

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

Address after: 361000 Ma Long Road 457, Torch Garden, Xiamen Torch High-tech Zone, Fujian Province

Applicant after: XIAMEN KEHUAHENGSHENG LIMITED BY SHARE Ltd.

Applicant after: ZHANGZHOU KEHUA TECHNOLOGY Co.,Ltd.

Address before: 361000 torch garden, torch high tech Zone, Xiamen, Fujian 457

Applicant before: XIAMEN KEHUA HENGSHENG Co.,Ltd.

Applicant before: ZHANGZHOU KEHUA TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 361000 Ma Long Road 457, Torch Garden, Xiamen Torch High-tech Zone, Fujian Province

Patentee after: Kehua Data Co.,Ltd.

Patentee after: ZHANGZHOU KEHUA TECHNOLOGY Co.,Ltd.

Address before: 361000 Ma Long Road 457, Torch Garden, Xiamen Torch High-tech Zone, Fujian Province

Patentee before: XIAMEN KEHUAHENGSHENG LIMITED BY SHARE Ltd.

Patentee before: ZHANGZHOU KEHUA TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder
TR01 Transfer of patent right

Effective date of registration: 20220629

Address after: 361001 room 208-38, Hengye building, No. 100, Xiangxing Road, Xiamen Torch High tech Zone (Xiang'an) Industrial Zone, Xiamen, Fujian

Patentee after: Xiamen Kehua shuneng Technology Co.,Ltd.

Address before: 361000 Ma Long Road 457, Torch Garden, Xiamen Torch High-tech Zone, Fujian Province

Patentee before: Kehua Data Co.,Ltd.

Patentee before: ZHANGZHOU KEHUA TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right