Signaling interactive communication method and system based on asymmetric encryption

By adopting a signaling interactive communication method based on asymmetric encryption and FPGA encryption chip in the power system, the shortcomings in real-time and security of traditional encryption algorithms are solved, and efficient and reliable power equipment communication is achieved.

CN118944977APending Publication Date: 2024-11-12NARI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411317153.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-20
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

In the existing power system communication, traditional encryption algorithms have slow encryption speed when processing large amounts of data, consume a lot of computing resources, affect real-time and increase operation and maintenance costs, and independent controllable encryption algorithms have shortcomings in ensuring security.

Method used

Adopt a signaling interactive communication method based on asymmetric encryption, encrypt and decrypt control instructions through asymmetric encryption signaling, and dynamically update the key during operation, use FPGA and encryption chip to realize encryption and decryption operations, and improve the encryption process real-time and reliability.

Benefits of technology

It improves the real-time and reliability of the encryption process, ensures the security and reliability of power equipment communication, reduces operation and maintenance costs, and improves security through dynamic updates of multiple sets of keys.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118944977A_ABST
    Figure CN118944977A_ABST
Patent Text Reader

Abstract

The invention discloses a signaling interactive communication method and system based on asymmetric encryption, and the method comprises the steps: enabling a transmitting device to be disposed at a superior control site, obtaining a contact signal transmitted by a device in the site, converting the contact signal into a corresponding control instruction, and transmitting the control instruction to a receiving device disposed at an execution site; the main channel and the branch channel are switched on, and the transmitting device and the receiving device detect the channel states respectively; and under the condition that the channel state is normal, after the sending equipment receives a contact signal sent by the in-station device, the control instruction is encrypted and issued based on the asymmetric encryption signaling, and after receiving the control instruction, the receiving equipment decrypts the control instruction and executes an exit. The real-time performance, the reliability and the safety of the encryption process can be improved, and the autonomy and the controllability of an existing power system are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of digital communication of electric power systems, and in particular, relates to a signaling interactive communication method and system based on asymmetric encryption. Background Art

[0002] During the communication process of the power system, some key data is still transmitted in plain text. Anyone who invades the data communication network, once intercepting, tampering, or forging real-time data, will cause malfunction or refusal of switches, disordered uploaded data, and errors in setting parameters, causing major accidents. Therefore, power equipment data transmission needs to be encrypted to ensure the safe and stable operation of the power system. Traditional power equipment data communication uses international encryption algorithms such as DES (Data Encryption Standard) and 3DES (Triple DES, a symmetric algorithm based on DES) to establish remote secure encryption channels, identity authentication, access control and other security measures. Although it solves the information encryption and identity authentication problems of the protocol to a certain extent, with the development of cryptographic technology and the improvement of computing power, power equipment supported by general algorithms can no longer meet the current security requirements of power system information.

[0003] Some advanced encryption algorithms have been proposed and applied to power equipment. Among them, the standard encryption algorithm AES (Advanced Encryption Standard) is an improved algorithm based on the DES algorithm. This encryption algorithm is a symmetric encryption algorithm that uses a block cipher system to group the plaintext according to a fixed size and then encrypt each group. During the encryption process, the AES algorithm uses multiple rounds of encryption to ensure the security and efficiency of data transmission. The RSA (Rivest Shamir Adleman) algorithm is an asymmetric encryption algorithm. This algorithm mainly relies on the complexity of decomposing large prime numbers to achieve its security. Since it is very easy to multiply two large prime numbers, it is extremely difficult to factorize their product, so the use of this cipher is more secure.

[0004] However, the above algorithm mechanism has the problem of slow encryption speed and high consumption of computing resources when processing large amounts of data, which affects the real-time processing of power equipment data and increases operation and maintenance costs. Among the existing algorithms, although there are some encryption algorithms with fast encryption speed and low resource consumption, most of them use international commercial algorithms. Therefore, the autonomous control of encryption algorithms is crucial to ensure the security and reliability of my country's power communication facilities, and it is an urgent problem to be solved by technicians in this field.

[0005] Prior art document 1 (CN103580859A) discloses an asymmetric encryption method for smart electricity interaction, including: the sending end generates a private key, generates a public key from the key, encrypts the plaintext data with the private key to generate ciphertext data, performs scrambling processing on the ciphertext data and the public key respectively to obtain scrambled ciphertext data and scrambled public key, and transmits them to the receiving end through the transmission channel; the private key and the public key are generated according to the same calculation rules; the receiving end performs descrambling processing on the received scrambled ciphertext data and the scrambled public key data, restores the ciphertext data and the public key corresponding to the private key, generates the original private key with the public key, and then uses the private key to decrypt the ciphertext data to restore the plaintext data. The disadvantage is that this method has only one set of public and private keys, and the key pair remains unchanged during operation.

