Search

CN-121509556-B - Power grid communication protocol encoding and decoding method based on homomorphic mapping and multidimensional matrix

CN121509556BCN 121509556 BCN121509556 BCN 121509556BCN-121509556-B

Abstract

The invention discloses a power grid communication protocol encoding and decoding method based on homomorphic mapping and a multidimensional matrix, which comprises the steps of collecting protocol related parameters through a smart grid homomorphic signcryption data transmission platform, constructing an original data feature set, forming a three-dimensional original matrix through the multidimensional matrix mapping, calling a general sense integrated power semantic short packet communication model to complete semantic extraction and short packet packaging, realizing encryption and signcryption binding by means of the multidimensional matrix homomorphic signcryption encoding and decoding model, adapting transmission resource allocation based on a multi-time scale heterogeneous resource collaborative optimization algorithm, and restoring original data through inverse mapping decryption, signcryption verification and semantic analysis by a receiving end. According to the method, semantic adaptation, safe transmission and resource optimization coordination of encoding and decoding of a power grid communication protocol are realized by integrating multi-model core functions through step-by-step refinement semantic processing, signcryption encryption and resource scheduling processes, and the multi-equipment and multi-scene communication requirements of the intelligent power grid are adapted.

Inventors

  • LUO QIANG
  • WANG HAORAN
  • WU JIAN
  • GOU CHUNBO
  • ZHANG QIQI
  • ZENG SHUANG

Assignees

  • 成都太阳高科技有限责任公司

Dates

Publication Date
20260505
Application Date
20260112

