Method and system for monitoring access communication load balancing of main and auxiliary equipment of transformer substation
By deploying scheduling processes and data access processes in the substation monitoring system, dynamically allocating the number of IED devices access, solving the load imbalance caused by data access in traditional systems, and achieving more effective resource utilization and system stability.
Patent Information
- Application Number
- CN202411913881.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-04-25
AI Technical Summary
Traditional substation monitoring systems cause unbalanced loads of various hosts due to data access, resulting in serious problems such as waste of host resources and abnormal downtime.
Deploy the scheduling process and multiple data access processes on the main and auxiliary equipment monitoring host nodes of the substation. By evaluating the comprehensive utilization rate of multi-core CPUs, CPU scheduling affinity, physical memory, virtual memory, network transmission and reception traffic occupancy rate and queue length of each host node, dynamically allocate the number of IED devices access to to achieve load balancing.
It effectively solves the load imbalance problem caused by data access by traditional substation monitoring systems, avoids waste of host resources and abnormal downtime, and achieves more effective hardware resource utilization.
Smart Images

Figure CN119892839A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of power system automation, and in particular relates to a method and system for monitoring access communication load balancing of main and auxiliary equipment of a substation. Background Art
[0002] In the domestic intelligent substation monitoring system, the data acquisition program mostly uses DL / T860 and IEC60870-5-104 protocols to communicate with the intelligent secondary devices of the substation. The intelligent secondary devices of the substation are referred to as IED (Intelligent Electronic Device). The number of IEDs that can be accessed by the multi-node acquisition program is restricted by the hardware resources of the host computer, such as CPU, memory, network, etc.; moreover, in order to ensure the safe and reliable operation of data acquisition, the acquisition program mostly adopts a one-master and multiple-standby mode. Once the main acquisition program fails, the standby acquisition program will automatically take over the main acquisition program function, thereby ensuring that the monitoring system data acquisition continues without interruption.
[0003] The collection program runs in a one-master-multiple-standby mode, which can ensure continuous and uninterrupted data collection, but it will also lead to unreasonable occupation of the CPU, memory, network and other hardware resources of the monitoring system of each node host. When a host runs as the main collection program, it will occupy more CPU, memory, and network resources of the host node, resulting in a shortage of hardware resources of the host, and even cause the node host to crash in serious cases; and when the host switches to the standby machine, the excessively occupied CPU, memory, and network resources are released, which will lead to a waste of CPU, memory, network and other hardware resources.
[0004] Prior art document 1 (CN10571166A) discloses a method and system for load balancing distribution, including step 1: initiating a load distribution task, configuring and preprocessing the task; step 2: obtaining relevant information and node information of the task; step 3: reading the records to be distributed from the memory library according to the relevant information and node information; step 4: distributing the records to be distributed to the corresponding process; step 5: determining whether there is a task configuration update or node information abnormality, if so, executing step 2, otherwise, executing step 6; step 6: determining whether all the records to be distributed have been distributed, if so, the result, otherwise executing step 4.
[0005] Prior art document 2 (116974700A) discloses a method for achieving dynamic resource balancing, including: obtaining cluster status data and virtual machine monitoring indicator data; establishing a cluster evaluation model; evaluating the current virtual machine resource idle rate, node resource idle rate and cluster resource idle rate respectively through the cluster evaluation model, obtaining the virtual machine evaluation results, node evaluation results and cluster evaluation results to generate corresponding virtual machine migration suggestions; and executing virtual machine migration according to the virtual machine migration suggestions.
[0006] However, in the prior art document 1, tasks are assigned to each node only based on whether the operation of each node is abnormal, without considering the actual occupation of the hardware resources such as CPU, memory, and network of each node. Even if the hardware resources of a certain node are seriously insufficient, the prior art document 1 will still assign tasks to it, which cannot truly achieve smooth and continuous load balancing of the entire system. Prior art document 2 does not consider the impact of virtual memory and network data transmission and reception on the host load, and the migration of the entire machine will still lead to waste of host resources. Summary of the invention
[0007] In order to solve the deficiencies in the prior art, the present invention provides a method and system for balancing the communication load of main and auxiliary equipment monitoring access in a substation, which solves the problem of unbalanced loads of various hosts caused by data access in traditional substation monitoring systems, as well as serious problems such as waste of host resources and abnormal downtime caused by unbalanced loads of various hosts caused by data access in traditional substation monitoring systems.
[0008] The present invention adopts the following technical solution. A first aspect of the present invention provides a method for monitoring access communication load balancing of main and auxiliary equipment in a substation, comprising:
[0009] Deploy a scheduling process and multiple data access processes on the main and auxiliary equipment monitoring host node of the substation;
[0010] The data access process registers with the scheduling process;
[0011] In case of successful registration, the dispatching process establishes communication with the data access process, and the data access process reports to the dispatching process a list of IED devices that the data access process is responsible for accessing;
[0012] The scheduling process calculates the evaluation value of each host node and the data access process on the host node based on the multi-core CPU comprehensive utilization rate, CPU scheduling affinity, physical memory, virtual memory, network sending traffic occupancy rate, network receiving traffic occupancy rate, and network data sending queue length corresponding to each host node and multiple data access processes in the acquired IED device list; and establishes an IED device allocation list according to the evaluation value; and sends the IED device allocation list to the data access process;
[0013] The data access process adjusts the IED devices accessed by the data access process according to the IED device allocation list, and updates the access IED device list corresponding to the data access process according to the IED device allocation list.
[0014] Optionally, the scheduling process calculates the evaluation value of each host node and the data access process based on the multi-core CPU comprehensive utilization rate, CPU scheduling affinity, physical memory, virtual memory, network sending traffic occupancy rate, network receiving traffic occupancy rate and network data sending queue length of each host node in the acquired IED device list, including:
[0015] The evaluation value of each host node and the data access process on the host node is calculated according to the following formula:
[0016] S total =W1S cpu +W2S mem +W3S net
[0017]
[0018] S mem =S pys +S vir
[0019] S net =S sen +S rev -S senl
[0020] Among them, S total is the evaluation value of each host node or the data access process on the host node, S cpu is the comprehensive utilization score of multi-core CPUs, S i is the utilization rate of the i-th CPU core, n is the number of CPU cores, S qin S is the CPU scheduling affinity score. pys is the physical memory score, S vir is the virtual memory score, S rev Network sending traffic occupancy rate score, S sen S is the network receiving traffic occupancy rate score, senl is the network data sending queue length score, W1, W2 and W3 are the multi-core CPU comprehensive utilization scores S cpu 、Memory score S mem and network score S net The CPU scheduling affinity score is determined according to the number of IED devices allocated this time and is used for the next IED device allocation;
[0021] The evaluation value is linearly transformed and mapped to a preset score interval to obtain the evaluation value of each host node and the data access process on the host node.
[0022] Optionally, establishing an IED device allocation list according to the evaluation value includes:
[0023] Calculate the number of IED devices connected to each node according to the evaluation value of each host node, and when the evaluation value of the host node is less than a preset score, the host node does not participate in the access allocation of the IED device;
[0024] The number of IED devices accessed by each data access process is calculated according to the evaluation value of the data access process corresponding to each host node and the number of IED devices accessed by each host node. When the number of IED devices allocated to the host node is 0, all data access processes of this node do not participate in the access allocation of the IED device;
[0025] An IED device allocation table is established according to the number of IED devices connected to each node and the number of IED devices connected to each data access process.
[0026] Optionally, a scheduling process manages one or more data access processes, and the scheduling process runs in an active-standby mode.
[0027] Optionally, when the scheduling process runs in active / standby mode, it includes:
[0028] Get the start time of each host node scheduling process;
[0029] The scheduled process with the earliest start time is run as the main process, and other scheduled processes are run as standby processes;
[0030] When the main process crashes or the system hardware resources meet the switching conditions, the current main process will run as a standby process, and one of the standby processes will be selected to switch to the main process.
[0031] Optionally, the switching condition is that the evaluation value of the host node corresponding to the data access process is less than a preset score.
[0032] Optionally, selecting one of the standby processes to switch to a main process includes:
[0033] Obtain the evaluation values of the host nodes and the number of IED devices corresponding to all standby processes;
[0034] The scheduling process on the host node with the highest evaluation value is selected to switch to the main process, or the scheduling process on the host node with the least number of connected IED devices is selected to switch to the main process.
[0035] Optionally, the data access process registering with the scheduling process includes:
[0036] Determine whether the scheduling process is started; and when the scheduling process is started, the scheduling process monitors the registration port of the data access process;
[0037] The data access process initiates a registration request to the scheduling process;
[0038] After receiving the registration request, the scheduling process establishes an IED device allocation list based on the multi-core CPU comprehensive utilization rate of the host node, CPU scheduling affinity, physical memory, virtual memory, network sending traffic occupancy rate, network receiving traffic occupancy rate, and network data sending queue length; and sends the IED device allocation list to the data access process; and returns a process registration success message;
[0039] The data access process receives the registration success message and proposes data communication with the corresponding IED according to the IED device allocation list.
[0040] A second aspect of the present invention provides a system for monitoring access communication load balancing of main and auxiliary equipment in a substation, the system comprising:
[0041] A deployment module is used to deploy a scheduling process and multiple data access processes on the host node for monitoring the main and auxiliary equipment of the substation;
[0042] Registration module, used for data access process to register with the scheduling process;
[0043] A reporting module, used for establishing communication between the scheduling process and the data access process when the registration is successful, and the data access process reports to the scheduling process a list of IED devices that the data access process is responsible for accessing;
[0044] The allocation module is used for calculating the evaluation value of each host node and the data access process on the host node based on the comprehensive utilization rate of the multi-core CPU corresponding to each host node in the acquired IED device list, CPU scheduling affinity, physical memory, virtual memory, network sending traffic occupancy rate, network receiving traffic occupancy rate, and network data sending queue length of the scheduling process; and establishing an IED device allocation list according to the evaluation value; and sending the IED device allocation list to the data access process;
[0045] The access module is used for adjusting the IED device accessed by the host node corresponding to the data access process according to the IED allocation list, and updating the IED device list accessed by the host node corresponding to the data access process according to the IED allocation list.
[0046] Compared with the prior art, the beneficial effects of the present invention include at least:
[0047] Compared with the prior art document 1, the present invention dynamically allocates the number of IED devices connected to each node according to the CPU, memory, network and other hardware resource occupancy of each host node, thereby solving the problem of unbalanced load of each host due to data access in the traditional substation monitoring system, as well as serious problems such as waste of host resources and abnormal downtime caused by unbalanced load of each host due to data access in the traditional substation monitoring system.
[0048] Compared with the prior art document 2, the present invention fully considers the impact of various hardware resource factors such as the comprehensive occupancy rate of multi-core CPUs, physical memory, virtual memory occupancy rate and access efficiency of different types of memory, network data transmission and reception occupancy rate and queue length on the communication load balancing of the main and auxiliary equipment monitoring access of the substation. It can more smoothly adjust the communication load balancing of the main and auxiliary equipment monitoring access of the substation, and more effectively utilize the hardware resources of the main and auxiliary equipment monitoring system of the substation, and effectively solve the serious problems of waste of host resources and abnormal downtime caused by unbalanced load of each host due to data access in the traditional substation monitoring system. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:
[0050] Figure 1 A schematic diagram of the composition of a substation main and auxiliary equipment monitoring access communication load balancing system provided by an embodiment of the present invention;
[0051] Figure 2 A schematic diagram of the operation structure of a substation main and auxiliary equipment monitoring access communication load balancing system provided by an embodiment of the present invention;
[0052] Figure 3 A flow chart of a method for monitoring access communication load balancing of main and auxiliary equipment in a substation provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical scheme and advantages of the present invention clearer, the technical scheme of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. The embodiments described in this application are only embodiments of a part of the present invention, rather than all embodiments. Based on the spirit of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the protection scope of the present invention.
[0054] Combination Figures 1 to 3As shown, embodiment 1 of the present invention provides a method for monitoring access communication load balancing of main and auxiliary equipment in a substation, including the following contents:
[0055] Step 1: Deploy a scheduling process and multiple data access processes on the substation main and auxiliary equipment monitoring host node.
[0056] Optionally, a scheduling process manages one or more data access processes, and the scheduling process runs in a master-slave mode.
[0057] Specifically, the dlbserver scheduling process is deployed in a master-slave mode on multiple host nodes to ensure the provision of safe and reliable scheduling services; the dlbfep data access process is deployed in an independent mode on multiple host nodes to ensure the provision of safe and reliable IED device data access services. The dlbserver scheduling process is deployed on multiple host nodes and is a key process of the system. It schedules the IED devices on each node and the IED device access quantity allocation of the dlbfep data access process, and runs in a master-slave mode; only the dlbserver main process executes the IED device access scheduling task, and the standby process runs in a hot standby mode, ready to take over the main process function at any time.
[0058] Optionally, when the scheduling process runs in active / standby mode, it includes:
[0059] Get the start time of each host node scheduling process;
[0060] The scheduled process with the earliest start time is run as the main process, and other scheduled processes are run as standby processes;
[0061] When the main process crashes or the system hardware resources meet the switching conditions, the current main process will run as a standby process, and one of the standby processes will be selected to switch to the main process.
[0062] Specifically, the switching condition is that the evaluation value of the host node corresponding to the data access process is less than a preset score.
[0063] Specifically, the preset score is 30 points.
[0064] Specifically, the first dlbserver scheduling process started in the system automatically switches to the main process, and the dlbserver scheduling process started later is the backup process; when the dlbserver main process crashes or the system hardware resources are seriously insufficient, the monitoring platform switches from the dlbserver with the least hardware resources to the main process and takes over the scheduling tasks connected to the system IED device. After the crashed dlbserver main process is restarted, the dlbserver scheduling process of the node can only run as a backup process; that is, the dlbserver scheduling process is downgraded to a backup process due to the serious shortage of system hardware resources of the host node.
[0065] Optionally, selecting one of the standby processes to switch to a main process includes:
[0066] Obtain the evaluation values of the host nodes and the number of IED devices corresponding to all standby processes;
[0067] The scheduling process on the host node with the highest evaluation value is selected to switch to the main process, or the scheduling process on the host node with the least number of connected IED devices is selected to switch to the main process.
[0068] Step 2: The data access process registers with the scheduling process.
[0069] In step 2, the data access process registers with the scheduling process including:
[0070] Determine whether the scheduling process is started; and when the scheduling process is started, the scheduling process monitors the registration port of the data access process;
[0071] The data access process initiates a registration request to the scheduling process;
[0072] After receiving the registration request, the scheduling process establishes an IED device allocation list based on the multi-core CPU comprehensive utilization rate of the host node, CPU scheduling affinity, physical memory, virtual memory, network sending traffic occupancy rate, network receiving traffic occupancy rate, and network data sending queue length; and sends the IED device allocation list to the data access process; and returns a process registration success message;
[0073] The data access process receives the registration success message and proposes data communication with the corresponding IED according to the IED device allocation list.
[0074] Step 3: When the registration is successful, the dispatching process establishes communication with the data access process, and the data access process reports to the dispatching process a list of IED devices accessed by the host node corresponding to the data access process.
[0075] Step 4: The scheduling process calculates the evaluation value of each host node and the data access process on the host node based on the multi-core CPU comprehensive utilization rate, CPU scheduling affinity, physical memory, virtual memory, network sending traffic occupancy rate, network receiving traffic occupancy rate, and network data sending queue length corresponding to each host node in the acquired IED device list; and establishes an IED device allocation list according to the evaluation value; and sends the IED device allocation list to the data access process.
[0076] Optionally, in step 4, the scheduling process calculates the evaluation value of each host node based on the multi-core CPU comprehensive utilization rate, CPU scheduling affinity, physical memory, virtual memory, network sending traffic occupancy rate, network receiving traffic occupancy rate and network data sending queue length of each host node in the acquired IED device list, including:
[0077] The evaluation value of each host node and the data access process on the host node is calculated according to the following formula:
[0078] S total =W1S cpu +W2S mem +W3S net
[0079]
[0080] S mem =S pys +S vir
[0081] S net =S sen +S rev -S senl
[0082] Among them, S total is the evaluation value of each host node or the data access process on the host node, S cpu is the comprehensive utilization score of multi-core CPUs, S i is the utilization rate of the i-th CPU core, n is the number of CPU cores, S qin S is the CPU scheduling affinity score. pys is the physical memory score, S vir is the virtual memory score, S rev Network sending traffic occupancy rate score, S sen S is the network receiving traffic occupancy rate score, senl is the network data sending queue length score, W1, W2 and W3 are the multi-core CPU comprehensive utilization scores S cpu 、Memory score S mem and network score S net The CPU scheduling affinity score is determined according to the number of IED devices allocated this time and is used for the next IED device allocation;
[0083] The evaluation value is linearly transformed and mapped to a preset score interval to obtain the evaluation value of each host node and the data access process on the host node.
[0084] Specifically, the preset score range is 0 to 100. The values of W1, W2 and W3 can all be 1 / 3, or the weight value of each indicator can be set according to the actual application.
[0085] The dlbserver scheduling process dynamically schedules the number of access devices of each node data access process by calculating the occupancy of the host node's CPU, memory, network and other hardware resources, thereby achieving load balancing of the hardware resources of each host node.
[0086] Optionally, in step 4, establishing an IED device allocation list according to the evaluation value includes:
[0087] Calculate the number of IED devices connected to each node according to the evaluation value of each host node, and when the evaluation value of the host node is less than a preset score, the host node does not participate in the access allocation of the IED device;
[0088] The number of IED devices accessed by each data access process is calculated according to the evaluation value of the data access process corresponding to each host node and the number of IED devices accessed by each host node. When the number of IED devices allocated to the host node is 0, all data access processes of this node do not participate in the access allocation of the IED device;
[0089] An IED device allocation table is established according to the number of IED devices connected to each node and the number of IED devices connected to each data access process.
[0090] In this embodiment, after the dlbfep data access process successfully registers with the dlbserver main process, the dlbserver main process obtains the multi-core CPU, physical memory, virtual memory, network sending traffic, network receiving traffic, network data sending queue and other hardware resource occupancy of each host node in the system from the real-time library, and combines the multi-core CPU load and affinity scheduling of each host node, the remaining amount of physical memory and virtual memory and the access efficiency of different types of storage, the average network data receiving traffic, sending traffic and network data sending queue length, and comprehensively scores each host node based on the above factors.
[0091] Table 1
[0092]
[0093]
[0094] Specifically, the scoring criteria are shown in Table 1, where the multi-core CPU utilization calculation method requires first obtaining the number of CPU cores, then obtaining the utilization of each core, and then summing up the utilization of each core and taking the average to obtain the multi-core CPU comprehensive utilization rate; the network receiving traffic occupancy rate is obtained by dividing the amount of data received by the network card per unit time by the theoretical traffic of the network card; according to the above standards, the comprehensive scores of the multi-core CPU, physical memory, virtual memory, and network of all host nodes in the system are calculated, with a total score of 300 points, and then converted from the total score of 300 points to 100 points, which is the final score of each host node for this evaluation.
[0095] The list of IED devices to be dynamically allocated to each host node is determined based on its evaluation value: when the score is less than 30, it indicates that the hardware resources of the host node are insufficient and it will not participate in the data access allocation of the IED device. Table 2 shows the distribution table of the total score of the host node evaluation value and the number of IED devices to be accessed. The total share is obtained by summing up the shares obtained by all hosts, and then the ratio of the share obtained by each host node to the total share is multiplied by the total number of IED devices to obtain the list of IED devices that each host node is responsible for accessing.
[0096] Table 2
[0097] Total score Number of connected IED devices 30-40 minutes 1 serving 40-50 points 2 servings 50-60 points 3 servings 60-70 points 4 servings 70-80 points 5 servings 80-90 points 6 servings 90 points or above 7 servings
[0098] Then, the list of IED devices to be dynamically allocated to each dlbfep data access process is determined based on the evaluation value of each dlbfep data access process: if it is less than 30, it indicates that the hardware resources of the process are too occupied and it will not participate in the IED data access allocation, as shown in Table 2. It can also be expressed as a distribution table of the total score of the data access process evaluation value and the number of IED devices to be accessed; the total share is obtained by summing up the shares obtained by all dlbfep data access processes, and then the proportion of the shares obtained by each dlbfep data access process to the total share is multiplied by the total number of all IED devices of this node, that is, the list of IED devices that each dlbfep data access process is responsible for accessing; the dlbfep data access process of each node establishes data communication with the IED device assigned to this process based on the IED device list. If the number of IED devices allocated to this node is 0, all dlbfep data access processes of this node will not access IED data.
[0099] Step 5: The data access process adjusts the IED devices accessed by the data access process according to the IED device allocation list, and updates the access IED device list corresponding to the data access process according to the IED device allocation list.
[0100] Optionally, the method further comprises:
[0101] Step 6: The dlbfep data access process of each node periodically reports the list of IED devices responsible for access to the dlbserver main process.
[0102] Since each IED device may experience communication anomalies during the communication process, the dlbfep data access process is required to report the list of IED devices that this process is responsible for accessing and the communication status with them; the dlbserver main process is responsible for updating the list of IED devices accessed by each node and the communication status with them, and dynamically scheduling the access devices based on this situation.
[0103] Embodiment 2 of the present invention provides a system for monitoring access communication load balancing of main and auxiliary equipment of a substation, and runs the method and system for monitoring access communication load balancing of main and auxiliary equipment of a substation as described in Embodiment 1, and the system includes:
[0104] A deployment module is used to deploy a scheduling process and multiple data access processes on the host node for monitoring the main and auxiliary equipment of the substation;
[0105] Registration module, used for data access process to register with the scheduling process;
[0106] A reporting module, used for establishing communication between the scheduling process and the data access process when the registration is successful, and the data access process reports to the scheduling process a list of IED devices connected to the host node corresponding to the data access process;
[0107] The allocation module is used for calculating the evaluation value of each host node and the data access process on the host node based on the comprehensive utilization rate of the multi-core CPU corresponding to each host node in the acquired IED device list, CPU scheduling affinity, physical memory, virtual memory, network sending traffic occupancy rate, network receiving traffic occupancy rate, and network data sending queue length of the scheduling process; and establishing an IED device allocation list according to the evaluation value; and sending the IED device allocation list to the data access process;
[0108] The access module is used for adjusting the IED device accessed by the host node corresponding to the data access process according to the IED device allocation list, and updating the IED device list accessed by the host node corresponding to the data access process according to the IED allocation list.
[0109] Compared with the prior art, the beneficial effects of the present invention include at least:
[0110] Compared with the prior art document 1, the present invention dynamically allocates the number of IED devices connected to each node according to the CPU, memory, network and other hardware resource occupancy of each host node, thereby solving the problem of unbalanced load of each host due to data access in the traditional substation monitoring system, as well as serious problems such as waste of host resources and abnormal downtime caused by unbalanced load of each host due to data access in the traditional substation monitoring system.
[0111] Compared with the prior art document 2, the present invention fully considers the impact of various hardware resource factors such as the comprehensive occupancy rate of multi-core CPUs, physical memory, virtual memory occupancy rate and access efficiency of different types of memory, network data transmission and reception occupancy rate and queue length on the communication load balancing of the main and auxiliary equipment monitoring access of the substation. It can more smoothly adjust the communication load balancing of the main and auxiliary equipment monitoring access of the substation, and more effectively utilize the hardware resources of the main and auxiliary equipment monitoring system of the substation, and effectively solve the serious problems of waste of host resources and abnormal downtime caused by unbalanced load of each host due to data access in the traditional substation monitoring system.
[0112] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0113] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.
[0114] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0115] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0116] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0117] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A method for monitoring access communication load balancing of main and auxiliary equipment in a substation, characterized in that: include: Deploy a scheduling process and multiple data access processes on the main and auxiliary equipment monitoring host node of the substation; The data access process registers with the scheduling process; In case of successful registration, the dispatching process establishes communication with the data access process, and the data access process reports to the dispatching process a list of IED devices that the data access process is responsible for accessing; The scheduling process calculates the evaluation value of each host node and the data access process on the host node based on the multi-core CPU comprehensive utilization rate, CPU scheduling affinity, physical memory, virtual memory, network sending traffic occupancy rate, network receiving traffic occupancy rate, and network data sending queue length corresponding to each host node and multiple data access processes in the acquired IED device list, and establishes an IED device allocation list according to the evaluation value, and sends the IED device allocation list to the data access process; The data access process adjusts the IED devices accessed by the data access process according to the IED device allocation list, and updates the access IED device list corresponding to the data access process according to the IED device allocation list.
2. The method for monitoring access communication load balancing of main and auxiliary equipment in a substation according to claim 1, characterized in that: The scheduling process calculates the evaluation value of each host node and data access process based on the multi-core CPU comprehensive utilization rate, CPU scheduling affinity, physical memory, virtual memory, network sending traffic occupancy rate, network receiving traffic occupancy rate and network data sending queue length of each host node in the obtained IED device list, including: The evaluation value of each host node and the data access process on the host node is calculated according to the following formula: S total =W1S cpu +W2S mem +W3S net S mem =S pys +S vir S net =S sen +S rev -S senl Among them, S total is the evaluation value of each host node or the data access process on the host node, S cpu is the comprehensive utilization score of multi-core CPUs, S i is the utilization rate of the i-th CPU core, n is the number of CPU cores, S qin S is the CPU scheduling affinity score. pys is the physical memory score, S vir is the virtual memory score, S rev Network sending traffic occupancy rate score, S sen S is the network receiving traffic occupancy rate score, senl is the network data sending queue length score, W1, W2 and W3 are the multi-core CPU comprehensive utilization scores S cpu 、Memory score S mem and network score S net The CPU scheduling affinity score is determined according to the number of IED devices allocated this time and is used for the next IED device allocation; The evaluation value is linearly transformed and mapped to a preset score interval to obtain the evaluation value of each host node and the data access process on the host node.
3. The method for monitoring access communication load balancing of main and auxiliary equipment in a substation according to claim 1, characterized in that: Establishing an IED device allocation list based on the evaluation value includes: Calculate the number of IED devices connected to each node according to the evaluation value of each host node, and when the evaluation value of the host node is less than a preset score, the host node does not participate in the access allocation of the IED device; The number of IED devices accessed by each data access process is calculated according to the evaluation value of the data access process corresponding to each host node and the number of IED devices accessed by each host node. When the number of IED devices allocated to the host node is 0, all data access processes of this node do not participate in the access allocation of the IED device; An IED device allocation table is established according to the number of IED devices connected to each node and the number of IED devices connected to each data access process.
4. The method for monitoring access communication load balancing of main and auxiliary equipment in a substation according to claim 1, characterized in that: A scheduling process manages one or more data access processes, and the scheduling process runs in active-standby mode.
5. The method for monitoring access communication load balancing of main and auxiliary equipment in a substation according to claim 4, characterized in that: When the scheduling process runs in active / standby mode, it includes: Get the start time of each host node scheduling process; The scheduled process with the earliest start time is run as the main process, and other scheduled processes are run as standby processes; When the main process crashes or the system hardware resources meet the switching conditions, the current main process will run as a standby process, and one of the standby processes will be selected to switch to the main process.
6. The method for monitoring access communication load balancing of main and auxiliary equipment in a substation according to claim 5, characterized in that: The switching condition is that the evaluation value of the host node corresponding to the data access process is less than the preset score.
7. The method for monitoring access communication load balancing of main and auxiliary equipment in a substation according to claim 5, characterized in that: Selecting a backup process to switch to a primary process includes: Obtain the evaluation values of the host nodes and the number of IED devices corresponding to all standby processes; The scheduling process on the host node with the highest evaluation value is selected to switch to the main process, or the scheduling process on the host node with the least number of connected IED devices is selected to switch to the main process.
8. The method for monitoring access communication load balancing of main and auxiliary equipment in a substation according to claim 1, characterized in that: The data access process registers with the scheduling process including: Determine whether the scheduling process is started, and if the scheduling process is started, the scheduling process monitors the registration port of the data access process; The data access process initiates a registration request to the scheduling process; After receiving the registration request, the scheduling process establishes an IED device allocation list based on the multi-core CPU comprehensive utilization rate of the host node, CPU scheduling affinity, physical memory, virtual memory, network sending traffic occupancy rate, network receiving traffic occupancy rate, and network data sending queue length, and sends the IED device allocation list to the data access process, and returns a process registration success message; The data access process receives the registration success message and proposes data communication with the corresponding IED according to the IED device allocation list.
9. A system for monitoring access communication load balancing of main and auxiliary equipment of a substation using the method for monitoring access communication load balancing of main and auxiliary equipment of a substation according to any one of claims 1 to 8, characterized in that: include: A deployment module is used to deploy a scheduling process and multiple data access processes on the host node for monitoring the main and auxiliary equipment of the substation; Registration module, used for data access process to register with the scheduling process; A reporting module, used for establishing communication between the scheduling process and the data access process when the registration is successful, and the data access process reports to the scheduling process a list of IED devices that the data access process is responsible for accessing; The allocation module is used for calculating the evaluation value of each host node and the data access process on the host node based on the comprehensive utilization rate of the multi-core CPU corresponding to each host node in the acquired IED device list, CPU scheduling affinity, physical memory, virtual memory, network sending traffic occupancy rate, network receiving traffic occupancy rate, and network data sending queue length of the scheduling process, and establishing an IED device allocation list according to the evaluation value, and sending the IED device allocation list to the data access process; The access module is used for adjusting the IED device accessed by the host node corresponding to the data access process according to the IED device allocation list, and updating the IED device list accessed by the host node corresponding to the data access process according to the IED allocation list.