[0006] Prior art document 2 (CN109104279A) discloses a method, system and terminal device for encrypting power data, the method comprising: receiving a data transmission request sent by a first terminal, the data transmission request comprising information of a target terminal; obtaining power data to be transmitted according to the data transmission request; dividing the power data to be transmitted into ordinary power data and important power data; obtaining a symmetric key, and using the symmetric key to encrypt the ordinary power data and the important power data respectively to obtain first encrypted data and second encrypted data; obtaining a public key of the target terminal, and using the public key to encrypt the second encrypted data to obtain third encrypted data, and sending the first encrypted data and the third encrypted data to the target terminal. The disadvantage is that ordinary data and important data must be distinguished for the original power data, which puts forward requirements for the original power data itself. Summary of the invention

[0007] In order to solve the deficiencies in the prior art, the present invention provides a signaling interactive communication method and system based on asymmetric encryption, which realizes communication between a sending device and a receiving device based on asymmetric encrypted signaling, improves the real-time and reliability of the encryption process, and ensures the reliability and security of power equipment communication.

[0008] The present invention adopts the following technical solution.

[0009] A first aspect of the present invention provides a signaling interactive communication method based on asymmetric encryption, comprising:

[0010] The sending device is set at the upper-level control site to obtain the contact signal sent by the device in the site, and convert the contact signal into a corresponding control instruction and send it to the receiving device set at the execution site; the main channel and sub-channel switches are turned on, and the sending device and the receiving device respectively detect the channel status; when the channel status is normal, when the sending device receives the contact signal sent by the device in the site, the control instruction is encrypted and sent based on the asymmetric encryption signaling, and the receiving device decrypts the control instruction after receiving it and executes the export.

[0011] Preferably, the control instruction is encrypted and sent based on asymmetric encryption signaling, and the receiving device decrypts and executes the export after receiving the control instruction, including: the sending device uses the current private key to digitally sign the action command message in the control instruction and then sends the signed action message; after the receiving device receives the signed action command message, it uses the current public key to verify the signature and judge the validity of the action command; when the signature verification passes and the action command is valid, the receiving device executes the export.

[0012] Preferably, when the signature verification passes and the action command is valid, the receiving device performs parallel logic judgment on the action command, and when the parallel logic judgment results are all valid, the receiving device executes the export according to the action command.

[0013] Preferably, the method also includes periodically verifying the current key, and the key verification includes: the receiving device obtains the first random information; the receiving device uses the current public key to encrypt the first random information, and sends it to the sending device through a key verification message; the sending device uses the current private key to decrypt the key verification message, obtains the second random information, and sends the second random information to the receiving device through a verification return message; the receiving device compares the first random information and the second random information, if they are the same, the key verification is successful, otherwise the key verification fails.

[0014] Preferably, the method shown also includes: using a valid key to update the current key under preset conditions, and using the updated key as the current key, the valid key is a key pair between the sending device and the receiving device in which the key verification is successful, and the preset conditions include: one or more of channel status changes, device actions, scheduled updates and key verification failures; and when the key update fails, a prompt is given that the encrypted communication is interrupted.

[0015] Preferably, using a valid key to update the current key includes: the sending device generates a new public-private key pair, and sends a new public key through a public key update message, and the public key update message is digitally signed using the private key in the valid key; after receiving the public key update message, the receiving device uses the public key in the valid key to verify the signature of the digitally signed message; if the signature verification is successful, the receiving device uses the received new public key as the current public key and returns a verification pass message; after receiving the verification pass message, the sending device uses the generated new private key as the current private key to complete the update operation.

[0016] Preferably, the method further comprises: the sending device and the receiving device perform initial key interaction during a power-on initialization phase, and the sending device and the receiving device simultaneously have multiple groups of valid keys.

[0017] Preferably, the initial key interaction between the sending device and the receiving device includes: after the sending device receives the password initialization request sent by the receiving device, it generates an initial key pair, the initial key pair includes an initial public key and an initial private key, and distributes the initial public key to the receiving device via a key distribution message; after the receiving device receives the key distribution message, it saves the initial public key information and performs key verification.

[0018] Preferably, the switches of the main channel and the sub-channel are put into operation, and the channel status of the sending device is detected, including: when the switches of the main channel and the sub-channel are put into operation, it is determined whether the sending device receives the heartbeat message sent by the receiving device, if so, it is determined that the channel status is normal, otherwise, the channel status is abnormal; when the channel status is normal, it is determined whether the sending device has an external input, if so, the sending device sends an action message, otherwise, the sending device sends a heartbeat message; when the channel status is abnormal, when the sending device fails to receive the message sent by the receiving device within the time threshold or receives the first consecutive message, When an error message of a certain number threshold is received, the communication receiving channel of the sending device is abnormal or the sending channel of the receiving device is abnormal, the sending device issues an alarm and sends an alarm message; when the channel status is abnormal, when the sending device receives the alarm message sent by the receiving device, the sending channel of the sending device is abnormal or the communication receiving channel of the receiving device is abnormal, an alarm is issued and a heartbeat message is sent; after the sending device continuously receives the correct heartbeat messages of the first number threshold sent by the receiving device, the channel is in normal status; when the main channel switch is turned on and the sub-channel is exited, the sending device sends an idle message.

