Anti-error code data transmission method based on SRT protocol and storage medium
By real-time statistics on packet loss and bit error rates and dynamically adjusting the anti-bit error strategy, the problem of SRT protocol's simple error control strategy in wireless networks is solved, and efficient anti-bit error function and adaptive adjustment are achieved.
Patent Information
- Application Number
- CN202411745965.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-04-22
AI Technical Summary
The existing SRT protocol has a relatively simple code error control strategy in wireless networks and cannot be adaptively adjusted, resulting in easy network congestion in wireless networks.
By counting packet loss and bit error rates in real time, an error correction policy selection library is established, and anti-bit error policies are dynamically adjusted according to the current network status, including the combination of ARQ and FEC.
It realizes the efficient anti-code error function of using SRT protocol for video data or service data transmission in wireless communication networks, reducing additional bandwidth overhead and adapting to different network states.
Smart Images

Figure CN119865670A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of communication technology, and in particular to an error-resistant data transmission method and storage medium based on an SRT protocol. Background Art
[0002] In wireless network communications, large amounts of data, fluctuations in communication quality, electromagnetic interference, and environmental factors can easily cause data jitter, packet loss, and bit errors within the network. When transmitting high-compression ratio (such as H264 / H265) encoded videos with high real-time requirements, jitter and packet loss problems can easily cause video freezes and screen distortion. Bit errors, because video encoding removes the temporal and spatial correlations of data as much as possible, can easily cause error diffusion during decoding and lead to abnormal screen display. When transmitting other types of data, erroneous data packets are discarded after verification fails at the receiving end, exacerbating the packet loss problem.
[0003] To overcome such problems, the SRT (Secure Reliable Transport) protocol can be used for data transmission. In addition, the SRT protocol has great advantages in delay, encryption, etc., and can be applied to business transmission scenarios with high real-time requirements.
[0004] At present, the SRT protocol has three strategies for handling bit errors: single ARQ, single FEC, and ARQ and FEC. The implementation logic of the ARQ and FEC combination is: FEC is enabled for all data packets, and the recoverable packets are directly recovered, and ARQ is started once when FEC recovery fails.
[0005] The three error control strategies currently provided by the SRT protocol are relatively simple and cannot be adaptively adjusted according to the real-time status of the network. Therefore, directly adopting these three strategies in actual applications will not achieve the optimal and most efficient bandwidth control effect, and it is also more likely to cause network congestion in communication scenarios with limited channel capacity such as wireless networks.
[0006] Therefore, there is an urgent need for a design of efficient error control function for data packets when using the SRT protocol for video data or business data transmission in wireless communication networks. Considering the limited bandwidth resources of wireless networks, the present invention reduces the additional bandwidth overhead as much as possible while ensuring the error resistance performance, and can perform adaptive adjustments according to different network states. Summary of the invention
[0007] The present invention provides an error-resistant data transmission method and storage medium based on the SRT protocol, in order to solve the technical problem in the prior art that the three error control strategies provided by the SRT protocol are relatively simple and cannot be adaptively adjusted according to the real-time status of the network, and are more likely to cause network congestion in communication scenarios with limited channel capacity such as wireless networks.
[0008] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0009] The present invention provides an error-resistant data transmission method based on the SRT protocol, comprising the following steps:
[0010] S100, the sending end sends a handshake request to the receiving end, and the receiving end responds to complete the handshake; the sending end issues a parameter declaration, and the receiving end responds to complete the parameter transfer;
[0011] S200, the transmitting end starts to send video data packets, and the receiving end receives them; the receiving end counts the number of lost packets, the number of check error packets, the amount of disordered packets and the total amount of data packets received in real time, and obtains the values of bit error rate and packet loss rate;
[0012] S300, establishing an error correction strategy selection library, wherein the error correction strategy selection library includes several error scenarios, each of which includes a packet loss rate and a bit error rate, and an anti-error strategy corresponding to the packet loss rate and the bit error rate;
[0013] S400, the receiving end compares the currently statistically obtained bit error rate and packet loss rate with the results calculated in the previous time window. If there is a change and it meets the situation in the error correction strategy selection library, the anti-error strategy suitable for the current state is sent to the sending end through the self-organizing network. After receiving the anti-error strategy, the sending end responds and sends the video data with the new strategy.
[0014] On this basis, the present invention can also be improved as follows: in step S400, the error-proof strategy includes adopting an ARQ strategy and a FEC strategy, specifically:
[0015] If the packet loss rate and bit error rate are both 0, no error mitigation strategy is required;
[0016] If the packet loss rate is not 0 and the bit error rate is 0, the ARQ strategy is adopted;
[0017] If the bit error rate is lower than 10-6, the ARQ strategy is adopted;
[0018] If the packet loss rate is 0 and the bit error rate is 10-6 to 10-3, the FEC strategy is adopted;
[0019] If the packet loss rate is not 0 and the bit error rate is 10-6 to 10-3, the FEC or ARQ strategy is used;
[0020] If the bit error rate is greater than 10-3, a combination of FEC and ARQ strategies is adopted.
[0021] On this basis, the present invention can also be improved as follows: in the step S100, before the sending end sends the handshake request to the receiving end, the following step is further included:
[0022] The sender or receiver sends an ARP packet to the wireless network, and after receiving a response from the other party, determines the data transmission channel.
[0023] On this basis, the present invention can also be improved as follows: in the step S200, after obtaining the values of the bit error rate and the packet loss rate, the following is further included:
[0024] The preset time range is used as the time window to update the statistical results.
[0025] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described above are implemented.
[0026] The beneficial effects provided by the present invention are:
[0027] The present invention proposes an error-resistant data transmission method and storage medium based on the SRT protocol, which can reduce the extra bandwidth overhead as much as possible while ensuring the error-resistant performance, and can perform adaptive adjustment according to different network states.
[0028] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 A schematic diagram of the structural framework provided by the present invention;
[0030] Figure 2 This is a schematic diagram of data communication within the ad hoc network provided by the present invention. DETAILED DESCRIPTION
[0031] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the protection scope of the present invention.
[0032] like Figure 1As shown, the present invention provides an error-resistant data transmission method based on the SRT protocol, which counts network status such as packet loss and error in real time, calculates and analyzes the current network situation, and establishes a suitable error-resistant strategy at both ends of the SRT protocol. The schematic diagram of data communication in the ad hoc network is shown in FIG. Figure 2 As shown, the following steps are included:
[0033] S100, the sending end sends a handshake request to the receiving end, and the receiving end responds to complete the handshake; the sending end issues a parameter declaration, and the receiving end responds to complete the parameter transfer;
[0034] S200, the transmitting end starts to send video data packets, and the receiving end receives them; the receiving end counts the number of lost packets, the number of check error packets, the amount of disordered packets and the total amount of data packets received in real time, and obtains the values of bit error rate and packet loss rate;
[0035] S300, establishing an error correction strategy selection library, wherein the error correction strategy selection library includes several error scenarios, each of which includes a packet loss rate and a bit error rate, and an anti-error strategy corresponding to the packet loss rate and the bit error rate;
[0036] S400, the receiving end compares the currently statistically obtained bit error rate and packet loss rate with the results calculated in the previous time window. If there is a change and it meets the situation in the error correction strategy selection library, the anti-error strategy suitable for the current state is sent to the sending end. After receiving the anti-error strategy, the sending end responds and ensures that the strategies of both parties are consistent, and then sends the video data with the new strategy.
[0037] The solution provided by the present invention has the following effects:
[0038] The present invention collects statistics on network status such as packet loss and bit errors in real time, calculates and analyzes the current network situation, and establishes appropriate anti-error strategies at both ends of the SRT protocol, thereby ensuring anti-error performance while minimizing additional bandwidth overhead; at the same time, in order to adapt to the complex and changeable network communication quality, a function of adaptive adjustment for different network states is added, thereby realizing a high-efficiency anti-error function of using the SRT protocol for video data or business data transmission in a wireless communication network.
[0039] Optionally, in some possible implementations, in step S400, the anti-error strategy includes adopting an ARQ strategy and an FEC strategy. For example, in the previous time window, the packet loss and error are extremely low, and the adopted strategy is ARQ. Then, there is interference from adjacent frequency signals in the network or the environment changes. In the current window, an increase in the bit error rate can be observed. When it reaches a moderate level, the receiving end notifies the sending end to turn on FEC. Specifically,
[0040] If the packet loss rate and bit error rate are both 0, no error mitigation strategy is required;
[0041] If the packet loss rate is not 0 and the bit error rate is 0, the ARQ strategy is adopted;
[0042] If the bit error rate is less than 10 -6 , then adopt ARQ strategy;
[0043] If the packet loss rate is 0 and the bit error rate is 10 -6 ~10 -3 , then adopt the FEC strategy;
[0044] If the packet loss rate is not 0 and the bit error rate is 10 -6 ~10 -3 , then adopt FEC or ARQ strategy;
[0045] If the bit error rate is greater than 10 -3 If it is greater than, a combination of FEC and ARQ strategies is adopted.
[0046] Optionally, in some possible implementations, in step S100, before the sending end sends the handshake request to the receiving end, the step further includes:
[0047] The sender or receiver sends an ARP packet to the wireless network, and after receiving a response from the other party, determines the data transmission channel.
[0048] Optionally, in some possible implementations, in step S200, after obtaining the values of the bit error rate and the packet loss rate, the step further includes:
[0049] The statistical results are updated using a preset time range as a time window to update the current data in real time and ensure the accuracy of the data. The preset time can be confirmed based on the actual situation during use, and is preferably 10 seconds.
[0050] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described above are implemented.
[0051] Optionally, in some possible implementations, all or part of the above implementations may be included.
[0052] It should be understood that in the description of this specification, reference to the terms "one embodiment", "some embodiments", "example", "specific example" or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this description, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and some features of different embodiments or examples without contradicting each other.
[0053] Of course, without departing from the spirit and essence of the present invention, those skilled in the art may make various corresponding changes and modifications based on the present invention, but these changes and modifications should all fall within the scope of protection of the claims of the present invention.
Claims
1. A method for error-resistant data transmission based on the SRT protocol, characterized in that: The following steps are included: S100, the sending end sends a handshake request to the receiving end, and the receiving end responds to complete the handshake; the sending end issues a parameter declaration, and the receiving end responds to complete the parameter transfer; S200, the transmitting end starts to send video data packets, and the receiving end receives them; the receiving end counts the number of lost packets, the number of check error packets, the amount of disordered packets and the total amount of data packets received in real time, and obtains the values of bit error rate and packet loss rate; S300, establishing an error correction strategy selection library, wherein the error correction strategy selection library includes several error scenarios, each of which includes a packet loss rate and a bit error rate, and an anti-error strategy corresponding to the packet loss rate and the bit error rate; S400, the receiving end compares the currently statistically obtained bit error rate and packet loss rate with the results calculated in the previous time window. If there is a change and it meets the situation in the error correction strategy selection library, the anti-error strategy suitable for the current state is sent to the sending end through the self-organizing network. After receiving the anti-error strategy, the sending end responds and sends the video data with the new strategy.
2. The error-resistant data transmission method according to claim 1, characterized in that: In step S400, the error-proof strategy includes adopting an ARQ strategy and a FEC strategy, specifically: If the packet loss rate and bit error rate are both 0, no error mitigation strategy is required; If the packet loss rate is not 0 and the bit error rate is 0, the ARQ strategy is adopted; If the bit error rate is less than 10 -6 , then adopt ARQ strategy; If the packet loss rate is 0 and the bit error rate is 10 -6 ~10 -3 , then adopt the FEC strategy; If the packet loss rate is not 0 and the bit error rate is 10 -6 ~10 -3 , then adopt FEC or ARQ strategy; If the bit error rate is greater than 10 -3 If it is greater than, a combination of FEC and ARQ strategies is adopted.
3. The error-resistant data transmission method according to claim 1, characterized in that: In the step S100, before the sending end sends the handshake request to the receiving end, the step further includes: The sender or receiver sends an ARP packet to the wireless network, and after receiving a response from the other party, determines the data transmission channel.
4. The error-resistant data transmission method according to claim 1, characterized in that: In the step S200, after obtaining the values of the bit error rate and the packet loss rate, the following steps are further included: The preset time range is used as the time window to update the statistical results.
5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to claims 1 to 4 are implemented.