5G protocol efficient conversion method and system for heterogeneous terminal of power distribution network

By constructing a communication protocol mapping library and pre-compiled conversion scripts, combined with priority queues and distributed communication channels, the problem of protocol heterogeneity of distribution network terminal equipment was solved, achieving efficient data conversion and real-time command processing, and improving the communication reliability and efficiency of the system.

CN121924192APending Publication Date: 2026-04-24SHANXI ELECTRIC POWER CO POWER COMM CENT
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202610079120.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-01-21
Publication Date
2026-04-24

AI Technical Summary

Technical Problem

In existing technologies, the heterogeneity of protocols in distribution network terminal equipment leads to complex data parsing and conversion processes, and the lack of business priority scheduling makes it impossible to meet the millisecond-level response requirements of high real-time commands.

Method used

A communication protocol mapping library is built. By using pre-compiled conversion scripts and priority queues, high real-time instructions are identified and transmission is optimized using distributed communication channels, achieving millisecond-level conversion of critical instructions.

Benefits of technology

It improves the real-time performance and reliability of heterogeneous terminal communication systems in power distribution networks, meets the response requirements of power distribution automation scenarios, reduces the complexity of multi-protocol adaptation, and enhances system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121924192A_ABST
    Figure CN121924192A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of 5G protocol conversion, and discloses a 5G protocol efficient conversion method and system for a heterogeneous terminal of a power distribution network, and the method comprises the steps: constructing a communication protocol mapping library which stores analysis rules and field mapping relationships between various source protocols and target standard protocols; receiving an original data message of the heterogeneous terminal, matching a corresponding analysis rule according to a protocol identifier, and extracting a data field and a service instruction type; identifying a high-real-time instruction and correspondingly transferring the high-real-time instruction into a high-priority queue; calling a pre-compiled protocol conversion script, and directly converting the pre-compiled protocol conversion script into a data frame in a standard protocol format according to a field mapping relation; data frames are distributed through a distributed communication channel, and a channel allocation strategy is dynamically adjusted according to load pressure to optimize a transmission path. According to the method, millisecond-level key instruction conversion is realized through the pre-compilation script and the priority queue, and the adaptability of the system to heterogeneous protocols and the overall communication reliability are improved by utilizing structured protocol mapping and dynamic transmission optimization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of 5G protocol conversion technology, and in particular to a method and system for efficient 5G protocol conversion for heterogeneous terminals in power distribution networks. Background Technology

[0002] In the current stage of intelligent transformation of the power system, the distribution network, as a key link connecting the power generation and transmission network with end users, directly affects the reliability of power supply and service quality. The introduction of 5G communication technology provides distribution network terminal equipment with high bandwidth and low latency communication conditions, but the heterogeneity of communication protocols of terminal equipment has become prominent. Equipment from different manufacturers and at different times often adopts IEC 60870-5-101 / 104, DNP3.0, Modbus, and various proprietary protocols, resulting in multiple incompatible data formats within the system. This diversity of protocols complicates the data parsing and conversion process, becoming a major obstacle restricting the overall communication efficiency of the distribution network.

[0003] To address the issue of protocol heterogeneity, existing technologies typically employ protocol conversion gateways or software middleware to unify data formats. The technical approach involves pre-configuring protocol parsing rules and dynamically performing format recognition, field extraction, and reassembly operations upon receiving data. However, this method has two significant drawbacks: first, the protocol conversion process is based on runtime parsing, requiring layer-by-layer matching of field mapping relationships, leading to a significant increase in processing latency as protocol complexity increases; second, it lacks a business priority differentiation mechanism, using the same processing queue for high-real-time commands such as remote control and remote adjustment as for ordinary monitoring data. Under high system load, critical commands may experience transmission delays due to queuing, failing to meet the millisecond-level response requirements of power distribution automation scenarios. Summary of the Invention

[0004] Therefore, the technical problem to be solved by the present invention is to overcome the high real-time instruction processing delay caused by the runtime parsing overhead of the protocol conversion process and the lack of service priority scheduling in the prior art. The invention provides a method for efficient 5G protocol conversion for heterogeneous terminals in power distribution networks. It can achieve millisecond-level key instruction conversion through pre-compiled conversion scripts and priority queues, and improve the system's adaptability to heterogeneous protocols and overall communication reliability by means of structured protocol mapping and dynamic transmission optimization.

[0005] To address the aforementioned technical problems, this invention provides a method for efficient 5G protocol conversion for heterogeneous terminals in power distribution networks, comprising the following steps: Build and maintain a communication protocol mapping library, which stores the parsing rules and field mapping relationships between various source protocols and target standard protocols used by different heterogeneous terminal devices in the power distribution network; Receive raw data packets from heterogeneous terminal devices and match the corresponding parsing rules from the communication protocol mapping library according to the protocol identifier of the raw data packets; The original data message is parsed according to the matching parsing rules to extract the data fields and business instruction types. Identify whether the business instruction type is a high real-time instruction; if so, transfer the data field of the business instruction to the high-priority processing queue; otherwise, transfer it to the normal processing queue. For instructions in the high-priority processing queue, the pre-compiled protocol conversion script is invoked, and the extracted data fields are directly converted into data frames that conform to the target standard protocol format based on the field mapping relationship. For the converted data frames, the data is distributed and transmitted through a distributed communication channel. The load pressure during the transmission process is detected, the channel allocation strategy is dynamically adjusted, and the optimization result of the transmission path is determined.

[0006] In one embodiment of the present invention, constructing and maintaining a communication protocol mapping library includes the following steps: Based on the model and version information of the distribution network terminal equipment, the protocol frame structure definition is extracted from the technical specification document provided by the equipment manufacturer to obtain the original description of the protocol fields; The original description is parsed and transformed according to a unified structured template to determine the byte offset, data type, length and semantic meaning of each field, resulting in a standardized list of field attributes. Based on a standardized list of field attributes, a one-to-one, one-to-many, or many-to-one mapping relationship between source protocol fields and target standard protocol fields is established through manual configuration or automated comparison. The mapping relationship is then stored in a structured database to form a protocol mapping library. Establish a periodic protocol update monitoring mechanism. When a new terminal device is detected to be connected or the protocol version of an existing device is upgraded, the entry review and update process of the protocol mapping library is triggered.