[0019] Preferably, the switches of the main channel and the sub-channel are turned on, and the receiving device detects the channel status, including: when the switches of the main channel and the sub-channel are turned on, judging whether the receiving device has received the heartbeat message sent by the sending device, if so, determining that the channel status is normal, otherwise, the channel status is abnormal; when the channel status is normal and the action messages received continuously reach the second numerical threshold and the action messages all pass the signature verification, the receiving device sends an opening signal to control the corresponding relay to act; when the channel status is abnormal, when the receiving device fails to receive the message sent by the sending device within the continuous time threshold or continuously receives the error message of the first quantity threshold, then the communication receiving channel of the receiving device is abnormal or the sending channel of the sending device is abnormal, and the receiving device issues an alarm prompt and sends an alarm message; when the channel status is abnormal, when the receiving device receives the alarm message sent by the sending device, then the sending channel of the receiving device is abnormal or the communication receiving channel of the sending device is abnormal, and the receiving device issues an alarm prompt and sends a heartbeat message; after the receiving device continuously receives the correct heartbeat message of the first quantity threshold sent by the sending device, the channel is in normal state.

[0020] Preferably, the sending device and the receiving device both include an FPGA and an encryption chip. The FPGA and the encryption chip communicate using an SPI interface. The FPGA controls the encryption chip to perform encryption and / or decryption and / or update keys and / or generate random information, so as to implement the signaling interactive communication method based on asymmetric encryption.

[0021] The second aspect of the present invention provides a signaling interactive communication system based on asymmetric encryption, including a sending device, a receiving device and a communication link. The sending device is set at the upper control site, used to obtain the contact signal sent by the device in the site, and convert the contact signal into a corresponding control instruction, and encrypt the control instruction based on asymmetric encryption signaling and send it to the receiving device set at the execution site. The receiving device is set at the lower execution site, and is used to decrypt and execute the export after receiving the control instruction. The communication link is used to connect the sending device and the receiving device.

[0022] Preferably, the sending device includes an input module, an FPGA module, an encryption module and a communication interface module. The input module is used to obtain the contact signal sent by the device in the station where the sending device is located. The FPGA module and the encryption module are used to convert the contact signal into a corresponding control instruction and encrypt the control instruction into an encrypted instruction. The communication interface module is used to send the encrypted instruction to the receiving device.

[0023] Preferably, the receiving device includes a communication interface module, an FPGA module, a decryption module and an output module. The communication interface module is used to receive encrypted instructions. The FPGA module and the decryption module are used to decrypt the encrypted instructions, perform multi-frame confirmation, and generate corresponding control signals. The output module is used to output the control signal as a hard contact output signal.

[0024] The third aspect of the present invention provides an electric power device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the above-mentioned signaling interactive communication method based on asymmetric encryption when loaded into the processor.

[0025] The fourth invention of the present invention provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the above-mentioned signaling interactive communication method based on asymmetric encryption.

[0026] Compared with the prior art, the beneficial effects of the present invention include at least:

[0027] The present invention improves the real-time and reliability of the encryption process, ensuring the reliability and security of communication; and adopts a fully autonomous and controllable hardware solution with FPGA as the core, eliminating the complex software configuration of the existing power system communication interface device and saving operation and maintenance costs.

[0028] The present invention generates multiple groups of public and private key pairs, adopts a dynamic key update mechanism during operation, and regularly replaces keys, thereby improving the reliability and security of the encryption process.

[0029] The present invention has no requirements for the original data content. All data are encrypted using the same process, and identity recognition directly uses the signature and verification functions of the asymmetric national encryption algorithm, which improves the real-time performance of the encryption process and ensures that trip signaling data can be quickly decrypted. It is suitable for systems with high real-time requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:

[0031] Figure 1 It is a schematic diagram of the principle of an asymmetric encrypted signaling interactive communication method system provided by an embodiment of the present invention;

[0032] Figure 2 This is a schematic diagram of a sending process of a sending device provided by an embodiment of the present invention;

[0033] Figure 3 It is a schematic diagram of a receiving process of a sending device provided by an embodiment of the present invention;

[0034] Figure 4 This is a schematic diagram of a sending process of a receiving device provided by an embodiment of the present invention;

[0035] Figure 5 It is a schematic diagram of a receiving process of a receiving device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical scheme and advantages of the present invention clearer, the technical scheme of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. The embodiments described in this application are only embodiments of a part of the present invention, rather than all embodiments. Based on the spirit of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the protection scope of the present invention.

[0037] The implementation environment of the present invention is the communication environment between the receiving device and the sending device of the substation, wherein the receiving device is a receiving jumper, the sending device is a sending jumper, the receiving device and the sending device each have their own main channel and sub-channel, and when the receiving device communicates with the sending device, they need to first use their own main channel, and then use their own sub-channel. The main channel can be the main switch of the equipment, and the sub-channel can be a sub-switch. In the existing implementation environment, the communication message between the receiving device and the sending device has verification processes such as CRC verification and sum verification, and the security and real-time performance are not high. The embodiment of the present invention proposes a signaling interactive communication method based on asymmetric encryption. In the original implementation environment, an asymmetric dynamic encryption mechanism is deployed by combining FPGA control with an encryption chip, which can improve the real-time performance and reliability of the encryption process and further improve the security of communication.

