CN113556248B - Cluster measurement and control dynamic deployment method, device, equipment and storage medium - Google Patents

Cluster measurement and control dynamic deployment method, device, equipment and storage medium Download PDF

Info

Publication number
CN113556248B
CN113556248B CN202110807683.1A CN202110807683A CN113556248B CN 113556248 B CN113556248 B CN 113556248B CN 202110807683 A CN202110807683 A CN 202110807683A CN 113556248 B CN113556248 B CN 113556248B
Authority
CN
China
Prior art keywords
control
measurement
virtual
cluster
address
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
CN202110807683.1A
Other languages
Chinese (zh)
Other versions
CN113556248A (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.)
Guangdong Power Grid Co Ltd
Original Assignee
Guangdong Power Grid 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 Guangdong Power Grid Co Ltd filed Critical Guangdong Power Grid Co Ltd
Priority to CN202110807683.1A priority Critical patent/CN113556248B/en
Publication of CN113556248A publication Critical patent/CN113556248A/en
Application granted granted Critical
Publication of CN113556248B publication Critical patent/CN113556248B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types

Abstract

The invention discloses a cluster measurement and control dynamic deployment method, device, equipment and storage medium, and relates to the technical field of electronic information. The method comprises the following steps: a plurality of cluster measurement and control hosts acquire and analyze CID files, and a virtual measurement and control container is constructed according to the CID files; the CID file comprises a function description and a virtual IP address of a virtual measurement and control container; determining that a certain cluster measurement and control host is in an on-duty state through a distributed communication protocol among the cluster measurement and control host, and binding a virtual IP address with the MAC address of the cluster measurement and control host determined as the on-duty state to obtain address corresponding information; and feeding the address corresponding information back to a data transmission background to realize bidirectional positioning of the data packet and finish deployment. The invention can solve the problems that the virtual measurement and control container in the duty state has faults and the communication switching is complex.

Description

