CN113411265A - Power grid monitoring system preposition service channel dynamic adjusting method based on risk prediction - Google Patents

Power grid monitoring system preposition service channel dynamic adjusting method based on risk prediction Download PDF

Info

Publication number
CN113411265A
CN113411265A CN202110659818.4A CN202110659818A CN113411265A CN 113411265 A CN113411265 A CN 113411265A CN 202110659818 A CN202110659818 A CN 202110659818A CN 113411265 A CN113411265 A CN 113411265A
Authority
CN
China
Prior art keywords
remote terminal
server instance
instance
data upload
server
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
CN202110659818.4A
Other languages
Chinese (zh)
Other versions
CN113411265B (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.)
China Southern Power Grid Digital Grid Technology Guangdong Co ltd
Original Assignee
Southern Power Grid Digital Grid Research Institute 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 Southern Power Grid Digital Grid Research Institute Co Ltd filed Critical Southern Power Grid Digital Grid Research Institute Co Ltd
Priority to CN202110659818.4A priority Critical patent/CN113411265B/en
Publication of CN113411265A publication Critical patent/CN113411265A/en
Application granted granted Critical
Publication of CN113411265B publication Critical patent/CN113411265B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability

Abstract

The application relates to a method, a device and a system for dynamically adjusting a pre-service channel of a power grid monitoring system based on risk prediction, computer equipment and a storage medium. The method comprises the following steps: in a first time period, when the data uploading amount of the current instance of the first server instance is larger than the first preset data uploading amount of the first server instance, a new second standby channel is established between the second remote terminal unit and the third server instance, and then the second standby channel between the second remote terminal unit and the first server instance is closed; and in a second time period after the first time period, when the data uploading amount of the current instance of the first server instance is smaller than a second preset data uploading amount of the first server instance, restoring a second standby channel between the second remote terminal unit and the first server instance, and then closing a new second standby channel between the second remote terminal unit and the third server instance. The method is favorable for ensuring the normal transmission of data.

Description

