Data transmission method, electronic equipment, storage medium and program product
By predicting the packet loss rate of the target device and dynamic redundant coding of the data packet, the problem of low data transmission efficiency and high frequency of transmission in the existing technology has been solved, and more efficient and reliable data transmission is achieved.
Patent Information
- Application Number
- CN202411503611.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2025-01-28
AI Technical Summary
In the prior art, data transmission efficiency is low and packet loss data retransmission frequency is high, especially when network conditions are harsh, resulting in higher packet loss rate and network congestion.
By obtaining the target network status data and target operation data of the target device, the real -time and predictive packet loss rate of the target equipment is predicted, and the redundant encoding of the transmission data packet is used according to the predicted package rate, and the degree of redundant encoding is dynamically adjusted to ensure data transmission Reliability and efficiency.
The efficiency and fault tolerance rate of data transmission have been improved, the frequency of re -transmission of data packets is reduced, and network congestion and resource waste are avoided, and data transmission integrity under different network conditions is ensured.
Smart Images

Figure CN119382826A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data transmission, and in particular to a data transmission method, electronic equipment, storage medium and program product. Background Art
[0002] In modern power systems, the reliable operation of the power grid depends on a large amount of real-time monitoring data and control instructions. These data include power grid operating parameters such as voltage, current, frequency, and the status information of various devices. Due to the wide distribution of power grid equipment and the complex and changeable network environment, especially in remote areas or areas with poor network conditions, network packet loss is often encountered during data transmission.
[0003] In the prior art, after detecting that a data packet is lost, the sending end will resend the lost data packet to the receiving end through the network until the retransmission is successful.
[0004] Although the above scheme can compensate for data loss to a certain extent, packet loss usually occurs during periods of poor network conditions. If a large amount of packet loss occurs at this time, the transmission burden of the network will increase, resulting in a higher packet loss rate. In addition, in the case of a high packet loss rate, the retransmission frequency will be too high, which will further lead to network congestion, causing more data packet loss and low data transmission efficiency. Summary of the invention
[0005] The present invention provides a data transmission method, electronic equipment, storage medium and program product to solve the problems of low data transmission efficiency and high retransmission frequency of lost data in the prior art.
[0006] According to one aspect of the present invention, there is provided a data transmission method, comprising:
[0007] Acquire target network status data of the target device, and determine the real-time packet loss rate of the target device at a preset time according to the target network status data;
[0008] Acquire target operation data of a target device, and determine a predicted packet loss rate of the target device according to the target operation data, the target network status data, and the real-time packet loss rate;
[0009] Redundancy encoding is performed on the data packet to be transmitted according to the predicted packet loss rate to obtain a target transmission data packet, and the target transmission data packet is transmitted to the target device.
[0010] According to another aspect of the present invention, there is provided a data transmission device, comprising:
[0011] A real-time packet loss rate determination module, used to obtain target network status data of a target device, and determine a real-time packet loss rate of the target device at a preset time according to the target network status data;
[0012] A predicted packet loss rate determination module, used to obtain target operation data of a target device, and determine the predicted packet loss rate of the target device according to the target operation data, the target network status data and the real-time packet loss rate;
[0013] The data transmission module is used to perform redundant encoding on the data packet to be transmitted according to the predicted packet loss rate to obtain a target transmission data packet, and transmit the target transmission data packet to the target device.
[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0015] at least one processor; and
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the data transmission method described in any embodiment of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data transmission method described in any embodiment of the present invention when executed.
[0019] According to another aspect of the present invention, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the data transmission method according to any embodiment of the present invention is implemented.
[0020] The technical solution of the embodiment of the present invention obtains the target network status data of the target device, and determines the real-time packet loss rate of the target device at a preset time according to the target network status data. By obtaining the target operation data of the target device, and determining the predicted packet loss rate of the target device according to the target operation data, the target network status data and the real-time packet loss rate, the future packet loss rate of the target device can be predicted, and then the data packet to be transmitted is redundantly encoded according to the predicted packet loss rate to obtain the target transmission data packet, and the target transmission data packet is transmitted to the target device. The redundant encoding degree of the data to be transmitted can be dynamically adjusted according to the predicted packet loss rate to ensure that data recovery can be effectively performed under different network conditions, avoid the waste of resources caused by too much redundant encoding and the situation that data cannot be recovered due to too little redundancy, improve the transmission efficiency and fault tolerance of data transmission, and reduce the retransmission frequency of data packets.
[0021] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0023] Figure 1 is a flowchart of a data transmission method provided according to Embodiment 1 of the present invention;
[0024] Figure 2 is a flowchart of another data transmission method provided according to Embodiment 2 of the present invention;
[0025] Figure 3 is a flowchart of another data transmission method provided according to Embodiment 3 of the present invention;
[0026] Figure 4 is a structural schematic diagram of a data transmission device provided according to Embodiment 4 of the present invention;
[0027] Figure 5 It is a structural schematic diagram of an electronic device for implementing the data transmission method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the 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 should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] Embodiment 1
[0031] Figure 1 1 is a flowchart of a data transmission method provided according to the first embodiment of the present invention. This embodiment is applicable to the case where data is redundantly encoded according to the predicted packet loss rate of the target device and the redundantly encoded data is sent to the target device. The method can be executed by a data transmission device, which can be implemented in the form of hardware and / or software, and can be configured in an electronic device. Figure 1 As shown, the method includes:
[0032] S110: Acquire target network status data of a target device, and determine a real-time packet loss rate of the target device at a preset time according to the target network status data.
[0033] Among them, the target device can be a node device or terminal device in the power system of the power grid that can send and receive data packets. For example, it can be used to accurately measure electric energy and realize two-way data transmission in the power system. The telemetry terminal is used for real-time measurement and monitoring of various parameters in the power system; the telemetering terminal is used to monitor and control various switch states, equipment states and other information in the power system; the feeder terminal device used to realize the connection between the master station and the equipment of the communication network automation system; the station terminal used to realize data acquisition and remote control functions and other equipment.
[0034] The target network status data may be various data related to the network status of the target device, used to characterize the network operation status or network performance of the target device at or before the current moment. The target network status data may include at least one of bandwidth data and delay data of the target device at different time nodes.
[0035] The real-time packet loss rate at a preset time can be the ratio of the number of lost data packets to the total number of sent data packets during the process of sending and receiving data packets by the target device at a specific, pre-set time point. This ratio can be expressed in the form of a percentage, which is used to characterize the packet loss rate of the target device at the preset time. The real-time packet loss rate at the preset time can be determined based on the reception of the data packets by the target device and / or the target network status data. For example, within a data transmission time window, 100 data need to be sent to the target device through the network. When the 50th data packet is sent by the sender, the target device only receives 40 data packets. The real-time packet loss rate of the target device at the current moment is 20%. If the target device only receives 45 data packets, the real-time packet loss rate of the target device at the current moment is 10%. If the target device receives 50 data packets, the real-time packet loss rate of the target device at the current moment is 0%.
[0036] Exemplarily, the network status of the target device can be monitored by a network monitoring device, and the bandwidth data and delay data of the target device at the current time node and before the current time node can be obtained by processing the monitored data, and then combined with the data packet reception status of the target device, the real-time packet loss rate of the target device at the current moment or before the current moment can be obtained.
[0037] S120: Acquire target operation data of the target device, and determine a predicted packet loss rate of the target device according to the target operation data, target network status data, and the real-time packet loss rate.
[0038] The target operation data may be various data related to the operation state of the target device, used to characterize the operation state or operation parameters of the target device at or before the current moment. The target operation data may include at least one of the voltage, current, operation time, memory usage, and CPU usage of the target device at or before the current moment.
[0039] The predicted packet loss rate of the target device may be a ratio obtained by predicting the packet loss situation that may occur in the network communication process of the target device in the future period of time based on the target device's operating data, network status data, real-time packet loss rate at the current moment, and historical operating data, historical network status data, and historical packet loss before the current moment. The predicted packet loss rate of the target device may be used to characterize the packet loss situation of the target device in the future period of time.
[0040] Exemplarily, the target operation data of the target device can be obtained through the operation monitoring device, and various data of the operation status or operation parameters of the target device at the current moment or before the current moment can be obtained by processing the target operation data, and then the predicted packet loss rate of the target device can be determined by combining the various data of the operation status or operation parameters of the target device at the current moment or before the current moment and the target network state data and the determined real-time packet loss rate. After determining the predicted packet loss rate of the target device, corresponding measures can be taken to optimize the data transmission scheme, realize complete data transmission, avoid hidden dangers caused by data packet loss, and improve data transmission reliability.
[0041] S130 , performing redundant encoding on the data packet to be transmitted according to the predicted packet loss rate to obtain a target transmission data packet, and transmitting the target transmission data packet to a target device.
[0042] Before transmitting the target transmission data packet to the target device, the method may further include: determining the priority of each data packet according to the priority label of each data packet in the target transmission data packet, wherein the priority label of the data packet may be a label that is determined in advance according to the importance and real-time nature of the data packet and is used to characterize the importance of the data packet. The priority label may include high priority, medium priority and low priority.
[0043] The data packet to be transmitted may be a data packet that needs to be sent from a data source to a target device within a certain time interval. The data packet may be different types of data information, such as text, image, audio, video or control instruction information.
[0044] The target transmission data packet may be a redundant coded packet corresponding to the data packet to be transmitted obtained after redundant coding processing. Redundant coding refers to a technology that adds redundant information in data transmission, aiming to improve the reliability and integrity of data transmission. By redundantly encoding the data packet to be transmitted according to the predicted packet loss rate to obtain the target transmission data packet, the target device can still recover the original data through the decoding process when the data packet to be transmitted is lost.
[0045] Exemplarily, the original data may be divided into groups of a fixed size, and then the data of each group may be encoded to generate a codeword containing redundant information. By redundantly encoding the target transmission data packet to obtain the target transmission data packet, when part of the data packet is lost or damaged during the data transmission or storage process, the data information of the lost data packet may be restored by combining the redundant information in the target transmission data packet with the remaining correct data.
[0046] Optionally, transmitting the target transmission data packet to the target device may include: transmitting the target transmission data packet to the target device according to a priority of the data packet and a current network status of the target device.
[0047] Exemplarily, after redundantly encoding the data packets to be transmitted according to the predicted packet loss rate and obtaining the target transmission data packets, the high priority data packets can be transmitted first, the medium priority data packets can be transmitted after the high priority data packets, and the low priority data packets can be transmitted when the network is idle.
[0048] The technical solution of the embodiment of the present invention obtains the target network status data of the target device, and determines the real-time packet loss rate of the target device at a preset time according to the target network status data. By obtaining the target operation data of the target device, and determining the predicted packet loss rate of the target device according to the target operation data, the target network status data and the real-time packet loss rate, the future packet loss rate of the target device can be predicted, and then the data packet to be transmitted is redundantly encoded according to the predicted packet loss rate to obtain the target transmission data packet, and the target transmission data packet is transmitted to the target device according to the network status and the different priorities of the data packet. The redundant encoding degree of the data to be transmitted can be dynamically adjusted according to the predicted packet loss rate to ensure that data recovery can be effectively performed under different network conditions and improve transmission reliability; avoid the waste of resources caused by excessive redundant encoding and the situation that data cannot be recovered due to too little redundancy, thereby improving the transmission efficiency and fault tolerance of data transmission.
[0049] Embodiment 2
[0050] Figure 2 This is a flowchart of another data transmission method provided according to the second embodiment of the present invention. Based on the above embodiment, this embodiment refines the acquisition of target network status data of the target device, and determines the real-time packet loss rate of the target device at a preset time according to the target network status data; acquires the target operation data of the target device, and determines the predicted packet loss rate of the target device according to the target operation data, the target network status data and the real-time packet loss rate; performs redundant encoding on the data packet to be transmitted according to the predicted packet loss rate to obtain the target transmission data packet, and transmits the target transmission data packet to the target device. Figure 2 As shown, the method includes:
[0051] S210: Acquire target network status data of the target device, determine device network statistical information of the target device according to the target network status data, and determine a real-time packet loss rate of the target device at a preset time according to the device network statistical information.
[0052] Among them, the device network statistical information can be the network statistical information of the target device obtained by analyzing and processing the target network status data after the target network status data is acquired. The device network statistical information may include the maximum network delay, minimum network delay, average network delay and standard deviation of network delay, the maximum packet loss rate, minimum packet loss rate, average packet loss rate and standard deviation of packet loss rate of the target device in a preset time interval, as well as the maximum bandwidth, minimum bandwidth, average bandwidth and standard deviation of bandwidth. Among them, the preset time interval can be the time from when the target device starts to receive data packets to the preset moment, and the preset moment is the moment to determine the real-time packet loss rate. The embodiment of the present invention does not specifically limit the method for determining the preset moment, and those skilled in the art can set it according to their needs, or determine it according to the packet loss rate detection requirements.
[0053] Optionally, the real-time packet loss rate of the target device at a preset time is determined based on the device network statistical information, including: determining the network fluctuation value of the target device at the preset time based on the device network statistical information, and determining the target sliding window value of the target device at the preset time based on the network fluctuation value; determining the real-time packet loss rate of the target device at the preset time based on the target sliding window value and the data packet reception status of the target device at the preset time.
[0054] The network fluctuation value may be determined based on the device network statistical information and is used to characterize the degree of fluctuation of the network status of the target device at a preset time. The network fluctuation value of the target device may directly reflect the stability or degree of change of the target device over a period of time. The network fluctuation value may be the fluctuation of network parameters such as network delay, jitter or packet loss rate.
[0055] The target sliding window value can be a time window of a specific size and position obtained by dynamically adjusting the network fluctuation value. The network status and data transmission status within the window can be used to calculate the real-time packet loss rate. The sliding window technology is a technology used to smooth or statistically analyze a set of data over a period of time.
[0056] The packet reception status can be the situation of the target device receiving the data packet at the preset time. This includes information such as the number of received data packets, the number of lost data packets, and the timestamp of the received data packets. By comparing the number of sent and received data packets and combining the target sliding window value, the real-time packet loss rate of the target device at the preset time can be calculated. The packet reception status can also include other attributes of the data packet, such as size, sequence, and integrity.
[0057] Optionally, the real-time packet loss rate of the target device at a preset time may be determined according to the target sliding window value and the data packet receiving state of the target device at the preset time by the following formula:
[0058]
[0059] Where: L t is the real-time packet loss rate of the target device at time t, W is the target sliding window value, and p i is the receiving status of the i-th data packet, 1 means data is successfully transmitted, and 0 means data is lost;
[0060] The target sliding window value of the target device at a preset time can be determined according to the network fluctuation value by the following formula:
[0061]
[0062] Where: W is the target sliding window value, W min is the minimum value of the window, ∈ is a non-zero parameter, k is an adjustment parameter, and V is the network fluctuation value.
[0063] The network fluctuation value V of the target device at a preset time is determined according to the device network statistical information by the following formula:
[0064] V=σ L +σ P
[0065] Where: V is the network fluctuation value, σ L is the standard deviation of network delay, σ P is the standard deviation of the packet loss rate. The adjustment parameter k can be calculated by the following formula:
[0066] k=(W max -W min )×V q
[0067] Where: W max Indicates the maximum value of the window; V q It represents the expected maximum volatility, i.e. the predetermined upper limit of the fluctuation of the network status.
[0068] S220, obtaining target operation data of the target device, and determining the predicted packet loss rate of the target device through a pre-trained packet loss rate prediction model according to the target operation data, target network status data, device operation statistics, device network statistics and real-time packet loss rate.
[0069] The packet loss rate prediction model may be a model for predicting the packet loss rate of the target device at a certain point in the future obtained by training a pre-built long short-term memory network model using machine learning or deep learning technology. The pre-built long short-term memory network model may be trained based on the historical data of the target device as training data, so that the neural network model learns the potential laws and patterns in the training data, thereby achieving accurate prediction of the packet loss rate of the target device in the future.
[0070] Optionally, the packet loss prediction model can be trained in the following manner: obtaining historical operation data and historical network status data of the target device, and constructing a target feature vector based on the historical operation data and historical network status data, wherein the target feature vector includes the real-time packet loss rate, current delay, current bandwidth, current voltage, current current of the target device at a preset moment and the historical packet loss rate, packet loss rate statistical characteristics, delay statistical characteristics, bandwidth statistical characteristics, voltage, current, voltage statistical characteristics, current statistical characteristics and device operation time of the target device; training a pre-constructed long short-term memory network model according to the target feature vector training and model training label training, and determining the long short-term memory network model as the packet loss prediction model when the long short-term memory network model meets the preset model training conditions.
[0071] Optionally, the loss function of the pre-built LSTM network model can use weighted mean square error, and the loss function is as follows:
[0072]
[0073] Where: WMSE (Weighted Mean Squared Error) is the loss function used to measure the difference between the predicted value and the true value, w i is the weight, y i is the actual packet loss rate, is the predicted packet loss rate, is a normalization factor used to calculate the average loss, and N is the total number of samples, representing the number of samples for loss calculation.
[0074] Optionally, the weight of each sample i can be calculated by the following formula:
[0075] w i =1+αy i
[0076] Where: α represents a hyperparameter, which is used to control the speed at which the weight increases.
[0077] Among them, the equipment operation statistical information can be the operation statistical information of the target equipment obtained by analyzing and processing the target operation data after the target operation data of the target equipment is acquired. The present invention does not specifically limit the analysis and processing method of the target operation data. The equipment operation statistical information may include the operation time of the target equipment, the maximum current, minimum current, average current and standard deviation of the current of the target equipment in a preset time interval, and the maximum voltage, minimum voltage, average voltage and standard deviation of the voltage, etc., wherein the preset time interval can be the time from when the target equipment starts to receive the data packet to the preset moment, and the preset moment is the moment to determine the real-time packet loss rate. The embodiment of the present invention does not specifically limit the method for determining the preset moment, and those skilled in the art can set it according to their own needs, or determine it according to the packet loss rate detection requirements.
[0078] The predicted packet loss rate may be a ratio obtained by predicting the packet loss situation that may occur in the network communication process of the target device in the future period of time based on the target device's operation data, network status data, real-time packet loss rate, and historical operation data, historical network status data, and historical packet loss before the current moment through a packet loss rate prediction model. The predicted packet loss rate of the target device may be used to characterize the packet loss situation of the target device in the future period of time.
[0079] Optionally, a pre-trained packet loss rate prediction model is used to determine the predicted packet loss rate of the target device based on the target operation data, target network status data, device operation statistics, device network statistics and real-time packet loss rate, including: processing the target operation data, target network status data, device operation statistics, device network statistics and real-time packet loss rate to obtain a target feature vector; and inputting the target feature vector into a pre-trained packet loss prediction model to obtain the predicted packet loss rate of the target device.
[0080] S230, determining a target number of data packets obtained after redundantly encoding the data packets to be transmitted according to the predicted packet loss rate, a preset packet loss rate threshold, and the number of data packets to be transmitted.
[0081] Among them, the target number can be the total number of redundant data packets obtained after redundantly encoding the original data packets to be transmitted based on the predicted packet loss rate of the target device and after determining the data packet loss situation of the target device in a certain time window in the future, calculated according to the predicted packet loss rate and the preset packet loss rate threshold (the maximum packet loss rate of the target device). After the target device has packet loss, the original data packet to be transmitted can be redundantly encoded to ensure that subsequent data can be transmitted to the target device in its entirety. For example, when the predicted packet loss rate is high, the number of redundantly encoded data packets can be increased to ensure the integrity of the data packets. When the predicted packet loss rate is low, the number of redundantly encoded data packets can be reduced to reduce the transmission pressure brought to the network by data transmission. The target number can be a dynamically adjusted value that changes according to changes in network conditions and data transmission requirements, and can ensure the reliability and efficiency of data transmission.
[0082] Optionally, the target number of data packets obtained after redundant encoding of the data packets to be transmitted may be determined according to the predicted packet loss rate, a preset packet loss rate threshold, and the number of data packets to be transmitted by the following formula:
[0083]
[0084] Where n is the total number of redundantly encoded data packets, k is the number of data packets to be transmitted, and P pred To predict the packet loss rate, P threshold is the preset packet loss rate threshold.
[0085] S240. Encode the data to be transmitted by using a preset coding algorithm to obtain the target number of target transmission data packets, and transmit the target transmission data packets to a target device, wherein the preset coding algorithm includes a Reed-Solomon coding algorithm.
[0086] Among them, the preset coding algorithm can be an algorithm for encoding the data to be transmitted. It can be a channel coding algorithm, or one of the coding algorithms such as Reed-Solomon coding. Among them, the Reed-Solomon coding algorithm is a coding technology widely used in the fields of data storage and communication. Among them, the Reed-Solomon coding algorithm can be an algorithm constructed using a mathematical model. When using the Reed-Solomon coding algorithm, you can also directly reference the interface developed in the software model and directly use the edited Reed-Solomon coding algorithm. When using the Reed-Solomon coding algorithm, you can directly pass in the parameters.
[0087] Exemplarily, after determining the target number of data packets obtained after redundantly encoding the data packets to be transmitted according to the predicted packet loss rate, the preset packet loss rate threshold, and the number of data packets to be transmitted, the data to be transmitted can be redundantly encoded by the Reed-Solomon encoding algorithm to obtain the target number of target transmission data packets, and then the target transmission data packets are transmitted to the target device through the transmission network. In the process of transmitting the target transmission data packets, if data packets are lost, the redundantly encoded data packets successfully transmitted in the target transmission data packets can be decoded to recover the lost data packets, so that the target device can receive the complete data to be transmitted.
[0088] The technical solution of the embodiment of the present invention determines the real-time packet loss rate of the target device at a preset time according to the device network statistical information, and determines the target number of data packets obtained after redundantly encoding the data packets to be transmitted through a pre-trained packet loss rate prediction model. The data to be transmitted is encoded by a preset encoding algorithm to obtain a target number of target redundant data packets, and finally the target transmission data packets are transmitted to the target device. The corresponding amount of redundant information can be added according to the predicted packet loss rate of the target device, and then when the data packet is lost, the lost data packet can be restored through the redundant information in the target transmission data packet, thereby ensuring the integrity of the data transmission. The redundancy of the target transmission data packet is determined according to the predicted packet loss rate, which can ensure that data recovery can be effectively performed under different network conditions, improve transmission reliability, avoid resource waste caused by excessive redundant encoding, and improve data transmission efficiency and fault tolerance.
[0089] Embodiment 3
[0090] Figure 3 This is a flowchart of another data transmission method provided according to embodiment three of the present invention. Based on the above embodiments, this embodiment adds that after transmitting the target transmission data packet to the target device, in the event that some data packets of the target transmission data packet are lost, the target interval time and target retransmission number of the lost packet data to the target device are determined according to the real-time packet loss rate and the predicted packet loss rate; and the lost packet data of the target device are retransmitted to the target device according to the target interval time and target retransmission number.
[0091] like Figure 3 As shown, the method includes:
[0092] S310: Acquire target network status data of a target device, and determine a real-time packet loss rate of the target device at a preset time according to the target network status data.
[0093] S320: Obtain target operation data of the target device, and determine a predicted packet loss rate of the target device according to the target operation data, target network status data, and real-time packet loss rate.
[0094] S330 , redundantly encode the data packet to be transmitted according to the predicted packet loss rate to obtain a target transmission data packet, and transmit the target transmission data packet to a target device.
[0095] S340: When some data packets of the target transmission data packets are lost, determine the target interval time and target retransmission times of the lost data packets to the target device according to the real-time packet loss rate and the predicted packet loss rate.
[0096] Among them, packet loss data can be the data packets that are not successfully received by the target device due to network instability, device failure or transmission error when the target device receives the data packets sent by the data sender. Partial data packet loss can be the failure to successfully transmit part of a set of complete data packets in a data transmission time window.
[0097] The target interval time can be the time to wait for retransmitting lost data packets after detecting data packet loss, determined based on the target device's real-time packet loss rate and predicted packet loss rate at a preset time. By setting a reasonable target interval time, it is possible to avoid network congestion while ensuring that data can be retransmitted to the target device.
[0098] The target retransmission count may be a maximum retransmission count value of a data packet determined before attempting to retransmit the lost data packet, after detecting data packet loss, based on the real-time packet loss rate and predicted packet loss rate of the target device at a preset time. The maximum retransmission count value is used to indicate how many times the target device will attempt to retransmit the lost data packet at most when encountering data packet loss.
[0099] Optionally, the target interval time and target number of retransmissions for retransmitting lost packet data to the target device can be determined based on the real-time packet loss rate and the predicted packet loss rate using the following formula:
[0100]
[0101] Among them, P loss is the real-time packet loss rate, P pred To predict the packet loss rate, R init is the number of retransmissions before adjustment, D threshold is the preset packet loss rate threshold, R max is the number of target retransmissions;
[0102]
[0103] Among them, T retry is the adjusted target interval time, T base The retransmission interval before adjustment.
[0104] S350: Retransmit the packet loss data of the target device to the target device according to the target interval time and the target retransmission number.
[0105] Optionally, retransmitting the packet loss data of the target device to the target device according to the target interval time and the target retransmission number may include: retransmitting the packet loss data of the target device to the target device according to the priority of each data packet in the packet loss data, the target interval time and the target retransmission number.
[0106] Optionally, during the transmission and retransmission of data packets, high-priority data packets can be processed first. High-priority data packets are transmitted immediately and retransmitted first after packet loss; medium-priority data packets are transmitted and retransmitted after high-priority data packets; low-priority data packets are transmitted when the network is idle and retransmitted when bandwidth is sufficient.
[0107] Exemplarily, after determining the target interval time and target retransmission times for retransmitting the lost packet data to the target device based on the real-time packet loss rate and the predicted packet loss rate, the priority level corresponding to each data packet can be determined based on the priority label of each data packet in the lost packet data. When retransmitting data, the data packets with high priority in the lost packet data are retransmitted first, the data packets with medium priority in the lost packet data are transmitted after the high priority data packets, and the data packets with low priority in the lost packet data are transmitted when the network is idle.
[0108] The technical solution of the embodiment of the present invention determines the real-time packet loss rate of the target device at a preset time according to the target network status data. And determines the predicted packet loss rate of the target device according to the target operation data, the target network status data and the real-time packet loss rate, and can predict the future packet loss rate of the target device, and then redundantly encode the data packet to be transmitted according to the predicted packet loss rate to obtain the target transmission data packet, and transmit the target transmission data packet to the target device according to the network status and the different priorities of the data packet. The redundant encoding degree of the data to be transmitted can be dynamically adjusted according to the predicted packet loss rate to ensure that data recovery can be effectively performed under different network conditions and improve transmission reliability. In the case of partial data packet loss of the target transmission data packet, the target interval time and target retransmission number of the retransmission data to the target device can be determined according to the real-time packet loss rate and the predicted packet loss rate; the packet loss data of the target device can be retransmitted to the target device according to the target interval time and the target retransmission number, and the retransmission frequency and retransmission number can be dynamically adjusted according to the packet loss rate and the predicted packet loss rate to avoid frequent retransmissions causing network congestion and improve data transmission efficiency.
[0109] Embodiment 4
[0110] Figure 4 Schematic diagram of a data transmission device according to Embodiment 4 of the present invention. Figure 4As shown, the device includes: a real-time packet loss rate determination module 410, a predicted packet loss rate determination module 420 and a data transmission module 430.
[0111] The real-time packet loss rate determination module 410 is used to obtain the target network status data of the target device, and determine the real-time packet loss rate of the target device at a preset time according to the target network status data; the predicted packet loss rate determination module 420 is used to obtain the target operation data of the target device, and determine the predicted packet loss rate of the target device according to the target operation data, the target network status data and the real-time packet loss rate; the data transmission module 430 is used to perform redundant encoding on the data packet to be transmitted according to the predicted packet loss rate, obtain the target transmission data packet, and transmit the target transmission data packet to the target device.
[0112] Furthermore, the real-time packet loss rate determination module 410 is specifically used to determine the device network statistical information of the target device according to the target network status data, and determine the real-time packet loss rate of the target device at a preset time according to the device network statistical information.
[0113] Furthermore, the predicted packet loss rate determination module 420 is specifically used to determine the predicted packet loss rate of the target device according to the target operation data, target network status data, device operation statistics, device network statistics and real-time packet loss rate through a pre-trained packet loss rate prediction model.
[0114] Furthermore, the real-time packet loss rate determination module 410 is specifically used to: determine the network fluctuation value of the target device at a preset time according to the device network statistical information, and determine the target sliding window value of the target device at the preset time according to the network fluctuation value; determine the real-time packet loss rate of the target device at the preset time according to the target sliding window value and the data packet reception status of the target device at the preset time.
[0115] Furthermore, the real-time packet loss rate determination module 410 is specifically used to determine the real-time packet loss rate of the target device at a preset time according to the target sliding window value and the data packet receiving state of the target device at the preset time by using the following formula:
[0116]
[0117] Where: L t is the real-time packet loss rate of the target device at time t, W is the target sliding window value, and p i is the receiving status of the i-th data packet, 1 means data is successfully transmitted, and 0 means data is lost;
[0118] The target sliding window value of the target device at a preset time is determined according to the network fluctuation value by the following formula:
[0119]
[0120] Where: W min is the minimum value of the window, ∈ is a non-zero parameter, k is an adjustment parameter, and V is the network fluctuation value;
[0121] The network statistics include the standard deviation of network delay and the standard deviation of packet loss rate. The network fluctuation value of the target device at the preset time is determined according to the device network statistics by the following formula:
[0122] V=σ L +σ P
[0123] Where: L is the standard deviation of network delay, σ P is the standard deviation of the packet loss rate.
[0124] Furthermore, the data transmission module 430 includes a data packet encoding unit, which is used to: determine the target number of data packets obtained after redundant encoding of the data packets to be transmitted based on the predicted packet loss rate, the preset packet loss rate threshold and the number of data packets to be transmitted; encode the data to be transmitted by a preset encoding algorithm to obtain the target number of target transmission data packets, wherein the preset encoding algorithm includes a Reed-Solomon encoding algorithm.
[0125] Furthermore, the data packet encoding unit is specifically used to determine the target number of data packets obtained after redundant encoding of the data packets to be transmitted according to the predicted packet loss rate, the preset packet loss rate threshold and the number of data packets to be transmitted by the following formula:
[0126]
[0127] Where n is the total number of redundantly encoded data packets, k is the number of data packets to be transmitted, and P pred To predict the packet loss rate, P threshold is the preset packet loss rate threshold.
[0128] Furthermore, the data transmission device also includes: a packet loss data retransmission module, which is used to determine the target interval time and target retransmission number of the lost packet data to the target device according to the real-time packet loss rate and the predicted packet loss rate after transmitting the target transmission data packet to the target device, when some data packets of the target transmission data packet are lost; and retransmit the lost packet data of the target device to the target device according to the target interval time and target retransmission number.
[0129] Furthermore, the packet loss data retransmission module is specifically used to determine the target interval time and target retransmission times of the packet loss data to the target device according to the real-time packet loss rate and the predicted packet loss rate by using the following formula:
[0130]
[0131] Among them, P loss is the real-time packet loss rate, P pred To predict the packet loss rate, R init is the number of retransmissions before adjustment, D threshold is the preset packet loss rate threshold, R max is the number of target retransmissions;
[0132]
[0133] Among them, T retry is the adjusted target interval time, T base The retransmission interval before adjustment.
[0134] The data transmission device provided in the embodiment of the present invention can execute the data transmission method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0135] Embodiment 5
[0136] Figure 5 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0137] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0138] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0139] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a data transmission method.
[0140] In some embodiments, the data transmission method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the data transmission method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the data transmission method in any other appropriate manner (e.g., by means of firmware).
[0141] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0142] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0143] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0144] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0145] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0146] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0147] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0148] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A data transmission method, characterized in that: include: Acquire target network status data of the target device, and determine the real-time packet loss rate of the target device at a preset time according to the target network status data; Acquire target operation data of a target device, and determine a predicted packet loss rate of the target device according to the target operation data, the target network status data, and the real-time packet loss rate; Redundancy encoding is performed on the data packet to be transmitted according to the predicted packet loss rate to obtain a target transmission data packet, and the target transmission data packet is transmitted to the target device.
2. The method according to claim 1, characterized in that The determining the real-time packet loss rate of the target device at a preset time according to the target network status data includes: The device network statistical information of the target device is determined according to the target network status data, and the real-time packet loss rate of the target device at a preset time is determined according to the device network statistical information.
3. The method according to claim 1, characterized in that The step of determining the predicted packet loss rate of the target device according to the target operation data, the target network status data and the real-time packet loss rate includes: The predicted packet loss rate of the target device is determined by a pre-trained packet loss rate prediction model according to the target operation data, target network status data, device operation statistics, device network statistics and the real-time packet loss rate.
4. The method according to claim 2, characterized in that: Determining the real-time packet loss rate of the target device at a preset time according to the device network statistical information includes: Determine a network fluctuation value of the target device at the preset time according to the device network statistical information, and determine a target sliding window value of the target device at the preset time according to the network fluctuation value; The real-time packet loss rate of the target device at the preset time is determined according to the target sliding window value and the data packet receiving state of the target device at the preset time.
5. The method according to claim 4, characterized in that The real-time packet loss rate of the target device at the preset time is determined according to the target sliding window value and the data packet receiving state of the target device at the preset time by the following formula: Where: L t is the real-time packet loss rate of the target device at time t, W is the target sliding window value, and p i is the receiving status of the i-th data packet, 1 means data is successfully transmitted, and 0 means data is lost; The target sliding window value of the target device at the preset time is determined according to the network fluctuation value by the following formula: Where: W min is the minimum value of the window, ∈ is a non-zero parameter, k is an adjustment parameter, and V is the network fluctuation value; The network statistical information includes the standard deviation of network delay and the standard deviation of packet loss rate, and the network fluctuation value of the target device at the preset time is determined according to the device network statistical information by the following formula: V=σ L +s P Where: L is the standard deviation of network delay, σ P is the standard deviation of the packet loss rate.
6. The method according to claim 1, characterized in that The performing redundant encoding on the data packet to be transmitted according to the predicted packet loss rate to obtain the target transmission data packet comprises: Determine, according to the predicted packet loss rate, a preset packet loss rate threshold and the number of data packets to be transmitted, a target number of data packets obtained after redundantly encoding the data packets to be transmitted; The data to be transmitted is encoded by a preset encoding algorithm to obtain the target number of target transmission data packets, wherein the preset encoding algorithm includes a Reed-Solomon encoding algorithm.
7. The method according to claim 6, characterized in that The target number of data packets obtained after redundantly encoding the data packets to be transmitted is determined according to the predicted packet loss rate, the preset packet loss rate threshold, and the number of data packets to be transmitted by the following formula: Where n is the total number of redundantly encoded data packets, k is the number of data packets to be transmitted, and P pred To predict the packet loss rate, P threshold is the preset packet loss rate threshold.
8. The method according to claim 1, characterized in that After transmitting the target transmission data packet to the target device, the method further includes: In the case where some data packets of the target transmission data packets are lost, determining a target interval time for retransmitting the lost data packets to the target device and a target number of retransmissions according to the real-time packet loss rate and the predicted packet loss rate; The packet loss data of the target device is retransmitted to the target device according to the target interval time and the target retransmission number.
9. The method according to claim 8, characterized in that The target interval time and the target number of retransmissions of the packet loss data to the target device are determined according to the real-time packet loss rate and the predicted packet loss rate by the following formula: Among them, P loss is the real-time packet loss rate, P pred To predict the packet loss rate, R init is the number of retransmissions before adjustment, D threshold is the preset packet loss rate threshold, R max is the number of target retransmissions; Among them, T retry is the adjusted target interval time, T base The retransmission interval before adjustment.
10. A computer program product comprising a computer program / instructions, wherein: When the computer program / instructions are executed by a processor, the data transmission method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Time-varying network packet loss prediction system and method based on time sequence analysis
CN120110937A
Method and device for monitoring Telemetry performance of distributed network
CN120474961A
Packet loss prevention transmission system based on dynamic redundancy adjustment
CN120710638A
Data transmission method and system
CN121441826A
Data transmission packet loss repairing method and system based on edge computing
CN122513053A