CN113393087A - Concurrent processing method and system for relay protection fault calculation task - Google Patents

Concurrent processing method and system for relay protection fault calculation task Download PDF

Info

Publication number
CN113393087A
CN113393087A CN202110547548.8A CN202110547548A CN113393087A CN 113393087 A CN113393087 A CN 113393087A CN 202110547548 A CN202110547548 A CN 202110547548A CN 113393087 A CN113393087 A CN 113393087A
Authority
CN
China
Prior art keywords
calculation
task
server
client
computing
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.)
Pending
Application number
CN202110547548.8A
Other languages
Chinese (zh)
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.)
State Grid Corp of China SGCC
China Electric Power Research Institute Co Ltd CEPRI
Electric Power Research Institute of State Grid Henan Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
China Electric Power Research Institute Co Ltd CEPRI
Electric Power Research Institute of State Grid Henan Electric Power 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 State Grid Corp of China SGCC, China Electric Power Research Institute Co Ltd CEPRI, Electric Power Research Institute of State Grid Henan Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202110547548.8A priority Critical patent/CN113393087A/en
Publication of CN113393087A publication Critical patent/CN113393087A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06312Adjustment or analysis of established resource schedule, e.g. resource or task levelling, or dynamic rescheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/20Administration of product repair or maintenance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Economics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Marketing (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Educational Administration (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • Public Health (AREA)
  • Water Supply & Treatment (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a concurrent processing method and a concurrent processing system for a relay protection fault calculation task, wherein the concurrent processing method comprises the following steps: the scheduling server is mainly responsible for user and task management, task allocation and result recovery, the computing server is responsible for task subprocess management and maintenance, the data server provides historical task information storage and query, the scheduling server, the computing server and the data server respectively process different services, redundant functions and repeated functions cannot occur, each server is responsible for the tasks, load balance is guaranteed as much as possible, and the phenomenon that pressure falls over on one side cannot occur; different users can submit calculation requests at the same time, the system automatically shields messages, and tasks among the users do not conflict with each other; the distributed parallel computing system established by the TCP and the reliable UDP communication mode and the multi-core technology can provide reliable and efficient concurrent computing service for various types of computation of the power system, and the system is stable in operation.

Description

Concurrent processing method and system for relay protection fault calculation task
Technical Field
The invention relates to the technical field of task processing, in particular to a concurrent processing method and a concurrent processing system for a relay protection fault calculation task.
Background
The power system relay protection setting calculation is that on the premise of meeting the setting regulation requirements, primary equipment of a power system is subjected to protection setting value calculation work according to a corresponding protection principle, and a proper protection setting value is configured for a protection device so as to meet the requirements of relay protection on four properties and normal operation of the power system. The result of the fault analysis and calculation is the basis of the relay protection setting calculation, and complex and large amount of various fault calculations including single-phase faults, two-phase short circuits, two-phase short circuit grounding, three-phase short circuits, disconnection faults, line crossing faults, random repeated faults, non-full-phase oscillation and the like need to be repeatedly performed in the relay protection setting work.
The initial relay protection setting calculation and fault analysis are manually realized, the calculation work of fault current and branch coefficient in the calculation of protection setting values by adopting a computer program gradually appears in the early 70 s, but the selection of the protection setting values is finished by manual calculation of setting personnel according to the setting principle on the rule; after 90 years, the relay protection technology leaps forward suddenly, and the research and development of relevant software for relay protection setting calculation enter a relatively advanced stage. The relay protection setting calculation system based on the imaging mainly comprises a network topology structure, network system parameters, setting calculation, fault calculation and the like on a functional module. The setting calculation module realizes automatic setting calculation of protection fixed values of main primary equipment (mainly including a power transmission line, a transformer, a circuit breaker, a bus, a reactor and the like) in a large-scale complex power system, such as fixed values of each section of zero-sequence current protection, phase-to-phase and grounding distance protection of the power transmission line, fully considers the requirements of setting procedures, and adopts an algorithm to quickly and accurately determine a minimum breakpoint and a combined operation mode. The fault calculation module provides a fault calculation function, can process various types of simple faults and complex faults, and provides preparation for setting calculation according to a fault calculation result.
In terms of data processing and computing capacity, most of the current relay protection setting computing systems adopt a single machine deployment mode, and each level of scheduling control system is applied and exclusively shares respective storage resources and computing resources. The huge power grid using the extra-high voltage power transmission channel as a main grid frame has the advantages of tight alternating current electrical connection, huge direct current exchange capacity, further enhanced mutual influence and interaction of all levels of power grids, more obvious multi-level and full-grid characteristics of power grid relay protection setting value calculation range, high calculation complexity, large calculation amount, difficulty in parallel task execution and the like. In view of the above, a protection fixed value calculation overall architecture based on a parallel calculation technology needs to be researched, a dynamic allocation and service key technology of wide area calculation resources in an intensive calculation scene is broken through, the fast parallel processing of the protection fixed value calculation of the large power grid is realized, the utilization efficiency and the calculation speed of the calculation resources are maximized, and technical support and guarantee are provided for the safe and stable operation of the large power grid and the cross-regional power grid.
Disclosure of Invention
The invention provides a concurrent processing method and a concurrent processing system for a relay protection fault calculation task, and aims to solve the problem of how to efficiently realize the concurrent processing of the relay protection fault calculation task.
In order to solve the above problem, according to an aspect of the present invention, there is provided a method for concurrently processing a relay protection fault calculation task, the method including:
verifying the validity of a received relay protection fault calculation request sent by a client by using a scheduling server, determining a calculation task according to the relay protection fault calculation request after the verification is passed, and issuing the calculation task to a corresponding calculation server according to the type of the calculation task;
analyzing the calculation task by using a calculation server, determining configuration information corresponding to the calculation task according to an analysis result, starting a corresponding calculation program according to the configuration information to perform corresponding operation, acquiring a calculation result, and returning the calculation result to a scheduling server;
and returning the calculation result to the client corresponding to the calculation task by using the scheduling server.
Preferably, wherein the method further comprises:
the method comprises the steps that a client side is reliably connected with a system, a connect _ platform interface is called to establish TCP long connection with a gateway master control node of the system, a sendto _ platform unified service interface is called to complete user identity verification after connection is completed, and a verification result fed back by the system is received through a recvfrom _ platform interface;
when the verification result indicates that the communication connection between the client and the system is completed, organizing a calculation data compression packet, and sending the calculation data compression packet to a scheduling server by calling a sendto _ platform interface so as to initiate a calculation request; and after the successful sending, starting an independent message processing thread, calling a recvdrom _ platform interface to receive the message sent back by the scheduling server until the task calculation is completed, calling a disconnect _ platform interface to inform a system to close the connection with the client, and closing the socket connection of the client by calling close to connect the user.
Preferably, the scheduling server communicates with the client and each node server in a TCP and UDP communication mode based on reliable protocol communication, so as to transmit data and files, and issues commands and files between each node server in a multicast technology.
Preferably, wherein the method further comprises:
the dispatching server distinguishes different clients through a certificate provided when a user of the client is connected and registered, searches the client to which the relay protection fault calculation request corresponding to the calculation task belongs according to the task code and the certificate after the calculation task is processed, and sends a corresponding operation result to the client corresponding to the calculation task.
Preferably, wherein the method further comprises:
the method comprises the steps that a scheduling server sets an operation mode, selects a fault type and a fault position, calls a node admittance matrix formed based on a power grid equivalent network, performs task decomposition on the operation mode, the fault position and the node admittance matrix according to the fault type to form configuration information corresponding to different computing task requirements, and sends the configuration information to different computing servers respectively to perform task computing.
Preferably, wherein the method further comprises:
and the scheduling server calculates the calculation resource information of the calculation server which finishes the calculation task, and sends the completion information of the calculation task to a data server for information storage of the historical task.
According to another aspect of the present invention, there is provided a system for concurrently processing a relay protection fault calculation task, the system including:
the scheduling server is used for verifying the validity of the received relay protection fault calculation request sent by the client, determining a calculation task according to the relay protection fault calculation request after the verification is passed, and issuing the calculation task to a corresponding calculation server according to the type of the calculation task; the system comprises a client, a server and a server, wherein the client is used for returning a calculation result to the client corresponding to the calculation task;
and the computing server is used for analyzing the computing task, determining configuration information corresponding to the computing task according to an analysis result, starting a corresponding computing program according to the configuration information to perform corresponding operation, acquiring a computing result and returning the computing result to the scheduling server.
Preferably, wherein the system further comprises:
the client establishes reliable connection with the system, calls the connect _ platform interface and the gateway master control node of the system to establish TCP long connection, calls the sendto _ platform unified service interface to complete the verification of the user identity after the connection is completed, and receives a verification result fed back by the system through the recvfrom _ platform interface;
when the verification result indicates that the communication connection between the client and the system is completed, organizing a calculation data compression packet, and sending the calculation data compression packet to a scheduling server by calling a sendto _ platform interface so as to initiate a calculation request; and after the successful sending, starting an independent message processing thread, calling a recvdrom _ platform interface to receive the message sent back by the scheduling server until the task calculation is completed, calling a disconnect _ platform interface to inform a system to close the connection with the client, and closing the socket connection of the client by calling close to connect the user.
Preferably, the scheduling server communicates with the client and each node server in a TCP and UDP communication mode based on reliable protocol communication, so as to transmit data and files, and issues commands and files between each node server in a multicast technology.
Preferably, the scheduling server is further configured to:
the method comprises the steps of distinguishing different clients through certificates provided when users of the clients connect and register, searching the client to which a relay protection fault calculation request corresponding to a calculation task belongs according to a task code and the certificates after the calculation task is processed, and sending a corresponding operation result to the client corresponding to the calculation task.
Preferably, the scheduling server is further configured to:
setting an operation mode, selecting a fault type and a fault position, calling a node admittance matrix formed based on the power grid equivalent network, performing task decomposition on the operation mode, the fault position and the node admittance matrix according to the fault type to form configuration information corresponding to different computing task requirements, and respectively sending the configuration information to different computing servers for task computing.
Preferably, the scheduling server is further configured to:
and calculating the calculation resource information of the calculation server which finishes the calculation task, and sending the completion information of the calculation task to a data server for information storage of the historical task.
The invention provides a concurrent processing method and a concurrent processing system for a relay protection fault calculation task, wherein a scheduling server is mainly responsible for user and task management, task allocation and result recovery, a calculation server is responsible for task subprocess management and maintenance, a data server provides historical task information storage and query, the scheduling server, the calculation server and the data server respectively process different services, redundant functions and repeated functions cannot occur, each server is responsible for the responsibility, load balance is ensured as much as possible, and the phenomenon that pressure falls over on one side cannot occur; different users can submit calculation requests at the same time, the system automatically shields messages, and tasks among the users do not conflict with each other; the distributed parallel computing system established by the TCP and the reliable UDP communication mode and the multi-core technology can provide reliable and efficient concurrent computing service for various types of computation of the power system, and the system is stable in operation.
Drawings
A more complete understanding of exemplary embodiments of the present invention may be had by reference to the following drawings in which:
fig. 1 is a flowchart of a concurrent processing method 100 for a relay protection fault calculation task according to an embodiment of the present invention;
FIG. 2 is a system architecture diagram according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a communication middleware configuration according to an embodiment of the present invention;
FIG. 4 is a flow diagram of client interaction with a system according to an embodiment of the invention;
FIG. 5 is a flow diagram of task computation within a system according to an embodiment of the invention;
fig. 6 is a schematic structural diagram of a concurrent processing system 600 for a relay protection fault calculation task according to an embodiment of the present invention.
Detailed Description
The exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, however, the present invention may be embodied in many different forms and is not limited to the embodiments described herein, which are provided for complete and complete disclosure of the present invention and to fully convey the scope of the present invention to those skilled in the art. The terminology used in the exemplary embodiments illustrated in the accompanying drawings is not intended to be limiting of the invention. In the drawings, the same units/elements are denoted by the same reference numerals.
Unless otherwise defined, terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. Further, it will be understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense.
Fig. 1 is a flowchart of a concurrent processing method 100 for a relay protection fault calculation task according to an embodiment of the present invention. As shown in fig. 1, in the concurrent processing method for a relay protection fault calculation task provided by the embodiment of the present invention, a scheduling server, a calculation server, and a data server respectively process different services, so that redundant functions and repeated functions are not generated, and each server is responsible for the tasks, so as to ensure load balancing as much as possible, and avoid the phenomenon of pressure falling; different users can submit calculation requests at the same time, the system automatically shields messages, and tasks among the users do not conflict with each other; the distributed parallel computing system established by the TCP and the reliable UDP communication mode and the multi-core technology can provide reliable and efficient concurrent computing service for various types of computation of the power system, and the system is stable in operation. The concurrent processing method 100 for the relay protection fault calculation task provided by the embodiment of the invention comprises the following steps of starting from step 101, verifying the validity of a received relay protection fault calculation request sent by a client by using a scheduling server in step 101, determining a calculation task according to the relay protection fault calculation request after the verification is passed, and issuing the calculation task to a corresponding calculation server according to the type of the calculation task.
Preferably, wherein the method further comprises:
the method comprises the steps that a client side is reliably connected with a system, a connect _ platform interface is called to establish TCP long connection with a gateway master control node of the system, a sendto _ platform unified service interface is called to complete user identity verification after connection is completed, and a verification result fed back by the system is received through a recvfrom _ platform interface;
when the verification result indicates that the communication connection between the client and the system is completed, organizing a calculation data compression packet, and sending the calculation data compression packet to a scheduling server by calling a sendto _ platform interface so as to initiate a calculation request; and after the successful sending, starting an independent message processing thread, calling a recvdrom _ platform interface to receive the message sent back by the scheduling server until the task calculation is completed, calling a disconnect _ platform interface to inform a system to close the connection with the client, and closing the socket connection of the client by calling close to connect the user.
Preferably, the scheduling server communicates with the client and each node server in a TCP and UDP communication mode based on reliable protocol communication, so as to transmit data and files, and issues commands and files between each node server in a multicast technology.
In the present invention, the system architecture is shown in fig. 2, and includes: the system comprises a scheduling server, a computing server and a data server. The scheduling server is an external interaction node and a task master control node, can perform detailed task distribution and task management, and is responsible for functions of interaction with a client, task distribution, client management and the like. And the computing server is responsible for task computing, shell program calling and real-time uploading of task completion information to the scheduling node. The data server is responsible for storing summary information of historical computing tasks so as to facilitate subsequent user query.
The system aims to realize the calculation submission and the result recovery of various calculation tasks of the user, meet the requirements of high reliability and stability of the calculation system and multiple clients and realize the high-efficiency task concurrent calculation requirement for the user.
In the present invention, the communication function of the system provides services to the entire distributed system through TCP and reliable UDP. The TCP is used for connecting the client and the scheduling node, so that message pushing and receiving between a user and a system are realized, and real-time information transmission is completed. The UDP is used for information transmission and interaction in a distributed system, is realized through resident process of communication middleware, and is internally added with an important function of frame loss retransmission, so the UDP is called as reliable UDP. The communication middleware is deployed in each server of the distributed system and operates as a daemon process, and each node in the system starts one communication daemon process for data transmission requests and service requests. The background is started in a script mode, dependence of the communication middleware on the configuration file is removed, dynamic expansion can be achieved, and maintainability of the system is greatly improved.
The whole distributed parallel computing system is divided into three groups according to functions: the system comprises a servGroup, a ResultGroup and a TaskGroup, wherein the servGroup comprises scheduling nodes and data nodes, the ResultGroup comprises the scheduling nodes, and the TaskGroup comprises all calculation nodes used for calculation of the system. Each node can dynamically join or exit the distributed computing system to form an automatic extension of the communication node. Wherein the communication middleware is configured as shown in fig. 3. The distributed parallel computing system communication middleware starting mode is shown as the following table 1:
TABLE 1 communication middleware start mode for distributed parallel computing system
Figure BDA0003074172880000081
In the present invention, as shown in fig. 4, the user interaction process with the system includes:
the user informs a system administrator of the user name and applies for the service use certificate license through the down line, and the system administrator returns the service use license, the FTP user name and the FTP password to the user after approval. When a task is submitted, a client firstly establishes reliable connection with a system, a connect _ platform interface and a system gateway master control node are called to establish TCP long connection, a sendto _ platform unified service interface is called to complete user authentication after connection is completed, and the client receives an authentication result fed back by the system through a recvfrom _ platform.
After the above operations are successfully performed, the communication connection function with the system is completed, and before the user submits the calculation task, a calculation data compression packet needs to be prepared.
After the data preparation work is finished, the client can call the sendto _ platform interface to initiate a calculation request at any time, after the calculation request is successfully sent, the client needs to start an independent message processing thread and call the recvdrom _ platform interface to receive the message sent back by the system until the task calculation is finished, and the client can also call the sendto _ platform interface to send a corresponding message number to actively inquire the background task state. After the calculation is finished, the client calls disconnect _ platform to inform the system to close the connection with the client, and closes the connection of the local socket to the user by calling close (mbox).
In step 102, a computation server is used for analyzing the computation task, configuration information corresponding to the computation task is determined according to an analysis result, a corresponding computation program is started according to the configuration information to perform corresponding operation, a computation result is obtained, and the computation result is returned to a scheduling server.
In step 103, the calculation result is returned to the client corresponding to the calculation task by using the scheduling server.
Preferably, wherein the method further comprises:
the dispatching server distinguishes different clients through a certificate provided when a user of the client is connected and registered, searches the client to which the relay protection fault calculation request corresponding to the calculation task belongs according to the task code and the certificate after the calculation task is processed, and sends a corresponding operation result to the client corresponding to the calculation task.
Preferably, wherein the method further comprises:
the method comprises the steps that a scheduling server sets an operation mode, selects a fault type and a fault position, calls a node admittance matrix formed based on a power grid equivalent network, performs task decomposition on the operation mode, the fault position and the node admittance matrix according to the fault type to form configuration information corresponding to different computing task requirements, and sends the configuration information to different computing servers respectively to perform task computing.
Preferably, wherein the method further comprises:
and the scheduling server calculates the calculation resource information of the calculation server which finishes the calculation task, and sends the completion information of the calculation task to a data server for information storage of the historical task.
In the invention, the main equipment for drawing the power grid through the relay protection setting calculation graphical interface comprises: and elements such as lines, generators, transformers, buses and the like are synchronously input into the element parameter setting interface to establish a power grid equivalent model. And respectively setting corresponding power grid equipment operation states according to calculation requirements based on the power grid equivalent model and the conventional power grid operation mode, namely forming an operation mode for setting calculation. The types of failures mainly include: single phase faults, two phase ground faults, and three phase faults. The fault location refers primarily to any location of a particular bus or line.
After entering a relay protection fault calculation process, setting an operation mode, selecting a fault type and a fault position, calling a node admittance matrix formed based on a power grid equivalent network after clicking and determining, and performing task decomposition on the operation mode, the fault position and the node admittance matrix according to the fault type to form different task calculation requirement configuration information. And the calculation results are returned to the relay protection fault calculation module after the different calculation nodes are respectively calculated, the fault calculation module calculates and stores the fault reserve according to the fixed value calculation requirements, and the distributed parallel calculation of the relay protection fault calculation is completed.
With reference to fig. 5, in the present invention, after the scheduling server is started, the system configuration file and the user configuration file are sequentially loaded, the TCP monitoring service is opened, the user connection is waited, and then the resource information returned by the computing server is received and loaded to the resource pool; after the system computing server is started, loading a factory computing configuration file, and then starting a resource reporting thread to send local resource information to a scheduling server at regular intervals; at this point the system is ready to go into module thread loop service.
When a dispatching server receives a relay protection fault calculation module user (hereinafter referred to as a user) connection request, a legal user is detected through a message authentication service and related services are provided for the legal user at any time by establishing a special thread, after the user submits calculation requests to different calculation tasks, the dispatching server firstly judges the effectiveness of the task and adds the task to a task queue, and after the task is taken out by a task processing module, the task is sequentially sent to the related calculation servers for calculation according to the calculation resources available to the current system. After receiving a calculation task issued by scheduling, the calculation server starts a corresponding calculation program according to the configuration information of the task, waits for the completion of the calculation of the process ending task, acquires a process ending state, then enters a calculation directory to acquire a corresponding calculation result file, and packages and sends the calculation result file to the scheduling server. After receiving the calculation completion information returned by the calculation server, the scheduling server updates the calculation resource information of the calculation server, returns the calculation completion information to the user according to the user attribute of the task so as to inform the user of the completion of the task calculation, and finally sends the completion information of the task to the data server for the information storage of the historical task so as to meet the requirement of subsequent inquiry. The scheduling node in the invention is a scheduling server, the computing node is a computing server, and the data node is a data server.
The distributed parallel computing system comprises a plurality of high-performance servers, is divided into nodes with different functions, each type of node completes different functions, the whole system comprises a plurality of role servers with different functions, and comprises a scheduling server, a data server and a computing server, the services processed by different servers are different, and redundant functions and repeated functions cannot occur. The system adopts a TCP and UDP communication mode based on reliable protocol communication to realize data and file transmission in the whole system, and adopts a multicast technology to complete command and file transmission among all node servers. Different users are in long connection with the distributed system scheduling server through the TCP, and can send calculation requests at any time and recover results. The system distinguishes different clients through l i cense provided when the user is connected and registered, after the service processing is completed, the scheduling server can search the client to which the request belongs according to the task number and the l i cense, and then sends the corresponding message to the corresponding client, so that the situation that a plurality of clients receive the same message is avoided, and the problem of message shielding of the plurality of clients is solved.
The dispatching server plays a role in starting and stopping as a core management server of the distributed parallel computing system and is responsible for receiving and responding to client computing requests, computing server resource management and control, task scheduling and distribution, computing data multicast and unicast to corresponding computing servers and data servers, and recovering computing results and informing corresponding clients of computing detailed information.
The computing server is composed of a plurality of servers to form a distributed parallel cluster, each server is independent to each other and is responsible for responding to computing command requests of the dispatching servers, calling computing programs to compute corresponding jobs, and returning computing results to the dispatching node servers.
The data server is responsible for storing historical result data, deploying system application and communication middleware programs, the system application stores the result data forwarded by the scheduling server into a corresponding data directory, and writes the summary information of the calculation result into a database or a summary information file.
The efficient concurrency technology is an important function of the distributed parallel computing system, is a precondition of system management, job scheduling, load balancing and operation recovery in the distributed parallel computing system, can help the distributed parallel computing system to dynamically quantify resource usage, detect service defects, discover user usage patterns and assist in resource scheduling, and plays an important role in improving the service quality of the distributed computing system.
Fig. 6 is a schematic structural diagram of a concurrent processing system 600 for a relay protection fault calculation task according to an embodiment of the present invention. As shown in fig. 6, a system 600 for concurrently processing a relay protection fault calculation task according to an embodiment of the present invention includes: dispatch server 601 and compute server 602.
Preferably, the scheduling server 601 is configured to verify the validity of the received relay protection fault calculation request sent by the client, determine a calculation task according to the relay protection fault calculation request after the verification is passed, and issue the calculation task to the corresponding calculation server according to the type of the calculation task; and the system is used for returning the calculation result to the client corresponding to the calculation task.
Preferably, the calculation server 602 is configured to analyze the calculation task, determine configuration information corresponding to the calculation task according to an analysis result, start a corresponding calculation program according to the configuration information to perform a corresponding operation, obtain a calculation result, and return the calculation result to the scheduling server.
Preferably, wherein the system further comprises:
the client establishes reliable connection with the system, calls the connect _ platform interface and the gateway master control node of the system to establish TCP long connection, calls the sendto _ platform unified service interface to complete the verification of the user identity after the connection is completed, and receives a verification result fed back by the system through the recvfrom _ platform interface;
when the verification result indicates that the communication connection between the client and the system is completed, organizing a calculation data compression packet, and sending the calculation data compression packet to a scheduling server by calling a sendto _ platform interface so as to initiate a calculation request; and after the successful sending, starting an independent message processing thread, calling a recvdrom _ platform interface to receive the message sent back by the scheduling server until the task calculation is completed, calling a disconnect _ platform interface to inform a system to close the connection with the client, and closing the socket connection of the client by calling close to connect the user.
Preferably, the scheduling server communicates with the client and each node server in a TCP and UDP communication mode based on reliable protocol communication, so as to transmit data and files, and issues commands and files between each node server in a multicast technology.
Preferably, the scheduling server is further configured to:
the method comprises the steps of distinguishing different clients through certificates provided when users of the clients connect and register, searching the client to which a relay protection fault calculation request corresponding to a calculation task belongs according to a task code and the certificates after the calculation task is processed, and sending a corresponding operation result to the client corresponding to the calculation task.
Preferably, the scheduling server is further configured to:
setting an operation mode, selecting a fault type and a fault position, calling a node admittance matrix formed based on the power grid equivalent network, performing task decomposition on the operation mode, the fault position and the node admittance matrix according to the fault type to form configuration information corresponding to different computing task requirements, and respectively sending the configuration information to different computing servers for task computing.
Preferably, the scheduling server is further configured to:
and calculating the calculation resource information of the calculation server which finishes the calculation task, and sending the completion information of the calculation task to a data server for information storage of the historical task.
The system 600 for concurrently processing a relay protection fault calculation task according to an embodiment of the present invention corresponds to the method 100 for concurrently processing a relay protection fault calculation task according to another embodiment of the present invention, and is not described herein again.
The invention has been described with reference to a few embodiments. However, other embodiments of the invention than the one disclosed above are equally possible within the scope of the invention, as would be apparent to a person skilled in the art from the appended patent claims.
Generally, all terms used in the claims are to be interpreted according to their ordinary meaning in the technical field, unless explicitly defined otherwise herein. All references to "a/an/the [ device, component, etc ]" are to be interpreted openly as referring to at least one instance of said device, component, etc., unless explicitly stated otherwise. The steps of any method disclosed herein do not have to be performed in the exact order disclosed, unless explicitly stated.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting the same, and although the present invention is described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications and equivalents may be made to the embodiments of the invention without departing from the spirit and scope of the invention, which is to be covered by the claims.

Claims (12)

1. A concurrent processing method for a relay protection fault calculation task is characterized by comprising the following steps:
verifying the validity of a received relay protection fault calculation request sent by a client by using a scheduling server, determining a calculation task according to the relay protection fault calculation request after the verification is passed, and issuing the calculation task to a corresponding calculation server according to the type of the calculation task;
analyzing the calculation task by using a calculation server, determining configuration information corresponding to the calculation task according to an analysis result, starting a corresponding calculation program according to the configuration information to perform corresponding operation, acquiring a calculation result, and returning the calculation result to a scheduling server;
and returning the calculation result to the client corresponding to the calculation task by using the scheduling server.
2. The method of claim 1, further comprising:
the method comprises the steps that a client side is reliably connected with a system, a connect _ platform interface is called to establish TCP long connection with a gateway master control node of the system, a sendto _ platform unified service interface is called to complete user identity verification after connection is completed, and a verification result fed back by the system is received through a recvfrom _ platform interface;
when the verification result indicates that the communication connection between the client and the system is completed, organizing a calculation data compression packet, and sending the calculation data compression packet to a scheduling server by calling a sendto _ platform interface so as to initiate a calculation request; and after the successful sending, starting an independent message processing thread, calling a recvdrom _ platform interface to receive the message sent back by the scheduling server until the task calculation is completed, calling a disconnect _ platform interface to inform a system to close the connection with the client, and closing the socket connection of the client by calling close to connect the user.
3. The method according to claim 1, wherein the scheduling server communicates with the client and each node server in a TCP and UDP communication manner based on reliable protocol communication to realize transmission of data and files, and a multicast technique is used to realize issuing of commands and files between each node server.
4. The method of claim 1, further comprising:
the dispatching server distinguishes different clients through a certificate provided when a user of the client is connected and registered, searches the client to which the relay protection fault calculation request corresponding to the calculation task belongs according to the task code and the certificate after the calculation task is processed, and sends a corresponding operation result to the client corresponding to the calculation task.
5. The method of claim 1, further comprising:
the method comprises the steps that a scheduling server sets an operation mode, selects a fault type and a fault position, calls a node admittance matrix formed based on a power grid equivalent network, performs task decomposition on the operation mode, the fault position and the node admittance matrix according to the fault type to form configuration information corresponding to different computing task requirements, and sends the configuration information to different computing servers respectively to perform task computing.
6. The method of claim 1, further comprising:
and the scheduling server calculates the calculation resource information of the calculation server which finishes the calculation task, and sends the completion information of the calculation task to a data server for information storage of the historical task.
7. A system for concurrent processing of relay protection fault calculation tasks, the system comprising:
the scheduling server is used for verifying the validity of the received relay protection fault calculation request sent by the client, determining a calculation task according to the relay protection fault calculation request after the verification is passed, and issuing the calculation task to a corresponding calculation server according to the type of the calculation task; the system comprises a client, a server and a server, wherein the client is used for returning a calculation result to the client corresponding to the calculation task;
and the computing server is used for analyzing the computing task, determining configuration information corresponding to the computing task according to an analysis result, starting a corresponding computing program according to the configuration information to perform corresponding operation, acquiring a computing result and returning the computing result to the scheduling server.
8. The system of claim 7, further comprising:
the client establishes reliable connection with the system, calls the connect _ platform interface and the gateway master control node of the system to establish TCP long connection, calls the sendto _ platform unified service interface to complete the verification of the user identity after the connection is completed, and receives a verification result fed back by the system through the recvfrom _ platform interface;
when the verification result indicates that the communication connection between the client and the system is completed, organizing a calculation data compression packet, and sending the calculation data compression packet to a scheduling server by calling a sendto _ platform interface so as to initiate a calculation request; and after the successful sending, starting an independent message processing thread, calling a recvdrom _ platform interface to receive the message sent back by the scheduling server until the task calculation is completed, calling a disconnect _ platform interface to inform a system to close the connection with the client, and closing the socket connection of the client by calling close to connect the user.
9. The system of claim 7, wherein the dispatch server communicates with the client and each node server in a TCP and UDP communication manner based on reliable protocol communication to realize data and file transmission, and a multicast technique is used to realize command and file transmission between each node server.
10. The system of claim 7, wherein the dispatch server is further configured to:
the method comprises the steps of distinguishing different clients through certificates provided when users of the clients connect and register, searching the client to which a relay protection fault calculation request corresponding to a calculation task belongs according to a task code and the certificates after the calculation task is processed, and sending a corresponding operation result to the client corresponding to the calculation task.
11. The system of claim 7, wherein the dispatch server is further configured to:
setting an operation mode, selecting a fault type and a fault position, calling a node admittance matrix formed based on the power grid equivalent network, performing task decomposition on the operation mode, the fault position and the node admittance matrix according to the fault type to form configuration information corresponding to different computing task requirements, and respectively sending the configuration information to different computing servers for task computing.
12. The system of claim 7, wherein the dispatch server is further configured to:
and calculating the calculation resource information of the calculation server which finishes the calculation task, and sending the completion information of the calculation task to a data server for information storage of the historical task.
CN202110547548.8A 2021-05-19 2021-05-19 Concurrent processing method and system for relay protection fault calculation task Pending CN113393087A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110547548.8A CN113393087A (en) 2021-05-19 2021-05-19 Concurrent processing method and system for relay protection fault calculation task

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110547548.8A CN113393087A (en) 2021-05-19 2021-05-19 Concurrent processing method and system for relay protection fault calculation task

Publications (1)

Publication Number Publication Date
CN113393087A true CN113393087A (en) 2021-09-14

Family

ID=77618059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110547548.8A Pending CN113393087A (en) 2021-05-19 2021-05-19 Concurrent processing method and system for relay protection fault calculation task

Country Status (1)

Country Link
CN (1) CN113393087A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117319393A (en) * 2023-09-27 2023-12-29 中国科学院空天信息创新研究院 Cloud edge network environment reliable message transmission method, device, equipment and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117319393A (en) * 2023-09-27 2023-12-29 中国科学院空天信息创新研究院 Cloud edge network environment reliable message transmission method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN110601992B (en) Data processing method and device of intelligent measurement terminal based on edge calculation
CN111752965B (en) Real-time database data interaction method and system based on micro-service
CN103197952B (en) The management system and method disposed for application system maintenance based on cloud infrastructure
CN106713409B (en) Cloud disaster recovery system and method based on SaaS
CN105912389B (en) The virtual machine (vm) migration system under mixing cloud environment is realized based on data virtualization
CN109189751A (en) Method of data synchronization and terminal device based on block chain
CN108322345A (en) A kind of dissemination method and server of fault restoration data packet
CN106911648B (en) Environment isolation method and equipment
CN109151045A (en) A kind of distribution cloud system and monitoring method
WO2018192534A1 (en) Node device running method, working state switching device, node device, and medium
CN111371599A (en) Cluster disaster recovery management system based on ETCD
CN115277692B (en) Automatic operation and maintenance method, device and system for edge network computing terminal equipment
CN113393087A (en) Concurrent processing method and system for relay protection fault calculation task
CN117271142B (en) Load balancing method and task scheduler for analyzing probability security analysis model
CN106412123A (en) Distributed terminal equipment information processing method and system of cloud access controller
CN104731660B (en) data distributing method, device and system
CN117850968A (en) Method, device and system for realizing virtual machine migration by designating NUMA node
CN113747150A (en) Method and system for testing video service system based on container cloud
CN108769209B (en) Graph maintenance system and method for scheduling cloud
CN106776034A (en) A kind of task batch processing computational methods, master station computer and system
CN113032107B (en) Resource management method, device and system of cloud database
US20230246911A1 (en) Control device, control method, control program and control system
CN113467955A (en) Intelligent distribution method and system for data acquisition link of distribution network master station
CN107317880B (en) Method and device for realizing load balance
CN114095514B (en) Database access method and system

Legal Events

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