Cluster measurement and control dynamic deployment method, device, equipment and storage medium
Technical Field
The present invention relates to the field of electronic information technologies, and in particular, to a method, an apparatus, a device, and a storage medium for dynamic deployment of cluster measurement and control.
Background
The intelligent substation is an important component of intelligent power grid construction and is a foundation for safe and stable operation of the power grid. The intelligent substation monitoring system is generally built according to three layers of structures of a process layer, a spacing layer and a station control layer, and a process layer network and a spacing layer network are respectively and independently arranged. In order to reduce the number and complexity of measurement and control devices in the intelligent substation and improve the reliability, schemes such as centralized measurement and control, centralized cold standby measurement and control, cluster measurement and control and the like are provided. The cluster measurement and control greatly reduces the number of devices, has certain redundancy standby capability, and realizes redundancy standby or clustered application of the measurement and control device through key technologies such as function virtualization, dynamic deployment and migration and the like.
The application in the cluster only runs on one server, if the application fails, other servers restart the application, take over the data area on the shared disk cabinet, and then enable the application to run again normally. The overall application take over process generally requires three steps: detecting and confirming a fault, restarting the application by the backup server, and taking over the shared data area. Therefore, a certain time is required in the switching process, and in principle, the switching time can be different according to the size of the application, and the larger the application is, the longer the switching time is.
Disclosure of Invention
The invention aims to provide a cluster measurement and control dynamic deployment method, device, equipment and storage medium, which are used for solving the problem that an on-duty virtual measurement and control container fails and the communication switching is complex.
In order to achieve the above purpose, the present invention provides a dynamic deployment method for cluster measurement and control, which is applied between a plurality of cluster measurement and control hosts, and the method comprises:
a plurality of cluster measurement and control hosts acquire and analyze CID files, and a virtual measurement and control container is constructed according to the CID files; the CID file comprises a function description and a virtual IP address of a virtual measurement and control container;
determining that a certain cluster measurement and control host is in an on-duty state through a distributed communication protocol among the cluster measurement and control host, and binding a virtual IP address with the MAC address of the cluster measurement and control host determined as the on-duty state to obtain address corresponding information;
and feeding the address corresponding information back to a data transmission background to realize bidirectional positioning of the data packet and finish deployment.
Preferably, the cluster measurement and control dynamic deployment method further comprises:
the cluster measurement and control host computer in the duty state sends a heartbeat message to the subordinate virtual measurement and control container, and judges that the virtual measurement and control container corresponding to a certain virtual IP address has a fault when the heartbeat message is not fed back by the virtual measurement and control container corresponding to the virtual IP address within a preset time period;
when judging that the virtual measurement and control container corresponding to a certain virtual IP address fails, sending failure information to other cluster measurement and control hosts in the host cluster so as to realize the switching of the virtual measurement and control container.
Preferably, when judging that the virtual measurement and control container corresponding to a certain virtual IP address fails, sending failure information to other cluster measurement and control hosts in the host cluster to implement virtual measurement and control container switching, including:
searching a cluster measurement and control host machine with a virtual IP address of a fault virtual measurement and control container through a distributed communication protocol among the cluster measurement and control host machines, switching a certain cluster measurement and control host machine from a non-duty state to a duty state, binding the virtual IP address with an MAC address of the cluster measurement and control host machine determined to be the duty state, and obtaining address corresponding information;
and feeding the address corresponding information back to a data transmission background to realize bidirectional positioning of the data packet and complete new deployment.
Preferably, when judging that the virtual measurement and control container corresponding to a certain virtual IP address fails, the method sends failure information to other cluster measurement and control hosts in the host cluster to realize switching of the virtual measurement and control container, and further includes:
obtaining the final communication link state of the fault virtual measurement and control container through a distributed database among the cluster measurement and control hosts;
and forwarding the final communication link state to a cluster measurement and control host computer switched from a non-duty state to a duty state, so as to realize lossless switching of the data transmission state.
The invention also provides a cluster measurement and control dynamic deployment device, which is characterized by comprising a plurality of cluster measurement and control hosts, wherein the cluster measurement and control hosts comprise:
the container construction module is used for acquiring and analyzing the CID file and constructing a virtual measurement and control container according to the CID file; the CID file comprises a function description and a virtual IP address of a virtual measurement and control container;
the on-duty confirmation module is used for determining that a certain cluster measurement and control host is on-duty through a distributed communication protocol among the cluster measurement and control host, binding the virtual IP address with the MAC address of the cluster measurement and control host determined as the on-duty, and obtaining address corresponding information;
and the address feedback module is used for feeding back the address corresponding information to the data transmission background so as to realize bidirectional positioning of the data packet and complete deployment.
Preferably, the cluster measurement and control host further includes:
the fault monitoring module is used for sending heartbeat messages to the subordinate virtual measurement and control containers when the cluster measurement and control host machine is in an on-duty state, and judging that the virtual measurement and control container corresponding to a certain virtual IP address has faults when the heartbeat messages are not fed back by the virtual measurement and control container corresponding to the virtual IP address within a preset time period;
and the container switching module is used for sending fault information to other cluster measurement and control hosts in the host cluster when judging that the virtual measurement and control container corresponding to a certain virtual IP address has faults, so as to realize the switching of the virtual measurement and control container.
Preferably, the container switching module includes:
the host determining unit is used for searching the cluster measurement and control host with the virtual IP address of the fault virtual measurement and control container through a distributed communication protocol among the cluster measurement and control host, switching a certain cluster measurement and control host from a non-duty state to a duty state, and binding the virtual IP address with the MAC address of the cluster measurement and control host determined to be the duty state to obtain address corresponding information;
and the address updating unit is used for feeding back the address corresponding information to the data transmission background so as to realize bidirectional positioning of the data packet and complete new deployment.
Preferably, the container switching module further comprises:
obtaining the final communication link state of the fault virtual measurement and control container through a distributed database among the cluster measurement and control hosts;
and forwarding the final communication link state to a cluster measurement and control host computer switched from a non-duty state to a duty state, so as to realize lossless switching of the data transmission state.
The embodiment of the invention also provides computer terminal equipment which comprises one or more processors and a memory. A memory coupled to the processor for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the cluster measurement and control dynamic deployment method according to any one of the embodiments.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, the computer program, when executed by a processor, implementing the cluster measurement and control dynamic deployment method according to any of the above embodiments.
Compared with the prior art, the invention has the following beneficial effects:
the invention provides a cluster measurement and control dynamic deployment method, which is applied among a plurality of cluster measurement and control hosts, and comprises the following steps: a plurality of cluster measurement and control hosts acquire and analyze CID files, and a virtual measurement and control container is constructed according to the CID files; the CID file comprises a function description and a virtual IP address of a virtual measurement and control container; determining that a certain cluster measurement and control host is in an on-duty state through a distributed communication protocol among the cluster measurement and control host, and binding a virtual IP address with the MAC address of the cluster measurement and control host determined as the on-duty state to obtain address corresponding information; and feeding the address corresponding information back to a data transmission background to realize bidirectional positioning of the data packet and finish deployment. According to the invention, when the virtual measurement and control container on duty fails and communication switching is needed, the monitoring background does not need to modify communication configuration, the new virtual measurement and control container on duty provides communication service with the original virtual IP, and after the communication switching, the integrity of data transmission is not affected.
Drawings
In order to more clearly illustrate the technical solutions of the present invention, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a method for dynamic deployment of cluster measurement and control according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for dynamic deployment of cluster measurement and control according to another embodiment of the present invention;
FIG. 3 is a schematic flow chart of binding virtual IP addresses in a cluster measurement and control dynamic deployment method according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a dynamic deployment device for cluster measurement and control according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a dynamic deployment device for cluster measurement and control according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer terminal device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the step numbers used herein are for convenience of description only and are not limiting as to the order in which the steps are performed.
It is to be understood that the terminology used in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
The terms "comprises" and "comprising" indicate the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
The term "and/or" refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Referring to fig. 1, fig. 1 is a flow chart of a method for dynamic deployment of cluster measurement and control according to an embodiment of the invention. In this embodiment, a method for dynamically deploying cluster measurement and control is applied between a plurality of cluster measurement and control hosts, and the method includes the following steps:
s110, a plurality of cluster measurement and control hosts acquire and analyze CID files, and a virtual measurement and control container is constructed according to the CID files; the CID file comprises a function description and a virtual IP address of a virtual measurement and control container;
s120, determining that a certain cluster measurement and control host is in an on-duty state through a distributed communication protocol among the cluster measurement and control host, and binding a virtual IP address with the MAC address of the cluster measurement and control host determined as the on-duty state to obtain address corresponding information;
s130, feeding the address corresponding information back to a data transmission background to realize bidirectional positioning of the data packet, and completing deployment.
Referring to fig. 2, fig. 2 is a flow chart of a cluster measurement and control dynamic deployment method according to another embodiment of the invention. In this embodiment, the cluster measurement and control dynamic deployment method further includes the following steps:
s140, the cluster measurement and control host computer in the duty state sends a heartbeat message to the subordinate virtual measurement and control container, and judges that the virtual measurement and control container corresponding to a certain virtual IP address has a fault when the heartbeat message is not fed back by the virtual measurement and control container corresponding to the virtual IP address in a preset time period;
and S150, when judging that the virtual measurement and control container corresponding to a certain virtual IP address fails, sending failure information to other cluster measurement and control hosts in the host cluster so as to realize the switching of the virtual measurement and control container.
In a certain embodiment, step S150, when judging that a virtual measurement and control container corresponding to a certain virtual IP address fails, sends failure information to other cluster measurement and control hosts in the host cluster, so as to implement virtual measurement and control container switching, specifically includes:
searching a cluster measurement and control host machine with a virtual IP address of a fault virtual measurement and control container through a distributed communication protocol among the cluster measurement and control host machines, switching a certain cluster measurement and control host machine from a non-duty state to a duty state, binding the virtual IP address with an MAC address of the cluster measurement and control host machine determined to be the duty state, and obtaining address corresponding information;
and feeding the address corresponding information back to a data transmission background to realize bidirectional positioning of the data packet and complete new deployment.
In a certain embodiment, step S150, when judging that the virtual measurement and control container corresponding to a certain virtual IP address fails, sends failure information to the other cluster measurement and control hosts in the host cluster, so as to implement virtual measurement and control container switching, and further includes:
obtaining the final communication link state of the fault virtual measurement and control container through a distributed database among the cluster measurement and control hosts;
and forwarding the final communication link state to a cluster measurement and control host computer switched from a non-duty state to a duty state, so as to realize lossless switching of the data transmission state.
In the embodiment of the invention, a plurality of cluster measurement and control hosts form a cluster measurement and control host cluster together, and each cluster measurement and control host can run a plurality of virtual measurement and control container examples. Multiple virtual measurement and control containers sharing the same virtual measurement and control configuration are considered to be the same set of virtual measurement and control containers. In the same group of virtual measurement and control containers, only one virtual measurement and control container is in an on-duty state and is responsible for monitoring and communicating the background of the station-control layer transformer substation. Other virtual measurement and control containers can be used as redundant backup examples in a cold standby or hot standby mode respectively.
When the virtual measurement and control container in the on-duty state fails and needs to be switched, the virtual measurement and control container in the hot standby state dynamically binds the shared virtual IP, takes over the work of the original on-duty virtual measurement and control container, and resumes the background monitoring communication of the station-controlled layer substation.
For example, the cluster measurement and control host a includes virtual measurement and control containers Aa, ab, and Ac, the cluster measurement and control host B includes virtual measurement and control containers Ba, bb, and Bc, and the virtual measurement and control containers Aa and Ba are generated by parsing the same cid file, have the same configuration, and have the same virtual IP. At this time, if the virtual measurement and control containers Aa and Ba communicate externally, confusion is caused, so that the containers in the same host machine are preferably allowed to communicate externally, for example, the container Aa Ab Ac of the host machine a communicates externally at a certain moment. If vessel Aa fails at this point (program crashes, etc.), then operation is continued with Ba successor Aa, i.e., the operating vessel includes Ba, ab, and Ac.
During normal operation, the virtual measurement and control container in the operation state needs to be communicated with the background according to a set time interval; and when the cluster measurement and control host machine does not detect the message sent from the container to the background within a fixed time interval, judging the failure of the container. And then the host unbinds the virtual IP of the fault container from the network card thereof, and sends fault information to the standby cluster measurement and control host, and the standby cluster measurement and control host binds the IP of the fault container with the network card thereof (the configuration of the containers of the same type is the same, and the virtual IP is the same), namely the virtual network card of the virtual measurement and control container switched to the hot standby state is bridged with the virtual network card of the cluster measurement and control host, and a corresponding container working mechanism is activated to replace the fault container to operate.
In a specific embodiment, the dynamic deployment method of cluster measurement and control is applied among three cluster measurement and control hosts, after the cluster measurement and control hosts A, B and C are powered on, CID files are respectively analyzed, the function description, parameters and the like of the virtual measurement and control device a are respectively obtained, the parameters comprise IP addresses, a container is generated by using a dock technology, and a container virtual network card is bridged with a dock 0 network card; determining that a certain cluster measurement and control host is on duty through a distributed communication protocol, such as a distributed consistency algorithm (RAFT), between the cluster measurement and control host A, B and the C, and starting binding of the virtual IP and the network card; the cluster measurement and control host binds the IP with the physical network card through an IP command and informs the corresponding relation of the background IP-MAC through an Address Resolution Protocol (ARP); the virtual measurement and control container Aa communicates with the background with the IP and port number 102. Wherein the MAC addresses of different hosts are different, and the list of container virtual IP addresses contained therein is the same. IP and port numbers are defined by CID and background, no change is allowed, but no IP is in the container, and another port number is used, for example, the internal port number is (container number 10000+102) =10102; this requires the mapping process of the cluster measurement and control hosts, and the adopted technology is that iptables, pre-routing and bridging are components of the iptables technology.
In one embodiment, when receiving data, the destination address of the data packet of the port with the destination port being 102 is redirected to the virtual measurement and control container by taking the destination address as virtual IP in the PRERROUTING chain; (e.g., mapping 102 ports to 10102 ports). When data is transmitted: the source address is used as a virtual observing and controlling container in the POSTROUTING chain, and the source address of the data packet from the 102 port is modified into virtual IP. The data synchronization process then sends the current communication link data to the distributed database.
In a certain embodiment, when judging that a virtual measurement and control container corresponding to a certain virtual IP address fails, fault information is sent to other cluster measurement and control hosts in the host cluster, so that virtual measurement and control container switching is realized. Specifically, the cluster measurement and control host machine where the fault virtual measurement and control container is located unbundles the virtual IP from the physical network card, and unbundles the fault port (such as 10102) with the IP; the hot standby state cluster measurement and control host binds the IP with the physical network card, binds a certain port (10102) with the IP, acquires synchronous information from the redundant node, replaces related data in the container, replaces a fault container to work, and realizes the switching of the virtual measurement and control container. The host cluster comprises a plurality of virtual measurement and control containers, and the plurality of virtual measurement and control containers sharing the same virtual measurement and control configuration are regarded as the same group of virtual measurement and control containers. In the same group of virtual measurement and control containers, only one virtual measurement and control container is in an on-duty state and is responsible for monitoring and communicating the background of the station-control layer transformer substation. Other virtual measurement and control containers can be used as redundant backup examples in a cold standby or hot standby mode respectively.
In one embodiment of the present invention, a virtual IP address is bound on a physical network card, that is, the virtual IP address is bound with a MAC address of a cluster measurement and control host determined to be on duty, so as to obtain address correspondence information, which specifically includes the following steps: 1) And confirming that the cluster measurement and control host has the virtual IP address through a distributed communication protocol (RAFT protocol is adopted in the embodiment) among the cluster measurement and control hosts. 2) And adding a corresponding virtual IP on the local physical network card through the IP command. 3) And notifying the station control layer of background monitoring through an ARP protocol, wherein the MAC address corresponding to the virtual IP is changed.
Referring to fig. 3, fig. 3 shows a technical scheme of binding a virtual IP address on a physical network card by using a NAT method with a 61850MMS server service port in a running container. The method specifically comprises the following steps: 1) The virtual measurement and control container starts the container in a bridge mode. At this time, the virtual network card named dock 0 on the host computer will bridge to the virtual network card on the related virtual measurement and control container. 2) The method comprises the steps of configuring iptables in a cluster host, and realizing virtual IP mapping of 102 ports (102 is an external service port of MMS Server): by redirecting the destination address to virtual IP in the pre-routing chain, the packet destination address for destination port 102 is redirected to the virtual fabric container. The source address of the data packet with the source port of 102 is modified to be virtual IP in the POSTROUTING chain as a virtual measurement and control container.
In the embodiment of the invention, when the virtual measurement and control container is in an on-duty state, the current communication link data is sent to redundant data nodes defined by a distributed database among the cluster measurement and control hosts. The method specifically comprises the following steps: 1) The cluster measurement and control hosts realize a distributed database through a Raft protocol, and the running state of each virtual measurement and control container instance is confirmed through the distributed consistency of the database. 2) The distributed database has high cost, is only used for storing the source of data storage, and particularly data content, and is distributed on two nodes in the cluster through a redundancy strategy. 3) The virtual measurement and control container transmits the communication state to redundant data nodes defined in the distributed database in real time (the hosts of the same group of hot standby virtual measurement and control containers are common).
In the embodiment of the invention, the last data transmission state of the obtained original virtual measurement and control container is injected into the communication service process in the virtual measurement and control container on duty. The communication service process in the virtual measurement and control container modifies the entity_id and the data to-be-transmitted buffer in the BRCB report control block in communication, and continues the residual data transmission. The method specifically comprises the following steps: 1) And when the hot standby state (or cold standby state) virtual measurement and control container is lifted to be the duty virtual measurement and control container, reading communication state data in the redundant data node. 2) The associated communication link state data in the present container, and in particular the ENTITY _ ID and data transmission buffers, is modified to continue the remaining data transfer. After binding is completed and connection is established with the background, the communication link state data in the hot standby state virtual measurement and control container is changed into the communication link connected state, and the entity_ID and the data sending buffer zone in the hot standby state virtual measurement and control container are covered by corresponding data in the distributed database.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a cluster measurement and control dynamic deployment device according to an embodiment of the invention. The invention provides a cluster measurement and control dynamic deployment device, which comprises a plurality of cluster measurement and control hosts, wherein the cluster measurement and control hosts comprise:
the container construction module 210 is configured to acquire and parse a CID file, and construct a virtual measurement and control container according to the CID file; the CID file comprises a function description and a virtual IP address of a virtual measurement and control container;
the duty confirmation module 220 is configured to determine that a certain cluster measurement and control host is in a duty state through a distributed communication protocol between the cluster measurement and control hosts, and bind a virtual IP address with a MAC address of the cluster measurement and control host determined as the duty state to obtain address corresponding information;
the address feedback module 230 is configured to feed back the address corresponding information to the data transmission background, so as to implement bidirectional positioning of the data packet, and complete deployment.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a cluster measurement and control dynamic deployment device according to an embodiment of the invention. In this embodiment, the cluster measurement and control host further includes:
the fault monitoring module 240 is configured to send a heartbeat message to a virtual measurement and control container that is subordinate to the cluster measurement and control host when the cluster measurement and control host is in an on-duty state, and determine that the virtual measurement and control container corresponding to a certain virtual IP address has a fault when the heartbeat message is not fed back by the virtual measurement and control container corresponding to the virtual IP address within a preset time period;
the container switching module 250 is configured to send fault information to the other cluster measurement and control hosts in the host cluster when judging that the virtual measurement and control container corresponding to a certain virtual IP address has a fault, so as to implement virtual measurement and control container switching.
In an embodiment of the present invention, the container switching module 250 includes: the host determining unit is used for searching the cluster measurement and control host with the virtual IP address of the fault virtual measurement and control container through a distributed communication protocol among the cluster measurement and control host, switching a certain cluster measurement and control host from a non-duty state to a duty state, and binding the virtual IP address with the MAC address of the cluster measurement and control host determined to be the duty state to obtain address corresponding information; and the address updating unit is used for feeding back the address corresponding information to the data transmission background so as to realize bidirectional positioning of the data packet and complete new deployment.
In an embodiment of the present invention, the container switching module 250 further includes: the state analysis unit is used for obtaining the final communication link state of the fault virtual measurement and control container through a distributed database among the cluster measurement and control hosts; and the state switching unit forwards the final communication link state to the cluster measurement and control host computer switched from the non-duty state to the duty state, so as to realize the lossless switching of the data transmission state.
The specific limitation of the cluster measurement and control dynamic deployment device can be referred to the limitation of the cluster measurement and control dynamic deployment method, and is not repeated here. All or part of the modules in the cluster measurement and control dynamic deployment device can be realized by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
Referring to fig. 6, an embodiment of the present invention provides a computer terminal device including one or more processors and a memory. The memory is coupled to the processor and is configured to store one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the cluster measurement and control dynamic deployment method in any of the embodiments described above.
The processor is used for controlling the whole operation of the computer terminal equipment so as to complete all or part of the steps of the cluster measurement and control dynamic deployment method. The memory is used to store various types of data to support operation at the computer terminal device, which may include, for example, instructions for any application or method operating on the computer terminal device, as well as application-related data. The Memory may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as static random access Memory (Static Random Access Memory, SRAM for short), electrically erasable programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM for short), erasable programmable Read-Only Memory (Erasable Programmable Read-Only Memory, EPROM for short), programmable Read-Only Memory (Programmable Read-Only Memory, PROM for short), read-Only Memory (ROM for short), magnetic Memory, flash Memory, magnetic disk or optical disk.
In an exemplary embodiment, the computer terminal device may be implemented by one or more application specific integrated circuits (Application Specific, ntegrated Circuit, abbreviated AS 1C), digital signal processors (Digital Signal Processor, abbreviated DSP), digital signal processing devices (Digital Signal Processing Device, abbreviated DSPD), programmable logic devices (Programmable Logic Device, abbreviated PLD), field programmable gate arrays (Field Programmable Gate Array, abbreviated FPGA), controllers, microcontrollers, microprocessors, or other electronic components for performing the cluster measurement and control dynamic deployment method described above, and achieving technical effects consistent with the method described above.
In another exemplary embodiment, a computer readable storage medium is also provided, comprising program instructions which, when executed by a processor, implement the steps of the cluster measurement and control dynamic deployment method in any of the embodiments described above. For example, the computer readable storage medium may be the above memory including program instructions executable by a processor of the computer terminal device to perform the above cluster measurement and control dynamic deployment method, and achieve technical effects consistent with the above method.
Regarding the dynamic deployment of the cluster measurement and control, the externally exposed virtual IP address of the virtual measurement and control in the cluster measurement and control can be obtained by reading 61850SCD (Substation Configuration Description ) total station model files, and the appropriate cluster measurement and control host is selected according to the load condition of each host of the cluster measurement and control, so that the corresponding virtual measurement and control container is operated. According to the invention, when the virtual measurement and control container on duty fails and communication switching is needed, the monitoring background does not need to modify communication configuration, the new virtual measurement and control container on duty provides communication service with the original virtual IP, and after the communication switching, the integrity of data transmission is not affected.
While the foregoing is directed to the preferred embodiments of the present invention, it will be appreciated by those skilled in the art that changes and modifications may be made without departing from the principles of the invention, such changes and modifications are also intended to be within the scope of the invention.

