Address verification method, device, computer equipment, and computer-readable storage medium
By establishing dynamic negotiation operations in the power scheduling automation system and using hash algorithm to map dynamic addresses, the problem of discordance between the main station and the factory station's remote control point number is solved, the security and reliability of the remote control remote adjustment process is improved, and the resistance to playback attacks is enhanced.
Patent Information
- Application Number
- CN202310135214.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-17
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2043-02-17
AI Technical Summary
In the power scheduling automation system, due to human or equipment failure in system operation and maintenance, the remote control point number between the main station and the factory station does not correspond, resulting in equipment miscontrol and mishap, poor safety, and fixed static attributes and mapping relationships, making the factory station side susceptible to replay attacks, and the safety and reliability of the remote control remote adjustment process is not high.
By establishing dynamic negotiation operations between the dispatching main station and the factory station, using a preset hash algorithm to map the dynamic random number to the dynamic mapping address, and sending the remote control remote adjustment command carrying the dynamic mapping address to the factory station. The factory station uses the verification parameters to verify whether there is a corresponding remote control remote adjustment object in the dynamic mapping address to ensure that the dynamic mapping address is successfully checked and the control operation is performed.
It enhances the self-checking ability of the factory station to dispatch the main station instructions, improves the ability to resist replay attacks, improves the security and reliability of the remote control and remote adjustment process, and avoids equipment miscontrol and misalignment caused by misalignment of the information object address or communication point number.
Smart Images

