A device and method for implementing HSR / PRP industrial redundant transmission on a 5G air interface
By constructing a redundant HSR/PRP transmission architecture on the 5G air interface, performing message integrity detection and link health assessment, and dynamically adjusting the transmission mode, the link latency jitter and sequence number ambiguity issues of the HSR/PRP protocol on the 5G air interface are resolved, thereby improving the transmission efficiency and reliability of wireless industrial networks.
Patent Information
- Application Number
- CN202611683931.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-29
- Publication Date
- 2026-11-27
AI Technical Summary
When HSR/PRP protocols are applied directly over the 5G air interface, fluctuations in inter-link latency make it difficult to match the duplicate frame drop window, the limited sequence number space makes it difficult to distinguish, regulatory frames occupy uplink scheduling resources, and the lack of multi-link health awareness and adaptive adjustment of transmission modes leads to a decrease in transmission efficiency and reliability.
By constructing an HSR/PRP redundant transmission architecture on the 5G air interface, message integrity detection is performed, multi-dimensional air interface parameters are obtained to assess link health, transmission modes are dynamically adjusted, regulatory frame transmission is optimized, and sequence number ambiguity and duplicate frame erroneous dropping are reduced.
It improves the redundant transmission performance and resource utilization of 5G wireless industrial networks, enhances the overall transmission efficiency and reliability of the system under changing wireless environments, and reduces air interface signaling overhead and service interference.
Smart Images