Claims (8)

1. The cluster measurement and control dynamic deployment method is characterized by being applied among a plurality of cluster measurement and control hosts, and comprises the following steps:
a plurality of cluster measurement and control hosts acquire and analyze CID files, and a virtual measurement and control container is constructed according to the CID files; the CID file comprises a function description and a virtual IP address of a virtual measurement and control container; each cluster measurement and control host operates with a plurality of virtual measurement and control containers, and the plurality of virtual measurement and control containers sharing the same virtual measurement and control configuration are used as the same group of virtual measurement and control containers;
determining that a certain cluster measurement and control host is in an on-duty state through a distributed communication protocol among the cluster measurement and control host, and binding a virtual IP address with the MAC address of the cluster measurement and control host determined as the on-duty state to obtain address corresponding information; in the same group of virtual measurement and control containers, only one virtual measurement and control container is in an on-duty state;
feeding back the address corresponding information to a data transmission background to realize bidirectional positioning of the data packet, and completing deployment;
the cluster measurement and control host computer in the duty state sends a heartbeat message to the subordinate virtual measurement and control container, and judges that the virtual measurement and control container corresponding to a certain virtual IP address has a fault when the heartbeat message is not fed back by the virtual measurement and control container corresponding to the virtual IP address within a preset time period;
when judging that the virtual measurement and control container corresponding to a certain virtual IP address fails, sending failure information to other cluster measurement and control hosts in the host cluster so as to realize the switching of the virtual measurement and control container.
2. The method for dynamically deploying cluster measurement and control according to claim 1, wherein when judging that a virtual measurement and control container corresponding to a certain virtual IP address fails, sending failure information to other cluster measurement and control hosts in the host cluster to realize switching of the virtual measurement and control container, comprises:
searching a cluster measurement and control host machine with a virtual IP address of a fault virtual measurement and control container through a distributed communication protocol among the cluster measurement and control host machines, switching a certain cluster measurement and control host machine from a non-duty state to a duty state, binding the virtual IP address with an MAC address of the cluster measurement and control host machine determined to be the duty state, and obtaining address corresponding information;
and feeding the address corresponding information back to a data transmission background to realize bidirectional positioning of the data packet and complete new deployment.
3. The method for dynamically deploying cluster measurement and control according to claim 2, wherein when judging that a virtual measurement and control container corresponding to a certain virtual IP address fails, sending failure information to other cluster measurement and control hosts in the host cluster to realize switching of the virtual measurement and control container, further comprising:
obtaining the final communication link state of the fault virtual measurement and control container through a distributed database among the cluster measurement and control hosts;
and forwarding the final communication link state to a cluster measurement and control host computer switched from a non-duty state to a duty state, so as to realize lossless switching of the data transmission state.
4. The cluster measurement and control dynamic deployment device is characterized by comprising a plurality of cluster measurement and control hosts, wherein the cluster measurement and control hosts comprise:
the container construction module is used for acquiring and analyzing the CID file and constructing a virtual measurement and control container according to the CID file; the CID file comprises a function description and a virtual IP address of a virtual measurement and control container; each cluster measurement and control host operates with a plurality of virtual measurement and control containers, and the plurality of virtual measurement and control containers sharing the same virtual measurement and control configuration are used as the same group of virtual measurement and control containers;
the on-duty confirmation module is used for determining that a certain cluster measurement and control host is on-duty through a distributed communication protocol among the cluster measurement and control host, binding the virtual IP address with the MAC address of the cluster measurement and control host determined as the on-duty, and obtaining address corresponding information;
the address feedback module is used for feeding back the address corresponding information to the data transmission background so as to realize bidirectional positioning of the data packet and complete deployment;
the fault monitoring module is used for sending heartbeat messages to the subordinate virtual measurement and control containers when the cluster measurement and control host machine is in an on-duty state, and judging that the virtual measurement and control container corresponding to a certain virtual IP address has faults when the heartbeat messages are not fed back by the virtual measurement and control container corresponding to the virtual IP address within a preset time period;
and the container switching module is used for sending fault information to other cluster measurement and control hosts in the host cluster when judging that the virtual measurement and control container corresponding to a certain virtual IP address has faults, so as to realize the switching of the virtual measurement and control container.
5. The cluster measurement and control dynamic deployment device of claim 4, wherein the container switching module comprises:
the host determining unit is used for searching the cluster measurement and control host with the virtual IP address of the fault virtual measurement and control container through a distributed communication protocol among the cluster measurement and control host, switching a certain cluster measurement and control host from a non-duty state to a duty state, and binding the virtual IP address with the MAC address of the cluster measurement and control host determined to be the duty state to obtain address corresponding information;
and the address updating unit is used for feeding back the address corresponding information to the data transmission background so as to realize bidirectional positioning of the data packet and complete new deployment.
6. The cluster measurement and control dynamic deployment device of claim 5, wherein the container switching module further comprises:
obtaining the final communication link state of the fault virtual measurement and control container through a distributed database among the cluster measurement and control hosts;
and forwarding the final communication link state to a cluster measurement and control host computer switched from a non-duty state to a duty state, so as to realize lossless switching of the data transmission state.
7. A computer terminal device, comprising:
one or more processors;
a memory coupled to the processor for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the cluster measurement and control dynamic deployment method of any of claims 1 to 3.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements the cluster measurement and control dynamic deployment method according to any of claims 1 to 3.
CN202110807683.1A 2021-07-16 2021-07-16 Cluster measurement and control dynamic deployment method, device, equipment and storage medium Active CN113556248B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110807683.1A CN113556248B (en) 2021-07-16 2021-07-16 Cluster measurement and control dynamic deployment method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110807683.1A CN113556248B (en) 2021-07-16 2021-07-16 Cluster measurement and control dynamic deployment method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113556248A CN113556248A (en) 2021-10-26
CN113556248B true CN113556248B (en) 2023-05-12