[0007] In one embodiment of the present invention, matching the corresponding parsing rule from the communication protocol mapping library based on the protocol identifier of the original data packet includes the following steps: A protocol preprocessing probe is set up at the access network element of the 5G communication network to receive and buffer the raw binary data stream sent by terminal devices with different physical connections; The original binary data stream is initially segmented to identify independent data packet boundaries, and a sequence of identifier bytes of a preset length is extracted from the fixed starting position of each data packet. The identifier byte sequence is compared one by one with the pre-registered protocol feature signatures in the protocol mapping library, and the matching is based on the similarity. For a successfully matched message, the corresponding parsing rule configuration set is locked from the protocol mapping library, and after binding the parsing rule configuration set with the original data message, it is forwarded to the subsequent parsing module.

[0008] In one embodiment of the present invention, a processing step for data packets that cannot be matched with the parsing rules is also included: Establish an unknown protocol isolation buffer to temporarily store data packets whose protocol identifiers fail to match or have low similarity. Extract message samples from the unknown protocol isolation buffer, calculate the statistical characteristics of its message length, byte distribution entropy, and fixed-position byte value sequence, and obtain the protocol feature vector; Cluster analysis is performed on the protocol feature vector and the historical learned feature vectors of known protocols in the protocol mapping library. If it is successfully assigned to an existing protocol cluster, its identifier is updated to the identifier of the protocol cluster, and the feature vector is recorded as a new variant of the protocol. If it cannot be classified into any existing protocol cluster, a new protocol discovery alarm is generated, and the message sample and related characteristics are submitted to the protocol mapping library management terminal for manual intervention and analysis.

[0009] In one embodiment of the present invention, the original data message is parsed according to the matching parsing rules to extract the data fields and business instruction types, including the following steps: Based on the frame structure template defined in the parsing rules, determine the total length of the data packet, the frame header length, the start position of the data field, and the position of the check field; Starting from the beginning of the data field, the byte data is read and interpreted field by field according to the byte order and data type specified in the parsing rules, while the integrity of the data is verified according to the verification rules. Based on the interpreted control fields or specific function codes, query the predefined business instruction mapping table to determine the business operation type represented by the data message; The successfully parsed data field values, their corresponding field semantic tags, and the determined business instruction types are encapsulated into a structured parsing result object.

[0010] In one embodiment of the present invention, identifying whether a service instruction type is a high real-time instruction includes the following steps: Establish and maintain a high real-time instruction feature library, which includes standard instruction codes, function code combinations, and business scenario tags that require millisecond-level response in power distribution automation scenarios; The parsed business instruction type or function code is compared with the high real-time instruction feature library in real time to determine whether it is a high real-time instruction.

[0011] In one embodiment of the present invention, a pre-compiled protocol conversion script is invoked to directly convert the extracted data fields into data frames conforming to the target standard protocol format based on the field mapping relationship, including the following steps: During the system initialization phase, based on the field mapping relationships stored in the protocol mapping library, a highly optimized, executable target conversion code snippet, i.e., a pre-compiled script, is generated for each pair of "source protocol-target protocol" combinations. A separate script execution engine is allocated to the high-priority processing queue, and pre-compiled scripts are directly loaded and kept resident in memory; When a task in the high-priority queue is scheduled, the script execution engine directly receives the parsed result object and calls the corresponding pre-compiled script in memory based on the source protocol identifier and target protocol identifier recorded therein. The pre-compiled script uses direct memory operations to fill the data field values ​​in the parsed result object into the pre-allocated output buffer according to the data frame format specification of the target standard protocol. At the same time, it automatically calculates and fills the checksum to generate the final standard data frame.

[0012] In one embodiment of the present invention, for the converted data frame, the data is distributed and transmitted through a distributed communication channel, the load pressure during the transmission process is detected, and the channel allocation strategy is dynamically adjusted, including the following steps: After the 5G core network user plane functional nodes, multiple parallel data distribution agent nodes are deployed to form a distributed communication channel; Real-time data collection of current CPU utilization, memory usage, network egress queue depth, and network round-trip latency to the target system for each data distribution agent node, and comprehensive calculation of the real-time load pressure index for each channel. Establish a channel selection model based on load pressure index and service instruction priority, and prioritize allocating data frames of high real-time instructions to the channel with the lowest current load pressure index and the shortest network latency. The load balance status of each channel is monitored periodically. If an imbalance occurs where one channel is continuously under high load while other channels are idle, some non-critical data streams are actively and smoothly migrated from the high-load channel to the low-load channel.

[0013] In one embodiment of the present invention, the dynamic adjustment of the channel allocation strategy further includes a step for handling channel failures: A heartbeat monitoring mechanism is established for each data distribution agent node. When the number of consecutive lost heartbeat signals exceeds a preset number, it is determined that the communication channel corresponding to the agent node has failed. Immediately reroute data frames, especially those containing high real-time commands, that were originally intended to be transmitted through the faulty channel to the healthy channel with the lowest current load pressure index. At the same time, a channel failure alarm is sent to the operation and maintenance system, and the sequence number of the data frames affected during the failure is recorded. After the channel is restored, a retransmission or status synchronization mechanism is provided to ensure data consistency.

[0014] To address the aforementioned technical problems, this invention also provides a high-efficiency 5G protocol conversion system for heterogeneous terminals in power distribution networks, used to implement the above method, comprising: The communication protocol mapping library construction and maintenance module is used to build and maintain a communication protocol mapping library, which stores the parsing rules and field mapping relationships between various source protocols and target standard protocols used by different heterogeneous terminal devices in the power distribution network. The message receiving and parsing rule matching module is used to receive raw data packets from heterogeneous terminal devices and match the corresponding parsing rules from the communication protocol mapping library according to the protocol identifier of the raw data packets. The data message parsing and instruction extraction module is used to parse the original data message according to the matching parsing rules and extract the data fields and business instruction types. The business instruction priority identification and distribution module is used to identify whether the business instruction type is a high real-time instruction; if so, the data field of the business instruction is transferred to the high-priority processing queue; if not, it is transferred to the normal processing queue. The high-priority instruction protocol conversion module is used to call a pre-compiled protocol conversion script for instructions in the high-priority processing queue, and directly convert the extracted data fields into data frames that conform to the target standard protocol format according to the field mapping relationship. The data transmission and dynamic optimization module is used to distribute and transmit the converted data frames through a distributed communication channel, detect the load pressure during the transmission process, and dynamically adjust the channel allocation strategy to determine the optimization result of the transmission path.