Figure CN123185604A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and in particular to a device and method for implementing HSR / PRP industrial redundant transmission over a 5G air interface. Background Technology
[0002] Industrial automation systems place stringent requirements on the reliability and real-time performance of communication networks. Especially in scenarios such as production control, motion control, and process monitoring, communication interruptions or data loss can lead to production stoppages or even safety accidents. HSR / PRP, a widely adopted high-availability redundancy protocol in the industrial Ethernet field, achieves zero-switching-time data redundancy transmission through parallel redundancy or highly seamless ring networks. It has already achieved mature applications in wired industrial networks, and its low-latency, high-reliability communication capabilities provide a new technical path for the wireless transformation of industrial field devices. Carrying the HSR / PRP protocol over a 5G air interface allows for the construction of physically independent redundant channels using multiple 5G links from different operators or frequency bands, thereby improving the reliability of wireless industrial communication. However, the wireless channel characteristics of 5G air interface links differ significantly from those of wired links. Its transmission latency, bit error rate, signal quality, and other parameters dynamically change with the wireless environment, and the uplink scheduling mechanism introduces additional latency jitter and resource contention. Deploying traditional HSR / PRP mechanisms directly in a 5G air interface environment presents the following problems: Inter-link latency fluctuations make it difficult to effectively match the PRP duplicate frame discard window; a window that is too small may misjudge valid redundant frames as duplicates and discard them, while a window that is too large will cause duplicate frames to occupy buffer resources for extended periods; the standard sequence number space is limited, and flipping and reuse may occur under high-speed transmission, affecting the receiver's judgment of message age; independent transmission of regulatory frames will additionally occupy valuable uplink scheduling resources, increase air interface signaling overhead, and interfere with service data transmission. Furthermore, existing methods lack comprehensive awareness of multi-link health and adaptive adjustment of transmission modes, making it difficult to rationally allocate service traffic when link quality changes, leading to a decline in overall transmission efficiency and reliability.
[0003] Therefore, there is an urgent need for a device and method that can effectively realize HSR / PRP industrial redundant transmission over 5G air interface to solve the above problems and improve the redundant transmission performance and resource utilization of 5G wireless industrial network. Summary of the Invention
[0004] To overcome the shortcomings of existing technologies, this invention provides a device and method for implementing HSR / PRP industrial redundant transmission over a 5G air interface. It achieves comprehensive perception of the 5G air interface link status and adaptive control of HSR / PRP redundant transmission, effectively solving the problems of duplicate frame discarding and sequence number ambiguity caused by link delay jitter, bit error rate changes and uplink scheduling competition when the traditional HSR / PRP mechanism is directly applied to the 5G air interface.
[0005] To achieve the above-mentioned objectives, the present invention adopts the following technical solution: The first aspect of this application provides a method for implementing HSR / PRP industrial redundant transmission over a 5G air interface, comprising the following steps: Step 1: Connect two or more 5G NR communication modules to network links of different frequency bands to establish tunnel encapsulation, and build HSR / PRP redundant virtual interfaces on the tunnel encapsulation for running the HSR / PRP protocol stack. Step 2: Through the air interface awareness adaptation layer, perform integrity detection processing on the received industrial messages and HSR / PRP redundancy control fields to determine whether to submit the industrial messages to the HSR / PRP protocol stack for processing. Step 3: During the process of submitting industrial messages to the HSR / PRP protocol stack, obtain multi-dimensional air interface parameters of different network links to determine the link health of each link. Step 4: Determine the link transmission mode based on the link health of each link, and generate the corresponding link transmission control signal.
[0006] Furthermore, establishing tunnel encapsulation by connecting two or more 5G NR communication modules to network links in different frequency bands, and constructing HSR / PRP redundant virtual interfaces on the tunnel encapsulation for running the HSR / PRP protocol stack includes the following steps: Connect two or more 5G NR communication modules to network links of different frequency bands, and establish tunnel encapsulation on each link; HSR / PRP redundant virtual interfaces are built on each tunnel encapsulation, so that the protocol stack can run on the built HSR / PRP redundant virtual interfaces; After the HSR / PRP redundant virtual interface is constructed, the HSR / PRP data frames generated by the industrial control service at the sending end will be processed by the protocol stack, synchronously copied and distributed to all established independent tunnels, and concurrently transmitted through 5G air interface links of different operators and different frequency bands.
[0007] Furthermore, through the air interface awareness adaptation layer, integrity checks are performed on the received industrial messages and HSR / PRP redundancy control fields to determine whether to submit the industrial message to the HSR / PRP protocol stack for processing. This includes the following steps: Obtain the length information of the industrial message to be detected, and compare the length of the industrial message with the length of the HSR / PRP redundancy control field to initially screen out abnormal messages that do not meet the redundancy control field carrying requirements; If the length of the industrial message is less than the length of the HSR / PRP redundancy control field, it means that the data contained in the industrial message is insufficient to carry the complete HSR / PRP redundancy control information. The industrial message is directly determined to be a truncated message and is discarded without being submitted to the HSR / PRP protocol stack for processing. If the length of the industrial message is greater than or equal to the length of the HSR / PRP redundancy control field, a consistency check is performed. For messages that meet the length requirement, the RCT redundancy control field is read from the end of the message using a cache copying method. This avoids illegal address errors that may be caused by directly accessing the end address in the scenario of non-contiguous storage of 5G protocol stack cache. After reading, a consistency check is performed on the internal information of the RCT redundancy control field: the value of the PRP Suffix field is checked to see if it is the standard value 0xFB, and the length of the LSDU recorded in the RCT redundancy control field is consistent with the actual length of the message. Only when both checks pass can the industrial message be submitted to the HSR / PRP protocol stack for further processing; otherwise, the industrial message will not be submitted to the HSR / PRP protocol stack.
[0008] Furthermore, during the process of submitting industrial messages to the HSR / PRP protocol stack, obtaining multi-dimensional air interface parameters of different network links and determining the link health of each link includes the following steps: Obtain multi-dimensional air interface parameters for different network links. These parameters include reference signal received power, signal-to-interference-plus-noise ratio, block error rate, number of retransmissions, end-to-end communication delay, and delay jitter. Each parameter collected within a preset time window is subjected to a weighted moving average to suppress the impact of sudden interference and transient fluctuations on the evaluation results. The smoothed reference signal received power, signal-to-interference-plus-noise ratio, block error rate, retransmission count, end-to-end communication delay, and delay jitter are normalized to a unified dimensionless interval and then fused according to preset weights to obtain the current link health of each link.
[0009] Furthermore, determining the link transmission mode based on the link health of each link and generating the corresponding link transmission control signal includes the following steps: If the link health of all links is greater than or equal to the first threshold, the link transmission mode is determined to be the redundant parallel transmission mode, and a link redundant parallel transmission control signal is generated to transmit the copied service frames in parallel through each link. If the link with the lowest link health among all links has a link health greater than or equal to the second threshold setting threshold and less than the first threshold setting threshold, then the link transmission mode is determined to be the uniform distribution transmission mode, and a link uniform transmission control signal is generated to distribute the service frames evenly to each link for transmission. If the link with the lowest link health among all links has a link health greater than or equal to the third threshold and less than the second threshold, then the link transmission mode is determined to be the healthy link tilt transmission mode, and a link tilt transmission control signal is generated to proportionally tilt the service frames to the healthy link for transmission. If the link with the lowest link health among all links has a link health less than the third threshold, then the link transmission mode is determined to be the healthy link transmission mode, and a healthy link transmission control signal is generated to allocate service frames only to healthy links for transmission; wherein, the first threshold is greater than the second threshold, and the second threshold is greater than the third threshold.
[0010] A second aspect of this application provides a device for implementing HSR / PRP industrial redundant transmission over a 5G air interface, including an air interface awareness adaptation layer. The air interface awareness adaptation layer configures the 5G NR communication module between the HSR / PRP protocol stack. The air interface awareness adaptation layer includes: The redundant transmission architecture building unit is used to connect two or more 5G NR communication modules to network links of different frequency bands to establish tunnel encapsulation, and to build HSR / PRP redundant virtual interfaces on the tunnel encapsulation for running the HSR / PRP protocol stack. The message integrity detection unit performs integrity detection processing on the received industrial messages and HSR / PRP redundancy control fields to determine whether to submit the industrial message to the HSR / PRP protocol stack for processing. The link health assessment unit is used to obtain multi-dimensional air interface parameters of different network links during the process of submitting industrial messages to the HSR / PRP protocol stack, and to determine the link health of each link. The link transmission mode selection unit selects the link transmission mode based on the link health of each link and generates the corresponding link transmission control signal.
[0011] Furthermore, a device for implementing HSR / PRP industrial redundant transmission over a 5G air interface also includes a latency measurement unit and a window adaptive adjustment unit. The latency measurement unit inserts probe frames into each 5G link to measure the one-way transmission latency and latency jitter of each link, and calculates the real-time one-way latency difference ΔT between links. The window adaptive adjustment unit dynamically adjusts the size of the PRP duplicate frame discard window based on the real-time one-way latency difference ΔT. When the real-time one-way latency difference ΔT is less than or equal to a first latency threshold, a standard window is used. When the real-time one-way latency difference ΔT is greater than the first latency threshold but less than a second latency threshold, the window is expanded according to an adjustment coefficient. When the real-time one-way latency difference ΔT is greater than or equal to the first latency threshold, a link anomaly alarm is triggered and the window is shrunk. The second latency threshold is greater than the first latency threshold.
[0012] Furthermore, a device for implementing HSR / PRP industrial redundant transmission over a 5G air interface also includes a serial number continuous monitoring unit, used to detect whether there is an abnormal change in the serial number in the redundancy control field. If an abnormal change is detected, a serial number abnormality alarm is generated to assist the window adaptive adjustment unit in adjusting the window; if no abnormal change is detected, no serial number abnormality alarm is generated.
[0013] Furthermore, a device for implementing HSR / PRP industrial redundant transmission over a 5G air interface also includes a sequence number extension unit, used to embed auxiliary sorting information with more than 16 bits in the encapsulation extension field of the data frame, and to perform window auxiliary adjustment based on whether the auxiliary sorting information is ambiguous.
[0014] Furthermore, a device for implementing HSR / PRP industrial redundant transmission over a 5G air interface also includes a regulatory frame optimization unit, which is used to align the transmission time of the HSR / PRP regulatory frame with the uplink scheduling request cycle of the 5G NR communication module. When there are data frames to be transmitted, the regulatory frame information is embedded in the encapsulation extension field of the service frame and transmitted together. The regulatory frame is only transmitted independently in the uplink scheduling cycle when there are no data frames.
[0015] The beneficial effects of this application are as follows: By constructing an HSR / PRP redundant transmission architecture on the 5G air interface, message integrity detection is performed, truncated messages and abnormal messages with inconsistent redundancy control fields are rejected, and invalid messages are prevented from entering the HSR / PRP protocol stack, thus improving the processing efficiency of the protocol stack. By collecting multi-dimensional air interface parameters and performing weighted moving average and normalization fusion, the health of each link is evaluated in real time. Based on the health threshold, the system adaptively switches between redundant parallel, uniform distribution, healthy link tilt, or healthy link-only transmission modes, achieving dynamic matching between service traffic and link quality, and improving the overall transmission efficiency and reliability of the system under changing wireless environments. Through latency measurement and adaptive window adjustment, the PRP duplicate frame discard window dynamically changes with the one-way latency difference ΔT between links, reducing the erroneous discarding of effective redundant frames and the long-term buffer occupation of duplicate frames. By continuously monitoring sequence numbers and extending auxiliary sorting information, the ambiguity of message discrimination caused by sequence number flips and jumps is reduced. By merging regulatory frames and service frames during the uplink scheduling cycle, air interface signaling overhead and interference to service transmission are reduced. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is a schematic diagram illustrating the steps of a method for implementing HSR / PRP industrial redundant transmission over a 5G air interface according to the present invention. Detailed Implementation
[0018] The embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
[0019] The following specific examples illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that, in the absence of conflict, the following embodiments and features in the embodiments can be combined with each other. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0020] Example 1 A method for implementing HSR / PRP industrial redundant transmission over a 5G air interface includes the following steps: Step 1: Connect two or more 5G NR communication modules to network links of different frequency bands to establish tunnel encapsulation, and build HSR / PRP redundant virtual interfaces on the tunnel encapsulation for running the HSR / PRP protocol stack. By connecting two or more 5G NR communication modules to network links in different frequency bands and establishing tunnel encapsulation on each link, HSR / PRP industrial frames can transparently traverse the 5G core network. Redundant HSR / PRP virtual interfaces are constructed on each tunnel encapsulation for the protocol stack to run on. Connecting two or more 5G NR communication modules to network links in different frequency bands or from different operators creates air interface path diversity. In two links, these links act as backups for each other, forming the physical basis of the redundancy mechanism. This enables dual-transmission selective reception and preferential reception, where the receiver prioritizes the first arriving valid data frame from the two links. This ensures that end-to-end latency depends on the lower latency frame rather than the higher one, effectively reducing the average transmission delay of industrial control signals and improving the real-time performance and reliability of industrial control services.
[0021] Establishing a tunnel encapsulation by connecting two or more 5G NR communication modules to network links in different frequency bands, and building a redundant HSR / PRP virtual interface on the tunnel encapsulation for running the HSR / PRP protocol stack includes the following steps: Connect two or more 5G NR communication modules to network links of different frequency bands, and establish tunnel encapsulation on each link; HSR / PRP redundant virtual interfaces are built on each tunnel encapsulation, so that the protocol stack can run on the built HSR / PRP redundant virtual interfaces; After the HSR / PRP redundant virtual interface is constructed, the HSR / PRP data frames generated by the industrial control service at the sending end will be processed by the protocol stack, synchronously copied and distributed to all established independent tunnels, and concurrently transmitted through 5G air interface links of different operators and different frequency bands.
[0022] For example, the first and second 5G NR communication modules are connected to the 5G networks in the n28 band (700MHz FDD) and n41 band (2.6GHz TDD) respectively, forming inter-frequency air interface path diversity. This ensures that the two wireless transmission links are independent in terms of frequency resources, avoiding the impact of co-channel interference on redundant transmission performance. After the equipment is powered on, the first 5G NR communication module registers with the n28 band cell, and the second 5G NR communication module registers with the n41 band cell. The two modules complete network attachment and link establishment in their respective frequency bands, providing independent underlying wireless bearers for subsequent tunnel encapsulation. After each 5G NR communication module obtains an IP address, it establishes the first tunnel encapsulation (corresponding to the n28 link) and the second tunnel encapsulation (corresponding to the n41 link). Through the tunnel encapsulation mechanism, industrial Ethernet frames can transparently traverse the 5G core network, ensuring that industrial packets are not parsed or modified by core network equipment during transmission. On top of the two tunnel encapsulations, a PRP redundant virtual interface is constructed, abstracting the two independent tunnels into a unified redundant transmission channel. The PRP protocol stack runs on this PRP redundant virtual interface, responsible for copying and distributing data frames, as well as deduplication and optimization processing at the receiving end.
[0023] Step 2: Through the air interface awareness adaptation layer, perform integrity detection processing on the received industrial messages and HSR / PRP redundancy control fields to determine whether to submit the industrial messages to the HSR / PRP protocol stack for processing. Before each industrial message enters the HSR / PRP protocol stack, message integrity checks are performed on each industrial message and the HSR / PRP redundancy control field. The decision to submit the industrial message to the HSR / PRP protocol stack is based on the integrity check result. Optionally, the air interface awareness adaptation layer can perform integrity checks on each industrial message. If the integrity check passes, the corresponding industrial message is submitted to the HSR / PRP protocol stack for processing; if the integrity check fails, the corresponding industrial message is not submitted to the HSR / PRP protocol stack. By performing integrity checks on received industrial messages to determine whether to submit them to the protocol stack, packet loss and errors during 5G air interface transmission are filtered out, preventing corrupted messages from interfering with subsequent protocol stack processing and further ensuring the stability of redundant transmission.
[0024] The air interface awareness adaptation layer performs integrity checks on the received industrial messages and HSR / PRP redundancy control fields to determine whether to submit the industrial message to the HSR / PRP protocol stack for processing. This includes the following steps: Obtain the length information of the industrial message to be detected, and compare the length of the industrial message with the length of the HSR / PRP redundancy control field to initially screen out abnormal messages that do not meet the redundancy control field carrying requirements; If the length of the industrial message is less than the length of the HSR / PRP redundancy control field, it means that the data contained in the industrial message is insufficient to carry the complete HSR / PRP redundancy control information. The industrial message is directly determined to be a truncated message and is discarded without being submitted to the HSR / PRP protocol stack for processing. If the length of the industrial message is greater than or equal to the length of the HSR / PRP redundancy control field, a consistency check is performed. For messages that meet the length requirement, the RCT redundancy control field is read from the end of the message using a cache copying method. This avoids illegal address errors that may be caused by directly accessing the end address in the scenario of non-contiguous storage of 5G protocol stack cache. After reading, a consistency check is performed on the internal information of the RCT redundancy control field: the value of the PRP Suffix field is checked to see if it is the standard value 0xFB, and the length of the LSDU recorded in the RCT redundancy control field is consistent with the actual length of the message. Only when both checks pass can the industrial message be submitted to the HSR / PRP protocol stack for further processing; otherwise, the industrial message will not be submitted to the HSR / PRP protocol stack.
[0025] For example, the length information of the industrial message to be detected is obtained and compared with the length threshold of the PRP Redundancy Control Field (RCT). If the actual length of the message is less than the standard length of the RCT field (6 bytes), meaning the data contained in the message itself is insufficient to carry the complete PRP redundancy control information, the message is determined to be a truncated message and is discarded directly without being submitted to the PRP protocol stack for processing. If the message length meets the above threshold requirement, the RCT field is read from the end of the message using a cache copying method to avoid illegal address errors that may be caused by directly accessing the end address in the non-contiguous storage scenario of the 5G protocol stack cache. After reading, a consistency check is performed on the internal information of the RCT field: on the one hand, it is checked whether the value of the PRPSuffix field is the standard value 0xFB; on the other hand, it is checked whether the LSDU length recorded in the RCT is consistent with the actual length of the message. If both checks pass, the message is submitted to the PRP protocol stack for further processing.
[0026] Step 3: During the process of submitting industrial messages to the HSR / PRP protocol stack, obtain multi-dimensional air interface parameters of different network links to determine the link health of each link. During the submission of industrial messages to the HSR / PRP protocol stack, multi-dimensional air interface parameters of different network links are acquired. These parameters include Reference Received Power (RSRP), Signal-to-Interference-plus-Noise Ratio (SINR), Block Error Rate (BLER), HARQ (Hardware-Avoidance-Quick Retransmission), End-to-End Communication Delay, and Delay Jitter. Optionally, a weighted moving average algorithm can be used to smooth the collected multi-dimensional air interface parameters of each network link. After normalization, the parameters are fused according to preset weights to calculate the link health of each link. By determining the link health of each link, real-time quantitative evaluation and dynamic tracking of the transmission quality of each link can be achieved. This provides a reliable basis for the receiver's optimal processing in HSR / PRP redundant transmission, thereby improving the overall reliability and real-time performance of the redundant transmission mechanism in complex wireless environments.
[0027] During the process of submitting industrial messages to the HSR / PRP protocol stack, obtaining multi-dimensional air interface parameters of different network links and determining the link health of each link includes the following steps: Obtain multi-dimensional air interface parameters for different network links. These parameters include reference signal received power, signal-to-interference-plus-noise ratio, block error rate, number of retransmissions, end-to-end communication delay, and delay jitter. Each parameter collected within a preset time window is subjected to a weighted moving average to suppress the impact of sudden interference and transient fluctuations on the evaluation results. The smoothed reference signal received power, signal-to-interference-plus-noise ratio, block error rate, retransmission count, end-to-end communication delay, and delay jitter are normalized to a unified dimensionless interval and then fused according to preset weights to obtain the current link health of each link, as shown in the following expression: ; in, Let i be the current link health of the i-th link. This is the normalized reference signal received power; The normalized signal-to-interference-plus-noise ratio for the i-th link; Let be the normalized block error rate of the i-th link; The normalized retransmission count for the i-th link; Let be the normalized end-to-end communication delay for the i-th link; is the normalized delay jitter for the i-th link; w1 to w6 are the reference signal received power, signal-to-interference-plus-noise ratio, block error rate, retransmission count, end-to-end communication delay, and the weighting coefficients corresponding to delay jitter, respectively, and the sum of each weighting coefficient is 1.
[0028] For example, every 100ms sampling period, multi-dimensional air interface parameters are collected for the two independent 5G air interface transmission links, the first and second links. The collected parameters include the Reference Signal Received Power (RSRP) reflecting the received signal strength, the Signal-to-Interference-plus-Noise Ratio (SINR) reflecting the link signal quality, the Block Error Rate (BLER) reflecting data transmission errors, the HARQ retransmission count reflecting the link retransmission status, and end-to-end communication latency and latency jitter reflecting the real-time performance and stability of the transmission. Considering that 5G air interface signals are easily affected by factors such as mobile carriers passing through obstructed areas and sudden interference, resulting in instantaneous fluctuations, directly using a single sample value for evaluation is insufficient to accurately reflect the link's continuous transmission capability. Therefore, after obtaining the above parameters, a weighted moving average algorithm is used to smooth each parameter of each link using 10 consecutive sample values to suppress the interference of instantaneous fluctuations on the evaluation results, allowing the smoothed parameters to more stably reflect the actual air interface state of the link. After smoothing, RSRP, SINR, BLER, HARQ retransmission count, end-to-end communication delay, and delay jitter are mapped from their original dimensions and numerical ranges to a unified range of 0 to 100 to eliminate dimensional differences between different parameters. Based on this, a weighted fusion calculation is performed on each normalized parameter according to preset weight coefficients. In this embodiment, the weights used are as follows: RSRP 0.25, SINR 0.25, BLER 0.15, HARQ retransmission count 0.10, end-to-end communication delay 0.15, and delay jitter 0.10, with the sum of all weights being 1. Through the above weighted fusion, the Link Health Status (LHS) for the first and second links is obtained, with a value ranging from 0 to 100.
[0029] Step 4: Determine the link transmission mode based on the link health of each link, and generate the corresponding link transmission control signal; The link transmission mode is determined based on the link health of each link, and corresponding link transmission control signals are generated. The link transmission modes include redundant parallel transmission mode, uniform distribution transmission mode, healthy link tilt transmission mode, and healthy link transmission mode. Redundant parallel transmission mode is used when multiple links with health levels all above a first threshold simultaneously carry service data. Duplicate service frames are sent concurrently through all eligible links to ensure transmission reliability. Uniform distribution transmission mode distributes service frames evenly across links when the link health level is greater than or equal to a second threshold but less than a first threshold, thus balancing the load on each link. Healthy link tilt transmission mode allocates a higher proportion of service traffic to links with higher health levels when the link health level is greater than or equal to a third threshold but less than a second threshold, maximizing overall throughput while ensuring transmission reliability. Healthy link transmission mode only retains links with health levels above a threshold for service transmission, while the remaining links remain in standby mode to reduce unnecessary power consumption. In actual operation, the transmission mode is dynamically switched according to the real-time updated link health of each link to match the actual transmission capacity of each link, thereby achieving a balance between transmission reliability and resource utilization.
[0030] In redundant parallel transmission mode, a link redundancy parallel transmission control signal is generated to transmit the copied service frames in parallel through each link; in uniform distribution transmission mode, a link uniform transmission control signal is generated to distribute the service frames evenly to each link for transmission; in healthy link tilt transmission mode, a link tilt transmission control signal is generated to distribute the service frames proportionally to healthy links for transmission; in healthy link transmission mode, a healthy link transmission control signal is generated to allocate the service frames only to healthy links for transmission and disconnect links with values below the third threshold.
[0031] Determining the link transmission mode based on the link health of each link and generating the corresponding link transmission control signal includes the following steps: If the link health of all links is greater than or equal to the first threshold, the link transmission mode is determined to be the redundant parallel transmission mode, and a link redundant parallel transmission control signal is generated to transmit the copied service frames in parallel through each link. If the link with the lowest link health among all links has a link health greater than or equal to the second threshold setting threshold and less than the first threshold setting threshold, then the link transmission mode is determined to be the uniform distribution transmission mode, and a link uniform transmission control signal is generated to distribute the service frames evenly to each link for transmission. If the link with the lowest link health among all links has a link health greater than or equal to the third threshold and less than the second threshold, then the link transmission mode is determined to be the healthy link tilt transmission mode, and a link tilt transmission control signal is generated to proportionally tilt the service frames to the healthy link for transmission. If the link with the lowest link health among all links has a link health less than the third threshold, then the link transmission mode is determined to be the healthy link transmission mode, and a healthy link transmission control signal is generated to allocate service frames only to healthy links for transmission; wherein, the first threshold is greater than the second threshold, and the second threshold is greater than the third threshold.
[0032] For example, a first threshold is set to 70, a second threshold to 40, and a third threshold to 15, with a total of two links. When the link transmission mode is redundant parallel transmission mode, the link health of both links reaches 70 or above, indicating that both links are in excellent transmission condition. At this time, a redundant parallel transmission control signal is generated, and the sending end transmits the copied complete industrial data frame synchronously through both links. The receiving end can process the first arriving complete and valid frame according to the PRP protocol requirements, achieving redundant transmission guarantee with the lowest transmission latency. When the health of one link drops to the 40-69 range, while the other link still maintains a health of 70 or above, a uniform distribution transmission mode is triggered, distributing the service data frame equally to both links for transmission. This avoids over-consuming the transmission resources of the high-quality link and makes full use of the resources of the link in good condition, balancing the load level of the two links. When a link with a low health score falls between 15 and 39, a healthy link tilt transmission mode is triggered. In this mode, approximately 70% to 80% of the service traffic is allocated to links with higher health scores, and the remaining traffic is allocated to links with lower health scores. This fully utilizes existing link resources while prioritizing the transmission quality of high-priority industrial services. When the health score of any link drops below 15 (links with a health score greater than or equal to 15 are defined as healthy links, and links with a health score less than 15 are defined as unhealthy links), it is determined that the transmission quality of that link cannot meet the basic transmission requirements of industrial services. This triggers the healthy link transmission mode, where only links with sufficient health scores carry services. Unhealthy links are placed in standby monitoring mode until their health score rises above the threshold before being reclassified as healthy links. This avoids continuously consuming equipment processing and air interface resources, while ensuring that industrial service transmission is not affected by links with unstable quality.
[0033] Example 2 The above is a method for implementing HSR / PRP industrial redundant transmission over a 5G air interface provided in the embodiments of this application. The following is a device for implementing HSR / PRP industrial redundant transmission over a 5G air interface provided in the embodiments of this application.
[0034] A device for implementing HSR / PRP industrial redundant transmission over a 5G air interface includes an air interface awareness adaptation layer. This layer positions the 5G NR communication module between the HSR / PRP protocol stack. The air interface awareness adaptation layer includes: The redundant transmission architecture building unit is used to connect two or more 5G NR communication modules to network links of different frequency bands to establish tunnel encapsulation, and to build HSR / PRP redundant virtual interfaces on the tunnel encapsulation for running the HSR / PRP protocol stack. The message integrity detection unit performs integrity detection processing on the received industrial messages and HSR / PRP redundancy control fields to determine whether to submit the industrial message to the HSR / PRP protocol stack for processing. The link health assessment unit is used to obtain multi-dimensional air interface parameters of different network links during the process of submitting industrial messages to the HSR / PRP protocol stack, and to determine the link health of each link. The link transmission mode selection unit selects the link transmission mode based on the link health of each link and generates the corresponding link transmission control signal.
[0035] Example 3 The difference from Embodiment 2 is that a device for implementing HSR / PRP industrial redundant transmission over a 5G air interface further includes a latency measurement unit and a window adaptive adjustment unit. The latency measurement unit is used to insert probe frames into each 5G link to measure the one-way transmission latency and latency jitter of each link, and calculate the real-time one-way latency difference ΔT between links. The window adaptive adjustment unit is used to dynamically adjust the size of the PRP duplicate frame discard window according to the real-time one-way latency difference ΔT. When the real-time one-way latency difference ΔT is less than or equal to a first latency threshold, a standard window is used; when the real-time one-way latency difference ΔT is greater than the first latency threshold and less than a second latency threshold, the window is expanded according to the adjustment coefficient; when the real-time one-way latency difference ΔT is greater than or equal to the first latency threshold, a link anomaly alarm is triggered and the window is shrunk; wherein, the second latency threshold is greater than the first latency threshold.
[0036] Example 4 The difference from Embodiment 3 is that this device for implementing HSR / PRP industrial redundant transmission over a 5G air interface further includes a sequence number continuous monitoring unit. This unit detects whether abnormal changes occur in the sequence number of the redundancy control field. If an abnormal change is detected, a sequence number anomaly alarm is generated to assist the window adaptive adjustment unit in adjusting the window. If no abnormal change is detected, no sequence number anomaly alarm is generated. An abnormal change refers to the difference between the sequence number of the currently received packet and the sequence number of the previously received valid packet exceeding a preset allowable range, usually caused by packet loss or out-of-order transmission in unhealthy links. After a sequence number anomaly alarm is generated, the window adaptive adjustment unit can further verify the abnormal state of the current link, trigger a link anomaly alarm in advance, and shrink the window to avoid unnecessary buffering waiting due to delay measurement results, thereby improving the system's response speed to link anomalies.
[0037] Example 5 The difference from Embodiment 4 is that a device for implementing HSR / PRP industrial redundant transmission over a 5G air interface further includes a sequence number extension unit. This unit embeds auxiliary sorting information with more than 16 bits into the encapsulation extension field of the data frame, and performs window adjustment based on whether the auxiliary sorting information is ambiguous. Since the sequence number length specified in the HSR / PRP protocol standard is 16 bits, the representable sequence number space is relatively limited. In high-throughput transmission scenarios, the number of packets increases rapidly, and sequence number reversal and reuse may occur within a short time. When the sequence number is reversed, the receiving end will find it difficult to accurately distinguish between new and old packets based solely on the standard 16-bit sequence number, easily leading to sequence number ambiguity and affecting the accuracy of duplicate frame discard determination. Therefore, auxiliary sorting information with more than 16 bits is additionally embedded into the encapsulation extension field of the data frame to compensate for the shortcomings of the standard sequence number in high-speed transmission scenarios by expanding the sequence number space. When the receiving end performs deduplication, it first compares the 16-bit sequence number of the HSR / PRP protocol standard for preliminary judgment. When the standard sequence number can uniquely determine the message order, the deduplication process is completed directly based on the sequence number. When the sequence number is ambiguous due to flipping, out-of-order, or packet loss, and the order of messages cannot be accurately determined, the auxiliary sorting information is used for further judgment, thereby effectively improving the accuracy and reliability of deduplication judgment and avoiding the problem of accidental discarding caused by limited sequence number space.
[0038] Example 6 The difference from Embodiment 5 is that this device for implementing HSR / PRP industrial redundant transmission over a 5G air interface further includes a regulatory frame optimization unit. This unit aligns the transmission time of the HSR / PRP regulatory frame with the uplink scheduling request cycle of the 5G NR communication module. When there are data frames to be transmitted, the regulatory frame information is embedded in the encapsulation extension field of the service frame and transmitted together. The regulatory frame is only transmitted independently during uplink scheduling cycles when there are no data frames. During the operation of the HSR / PRP protocol, the regulatory frame undertakes key functions such as link status announcement, node information synchronization, and redundancy management and control. Its periodic transmission is a necessary condition for maintaining the normal operation of the protocol stack. However, in the 5G air interface transmission environment, each independent transmission of the regulatory frame requires separate uplink scheduling resources and introduces additional air interface access latency. If the transmission timing of the regulatory frame is inconsistent with the uplink scheduling request cycle of the 5G NR communication module, it may cause the regulatory frame to frequently trigger independent scheduling request processes, which not only increases the air interface signaling overhead but may also cause scheduling conflicts with service data transmission, affecting the real-time performance of industrial message transmission. To this end, in this embodiment, the regulatory frame optimization unit aligns the transmission time of the regulatory frame with the uplink scheduling request cycle of the 5G NR communication module, ensuring that the transmission rhythm of the regulatory frame is consistent with the scheduling rhythm of air interface resources. Based on this, when there is a data frame to be transmitted within a certain uplink scheduling cycle, the information carried by the regulatory frame is directly embedded into the encapsulation extension field of the service frame and transmitted along with the service frame. This avoids the regulatory frame occupying scheduling resources independently, reducing the number of air interface accesses and signaling overhead. Only in uplink scheduling cycles without data frames is the regulatory frame transmitted as an independent frame to ensure the continuity of the regulatory function. Through this combination of merged and independent transmission, while meeting the regulatory requirements of the HSR / PRP protocol, the occupation of air interface resources and the impact on the real-time performance of industrial services by regulatory frame transmission are effectively reduced.
[0039] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0040] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A method for implementing HSR / PRP industrial redundant transmission over a 5G air interface, characterized in that, Includes the following steps: Step 1: Connect two or more 5G NR communication modules to network links of different frequency bands to establish tunnel encapsulation, and build HSR / PRP redundant virtual interfaces on the tunnel encapsulation for running the HSR / PRP protocol stack. Step 2: Through the air interface awareness adaptation layer, perform integrity checks on the received industrial messages and HSR / PRP redundancy control fields to determine whether to submit the industrial messages to the HSR / PRP protocol stack for processing; wherein, when the length of the industrial message is greater than or equal to the length of the HSR / PRP redundancy control field and the consistency check passes, the industrial message is submitted to the HSR / PRP protocol stack for processing. Step 3: During the process of submitting industrial messages to the HSR / PRP protocol stack, obtain multi-dimensional air interface parameters of different network links to determine the link health of each link. Step 4: Determine the link transmission mode based on the link health of each link, and generate the corresponding link transmission control signal.
2. The method for implementing HSR / PRP industrial redundant transmission over a 5G air interface according to claim 1, characterized in that, The step of establishing a tunnel encapsulation by connecting two or more 5G NR communication modules to network links of different frequency bands, and constructing a redundant HSR / PRP virtual interface on the tunnel encapsulation for running the HSR / PRP protocol stack includes the following steps: Connect two or more 5G NR communication modules to network links of different frequency bands, and establish tunnel encapsulation on each link; HSR / PRP redundant virtual interfaces are built on each tunnel encapsulation, so that the protocol stack can run on the built HSR / PRP redundant virtual interfaces; After the HSR / PRP redundant virtual interface is constructed, the HSR / PRP data frames generated by the industrial control service at the sending end will be processed by the protocol stack, synchronously copied and distributed to all established independent tunnels, and concurrently transmitted through 5G air interface links of different operators and different frequency bands.
3. The method for implementing HSR / PRP industrial redundant transmission over a 5G air interface according to claim 1, characterized in that, The process of performing integrity checks on received industrial messages and HSR / PRP redundancy control fields through the air interface awareness adaptation layer to determine whether to submit the industrial message to the HSR / PRP protocol stack for processing includes the following steps: Obtain the length information of the industrial message to be detected, and compare the length of the industrial message with the length of the HSR / PRP redundancy control field to initially screen out abnormal messages that do not meet the redundancy control field carrying requirements; If the length of the industrial message is less than the length of the HSR / PRP redundancy control field, it means that the data contained in the industrial message is insufficient to carry the complete HSR / PRP redundancy control information. The industrial message is directly determined to be a truncated message and is discarded without being submitted to the HSR / PRP protocol stack for processing. If the length of the industrial message is greater than or equal to the length of the HSR / PRP redundancy control field, a consistency check is performed. For messages that meet the length requirement, the RCT redundancy control field is read from the end of the message using a cache copying method. This avoids illegal address errors that may be caused by directly accessing the end address in the scenario of non-contiguous storage of 5G protocol stack cache. After reading, a consistency check is performed on the internal information of the RCT redundancy control field: the value of the PRP Suffix field is checked to see if it is the standard value 0xFB, and the length of the LSDU recorded in the RCT redundancy control field is consistent with the actual length of the message. Only when both checks pass can the industrial message be submitted to the HSR / PRP protocol stack for further processing; otherwise, the industrial message will not be submitted to the HSR / PRP protocol stack.
4. The method for implementing HSR / PRP industrial redundant transmission over a 5G air interface according to claim 1, characterized in that, The process of obtaining multi-dimensional air interface parameters of different network links and determining the link health of each link during the submission of industrial messages to the HSR / PRP protocol stack includes the following steps: Obtain multi-dimensional air interface parameters for different network links. These parameters include reference signal received power, signal-to-interference-plus-noise ratio, block error rate, number of retransmissions, end-to-end communication delay, and delay jitter. Each parameter collected within a preset time window is subjected to a weighted moving average to suppress the impact of sudden interference and transient fluctuations on the evaluation results; The smoothed reference signal received power, signal-to-interference-plus-noise ratio, block error rate, retransmission count, end-to-end communication delay, and delay jitter are normalized to a unified dimensionless interval and then fused according to preset weights to obtain the current link health of each link.
5. The method for implementing HSR / PRP industrial redundant transmission over a 5G air interface according to claim 1, characterized in that, The process of determining the link transmission mode based on the link health of each link and generating the corresponding link transmission control signal includes the following steps: If the link health of all links is greater than or equal to the first threshold, the link transmission mode is determined to be the redundant parallel transmission mode, and a link redundant parallel transmission control signal is generated to transmit the copied service frames in parallel through each link. If the link with the lowest link health among all links has a link health greater than or equal to the second threshold setting threshold and less than the first threshold setting threshold, then the link transmission mode is determined to be the uniform distribution transmission mode, and a link uniform transmission control signal is generated to distribute the service frames evenly to each link for transmission. If the link with the lowest link health among all links has a link health greater than or equal to the third threshold and less than the second threshold, then the link transmission mode is determined to be the healthy link tilt transmission mode, and a link tilt transmission control signal is generated to proportionally tilt the service frames to the healthy link for transmission. If the link with the lowest link health among all links has a link health less than the third threshold, then the link transmission mode is determined to be the healthy link transmission mode, and a healthy link transmission control signal is generated to allocate service frames only to healthy links for transmission; wherein, the first threshold is greater than the second threshold, and the second threshold is greater than the third threshold.
6. A device for implementing HSR / PRP industrial redundant transmission over a 5G air interface, used to implement the method for implementing HSR / PRP industrial redundant transmission over a 5G air interface as described in any one of claims 1-5, characterized in that, This includes an air interface awareness adaptation layer, which sets up the 5G NR communication module between the HSR / PRP protocol stack. The air interface awareness adaptation layer includes: The redundant transmission architecture building unit is used to connect two or more 5G NR communication modules to network links of different frequency bands to establish tunnel encapsulation, and to build HSR / PRP redundant virtual interfaces on the tunnel encapsulation for running the HSR / PRP protocol stack. The message integrity detection unit performs integrity detection processing on the received industrial messages and HSR / PRP redundancy control fields to determine whether to submit the industrial message to the HSR / PRP protocol stack for processing. The link health assessment unit is used to obtain multi-dimensional air interface parameters of different network links during the process of submitting industrial messages to the HSR / PRP protocol stack, and to determine the link health of each link. The link transmission mode selection unit selects the link transmission mode based on the link health of each link and generates the corresponding link transmission control signal.
7. The device for implementing HSR / PRP industrial redundant transmission over a 5G air interface according to claim 6, characterized in that, The air interface awareness adaptation layer also includes a latency measurement unit and a window adaptive adjustment unit. The latency measurement unit is used to insert probe frames into each 5G link to measure the one-way transmission latency and latency jitter of each link, and calculate the real-time one-way latency difference ΔT between links. The window adaptive adjustment unit is used to dynamically adjust the size of the PRP duplicate frame discard window according to the real-time one-way latency difference ΔT. When the real-time one-way latency difference ΔT is less than or equal to a first latency threshold, a standard window is used; when the real-time one-way latency difference ΔT is greater than the first latency threshold and less than a second latency threshold, the window is expanded according to the adjustment coefficient; when the real-time one-way latency difference ΔT is greater than or equal to the first latency threshold, a link anomaly alarm is triggered and the window is shrunk; wherein, the second latency threshold is greater than the first latency threshold.
8. The device for implementing HSR / PRP industrial redundant transmission over a 5G air interface according to claim 7, characterized in that, The air interface awareness adaptation layer also includes a serial number continuous monitoring unit, which is used to detect whether there is an abnormal change in the serial number in the redundant control field. If an abnormal change is detected, a serial number abnormality alarm is generated to assist the window adaptive adjustment unit in adjusting the window; if no abnormal change is detected, no serial number abnormality alarm is generated.
9. The device for implementing HSR / PRP industrial redundant transmission over a 5G air interface according to claim 8, characterized in that, The air interface awareness adaptation layer also includes a sequence number extension unit, which is used to embed auxiliary sorting information with more than 16 bits in the encapsulation extension field of the data frame, and to perform window auxiliary adjustment based on whether the auxiliary sorting information is ambiguous.
10. The device for implementing HSR / PRP industrial redundant transmission over a 5G air interface according to claim 9, characterized in that, The air interface awareness adaptation layer also includes a regulatory frame optimization unit, which is used to align the transmission time of HSR / PRP regulatory frames with the uplink scheduling request cycle of the 5G NR communication module. When there are data frames to be transmitted, the regulatory frame information is embedded in the encapsulation extension field of the service frame and transmitted together. The regulatory frame is only transmitted independently in the uplink scheduling cycle when there are no data frames.