[0038] Embodiment 1 of the present invention provides a signaling interactive communication method based on asymmetric encryption, including:

[0039] Step 1: Set the sending device at the upper control site to obtain the contact signal sent by the device in the site, and convert the contact signal into a corresponding control instruction and send it to the receiving device set at the execution site.

[0040] The contact signal includes a trip hard contact signal and / or a closing hard contact signal.

[0041] Specifically, the sending device is installed at the upper-level control site, and is responsible for receiving the tripping hard contact signal or closing hard contact signal issued by the device in this site. After converting it into a control command, it is sent up through an encrypted channel and transmitted safely and quickly to the lower-level execution site; the receiving device is installed at the lower-level execution site, and is responsible for receiving the control command issued by the sending device and outputting multiple independent hard contact export signals.

[0042] Step 2: The main channel and sub-channel switches are turned on, and the sending device and the receiving device respectively detect the channel status.

[0043] In step 2, the sending device detects the channel status including:

[0044] When the main channel and sub-channel switches are turned on, it is determined whether the sending device receives the heartbeat message sent by the receiving device. If so, the channel status is determined to be normal, otherwise, the channel status is abnormal;

[0045] When the channel status is normal, determine whether the sending device has an external input. If yes, the sending device sends an action message. Otherwise, the sending device sends a heartbeat message.

[0046] In the case where the channel status is abnormal, when the sending device fails to receive a message sent by the receiving device within a time threshold or continuously receives error messages of a first number threshold, the receiving channel of the sending device is abnormal or the sending channel of the receiving device is abnormal, and the sending device issues an alarm prompt and sends an alarm message;

[0047] When the channel status is abnormal, when the sending device receives the alarm message sent by the receiving device, the sending channel of the sending device is abnormal or the receiving channel of the receiving device is abnormal, and an alarm prompt is issued and a heartbeat message is sent;

[0048] After the sending device continuously receives a first number threshold of correct heartbeat messages sent by the receiving device, the channel returns to a normal state;

[0049] When the main channel switch is turned on and the sub-channel is turned off, the sending device sends an idle message.

[0050] In this embodiment, the sending device channel works normally, the main channel and the branch channel switches need to be turned on, and the channel can monitor the heartbeat message of the opposite side receiver; when there is no input, the sending device sends a heartbeat message to the outside; when there is an input, the sending device sends an action message to the outside. If the sending device cannot receive any message from the receiving device, it is judged that the receiving channel of the sending device is abnormal or the sending channel of the receiving device is abnormal, and the machine gives an alarm through the indicator light and the central signal, and sends an alarm message to the outside; if the sending device receives the alarm message sent by the receiving device, it is judged that the sending channel of the sending device is abnormal or the receiving channel of the receiving device is abnormal, and the machine gives an alarm through the indicator light and the central signal, and still sends a heartbeat message to the outside.

[0051] Specifically, Figure 2 and Figure 3 As shown, the sending device is in working mode:

[0052] 1) The total channel of the sending equipment is put into use and the functions are opened;

[0053] 2) When the sub-channel exits, the sending device sends an idle message, which is "0x7e" specified by the HDLC protocol;

[0054] 3) When the sub-channel is put into use and the channel is normal, when there is no input (the external passive contact is in the disconnected state), the sending device sends a heartbeat message to the outside; when there is input (the external passive contact is in the closed state), the device operates, the corresponding channel action light lights up, the action contact closes, and the sending device sends an action message to the receiving device;

[0055] 4) When the channel is put into use, the sending device monitors the status of the received message in real time;

[0056] 5) If the sending device fails to receive messages from the receiving device for 1 second or receives 600 frames of error messages continuously, it is judged that communication reception abnormality occurs on this side, the communication abnormality light is always on, the "communication abnormality" contact is closed, and the sending device sends an alarm message to the receiving device; after receiving 600 frames of correct heartbeat messages from the sending device continuously, the sending device channel returns to normal;

[0057] 6) If the sending device receives the alarm message from the receiving device, it determines that the sending channel of the sending device is abnormal or the receiving channel of the receiving device is abnormal, the communication abnormality light flashes, the "communication abnormality" contact is closed, and the sending device sends a heartbeat message to the outside; after the sending device receives 600 frames of correct heartbeat messages from the receiving device continuously, the channel returns to normal.

[0058] In this embodiment, the time threshold may be 1 second, and the first quantity threshold may be 600 frames.

[0059] It is understandable that the present invention does not limit the time threshold and the first quantity threshold, and those skilled in the art may set specific values ​​of the time threshold and the first quantity threshold according to actual applications.

[0060] In step 2, the receiving device detects the channel status including:

[0061] When the main channel and sub-channel switches are turned on, it is determined whether the receiving device receives the heartbeat message sent by the sending device. If so, the channel status is determined to be normal, otherwise, the channel status is abnormal;

[0062] When the channel status is normal and the number of action messages received continuously reaches a second threshold, the receiving device sends an opening signal to control the corresponding relay to act;

[0063] In the case where the channel status is abnormal, when the receiving device fails to receive messages sent by the sending device within a continuous time threshold or continuously receives error messages of a first quantity threshold, the receiving channel of the receiving device is abnormal or the sending channel of the sending device is abnormal, and the receiving device issues an alarm prompt and sends an alarm message;

[0064] When the channel status is abnormal, when the receiving device receives the alarm message sent by the sending device, the sending channel of the receiving device is abnormal or the receiving channel of the sending device is abnormal, and the receiving device issues an alarm prompt and sends a heartbeat message.

[0065] After the receiving device continuously receives a first number threshold of correct heartbeat messages sent by the sending device, the channel returns to a normal state.

[0066] The first quantity threshold is greater than the second quantity threshold.

[0067] In this embodiment, the receiving device channel works normally, the main channel and sub-channel switches need to be turned on, and the channel can detect the heartbeat message of the opposite sending device. When the channel is normal, the receiving device needs to receive 3 frames of action messages continuously, and after verification, it can control the relay to act.

[0068] Specifically, Figure 4 and Figure 5 As shown, the receiving device is in working mode:

[0069] 1) The total channel of the receiving equipment is put into use and the functions are opened;

[0070] 2) When the sub-channel exits, the receiving device sends an idle message, which is "0x7e" specified by the HDLC protocol;

[0071] 3) When the channel is put into use, the status of received messages is monitored in real time;

[0072] 4) If the receiving device fails to receive messages from the sending device for 1 second or receives 600 frames of error messages continuously, it is judged that the receiving channel of the receiving device is abnormal or the sending channel of the sending device is abnormal, the communication abnormality light is always on, the "communication abnormality" contact is closed, and an alarm message is sent to the sending device; after the receiving device receives 600 frames of correct heartbeat messages continuously, the channel returns to normal;

[0073] 5) If the receiving device receives the alarm message from the sending device, it is judged that the sending channel of the receiving device is abnormal or the receiving channel of the sending device is abnormal, the communication abnormality light flashes, the "communication abnormality" contact is closed, and the receiving device sends a heartbeat message to the outside; after the receiving device receives 600 frames of correct heartbeat messages in succession, the channel returns to normal.

[0074] 6) When the receiving channel is normal, after receiving three frames of action messages from the sending device, the receiving device sends an opening signal, the corresponding action contact closes, the "action" light of the corresponding channel on the front panel lights up, and the "action signal" contact closes;

[0075] 7) If the duration of the action message received by the receiving device is less than 2 seconds, the action contact is disconnected after 2 seconds, the "action signal" contact is disconnected, and the "action" light of the corresponding channel on the front panel remains on. After pressing the "reset" button, the "action" light of the corresponding channel on the front panel goes out.

[0076] In this embodiment, the time threshold is 1 second, the second quantity threshold is 3 frames, and the first quantity threshold is 600 frames.

[0077] It is understandable that the present invention does not limit the time threshold, the first quantity threshold and the second quantity threshold, and those skilled in the art may set specific values ​​of the time threshold, the first quantity threshold and the second quantity threshold according to actual applications.

[0078] Step 3: When the channel status is normal, after the sending device receives the contact signal sent by the device in the station, it encrypts and sends the control instruction based on asymmetric encryption signaling. After receiving the control instruction, the receiving device decrypts it and executes the export.

[0079] In a preferred but non-limiting embodiment, each communication module of the sending device and the receiving device is respectively added with a dedicated encryption chip, which communicates with the FPGA using an SPI interface. The FPGA controls the encryption chip to perform encryption and / or decryption and / or update the key and / or generate random information, which is used to implement the signaling interactive communication method based on asymmetric encryption. The use of a fully autonomous and controllable hardware solution with FPGA as the core eliminates the complex software configuration of the existing power system communication interface device and saves operation and maintenance costs; the full hardware implementation solution of FPGA and encryption chip has no data caching link in the encryption and decryption process, which ensures the real-time performance of the system function; the fully autonomous and controllable hardware solution can improve the security of power communication facilities.

[0080] like Figure 1 As shown, in this embodiment, the channel encryption mechanism between the sending device and the receiving device mainly includes key initialization, key verification, action command encryption, and key update. The sending device and the receiving device complete the issuance and execution of control instructions in real time and reliably through the key interaction mechanism.

[0081] In this embodiment, step 3 includes:

[0082] Step 3.1: After the initial key exchange between the sending device and the receiving device in the power-on initialization phase, the sending device and the receiving device simultaneously have multiple sets of valid keys.

[0083] In step 3.1, after receiving the password initialization request sent by the receiving device, the sending device generates an initial key pair, which includes an initial public key and an initial private key, and distributes the initial public key to the receiving device through a key distribution message; after receiving the message, the receiving device saves the initial public key information.