[0015] The technical solution of the present invention has the following advantages over the prior art: The efficient 5G protocol conversion method for heterogeneous terminals in power distribution networks described in this invention first constructs and maintains a communication protocol mapping library containing parsing rules and field mapping relationships between various source protocols and target standard protocols. When a raw data packet is received from a heterogeneous terminal, the corresponding parsing rule is matched from the mapping library according to the protocol identifier in the packet, and the data fields and service instruction types are extracted accordingly. Subsequently, a predefined judgment logic is used to identify whether the service instruction belongs to the high real-time category. If so, the relevant data fields are transferred to a high-priority processing queue; otherwise, they are transferred to a normal processing queue.

[0016] Furthermore, high-priority instructions are processed using pre-compiled protocol conversion scripts. These scripts are pre-compiled and generated during system initialization based on field mapping relationships. During execution, the pre-compiled code is directly called to complete the data format conversion, avoiding the dynamic parsing overhead required by traditional methods. Simultaneously, the system transmits the converted data frames through a distributed communication channel and can dynamically adjust the channel allocation strategy based on real-time load pressure to optimize the transmission path.

[0017] From a technical principle perspective, this solution addresses the shortcomings of existing technologies through the following mechanisms: the establishment of a communication protocol mapping library structures and stores the parsing rules of various protocols, providing a standardized basis for fast and accurate data parsing; a priority classification mechanism based on business type separates the processing paths of critical instructions from ordinary data, ensuring that high real-time instructions receive priority processing; the use of pre-compiled conversion scripts transforms runtime interpreted execution into direct execution of pre-compiled code, significantly shortening the time consumption of the core conversion process; and the dynamic adjustment of the distributed communication channel ensures the continuity of low-latency transmission from the transmission layer.

[0018] The beneficial effects of the aforementioned technical features are mainly reflected in three aspects: First, the combination of pre-compiled conversion scripts and priority queues enables millisecond-level protocol conversion of high real-time commands, meeting the extreme timeliness requirements of remote control and remote adjustment commands in distribution automation scenarios. Second, the structured protocol mapping library and automated parsing mechanism reduce the complexity of multi-protocol adaptation and improve the system's adaptability to different types of terminal devices. Third, the dynamic optimization mechanism of the transmission channel enhances the overall stability of the system under high load conditions, avoiding the failure of critical command transmission due to local congestion. These effects collectively improve the determinism, reliability, and overall efficiency of the heterogeneous terminal communication system in the distribution network, providing effective communication support for the efficient operation of the smart distribution network. Attached Figure Description

[0019] To make the content of this invention easier to understand, the invention will be further described in detail below with reference to specific embodiments and accompanying drawings, wherein: Figure 1 This is a flowchart of the steps of the efficient 5G protocol conversion method for heterogeneous terminals in power distribution networks according to the present invention; Figure 2 This is a flowchart illustrating the steps involved in constructing and maintaining a communication protocol mapping library according to the present invention. Figure 3 This is a flowchart of the steps in this invention to match the corresponding parsing rules from the communication protocol mapping library; Figure 4 This is a flowchart illustrating the steps of extracting data fields and business instruction types from the original data message according to the present invention. Figure 5 This is a flowchart illustrating the steps of the present invention to directly convert the extracted data fields into data frames conforming to the target standard protocol format; Figure 6 This is a flowchart illustrating the steps of dynamically adjusting the channel allocation strategy of the present invention. Figure 7 This is a structural framework diagram of the 5G protocol high-efficiency conversion system for heterogeneous terminals in power distribution networks according to the present invention. Detailed Implementation

[0020] The present invention will be further described below with reference to the accompanying drawings and specific embodiments, so that those skilled in the art can better understand and implement the present invention. However, the embodiments described are not intended to limit the present invention.

[0021] Reference Figure 1 As shown, this invention discloses a method for efficient 5G protocol conversion for heterogeneous terminals in power distribution networks, which includes the following steps: First, a communication protocol mapping library is built and maintained. This library can be a simple text file that stores the parsing rules and field mapping relationships between various source protocols and target standard protocols used by different heterogeneous terminal devices in the power distribution network in the form of key-value pairs. For example, the frame structure definition and field correspondence of each protocol can be manually entered. The maintenance of this mapping library can be performed manually on a regular basis; for example, when a new device is connected or the protocol is updated, the administrator can manually modify or add mapping entries.

[0022] Next, the system receives raw data packets from heterogeneous terminal devices. When the system receives a data packet, it needs to match the corresponding parsing rule from the communication protocol mapping library based on the protocol identifier of the raw data packet. For example, it can find the first matching rule by traversing all protocol identifiers in the mapping library and comparing them with the identifiers in the received packet.

[0023] Subsequently, the original data message is parsed according to the matching parsing rules to extract the data fields and business instruction types. For example, a general parser can be used to read data from the message byte by byte according to the field offsets and lengths defined in the parsing rules, and determine the business instruction type according to a preset lookup table.

[0024] Furthermore, the system identifies whether a business instruction type is a high-real-time instruction. For example, a simple list can be maintained containing all business types considered high-real-time instructions. After parsing the business instruction type, the system queries this list to determine if it belongs to the high-real-time instruction category. If it is, the data field of the business instruction is transferred to a high-priority processing queue; otherwise, it is transferred to a normal processing queue. These two queues can be standard message queues provided by the operating system.

[0025] For instructions in the high-priority processing queue, a pre-compiled protocol conversion script is invoked. Based on the field mapping relationships, the extracted data fields are directly converted into data frames conforming to the target standard protocol format. For example, a conversion function can be manually written for each combination of source and target protocols. This function is called at runtime, receiving the parsed data fields as input and assembling them according to the target protocol format. These functions can be pre-compiled into executable code to improve execution efficiency.

[0026] Finally, the converted data frames are distributed and transmitted through a distributed communication channel. The system monitors the load during transmission, dynamically adjusts the channel allocation strategy, and determines the optimized transmission path. For example, multiple independent communication servers can be deployed as distributed communication channels, with each server responsible for transmitting a portion of the data frames. The system can periodically poll the resource usage (e.g., CPU utilization) of each server and determine its load pressure based on simple thresholds. When a channel becomes overloaded, subsequent data frames can be allocated to the next available channel. The optimized transmission path can be reflected through simple log recording, such as recording the data frame's sending and receiving times, and the channel used.

[0027] This method significantly improves the efficiency of data protocol conversion for heterogeneous terminals in the distribution network by constructing a communication protocol mapping library and using pre-compiled protocol conversion scripts. By introducing a business instruction priority identification mechanism, high real-time instructions are processed first, effectively avoiding delays caused by queuing for critical instructions under high system load. Combined with distributed communication channels and dynamic channel allocation strategies, the data transmission path is further optimized, ensuring that the stringent requirements for millisecond-level response in distribution automation scenarios are met, thereby improving the overall communication efficiency and operational reliability of the distribution network.