Claims (5)

  1. 1. The power grid communication protocol encoding and decoding method based on homomorphic mapping and multidimensional matrix is characterized by comprising the following steps of: S1, acquiring frame structure parameters, data field identification parameters, transmission time sequence parameters and channel transmission characteristic parameters of a power grid communication protocol through a smart grid homomorphic signcryption data transmission platform, and establishing an original data characteristic set matched with a communication sense integrated power semantic short packet communication model; S2, mapping an original data feature set into row vectors and column vectors of the multi-dimensional matrix according to a communication protocol field type based on a dimension configuration rule of a multi-dimensional matrix homomorphic signcryption encoding and decoding model, and constructing a three-dimensional original matrix comprising signcryption dimensions, semantic analysis dimensions and transmission adaptation dimensions; s3, invoking a general sense integrated power semantic short packet communication model to extract semantic features and process short packet encapsulation on the three-dimensional original matrix, and generating a short packet matrix fusing communication perception information and power data semantics; s4, performing homomorphic encryption transformation and signcryption verification operation on the short packet matrix by adopting a multi-dimensional matrix homomorphic signcryption encoding and decoding model, and performing signcryption binding of encrypted data by homomorphic mapping operation of matrix elements; S5, carrying out transmission resource adaptation on the encrypted matrix based on a multi-time scale heterogeneous resource collaborative optimization algorithm, and adjusting matrix transmission priority and a fragmentation strategy according to channel resource states, calculation resource loads and storage resource capacities under different time scales; S6, the receiving end executes inverse mapping decryption and signcryption verification through a multi-dimensional matrix homomorphic signcryption encoding and decoding model, and restores original data fields and frame structure information of a power grid communication protocol by combining semantic analysis rules of a general sense integrated power semantic short packet communication model to complete the encoding and decoding whole flow; the expression of the general sense integrated power semantic short packet communication model is as follows: , Wherein, the For the power semantic short packet matrix, For the number of power grid communication protocol fields, For the semantic feature dimension of each field, Is the first The semantic weight coefficients of the individual fields, For the homomorphic mapping operator, Is the third dimension of the original matrix Line 1 The column elements are arranged in a row, For the homomorphic mapping parameter set, Is the first The perceptual adaptation coefficients of the individual semantic features, In order to sense the fusion operator in general, Is the first Line 1 The channel-aware data of the column elements, In order to perceive the set of parameters, For the matrix tensor product operation, For the time-scale adaptation function, Is the first The parameters of the time scale of the process, Is the first A plurality of channel resource parameters; the expression of the multi-dimensional matrix homomorphic signcryption coding and decoding model is as follows: , Wherein, the In order to sign-on-encrypt the matrix, As a function of the homomorphic encryption, For the number of signcryption dimensions, For the number of columns of the matrix, An operator is generated for the signcryption, As a parameter of the private key, As a function of the hash-up, As a set of parameters of the public key, In the case of a finite population of cycles, A meta-data is generated for the group, For the dimension-fusion operator, The function is configured for the dimension(s), As a parameter of the dimensions of the signcryption, For the semantic parsing of the dimensional parameters, Adapting dimension parameters for transmission; The expression of the multi-time scale heterogeneous resource collaborative optimization algorithm is as follows: , Wherein, the For an optimal resource allocation scheme, As a total number of time scales, For the number of heterogeneous resource types, Is the first The weight coefficient of the class resource, Is the first Under the individual time scales The available capacity of the class resource is referred to as, Is the first The short packet matrix size at the individual time scales, In order to transmit the number of tasks, Is the first Under the individual time scales The transmission load of the individual tasks is such that, For the resource co-operator to be a resource co-operator, Is the first The channel state parameters of the individual time scales, Is the first Calculating resource load parameters of the time scales; the transmission adaptation model expression of the homomorphic signcryption data transmission platform of the intelligent power grid is as follows: , Wherein, the For the transmission of the adaptation matrix, Is the first A matrix of parameters of the frame structure of the protocol, In order to transmit the adaptation function, As a set of parameters of the platform, As a parameter of the bandwidth it is, In order to be a frame synchronization parameter, In order to transmit the delay parameter(s), For the matrix addition operation, For the link monitoring operator, As a parameter of the state of the link, Is the error rate parameter; the frame structure reduction model expression of the encoding and decoding of the power grid communication protocol is as follows: , Wherein, the In order to restore the frame structure data after the restoration, For a homomorphic decryption function, As a function of the frame resolution, As a set of field parameters, A parameter is identified for the data field, For the field length parameter to be a field length parameter, As a parameter of the field offset, In order to receive the adaptation operator, In order for the channel parameters at the receiving end, Is a synchronization parameter.
  2. 2. The homomorphic mapping and multidimensional matrix based grid communication protocol codec method of claim 1, wherein S3 comprises the following sub-steps: S31, invoking a semantic feature extraction module of a general sense integrated power semantic short packet communication model, executing semantic relevance analysis on each element in a three-dimensional original matrix, and extracting semantic identification information comprising voltage, current and power data features through mapping and matching of matrix elements and a power data semantic library; S32, performing dimension compression processing on row vectors and column vectors on the three-dimensional original matrix based on the relevance of communication perception parameters and semantic identification information, reserving core feature dimensions adaptive to short packet transmission, and eliminating redundant dimension information; s33, rearranging the compressed matrix elements according to transmission time sequence requirements of a power grid communication protocol according to a general sense integrated short packet packaging rule to generate short packet data blocks with fixed lengths, wherein each short packet data block comprises a semantic check identifier and a perception adaptation field; S34, combining a plurality of short packet data blocks into a short packet matrix through a short packet fusion algorithm, wherein the row dimension of the short packet matrix corresponds to the short packet number, the column dimension corresponds to the data field in the short packet, and fusion packaging of semantic features and communication perception features is carried out.
  3. 3. The homomorphic mapping and multidimensional matrix based grid communication protocol codec method of claim 1, wherein S4 comprises the following sub-steps: S41, performing hash operation on each element of the short packet matrix based on the private key parameters of the multi-dimensional matrix homomorphic signcryption encoding and decoding model, generating element-level hash values and constructing a hash matrix; s42, carrying out signcryption processing on the hash matrix by adopting a private key, and embedding signcryption information into element bits of the short packet matrix through a homomorphic mapping algorithm to form a signcryption matrix; s43, invoking homomorphic encryption algorithm to execute encryption transformation on the signcryption matrix, mapping matrix elements into a specified limited cyclic group to generate an encryption matrix, and maintaining the dimensional structure and element association of the matrix in the encryption process; S44, adding a dimension identification and a signcryption verification identification to the encryption matrix, wherein the dimension identification is used for annotating signcryption dimension, semantic analysis dimension and transmission adaptation dimension information of the matrix, and the signcryption verification identification is used for signcryption validity verification of the receiving end.
  4. 4. The homomorphic mapping and multidimensional matrix based grid communication protocol codec method of claim 1, wherein S5 comprises the following sub-steps: s51, acquiring channel resource bandwidth, computing resource processing capacity and storage resource capacity parameters under different time scales through a resource perception module of a multi-time scale heterogeneous resource collaborative optimization algorithm, and establishing a resource state matrix; S52, constructing a resource allocation objective function based on the scale of the resource state matrix and the encryption matrix and the transmission priority requirement, wherein the objective function is guided by maximizing the resource utilization rate and the transmission efficiency; S53, solving an objective function by adopting an optimization algorithm to obtain the number of fragments of the encryption matrix, the transmission path and the transmission time schedule of each fragment, wherein the logic relevance and the integrity of matrix elements are maintained in the fragmentation process; S54, executing the segmentation processing on the encryption matrix according to the solving result, distributing corresponding transmission resources and storage resources for each segmentation, and simultaneously recording segmentation identification and resource distribution information for segmentation reorganization of the receiving end.
  5. 5. The homomorphic mapping and multidimensional matrix based power grid communication protocol codec method according to any one of claims 1-4, wherein the method is implemented by different units, comprising: The system comprises a power grid communication protocol parameter multi-dimensional acquisition unit, a general sense integrated power semantic short packet generation unit, a multi-dimensional matrix homomorphic signcryption encoding and decoding unit, a multi-time scale heterogeneous resource cooperative scheduling unit, an encryption data transmission adaptive unit and an original data frame structure restoration unit, wherein the output end of the power grid communication protocol parameter multi-dimensional acquisition unit is connected with the input end of the general sense integrated power semantic short packet generation unit and used for transmitting acquired protocol parameters to the short packet generation unit, the output end of the general sense integrated power semantic short packet generation unit is connected with the input end of the multi-dimensional matrix homomorphic signcryption encoding and decoding unit and used for transmitting a short packet matrix to the signcryption decoding unit, the output end of the multi-dimensional matrix homomorphic signcryption encoding and decoding unit is connected with the input end of the multi-time scale heterogeneous resource cooperative scheduling unit and used for transmitting the encryption matrix to the resource scheduling unit, the output end of the multi-time scale heterogeneous resource cooperative scheduling unit is connected with the input end of the encryption data transmission adaptive unit and used for providing a resource allocation scheme for the transmission adaptive unit, the output end of the encryption data transmission adaptive unit is connected with the input end of the original data frame structure restoration unit, and the data frame structure restoration unit is connected with the original data frame structure restoration unit and the data restoration unit is subjected to decryption of the data restoration, and the data restoration is subjected to the decryption of the homomorphic signcryption decoding unit.