[0084] In this embodiment, after receiving the password initialization request sent by the receiving device, the sending device generates an initial key pair, which includes an initial public key and an initial private key, and distributes the initial public key to the receiving device through a key distribution message. After receiving the message, the receiving device saves the initial public key information and starts the key verification of step 3.2. After the key verification is passed, the receiving device returns a confirmation message to complete the initial key exchange. After the key initialization is successful, the key update operation of step 3.4 is performed to ensure that the receiving device and the sending device have two sets of valid keys at the same time.

[0085] Step 3.2: Perform key verification, including:

[0086] The receiving device obtains the first random information; the receiving device encrypts the first random information using the current public key, and sends it to the sending device through a key verification message; the sending device decrypts the key verification message using the current private key to obtain the second random information, and sends the second random information to the receiving device through a verification return message; the receiving device compares the first random information and the second random information, if they are the same, the signature verification is successful, otherwise the signature verification fails.

[0087] Specifically, the receiving device periodically accesses the encryption chip to obtain random information, encrypts this information using the current public key (denoted as K), and sends it to the sending device through a key verification message; the sending device uses the current private key to decrypt the key verification message to obtain the encrypted random information. The sending device returns the decrypted information to the receiving device through a verification return message, and the receiving device compares the information. If they are the same, the verification is passed. If the verification fails, the previous valid key (K-1) is used to execute the update process of step 3.4. If the update fails, the encrypted communication is interrupted.

[0088] Step 3.3: Encrypt and send the control instruction based on asymmetric encryption signaling, specifically including:

[0089] The sending device uses the current private key to digitally sign the action command message in the control instruction and then sends the signed action message;

[0090] After receiving the signed action command message, the receiving device uses the current public key to verify the signature and determine the validity of the action command.

[0091] When the signature verification is successful and the action command is valid, the receiving device executes the export.

[0092] Specifically, when the sending device is in action, the command message is digitally signed using the private key dA; after the receiving device receives the signed command message, it uses the public key PA to verify the signature and simultaneously initiates a multi-frame confirmation judgment; after the receiving device passes the signature verification and meets the multi-frame judgment conditions, the action command is confirmed to be valid and the exit is executed.

[0093] The receiving device confirms the action command after performing multi-frame judgment on the action message. The judgment condition is that the receiving device receives 3 frames of action messages continuously and all 3 frames of action messages pass the signature verification, then the received action command is considered valid.

[0094] In a preferred but non-limiting embodiment, the signing and verification functions of an asymmetric national encryption algorithm are adopted.

[0095] In this embodiment, digital signatures are used for encryption, so that the communication between the sending devices is more secure, and the encryption speed is faster and the encryption efficiency is higher.

[0096] Furthermore, when the signature verification passes and the action command is valid, the receiving device performs parallel logic judgment on the action command. When the parallel logic judgment results are all valid, the receiving device executes the export according to the action command.

[0097] Specifically, combined Figure 5 As shown, the action message parsing and action signal generation are parallel redundant designs, that is, two action logic judgment modules are designed. When the action signals output by the two modules are judged to be valid, the receiving device can act on the export. If the receiving device cannot receive any message from the sending device, it is judged that the receiving channel of the receiving device is abnormal or the sending channel of the sending device is abnormal. The machine gives an alarm through the indicator light and the central signal, and sends an alarm message to the outside; if the receiving device receives the alarm message sent by the sending device, it is judged that the sending channel of the receiving device is abnormal or the sending channel of the sending device is abnormal. The machine gives an alarm through the indicator light and the central signal, and still sends a heartbeat message to the outside.

[0098] Step 3.4: Use the valid key to update the current key, including:

[0099] The sending device generates a new public-private key pair and sends a new public key through a public key update message. The public key update message uses the private key in the valid key to digitally sign. After receiving the public key update message, the receiving device uses the public key in the valid key to verify the signature of the digitally signed message. If the signature verification is successful, the receiving device uses the received new public key as the current public key and returns a verification pass message. After receiving the verification pass message, the sending device uses the generated new private key as the current private key to complete the update operation.

[0100] Specifically, when the key is updated, the current private key is recorded as dA1 and the public key is PA1. The sending device first generates new public and private keys, recorded as private key dA2 and public key PA2. The sending device sends public key PA2 through a public key update message, where the public key update message is digitally signed with private key dA1. After receiving the public key update message, the receiving device uses the current public key PA1 to verify the signature of the message. After the verification is passed, the new public key PA2 is replaced and a verification pass message is returned. After the sending device receives the returned verification pass message, the key update is completed.

[0101] Preferably, a valid key is used to update the current key under preset conditions, and the updated key is used as the current key. The valid key is a key pair between the sending device and the receiving device in which the key verification is successful. The preset conditions include: one or more of channel status changes, device actions, scheduled updates, and key verification failures; and when the key update fails, an indication is given that the encrypted communication is interrupted.

[0102] For example, set a 24-hour scheduled update.

