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

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

Info

Publication number
CN113489154A
CN113489154A CN202110805870.6A CN202110805870A CN113489154A CN 113489154 A CN113489154 A CN 113489154A CN 202110805870 A CN202110805870 A CN 202110805870A CN 113489154 A CN113489154 A CN 113489154A
Authority
CN
China
Prior art keywords
server instance
remote terminal
terminal unit
channel
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110805870.6A
Other languages
Chinese (zh)
Other versions
CN113489154B (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

Images

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)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)
  • Hardware Redundancy (AREA)

Abstract

The application relates to a method for preventing data loss of a power grid monitoring system based on a main/standby channel switching technology. The method comprises the following steps: when the first server instance is detected to be abnormally hung, acquiring a first moment when the first server instance is abnormally hung; switching the first standby channel between the first remote terminal unit and the second server instance to a new first main channel, and acquiring 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 upload the data to a background system. By the method, the data of the first server instance in the abnormal hang-up period can be uploaded to the background system, so that data loss is avoided.

Description

Power grid monitoring system data loss prevention method based on main/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/standby channel switching technology, a digital power grid pre-dispatching system, computer equipment and a storage medium.
Background
For a front-end system for data acquisition in a digital power grid, the front-end system often includes a plurality of Remote Terminal Units (RTUs) and a plurality of server instances, where a Remote Terminal Unit is responsible for acquiring data and transmitting the data to a server instance corresponding to the Remote Terminal Unit, and then uploads the data to a background system by the server instance, however, in this process, when a certain server instance is hung down abnormally, data loss often occurs.
Disclosure of Invention
Based on this, it is necessary to provide a method and an apparatus for preventing data loss of a power grid monitoring system, a digital power grid pre-dispatching system, a computer device, and a storage medium based on a primary/standby channel switching technology, for solving the technical problem that data loss is caused when a certain server instance is abnormally hung up.
A power grid monitoring system data loss prevention method based on a main/standby channel switching technology is applied to a digital power grid prepositive dispatching system, and the system comprises the following steps: 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 the first server instance is detected to be abnormally hung, acquiring a first moment when the first server instance is abnormally hung;
switching the first standby channel between the first remote terminal unit and the second server instance to a new first main channel, and acquiring 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 upload 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 primary channel between the first remote terminal unit and the first server instance;
a third server instance is established and a new first backup tunnel 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 main channel and communicatively connected to the first server instance through a second standby channel; after detecting that the first server instance is abnormally suspended, the method further comprises:
closing a second backup tunnel between the second remote terminal unit and the first server instance;
establishing a new second backup tunnel between the second remote terminal unit and the third server instance.
In one embodiment, after switching the first standby channel between the first remote terminal unit and the second server instance to the new first active channel, the method further comprises:
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 the acquired second time to the second server instance.
A kind of power network monitoring system data loss prevention device based on the switching technology of the main backup channel, set up in the digital power network and put the dispatch system in front, the said system includes: 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:
a first time obtaining module, configured to obtain a first time when the first server instance is detected to be abnormally suspended;
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 at which 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 grid front-end dispatching system, the system comprising: 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 time when the first server instance is abnormally hung when the first server instance is detected to be abnormally hung; switching the first standby channel between the first remote terminal unit and the second server instance to a new first main channel, and acquiring 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 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 backup tunnel between the second remote terminal unit and the first server instance, and establish a new second backup tunnel between the second remote terminal unit and the third server instance.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
when the first server instance is detected to be abnormally hung, acquiring a first moment when the first server instance is abnormally hung;
switching the first standby channel between the first remote terminal unit and the second server instance to a new first main channel, and acquiring 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 upload the data to a background system.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
when the first server instance is detected to be abnormally hung, acquiring a first moment when the first server instance is abnormally hung;
switching the first standby channel between the first remote terminal unit and the second server instance to a new first main channel, and acquiring 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 upload the data to a background system.
According to the method and the device for preventing data loss of the power grid monitoring system based on the main/standby channel switching technology, the digital power grid pre-dispatching system, the computer equipment and the storage medium, when a first server instance is abnormally hung up, a first moment when the first server instance is abnormally hung up is obtained; and switching a first standby channel between the first remote terminal unit and the second server instance into a new first main channel, acquiring a second moment when the channel switching is successful, and finally controlling the second server instance to inquire data stored from the first moment to the second moment and upload the data to the background system.
Drawings
Fig. 1 is a schematic diagram of a controller for executing a method for preventing data loss of a power grid monitoring system based on a primary/secondary channel switching technology in an embodiment;
fig. 2 is an application environment diagram of a power grid monitoring system data loss prevention method based on a primary/standby channel switching technology in an embodiment;
fig. 3 is a schematic flow chart of a method for preventing data loss of a power grid monitoring system based on a primary/standby 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 a 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 a first server instance is abnormally suspended in one embodiment;
fig. 6 is a schematic flow chart of a method for preventing data loss of a power grid monitoring system based on a primary/secondary channel switching technique in another embodiment;
fig. 7 is a block diagram of a data loss prevention device of a power grid monitoring system based on a primary/secondary channel switching technique in an embodiment;
FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1, a schematic diagram of a controller 100 for executing a method for preventing data loss of a power grid monitoring system based on a primary/standby channel switching technology according to an embodiment of the present application is provided.
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 other means, and fig. 1 takes the example of connection by a bus as an example.
The memory 120, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer executable programs. Further, the 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 optionally includes 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 embodiments of the invention and may include more or fewer components than shown, or some components may be combined, 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, so as to execute a grid monitoring system data loss prevention method based on the active/standby channel switching technology.
The method for preventing data loss of the power grid monitoring system based on the main/standby channel switching technology can be applied to the 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 connected with the first server instance and the second server instance in a communication mode.
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 data transmitted by the first remote terminal unit through the first standby channel.
The scheduling unit may include the controller.
In an embodiment, as shown in fig. 3, a method for preventing data loss of a power grid monitoring system based on a primary/standby channel switching technology is provided, which is described by taking the scheduling unit in fig. 2 as an example, and includes the following steps:
step S302, when the first server instance is detected to be abnormally hung, a first moment when the first server instance is abnormally hung is obtained.
It should be noted that, the abnormal hang-up related to the server example of the present application includes abnormal hang-up caused by an excessive load, abnormal hang-up due to virus attack, abnormal hang-up due to power failure, and the like.
In a specific implementation, when the scheduling unit detects that the first server instance is abnormally suspended, a time when the first server instance is abnormally suspended is obtained as a first time.
Step S304, the first standby channel between the first remote terminal unit and the second server instance is switched to the new first active channel, and a second time when the channel switching is successful is obtained.
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 the initial first standby channel between the first remote terminal unit and the second server instance to the 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 further needs to acquire the second time at which the channel switching is successful when the channel switching is performed, so that the subsequent second server instance searches for data before the second time at which the channel switching is successful.
Step S306, sending a control instruction to the second server instance 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 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 search the data between the first time and the second time from the previously stored data, and upload the searched data to the background system, thereby ensuring 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 data loss of the power grid monitoring system based on the main/standby channel switching technology, when a first server instance is abnormally hung, a first moment when the first server instance is abnormally hung is obtained; and switching a first standby channel between the first remote terminal unit and the second server instance into a new first main channel, acquiring a second moment when the channel switching is successful, and finally controlling the second server instance to inquire data stored from the first moment to the second moment and upload the data to the background system.
In an embodiment, after the step of detecting the abnormal hanging of the first server instance in the step S302, the method further includes: closing a first primary channel between a first remote terminal unit and a first server instance; a third server instance is established and a new first backup tunnel is established between the first remote terminal unit and the third server instance.
Referring to fig. 4, a schematic diagram of connections between a first remote terminal unit and server instances after a first server instance is abnormally suspended, as shown in the figure, after the first server instance is abnormally suspended, in addition to closing a first main channel between the first remote terminal unit and the first server instance, a first standby channel between the first remote terminal unit and a second server instance shown in fig. 2 is switched to a new first main channel shown in fig. 3, and a third server instance is newly created, 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 primary 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 the data acquired by the first remote terminal unit is backed up to the third server instance through the first standby channel, thereby avoiding data loss when the second server instance is also abnormally suspended.
In one embodiment, if the first server instance and the second server instance are further connected with a second remote terminal unit, 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 the step of detecting the abnormal hanging of the first server instance in the step S302, the method further includes: the 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 schematic diagram of connections between the first remote terminal unit and the second remote terminal unit and the server instances is shown, as shown in the figure, if the first server instance and the second server instance are also connected with the second remote terminal unit, after the first server instance is abnormally suspended, the second standby channel between the second remote terminal unit and the first server instance needs to be 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 first server instance is abnormally suspended and does not affect uploading of the data acquired by the second remote terminal unit to the background system through the second server instance, the data acquired by the second remote terminal unit cannot be normally backed up to the first server instance through the second standby channel, and therefore, the scheduling unit closes the original second standby channel and establishes a new second standby channel between the second remote terminal unit and the third server instance, so that the data acquired by the second remote terminal unit is backed up to the third server instance through the new second standby channel, and the problem of data loss caused by 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 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 upload the acquired data to the 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 start to acquire the data acquired by the first remote terminal unit in real time from the second time, so that the background system can continue to 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 acquired first time when the first server instance is abnormally suspended and the acquired second time when the channel is successfully switched to the second server instance, so that the second server instance queries the data, which is interrupted during the abnormal suspension of the first server instance, according to the first time and the second time, 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/standby channel switching technology is provided, where in this embodiment, the method includes the following steps:
step S602, when detecting that the first server instance is abnormally hung, acquiring a first time when the first server instance is abnormally hung;
step S604, a first standby channel between the first remote terminal unit and the second server instance is switched to a new first main channel, and a second moment when the channel switching is successful is obtained;
step S606, close the first primary 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, sending a control instruction to the second server instance 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, and control the second server instance to start acquiring the data acquired by the first remote terminal unit from the second time through the new first main channel, and upload the acquired data to the background system.
In the method for preventing data loss of a power grid monitoring system based on the active-standby channel switching technology provided by this embodiment, when a first server instance is abnormally suspended, a first active channel between a first remote terminal unit and the first server instance is closed, and 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 is backed up to the third server instance through the first standby channel, thereby avoiding data loss caused by the abnormal suspension of a second server instance, by switching the first standby channel between the first remote terminal unit and the second server instance to the new first active channel and acquiring a second time at which the channel switching is successful, and finally controlling the second server instance to query data stored from the first time to the second time and upload the data to a background system, 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 upload the acquired data to the background system. By the method, the data can be uploaded to the background system from the first moment when the first server instance is abnormally hung up, and accordingly 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, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 3 and 6 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In an embodiment, as shown in fig. 7, a device for preventing data loss of a power grid monitoring system based on a primary/standby channel switching technology is provided, including: a first time obtaining module 702, a second time obtaining module 704 and a control module 706, wherein:
a first time obtaining module 702, configured to obtain a first time 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 active 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 to control the second server instance to query data stored between the first time and the second time, and upload the data to the background system.
In one embodiment, the above apparatus further comprises:
a channel closing module, configured to close a first main channel between a first remote terminal unit and a first server instance;
an establishing module for establishing a third server instance and establishing a new first backup 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 with a second remote terminal unit, 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; a channel closing module further configured to close a second standby channel between the second remote terminal unit and the first server instance;
an establishing module for establishing a new second backup tunnel between the second remote terminal unit and the third server instance.
In an embodiment, the control module 706 is further configured to control the second server instance to start to acquire, through the new first main channel, data acquired by the first remote terminal unit from the second time, and upload the acquired data to the background system.
In an embodiment, the control module 706 is further configured to transmit the acquired first time and the acquired second time to the second server instance.
It should be noted that, the power grid monitoring system data loss prevention device based on the active/standby channel switching technology of the present application corresponds to the power grid monitoring system data loss prevention method based on the active/standby channel switching technology of the present application one-to-one, and the technical features and the beneficial effects thereof described in the above embodiment of the power grid monitoring system data loss prevention method based on the active/standby channel switching technology are both applicable to the embodiment of the power grid monitoring system data loss prevention device based on the active/standby channel switching technology, and specific contents may refer to descriptions in the embodiment of the method of the present application, and are not described herein again, and thus, the present application states that the data loss prevention device is not lost.
In addition, all modules in the power grid monitoring system data loss prevention device based on the main/standby channel switching technology can be completely or partially realized through software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a digital grid pre-dispatching system is provided, the system comprising: 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 time when the first server instance is detected to be abnormally hung; switching a first standby channel between the first remote terminal unit and the second server instance to a new first main channel, and acquiring 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 the background system.
In one embodiment, the scheduling unit is further configured to close a first primary channel between the first remote terminal unit and the first server instance; a third server instance is established and a new first backup tunnel 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 an embodiment, the scheduling unit is further configured to control the second server instance to start to acquire, through the new first main channel, data acquired by the first remote terminal unit from the second time, and upload the acquired 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 pre-dispatching system of the present application corresponds to the power grid monitoring system data loss prevention method based on the main-standby channel switching technology of the present application one-to-one, and the technical features and the beneficial effects thereof described in the above embodiments of the power grid monitoring system data loss prevention method based on the main-standby channel switching technology are both applicable to the embodiments of the digital power grid pre-dispatching system, and specific contents may refer to the descriptions in the embodiments of the method of the present application, and are not described herein again, and thus, the present application states.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram 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 comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer equipment 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. When being executed by a processor, the computer program realizes a method for preventing data loss of the power grid monitoring system based on the main/standby channel switching technology.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those 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 a computer program stored therein, the processor implementing the following steps when executing the computer program:
when the first server instance is detected to be abnormally hung, acquiring a first moment when the first server instance is abnormally hung;
switching the first standby channel between the first remote terminal unit and the second server instance to a new first main channel, and acquiring 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 upload the data to a background system.
In one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.
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 the first server instance is detected to be abnormally hung, acquiring a first moment when the first server instance is abnormally hung;
switching the first standby channel between the first remote terminal unit and the second server instance to a new first main channel, and acquiring 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 upload the data to a background system.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A power grid monitoring system data loss prevention method based on a main/standby channel switching technology is characterized by being applied to a digital power grid preposed scheduling system, and the system comprises the following steps: a first remote terminal unit, a first server instance, and a second server instance, the first remote terminal unit communicatively coupled to the first server instance via a first primary channel and communicatively coupled to the second server instance via a first backup channel, the method comprising:
when the first server instance is detected to be abnormally hung, acquiring a first moment when the first server instance is abnormally hung;
switching the first standby channel between the first remote terminal unit and the second server instance to a new first main channel, and acquiring 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 upload the data to a background system.
2. The method of claim 1, after detecting the abnormal hanging of the first server instance, further comprising:
closing a first primary channel between the first remote terminal unit and the first server instance;
a third server instance is established and a new first backup tunnel is established between the first remote terminal unit and the third server instance.
3. The method of claim 2, wherein if a second remote terminal unit is further connected to the first server instance and the second server instance, wherein the second remote terminal unit is communicatively connected to the second server instance via a second primary channel and to the first server instance via a second backup channel;
after detecting that the first server instance is abnormally suspended, the method further comprises the following steps:
closing a second backup tunnel between the second remote terminal unit and the first server instance;
establishing a new second backup tunnel between the second remote terminal unit and the third server instance.
4. The method of claim 1, further comprising, after switching the first standby channel between the first remote terminal unit and the second server instance to the new first active channel:
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.
5. The method of claim 1, further comprising, prior to controlling the second server instance to query the data stored between the first time and the second time:
and transmitting the acquired first time and the acquired second time to the second server instance.
6. A kind of power network monitoring system data loss prevention device based on the switching technology of the main backup channel, characterized by that, set up in the digital power network and put the dispatch system in the beginning, the said system includes: 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:
a first time obtaining module, configured to obtain a first time when the first server instance is detected to be abnormally suspended;
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 at which 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.
7. A digital grid pre-dispatching system, the system comprising: 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 time when the first server instance is abnormally hung when the first server instance is detected to be abnormally hung; switching the first standby channel between the first remote terminal unit and the second server instance to a new first main channel, and acquiring 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.
8. The system of claim 7, further comprising a second remote terminal unit communicatively coupled to the second server instance via a second primary channel and to the first server instance via a second backup channel;
the scheduling unit is further configured to close a second backup tunnel between the second remote terminal unit and the first server instance, and establish a new second backup tunnel between the second remote terminal unit and the third server instance.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
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 true CN113489154A (en) 2021-10-08
CN113489154B 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
CN113489154B (en) 2023-07-28