Description

Power grid communication protocol encoding and decoding method based on homomorphic mapping and multidimensional matrix Technical Field The invention relates to the technical field of intelligent power grid communication, in particular to a power grid communication protocol encoding and decoding method based on homomorphic mapping and a multidimensional matrix. Background Along with the deep transformation of the smart power grid to digitalization and intellectualization, the data transmission quantity in the power grid communication scene is exponentially increased, and the communication protocol needs to meet the requirements of semantic integrity, transmission safety and resource suitability of the power data. The current power grid communication relates to access of mass heterogeneous devices, the frame structures of communication protocols and the formats of data fields of different devices are different, the transmission process faces the problems of channel fluctuation, non-uniform resource allocation and the like, and the traditional encoding and decoding method is difficult to consider the cooperative optimization of semantic analysis precision, encryption security and transmission efficiency. The fusion application of the technology such as the general sense integration and the homomorphic signcryption becomes the key direction for solving the encoding and decoding bottlenecks of the power grid communication protocol, and the construction of an integrated encoding and decoding framework suitable for the electric field scene is needed to realize the full-flow coordination of protocol parameter acquisition, semantic processing, encryption signcryption, resource scheduling and data restoration. On one hand, the traditional encoding and decoding method lacks deep adaptation of electric power semantic features in a sense-of-general fusion scene, a single-dimension data processing mode is adopted, communication sense information and electric power data semantics cannot be integrated effectively, so that semantics are lost or redundant information is too much in a short packet transmission process, accuracy and high efficiency of encoding and decoding are affected, on the other hand, the traditional encryption and encoding and decoding processes are mutually independent, a multi-dimension matrix-level signature binding mechanism is lacking, dynamic change of heterogeneous resources under a multi-time scale is not fully considered in resource scheduling, so that problems of resource conflict, increase of transmission delay and the like are easy to occur in an encryption data transmission process, double requirements of intelligent power grid on data transmission safety and instantaneity are difficult to meet, and deep synergy of encoding and decoding, encryption signature and resource optimization cannot be realized. Disclosure of Invention In order to overcome the defects and shortcomings in the prior art, the invention provides a power grid communication protocol encoding and decoding method based on homomorphic mapping and a multidimensional matrix. S1, acquiring frame structure parameters, data field identification parameters, transmission time sequence parameters and channel transmission characteristic parameters of a power grid communication protocol through a smart grid homomorphic signcryption data transmission platform, and establishing an original data characteristic set matched with a general sense integrated power semantic short packet communication model; S2, mapping an original data feature set into row vectors and column vectors of a multi-dimensional matrix according to a communication protocol field type based on a dimension configuration rule of the multi-dimensional matrix homomorphic signcryption coding and decoding model, constructing a three-dimensional original matrix comprising a signcryption dimension, a semantic analysis dimension and a transmission adaptation dimension, S3, calling a general integrated power semantic short packet communication model to conduct semantic feature extraction and short packet packaging processing on the three-dimensional original matrix to generate a short packet matrix fusing communication perception information and power data semantics, S4, performing homomorphic encryption transformation and signcryption verification operation on the short packet matrix by adopting the multi-dimensional matrix homomorphic signcryption coding and decoding model, performing signcryption binding of encrypted data by homomorphic mapping operation of matrix elements, S5, adjusting transmission priority and segmentation strategy of the signed encryption matrix based on a multi-time scale heterogeneous resource collaborative optimization algorithm, performing inverse decryption and verification operation on the multi-dimensional integrated power data homomorphic signcryption frame through the multi-dimensional matrix homomorphic signcryption coding and decoding model, S6