[0103] In a preferred but non-limiting embodiment, the encryption work of each communication module in the receiving device and the sending device is considered to be processed independently, that is, in general, the key pairs of each channel at the same time are different.

[0104] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0105] Embodiment 2 of the present invention provides an asymmetric encrypted signaling interactive communication system, including: a signal sending device, a signal receiving device and a communication link.

[0106] The sending device is set at the upper control site, and is used to obtain the contact signal sent by the device in the site, and convert the contact signal into a corresponding control instruction, and encrypt the control instruction based on asymmetric encryption signaling and send it to the receiving device set at the execution site.

[0107] Specifically, the functions of the signaling equipment mainly include: input module, FPGA module, encryption module and communication interface module. The input module is responsible for obtaining the contact signal sent by the device in the station; the FPGA module and encryption module are responsible for converting the contact signal into the corresponding control instruction and encrypting the control instruction into an encrypted instruction; the communication interface module is responsible for sending the encrypted instruction.

[0108] The receiving device is set up at the lower-level execution site and is used to decrypt and execute the export after receiving the control instruction.

[0109] Specifically, the functions of the receiving device mainly include: communication interface module, FPGA module, decryption module and output module. The communication interface module is responsible for receiving the encrypted instructions; the FPGA module and decryption module are responsible for decrypting the encrypted instructions, performing multi-frame confirmation, and generating corresponding control signals; the output module is responsible for outputting the control signal as a hard-connection output signal.

[0110] A communication link is used to connect a sending device and a receiving device; the system runs the signaling interactive communication method based on asymmetric encryption provided in Example 1.

[0111] Embodiment 3 of the present invention provides an electric power device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is loaded into the processor, the signaling interactive communication method based on asymmetric encryption described in Embodiment 1 is implemented.

[0112] Embodiment 4 of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the signaling interactive communication method based on asymmetric encryption according to Embodiment 1 is implemented.

[0113] Compared with the prior art, the beneficial effects of the present invention include at least:

[0114] The sending device and the receiving device of the present invention can reliably complete the issuance and execution of control instructions in real time through the key interaction mechanism, which can improve the encryption speed, thereby improving the real-time and reliability of the encryption process, and improving the reliability and security of communication between power equipment. In addition, the fully autonomous and controllable hardware solution with FPGA as the core is adopted, which eliminates the complex software configuration of the existing power system communication interface device, reduces the consumption of computing resources, and reduces the operation and maintenance costs.

[0115] The present invention generates multiple groups of public and private key pairs, adopts a dynamic key update mechanism during operation, and regularly replaces keys, thereby improving the reliability and security of the encryption process.

[0116] The present invention has no requirements for the original data content. All data are encrypted using the same process, and identity recognition directly uses the signature and verification functions of the asymmetric national encryption algorithm, which improves the real-time performance of the encryption process and ensures that trip signaling data can be quickly decrypted. It is suitable for systems with high real-time requirements.

[0117] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.

[0118] Computer readable storage medium can be a tangible device that can keep and store the instructions used by the instruction execution device. Computer readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (non-exhaustive list) of computer readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, for example, a punch card or a convex structure in a groove on which instructions are stored, and any suitable combination thereof. The computer readable storage medium used here is not interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (for example, a light pulse by an optical fiber cable), or an electrical signal transmitted by a wire.

[0119] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0120] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0121] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A signaling interactive communication method based on asymmetric encryption, It is characterized in that include: The sending device is set at the upper control site to obtain the contact signal sent by the device in the site, and convert the contact signal into a corresponding control instruction and send it to the receiving device set at the execution site; The main channel and sub-channel switches are turned on, and the sending device and the receiving device respectively detect the channel status; When the channel status is normal, when the sending device receives the contact signal sent by the device in the station, the control instruction is encrypted and sent based on the asymmetric encryption signaling. After receiving the control instruction, the receiving device decrypts it and executes the export.

2. The signaling interactive communication method based on asymmetric encryption according to claim 1, It is characterized in that The control instructions are encrypted and sent based on asymmetric encryption signaling. After receiving the control instructions, the receiving device decrypts and executes the export including: The sending device uses the current private key to digitally sign the action command message in the control instruction and then sends the signed action message; After receiving the signed action command message, the receiving device uses the current public key to verify the signature and determine the validity of the action command. When the signature verification is successful and the action command is valid, the receiving device executes the export.

3. The signaling interactive communication method based on asymmetric encryption according to claim 2, Features: When the signature verification passes and the action command is valid, the receiving device performs parallel logic judgment on the action command. When the parallel logic judgment results are all valid, the receiving device executes the export according to the action command.

4. The signaling interactive communication method based on asymmetric encryption according to claim 3, It is characterized in that The method further includes periodically verifying the current key, wherein the key verification includes: The receiving device obtains the first random information; The receiving device encrypts the first random information using the current public key, and sends it to the sending device via a key verification message; The sending device uses the current private key to decrypt the key verification message to obtain the second random information, and sends the second random information to the receiving device through a verification return message; The receiving device compares the first random information and the second random information. If they are the same, the key verification succeeds, otherwise the key verification fails.