Power grid monitoring system preposition service channel dynamic adjusting method based on risk prediction
Technical Field
The present application relates to the field of digital power grid technologies, and in particular, to a method, an apparatus, a system, a computer device, and a storage medium for dynamically adjusting a pre-service channel of a power grid monitoring system based on risk prediction.
Background
For a front-end system for data acquisition in a digital power grid, a plurality of RTUs (Remote Terminal units) and a plurality of server instances are often included, wherein the RTUs are responsible for acquiring and transmitting data to the server instances, and then the server instances transmit the data to a kafka system, a scada system and a monitoring system at an upper level.
In the conventional technology, for each RTU, in order to prevent data loss, an active channel and a standby channel are often set at the same time, wherein each RTU is connected to different server instances through the active channel and the standby channel. However, since the data transmission amounts of the server instances may be unbalanced in different time periods, there may be a case where the data transmission amount of one server instance is overloaded in a certain time period, thereby affecting the normal transmission of data.
Disclosure of Invention
Based on this, it is necessary to provide a method, an apparatus, a system, a computer device, and a storage medium for dynamically adjusting a pre-service channel of a power grid monitoring system based on risk prediction, which can ensure normal transmission of data.
A power grid monitoring system preposed service channel dynamic adjustment method based on risk prediction is applied to a scheduling unit in a power grid monitoring system, the power grid monitoring system further comprises a plurality of remote terminal units and a plurality of server instances, the plurality of server instances comprise a first server instance, a second server instance and a third server instance, the plurality of remote terminal units comprise a plurality of first remote terminal units and a plurality of second remote terminal units, each first remote terminal unit is connected to the first server instance through a first main channel and is connected to the second server instance through a first standby channel; each second remote terminal unit is connected to the second server instance through a second main channel and is connected to the first server instance through a second standby channel; the scheduling unit is respectively connected to the plurality of server instances;
the method comprises the following steps:
acquiring the data uploading amount of the current instance of the first server instance;
in a first time period, when the data upload volume of the current instance of the first server instance is greater than a first preset data upload volume of the first server instance, a new second standby channel is established between the second remote terminal unit and the third server instance, and then the second standby channel between the second remote terminal unit and the first server instance is closed;
in a second time period after the first time period, when the data upload volume of the current instance of the first server instance is smaller than a second preset data upload volume of the first server instance, restoring a second standby channel between the second remote terminal unit and the first server instance, and then closing the new second standby channel between the second remote terminal unit and the third server instance; the second preset data uploading amount is smaller than the first preset data uploading amount.
In one embodiment, the first establishing a new second backup path between the second remote terminal unit and the third server instance, and then closing the second backup path between the second remote terminal unit and the first server instance includes:
acquiring a first data uploading amount difference value between the current instance data uploading amount and the first preset data uploading amount, and the current terminal data uploading amount of each second remote terminal unit;
selecting a first target number of target second remote terminal units from the plurality of second remote terminal units; the sum of the current terminal data upload volumes of the first target number of target second remote terminal units is greater than or equal to the first data upload volume difference;
establishing a new second standby channel between each target second remote terminal unit and the third server instance, and then closing the second standby channel between each target second remote terminal unit and the first server instance, so that the current instance data upload amount of the first server instance is less than or equal to the first preset data upload amount.
In one embodiment, said restoring the second backup path between the second remote terminal unit and the first server instance before closing the new second backup path between the second remote terminal unit and the third server instance comprises:
acquiring a second data upload quantity difference value between the second preset data upload quantity and the current instance data upload quantity, and the current terminal data upload quantity of each second remote terminal unit;
selecting a second target number of target second remote terminal units from the plurality of second remote terminal units; wherein the sum of the current terminal data upload volumes of the target second remote terminal units of the second target number is less than or equal to the second data upload volume difference;
restoring a second backup path between each target second remote terminal unit and the first server instance, respectively, and then closing the new second backup path between each target second remote terminal unit and the third server instance.
In one embodiment, the scheduling unit stores the first preset data upload amount and the second preset data upload amount of the first server instance in advance.
A dynamic adjusting device of a power grid monitoring system preposed service channel based on risk prediction is applied to a scheduling unit in the power grid monitoring system, the power grid monitoring system further comprises a plurality of remote terminal units and a plurality of server instances, the plurality of server instances comprise a first server instance, a second server instance and a third server instance, the plurality of remote terminal units comprise a plurality of first remote terminal units and a plurality of second remote terminal units, each first remote terminal unit is connected to the first server instance through a first main channel and is connected to the second server instance through a first standby channel; each second remote terminal unit is connected to the second server instance through a second main channel and is connected to the first server instance through a second standby channel; the scheduling unit is respectively connected to the plurality of server instances;
the device comprises:
the uploading quantity obtaining module is used for obtaining the uploading quantity of the current instance data of the first server instance;
a first control module, configured to, in a first time period, when a data upload amount of a current instance of the first server instance is greater than a first preset data upload amount of the first server instance, establish a new second standby channel between the second remote terminal unit and the third server instance, and then close the second standby channel between the second remote terminal unit and the first server instance;
a second control module, configured to, in a second time period after the first time period, when a current instance data upload amount of the first server instance is smaller than a second preset data upload amount of the first server instance, restore a second backup path between the second remote terminal unit and the first server instance, and then close the new second backup path between the second remote terminal unit and the third server instance; the second preset data uploading amount is smaller than the first preset data uploading amount.
In one embodiment, the first control module is further configured to obtain a first data upload amount difference between the current instance data upload amount and the first preset data upload amount, and a current terminal data upload amount of each of the second remote terminal units; selecting a first target number of target second remote terminal units from the plurality of second remote terminal units; the sum of the current terminal data upload volumes of the first target number of target second remote terminal units is greater than or equal to the first data upload volume difference; establishing a new second standby channel between each target second remote terminal unit and the third server instance, and then closing the second standby channel between each target second remote terminal unit and the first server instance, so that the current instance data upload amount of the first server instance is less than or equal to the first preset data upload amount.
In one embodiment, the second control module is further configured to obtain a second data upload amount difference between the second preset data upload amount and the current instance data upload amount, and a current terminal data upload amount of each second remote terminal unit; selecting a second target number of target second remote terminal units from the plurality of second remote terminal units; wherein the sum of the current terminal data upload volumes of the target second remote terminal units of the second target number is less than or equal to the second data upload volume difference; restoring a second backup path between each target second remote terminal unit and the first server instance, respectively, and then closing the new second backup path between each target second remote terminal unit and the third server instance.
A risk prediction based grid monitoring system, the system comprising: a scheduling unit, a plurality of remote terminal units, and a plurality of server instances; the plurality of server instances comprise a first server instance, a second server instance and a third server instance, the plurality of remote terminal units comprise a plurality of first remote terminal units and a plurality of second remote terminal units, each first remote terminal unit is connected to the first server instance through a first main channel and is connected to the second server instance through a first standby channel; each second remote terminal unit is connected to the second server instance through a second main channel and is connected to the first server instance through a second standby channel; the scheduling unit is respectively connected to the plurality of server instances;
the scheduling unit is used for executing the risk prediction-based power grid monitoring system preposition service channel dynamic adjustment method.
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:
acquiring the data uploading amount of the current instance of the first server instance;
in a first time period, when the data upload volume of the current instance of the first server instance is greater than a first preset data upload volume of the first server instance, a new second standby channel is established between the second remote terminal unit and the third server instance, and then the second standby channel between the second remote terminal unit and the first server instance is closed;
in a second time period after the first time period, when the data upload volume of the current instance of the first server instance is smaller than a second preset data upload volume of the first server instance, restoring a second standby channel between the second remote terminal unit and the first server instance, and then closing the new second standby channel between the second remote terminal unit and the third server instance; the second preset data uploading amount is smaller than the first preset data uploading amount.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring the data uploading amount of the current instance of the first server instance;
in a first time period, when the data upload volume of the current instance of the first server instance is greater than a first preset data upload volume of the first server instance, a new second standby channel is established between the second remote terminal unit and the third server instance, and then the second standby channel between the second remote terminal unit and the first server instance is closed;
in a second time period after the first time period, when the data upload volume of the current instance of the first server instance is smaller than a second preset data upload volume of the first server instance, restoring a second standby channel between the second remote terminal unit and the first server instance, and then closing the new second standby channel between the second remote terminal unit and the third server instance; the second preset data uploading amount is smaller than the first preset data uploading amount.
According to the method, the device, the system, the computer equipment and the storage medium for dynamically adjusting the pre-service channel of the power grid monitoring system based on risk prediction, in a first time period, when the data uploading amount of the current instance of the first server instance is larger than the first preset data uploading amount, namely the current data transmission load of the first server instance is higher, the second standby channel is switched to the position between the second remote terminal unit and the third server instance from the position between the second remote terminal unit and the first server instance, so that the data transmission load of the first server instance in the first time period can be reduced; in addition, in a second time period after the first time period, when the data upload amount of the current instance of the first server instance is smaller than a second preset data upload amount, that is, the current data transmission load of the first server instance is lower and is restored to a lower load level, the second standby channel is switched between the second remote terminal unit and the third server instance and is restored between the second remote terminal unit and the first server instance to restore to an initial channel distribution state, so that the purpose of reasonably scheduling the data transmission channel in real time according to the load condition of the server instance is realized, and the normal transmission of data is favorably ensured.
Drawings
Fig. 1 is an application environment diagram of a risk prediction-based dynamic adjustment method for a pre-service channel of a power grid monitoring system in an embodiment;
fig. 2 is a schematic flowchart of a method for dynamically adjusting a pre-service channel of a power grid monitoring system based on risk prediction in an embodiment;
FIG. 3 is a flowchart illustrating steps of establishing a new second backup path between the second remote terminal unit and the third server instance and then closing the second backup path between the second remote terminal unit and the first server instance in one embodiment;
FIG. 4 is a flowchart illustrating steps for restoring a second backup path between a second remote terminal unit and a first server instance and then closing a new second backup path between the second remote terminal unit and a third server instance, in accordance with one embodiment;
FIG. 5 is a diagram illustrating changes in the grid monitoring system with respect to dynamic adjustment of the grid channels in one embodiment;
FIG. 6 is a block diagram illustrating a configuration of a device for dynamically adjusting a pre-service channel of a grid monitoring system based on risk prediction according to an embodiment;
FIG. 7 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.
The method for dynamically adjusting the pre-service channel of the power grid monitoring system based on risk prediction can be applied to the application environment shown in fig. 1. The application environment comprises a risk prediction-based power grid monitoring system, and the risk prediction-based power grid monitoring system comprises: a scheduling unit 111, a plurality of remote terminal units (such as a first remote terminal unit 131, a second remote terminal unit 132) and a plurality of server instances (such as a first server instance 121, a second server instance 122, a third server instance 123); the plurality of server instances comprises a first server instance 121, a second server instance 122 and a third server instance 123, the plurality of remote terminal units comprises a plurality of first remote terminal units 131 and a plurality of second remote terminal units 132, each first remote terminal unit 131 is connected to the first server instance 121 through a first primary channel and is connected to the second server instance 122 through a first backup channel; each second remote terminal unit 132 is connected to the second server instance 122 via a second primary channel and to the first server instance 121 via a second backup channel; the scheduling units 111 are connected to a plurality of server instances, respectively.
Specifically, referring to fig. 1, the scheduling unit 111 obtains a current instance data upload amount of the first server instance 121; in a first time period, when the data upload amount of the current instance of the first server instance 121 is greater than the first preset data upload amount of the first server instance 121, a new second standby channel is established between the second remote terminal unit 132 and the third server instance 123, and then the second standby channel between the second remote terminal unit 132 and the first server instance 121 is closed; in a second time period after the first time period, when the data upload amount of the current instance of the first server instance 121 is smaller than a second preset data upload amount of the first server instance 121, the second standby channel between the second remote terminal unit 132 and the first server instance 121 is restored, and then a new second standby channel between the second remote terminal unit 132 and the third server instance 123 is closed; the second preset data uploading amount is smaller than the first preset data uploading amount. Therefore, the purpose of reasonably scheduling the data transmission channel in real time according to the load condition of the server instance is achieved, and normal transmission of data is guaranteed.
The scheduling unit 111, the first server instance 121, the second server instance 122, and the third server instance 123 may be implemented by independent servers or a server cluster formed by a plurality of servers, and the first remote terminal unit 131 and the second remote terminal unit 132 may be, but are not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices.
In an embodiment, as shown in fig. 2, a method for dynamically adjusting a pre-service channel of a power grid monitoring system based on risk prediction is provided, which is described by taking the method as an example of applying the method to a scheduling unit in fig. 1, and includes the following steps:
step S201, obtain the current instance data upload volume of the first server instance.
The current instance data may refer to power consumption data, power equipment parameters, and the like, and the specific application is not limited. The current instance data uploading amount of the first server instance refers to the current data transmission amount of the first server instance.
Specifically, referring to fig. 1, a scheduling unit in the power grid monitoring system obtains a current instance data upload amount of a first server instance connected to the scheduling unit according to a preset data upload amount obtaining instruction.
It should be noted that the power grid monitoring system further includes a plurality of remote terminal units and a plurality of server instances, the plurality of server instances include a first server instance, a second server instance and a third server instance, the plurality of remote terminal units include a plurality of first remote terminal units and a plurality of second remote terminal units, each first remote terminal unit is connected to the first server instance through a first main channel and is connected to the second server instance through a first standby channel; each second remote terminal unit is connected to the second server instance through a second main channel and connected to the first server instance through a second standby channel; the scheduling units are respectively connected to a plurality of server instances. In addition, the application is not limited with respect to the number of remote terminal units and server instances; the first main channel, the first standby channel, the second main channel and the second standby channel are all data transmission channels.
Step S202, in a first time period, when the data upload amount of the current instance of the first server instance is greater than the first preset data upload amount of the first server instance, a new second standby channel is established between the second remote terminal unit and the third server instance, and then the second standby channel between the second remote terminal unit and the first server instance is closed.
The first time period refers to a preset time period, such as 10 minutes and 20 minutes, and may be adjusted according to actual needs, which is not limited in the present application. The first preset data uploading amount of the first server instance refers to a maximum data uploading amount of the first server instance.
Specifically, in a first time period, the scheduling unit monitors the data upload amount of the current instance of the first server instance in real time, and when the data upload amount of the current instance of the first server instance is greater than the first preset data upload amount of the first server instance, which indicates that the current data transmission load of the first server instance is higher, a first channel switching instruction is generated, a new second standby channel is established between the second remote terminal unit and the third server instance according to the first channel switching instruction, and then the second standby channel between the second remote terminal unit and the first server instance is closed.
Step S203, in a second time period after the first time period, when the data uploading amount of the current instance of the first server instance is smaller than the second preset data uploading amount of the first server instance, the second standby channel between the second remote terminal unit and the first server instance is restored, and then a new second standby channel between the second remote terminal unit and the third server instance is closed; the second preset data uploading amount is smaller than the first preset data uploading amount.
The second time period also refers to a preset time period, such as 10 minutes and 20 minutes, which can be adjusted according to actual needs, and the application is not limited specifically. Within a second time period after the first time period, a time period after the first time period is referred to. The second preset data uploading amount of the first server instance refers to a minimum data uploading amount of the first server instance.
It should be noted that the scheduling unit stores in advance a first preset data upload amount and a second preset data upload amount of the first server instance.
Specifically, in a second time period after the first time period, the scheduling unit monitors the data upload amount of the current instance of the first server instance in real time, and when the data upload amount of the current instance of the first server instance is smaller than a second preset data upload amount of the first server instance, which indicates that the current data transmission load of the first server instance is lower and is restored to a lower load level, a second channel switching instruction is generated, and according to the second channel switching instruction, a second standby channel between the second remote terminal unit and the first server instance is restored first, and then a new second standby channel between the second remote terminal unit and the third server instance is closed.
In the method for dynamically adjusting the pre-service channel of the power grid monitoring system based on risk prediction, in a first time period, when the data uploading amount of the current instance of the first server instance is larger than the first preset data uploading amount, that is, the current data transmission load of the first server instance is higher, the second standby channel is switched from the second remote terminal unit to the first server instance to the second remote terminal unit and the third server instance, so that the data transmission load of the first server instance in the first time period can be reduced; in addition, in a second time period after the first time period, when the data upload amount of the current instance of the first server instance is smaller than a second preset data upload amount, that is, the current data transmission load of the first server instance is lower and is restored to a lower load level, the second standby channel is switched between the second remote terminal unit and the third server instance and is restored between the second remote terminal unit and the first server instance to restore to an initial channel distribution state, so that the purpose of reasonably scheduling the data transmission channel in real time according to the load condition of the server instance is realized, and the normal transmission of data is favorably ensured.
In an embodiment, as shown in fig. 3, in the step S202, a new second standby channel is first established between the second remote terminal unit and the third server instance, and then the second standby channel between the second remote terminal unit and the first server instance is closed, which specifically includes the following steps:
step S301, a first data upload amount difference between the current instance data upload amount and the first preset data upload amount, and the current terminal data upload amount of each second remote terminal unit are obtained.
The current terminal data uploading amount of each second remote terminal unit refers to the current data transmission amount of each second remote terminal unit; the first data uploading amount difference value between the current instance data uploading amount and the first preset data uploading amount refers to an excess uploading amount of the current instance data uploading amount exceeding the first preset data uploading amount.
Specifically, the scheduling unit acquires a first data upload amount difference between the current instance data upload amount and a first preset data upload amount, and a current terminal data upload amount of each second remote terminal unit according to a preset data upload amount acquisition instruction.
Step S302, selecting a first target number of target second remote terminal units from a plurality of second remote terminal units; the sum of the current terminal data uploading amounts of the target second remote terminal units with the first target number is greater than or equal to the first data uploading amount difference.
Specifically, the scheduling unit selects a first target number of target second remote terminal units from the plurality of second remote terminal units, so that the sum of the current terminal data upload amounts of the first target number of target second remote terminal units is greater than or equal to the first data upload amount difference.
For example, the scheduling unit selects B target second remote terminal units (B is equal to or less than a) from the a second remote terminal units, so that the sum of the current terminal data upload amounts of the B target second remote terminal units is greater than or equal to the first data upload amount difference.
Step S303, a new second backup channel is respectively established between each target second remote terminal unit and the third server instance, and then the second backup channel between each target second remote terminal unit and the first server instance is closed, so that the current instance data upload amount of the first server instance is less than or equal to the first preset data upload amount.
Specifically, for each target second remote terminal unit, the scheduling unit, according to the first channel switching instruction, first establishes a new second standby channel between the target second remote terminal unit and the third server instance, and then closes the second standby channel between the target second remote terminal unit and the first server instance, so that the current instance data upload amount of the first server instance is less than or equal to the first preset data upload amount.
In the above embodiment, when the data upload amount of the current instance of the first server instance is greater than the first preset data upload amount, it is not necessary to switch the transfer of the second backup channels of all the second remote terminal units, and it is only necessary to switch the transfer of the second backup channels of a part of the second remote terminal units corresponding to the difference value of the first data upload amount, so that the operation is flexible and simple, and meanwhile, the normal transmission of data is further ensured.
In an embodiment, as shown in fig. 4, in the step S203, first restoring the second backup channel between the second remote terminal unit and the first server instance, and then closing the new second backup channel between the second remote terminal unit and the third server instance specifically includes the following steps:
step S401, a second data upload amount difference between the second preset data upload amount and the current instance data upload amount, and a current terminal data upload amount of each second remote terminal unit are obtained.
The second data upload amount difference between the second preset data upload amount and the current instance data upload amount is an idle upload amount of which the current instance data upload amount is lower than the second preset data upload amount.
Specifically, the scheduling unit acquires a second data upload amount difference between a second preset data upload amount and a current instance data upload amount, and a current terminal data upload amount of each second remote terminal unit according to a preset data upload amount acquisition instruction.
Step S402, selecting a second target number of target second remote terminal units from the plurality of second remote terminal units; and the sum of the current terminal data upload volumes of the target second remote terminal units of the second target number is less than or equal to the second data upload volume difference.
Specifically, the scheduling unit selects a second target number of target second remote terminal units from the plurality of second remote terminal units, so that the sum of the current terminal data upload amounts of the second target number of target second remote terminal units is less than or equal to the second data upload amount difference.
For example, the scheduling unit selects D target second remote terminal units (D is equal to or less than C) from the C second remote terminal units, so that the sum of the current terminal data upload amounts of the D target second remote terminal units is equal to or less than the second data upload amount difference.
Step S403, respectively, first restore the second backup channel between each target second remote terminal unit and the first server instance, and then close the new second backup channel between each target second remote terminal unit and the third server instance.
Specifically, for each target second remote terminal unit, the scheduling unit first restores the second backup path between the second remote terminal unit and the first server instance and then closes the new second backup path between the second remote terminal unit and the third server instance according to the second path switching instruction.
In the above embodiment, when the data upload amount of the current instance of the first server instance is smaller than the second preset data upload amount, it is not necessary to perform transfer switching on the second standby channels of all the second remote terminal units, and it is only necessary to perform transfer switching on a part of the second standby channels of the second remote terminal units corresponding to the difference value of the second data upload amount, so that the operation is flexible and simple, and meanwhile, normal transmission of data is further ensured.
In one embodiment, as shown in fig. 5, a schematic diagram of changes of a grid monitoring system with respect to dynamic adjustment of a channel is provided. Specifically, referring to fig. 5, in a first time period, when the data upload amount of the current instance of the first server instance is greater than the first preset data upload amount, that is, it indicates that the current data transmission load of the first server instance is higher, for this reason, the present application switches the second backup channel from between the second remote terminal unit and the first server instance to between the second remote terminal unit and the third server instance, so that the data transmission load of the first server instance in the first time period can be reduced; in addition, in a second time period after the first time period, when the data uploading amount of the current instance of the first server instance is smaller than a second preset data uploading amount, namely the current data transmission load of the first server instance is low and is restored to a low load level, the second standby channel is switched between the second remote terminal unit and the third server instance and is restored between the second remote terminal unit and the first server instance so as to be restored to the initial channel distribution state; therefore, the data transmission channel can be reasonably scheduled in real time according to the load condition of the server instance so as to ensure normal transmission of data.
It should be noted that, regarding the first main channel and the first standby channel, when the power grid monitoring system is in a normal condition, the power grid monitoring system may utilize and analyze data transmitted through the first main channel, and may not utilize and analyze data transmitted through the first standby channel; similarly, regarding the second main channel and the second standby channel, when the power grid monitoring system is in a normal condition, the power grid monitoring system may utilize and analyze the data transmitted through the second main channel, and may not utilize and analyze the data transmitted through the second standby channel.
In one embodiment, as shown in fig. 1, there is provided a risk prediction based grid monitoring system, comprising: a scheduling unit 111, a plurality of remote terminal units (such as a first remote terminal unit 131, a second remote terminal unit 132) and a plurality of server instances (such as a first server instance 121, a second server instance 122, a third server instance 123); the plurality of server instances comprises a first server instance 121, a second server instance 122 and a third server instance 123, the plurality of remote terminal units comprises a plurality of first remote terminal units 131 and a plurality of second remote terminal units 132, each first remote terminal unit 131 is connected to the first server instance 121 through a first primary channel and is connected to the second server instance 122 through a first backup channel; each second remote terminal unit 132 is connected to the second server instance 122 via a second primary channel and to the first server instance 121 via a second backup channel; the scheduling unit 111 is connected to a plurality of server instances, respectively;
the scheduling unit 111 is configured to execute the method for dynamically adjusting a pre-service channel of a power grid monitoring system based on risk prediction according to any of the embodiments, and specific execution processes refer to steps S201 to S203, which are not described herein again.
According to the power grid monitoring system based on risk prediction, the purpose of reasonably scheduling the data transmission channel in real time according to the load condition of the server instance is achieved, and normal transmission of data is guaranteed.
It should be understood that although the various steps in the flow charts of fig. 2-4 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. 2-4 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. 6, a risk prediction-based dynamic adjustment apparatus for a pre-service channel of a power grid monitoring system is provided, and is applied to a scheduling unit in the power grid monitoring system, where the power grid monitoring system further includes a plurality of remote terminal units and a plurality of server instances, where the plurality of server instances includes a first server instance, a second server instance, and a third server instance, the plurality of remote terminal units includes a plurality of first remote terminal units and a plurality of second remote terminal units, and each first remote terminal unit is connected to the first server instance through a first main channel and is connected to the second server instance through a first standby channel; each second remote terminal unit is connected to the second server instance through a second main channel and connected to the first server instance through a second standby channel; the scheduling unit is respectively connected to the plurality of server instances; the device includes: an upload amount acquisition module 610, a first control module 620, and a second control module 630, wherein:
an upload amount obtaining module 610 is configured to obtain a current instance data upload amount of the first server instance.
A first control module 620, configured to, in a first time period, establish a new second backup channel between the second remote terminal unit and the third server instance when the data upload amount of the current instance of the first server instance is greater than the first preset data upload amount of the first server instance, and then close the second backup channel between the second remote terminal unit and the first server instance.
A second control module 630, configured to, in a second time period after the first time period, when the data upload amount of the current instance of the first server instance is smaller than a second preset data upload amount of the first server instance, restore a second standby channel between the second remote terminal unit and the first server instance, and then close a new second standby channel between the second remote terminal unit and the third server instance; the second preset data uploading amount is smaller than the first preset data uploading amount.
In one embodiment, the first control module 620 is further configured to obtain a first data upload amount difference between the current instance data upload amount and a first preset data upload amount, and a current terminal data upload amount of each second remote terminal unit; selecting a first target number of target second remote terminal units from the plurality of second remote terminal units; the sum of the current terminal data uploading amounts of the target second remote terminal units with the first target number is greater than or equal to the first data uploading amount difference; and respectively establishing a new second standby channel between each target second remote terminal unit and the third server instance, and then closing the second standby channel between each target second remote terminal unit and the first server instance so as to enable the data uploading amount of the current instance of the first server instance to be less than or equal to the first preset data uploading amount.
In one embodiment, the second control module 630 is further configured to obtain a second data upload amount difference between a second preset data upload amount and the current instance data upload amount, and a current terminal data upload amount of each second remote terminal unit; selecting a second target number of target second remote terminal units from the plurality of second remote terminal units; the sum of the current terminal data upload volumes of the target second remote terminal units of the second target number is smaller than or equal to a second data upload volume difference value; the second backup path between each target second remote terminal unit and the first server instance is restored, respectively, and then the new second backup path between each target second remote terminal unit and the third server instance is closed.
In one embodiment, the scheduling unit stores a first preset data uploading amount and a second preset data uploading amount of the first server instance in advance.
For specific limitations of the risk prediction-based power grid monitoring system front service channel dynamic adjustment device, reference may be made to the above limitations of the risk prediction-based power grid monitoring system front service channel dynamic adjustment method, and details are not repeated here. All or part of each module in the risk prediction-based power grid monitoring system preposed service channel dynamic adjusting device can be realized by 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 computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. 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 such as first preset data uploading amount, second preset data uploading amount and the like. 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 risk prediction-based dynamic adjustment method for the preposed service channel of the power grid monitoring system.
Those skilled in the art will appreciate that the architecture shown in fig. 7 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 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 an embodiment, a computer-readable storage medium is provided, in which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
In one embodiment, a computer program product or computer program is provided that includes computer instructions stored in a computer-readable storage medium. The computer instructions are read by a processor of a computer device from a computer-readable storage medium, and the computer instructions are executed by the processor to cause the computer device to perform the steps in 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 preposed service channel dynamic adjustment method based on risk prediction is characterized in that the method is applied to a scheduling unit in a power grid monitoring system, the power grid monitoring system further comprises a plurality of remote terminal units and a plurality of server instances, the plurality of server instances comprise a first server instance, a second server instance and a third server instance, the plurality of remote terminal units comprise a plurality of first remote terminal units and a plurality of second remote terminal units, and each first remote terminal unit is connected to the first server instance through a first main channel and is connected to the second server instance through a first standby channel; each second remote terminal unit is connected to the second server instance through a second main channel and is connected to the first server instance through a second standby channel; the scheduling unit is respectively connected to the plurality of server instances;
the method comprises the following steps:
acquiring the data uploading amount of the current instance of the first server instance;
in a first time period, when the data upload volume of the current instance of the first server instance is greater than a first preset data upload volume of the first server instance, a new second standby channel is established between the second remote terminal unit and the third server instance, and then the second standby channel between the second remote terminal unit and the first server instance is closed;
in a second time period after the first time period, when the data upload volume of the current instance of the first server instance is smaller than a second preset data upload volume of the first server instance, restoring a second standby channel between the second remote terminal unit and the first server instance, and then closing the new second standby channel between the second remote terminal unit and the third server instance; the second preset data uploading amount is smaller than the first preset data uploading amount.
2. The method of claim 1, wherein said first establishing a new second backup path between the second remote terminal unit and the third server instance and then closing the second backup path between the second remote terminal unit and the first server instance comprises:
acquiring a first data uploading amount difference value between the current instance data uploading amount and the first preset data uploading amount, and the current terminal data uploading amount of each second remote terminal unit;
selecting a first target number of target second remote terminal units from the plurality of second remote terminal units; the sum of the current terminal data upload volumes of the first target number of target second remote terminal units is greater than or equal to the first data upload volume difference;
establishing a new second standby channel between each target second remote terminal unit and the third server instance, and then closing the second standby channel between each target second remote terminal unit and the first server instance, so that the current instance data upload amount of the first server instance is less than or equal to the first preset data upload amount.
3. The method of claim 1, wherein said restoring a second backup path between said second remote terminal unit and said first server instance prior to closing said new second backup path between said second remote terminal unit and said third server instance comprises:
acquiring a second data upload quantity difference value between the second preset data upload quantity and the current instance data upload quantity, and the current terminal data upload quantity of each second remote terminal unit;
selecting a second target number of target second remote terminal units from the plurality of second remote terminal units; wherein the sum of the current terminal data upload volumes of the target second remote terminal units of the second target number is less than or equal to the second data upload volume difference;
restoring a second backup path between each target second remote terminal unit and the first server instance, respectively, and then closing the new second backup path between each target second remote terminal unit and the third server instance.
4. The method of claim 1, wherein the scheduling unit stores the first predetermined data upload amount and the second predetermined data upload amount of the first server instance in advance.
5. The dynamic adjustment device for the preposed service channel of the power grid monitoring system based on risk prediction is applied to a scheduling unit in the power grid monitoring system, the power grid monitoring system further comprises a plurality of remote terminal units and a plurality of server instances, the plurality of server instances comprise a first server instance, a second server instance and a third server instance, the plurality of remote terminal units comprise a plurality of first remote terminal units and a plurality of second remote terminal units, and each first remote terminal unit is connected to the first server instance through a first main channel and is connected to the second server instance through a first standby channel; each second remote terminal unit is connected to the second server instance through a second main channel and is connected to the first server instance through a second standby channel; the scheduling unit is respectively connected to the plurality of server instances;
the device comprises:
the uploading quantity obtaining module is used for obtaining the uploading quantity of the current instance data of the first server instance;
a first control module, configured to, in a first time period, when a data upload amount of a current instance of the first server instance is greater than a first preset data upload amount of the first server instance, establish a new second standby channel between the second remote terminal unit and the third server instance, and then close the second standby channel between the second remote terminal unit and the first server instance;
a second control module, configured to, in a second time period after the first time period, when a current instance data upload amount of the first server instance is smaller than a second preset data upload amount of the first server instance, restore a second backup path between the second remote terminal unit and the first server instance, and then close the new second backup path between the second remote terminal unit and the third server instance; the second preset data uploading amount is smaller than the first preset data uploading amount.
6. The apparatus of claim 5, wherein the first control module is further configured to obtain a first data upload volume difference between the current instance data upload volume and the first preset data upload volume, and a current terminal data upload volume of each of the second remote terminal units; selecting a first target number of target second remote terminal units from the plurality of second remote terminal units; the sum of the current terminal data upload volumes of the first target number of target second remote terminal units is greater than or equal to the first data upload volume difference; establishing a new second standby channel between each target second remote terminal unit and the third server instance, and then closing the second standby channel between each target second remote terminal unit and the first server instance, so that the current instance data upload amount of the first server instance is less than or equal to the first preset data upload amount.
7. The apparatus of claim 5, wherein the second control module is further configured to obtain a second data upload volume difference between the second preset data upload volume and the current instance data upload volume, and a current terminal data upload volume of each of the second remote terminal units; selecting a second target number of target second remote terminal units from the plurality of second remote terminal units; wherein the sum of the current terminal data upload volumes of the target second remote terminal units of the second target number is less than or equal to the second data upload volume difference; restoring a second backup path between each target second remote terminal unit and the first server instance, respectively, and then closing the new second backup path between each target second remote terminal unit and the third server instance.
8. A risk prediction based grid monitoring system, the system comprising: a scheduling unit, a plurality of remote terminal units, and a plurality of server instances; the plurality of server instances comprise a first server instance, a second server instance and a third server instance, the plurality of remote terminal units comprise a plurality of first remote terminal units and a plurality of second remote terminal units, each first remote terminal unit is connected to the first server instance through a first main channel and is connected to the second server instance through a first standby channel; each second remote terminal unit is connected to the second server instance through a second main channel and is connected to the first server instance through a second standby channel; the scheduling unit is respectively connected to the plurality of server instances;
the scheduling unit is used for executing the risk prediction-based power grid monitoring system preposed service channel dynamic adjustment method of any one of claims 1 to 4.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 4.
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 4.
CN202110659818.4A 2021-06-09 2021-06-09 Power grid monitoring system preposition service channel dynamic adjusting method based on risk prediction Active CN113411265B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110659818.4A CN113411265B (en) 2021-06-09 2021-06-09 Power grid monitoring system preposition service channel dynamic adjusting method based on risk prediction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110659818.4A CN113411265B (en) 2021-06-09 2021-06-09 Power grid monitoring system preposition service channel dynamic adjusting method based on risk prediction