Family

ID=78131947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110807683.1A Active CN113556248B (en) 2021-07-16 2021-07-16 Cluster measurement and control dynamic deployment method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113556248B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114257568A (en) * 2021-12-09 2022-03-29 深圳市广和通无线股份有限公司 Data transmission method and related equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109344014A (en) * 2018-09-26 2019-02-15 新华三大数据技术有限公司 A kind of main/standby switching method, device and communication equipment
CN109391038A (en) * 2018-12-24 2019-02-26 积成电子股份有限公司 A kind of dispositions method of intelligent substation interval observing and controlling function
CN112073224A (en) * 2020-08-20 2020-12-11 许继电气股份有限公司 Intelligent substation interval electrical equipment measurement and control system and method
CN112271816A (en) * 2020-09-14 2021-01-26 许继电气股份有限公司 Intelligent substation cluster measurement and control system and measurement and control method thereof
CN112398688A (en) * 2020-11-13 2021-02-23 广东省华南技术转移中心有限公司 Container network configuration method, container network system, and storage medium
CN112532446A (en) * 2020-11-26 2021-03-19 许继集团有限公司 Dynamic migration method of cluster measurement and control device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10613914B2 (en) * 2013-04-01 2020-04-07 Oracle International Corporation Orchestration service for a distributed computing system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109344014A (en) * 2018-09-26 2019-02-15 新华三大数据技术有限公司 A kind of main/standby switching method, device and communication equipment
CN109391038A (en) * 2018-12-24 2019-02-26 积成电子股份有限公司 A kind of dispositions method of intelligent substation interval observing and controlling function
CN112073224A (en) * 2020-08-20 2020-12-11 许继电气股份有限公司 Intelligent substation interval electrical equipment measurement and control system and method
CN112271816A (en) * 2020-09-14 2021-01-26 许继电气股份有限公司 Intelligent substation cluster measurement and control system and measurement and control method thereof
CN112398688A (en) * 2020-11-13 2021-02-23 广东省华南技术转移中心有限公司 Container network configuration method, container network system, and storage medium
CN112532446A (en) * 2020-11-26 2021-03-19 许继集团有限公司 Dynamic migration method of cluster measurement and control device