[0028] Reference Figure 2 As shown, this application further proposes a specific method for constructing and maintaining a communication protocol mapping library. This method includes: when extracting protocol frame structure definitions from technical specification documents provided by equipment manufacturers based on the model and version information of distribution network terminal equipment, and obtaining the original descriptions of protocol fields, automated tools can be used to parse technical specification documents in formats such as PDF, XML, or Word, identifying and extracting the definitions of each field of the protocol frame, including field names, data types, length ranges, and other information. For documents with low structure levels, extraction can also be performed manually or using semi-automated auxiliary tools to ensure the accuracy of the original descriptions.

[0029] When parsing and transforming the original description according to a unified structured template, determining the byte offset, data type, length, and semantic meaning of each field, and obtaining a standardized list of field attributes, a set of general protocol field structured templates can be predefined, such as using XML Schema or JSON Schema to describe the field attributes. The parser maps the information in the original description to this template. For example, it converts "temperature value, 2 bytes, unsigned integer" into "field name: temperature, byte offset: X, data type: UINT16, length: 2, semantics: Celsius temperature" in structured data. The byte offset can be obtained by calculating the starting position of the field in the protocol frame, while the data type and length are standardized according to the protocol specification.

[0030] When establishing one-to-one, one-to-many, or many-to-one mapping relationships between source protocol fields and target standard protocol fields based on a standardized list of field attributes, through manual configuration or automated comparison, and storing these mapping relationships in a structured database to form a protocol mapping library, a graphical user interface (GUI) can be provided. This allows operations and maintenance personnel to manually configure the mapping relationships between source protocol fields and target standard protocol fields, such as mapping "holding register address 100" in the Modbus protocol to "telemetry A. value" in the IEC 61850 protocol. Simultaneously, automated comparison algorithms can be developed to automatically recommend or establish mapping relationships by analyzing the similarity of field names, data type compatibility, and semantic relevance. These mapping relationships are ultimately stored in a relational database (such as MySQL or PostgreSQL) or a document-oriented database (such as MongoDB) for rapid querying and management.

[0031] By establishing a periodic protocol update monitoring mechanism, when a new terminal device is detected accessing the network or an existing device's protocol version is upgraded, triggering the entry review and update process in the protocol mapping library, a background service can be deployed to periodically query the power distribution network equipment management system or network topology discovery service to detect whether new terminal devices have come online or whether the firmware version or configuration information of existing devices has changed. Once such an event is detected, the system will automatically trigger the protocol mapping library update process, including re-extracting the technical specifications of the relevant devices, parsing and standardizing field attributes, and prompting the administrator to review and adjust the mapping relationships that may be affected, ensuring the real-time performance and accuracy of the mapping library.

[0032] In actual power distribution network environments, there are many types of heterogeneous terminal devices. The raw data packets they send may be transmitted in the form of mixed binary streams, and the protocol identifiers may be unclear or difficult to extract directly, resulting in low protocol matching efficiency and even failure to accurately identify the protocol to which the packet belongs, thereby affecting subsequent data parsing and business processing.

[0033] In this regard, refer to Figure 3 As shown, this application further proposes a step of matching corresponding parsing rules from a communication protocol mapping library based on the protocol identifier of the original data packet. This includes: establishing a protocol preprocessing probe at the access network element of the 5G communication network. This probe can be an independent hardware module or a software agent deployed on the access network element. Its main function is to directly receive and cache the raw binary data stream sent from terminal devices with different physical connections. This deployment method ensures that the data is intercepted before it is encapsulated or processed by upper-layer protocols, thereby guaranteeing the originality and accuracy of protocol identification. The caching mechanism can adopt methods such as a circular buffer, memory queue, or temporary file storage to cope with sudden traffic surges and provide a stable data source for subsequent processing.

[0034] Further, the raw binary data stream undergoes initial segmentation to identify independent data packet boundaries. This step aims to decompose the continuous raw data stream into discrete, independently processable data packets. Packet boundary identification can be achieved by searching for specific frame header or trailer identifiers, fixed-length packets, or based on the internal length field of the packet. For example, for Ethernet frames, boundaries can be identified through their preamble and inter-frame gaps; for some industrial control protocols, packet integrity may be determined through specific start byte sequences and checksums. Once packet boundaries are determined, a preset-length identifier byte sequence is extracted from a fixed start position of each data packet. This sequence typically contains key information such as protocol type, version, and function code, serving as a "fingerprint" of the protocol. Its preset length can be configured based on the characteristics of known protocols.

[0035] Subsequently, the extracted identifier byte sequence is compared one by one with the pre-registered protocol signatures in the communication protocol mapping library, and a match is made based on similarity. The protocol signatures stored in the communication protocol mapping library are predefined byte sequence patterns that can uniquely or with high probability identify a certain protocol, such as a complete protocol header, a specific magic number, or a combination of key fields. The comparison process can be an exact match or a fuzzy match based on similarity, such as using Hamming distance, edit distance, or bitmask-based pattern matching algorithms to calculate the similarity. This similarity matching mechanism can effectively cope with possible variants of the protocol or the situation where some fields are variable, improving the robustness of protocol identification.

[0036] For a successfully matched message, the system retrieves the corresponding parsing rule configuration set from the communication protocol mapping library, binds the parsing rule configuration set to the original data message, and forwards it to the subsequent parsing module. The communication protocol mapping library contains not only protocol signature features but also complete parsing rules associated with each protocol, such as frame structure definitions, field offsets, data types, and semantic meanings. Once a protocol is identified, the system retrieves the corresponding parsing rule from the library. The original data message itself and its corresponding parsing rule configuration set are encapsulated into a data structure and then sent to the module specifically responsible for detailed parsing. This binding ensures that subsequent modules can efficiently and accurately parse the data, avoiding redundant lookups and unnecessary overhead.

[0037] Specifically, in actual power distribution network environments, due to the diverse types of heterogeneous terminal devices and rapid protocol version iterations, some original data packets may not be accurately identified or matched by existing protocol mapping libraries. This application further proposes processing steps for data packets that cannot be matched with parsing rules: Specifically, establishing an unknown protocol isolation buffer is a key step. This buffer is a dedicated storage area, which can be a region in memory, a file queue on disk, or a database table. Its function is to isolate data packets that cannot be matched by the initial protocol identifier. By temporarily storing these packets here, the main processing flow can be avoided from being blocked by unknown protocol packets, while providing a data source for subsequent in-depth analysis, ensuring that the system can continuously process known protocol packets, and providing a buffer and analysis opportunity for unknown packets.