Publications (2)

Publication Number Publication Date
CN113411265A true CN113411265A (en) 2021-09-17
CN113411265B CN113411265B (en) 2022-07-29

Family

ID=77683880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110659818.4A Active CN113411265B (en) 2021-06-09 2021-06-09 Power grid monitoring system preposition service channel dynamic adjusting method based on risk prediction

Country Status (1)

Country Link
CN (1) CN113411265B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016197876A1 (en) * 2015-06-11 2016-12-15 阿里巴巴集团控股有限公司 Remote control method, remote server, management device, and terminal
CN110351146A (en) * 2019-07-19 2019-10-18 深圳市网心科技有限公司 A kind of server-side example determines method, system, client and storage medium
CN110519346A (en) * 2019-08-14 2019-11-29 Oppo(重庆)智能科技有限公司 A kind of method, terminal, server and the computer readable storage medium of data switching
US20190387049A1 (en) * 2018-06-15 2019-12-19 Cisco Technology, Inc. Systems and methods for scaling down cloud-based servers handling secure connections

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016197876A1 (en) * 2015-06-11 2016-12-15 阿里巴巴集团控股有限公司 Remote control method, remote server, management device, and terminal
US20190387049A1 (en) * 2018-06-15 2019-12-19 Cisco Technology, Inc. Systems and methods for scaling down cloud-based servers handling secure connections
CN110351146A (en) * 2019-07-19 2019-10-18 深圳市网心科技有限公司 A kind of server-side example determines method, system, client and storage medium
CN110519346A (en) * 2019-08-14 2019-11-29 Oppo(重庆)智能科技有限公司 A kind of method, terminal, server and the computer readable storage medium of data switching