Similar Documents

Publication Publication Date Title
CN110830283B (en) Fault detection method, device, equipment and system
US10037253B2 (en) Fault handling methods in a home service system, and associated household appliances and servers
CN103780436B (en) The relative connection keeping method of network equipment
CN110995617A (en) MQTT-based data transmission method, device, computer equipment and storage medium
CN110620889A (en) Video monitoring system, network hard disk video recorder and data transmission method
CN108123826B (en) Cross-region data interaction system and method
CN107948063B (en) Method for establishing aggregation link and access equipment
CN111541762B (en) Data processing method, management server, device and storage medium
CN106411574B (en) Management control method and device
CN104750516A (en) Upgrading method for terminal equipment operating system
EP3660679B1 (en) Data backup method, device and system
CN104821889B (en) A kind of processing method and equipment of backup message
CN111917588A (en) Edge device management method, device, edge gateway device and storage medium
CN113489154A (en) Power grid monitoring system data loss prevention method based on main/standby channel switching technology
KR20160090485A (en) Method and apparatus for operating distributed controllers of software defined network
CN102480375A (en) Method for processing log information
CN114598711B (en) Data migration method, device, equipment and medium
EP3232646B1 (en) Apparatus for relaying data transmission in scada system
CN112463449B (en) Data disaster tolerance backup method and device
CN113452726B (en) Data transmission method, terminal and computer readable storage medium
CN112615755B (en) Data transmission method and system
CN112419524A (en) Hot standby method of intelligent parking integrated machine
CN108966287B (en) Data transmission method and system
CN113258679A (en) Power grid monitoring system channel distribution method based on server instance capacity reduction
CN112118420A (en) Automatic configuration method and device for 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