[0038] Subsequently, message samples are extracted from the unknown protocol isolation buffer, and their message length, byte distribution entropy, and statistical characteristics of fixed-position byte value sequences are calculated to obtain the protocol feature vector. Message samples are representative data messages selected from the isolation buffer. Calculating statistical characteristics aims to extract key information characterizing the protocol's properties from the messages. Message length refers to the overall size of the data message and is one of the fundamental attributes of the protocol structure. Byte distribution entropy measures the randomness or regularity of the distribution of byte values ​​in the message; high entropy values ​​may indicate data encryption or compression, while low entropy values ​​may indicate the presence of a fixed pattern or padding. Fixed-position byte value sequences refer to the byte values ​​at specific offsets in the message; these positions are often used to store key information such as protocol version, type identifier, and function code.

[0039] Based on this, cluster analysis is performed on the protocol feature vectors and the historically learned feature vectors of known protocols in the protocol mapping library. Cluster analysis is an unsupervised learning method that classifies newly generated protocol feature vectors into the most similar protocol clusters by comparing their similarity with multiple historically learned feature vectors representing known protocols stored in the protocol mapping library. If the feature vector of a new message is highly similar to the features of a known protocol cluster, the message is considered to belong to that cluster, and its protocol identifier is updated to the identifier of that cluster, thereby achieving automatic identification of unknown messages. Simultaneously, this feature vector is recorded as a new variant of the protocol to enrich the protocol mapping library's understanding of that protocol and improve the accuracy of future identification.

[0040] If a message cannot be categorized into any existing protocol cluster, a new protocol discovery alarm is generated, and the message sample and related features are submitted to the protocol mapping library management terminal for manual analysis. When the similarity between the protocol feature vector and all known protocol clusters is below a preset threshold, it indicates that the message may belong to a completely new protocol type or a significant variant of an existing protocol. In this case, the system triggers a new protocol discovery alarm, notifying operations and maintenance personnel or protocol administrators. Simultaneously, the original sample of the unknown message and its calculated protocol feature vector are submitted to the protocol mapping library management terminal for expert analysis. Manual analysis may include reverse engineering, consulting device documentation, etc., with the ultimate goal of defining new parsing rules and field mapping relationships for the new protocol and adding it to the protocol mapping library, thereby continuously improving the system's protocol identification capabilities.

[0041] Reference Figure 4 As shown, this application further proposes a method for parsing raw data packets according to matching parsing rules to extract data fields and business instruction types. Specifically, it includes the following steps: After receiving raw data packets from heterogeneous terminal devices and matching the corresponding parsing rules, it is first necessary to accurately identify the overall structure of the data packet based on a predefined frame structure template configured according to the parsing rules. This includes determining the total length of the data packet to understand the entire packet's scope; determining the frame header length to distinguish between protocol control information and actual business data; clarifying the starting position of the data field, which is the accurate starting point of the business data; and identifying the position of the verification field to provide a basis for subsequent data integrity verification.

[0042] After clarifying the structure of the data message, the parsing process begins at the start of the data field and strictly follows the byte order and data type specified for each field in the parsing rules to read and interpret the raw byte data one by one. For example, if the rules specify that a certain field is a 32-bit unsigned integer, the system will read the corresponding 4 bytes and convert them into the corresponding value. Simultaneously, during the data reading and interpretation process, real-time or phased integrity verification is performed on the data according to the verification rules defined in the parsing rules. If the verification fails, it indicates that the data may have been corrupted during transmission, triggering the corresponding error handling mechanism to ensure the reliability of the extracted data.

[0043] Subsequently, to understand the business meaning of the data packets, the system queries a predefined business instruction mapping table based on the interpreted control fields or specific function codes. This mapping table associates protocol-level control information or function codes with the business operation types understood by the upper-layer application. For example, a function code might correspond to specific business operations such as "telemetry data reporting" or "remote control command execution." Through this query, low-level protocol data can be elevated to information with clear business semantics, providing clear guidance for subsequent business logic processing.

[0044] Finally, to facilitate unified processing and efficient utilization by subsequent modules, all successfully parsed data field values, their corresponding field semantic tags, and the business instruction types determined through queries are encapsulated into a structured parsing result object. This object provides a standardized data representation, allowing subsequent protocol conversion modules or business processing modules to access and process this information through a unified interface, regardless of the complexity of the original protocol, greatly simplifying the internal data interaction and processing flow of the system.

[0045] After parsing the raw data packets from heterogeneous terminal devices and extracting data fields and business instruction types, effectively distinguishing the priorities of different business instructions, especially identifying real-time instructions with strict response time requirements, is crucial to ensuring the stable operation and efficient response of the distribution network system. Therefore, this application further proposes steps for identifying whether a business instruction type is a high real-time instruction, specifically including: establishing and maintaining a high real-time instruction feature library, which includes standard instruction codes, function code combinations, and business scenario tags that require millisecond-level response in distribution automation scenarios; and performing real-time query comparison between the parsed business instruction type or function code and the high real-time instruction feature library to determine whether it is a high real-time instruction.

[0046] Establishing and maintaining a high real-time command feature library refers to constructing a structured data storage entity specifically for storing and managing various command information with extremely high response time requirements in the field of power distribution automation. This feature library can be implemented using relational databases, key-value stores, or configuration files to ensure fast data access and efficient management. The content included in the feature library includes, but is not limited to: specific control command codes defined in industry standards, such as standard commands specified in protocols like IEC 61850 and Modbus; function code combinations, i.e., multiple function codes or parameter combinations representing specific high real-time operations; and business scenario tags, used to describe the specific business scenario in which the command is used, such as "line trip command," "remote closing command," and "protection setting issuance." The maintenance of this feature library can be configured by the system administrator through a graphical interface, or imported and updated using automated tools according to the latest industry standards and equipment specifications to ensure the accuracy and timeliness of its content.

[0047] The parsed business instruction type or function code is compared with a high real-time instruction feature library in real time to determine whether it is a high real-time instruction. This means that after the data packet is parsed, the system obtains a clear business instruction type or function code. At this point, the protocol conversion module immediately initiates a query operation on the high real-time instruction feature library. The query mechanism can employ various methods such as hash lookup, index lookup, or fuzzy matching to ensure query efficiency. For example, the parsed instruction code can be directly used as the query key to search for a corresponding entry in the high real-time instruction feature library. If the query result shows that the instruction code, function code combination, or its associated business scenario tag matches the definition of any high real-time instruction in the feature library, then the business instruction is determined to be a high real-time instruction. This process must ensure extremely low query latency to meet the stringent requirements of real-time control of the distribution network.