Also Published As

Publication number Publication date
CN113411265B (en) 2022-07-29

Similar Documents

Publication Publication Date Title
CN110247856B (en) Server resource release method and device
CN103559072A (en) Method and system for implementing bidirectional auto scaling service of virtual machines
EP3072325B1 (en) Method and apparatus for using a local area network to offload demand of a wide area network
WO2014194704A1 (en) A grouping processing method and system
WO2014063487A1 (en) Traffic control method and device
WO2023125637A1 (en) Charging control method and system, electronic device, and computer-readable storage medium
CN110637272A (en) Dynamic maximum frequency limit for processing core group
CN112181124A (en) Method for power consumption management and related device
CN111008909A (en) Anti-reflux protection method, device, equipment and storage medium of energy storage system
CN113411265B (en) Power grid monitoring system preposition service channel dynamic adjusting method based on risk prediction
US8438412B1 (en) System, method, and computer program for enabling an amount of multitasking for use by an operating system
US20170208121A1 (en) Server pool management
Kaushi et al. A computation offloading framework to optimize energy utilisation in mobile cloud computing environment
CN108173683B (en) Elastic control method and device for cloud application and cloud server
CN113258679B (en) Power grid monitoring system channel distribution method based on server instance capacity reduction
CN116700953A (en) Node power consumption adjusting method and device, electronic equipment and storage medium
CN114040378A (en) Application arranging method and device, computer equipment and storage medium
US9479579B2 (en) Grouping processing method and system
CN113688008B (en) Clustering algorithm technology-based power grid monitoring system pre-service fault processing method
CN113840313A (en) Network mode control method and device of mobile terminal and computer equipment
CN113742059A (en) Task allocation method and device, computer equipment and storage medium
CN113364122B (en) Power grid monitoring system channel distribution method based on server instance expansion
CN113742051A (en) Data center equipment method and device, computer equipment and storage medium
CN111817307B (en) Power load switching control method and device, computer equipment and storage medium
CN113364878B (en) Data scheduling method and device, electronic device and storage medium

Legal Events

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

Effective date of registration: 20230412

Address after: Full Floor 14, Unit 3, Building 2, No. 11, Middle Spectra Road, Huangpu District, Guangzhou, Guangdong 510700

Patentee after: China Southern Power Grid Digital Grid Technology (Guangdong) Co.,Ltd.

Address before: Room 86, room 406, No.1, Yichuang street, Zhongxin Guangzhou Knowledge City, Huangpu District, Guangzhou City, Guangdong Province

Patentee before: Southern Power Grid Digital Grid Research Institute Co.,Ltd.