Also Published As

Publication number Publication date
CN113556248A (en) 2021-10-26

Similar Documents

Publication Publication Date Title
KR101099822B1 (en) Redundant routing capabilities for a network node cluster
CN110224871B (en) High-availability method and device for Redis cluster
US6760859B1 (en) Fault tolerant local area network connectivity
CN101465859B (en) Method and device for triggering main and standby interface board inverse switch
KR100658913B1 (en) A scalable method of continuous monitoring the remotely accessible resources against the node failures for very large clusters
US8462767B2 (en) Internet protocol compliant private branch electronic exchange and a method for redundantly configuring terminal interfaces
US11575769B2 (en) Redundancy in a network centric process control system
CN101286884B (en) Method for implementing non-status multi-host backup and proxy gateway
CN101588304A (en) Implementation method of VRRP
CN103200026A (en) Upgrading method and upgrading system for firmware
JPH04217136A (en) Data integrity assurance system
US20070270984A1 (en) Method and Device for Redundancy Control of Electrical Devices
CN113556248B (en) Cluster measurement and control dynamic deployment method, device, equipment and storage medium
CN114448828B (en) Storage dual-activity function test method, system, terminal and storage medium
JP2002009806A (en) Lan communication path control system and control method
CN105959145B (en) A kind of method and system for the concurrent management server being applicable in high availability cluster
CN110674192A (en) Redis high-availability VIP (very important person) drifting method, terminal and storage medium
WO1997049034A1 (en) Job taking-over system
CN111510336B (en) Network equipment state management method and device
CN107888491A (en) HSB standby systems and the AC double hot standby methods based on two layers of networking VRRP agreements
KR100713072B1 (en) Duplexed softswitch system and method thereof
CN105827435A (en) System for maintaining continuous business operation based on double center systems and method thereof
EP4167546A1 (en) A system of aggregating servers
CN114553878B (en) Industrial control system main and standby operation power monitoring system based on LVS
CN117579465A (en) Fault processing method, device, equipment and storage medium

Legal Events

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