[0048] In practical applications, if the protocol conversion script is only interpreted or compiled on each call, it may introduce additional processing delays. This is especially true for business instructions in the power distribution network that have extremely high real-time requirements. Such delays may not be able to meet the millisecond-level response requirements, thus affecting the real-time performance and reliability of the entire system.

[0049] In this regard, refer to Figure 5 As shown, this application further proposes calling a pre-compiled protocol conversion script to directly convert the extracted data fields into data frames conforming to the target standard protocol format based on the field mapping relationship. Specifically, this includes the following steps: During system initialization, based on the field mapping relationships stored in the communication protocol mapping library, a highly optimized, executable target conversion code snippet, i.e., a pre-compiled script, is generated for each "source protocol-target protocol" combination. Specifically, during system startup or configuration updates, the system traverses the field mapping relationships between various source protocols and target standard protocols defined in the communication protocol mapping library. For each specific protocol conversion path, the system utilizes automated code generation techniques, such as template-based code generators or domain-specific language (DSL) compilers, to transform these mapping rules and conversion logic into efficient executable code. These code snippets can be direct machine code, bytecode, or highly optimized interpreted scripts, with the core goal of minimizing runtime parsing, compilation, or interpretation overhead. By pre-generating these scripts, time-consuming dynamic processing is eliminated during actual protocol conversion, thus laying the foundation for subsequent rapid conversion.

[0050] To ensure that protocol conversion for high-real-time instructions can be performed with minimal latency, this application further proposes allocating independent script execution engines to high-priority processing queues and directly loading pre-compiled scripts to keep them resident in memory. Specifically, the system can deploy one or more lightweight script execution engine instances dedicated to processing high-priority instructions. After system initialization, these execution engines load all or the most frequently used pre-compiled scripts into their respective memory spaces. This memory-resident mechanism avoids the time-consuming operation of reading or reloading scripts from disk during each protocol conversion, ensuring that scripts can be immediately invoked and executed when needed. The independent execution engine design also ensures that the conversion process of high-priority instructions is not interfered with by other ordinary-priority tasks, further guaranteeing its real-time performance.

[0051] When a task in the high-priority queue is scheduled, the script execution engine directly receives the parsed result object and, based on the source protocol identifier and target protocol identifier recorded therein, invokes the corresponding pre-compiled script in memory. Specifically, after selecting a task to be processed, the task scheduler of the high-priority processing queue directly passes the parsed result object, which already contains information such as extracted data fields and business instruction types, to an idle script execution engine. This script execution engine internally maintains an index or hash table of pre-compiled scripts. Through the explicit source protocol identifier and target protocol identifier in the parsed result object, it can locate and directly invoke the corresponding pre-compiled script function or method in memory at extremely high speed.

[0052] The pre-compiled script uses direct memory operations to fill the data field values ​​from the parsed result object into a pre-allocated output buffer according to the data frame format specifications of the target standard protocol. Simultaneously, it automatically calculates and fills in the checksum, generating the final standard data frame. Specifically, the pre-compiled script is designed to directly access memory addresses, such as through pointer operations or structure member access, to efficiently write the extracted data field values ​​from the parsed result object into the pre-allocated output buffer. The script internally embeds the data frame format of the target standard protocol, including the order, length, and data type of each field. During the data filling process, the script also automatically calculates and fills in the checksum of the data frame according to the target protocol's specifications to ensure the integrity and correctness of the generated data frame. This direct memory operation and automated checksum calculation method greatly improves the efficiency of data frame construction and reduces CPU overhead.

[0053] In actual power distribution network communication environments, the load conditions of network links are complex and variable. A single or fixed transmission path may lead to data congestion and increased transmission delays. Especially for business instructions in power distribution networks that have extremely high real-time requirements, failure to transmit them in a timely and efficient manner will seriously affect the stable operation of the power grid and the speed of fault response.

[0054] In this regard, refer to Figure 6 As shown, this application further proposes a distributed communication channel for distributing and transmitting the converted data frames, detecting the load pressure during transmission, and dynamically adjusting the channel allocation strategy. Specifically, multiple parallel data distribution proxy nodes are deployed after the 5G core network user plane functional nodes to form a distributed communication channel. These proxy nodes, as independent computing entities, can be deployed on edge computing nodes, cloud servers, or dedicated hardware devices. They work in parallel to jointly undertake the data distribution task, thereby distributing the processing pressure of a single node, improving the overall throughput and fault tolerance of the system, and providing a foundation for subsequent load balancing and dynamic routing.

[0055] To accurately assess the operational status of each channel, the system collects real-time data on the CPU utilization, memory usage, network egress queue depth, and network round-trip latency to the target system for each data distribution agent node. CPU utilization and memory usage reflect the computational and storage resource consumption of the agent node itself; network egress queue depth indicates the amount of data waiting to be sent in its network interface buffer, with deeper queues indicating more severe congestion; and network round-trip latency directly reflects the real-time performance of the network link from the agent node to the final receiving system. By weighted averaging, multi-dimensional evaluation, or using machine learning models, the system comprehensively calculates the real-time load pressure index for each channel. This index provides a quantitative basis for subsequent channel selection and load balancing decisions.

[0056] Based on this, a channel selection model is established based on load pressure index and service instruction priority. This model can be a rule-based decision engine, or a more complex optimization algorithm or machine learning model. Its core is to output the optimal transmission channel based on the input parameters (load pressure index and service instruction priority). For data frames of high real-time instructions, the model will prioritize allocating them to the channel with the lowest current load pressure index and the shortest network latency, ensuring that instructions with extremely high real-time requirements in the distribution network can be delivered with the lowest latency and the highest reliability. For ordinary instructions, a suboptimal channel may be used, or the load on each channel may be further balanced while meeting basic quality of service requirements.

[0057] In addition, the system periodically monitors the load balancing status of each channel. The system checks the load pressure index of all distributed communication channels at preset time intervals to assess the overall load distribution. If an imbalance occurs where one channel is consistently high-load while other channels are idle, the system proactively and smoothly migrates some non-critical data streams from the high-load channel to the low-load channel. Here, "non-critical data streams" typically refer to monitoring data with low real-time requirements or data frames in ordinary processing queues. Smooth migration means that the migration process does not interrupt ongoing data transmission. Instead, it minimizes the impact on business operations by adjusting the routing of subsequent data packets or redirecting new connections to the target channel, ensuring that the system maintains service continuity and stability while optimizing resource utilization.