Figure CN116319667B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electric power dispatching automation system control technology, and in particular to an address verification method, device, computer equipment and computer-readable storage medium. Background Art
[0002] With the rapid development of power dispatching automation system, remote control and remote regulation as the core technical means of power dispatching control and regulation has become increasingly important. The power telecontrol communication protocol ensures the effective transmission of information by stipulating, constraining and coordinating communications, and realizes the functions of remote measurement, remote signal, remote control and remote regulation of power dispatching automation master station to plant stations.
[0003] In the related technology, the telecontrol communication protocol mainly used in the power industry uses information object addresses or communication point numbers to identify different remote control and remote adjustment information. A communication information point table needs to be manually maintained on both sides of the power dispatching automation master station and the plant station telecontrol communication device. The communicating parties use fixed static attributes such as equipment names or dispatch numbers, and then form discrete remote control and remote adjustment command mapping addresses with address self-checking information through an agreed mapping relationship.
[0004] In the process of implementing the relevant technology, the applicant discovered that the relevant technology has at least the following technical defects:
[0005] Under normal circumstances, the information point tables of both communicating parties should be completely consistent. However, due to factors such as human factors or equipment failures in system operation and maintenance, there is a risk that the remote control point numbers of the master station and the plant station do not correspond. In this case, if control commands such as remote control and remote adjustment are issued, the misalignment of the information object address or communication point number will cause the plant station side equipment to be miscontrolled and misoperated, which is less secure. In addition, the static attributes and mapping relationships are fixed, so the mapping result address with address self-checking information is also fixed. The plant station side is easily affected by replay attacks, resulting in low security and reliability of the remote control and remote adjustment process. Summary of the invention
[0006] In view of this, the present application provides an address verification method, device, computer equipment and computer-readable storage medium, the main purpose of which is to solve the problem that due to human factors or equipment failures in system operation and maintenance, when issuing control commands such as remote control and remote adjustment, the plant side equipment may be miscontrolled and misoperated due to the misalignment of information object addresses or communication point numbers, resulting in poor security. Moreover, since the mapping result address with address self-verification information is also fixed, the plant side is easily affected by replay attacks, resulting in low security and reliability of the remote control and remote adjustment process.
[0007] According to the first aspect of the present application, there is provided an address verification method, the method comprising:
[0008] The dispatching master station establishes a connection with the plant station by establishing a connection request, and sends a dynamic random number to the plant station, so that the dispatching master station and the plant station complete a dynamic negotiation operation;
[0009] The dispatching master station maps the dynamic random number into a dynamic mapping address using a preset hash algorithm, and sends a remote control and remote adjustment instruction carrying the dynamic mapping address to the plant station;
[0010] The plant station obtains the dynamic mapping address indicated by the remote control and remote adjustment instruction, and uses a verification parameter to verify whether the dynamic mapping address has a corresponding remote control and remote adjustment object;
[0011] When the dynamic mapping address has a corresponding remote control object, it is determined that the dynamic mapping address verification is successful, the plant station performs a control operation on the remote control object, and sends the control result of the control operation to the dispatching master station.
[0012] Optionally, the scheduling master station establishes a connection with the plant station by establishing a connection request, and sends a dynamic random number to the plant station, including:
[0013] The dispatching master station obtains the connection establishment request, and sends the connection establishment request to the plant station;
[0014] The plant station obtains a telecontrol communication service port, receives the connection establishment request through the telecontrol communication service port, and establishes a connection with the dispatching master station using the connection establishment request;
[0015] The dispatching master station obtains the dynamic random number, generates a dynamic negotiation instruction carrying the dynamic random number, obtains a preset fixed address code, and sends the dynamic negotiation instruction to the plant station according to the preset fixed address code;
[0016] The plant station receives the dynamic negotiation instruction and obtains the dynamic random number indicated by the dynamic negotiation instruction;
[0017] The plant station generates a negotiation confirmation message using the dynamic random number, and sends the negotiation confirmation message to the dispatching master station;
[0018] The dispatching master station receives the negotiation confirmation message, and completes the dynamic negotiation operation between the dispatching master station and the plant station.
[0019] Optionally, the dispatching master station maps the dynamic random number into a dynamic mapping address using a preset hash algorithm, and sends a remote control and remote adjustment instruction carrying the dynamic mapping address to the plant station, including:
[0020] The dispatching master station obtains the data static attribute name of the remote control and remote adjustment object, the preset object address space, and the preset hash algorithm;
[0021] The scheduling master station uses the preset hash algorithm to perform a superposition operation on the dynamic random number after the data static attribute name, and uses the preset hash algorithm to map the processed dynamic random number to the preset object address space to obtain a dynamic mapping address;
[0022] The scheduling master station detects whether the dynamic mapping address is occupied;
[0023] When the dispatching master station detects that the dynamic mapping address is not occupied, it generates a remote control and remote adjustment instruction carrying the dynamic mapping address, the data static attribute name, the preset object address space and the preset hash algorithm;
[0024] The dispatching master station sends the remote control and adjustment instructions to the plant station.
[0025] Optionally, after the scheduling master station detects whether the dynamic mapping address is occupied, the method further includes:
[0026] When the scheduling master station detects that the dynamic mapping address is occupied, it obtains the address code of the dynamic mapping address and moves the address code backward by one position;
[0027] The scheduling master station re-detects whether the adjusted dynamic mapping address is occupied.
[0028] Optionally, the plant station obtains the dynamic mapping address indicated by the remote control and remote adjustment instruction, and uses a verification parameter to verify whether there is a corresponding remote control and remote adjustment object for the dynamic mapping address, including:
[0029] The plant station receives the remote control and remote adjustment instruction, and obtains the data static attribute name, the preset object address space, the preset hash algorithm, and the dynamic mapping address indicated by the remote control and remote adjustment instruction;
[0030] The plant station obtains the dynamic random number, and uses the data static attribute name, the preset object address space, the preset hash algorithm and the dynamic random number to form a verification parameter;
[0031] The plant station uses the verification parameter to verify whether there is a corresponding remote control and adjustment object at the dynamic mapping address.
[0032] Optionally, after the plant station uses the verification parameter to verify whether the dynamic mapping address has a corresponding remote control and remote adjustment object, the method further includes:
[0033] When the dynamic mapping address does not have a corresponding remote control and remote adjustment object, the plant station obtains a preset reason code and generates error feedback information carrying the preset reason code;
[0034] The plant station sends the error feedback information to the dispatching master station;
[0035] The scheduling master station receives the error feedback information, and obtains the preset reason code indicated by the error feedback information;
[0036] The dispatching master station disconnects from the plant station according to the preset reason code, and re-establishes a connection with the plant station by using the connection establishment request.
[0037] Optionally, the method further comprises:
[0038] The dispatching master station receives the control result sent by the plant station, and detects the control result;
[0039] When it is detected that the regulation result indicates that the regulation operation is successfully executed, the scheduling master station obtains the next data static attribute name, and uses the preset hash algorithm to map the next data static attribute name and the dynamic random number to the next dynamic mapping address;
[0040] When it is detected that the regulation result indicates that the regulation operation has failed to be executed, the dispatching master station disconnects from the plant station, and re-establishes a connection with the plant station using the connection establishment request.
[0041] According to a second aspect of the present application, an address verification device is provided, the device comprising:
[0042] A connection module, used for the scheduling master station to establish a connection with the plant station by establishing a connection request, and to send a dynamic random number to the plant station, so that the scheduling master station and the plant station complete a dynamic negotiation operation;
[0043] A mapping module, used for the dispatching master station to map the dynamic random number into a dynamic mapping address using a preset hash algorithm, and to send a remote control and remote adjustment instruction carrying the dynamic mapping address to the plant station;
[0044] A verification module, used for the plant station to obtain the dynamic mapping address indicated by the remote control and remote regulation instruction, and to use a verification parameter to verify whether the dynamic mapping address has a corresponding remote control and remote regulation object;
[0045] The control module is used to determine that the dynamic mapping address verification is successful when there is a corresponding remote control object for the dynamic mapping address, the plant station performs a control operation on the remote control object, and sends the control result of the control operation to the dispatching master station.
[0046] Optionally, the connection module is used for the dispatching master station to obtain the connection establishment request and send the connection establishment request to the plant station; the plant station obtains the telecontrol communication service port, receives the connection establishment request through the telecontrol communication service port, and uses the connection establishment request to establish a connection with the dispatching master station; the dispatching master station obtains the dynamic random number, generates a dynamic negotiation instruction carrying the dynamic random number, and obtains a preset fixed address code, and sends the dynamic negotiation instruction to the plant station according to the preset fixed address code; the plant station receives the dynamic negotiation instruction and obtains the dynamic random number indicated by the dynamic negotiation instruction; the plant station uses the dynamic random number to generate a negotiation confirmation message, and sends the negotiation confirmation message to the dispatching master station; the dispatching master station receives the negotiation confirmation message to complete the dynamic negotiation operation between the dispatching master station and the plant station.
[0047] Optionally, the mapping module is used for the dispatching master station to obtain the data static attribute name, preset object address space, and preset hash algorithm of the remote control and adjustment object; the dispatching master station uses the preset hash algorithm to perform an overlay operation on the dynamic random number after the data static attribute name, and uses the preset hash algorithm to map the processed dynamic random number to the preset object address space to obtain a dynamic mapping address; the dispatching master station detects whether the dynamic mapping address is occupied; when the dispatching master station detects that the dynamic mapping address is not occupied, it generates a remote control and adjustment instruction carrying the dynamic mapping address, the data static attribute name, the preset object address space and the preset hash algorithm; the dispatching master station sends the remote control and adjustment instruction to the plant station.
[0048] Optionally, the mapping module is also used to obtain the address code of the dynamic mapping address and move the address code backward by one position when the scheduling main station detects that the dynamic mapping address is occupied; the scheduling main station re-detects whether the adjusted dynamic mapping address is occupied.
[0049] Optionally, the verification module is used for the plant station to receive the remote control and adjustment instructions, and to obtain the data static attribute name, the preset object address space, the preset hash algorithm, and the dynamic mapping address indicated by the remote control and adjustment instructions; the plant station obtains the dynamic random number, and uses the data static attribute name, the preset object address space, the preset hash algorithm and the dynamic random number to form verification parameters; the plant station uses the verification parameters to verify whether there is a corresponding remote control and adjustment object for the dynamic mapping address.
[0050] Optionally, the verification module is also used for, when there is no corresponding remote control object for the dynamic mapping address, the plant station obtains a preset reason code and generates error feedback information carrying the preset reason code; the plant station sends the error feedback information to the dispatching master station; the dispatching master station receives the error feedback information and obtains the preset reason code indicated by the error feedback information; the dispatching master station disconnects from the plant station according to the preset reason code, and re-establishes a connection with the plant station using the connection establishment request.
[0051] Optionally, the device further comprises:
[0052] A detection module is used for the dispatching master station to receive the control result sent by the plant station and to detect the control result; when it is detected that the control result indicates that the control operation is successfully executed, the dispatching master station obtains the next data static attribute name, and uses the preset hash algorithm to map the next data static attribute name and the dynamic random number to the next dynamic mapping address; when it is detected that the control result indicates that the control operation fails to execute, the dispatching master station disconnects from the plant station and re-uses the connection establishment request to establish a connection with the plant station.
[0053] According to a third aspect of the present application, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the methods described in the first aspect when executing the computer program.
[0054] According to a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the methods described in the first aspect are implemented.
[0055] By means of the above technical scheme, the present application provides an address verification method, device, computer equipment and computer-readable storage medium. The present application dispatching master station establishes a connection with the plant station by establishing a connection request, and sends a dynamic random number to the plant station, so that the dispatching master station and the plant station complete a dynamic negotiation operation. The dispatching master station uses a preset hash algorithm to map the dynamic random number to a dynamic mapping address, and sends a remote control and remote adjustment instruction carrying the dynamic mapping address to the plant station. The plant station obtains the dynamic mapping address indicated by the remote control and remote adjustment instruction, and uses a verification parameter to verify whether the dynamic mapping address has a corresponding remote control and remote adjustment object. When the dynamic mapping address has a corresponding remote control and remote adjustment object, it is determined that the dynamic mapping address verification is successful, the plant station performs a control operation on the remote control and remote adjustment object, and sends the control result of the control operation to the dispatching master station. The dynamic random number confirmed by the communicating parties in the connection establishment phase is used to change the fixed discrete mapping object address to a dynamic discrete mapping object address with address self-verification information through an agreed consistent mapping relationship, so that the plant station side has the ability to self-verify the dispatching master station instruction, thereby enhancing the plant station side's ability to resist replay attacks and improving the security and reliability of the remote control and remote adjustment process.
[0056] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0058] Figure 1 A schematic diagram of a method flow for address verification provided by an embodiment of the present application is shown;
[0059] Figure 2A A schematic diagram of a method flow for address verification provided by an embodiment of the present application is shown;
[0060] Figure 2B A schematic diagram of a dynamic negotiation instruction issuing process provided in an embodiment of the present application is shown;
[0061] Figure 2C A schematic diagram of a dynamic negotiation communication point table mapping provided by an embodiment of the present application is shown;
[0062] Figure 2D A schematic diagram of a dynamically negotiated random number mapping address provided in an embodiment of the present application is shown;
[0063] Figure 3A A schematic diagram of the structure of an address check provided in an embodiment of the present application is shown;
[0064] Figure 3B A schematic diagram of the structure of an address check provided in an embodiment of the present application is shown;
[0065] Figure 4 A schematic diagram of the device structure of a computer device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0066] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0067] The present application embodiment provides an address verification method, such as Figure 1 As shown, the method includes:
[0068] 101. The dispatching master station establishes a connection with the plant station by establishing a connection request, and sends a dynamic random number to the plant station.
[0069] With the rapid development of the scale of power grids, remote control and remote regulation technology has been increasingly widely used as the core technical means for dispatching automation systems to control and regulate power grid dispatching operations. However, the safety and reliability of the remote control and remote regulation process, especially the safety and reliability of the remote control process, is still unsatisfactory. After the dispatcher issues a remote control command at the dispatching master station, the device that finally executes the command action at the plant station is not the one the dispatcher expects, causing the remote control process to be misplaced, which directly affects the safety of power grid operation and even leads to serious consequences.
[0070] To solve this problem, the present application proposes an address verification method, which uses a dynamic random number confirmed by both communicating parties during the connection establishment phase, and through an agreed mapping relationship, changes the fixed discrete mapping object address to a dynamic discrete mapping object address with address self-verification information, so that the plant side has the ability to self-verify the instructions of the dispatching master station. The address verification method proposed in the present application can be applied to a server, which can be an independent server or a server that provides basic cloud computing such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms, so as to change the fixed discrete mapping object address to the dynamic discrete mapping object address negotiated during establishment, thereby improving the security and reliability of the remote control and remote adjustment process.
[0071] In order to ensure reliable data transmission between the dispatching master station and the plant station, the electric power dispatching automation system has put forward various regulations in terms of communication establishment, data transmission and interaction, etc., to constrain and coordinate the two communicating parties, so as to better ensure the orderly transmission of information. These regulations are called data communication transmission procedures, that is, communication protocols. The communication protocol uses information object addresses or communication point numbers to identify different remote control and remote adjustment information volumes, and maintains the same two communication information point tables on both sides of the electric power dispatching automation master station and the plant station telecontrol communication device. In an embodiment of the present application, without modifying the communication protocol, the dispatching master station establishes a connection with the plant station by establishing a connection request, and sends a dynamic random number to the plant station, so that the dispatching master station and the plant station complete the dynamic negotiation operation. In this way, the electric power dispatching automation master station sends a dynamic random data to the plant station, so that the plant station side has the ability to self-check the instructions of the dispatching master station.
[0072] 102. The dispatching master station maps the dynamic random number into a dynamic mapping address using a preset hash algorithm, and sends the remote control and remote adjustment instruction carrying the dynamic mapping address to the plant station.
[0073] The communication protocol does not require that the information object addresses in the communication information point table must be sequentially continuous. Therefore, discontinuous information object addresses can be selected for multiple remote control and remote adjustment objects, so that there is a specific mapping relationship between the information object address and a certain inherent static attribute of the remote control and remote adjustment object, so that it can be checked and verified by the plant station. However, in the process where the communicating parties use fixed static attributes such as equipment names or scheduling numbers, and then form discrete remote control and remote adjustment command mapping addresses with address self-verification information through an agreed mapping relationship, the static attributes and mapping relationships are fixed, so that the mapping result address is also fixed, and the plant station side is susceptible to replay attacks and has poor security. Therefore, in an embodiment of the present application, the dispatching master station uses a preset hash algorithm to map dynamic random numbers to dynamic mapping addresses, and sends remote control and remote adjustment instructions carrying dynamic mapping addresses to the plant station. The dispatching master station issues dynamic random numbers to the plant station, and superimposes the dynamic random numbers into the mapping relationship to form a dynamic mapping address, so that the plant station has the ability to self-verify the instructions of the dispatching master station.
[0074] 103. The plant station obtains the dynamic mapping address indicated by the remote control and remote adjustment instruction, and uses the verification parameter to verify whether the dynamic mapping address has a corresponding remote control and remote adjustment object.
[0075] Under normal circumstances, the two communication information point tables maintained on both sides of the remote communication devices of the dispatching master station and the plant station should be completely consistent. However, during the operation and maintenance of the system, due to factors such as human operation or equipment failure, there may be a risk of mismatching remote control point numbers between the dispatching master station and the plant station, further causing the plant station equipment to miscontrol and misoperate due to the misalignment of the information object address or communication point number after the remote control and remote adjustment and other control commands are issued. To this end, in an embodiment of the present application, the plant station obtains the dynamic mapping address indicated by the remote control and remote adjustment instructions, and uses verification parameters to verify whether the dynamic mapping address has a corresponding remote control and remote adjustment object. In this way, the plant station side has the ability to self-verify the instructions of the dispatching master station, avoid the mismatch of remote control point numbers between the dispatching master station and the plant station, and enhance the plant station side's ability to resist replay attacks.
[0076] 104. When the dynamic mapping address has a corresponding remote control and remote adjustment object, it is determined that the dynamic mapping address verification is successful, the plant station performs a control operation on the remote control and remote adjustment object, and sends the control result of the control operation to the dispatching master station.
[0077] In order to improve the security and reliability of the remote control and remote adjustment process, the present application changes the fixed discrete mapping address into a dynamic discrete mapping address with address self-checking information, so that the plant side can use the address self-checking information to check the dynamic discrete mapping address, avoiding the misalignment of the information object address or the communication point number, which may cause serious consequences. In an embodiment of the present application, when the plant uses the verification parameter to verify that the dynamic mapping address has a corresponding remote control and remote adjustment object, it means that the remote control point number of the dispatching master station is consistent with that of the plant, and it is determined that the dynamic mapping address verification is successful. Then, the plant performs a control operation on the remote control and remote adjustment object, and sends the control result of the control operation to the dispatching master station, wherein the control operation includes remote control of the control device and remote debugging of the remote control quantity device, such as adjusting the output power of the generator. In this way, the plant side enhances its ability to resist replay attacks through address verification, thereby improving the security and reliability of remote control and remote adjustment.
[0078] The method provided by the embodiment of the present application is that the dispatching master station establishes a connection with the plant station by establishing a connection request, and sends a dynamic random number to the plant station, so that the dispatching master station and the plant station complete a dynamic negotiation operation. The dispatching master station uses a preset hash algorithm to map the dynamic random number to a dynamic mapping address, and sends a remote control and remote adjustment instruction carrying the dynamic mapping address to the plant station. The plant station obtains the dynamic mapping address indicated by the remote control and remote adjustment instruction, and uses a verification parameter to verify whether the dynamic mapping address has a corresponding remote control and remote adjustment object. When the dynamic mapping address has a corresponding remote control and remote adjustment object, it is determined that the dynamic mapping address verification is successful, the plant station performs a control operation on the remote control and remote adjustment object, and sends the control result of the control operation to the dispatching master station. The dynamic random number confirmed by the communicating parties in the connection establishment phase is used to change the fixed discrete mapping object address to a dynamic discrete mapping object address with address self-verification information through an agreed mapping relationship, so that the plant station side has the ability to self-verify the instructions of the dispatching master station, thereby enhancing the ability of the plant station side to resist replay attacks and improving the security and reliability of the remote control and remote adjustment process.
[0079] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, the embodiment of the present application provides another address verification method, such as Figure 2A As shown, the method includes:
[0080] 201. The dispatching master station establishes a connection with the plant station by establishing a connection request.
[0081] Power telecontrol protocol communication is one of the important components of power grid dispatching automation. It is based on modern electronic technology and computer technology, and uses remote communication technology to monitor and control remote plant and station equipment. It mainly realizes the functions of remote measurement, remote signal, remote control and remote adjustment of the power dispatching automation master station to the plant and station. The power industry mainly uses DL / T 634.5104 "Telecontrol equipment and system part 5-104 transmission protocol using standard transmission protocol set IEC60870-5-101 network access", DL476 "Power system real-time data communication application layer protocol", DL / T 634.5101 "Telecontrol equipment and system part 5-101 transmission protocol basic telecontrol task matching standard", etc., which are the most commonly used telecontrol communication protocols at present, to realize the upload of plant and station process quantity information such as telesignaling and telemetry, and the issuance of master station control commands such as remote control and remote adjustment. This type of communication protocol uses information object addresses or communication point numbers to identify different amounts of remote control and telecontrol information. A communication information point table needs to be manually maintained on both sides of the power dispatching automation master station and the plant station telecontrol communication device.
[0082] In the embodiment of the present application, the dispatching master station obtains a connection establishment request, sends the connection establishment request to the plant station, so that the dispatching master station starts the connection establishment request and waits for the connection establishment to be completed. Next, the plant station obtains the telecontrol communication service port, waits for the connection establishment request sent by the dispatching master station, and receives the connection establishment request through the telecontrol communication service port. Subsequently, the plant station uses the connection establishment request to establish a connection with the dispatching master station, and after confirming the connection establishment with the dispatching master station, waits to receive a dynamic random number, so as to add a dynamic negotiation random number in the connection establishment stage based on the self-check of the fixed discrete mapping object address of the power telecontrol protocol.
[0083] 202. Send the dynamic random number to the plant station.
[0084] In order to enable the plant station to have the self-checking capability of remote control and remote adjustment instructions of the dispatching master station, the present application forms a mapping address that changes dynamically each time a connection is established through a dynamic random number confirmed by both communicating parties, and maintains this mapping relationship in this connection until the next re-establishment. Therefore, in an embodiment of the present application, after the dispatching master station confirms the establishment of a connection with the plant station, it obtains a dynamic random number and generates a dynamic negotiation instruction carrying the dynamic random number. Next, the dispatching master station obtains a preset fixed address code, such as remote adjustment address code No. 0, and sends the dynamic negotiation instruction to the plant station according to the preset fixed address code, so that the dispatching master station and the plant station conduct dynamic negotiation. Subsequently, the plant station receives the dynamic negotiation instruction and obtains the dynamic random number indicated by the dynamic negotiation instruction. Then, the plant station confirms the dynamic negotiation instruction, and generates a negotiation confirmation message using the dynamic random number, and sends the negotiation confirmation message to the dispatching master station. Finally, the dispatching master station receives the negotiation confirmation message sent by the plant station to complete the dynamic negotiation operation between the dispatching master station and the plant station. In this way, the dispatching master station and the plant station confirm the dynamic random number through dynamic negotiation, so that the dynamic random number can be used to form a dynamic mapping address and verify the dynamic mapping address, so that the plant station side has self-verification capability.
[0085] Based on the above process, a schematic diagram of a dynamic negotiation instruction issuing process proposed in an embodiment of the present application is as follows:
[0086] like Figure 2B As shown, the dispatching master station starts a connection request and sends the connection request to the plant station. The plant station waits for the connection request by listening to the service port. When the field station receives the connection request sent by the dispatching master station through the listening service port, the plant station establishes a connection with the dispatching master station according to the connection request and confirms the connection establishment with the dispatching master station. After the dispatching master station sends the connection request to the plant station, it waits for the connection to be completed. When the dispatching master station confirms the connection with the plant station, it generates a dynamic random number instruction carrying a dynamic random number and sends it through a dynamic random number remote adjustment instruction. After the plant station confirms that the connection is established, it continuously detects whether the dynamic remote adjustment instruction is received. When the plant station receives the dynamic random number remote adjustment instruction, it sends a dynamic random number remote adjustment instruction confirmation message to the dispatching master station. The dispatching master station receives the dynamic random number remote adjustment instruction confirmation message sent by the plant station and confirms that the dynamic random number remote adjustment instruction has been sent.
[0087] 203. The dispatching master station uses a preset hash algorithm to map the dynamic random number to a dynamic mapping address, and detects whether the dynamic mapping address is occupied; when the dispatching master station detects that the dynamic mapping address is not occupied, execute the following step 204; when the dispatching master station detects that the dynamic mapping address is occupied, execute the following step 205.
[0088] In order to improve the security and reliability of the remote control and remote adjustment process, the present application uses dynamic random numbers to change the fixed discrete mapping object address or communication point number to the negotiated dynamic discrete mapping object address or communication point number. In the embodiment of the present application, the dispatching master station obtains the data static attribute name of the remote control and remote adjustment object, the preset object address space, and obtains the preset hash algorithm. Then, the dispatching master station uses the preset hash algorithm to perform a superposition operation on the dynamic random number after the data static attribute name, and uses the preset hash algorithm to map the processed dynamic random number to the preset object address space to obtain a dynamic mapping address. For example, the dispatching master station superimposes the dynamic random number X after the static attribute name, and uses the CRC-32 (CyclicRedundancy Check, cyclic redundancy check) hash algorithm for calculation, and divides the calculated result by 0xEFFFFF and then takes the remainder, so that the dynamic random number is mapped to the address space range 0x100000-0xFFFFFF. Subsequently, the scheduling master station detects whether the dynamic mapping address is occupied. When the scheduling master station detects that the dynamic mapping address is not occupied, the following step 204 is executed; when the scheduling master station detects that the dynamic mapping address is occupied, the following step 205 is executed.
[0089] To this end, a dynamic negotiation communication point table mapping diagram proposed in an embodiment of the present application is as follows:
[0090] like Figure 2C As shown in the figure, the dynamic negotiation random number X is issued through the remote adjustment quantity of the fixed point number, where the fixed point number is the remote adjustment address code No. 0, s1 is the AGC (Automatic Generation Control) instruction of unit 1, s2 is the AGC instruction of unit 2, s3 is the control voltage instruction of section I bus, s4 is the control voltage instruction of section II bus, and s1, s2, s3, s4 represent continuous remote adjustment and remote control programming. Then, according to different dynamic negotiation random numbers and the mapping function agreed upon by the dispatching master station and the plant station, the continuous remote adjustment and remote control programming is mapped to the discrete programming of f1, f2, f3, and f4, which are different after each connection, where f1 is the AGC instruction of unit 1, f2 is the AGC instruction of unit 2, f3 is the control voltage instruction of section I bus, and f4 is the control voltage instruction of section II bus.
[0091] Furthermore, a schematic diagram of a dynamically negotiated random number mapping address proposed in an embodiment of the present application is as follows:
[0092] like Figure 2DAs shown, after the connection is established, the dispatching master station issues a random number remote adjustment instruction carrying dynamic random data through a remote adjustment command with a fixed information object address or communication point number. After receiving the random number remote adjustment instruction, the plant station telecontrol communication device superimposes the dynamic random number into the mapping relationship to form a mapping address result that changes dynamically each time a connection is established. Specifically, the dispatching master station superimposes the dynamic random number after the data static attribute name, and uses a hash algorithm to calculate, and then divides the calculated result by 0xEFFFFF to take the remainder, so that the dynamic random number is mapped to the mapping information object address space range, where the dynamic random number is the dynamic random data X, the information object address is the remote adjustment address code No. 0, and the mapping information object address space range is 0x100000-0xFFFFFF. For example, the data static attribute name with a continuous number of 1 is the AGC instruction of unit 1, the data static attribute name with a continuous number of 2 is the AGC instruction of unit 2, the data static attribute name with a continuous number of 3 is the bus control voltage instruction of section I, and the data static attribute name with a continuous number of 4 is the bus control voltage instruction of section II. The dispatching master station superimposes the dynamically negotiated random data X after the data static attribute name with consecutive number 1, and then uses the hash algorithm to calculate the CRC-32 fixed mapping address of 0x572CCC. Finally, the remainder of 0x572CCC is taken by dividing 0xEFFFFF, and the dynamic mapping address of the superimposed dynamically negotiated random data X is 0xAA0BB0. Next, the data static attribute name with consecutive number 2 is superimposed with the dynamically negotiated random data X to obtain the CRC-32 fixed mapping address of 0xC60AEA, and then the dynamic mapping address of the superimposed dynamically negotiated random data X is calculated to be 0xEC8DC0. Similarly, the data static attribute name with consecutive number 3 is superimposed with the dynamically negotiated random data X to obtain the CRC-32 fixed mapping address of 0xBB3E89, and then the dynamic mapping address is calculated to be 0x0CDADD. Finally, the data static attribute name with consecutive number 4 is superimposed with the dynamically negotiated random data X to obtain the CRC-32 fixed mapping address of 0xC221A3, and then the dynamic mapping address is calculated to be 0x1F86B9.
[0093] 204. When the dispatching master station detects that the dynamic mapping address is not occupied, it sends the remote control and remote adjustment instruction carrying the dynamic mapping address to the plant station.
[0094] In an embodiment of the present application, when the dispatching master station detects that the dynamic mapping address is not occupied, it indicates that the dynamic mapping address has no mapping conflict caused by the CRC-32 hash algorithm. Therefore, the dispatching master station generates a remote control and adjustment instruction carrying the dynamic mapping address, the data static attribute name, the preset object address space, and the preset hash algorithm. Then, the dispatching master station sends the remote control and adjustment instruction to the plant station according to the dynamic mapping address. In this way, the dispatching master station uses the dynamic random number confirmed by both parties in the connection establishment phase, and through an agreed mapping relationship, changes the fixed discrete mapping object address to a dynamic discrete mapping object address with address self-checking information, and issues remote control and adjustment instructions according to the correct dynamic discrete mapping object address, thereby improving the safety and reliability of the remote control and adjustment process.
[0095] 205. When the scheduling master station detects that the dynamically mapped address is occupied, the address code of the dynamically mapped address is moved backward by one position and the above step 203 is executed.
[0096] In the embodiment of the present application, when the dispatching master station detects that the dynamic mapping address is occupied, it indicates that the dynamic mapping address causes a mapping conflict due to the CRC-32 hash algorithm. Therefore, the dispatching master station obtains the address code of the dynamic mapping address and moves the address code backward by one position in order. Then, the above step 203 is executed, and the dispatching master station re-detects whether the adjusted dynamic mapping address is occupied, so that the dispatching master station can issue a remote control and remote adjustment command according to the adjusted dynamic mapping address, thereby improving the success rate of remote control and remote adjustment.
[0097] 206. The plant station obtains the dynamic mapping address indicated by the remote control and remote adjustment instruction, and uses the verification parameters to verify whether the dynamic mapping address has a corresponding remote control and remote adjustment object; when the dynamic mapping address has a corresponding remote control and remote adjustment object, execute the following step 207; when the dynamic mapping address does not have a corresponding remote control and remote adjustment object, execute the following step 208.
[0098] In order to avoid the miscontrol and misoperation of the plant side equipment due to the misalignment of the information object address, the present application uses the same data static attribute name, dynamic random number, preset object address space and preset hash algorithm to verify the dynamic mapping address, and enhances the ability of the plant side to resist replay attacks. In the embodiment of the present application, the plant receives the remote control and remote adjustment instruction, and obtains the data static attribute name, preset object address space, preset hash algorithm, and dynamic mapping address indicated by the remote control and remote adjustment instruction. For example, the preset object address space can be 0x100000-0xFFFFFF, and the preset hash algorithm can be a CRC-32 mapping algorithm. Then, the plant obtains the dynamic random number, and uses the data static attribute name, preset object address space, preset hash algorithm and dynamic random number to form a verification parameter. Subsequently, the plant uses the verification parameter to verify whether the dynamic mapping address has a corresponding remote control and remote adjustment object. When the dynamic mapping address has a corresponding remote control and remote adjustment object, the following step 207 is executed; when the dynamic mapping address does not have a corresponding remote control and remote adjustment object, the following step 208 is executed. In this way, the plant verifies the dynamic mapping address formed by the dynamic random number to ensure the safety of the power grid operation.
[0099] 207. When the dynamic mapping address has a corresponding remote control and remote adjustment object, it is determined that the dynamic mapping address verification is successful, the plant station performs a control operation on the remote control and remote adjustment object, and sends the control result of the control operation to the dispatching master station.
[0100] In order to enhance the ability of the plant side to resist replay attacks, the plant side verifies the address of the dynamic discrete mapping object with address self-verification information to ensure that the dynamic discrete mapping object address received by the plant side is consistent after the dispatching master station issues the remote control and adjustment instruction. In an embodiment of the present application, when there is a corresponding remote control and adjustment object for the dynamic mapping address, it means that the dynamic mapping address indicated by the remote control and adjustment instruction is checked normally, and it is determined that the dynamic mapping address verification is successful. Next, the plant performs a control operation on the remote control and adjustment object, and obtains the control result of the control operation. Subsequently, the plant sends the control result of the control operation to the dispatching master station. In this way, through the process of verifying the dynamic mapping address by the plant station, the success rate of remote control and adjustment is improved, and the safety and reliability of remote control and adjustment are improved.
[0101] In an optional implementation scheme, the dispatching master station receives the control result sent by the plant station, re-checks the remote control and remote adjustment instructions, and detects the control result. When it is detected that the control result indicates that the control operation is successfully executed, the dispatching master station obtains the next data static attribute name, and uses a preset hash algorithm to map the next data static attribute name and dynamic random number to the next dynamic mapping address, so that the plant station waits for the dispatching master station to issue subsequent commands, thereby performing the next dynamic mapping address verification operation. When it is detected that the control result indicates that the control operation fails to execute, it means that the remote control and remote adjustment process between the dispatching master station and the plant station has failed, the dispatching master station is disconnected from the plant station, and the connection request is used again to establish a connection with the plant station, thereby improving the efficiency of power dispatching and ensuring the safe and stable operation of the power grid.
[0102] 208. When there is no corresponding remote control object for the dynamic mapping address, the plant station will send an error feedback message carrying a preset reason code to the dispatching master station, and the dispatching master station will re-establish the connection with the plant station based on the error feedback message.
[0103] In an embodiment of the present application, when there is no corresponding remote control and remote adjustment object for the dynamic mapping address, it indicates that an error occurs in the mapping address range of the remote control and remote adjustment instruction, and the plant station obtains a preset reason code, such as an unknown information object address, and generates an error feedback message carrying the preset reason code. Then, the plant station sends the error feedback message to the dispatching master station. Subsequently, the dispatching master station receives the error feedback message, and obtains the preset reason code indicated by the error feedback message, and determines that the remote control and remote adjustment process has failed according to the preset reason code. Finally, the dispatching master station disconnects from the plant station according to the preset reason code, and re-establishes a connection with the plant station using the connection establishment request. In this way, the error feedback information can be used to promptly determine the problems that occur during the remote control and remote adjustment process, and solve the problems, thereby improving the work efficiency of power dispatching and improving the safety and reliability of the remote control and remote adjustment process.
[0104] The method provided by the embodiment of the present application is that the dispatching master station establishes a connection with the plant station by establishing a connection request, and sends a dynamic random number to the plant station, so that the dispatching master station and the plant station complete a dynamic negotiation operation. The dispatching master station uses a preset hash algorithm to map the dynamic random number to a dynamic mapping address, and sends a remote control and remote adjustment instruction carrying the dynamic mapping address to the plant station. The plant station obtains the dynamic mapping address indicated by the remote control and remote adjustment instruction, and uses a verification parameter to verify whether the dynamic mapping address has a corresponding remote control and remote adjustment object. When the dynamic mapping address has a corresponding remote control and remote adjustment object, it is determined that the dynamic mapping address verification is successful, the plant station performs a control operation on the remote control and remote adjustment object, and sends the control result of the control operation to the dispatching master station. The dynamic random number confirmed by the communicating parties in the connection establishment phase is used to change the fixed discrete mapping object address to a dynamic discrete mapping object address with address self-verification information through an agreed mapping relationship, so that the plant station side has the ability to self-verify the instructions of the dispatching master station, thereby enhancing the ability of the plant station side to resist replay attacks and improving the security and reliability of the remote control and remote adjustment process.
[0105] Further, as Figure 1 In the specific implementation of the method, the present application embodiment provides an address verification device, such as Figure 3A As shown, the device includes: a connection module 301, a mapping module 302, a verification module 303 and a control module 304.
[0106] The connection module 301 is used for the scheduling master station to establish a connection with the plant station by establishing a connection request, and to send a dynamic random number to the plant station, so that the scheduling master station and the plant station complete a dynamic negotiation operation;
[0107] A mapping module 302 is used for the dispatching master station to map the dynamic random number into a dynamic mapping address using a preset hash algorithm, and to send a remote control and remote adjustment instruction carrying the dynamic mapping address to the plant station;
[0108] Verification module 303, used for the plant station to obtain the dynamic mapping address indicated by the remote control and remote regulation instruction, and to use verification parameters to verify whether the dynamic mapping address has a corresponding remote control and remote regulation object;
[0109] The control module 304 is used to determine that the dynamic mapping address verification is successful when there is a corresponding remote control object for the dynamic mapping address, the plant station performs a control operation on the remote control object, and sends the control result of the control operation to the dispatching master station.
[0110] In a specific application scenario, the connection module 301 is used for the dispatching master station to obtain the connection establishment request and send the connection establishment request to the plant station; the plant station obtains the telecontrol communication service port, receives the connection establishment request through the telecontrol communication service port, and uses the connection establishment request to establish a connection with the dispatching master station; the dispatching master station obtains the dynamic random number, generates a dynamic negotiation instruction carrying the dynamic random number, and obtains a preset fixed address code, and sends the dynamic negotiation instruction to the plant station according to the preset fixed address code; the plant station receives the dynamic negotiation instruction and obtains the dynamic random number indicated by the dynamic negotiation instruction; the plant station uses the dynamic random number to generate a negotiation confirmation message, and sends the negotiation confirmation message to the dispatching master station; the dispatching master station receives the negotiation confirmation message to complete the dynamic negotiation operation between the dispatching master station and the plant station.
[0111] In a specific application scenario, the mapping module 302 is used for the dispatching master station to obtain the data static attribute name, the preset object address space, and the preset hash algorithm of the remote control and adjustment object; the dispatching master station uses the preset hash algorithm to perform an overlay operation on the dynamic random number after the data static attribute name, and uses the preset hash algorithm to map the processed dynamic random number to the preset object address space to obtain a dynamic mapping address; the dispatching master station detects whether the dynamic mapping address is occupied; when the dispatching master station detects that the dynamic mapping address is not occupied, it generates a remote control and adjustment instruction carrying the dynamic mapping address, the data static attribute name, the preset object address space and the preset hash algorithm; the dispatching master station sends the remote control and adjustment instruction to the plant station.
[0112] In a specific application scenario, the mapping module 302 is also used to obtain the address code of the dynamic mapping address and move the address code backward by one position when the scheduling master station detects that the dynamic mapping address is occupied; the scheduling master station re-detects whether the adjusted dynamic mapping address is occupied.
[0113] In a specific application scenario, the verification module 303 is used by the plant station to receive the remote control and adjustment instructions, and to obtain the data static attribute name, the preset object address space, the preset hash algorithm, and the dynamic mapping address indicated by the remote control and adjustment instructions; the plant station obtains the dynamic random number, and uses the data static attribute name, the preset object address space, the preset hash algorithm, and the dynamic random number to form a verification parameter; the plant station uses the verification parameter to verify whether there is a corresponding remote control and adjustment object at the dynamic mapping address.
[0114] In a specific application scenario, the verification module 303 is also used for, when there is no corresponding remote control object for the dynamic mapping address, the plant station obtains a preset reason code and generates error feedback information carrying the preset reason code; the plant station sends the error feedback information to the dispatching master station; the dispatching master station receives the error feedback information and obtains the preset reason code indicated by the error feedback information; the dispatching master station disconnects from the plant station according to the preset reason code, and re-establishes a connection with the plant station using the connection establishment request.
[0115] In specific application scenarios, such as Figure 3B As shown, the device also includes: a detection module 305.
[0116] The detection module 305 is used for the dispatching master station to receive the control result sent by the plant station and to detect the control result; when it is detected that the control result indicates that the control operation is successfully executed, the dispatching master station obtains the next data static attribute name, and uses the preset hash algorithm to map the next data static attribute name and the dynamic random number to the next dynamic mapping address; when it is detected that the control result indicates that the control operation fails to execute, the dispatching master station disconnects from the plant station and re-uses the connection establishment request to establish a connection with the plant station.
[0117] The device provided by the embodiment of the present application is that the dispatching master station establishes a connection with the plant station by establishing a connection request, and sends a dynamic random number to the plant station, so that the dispatching master station and the plant station complete a dynamic negotiation operation. The dispatching master station uses a preset hash algorithm to map the dynamic random number to a dynamic mapping address, and sends a remote control and remote adjustment instruction carrying the dynamic mapping address to the plant station. The plant station obtains the dynamic mapping address indicated by the remote control and remote adjustment instruction, and uses a verification parameter to verify whether the dynamic mapping address has a corresponding remote control and remote adjustment object. When the dynamic mapping address has a corresponding remote control and remote adjustment object, it is determined that the dynamic mapping address verification is successful, the plant station performs a control operation on the remote control and remote adjustment object, and sends the control result of the control operation to the dispatching master station. The dynamic random number confirmed by the communicating parties in the connection establishment phase is used to change the fixed discrete mapping object address to a dynamic discrete mapping object address with address self-verification information through an agreed mapping relationship, so that the plant station side has the ability to self-verify the instructions of the dispatching master station, thereby enhancing the ability of the plant station side to resist replay attacks and improving the security and reliability of the remote control and remote adjustment process.
[0118] It should be noted that for other corresponding descriptions of the functional units involved in the address verification device provided in the embodiment of the present application, reference can be made to Figure 1 and FIG. 2A to FIG. 2D The corresponding description in will not be repeated here.
[0119] In an exemplary embodiment, see Figure 4 , and also provides a computer device, which includes a bus, a processor, a memory and a communication interface, and may also include an input and output interface and a display device, wherein each functional unit can communicate with each other through the bus. The memory stores a computer program, and the processor is used to execute the program stored in the memory and execute the address verification method in the above embodiment.
[0120] A computer-readable storage medium stores a computer program, which implements the steps of the address verification method when executed by a processor.
[0121] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by hardware, or by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.
[0122] Those skilled in the art will appreciate that the accompanying drawings are merely schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily required for implementing the present application.
[0123] Those skilled in the art will appreciate that the modules in the device in the implementation scenario can be distributed in the device in the implementation scenario according to the implementation scenario description, or can be changed accordingly and located in one or more devices different from the implementation scenario. The modules in the above implementation scenario can be combined into one module, or can be further split into multiple sub-modules.
[0124] The above application serial numbers are for description only and do not represent the advantages or disadvantages of the implementation scenarios.
[0125] The above disclosure only discloses several specific implementation scenarios of the present application. However, the present application is not limited thereto, and any changes that can be conceived by technicians in this field should fall within the scope of protection of the present application.
Claims
1. An address verification method, characterized in that: include: The dispatching master station establishes a connection with the plant station by establishing a connection request, and sends a dynamic random number to the plant station, so that the dispatching master station and the plant station complete a dynamic negotiation operation; The dispatching master station maps the dynamic random number into a dynamic mapping address using a preset hash algorithm, and sends a remote control and remote adjustment instruction carrying the dynamic mapping address to the plant station; The plant station obtains the dynamic mapping address indicated by the remote control and remote adjustment instruction, and uses a verification parameter to verify whether the dynamic mapping address has a corresponding remote control and remote adjustment object, including: the plant station receives the remote control and remote adjustment instruction, and obtains the data static attribute name, the preset object address space, the preset hash algorithm, and the dynamic mapping address indicated by the remote control and remote adjustment instruction, the plant station obtains the dynamic random number, and uses the data static attribute name, the preset object address space, the preset hash algorithm, and the dynamic random number to form a verification parameter, and the plant station uses the verification parameter to verify whether the dynamic mapping address has a corresponding remote control and remote adjustment object; When the dynamic mapping address has a corresponding remote control object, it is determined that the dynamic mapping address verification is successful, the plant station performs a control operation on the remote control object, and sends the control result of the control operation to the dispatching master station.
2. The method according to claim 1, characterized in that The dispatching master station establishes a connection with the plant station by establishing a connection request, and sends a dynamic random number to the plant station, including: The dispatching master station obtains the connection establishment request, and sends the connection establishment request to the plant station; The plant station obtains a telecontrol communication service port, receives the connection establishment request through the telecontrol communication service port, and establishes a connection with the dispatching master station using the connection establishment request; The dispatching master station obtains the dynamic random number, generates a dynamic negotiation instruction carrying the dynamic random number, obtains a preset fixed address code, and sends the dynamic negotiation instruction to the plant station according to the preset fixed address code; The plant station receives the dynamic negotiation instruction and obtains the dynamic random number indicated by the dynamic negotiation instruction; The plant station generates a negotiation confirmation message using the dynamic random number, and sends the negotiation confirmation message to the dispatching master station; The dispatching master station receives the negotiation confirmation message, and completes the dynamic negotiation operation between the dispatching master station and the plant station.
3. The method according to claim 1, characterized in that: The dispatching master station maps the dynamic random number into a dynamic mapping address using a preset hash algorithm, and sends a remote control and remote adjustment instruction carrying the dynamic mapping address to the plant station, including: The dispatching master station obtains the data static attribute name of the remote control and remote adjustment object, the preset object address space, and the preset hash algorithm; The scheduling master station uses the preset hash algorithm to perform a superposition operation on the dynamic random number after the data static attribute name, and uses the preset hash algorithm to map the processed dynamic random number to the preset object address space to obtain a dynamic mapping address; The scheduling master station detects whether the dynamic mapping address is occupied; When the dispatching master station detects that the dynamic mapping address is not occupied, it generates a remote control and remote adjustment instruction carrying the dynamic mapping address, the data static attribute name, the preset object address space and the preset hash algorithm; The dispatching master station sends the remote control and adjustment instructions to the plant station.
4. The method according to claim 3, characterized in that After the scheduling master station detects whether the dynamic mapping address is occupied, the method further includes: When the scheduling master station detects that the dynamic mapping address is occupied, it obtains the address code of the dynamic mapping address and moves the address code backward by one position; The scheduling master station re-detects whether the adjusted dynamic mapping address is occupied.
5. The method according to claim 1, characterized in that After the plant station uses the verification parameter to verify whether the dynamic mapping address has a corresponding remote control and remote adjustment object, the method further includes: When the dynamic mapping address does not have a corresponding remote control and remote adjustment object, the plant station obtains a preset reason code and generates error feedback information carrying the preset reason code; The plant station sends the error feedback information to the dispatching master station; The scheduling master station receives the error feedback information, and obtains the preset reason code indicated by the error feedback information; The dispatching master station disconnects from the plant station according to the preset reason code, and re-establishes a connection with the plant station by using the connection establishment request.
6. The method according to claim 1, characterized in that The method further comprises: The dispatching master station receives the control result sent by the plant station, and detects the control result; When it is detected that the regulation result indicates that the regulation operation is successfully executed, the scheduling master station obtains the next data static attribute name, and uses the preset hash algorithm to map the next data static attribute name and the dynamic random number to the next dynamic mapping address; When it is detected that the regulation result indicates that the regulation operation has failed to be executed, the dispatching master station disconnects from the plant station, and re-establishes a connection with the plant station using the connection establishment request.
7. An address verification device, characterized in that: include: A connection module, used for the scheduling master station to establish a connection with the plant station by establishing a connection request, and to send a dynamic random number to the plant station, so that the scheduling master station and the plant station complete a dynamic negotiation operation; A mapping module, used for the dispatching master station to map the dynamic random number into a dynamic mapping address using a preset hash algorithm, and to send a remote control and remote adjustment instruction carrying the dynamic mapping address to the plant station; A verification module is used for the plant station to obtain the dynamic mapping address indicated by the remote control and remote adjustment instruction, and to use verification parameters to verify whether the dynamic mapping address has a corresponding remote control and remote adjustment object, including: the plant station receives the remote control and remote adjustment instruction, and obtains the data static attribute name, the preset object address space, the preset hash algorithm, and the dynamic mapping address indicated by the remote control and remote adjustment instruction; the plant station obtains the dynamic random number, and uses the data static attribute name, the preset object address space, the preset hash algorithm, and the dynamic random number to form a verification parameter; the plant station uses the verification parameter to verify whether the dynamic mapping address has a corresponding remote control and remote adjustment object; The control module is used to determine that the dynamic mapping address verification is successful when there is a corresponding remote control object for the dynamic mapping address, the plant station performs a control operation on the remote control object, and sends the control result of the control operation to the dispatching master station.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Electric power telecontrol reliable control method and system based on address self-check
CN106972624A
Master slave industrial token passing network
US5012468A