5. The signaling interactive communication method based on asymmetric encryption according to claim 4, It is characterized in that The method further comprises: Under preset conditions, the current key is updated using a valid key, and the updated key is used as the current key. The valid key is a key pair between the sending device and the receiving device where key verification has been successful. The preset conditions include: one or more of channel status changes, device actions, scheduled updates, and key verification failures; and when the key update fails, an alert is given that the encrypted communication is interrupted.

6. The signaling interactive communication method based on asymmetric encryption according to claim 5, It is characterized in that Updating the current key with a valid key involves: The sending device generates a new public-private key pair and sends the new public key through a public key update message. The public key update message is digitally signed using the private key in the valid key. After receiving the public key update message, the receiving device uses the public key in the valid key to verify the signature of the digitally signed message; If the signature verification succeeds, the receiving device will use the received new public key as the current public key and return a verification success message; After receiving the verification pass message, the sending device uses the generated new private key as the current private key to complete the update operation.

7. The signaling interactive communication method based on asymmetric encryption according to claim 6, It is characterized in that The method further comprises: The sending device and the receiving device perform initial key exchange during the power-on initialization phase, and the sending device and the receiving device simultaneously have multiple sets of valid keys.

8. The signaling interactive communication method based on asymmetric encryption according to claim 7, It is characterized in that The initial key interaction between the sending device and the receiving device includes: After receiving the password initialization request sent by the receiving device, the sending device generates an initial key pair, which includes an initial public key and an initial private key, and distributes the initial public key to the receiving device through a key distribution message; After receiving the key distribution message, the receiving device saves the initial public key information and performs key verification.

9. The signaling interactive communication method based on asymmetric encryption according to any one of claims 1 to 8, It is characterized in that The main channel and sub-channel switches are turned on, and the channel status of the sending device is tested, including: When the main channel and sub-channel switches are turned on, it is determined whether the sending device receives the heartbeat message sent by the receiving device. If so, the channel status is determined to be normal, otherwise, the channel status is abnormal; When the channel status is normal, determine whether the sending device has an external input. If yes, the sending device sends an action message. Otherwise, the sending device sends a heartbeat message. In the case where the channel status is abnormal, when the sending device fails to receive a message sent by the receiving device within a time threshold or continuously receives error messages of a first number threshold, the communication receiving channel of the sending device is abnormal or the sending channel of the receiving device is abnormal, and the sending device issues an alarm prompt and sends an alarm message; When the channel status is abnormal, when the sending device receives the alarm message sent by the receiving device, the sending channel of the sending device is abnormal or the communication receiving channel of the receiving device is abnormal, and an alarm prompt is issued and a heartbeat message is sent; After the sending device continuously receives a first number threshold of correct heartbeat messages sent by the receiving device, the channel is in a normal state; When the main channel switch is turned on and the sub-channel is turned off, the sending device sends an idle message.

10. The signaling interactive communication method based on asymmetric encryption according to claim 9, It is characterized in that The main channel and sub-channel switches are turned on, and the receiving equipment detects the channel status including: When the main channel and sub-channel switches are turned on, it is determined whether the receiving device receives the heartbeat message sent by the sending device. If so, the channel status is determined to be normal, otherwise, the channel status is abnormal; When the channel status is normal and the number of action messages received continuously reaches the second quantity threshold and the action messages all pass the signature verification, the receiving device sends an opening signal to control the corresponding relay to act; In the case where the channel status is abnormal, when the receiving device fails to receive messages sent by the sending device within a continuous time threshold or continuously receives error messages of a first quantity threshold, the communication receiving channel of the receiving device is abnormal or the sending channel of the sending device is abnormal, and the receiving device issues an alarm prompt and sends an alarm message; When the channel status is abnormal, when the receiving device receives the alarm message sent by the sending device, the sending channel of the receiving device is abnormal or the communication receiving channel of the sending device is abnormal, and the receiving device issues an alarm prompt and sends a heartbeat message; After the receiving device continuously receives a first number threshold of correct heartbeat messages sent by the sending device, the channel is in a normal state.

11. A signaling interactive communication system based on asymmetric encryption using the signaling interactive communication method based on asymmetric encryption according to any one of claims 1 to 10, It is characterized in that include: The sending device is set at the upper control site, and is used to obtain the contact signal sent by the device in the site, convert the contact signal into a corresponding control instruction, and encrypt the control instruction based on asymmetric encryption signaling and send it to the receiving device set at the execution site; The receiving device is set at the lower-level execution site and is used to decrypt and execute the export after receiving the control instruction; Communication link, used to connect the sending device and the receiving device.

12. An electric power device comprising a processor and a storage medium; Features: The storage medium is used to store instructions; The processor is used to operate according to the instructions to execute the steps of the signaling interactive communication method based on asymmetric encryption according to any one of claims 1 to 10.

13. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the steps of the signaling interactive communication method based on asymmetric encryption described in any one of claims 1 to 10 are implemented.