[0058] Specifically, in actual operation, data distribution agent nodes in the distributed communication channel may experience communication channel failures due to hardware malfunctions, network interruptions, or other abnormal conditions. This application further proposes a dynamic adjustment strategy for channel allocation, including steps to address channel failures. Specifically, to continuously monitor the operating status and connectivity of each data distribution agent node in the distributed communication channel, a heartbeat monitoring mechanism is established for each data distribution agent node. This mechanism is implemented by the agent node periodically sending a short "heartbeat" signal to a central monitoring service or a neighboring node. These signals may contain the agent node's identification information, current timestamp, etc. The monitoring service or receiving node records the time when each agent node last sent a heartbeat. To avoid misjudgments caused by momentary network jitter or brief delays, the system sets a preset threshold number of times, such as 3 or 5 consecutive lost heartbeat signals. When the consecutive loss of heartbeat signals exceeds the preset number, the system determines that the communication channel corresponding to the agent node has failed.

[0059] Once a communication channel failure is detected, the system immediately initiates a failover mechanism, rerouting data frames, especially those carrying high-real-time commands, that were originally intended for transmission through the failed channel to the healthy channel with the lowest current load pressure. This immediate rerouting ensures the continuous transmission of critical business commands and minimizes the impact of the failure on services. Simultaneously, upon detecting a communication channel failure and initiating rerouting, the system generates a detailed fault alarm and sends it to the operations and maintenance system. This alarm typically includes key information such as the faulty channel identifier, the time of failure, the fault type, and the types of affected business commands, enabling operations and maintenance personnel to promptly understand the system status and initiate appropriate troubleshooting and recovery procedures. To ensure the integrity and consistency of data transmission, the system also records the sequence numbers of affected data frames during the failure. These sequence numbers help the system identify which data frames may have been lost or incorrectly processed after the failure is resolved, providing a basis for subsequent data retransmission or status synchronization. Once the channel is restored, the system utilizes the previously recorded sequence numbers of affected data frames to provide retransmission or status synchronization mechanisms to ensure data consistency. The retransmission mechanism retransmits data frames that failed to be transmitted during the fault; the state synchronization mechanism can ensure that all data eventually reaches consistency by comparing the data states of the source and destination.

[0060] Reference Figure 7 As shown, in order to implement the above method, this application also discloses a high-efficiency 5G protocol conversion system for heterogeneous terminals in power distribution networks, the system comprising: The communication protocol mapping library construction and maintenance module is used to build and maintain a communication protocol mapping library, which stores the parsing rules and field mapping relationships between various source protocols and target standard protocols used by different heterogeneous terminal devices in the power distribution network. The message receiving and parsing rule matching module is used to receive raw data packets from heterogeneous terminal devices and match the corresponding parsing rules from the communication protocol mapping library according to the protocol identifier of the raw data packets. The data message parsing and instruction extraction module is used to parse the original data message according to the matching parsing rules and extract the data fields and business instruction types. The business instruction priority identification and distribution module is used to identify whether the business instruction type is a high real-time instruction; if so, the data field of the business instruction is transferred to the high-priority processing queue; if not, it is transferred to the normal processing queue. The high-priority instruction protocol conversion module is used to call a pre-compiled protocol conversion script for instructions in the high-priority processing queue, and directly convert the extracted data fields into data frames that conform to the target standard protocol format based on the field mapping relationship. The data transmission and dynamic optimization module is used to distribute and transmit the converted data frames through a distributed communication channel, detect the load pressure during the transmission process, and dynamically adjust the channel allocation strategy to determine the optimization result of the transmission path.

[0061] Obviously, the above embodiments are merely illustrative examples for clear explanation and are not intended to limit the implementation. Those skilled in the art will recognize that other variations or modifications can be made based on the above description. It is neither necessary nor possible to exhaustively list all possible implementations here. However, obvious variations or modifications derived therefrom are still within the scope of protection of this invention.

Claims

1. A method for efficient 5G protocol conversion for heterogeneous terminals in power distribution networks, characterized in that, Includes the following steps: Build and maintain a communication protocol mapping library, which stores the parsing rules and field mapping relationships between various source protocols and target standard protocols used by different heterogeneous terminal devices in the power distribution network; Receive raw data packets from heterogeneous terminal devices and match the corresponding parsing rules from the communication protocol mapping library according to the protocol identifier of the raw data packets; The original data message is parsed according to the matching parsing rules to extract the data fields and business instruction types. Identify whether the business instruction type is a high real-time instruction; if so, transfer the data field of the business instruction to the high-priority processing queue; otherwise, transfer it to the normal processing queue. For instructions in the high-priority processing queue, the pre-compiled protocol conversion script is invoked, and the extracted data fields are directly converted into data frames that conform to the target standard protocol format based on the field mapping relationship. For the converted data frames, the data is distributed and transmitted through a distributed communication channel. The load pressure during the transmission process is detected, the channel allocation strategy is dynamically adjusted, and the optimization result of the transmission path is determined.

2. The method for efficient 5G protocol conversion for heterogeneous terminals in power distribution networks according to claim 1, characterized in that: Building and maintaining a communication protocol mapping library includes the following steps: Based on the model and version information of the distribution network terminal equipment, the protocol frame structure definition is extracted from the technical specification document provided by the equipment manufacturer to obtain the original description of the protocol fields; The original description is parsed and transformed according to a unified structured template to determine the byte offset, data type, length and semantic meaning of each field, resulting in a standardized list of field attributes. Based on a standardized list of field attributes, a one-to-one, one-to-many, or many-to-one mapping relationship between source protocol fields and target standard protocol fields is established through manual configuration or automated comparison. The mapping relationship is then stored in a structured database to form a protocol mapping library. Establish a periodic protocol update monitoring mechanism. When a new terminal device is detected to be connected or the protocol version of an existing device is upgraded, the entry review and update process of the protocol mapping library is triggered.

3. The method for efficient 5G protocol conversion for heterogeneous terminals in power distribution networks according to claim 1, characterized in that: Based on the protocol identifier of the original data packet, the corresponding parsing rules are matched from the communication protocol mapping library, including the following steps: A protocol preprocessing probe is set up at the access network element of the 5G communication network to receive and buffer the raw binary data stream sent by terminal devices with different physical connections; The original binary data stream is initially segmented to identify independent data packet boundaries, and a sequence of identifier bytes of a preset length is extracted from the fixed starting position of each data packet. The identifier byte sequence is compared one by one with the pre-registered protocol feature signatures in the protocol mapping library, and the matching is based on the similarity. For a successfully matched message, the corresponding parsing rule configuration set is locked from the protocol mapping library, and after binding the parsing rule configuration set with the original data message, it is forwarded to the subsequent parsing module.

