CN113489154B - Power grid monitoring system data loss prevention method based on main and standby channel switching technology - Google Patents

Power grid monitoring system data loss prevention method based on main and standby channel switching technology Download PDF

Info

Publication number
CN113489154B
CN113489154B CN202110805870.6A CN202110805870A CN113489154B CN 113489154 B CN113489154 B CN 113489154B CN 202110805870 A CN202110805870 A CN 202110805870A CN 113489154 B CN113489154 B CN 113489154B
Authority
CN
China
Prior art keywords
server instance
remote terminal
terminal unit
channel
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110805870.6A
Other languages
Chinese (zh)
Other versions
CN113489154A (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
Zhuhai Power Supply Bureau of Guangdong Power Grid Co Ltd
Original Assignee
Guangdong Power Grid Co Ltd
Zhuhai Power Supply Bureau of 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, Zhuhai Power Supply Bureau of Guangdong Power Grid Co Ltd filed Critical Guangdong Power Grid Co Ltd
Priority to CN202110805870.6A priority Critical patent/CN113489154B/en
Publication of CN113489154A publication Critical patent/CN113489154A/en
Application granted granted Critical
Publication of CN113489154B publication Critical patent/CN113489154B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J13/00Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
    • H02J13/00006Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by information or instructions transport means between the monitoring, controlling or managing units and monitored, controlled or operated power network element or electrical equipment
    • H02J13/00016Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by information or instructions transport means between the monitoring, controlling or managing units and monitored, controlled or operated power network element or electrical equipment using a wired telecommunication network or a data transmission bus
    • H02J13/00017Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by information or instructions transport means between the monitoring, controlling or managing units and monitored, controlled or operated power network element or electrical equipment using a wired telecommunication network or a data transmission bus using optical fiber
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J9/00Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting
    • H02J9/04Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting in which the distribution system is disconnected from the normal source and connected to a standby source
    • H02J9/06Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting in which the distribution system is disconnected from the normal source and connected to a standby source with automatic change-over, e.g. UPS systems
    • 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B70/00Technologies for an efficient end-user side electric power management and consumption
    • Y02B70/30Systems integrating technologies related to power network operation and communication or information technologies for improving the carbon footprint of the management of residential or tertiary loads, i.e. smart grids as climate change mitigation technology in the buildings sector, including also the last stages of power distribution and the control, monitoring or operating management systems at local level
    • 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02B90/20Smart grids as enabling technology in buildings sector
    • 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
    • Y04S20/00Management or operation of end-user stationary applications or the last stages of power distribution; Controlling, monitoring or operating thereof
    • Y04S20/12Energy storage units, uninterruptible power supply [UPS] systems or standby or emergency generators, e.g. in the last power distribution stages
    • 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
    • Y04S20/00Management or operation of end-user stationary applications or the last stages of power distribution; Controlling, monitoring or operating thereof
    • Y04S20/20End-user application control systems
    • 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
    • Y04S20/00Management or operation of end-user stationary applications or the last stages of power distribution; Controlling, monitoring or operating thereof
    • Y04S20/20End-user application control systems
    • Y04S20/248UPS systems or standby or emergency generators

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Hardware Redundancy (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)

Abstract

The application relates to a power grid monitoring system data loss prevention method based on a main and standby channel switching technology. The method comprises the following steps: when abnormal hanging of the first server instance is detected, acquiring a first moment of abnormal hanging of the first server instance; switching the first standby channel between the first remote terminal unit and the second server instance to a new first main channel, and obtaining a second moment when the channel switching is successful; and sending a control instruction to the second server instance to control the second server instance to inquire data stored between the first time and the second time, and uploading the data to a background system. By adopting the method, the data in the abnormal hanging period of the first server instance can be ensured to be uploaded to the background system, so that the data loss is avoided.

Description

Power grid monitoring system data loss prevention method based on main and standby channel switching technology
Technical Field
The application relates to the technical field of digital power grids, in particular to a method and a device for preventing data loss of a power grid monitoring system based on a main and standby channel switching technology, a digital power grid front-end dispatching system, computer equipment and a storage medium.
Background
For a front-end system for data collection in a digital power grid, the front-end system often includes a plurality of remote terminal units (Remote Terminal Unit, RTUs) and a plurality of server instances, wherein the remote terminal units are responsible for collecting data and transmitting the data to the corresponding server instance, and then uploading the data to a background system by the server instance, however, in the process, when a certain server instance is abnormally suspended, the data is often lost.
Disclosure of Invention
Based on this, it is necessary to provide a method and a device for preventing data loss of a power grid monitoring system, a digital power grid front-end dispatching system, a computer device and a storage medium based on a primary and a backup channel switching technology, aiming at the technical problem that data loss is caused when a certain server instance is abnormally suspended.
A power grid monitoring system data loss prevention method based on a main and standby channel switching technology is applied to a digital power grid front-end dispatching system, and the system comprises the following steps: the system comprises a first remote terminal unit, a first server instance and a second server instance, wherein the first remote terminal unit is in communication connection with the first server instance through a first main channel and is in communication connection with the second server instance through a first standby channel; the method comprises the following steps:
when abnormal hanging of the first server instance is detected, acquiring a first moment of abnormal hanging of the first server instance;
switching the first standby channel between the first remote terminal unit and the second server instance to a new first main channel, and obtaining a second moment when the channel switching is successful;
and sending a control instruction to the second server instance to control the second server instance to inquire data stored between the first time and the second time, and uploading the data to a background system.
In one embodiment, after detecting that the first server instance is abnormally suspended, the method further includes:
closing a first active channel between the first remote terminal unit and the first server instance;
a third server instance is established and a new first alternate path is established between the first remote terminal unit and the third server instance.
In one embodiment, if the first server instance and the second server instance are further connected to a second remote terminal unit, the second remote terminal unit is communicatively connected to the second server instance through a second primary channel, and is communicatively connected to the first server instance through a second backup channel; then after detecting that the first server instance is abnormally suspended, the method further comprises:
closing a second backup channel between the second remote terminal unit and the first server instance;
a new second alternate path is established between the second remote terminal unit and the third server instance.
In one embodiment, after switching the first backup path between the first remote terminal unit and the second server instance to the new first primary path, further comprising:
and controlling the second server instance to acquire the data acquired by the first remote terminal unit from the second moment through the new first main channel, and uploading the acquired data to the background system.
In one embodiment, before controlling the second server instance to query the data stored between the first time and the second time, the method further includes:
and transmitting the acquired first time and second time to the second server instance.
The utility model provides a power grid monitoring system data loss prevention device based on main spare channel switching technique, sets up in the leading dispatch system of digital electric wire netting, the system includes: the system comprises a first remote terminal unit, a first server instance and a second server instance, wherein the first remote terminal unit is in communication connection with the first server instance through a first main channel and is in communication connection with the second server instance through a first standby channel; the device comprises:
the first moment acquisition module is used for acquiring a first moment of abnormal hanging death of the first server instance when abnormal hanging death of the first server instance is detected;
a second time obtaining module, configured to switch the first standby channel between the first remote terminal unit and the second server instance to a new first main channel, and obtain a second time when channel switching is successful;
and the control module is used for sending a control instruction to the second server instance so as to control the second server instance to inquire the data stored between the first time and the second time and upload the data to a background system.
A digital power grid front-end dispatch system, the system comprising: the system comprises a first remote terminal unit, a first server instance, a second server instance and a scheduling unit, wherein the first remote terminal unit is in communication connection with the first server instance through a first main channel and is in communication connection with the second server instance through a first standby channel, and the scheduling unit is in communication connection with the first server instance and the second server instance respectively;
the scheduling unit is used for acquiring a first moment of abnormal hanging death of the first server instance when abnormal hanging death of the first server instance is detected; switching the first standby channel between the first remote terminal unit and the second server instance to a new first main channel, and obtaining a second moment when the channel switching is successful; sending a control instruction to the second server instance;
and the second server instance is used for responding to the control instruction, inquiring the data stored between the first time and the second time and uploading the data to a background system.
In one embodiment, the system further comprises a second remote terminal unit communicatively coupled to the second server instance via a second primary channel and communicatively coupled to the first server instance via a second backup channel;
the scheduling unit is further configured to close a second standby channel between the second remote terminal unit and the first server instance, and establish a new second standby channel between the second remote terminal unit and the third server instance.
A computer device comprising a memory storing a computer program and a processor which when executing the computer program performs the steps of:
when abnormal hanging of the first server instance is detected, acquiring a first moment of abnormal hanging of the first server instance;
switching the first standby channel between the first remote terminal unit and the second server instance to a new first main channel, and obtaining a second moment when the channel switching is successful;
and sending a control instruction to the second server instance to control the second server instance to inquire data stored between the first time and the second time, and uploading the data to a background system.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
when abnormal hanging of the first server instance is detected, acquiring a first moment of abnormal hanging of the first server instance;
switching the first standby channel between the first remote terminal unit and the second server instance to a new first main channel, and obtaining a second moment when the channel switching is successful;
and sending a control instruction to the second server instance to control the second server instance to inquire data stored between the first time and the second time, and uploading the data to a background system.
According to the method and device for preventing data loss of the power grid monitoring system based on the main and standby channel switching technology, the digital power grid front-end scheduling system, the computer equipment and the storage medium, when a first server instance is abnormally hung, a first moment of the first server instance when the first server instance is abnormally hung is obtained; the method comprises the steps of switching a first standby channel between a first remote terminal unit and a second server instance into a new first main channel, acquiring a second moment when the channel is successfully switched, and finally controlling the second server instance to inquire data stored from the first moment to the second moment and uploading the data to a background system.
Drawings
FIG. 1 is a schematic diagram of a controller for performing a method for preventing loss of grid monitoring system data based on a primary-backup channel switching technique in one embodiment;
FIG. 2 is an application environment diagram of a method for preventing data loss of a power grid monitoring system based on a primary and backup channel switching technology in one embodiment;
FIG. 3 is a flow chart of a method for preventing data loss of a power grid monitoring system based on a primary-backup channel switching technology in an embodiment;
FIG. 4 is a schematic diagram illustrating a connection between a first remote terminal unit and each server instance after the first server instance is abnormally suspended in one embodiment;
FIG. 5 is a schematic diagram illustrating a connection between a second remote terminal unit and each server instance after an abnormal suspension of the first server instance in one embodiment;
FIG. 6 is a flowchart of a method for preventing data loss of a power grid monitoring system based on a primary-backup channel switching technology in another embodiment;
FIG. 7 is a block diagram of an embodiment of a device for preventing data loss in a power grid monitoring system based on a primary-backup channel switching technology;
fig. 8 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
Referring to fig. 1, a schematic diagram of a controller 100 for performing a method for preventing data loss of a grid monitoring system based on a primary-backup channel switching technology is provided in an embodiment of the present application.
In the example of fig. 1, the controller 100 is provided with a processor 110 and a memory 120, wherein the processor 110 and the memory 120 may be connected by a bus or otherwise, in fig. 1 by way of example.
Memory 120, as a non-transitory computer-readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer-executable programs. In addition, memory 120 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 120 may optionally include memory located remotely from processor 110, which may be connected to the controller via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
It will be appreciated by those skilled in the art that the controller 100 shown in fig. 1 is not limiting of the embodiments of the invention and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
In the controller shown in fig. 1, the processor 110 may call a data loss prevention program stored in the memory 120, thereby performing a grid monitoring system data loss prevention method based on a primary-backup channel switching technology.
The method for preventing the data loss of the power grid monitoring system based on the main and standby channel switching technology can be applied to an application environment shown in fig. 2. The first remote terminal unit is in communication connection with the first server instance through a first main channel and is in communication connection with the second server instance through a first standby channel; the scheduling unit is respectively in communication connection with the first server instance and the second server instance.
Wherein the first remote terminal unit is used for collecting data.
The first server instance is used for receiving data transmitted by the first remote terminal unit through the first main channel and uploading the data to the background system in real time.
The second server instance is used for backing up the data transmitted by the first remote terminal unit through the first standby channel.
The scheduling unit may include the controller.
In one embodiment, as shown in fig. 3, a method for preventing data loss of a power grid monitoring system based on a primary-backup channel switching technology is provided, and the method is applied to the scheduling unit in fig. 2 for illustration, and includes the following steps:
in step S302, when abnormal hanging of the first server instance is detected, a first moment of abnormal hanging of the first server instance is obtained.
It should be noted that, the abnormal hanging of the server example of the present application includes the situations of abnormal hanging caused by too high load, abnormal hanging under virus attack, abnormal hanging under power-off, and the like.
In a specific implementation, when the scheduling unit detects that the first server instance is abnormally hung up, the moment of the first server instance, which is abnormally hung up, is obtained as the first moment.
Step S304, switching the first standby channel between the first remote terminal unit and the second server instance to a new first main channel, and obtaining a second moment of successful channel switching.
In a specific implementation, when the first server instance is abnormally suspended, in order to ensure that the data acquired by the first remote terminal unit can still be uploaded to the background system in real time, the scheduling unit switches an initial first standby channel between the first remote terminal unit and the second server instance to a new first main channel, so that the second server instance can acquire the data acquired by the first remote terminal unit through the new first main channel, and in addition, when the channel switching is performed, a second moment of successful channel switching needs to be acquired, so that the subsequent second server instance searches the data before the second moment of successful channel switching.
Step S306, a control instruction is sent to the second server instance to control the second server instance to inquire the data stored between the first time and the second time, and the data is uploaded to the background system.
In a specific implementation, since the second server instance backs up the data transmitted by the first remote terminal unit through the first standby channel, after receiving the control instruction sent by the scheduling unit, the second server instance can find out the data between the first moment and the second moment from the data stored before and upload the found data to the background system, so that the background system can still obtain the data after the first server instance is abnormally hung even if the first server instance is abnormally hung.
In the method for preventing the data loss of the power grid monitoring system based on the main and standby channel switching technology, when a first server instance is abnormally hung, a first moment of the first server instance being abnormally hung is acquired; the method comprises the steps of switching a first standby channel between a first remote terminal unit and a second server instance into a new first main channel, acquiring a second moment when the channel is successfully switched, and finally controlling the second server instance to inquire data stored from the first moment to the second moment and uploading the data to a background system.
In one embodiment, after the step of detecting that the first server instance is abnormally suspended in step S302, the method further includes: closing a first main channel between a first remote terminal unit and a first server instance; a third server instance is established and a new first alternate path is established between the first remote terminal unit and the third server instance.
Referring to fig. 4, a schematic diagram of a connection between a first remote terminal unit and each server instance after the first server instance is abnormally suspended, as shown in the drawing, after the first server instance is abnormally suspended, a first standby channel between the first remote terminal unit and the second server instance shown in fig. 2 is switched to a new first standby channel shown in fig. 3 in addition to a first main channel between the first remote terminal unit and the first server instance, and a third server instance is newly established, and a new first standby channel is established between the first remote terminal unit and the third server instance.
In this embodiment, after the first server instance is abnormally suspended, the scheduling unit closes the first main channel between the first remote terminal unit and the first server instance, and then establishes a new first standby channel between the first remote terminal unit and the third server instance, so that data acquired by the first remote terminal unit is backed up to the third server instance through the first standby channel, and data loss caused when the second server instance is abnormally suspended is avoided.
In one embodiment, if the first server instance and the second server instance are further connected to a second remote terminal unit, the second remote terminal unit is communicatively connected to the second server instance through a second primary channel and is communicatively connected to the first server instance through a second backup channel; after the step of detecting that the first server instance is abnormally suspended in step S302, the method further includes: a second backup path between the second remote terminal unit and the first server instance is closed and a new second backup path is established between the second remote terminal unit and the third server instance.
Referring to fig. 5, after the first server instance is abnormally suspended, a connection diagram between the first remote terminal unit and the second remote terminal unit and each server instance is shown, if the first server instance and the second server instance are further connected with the second remote terminal unit, as shown in the drawing, after the first server instance is abnormally suspended, a second standby channel between the second remote terminal unit and the first server instance is further closed, and a new second standby channel is established between the second remote terminal unit and the third server instance.
In this embodiment, although the abnormal suspension of the first server instance does not affect the uploading of the data collected by the second remote terminal unit to the background system through the second server instance, the data collected by the second remote terminal unit cannot be normally backed up to the first server instance through the second standby channel, so the scheduling unit establishes a new second standby channel between the second remote terminal unit and the third server instance by closing the original second standby channel, so that the data collected by the second remote terminal unit is backed up to the third server instance through the new second standby channel, and the problem that the data is lost due to the abnormal suspension of the second server instance during the abnormal suspension of the first server instance is avoided.
In one embodiment, after the step S304, the method further includes: and controlling a second server instance to acquire data acquired by the first remote terminal unit from a second moment through the new first main channel, and uploading the acquired data to a background system.
In this embodiment, after the first standby channel between the first remote terminal unit and the second server instance is successfully switched to the new first main channel, the second server instance is controlled to acquire the data acquired by the first remote terminal unit in real time from the second moment, so that the background system can continuously acquire the data acquired by the first terminal unit after the first server instance is abnormally suspended.
In one embodiment, before the step S306, the method further includes: and transmitting the acquired first time and second time to a second server instance.
In this embodiment, the scheduling unit sends the obtained first moment when the first server instance is abnormally suspended and the obtained second moment when the channel is successfully switched to the second server instance, so that the second server instance queries data which are transmitted in an interrupt period during the abnormal suspension of the first server instance according to the first moment and the second moment, and sends the data to the background system.
In another embodiment, as shown in fig. 6, a method for preventing data loss of a power grid monitoring system based on a primary-backup channel switching technology is provided, and in this embodiment, the method includes the following steps:
step S602, when detecting that the first server instance is abnormally hung up, acquiring a first moment of the first server instance being abnormally hung up;
step S604, switching a first standby channel between a first remote terminal unit and a second server instance into a new first main channel, and obtaining a second moment when the channel switching is successful;
step S606, closing a first main channel between the first remote terminal unit and the first server instance;
step S608, establishing a third server instance, and establishing a new first standby channel between the first remote terminal unit and the third server instance;
step S610, a control instruction is sent to the second server instance to control the second server instance to inquire data stored between the first time and the second time and upload the data to the background system, and the second server instance is controlled to acquire data acquired by the first remote terminal unit from the second time through a new first main channel and upload the acquired data to the background system.
According to the power grid monitoring system data loss prevention method based on the main and standby channel switching technology, when a first server instance is abnormally hung and dead, a first main channel between a first remote terminal unit and the first server instance is closed, a new first standby channel is established between the first remote terminal unit and a third server instance, so that data acquired by the first remote terminal unit are backed up to the third server instance through the first standby channel, data loss caused when the second server instance is abnormally hung and dead is avoided, the first standby channel between the first remote terminal unit and the second server instance is switched to the new first main channel, a second moment when the channel switching is successful is acquired, finally the second server instance is controlled to inquire data stored from the first moment to the second moment and upload the data to a background system, and the second server instance is controlled to acquire the data acquired by the first remote terminal unit from the second moment through the new first main channel and upload the acquired data to the background system. By adopting the method, the data after the first moment of abnormal suspension of the first server instance can be uploaded to the background system, so that the data loss is avoided.
It should be understood that, although the steps in the flowcharts of fig. 3 and 6 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least a portion of the steps in fig. 3 and 6 may include a plurality of steps or stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the execution of the steps or stages is not necessarily sequential, but may be performed in rotation or alternatively with at least a portion of the steps or stages in other steps or steps.
In one embodiment, as shown in fig. 7, there is provided a device for preventing data loss of a power grid monitoring system based on a primary-backup channel switching technology, including: a first time acquisition module 702, a second time acquisition module 704, and a control module 706, wherein:
the first moment obtaining module 702 is configured to obtain a first moment when the first server instance is abnormally suspended when the first server instance is detected to be abnormally suspended;
a second time obtaining module 704, configured to switch a first standby channel between the first remote terminal unit and the second server instance to a new first main channel, and obtain a second time when the channel switching is successful;
the control module 706 is configured to send a control instruction to the second server instance, so as to control the second server instance to query the data stored between the first time and the second time, and upload the data to the background system.
In one embodiment, the apparatus further comprises:
the channel closing module is used for closing a first main channel between the first remote terminal unit and the first server instance;
and the establishing module is used for establishing a third server instance and establishing a new first standby channel between the first remote terminal unit and the third server instance.
In one embodiment, if the first server instance and the second server instance are further connected to a second remote terminal unit, the second remote terminal unit is communicatively connected to the second server instance through a second primary channel and is communicatively connected to the first server instance through a second backup channel; the channel closing module is further configured to close a second backup channel between the second remote terminal unit and the first server instance;
and the establishing module is used for establishing a new second standby channel between the second remote terminal unit and the third server instance.
In one embodiment, the control module 706 is further configured to control the second server instance to obtain, from the second moment, the data collected by the first remote terminal unit through the new first main channel, and upload the collected data to the background system.
In one embodiment, the control module 706 is further configured to transmit the acquired first time and the second time to the second server instance.
It should be noted that, the device for preventing data loss of the power grid monitoring system based on the primary and backup channel switching technology in the present application corresponds to the method for preventing data loss of the power grid monitoring system based on the primary and backup channel switching technology in a one-to-one manner, and the technical features and the beneficial effects described in the embodiments of the method for preventing data loss of the power grid monitoring system based on the primary and backup channel switching technology are applicable to the embodiments of the device for preventing data loss of the power grid monitoring system based on the primary and backup channel switching technology, and specific content can be found in the description of the embodiments of the method in the present application, which is not repeated herein, and is specifically stated herein.
In addition, each module in the power grid monitoring system data loss prevention device based on the main and standby channel switching technology can be fully or partially 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.
In one embodiment, a digital power grid pre-dispatching system is provided, the system comprising: the system comprises a first remote terminal unit, a first server instance, a second server instance and a scheduling unit, wherein the first remote terminal unit is in communication connection with the first server instance through a first main channel and is in communication connection with the second server instance through a first standby channel, and the scheduling unit is in communication connection with the first server instance and the second server instance respectively;
the scheduling unit is used for acquiring a first moment of abnormal hanging death of the first server instance when abnormal hanging death of the first server instance is detected; switching a first standby channel between a first remote terminal unit and a second server instance into a new first main channel, and acquiring a second moment when the channel switching is successful; sending a control instruction to a second server instance;
the second server instance is used for responding to the control instruction, inquiring the data stored between the first time and the second time and uploading the data to the background system.
In one embodiment, the scheduling unit is further configured to close a first active channel between the first remote terminal unit and the first server instance; a third server instance is established and a new first alternate path is established between the first remote terminal unit and the third server instance.
In one embodiment, the system further comprises a second remote terminal unit communicatively coupled to the second server instance via a second primary channel and communicatively coupled to the first server instance via a second backup channel;
the scheduling unit is further configured to close a second standby channel between the second remote terminal unit and the first server instance, and establish a new second standby channel between the second remote terminal unit and the third server instance.
In one embodiment, the scheduling unit is further configured to control the second server instance to obtain, from the second moment, data collected by the first remote terminal unit through the new first main channel, and upload the collected data to the background system.
In an embodiment, the scheduling unit is further configured to transmit the acquired first time and second time to the second server instance.
It should be noted that, the digital power grid front-end scheduling system of the present application corresponds to the power grid monitoring system data loss prevention method based on the primary and backup channel switching technology one by one, and the technical features and the beneficial effects described in the embodiments of the power grid monitoring system data loss prevention method based on the primary and backup channel switching technology are applicable to the embodiments of the digital power grid front-end scheduling system, and specific content can be found in the description of the method embodiments of the present application, which is not repeated herein, and thus is stated in detail.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 8. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing data in the data loss prevention process. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize a power grid monitoring system data loss prevention method based on a main and standby channel switching technology.
It will be appreciated by those skilled in the art that the structure shown in fig. 8 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
when abnormal hanging of the first server instance is detected, acquiring a first moment of abnormal hanging of the first server instance;
switching the first standby channel between the first remote terminal unit and the second server instance to a new first main channel, and obtaining a second moment when the channel switching is successful;
and sending a control instruction to the second server instance to control the second server instance to inquire data stored between the first time and the second time, and uploading the data to a background system.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
when abnormal hanging of the first server instance is detected, acquiring a first moment of abnormal hanging of the first server instance;
switching the first standby channel between the first remote terminal unit and the second server instance to a new first main channel, and obtaining a second moment when the channel switching is successful;
and sending a control instruction to the second server instance to control the second server instance to inquire data stored between the first time and the second time, and uploading the data to a background system.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the method embodiments described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. The utility model provides a power grid monitoring system data loss prevention method based on main and standby channel switching technology, which is characterized in that the method is applied to a digital power grid front-end dispatching system, and the system comprises the following steps: the method comprises the steps of:
when abnormal hanging of the first server instance is detected, acquiring a first moment of abnormal hanging of the first server instance;
switching the first standby channel between the first remote terminal unit and the second server instance to a new first main channel, and obtaining a second moment when the channel switching is successful;
sending a control instruction to the second server instance to control the second server instance to inquire data stored between the first time and the second time and upload the data to a background system;
after detecting that the first server instance is abnormally hung up, the method further comprises the following steps:
closing a first active channel between the first remote terminal unit and the first server instance;
establishing a third server instance and a new first standby channel between the first remote terminal unit and the third server instance;
if the first server instance and the second server instance are also connected with a second remote terminal unit, wherein the second remote terminal unit is in communication connection with the second server instance through a second main channel and is in communication connection with the first server instance through a second standby channel;
after detecting that the first server instance is abnormally hung up, the method further comprises the following steps:
closing a second backup channel between the second remote terminal unit and the first server instance;
a new second alternate path is established between the second remote terminal unit and the third server instance.
2. The method of claim 1, further comprising, after switching the first backup path between the first remote terminal unit and the second server instance to the new first primary path:
and controlling the second server instance to acquire the data acquired by the first remote terminal unit from the second moment through the new first main channel, and uploading the acquired data to the background system.
3. The method of claim 1, further comprising, prior to controlling the second server instance to query for data stored between the first time and the second time:
and transmitting the acquired first time and second time to the second server instance.
4. A method according to any one of claims 1-3, wherein the first server instance is configured to receive data transmitted by the first remote terminal unit through the first primary channel, and upload the data to the backend system in real time;
the second server instance is configured to backup data transmitted by the first remote terminal unit through the first backup channel.
5. The utility model provides a power grid monitoring system data loss prevention device based on main spare channel switching technique which characterized in that sets up in the leading dispatch system of digital electric wire netting, the system includes: the system comprises a first remote terminal unit, a first server instance and a second server instance, wherein the first remote terminal unit is in communication connection with the first server instance through a first main channel and is in communication connection with the second server instance through a first standby channel; the device comprises:
the first moment acquisition module is used for acquiring a first moment of abnormal hanging death of the first server instance when abnormal hanging death of the first server instance is detected;
a second time obtaining module, configured to switch the first standby channel between the first remote terminal unit and the second server instance to a new first main channel, and obtain a second time when channel switching is successful;
the control module is used for sending a control instruction to the second server instance so as to control the second server instance to inquire data stored between the first time and the second time and upload the data to a background system;
the channel closing module is used for closing a first main channel between the first remote terminal unit and the first server instance after detecting that the first server instance is abnormally hung up;
the establishing module is used for establishing a third server instance and establishing a new first standby channel between the first remote terminal unit and the third server instance;
if the first server instance and the second server instance are also connected with a second remote terminal unit, wherein the second remote terminal unit is in communication connection with the second server instance through a second main channel and is in communication connection with the first server instance through a second standby channel; the channel closing module is further configured to close a second standby channel between the second remote terminal unit and the first server instance after detecting that the first server instance is abnormally suspended;
the set-up module is further configured to set up a new second backup tunnel between the second remote terminal unit and the third server instance.
6. A digital power grid front-end dispatch system, the system comprising: the system comprises a first remote terminal unit, a first server instance, a second server instance and a scheduling unit, wherein the first remote terminal unit is in communication connection with the first server instance through a first main channel and is in communication connection with the second server instance through a first standby channel, and the scheduling unit is in communication connection with the first server instance and the second server instance respectively;
the scheduling unit is used for acquiring a first moment of abnormal hanging death of the first server instance when abnormal hanging death of the first server instance is detected; switching the first standby channel between the first remote terminal unit and the second server instance to a new first main channel, and obtaining a second moment when the channel switching is successful; sending a control instruction to the second server instance;
the second server instance is used for responding to the control instruction, inquiring the data stored between the first time and the second time and uploading the data to a background system;
the scheduling unit is further configured to close a first main channel between the first remote terminal unit and the first server instance after detecting that the first server instance is abnormally suspended; establishing a third server instance and a new first standby channel between the first remote terminal unit and the third server instance;
the system also includes a second remote terminal unit communicatively coupled to the second server instance via a second primary channel and communicatively coupled to the first server instance via a second backup channel;
the scheduling unit is further configured to close a second standby channel between the second remote terminal unit and the first server instance, and establish a new second standby channel between the second remote terminal unit and the third server instance.
7. The system of claim 6, wherein the scheduling unit is further configured to control the second server instance to obtain, from the second time, data collected by the first remote terminal unit through the new first primary channel, and upload the collected data to the background system.
8. The system of claim 6, wherein the scheduling unit is further configured to transmit the acquired first time and second time to the second server instance.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 4 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 4.
CN202110805870.6A 2021-07-16 2021-07-16 Power grid monitoring system data loss prevention method based on main and standby channel switching technology Active CN113489154B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110805870.6A CN113489154B (en) 2021-07-16 2021-07-16 Power grid monitoring system data loss prevention method based on main and standby channel switching technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110805870.6A CN113489154B (en) 2021-07-16 2021-07-16 Power grid monitoring system data loss prevention method based on main and standby channel switching technology

Publications (2)

Publication Number Publication Date
CN113489154A CN113489154A (en) 2021-10-08
CN113489154B true CN113489154B (en) 2023-07-28

Family

ID=77939785

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110805870.6A Active CN113489154B (en) 2021-07-16 2021-07-16 Power grid monitoring system data loss prevention method based on main and standby channel switching technology

Country Status (1)

Country Link
CN (1) CN113489154B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004007930A (en) * 2002-06-03 2004-01-08 Toshiba Corp System and program for controlling power system monitoring
CN102724272A (en) * 2011-12-30 2012-10-10 新奥特(北京)视频技术有限公司 Backup method of television service publishing data
WO2016078529A1 (en) * 2014-11-20 2016-05-26 阿里巴巴集团控股有限公司 Service processing method, device and system
CN105808382A (en) * 2016-03-08 2016-07-27 江苏省电力公司苏州供电公司 Identification and recovery method of abnormal data of transformer substation on the basis of waveform coefficient
CN108040108A (en) * 2017-12-11 2018-05-15 杭州电魂网络科技股份有限公司 Communication handover method, device, coordination service device and readable storage medium storing program for executing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004007930A (en) * 2002-06-03 2004-01-08 Toshiba Corp System and program for controlling power system monitoring
CN102724272A (en) * 2011-12-30 2012-10-10 新奥特(北京)视频技术有限公司 Backup method of television service publishing data
WO2016078529A1 (en) * 2014-11-20 2016-05-26 阿里巴巴集团控股有限公司 Service processing method, device and system
CN105808382A (en) * 2016-03-08 2016-07-27 江苏省电力公司苏州供电公司 Identification and recovery method of abnormal data of transformer substation on the basis of waveform coefficient
CN108040108A (en) * 2017-12-11 2018-05-15 杭州电魂网络科技股份有限公司 Communication handover method, device, coordination service device and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN113489154A (en) 2021-10-08

Similar Documents

Publication Publication Date Title
CN101826984A (en) Log information processing method and device thereof
CN105792335B (en) A kind of method and terminal device improving cruise duration
CN112188576B (en) Power consumption optimization method, device, equipment and medium for 5G terminal during service concurrence
EP3873067A1 (en) Data transmission method and apparatus
CN104750596A (en) Warning information processing method and service subsystem
CN102868552A (en) Data sending method
CN108924043A (en) System monitoring method, gateway communication, gateway apparatus, service processing equipment
CN108123826B (en) Cross-region data interaction system and method
CN111405059B (en) Cloud device data transmission method, electronic device and Internet of things system
CN110995617A (en) MQTT-based data transmission method, device, computer equipment and storage medium
CN104270452B (en) A kind of tele-medicine data management system and its wireless network communication method
CN113489154B (en) Power grid monitoring system data loss prevention method based on main and standby channel switching technology
CN106411574B (en) Management control method and device
CN104750516A (en) Upgrading method for terminal equipment operating system
CN112333284B (en) 5G intelligent gateway-based data transmission method, system and storage medium
CN111917588A (en) Edge device management method, device, edge gateway device and storage medium
CN105530658A (en) Remote diagnosis method of wireless communication module, device and system
CN102480375A (en) Method for processing log information
CN108259492B (en) Traffic data retention method and device and computer readable storage medium
CN109287051B (en) Strong electricity controller and strong electricity management method thereof
CN112463449B (en) Data disaster tolerance backup method and device
CN111314408B (en) Local edge calculation and Internet of things management method based on communication layer multi-data item caching task
CN104735097A (en) Information collecting method and system
CN112615755B (en) Data transmission method and system
CN110099208B (en) Method and device for cross-level and cross-domain upgrading of camera in video monitoring system

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