A quantum load management intelligent terminal
The quantum communication module is used to classify, encrypt and filter data in the special collection terminal. The technology of quantum key and Pauli-X gate and Pauli-Z gate is used to solve the security of data transmission between the special collection terminal and the main station. It solves the problem of sex, improves information security and saves key resources.
Patent Information
- Application Number
- CN202410796836.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-06-20
AI Technical Summary
There are security risks in the data transmission between the existing special-purpose acquisition terminal and the main station, which can be easily stolen or tampered with, and cannot effectively improve data security.
The quantum communication module is used to classify, encrypt and filter the data according to the importance level through the terminal interface board and control module. The quantum key unit and Pauli-X gate and Pauli-Z gate are used for key expansion, encryption and decryption to ensure that the data is Security during transmission.
Without changing the terminal interface board and control module hardware and communication protocol, data encryption between the custom collection terminal and the main station is achieved, which improves the security and privacy of data transmission, saves key resources, and reduces reduce the key distribution bandwidth load.
Smart Images

Figure CN118368064B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electricity consumption information collection, and in particular to a quantum load management intelligent terminal. Background Art
[0002] With the development of smart grids, energy storage devices, photovoltaic systems, smart power distribution equipment, etc. are widely connected to the power grid system, and more and more data collection services and management and control services are carried out based on dedicated transformer data collection terminals. Remote communication between dedicated transformer data collection terminals and master stations should be carried out through RJ-45 network ports or optical fiber communication interfaces or remote communication units (including 4G, 5G, 1.8G private networks, etc.). Due to the openness and diversity of the network, there are certain security risks in the transmission of data information. The transmitted data is at risk of being stolen or modified, especially the data of management and control services. Once maliciously tampered with, the consequences will be disastrous.
[0003] Chinese Patent Publication No. CN104597301A discloses a new type of dedicated transformer acquisition terminal, which expands the operating temperature range of the GPRS communication unit through real-time temperature control, and at the same time improves the reliability of the product and the safety factor of power personnel and equipment by resisting electrostatic interference through the strong anti-interference unit of the state quantity terminal. Chinese Patent Publication No. CN103874122A discloses a dedicated transformer terminal network signal acquisition system and acquisition method, which monitors the communication signal and expands a new communication reduction, so that the master station can grasp the operating status of the dedicated transformer terminal in time, reducing the workload of manual troubleshooting and fault handling time. The former solves the adaptability and safety of the dedicated transformer acquisition terminal, and the latter improves the convenience of the dedicated transformer acquisition terminal during use, but neither has proposed an effective method for how to improve the security of data transmitted between the dedicated transformer acquisition terminal and the master station. Summary of the invention
[0004] The technical problem to be solved by the present invention is how to improve the security of data transmitted between the dedicated transformer acquisition terminal and the main station.
[0005] The present invention solves the above technical problems through the following technical means: a quantum load management intelligent terminal, comprising a control module, a terminal interface board and a quantum communication module, wherein the control module is used to collect data from a user's electric meter and transmit it to the terminal interface board, and receive data from the terminal interface board and forward it to the user's electric meter; the terminal interface board is used to forward the received data; the quantum communication module is used to classify, store and encrypt the data received from the terminal interface board according to the importance level, and then filter the data according to the configuration information and send it to the main station; conversely, the quantum communication module filters, decrypts and stores the data received from the main station according to the configuration information, and transmits it to the terminal interface board, forwards it to the control module through the terminal interface board, and finally transmits it to the user's electric meter.
[0006] Furthermore, the quantum communication module includes a terminal interface data processing unit, a data storage unit, a data encryption and decryption unit, a data isolation unit and a communication unit connected in sequence, and also includes a quantum key unit and a configuration unit, the quantum key unit is connected to the data encryption and decryption unit, and the configuration unit is connected to the data isolation unit.
[0007] Furthermore, when the quantum communication module receives data from the terminal interface board and sends it to the main station, the data processing process of the quantum communication module is:
[0008] The terminal interface data processing unit classifies the data received from the terminal interface board according to the importance of the data, with the classification levels ranging from 1 to n, with level 1 being the most important;
[0009] The data storage unit stores n types of data with classification levels from 1 to n in the 1-n level storage area respectively according to the classification result of the terminal interface data processing unit;
[0010] The quantum key unit provides the data encryption and decryption unit with the quantum key required for encryption;
[0011] The data encryption and decryption unit sequentially obtains data from the 1-n level storage areas of the data storage unit and sets corresponding encryption methods for the data according to the classification level of the data to encrypt the data;
[0012] The configuration unit sends the configuration information to the data isolation unit;
[0013] The data isolation unit obtains the data of the data encryption and decryption unit and filters the data according to the configuration information;
[0014] The communication unit sends the filtered data to the master station.
[0015] Furthermore, the encryption process of the data encryption and decryption unit is:
[0016] For data with classification level n, the encryption method is set to 1:2 n-1 XOR encryption, adding an identifier to the frame header of the encrypted data; 1:2 n-1 XOR encryption means that if the data length of the n-level storage area is L, a quantum key of length L1 is obtained from the quantum key unit, L1=L / 2 n-1 First, the quantum key of length L1 is expanded to obtain a quantum key of length L, and then the data of the n-level storage area of length L is XOR-encrypted with the quantum key of length L obtained by key expansion, where L1 is a divisor of L. When L / 2 n-1 If it is not an integer, the data in the n-level storage area with a length of L is padded with zeros until it is equal to 2. n-1The division ends up being an integer.
[0017] Furthermore, the step of first performing key expansion on the quantum key of length L1 to obtain a quantum key of length L includes:
[0018] For data with classification levels 1 to n, the encryption depth is set to D, D-1, D-2, D-3...D-(n-1), where D is a positive integer; the Pauli-X gate and the Pauli-Z gate are connected in series, and a random number representing whether the Pauli-X gate is connected or not is selected. , select a random number that represents whether the Pauli-Z gate is turned on or not , ; Obtain two divisors L1 and L2 of L, extract a first key of length L1 and a second key of length L2 from the quantum key unit; input the first key into the Pauli-X gate and then pass through the Pauli-Z gate to complete an operation to obtain a first processing result, return the first processing result to the Pauli-X gate, perform a second processing, and continuously loop until the number of processing times reaches the corresponding encryption depth, and stop to obtain a first output result; input the second key into the Pauli-X gate and then pass through the Pauli-Z gate to complete an operation to obtain a first processing result, return the first processing result to the Pauli-X gate, perform a second processing, and continuously loop until the number of processing times reaches the corresponding encryption depth, and stop to obtain a second output result, and perform a direct product operation on the first output result and the second output result to obtain a quantum key of length L; wherein, the random number in each cycle is and random numbers Randomly adjust within its value range.
[0019] Furthermore, for data with a classification level of 2, the encryption method is set to 1:2 XOR encryption, and an identifier is added to the frame header of the encrypted data; 1:2 XOR encryption means that if the data length of the level 2 storage area is 16, a quantum key of length 8 is obtained from the quantum key unit, and the quantum key of length 8 is first expanded to obtain a quantum key of length 16, and then the data in the level 2 storage area of length 16 is XOR-encrypted with the quantum key of length 16 obtained by key expansion.
[0020] Furthermore, the step of obtaining a quantum key of length 8 from a quantum key unit and first performing key expansion on the quantum key of length 8 to obtain a quantum key of length 16 includes:
[0021] For data with a classification level of 2, the encryption depth is set to D-1; two divisors of 16, 8 and 2, are obtained, and a first key with a length of 8 and a second key with a length of 2 are extracted from the quantum key unit; the first key is input into the Pauli-X gate and then passed through the Pauli-Z gate to complete an operation to obtain a first processing result, the first processing result is returned to the Pauli-X gate, and a second processing is performed, and the execution is continuously looped until the number of processing reaches D-1 and the first output result is obtained; the second key is input into the Pauli-X gate and then passed through the Pauli-Z gate to complete an operation to obtain a first processing result, the first processing result is returned to the Pauli-X gate, and a second processing is performed, and the execution is continuously looped until the number of processing reaches D-1 and the second output result is obtained, and the first output result and the second output result are subjected to a direct product operation to obtain a quantum key of length 16.
[0022] Furthermore, the data isolation unit is also used for:
[0023] To obtain data from the data encryption and decryption unit, first filter the length, port, and protocol of the data packet, and then read the configuration information from the configuration unit. If the configuration information prohibits the sending of data of a certain classification level, the data with the frame header of the classification level will be discarded, and then the frame header of the remaining data will be judged. If the frame header is not within the specified range, the corresponding data will be discarded. Otherwise, the corresponding data will be sent to the communication unit.
[0024] Furthermore, when the quantum communication module receives data from the master station and sends it to the terminal interface board, the data processing process of the quantum communication module is:
[0025] The communication unit transmits the data received from the master station to the data isolation unit;
[0026] The configuration unit sends the configuration information to the data isolation unit;
[0027] The data isolation unit filters the data transmitted from the communication unit according to the configuration information;
[0028] The data encryption and decryption unit receives the data sent by the data isolation unit, identifies the data according to the identifier of the frame header of the data to obtain the classification level of the data, sets the corresponding decryption method for the data according to the classification level of the data, and decrypts the data;
[0029] The data storage unit receives the data from the data encryption and decryption unit and stores n types of data with classification levels from 1 to n in the 1-n level storage area in a one-to-one correspondence according to the classification level;
[0030] The terminal interface data processing unit sequentially obtains data from the 1st to nth level storage areas of the data storage unit and sends the data to the terminal interface board.
[0031] Furthermore, the decryption process of the data encryption and decryption unit is:
[0032] Extracting encryption information from the data sent by the data isolation unit, the encryption information includes the classification level of the data, the encryption method, and the quantum key obtained from the quantum key unit after key expansion; defining the quantum key obtained from the quantum key unit after key expansion as an encryption key;
[0033] For classification level n, the encryption method is 1:2 n-1 XOR encrypts the encrypted data, 1:2 n-1 XOR decryption, 1:2 n-1 XOR decryption means that for encrypted data of classification level n, the encryption key corresponding to the encrypted data is obtained, and the encryption key is XOR-ed with the encrypted data to complete the decryption.
[0034] The advantages of the present invention are:
[0035] (1) Aiming at the demand for data information encryption, the present invention adopts a quantum communication module without changing the hardware and communication protocol such as the terminal interface board and the control module, thereby realizing the encryption of communication data between the dedicated transformer acquisition terminal (i.e., the quantum load management intelligent terminal) and the master station, thereby improving the security of data transmitted between the dedicated transformer acquisition terminal and the master station, and achieving high information security.
[0036] (2) The present invention performs classified encryption according to the nature of the data transmitted between the dedicated transformer acquisition terminal and the master station. If the data in the level 1 storage area is encrypted with 1:1 XOR, the data in the level 2 storage area is encrypted with 1:2 XOR, and so on, the data in the level n storage area is encrypted with 1:2 XOR. n-1 XOR encryption requires a quantum key length of L1=L / 2 n-1 ,As the classification level increases, the importance of the data decreases, and the required quantum keys also decrease accordingly, thereby reducing the key consumption speed and the load of the key distribution bandwidth while ensuring the security of data information.
[0037] (3) In actual production applications, the data in the storage area is often very large. At this time, even if the proportional XOR encryption method is used, it still needs to consume more key resources. In order to further save key resources, the present invention sets the encryption depth according to the classification level, and then uses the encryption depth and operations such as Pauli-X gate and Pauli-Z gate to expand the quantum key of the quantum key unit to obtain the quantum key of the required length.
[0038] (4) The present invention physically isolates the data received and sent by the dedicated transformer acquisition terminal by adding a data isolation unit, thereby ensuring the privacy of the data transmission process. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A block diagram of a quantum load management intelligent terminal disclosed in an embodiment of the present invention;
[0040] Figure 2 The block diagram is a quantum communication module in a quantum load management intelligent terminal disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in combination with the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] like Figure 1 As shown, the present invention provides a quantum load management intelligent terminal, including a control module, a terminal interface board and a quantum communication module. The working process of the control module, the terminal interface board and the quantum communication module includes encrypting and transmitting the data of the user's electric meter to the main station. The main process is as follows:
[0043] The control module is used to collect data from the user's electricity meter and transmit it to the terminal interface board;
[0044] The terminal interface board is used to forward the received data;
[0045] The quantum communication module is used to classify, store and encrypt the data received from the terminal interface board according to the importance level, and then filter the data according to the configuration information and send it to the main station;
[0046] The working process of the control module, terminal interface board and quantum communication module also includes the process opposite to the above process. The data of the master station is decrypted and transmitted to the user's electricity meter. The main process is as follows:
[0047] The quantum communication module filters, decrypts and stores the data received from the main station according to the configuration information, and transmits it to the terminal interface board, which forwards it to the control module. The control module receives the data from the terminal interface board and finally transmits it to the user's electricity meter.
[0048] like Figure 2As shown, the quantum communication module includes a terminal interface data processing unit, a data storage unit, a data encryption and decryption unit, a data isolation unit and a communication unit connected in sequence, and also includes a quantum key unit and a configuration unit, wherein the quantum key unit is connected to the data encryption and decryption unit, and the configuration unit is connected to the data isolation unit. When the quantum communication module receives data from the terminal interface board and sends it to the master station, the data processing process of the quantum communication module is:
[0049] The terminal interface data processing unit is used to classify the data received from the terminal interface board according to the importance of the data, and the classification levels are from 1 to n, and level 1 is the most important level; the data received by the terminal interface data processing unit includes collected data, parameter setting and query data, control data, event record and reporting data, terminal maintenance data, etc. The collected data includes electric energy meter data, water meter data, gas meter data, heat meter data, state quantity data, pulse quantity data and AC analog quantity data; the parameter setting and query data include clock call and synchronization data, TA ratio, TV ratio, electric energy meter constant, limit parameters, power control parameters, prepayment control parameters, terminal parameters and meter reading parameters; the control data includes power setting control data, electric energy control data, power protection and rejection data, remote control data, power load flexible control data and remote closing control data; the terminal maintenance data includes self-test and self-recovery data and terminal initialization data; the classification level of the control data, parameter setting and query data is set to level 1, the classification level of the terminal maintenance data is set to level 2, and the remaining data is set in level according to actual needs.
[0050] The data storage unit stores n types of data with classification levels from 1 to n in the 1-n level storage area respectively according to the classification result of the terminal interface data processing unit;
[0051] The quantum key unit provides the data encryption and decryption unit with the quantum key required for encryption;
[0052] The data encryption and decryption unit sequentially obtains data from the 1-n level storage areas of the data storage unit and sets corresponding encryption methods for the data according to the classification level of the data to encrypt the data; the encryption process of the data encryption and decryption unit is as follows:
[0053] If the data in the level 1 storage area is encrypted with 1:1 XOR, the data in the level 2 storage area is encrypted with 1:2 XOR, the data in the level 3 storage area is encrypted with 1:4 XOR, and so on, the data in the level n storage area is encrypted with 1:2 n-1 XOR encryption. See Table 1 below for details.
[0054] Table 1 Encryption method classification table
[0055]
[0056] 1:1 XOR encryption means that if the data length of the level 1 storage area is 8, a quantum key of equal length is obtained from the quantum key unit, that is, a quantum key of length 8, and then the data in the level 1 storage area is XOR-encrypted with the quantum key. After processing, the frame header of the flexible control data of the power load is added with a 2-byte identifier of 0xFF01, the frame header of the remote closing control data is added with a 2-byte identifier of 0xFF02, the frame header of the remote control data is added with a 2-byte identifier of 0xFF03, the frame header of the power protection and elimination data is added with a 2-byte identifier of 0xFF04, the frame header of the electric energy control data is added with a 2-byte identifier of 0xFF05, and the frame header of the power setting control data is added with a 2-byte identifier of 0xFF06. The frame header of the control data is added with a 2-byte identifier of 0xFF06; the frame header of the meter reading parameter data is added with a 2-byte identifier of 0xFF07, the frame header of the terminal parameter data is added with a 2-byte identifier of 0xFF08, the frame header of the prepayment control parameter data is added with a 2-byte identifier of 0xFF09, the frame header of the power control parameter data is added with a 2-byte identifier of 0xFF0A, the frame header of the limit parameter data is added with a 2-byte identifier of 0xFF0B, the frame header of the TA ratio, TV ratio and electric energy meter constant data is added with a 2-byte identifier of 0xFF0C, and the frame header of the clock call and synchronization data is added with a 2-byte identifier of 0xFF0D.
[0057] 1:2XOR encryption means that if the data length of the level 2 storage area is 16, a quantum key of length 8 (8 is obtained by dividing 16 by 2) is obtained from the quantum key unit, and the quantum key of length 8 is first expanded to obtain a quantum key of length 16. Then, the data of the level 2 storage area of length 16 is XOR-encrypted with the quantum key of length 16 obtained by key expansion. After processing, the 2-byte identifier 0xFE01 is added to the frame header of the self-test and self-recovery data, and the 2-byte identifier 0xFE02 is added to the frame header of the terminal initialization data.
[0058] 1:4XOR encryption means that if the data length of the level 3 storage area is 32, a quantum key of length 8 (8 is obtained by dividing 32 by 4) is obtained from the quantum key unit, and the quantum key of length 8 is first expanded to obtain a quantum key of length 32, and then the data of the level 3 storage area of length 32 is XOR-encrypted with the quantum key of length 32 obtained by key expansion. After processing, the frame header of the electric energy meter data is added with a 2-byte identifier 0xFD01, the frame header of the water meter data, the gas meter data, and the heat meter data is added with a 2-byte identifier 0xFD02, the frame header of the state quantity data is added with a 2-byte identifier 0xFD03, the frame header of the event record and report data is added with a 2-byte identifier 0xFD04, and so on and so forth for encryption.
[0059] For data with classification level n, the encryption method is set to 1:2 n-1 XOR encryption, adding an identifier to the frame header of the encrypted data; 1:2 n-1 XOR encryption means that if the data length of the n-level storage area is L, a quantum key of length L1 is obtained from the quantum key unit, L1=L / 2 n-1 First, the quantum key of length L1 is expanded to obtain a quantum key of length L, and then the data of the n-level storage area of length L is XOR-encrypted with the quantum key of length L obtained by key expansion, where L1 is a divisor of L. When L / 2 n-1 If it is not an integer, the data in the n-level storage area with a length of L is padded with zeros until it is equal to 2. n-1 The division ends up being an integer.
[0060] In the above process, for high-importance data, 1:1 encryption is directly used to ensure the encryption level; for low-importance data, 1:n encryption is used, the importance of the data is reduced, so the number of quantum keys required is also reduced, which can save key usage resources and greatly reduce the bandwidth occupied by key transmission.
[0061] In actual production applications, the data in the storage area is often very large. At this time, even if the above-mentioned proportional encryption method is used, it still needs to consume more key resources. In order to further save key resources, the classified data level encryption table in the data encryption and decryption unit of the present invention also includes encryption depth, see Table 2 below:
[0062] Table 2 Encryption depth classification table
[0063]
[0064] First, the data encryption and decryption unit obtains the length of the data to be encrypted, the classification data level, the encryption method, and the encryption depth. For example, for the data with a length of 16 in the level 2 storage area, the data encryption and decryption unit obtains the encryption method of 1:2 and the encryption depth of D-1 from the classification data level encryption table based on the classification data level 2. Then, the data encryption and decryption unit obtains a quantum key of length 8 from the quantum key unit according to the encryption method. The quantum key unit uses an expansion algorithm to expand the quantum key of length 16, thereby further saving key resources. The process of the expansion algorithm in the quantum key unit is as follows:
[0065] For data with classification levels 1 to n, the encryption depth is set to D, D-1, D-2, D-3...D-(n-1) respectively, where D is a positive integer. When D is equal to n, the encryption depth of data with classification level n is 1.
[0066] Connect the Pauli-X gate and the Pauli-Z gate in series, and select a random number that represents whether the Pauli-X gate is turned on or off. , select a random number that represents whether the Pauli-Z gate is turned on or not , , where 0 means disconnected, meaning that no operation is performed when the key enters the gate; 1 means connected, meaning that the gate operation is performed once when the key enters the gate; obtain two divisors L1 and L2 of L, and extract a first key of length L1 and a second key of length L2 from the quantum key unit; input the first key into the Pauli-X gate and then pass through the Pauli-Z gate to complete an operation to obtain the first processing result, return the first processing result to the Pauli-X gate, perform the second processing, and continuously loop until the number of processing times reaches the corresponding encryption depth, and stop to obtain the first output result; input the second key into the Pauli-X gate and then pass through the Pauli-Z gate to complete an operation to obtain the first processing result, return the first processing result to the Pauli-X gate, perform the second processing, and continuously loop until the number of processing times reaches the corresponding encryption depth, and stop to obtain the second output result, and perform a direct product operation on the first output result and the second output result to obtain a quantum key of length L; where the random number in each cycle and random numbers Randomly adjust within its value range, , , X represents the Pauli-X gate operation, and Z represents the Pauli-Z gate operation. The encryption depth is the number of operation rounds, corresponding to the importance of the data.
[0067] For example, for data with a classification level of 2 and a length of 16 in the level 2 storage area, two divisors of 16, 8 (8 is obtained by dividing 16 by 2) and 2, are obtained, and a first key with a length of 8 and a second key with a length of 2 are extracted from the quantum key unit; the first key is input into the Pauli-X gate and then passed through the Pauli-Z gate to complete an operation to obtain a first processing result, the first processing result is returned to the Pauli-X gate, and a second processing is performed, and the execution is continuously looped until the number of processing reaches D-1 and the first output result is obtained; the second key is input into the Pauli-X gate and then passed through the Pauli-Z gate to complete an operation to obtain a first processing result, the first processing result is returned to the Pauli-X gate, and a second processing is performed, and the execution is continuously looped until the number of processing reaches D-1 and the second output result is obtained, and a direct product operation is performed on the first output result and the second output result to obtain a quantum key of length 16. After performing a direct product operation on any two quantum states of dimensions m and n, a direct product state of dimension mn can be obtained as the expanded quantum key. If it needs to be expanded by 2 times, two quantum bit strings of length 4 are selected (total length 8). After performing a direct product on the two strings of quantum bits, a string of quantum bits of length 4×4=16 is obtained, which is 2 times the original total length of 8. Therefore, for a first key of length 8 and a second key of length 16, a string of 128-bit quantum keys can be obtained after the direct product of the two.
[0068] After the above encryption process is completed, the configuration unit sends the configuration information to the data isolation unit;
[0069] The data isolation unit obtains the data of the data encryption and decryption unit and filters the data according to the configuration information; the specific process is: the data isolation unit obtains the data of the data encryption and decryption unit, first filters the length, port, and protocol of the data packet, and the filtering method is to compare the IP address, port number, data length, and protocol type with the preset data. The purpose of filtering is to discard the intrusion and illegal data outside the main station in the future. The filtering method is a prior art and is not described here. Then read the configuration information from the configuration unit. If the configuration information sets a prohibition on the transmission of data of a certain classification level (that is, let the transmitted data be compared with the prohibited data in the configuration information. If it meets the requirements, it is prohibited to pass. The prohibited data in the configuration information is listed in the form of a list, which is called a blacklist), then the data with the frame header of the classification level is discarded, and the frame header of the remaining data is further judged. If it is not 0xFF01~0xFF0D, 0xFE01~0xFE02, 0xFD01~0xFD04, the corresponding data is discarded, otherwise, the corresponding data is sent to the communication unit. The sent data is judged by the data frame header. If the data frame header is 0xFF01~0xFF0D, 0xFE01~0xFE02, or 0xFD01~0xFD04, it is passed. The passed data frame headers are listed in a list, called a whitelist. In other words, the data isolation unit uses a two-step isolation and filtering method to screen the data.
[0070] Finally, the communication unit sends the filtered data to the main station. The communication unit can be wired Ethernet communication, wireless communication (4G, 5G, Bluetooth, etc.).
[0071] When the quantum communication module receives data from the master station and sends it to the terminal interface board, the data processing process of the quantum communication module is the reverse process of the data processing process when the quantum communication module receives data from the terminal interface board and sends it to the master station. The following is a brief introduction to the data processing process of the quantum communication module when the quantum communication module receives data from the master station and sends it to the terminal interface board:
[0072] The communication unit transmits the data received from the master station to the data isolation unit;
[0073] The configuration unit sends the configuration information to the data isolation unit;
[0074] The data isolation unit filters the data transmitted from the communication unit according to the configuration information; if the configuration information sets a prohibition on receiving data of a certain importance level, the data with the data frame header of this type will be discarded, and the received data frame header will be further judged. If it is not 0xFF01~0xFF0D, 0xFE01~0xFE02, 0xFD01~0xFD04, the received data will be discarded. Otherwise, the data will be sent to the data encryption and decryption unit.
[0075] The data encryption and decryption unit receives the data sent by the data isolation unit, and identifies the data according to the identifier of the data frame header to obtain the classification level of the data, sets the corresponding decryption method for the data according to the classification level of the data, and decrypts the data; the classification level ranges from 1 to n, 1 is the most important level; the specific process is as follows:
[0076] The data transmitted by the data isolation unit is checked for frame headers, and the data with frame headers of 0xFF01~0xFF0D are identified in turn as electric load flexible control data, remote closing control data, remote control data, power protection and rejection data, electric energy control data, power setting control data, meter reading parameter data, terminal parameter data, prepaid control parameter data, power control parameter data, limit parameter data, TA ratio, TV ratio and electric energy meter constant data, clock call and synchronization data, and these data are decrypted with the key in the quantum key unit in a 1:1 XOR manner, and are classified as level 1 importance data with a classification level of 1; the data with frame headers of 0x0xFE01~0xFE02 are identified as self-test and self-recovery data and terminal initialization data in turn, and these data are decrypted with the key in the quantum key unit in a 1:2 XOR manner, and are classified as level 2 importance data with a classification level of 2; the data with frame headers of 0xFD01 The data of ~0xFD04 are identified as electric energy meter data, water meter data, gas meter data, heat meter data, state quantity data, event record and report data in turn, and these data are decrypted by 1:4 XOR using the key in the quantum key unit, and divided into 3 levels of importance data, with a classification level of 3, and so on, and the classification level and decryption method are set for each transmitted data. The specific decryption process is:
[0077] Extract the encryption information from the data sent by the data isolation unit. The encryption information includes the classification level of the data, the encryption method, and the quantum key obtained from the quantum key unit after key expansion; the quantum key obtained from the quantum key unit after key expansion is defined as the encryption key; for the classification level of n, the encryption method is 1:2 n-1 XOR encrypts the encrypted data, 1:2 n-1 XOR decryption, 1:2 n-1XOR decryption means that for encrypted data of classification level n, the encryption key corresponding to the encrypted data is obtained, and the encryption key is XOR-ed with the encrypted data to complete the decryption.
[0078] The data storage unit receives the data from the data encryption and decryption unit and stores n types of data with classification levels from 1 to n in the 1-n level storage area in a one-to-one correspondence according to the classification level;
[0079] The terminal interface data processing unit sequentially obtains data from the 1st to nth level storage areas of the data storage unit and sends the data to the terminal interface board.
[0080] It should be noted that in actual application of the present invention, the data of the user's meter is encrypted and transmitted to the main station, and the data of the main station is decrypted and transmitted to the user's meter. The data involved in these two processes are different, but the data encryption method and decryption method can both adopt the 1:2 ratio described above. n-1 XOR encryption and 1:2 n-1 XOR decryption method. For example, the master station receives the data encrypted by the user's meter through the control module, terminal interface board and quantum communication module, and it converts the encrypted data into XOR decryption method. n-1 XOR decryption method After decryption, the data is processed according to the power grid operation specifications based on the decrypted data content. For example, according to the decrypted content, it is known that a certain user's meter needs to be shut down. At this time, the master station will encrypt the corresponding instruction data in the master station. At this time, the encryption method in the master station also uses the 1:2 mentioned above. n -1 XOR encryption method, after encryption is completed, it is sent to the quantum communication module. The quantum communication module will receive the data from the master station, filter, decrypt and store the data according to the configuration information, send the data to the terminal interface board, forward it to the control module through the terminal interface board, and pass the information to the user meter through the control module, and finally realize the power outage operation of a certain user meter. That is, the data in the two processes of user meter-master station and master station-user meter are different, but the encryption method and decryption method can adopt the method recorded above, of course, other encryption and decryption methods can also be used.
[0081] Through the above technical scheme, the present invention adopts a quantum communication module to meet the needs of data information encryption without changing the hardware and communication protocol such as the terminal interface board and the control module, thereby realizing the encryption of communication data between the special transformer acquisition terminal (that is, the quantum load management intelligent terminal) and the main station, thereby improving the security of data transmitted between the special transformer acquisition terminal and the main station, and having high information security.
[0082] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A quantum load management intelligent terminal, characterized in that: It includes a control module, a terminal interface board and a quantum communication module. The control module is used to collect data from the user's electric meter and transmit it to the terminal interface board, and receive data from the terminal interface board and forward it to the user's electric meter. The terminal interface board is used to forward the received data. The quantum communication module is used to classify, store and encrypt the data received from the terminal interface board according to the importance level, and then filter the data according to the configuration information and send it to the main station. Conversely, the quantum communication module filters, decrypts and stores the data received from the main station according to the configuration information, and transmits it to the terminal interface board, forwards it to the control module through the terminal interface board, and finally transmits it to the user's electric meter. When the quantum communication module receives data from the terminal interface board and sends it to the main station, the data processing process is as follows: the data received from the terminal interface board is classified according to the importance of the data, and the classification levels range from 1 to n, with level 1 being the most important; according to the above classification results, the n types of data with classification levels from 1 to n are stored one by one in the 1~n level storage area; Obtain data from level 1 to level n storage areas in sequence and set corresponding encryption methods for the data according to the classification level of the data to encrypt it; filter the encrypted data according to the configuration information; and send the filtered data to the main station.
2. A quantum load management intelligent terminal according to claim 1, characterized in that: The quantum communication module includes a terminal interface data processing unit, a data storage unit, a data encryption and decryption unit, a data isolation unit and a communication unit connected in sequence, and also includes a quantum key unit and a configuration unit. The quantum key unit is connected to the data encryption and decryption unit, and the configuration unit is connected to the data isolation unit.
3. A quantum load management intelligent terminal according to claim 2, characterized in that: When the quantum communication module receives data from the terminal interface board and sends it to the master station, the data processing process of the quantum communication module is as follows: The terminal interface data processing unit classifies the data received from the terminal interface board according to the importance of the data, with the classification levels ranging from 1 to n, with level 1 being the most important; The data storage unit stores n types of data with classification levels from 1 to n in the 1-n level storage area respectively according to the classification result of the terminal interface data processing unit; The quantum key unit provides the data encryption and decryption unit with the quantum key required for encryption; The data encryption and decryption unit sequentially obtains data from the 1-n level storage areas of the data storage unit and sets corresponding encryption methods for the data according to the classification level of the data to encrypt the data; The configuration unit sends the configuration information to the data isolation unit; The data isolation unit obtains the data of the data encryption and decryption unit and filters the data according to the configuration information; The communication unit sends the filtered data to the master station.
4. A quantum load management intelligent terminal according to claim 3, characterized in that: The encryption process of the data encryption and decryption unit is: For data with classification level n, the encryption method is set to 1:2 n-1 XOR encryption, adding an identifier to the frame header of the encrypted data; 1:2 n-1 XOR encryption means that if the data length of the n-level storage area is L, a quantum key of length L1 is obtained from the quantum key unit, L1=L / 2 n-1 First, the quantum key of length L1 is expanded to obtain a quantum key of length L, and then the data of the n-level storage area of length L is XOR-encrypted with the quantum key of length L obtained by key expansion, where L1 is a divisor of L. When L / 2 n-1 If it is not an integer, the data in the n-level storage area with a length of L is padded with zeros until it is equal to 2. n-1 The division ends up being an integer.
5. A quantum load management intelligent terminal according to claim 4, characterized in that: The step of first performing key expansion on a quantum key of length L1 to obtain a quantum key of length L comprises: For data with classification levels 1 to n, the encryption depth is set to D, D-1, D-2, D-3...D-(n-1), where D is a positive integer; the Pauli-X gate and the Pauli-Z gate are connected in series, and a random number representing whether the Pauli-X gate is connected or not is selected. , select a random number that represents whether the Pauli-Z gate is turned on or not , ; Obtain two divisors L1 and L2 of L, extract a first key of length L1 and a second key of length L2 from the quantum key unit; input the first key into the Pauli-X gate and then pass through the Pauli-Z gate to complete an operation to obtain a first processing result, return the first processing result to the Pauli-X gate, perform a second processing, and continuously loop until the number of processing times reaches the corresponding encryption depth, and stop to obtain a first output result; input the second key into the Pauli-X gate and then pass through the Pauli-Z gate to complete an operation to obtain a first processing result, return the first processing result to the Pauli-X gate, perform a second processing, and continuously loop until the number of processing times reaches the corresponding encryption depth, and stop to obtain a second output result, and perform a direct product operation on the first output result and the second output result to obtain a quantum key of length L; wherein, the random number in each cycle is and random numbers Randomly adjust within its value range.
6. A quantum load management intelligent terminal according to claim 5, characterized in that: For data with classification level 2, the encryption method is set to 1:2XOR encryption, and an identifier is added to the frame header of the encrypted data; 1:2 XOR encryption means that if the data length of the level 2 storage area is 16, a quantum key of length 8 is obtained from the quantum key unit, the quantum key of length 8 is first expanded to obtain a quantum key of length 16, and then the data of the level 2 storage area of length 16 is XOR-encrypted with the quantum key of length 16 obtained by key expansion.
7. A quantum load management intelligent terminal according to claim 6, characterized in that: The method of obtaining a quantum key of length 8 from a quantum key unit and first performing key expansion on the quantum key of length 8 to obtain a quantum key of length 16 includes: For data with a classification level of 2, the encryption depth is set to D-1; two divisors of 16, 8 and 2, are obtained, and a first key with a length of 8 and a second key with a length of 2 are extracted from the quantum key unit; the first key is input into the Pauli-X gate and then passed through the Pauli-Z gate to complete an operation to obtain a first processing result, the first processing result is returned to the Pauli-X gate, and a second processing is performed, and the execution is continuously looped until the number of processing reaches D-1 and the first output result is obtained; the second key is input into the Pauli-X gate and then passed through the Pauli-Z gate to complete an operation to obtain a first processing result, the first processing result is returned to the Pauli-X gate, and a second processing is performed, and the execution is continuously looped until the number of processing reaches D-1 and the second output result is obtained, and the first output result and the second output result are subjected to a direct product operation to obtain a quantum key of length 16.
8. A quantum load management intelligent terminal according to claim 4, characterized in that: The data isolation unit is also used for: To obtain data from the data encryption and decryption unit, first filter the length, port, and protocol of the data packet, and then read the configuration information from the configuration unit. If the configuration information prohibits the sending of data of a certain classification level, the data with the frame header of the classification level will be discarded, and then the frame header of the remaining data will be judged. If the frame header is not within the specified range, the corresponding data will be discarded. Otherwise, the corresponding data will be sent to the communication unit.
9. A quantum load management intelligent terminal according to claim 4, characterized in that: When the quantum communication module receives data from the master station and sends it to the terminal interface board, the data processing process of the quantum communication module is as follows: The communication unit transmits the data received from the master station to the data isolation unit; The configuration unit sends the configuration information to the data isolation unit; The data isolation unit filters the data transmitted from the communication unit according to the configuration information; The data encryption and decryption unit receives the data sent by the data isolation unit, identifies the data according to the identifier of the frame header of the data to obtain the classification level of the data, sets the corresponding decryption method for the data according to the classification level of the data, and decrypts the data; The data storage unit receives the data from the data encryption and decryption unit and stores n types of data with classification levels from 1 to n in the 1-n level storage area in a one-to-one correspondence according to the classification level; The terminal interface data processing unit sequentially obtains data from the 1st to nth level storage areas of the data storage unit and sends the data to the terminal interface board.
10. A quantum load management intelligent terminal according to claim 9, characterized in that: The decryption process of the data encryption and decryption unit is: Extracting the encryption information from the data sent by the data isolation unit, the encryption information includes the classification level of the data, the encryption method, and the quantum key obtained from the quantum key unit after key expansion; The quantum key obtained from the quantum key unit after key expansion is defined as an encryption key; For classification level n, the encryption method is 1:2 n-1 XOR encrypts the encrypted data, 1:2 n-1 XOR decryption, 1:2 n-1 XOR decryption means that for encrypted data of classification level n, the encryption key corresponding to the encrypted data is obtained, and the encryption key is XOR-ed with the encrypted data to complete the decryption.