4. The method for efficient 5G protocol conversion for heterogeneous terminals in power distribution networks according to claim 3, characterized in that: It also includes steps for handling data packets that cannot be matched with the parsing rules: Establish an unknown protocol isolation buffer to temporarily store data packets whose protocol identifiers fail to match or have low similarity. Extract message samples from the unknown protocol isolation buffer, calculate the statistical characteristics of its message length, byte distribution entropy, and fixed-position byte value sequence, and obtain the protocol feature vector; Cluster analysis is performed on the protocol feature vector and the historical learned feature vectors of known protocols in the protocol mapping library. If it is successfully assigned to an existing protocol cluster, its identifier is updated to the identifier of the protocol cluster, and the feature vector is recorded as a new variant of the protocol. If it cannot be classified into any existing protocol cluster, a new protocol discovery alarm is generated, and the message sample and related characteristics are submitted to the protocol mapping library management terminal for manual intervention and analysis.

5. The method for efficient 5G protocol conversion for heterogeneous terminals in power distribution networks according to claim 1, characterized in that: The original data message is parsed according to the matching parsing rules to extract the data fields and business instruction types, including the following steps: Based on the frame structure template defined in the parsing rules, determine the total length of the data packet, the frame header length, the start position of the data field, and the position of the check field; Starting from the beginning of the data field, the byte data is read and interpreted field by field according to the byte order and data type specified in the parsing rules, while the integrity of the data is verified according to the verification rules. Based on the interpreted control fields or specific function codes, query the predefined business instruction mapping table to determine the business operation type represented by the data message; The successfully parsed data field values, their corresponding field semantic tags, and the determined business instruction types are encapsulated into a structured parsing result object.

6. The method for efficient 5G protocol conversion for heterogeneous terminals in power distribution networks according to claim 1, characterized in that: Identifying whether a business instruction type is a high real-time instruction includes the following steps: Establish and maintain a high real-time instruction feature library, which includes standard instruction codes, function code combinations, and business scenario tags that require millisecond-level response in power distribution automation scenarios; The parsed business instruction type or function code is compared with the high real-time instruction feature library in real time to determine whether it is a high real-time instruction.

7. The method for efficient 5G protocol conversion for heterogeneous terminals in power distribution networks according to claim 1, characterized in that: The pre-compiled protocol conversion script is invoked to directly convert the extracted data fields into data frames conforming to the target standard protocol format, based on the field mapping relationship. This includes the following steps: During the system initialization phase, based on the field mapping relationships stored in the protocol mapping library, a highly optimized, executable target conversion code snippet, i.e., a pre-compiled script, is generated for each pair of "source protocol-target protocol" combinations. A separate script execution engine is allocated to the high-priority processing queue, and pre-compiled scripts are directly loaded and kept resident in memory; When a task in the high-priority queue is scheduled, the script execution engine directly receives the parsed result object and calls the corresponding pre-compiled script in memory based on the source protocol identifier and target protocol identifier recorded therein. The pre-compiled script uses direct memory operations to fill the data field values ​​in the parsed result object into the pre-allocated output buffer according to the data frame format specification of the target standard protocol. At the same time, it automatically calculates and fills the checksum to generate the final standard data frame.

8. The method for efficient 5G protocol conversion for heterogeneous terminals in power distribution networks according to claim 1, characterized in that: For the converted data frames, the data is distributed and transmitted through a distributed communication channel. The load pressure during transmission is detected, and the channel allocation strategy is dynamically adjusted, including the following steps: After the 5G core network user plane functional nodes, multiple parallel data distribution agent nodes are deployed to form a distributed communication channel; Real-time data collection of current CPU utilization, memory usage, network egress queue depth, and network round-trip latency to the target system for each data distribution agent node, and comprehensive calculation of the real-time load pressure index for each channel. Establish a channel selection model based on load pressure index and service instruction priority, and prioritize allocating data frames of high real-time instructions to the channel with the lowest current load pressure index and the shortest network latency. The load balance status of each channel is monitored periodically. If an imbalance occurs where one channel is continuously under high load while other channels are idle, some non-critical data streams are actively and smoothly migrated from the high-load channel to the low-load channel.

9. The method for efficient 5G protocol conversion for heterogeneous terminals in power distribution networks according to claim 8, characterized in that: The dynamic channel allocation strategy also includes steps for handling channel failures: A heartbeat monitoring mechanism is established for each data distribution agent node. When the number of consecutive lost heartbeat signals exceeds a preset number, it is determined that the communication channel corresponding to the agent node has failed. Immediately reroute data frames, especially those containing high real-time commands, that were originally intended to be transmitted through the faulty channel to the healthy channel with the lowest current load pressure index. At the same time, a channel failure alarm is sent to the operation and maintenance system, and the sequence number of the data frames affected during the failure is recorded. After the channel is restored, a retransmission or status synchronization mechanism is provided to ensure data consistency.

10. A high-efficiency 5G protocol conversion system for heterogeneous terminals in power distribution networks, used to implement the method described in any one of claims 1 to 9, characterized in that: include: The communication protocol mapping library construction and maintenance module is used to build and maintain a communication protocol mapping library, which stores the parsing rules and field mapping relationships between various source protocols and target standard protocols used by different heterogeneous terminal devices in the power distribution network. The message receiving and parsing rule matching module is used to receive raw data packets from heterogeneous terminal devices and match the corresponding parsing rules from the communication protocol mapping library according to the protocol identifier of the raw data packets. The data message parsing and instruction extraction module is used to parse the original data message according to the matching parsing rules and extract the data fields and business instruction types. The business instruction priority identification and distribution module is used to identify whether the business instruction type is a high real-time instruction; if so, the data field of the business instruction is transferred to the high-priority processing queue; if not, it is transferred to the normal processing queue. The high-priority instruction protocol conversion module is used to call a pre-compiled protocol conversion script for instructions in the high-priority processing queue, and directly convert the extracted data fields into data frames that conform to the target standard protocol format according to the field mapping relationship. The data transmission and dynamic optimization module is used to distribute and transmit the converted data frames through a distributed communication channel, detect the load pressure during the transmission process, and dynamically adjust the channel allocation strategy to determine the optimization result of the transmission path.

Citation Information

Patent Citations

  • Gateway multi-protocol conversion device and method based on 5G

    CN113115346A

  • Electronic information data association method and system based on Internet of Things

    CN120547252A