CN108243073B - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN108243073B
CN108243073B CN201611226585.4A CN201611226585A CN108243073B CN 108243073 B CN108243073 B CN 108243073B CN 201611226585 A CN201611226585 A CN 201611226585A CN 108243073 B CN108243073 B CN 108243073B
Authority
CN
China
Prior art keywords
data
type
transmission
unit
packet loss
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611226585.4A
Other languages
Chinese (zh)
Other versions
CN108243073A (en
Inventor
吴杰
朱舟
底欣
田军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to CN201611226585.4A priority Critical patent/CN108243073B/en
Publication of CN108243073A publication Critical patent/CN108243073A/en
Application granted granted Critical
Publication of CN108243073B publication Critical patent/CN108243073B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/32Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a data transmission method and a data transmission device, wherein the method comprises the following steps: when the first type data and/or the second type data are lost in the current transmission data unit and the second type data and/or the third type data which are not sent still exist in the current transmission data unit, the second type data and/or the third type data which are not sent; the first type of data refers to data which does not refer to other types of data during decoding; the second type data refers to data which refers to the first type data when decoding; the third type of data refers to data that references the first type of data and the second type of data when decoding. By the method, the relevance among the data is considered, and the packet loss strategy is designed according to the importance degree of the data, so that the influence of data loss on the data recovery quality is reduced, the effective transmission of the important data is ensured, the data transmission quality is improved, the network resources can be saved, and the possibility of network congestion is reduced.

Description

Data transmission method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data transmission method and apparatus.
Background
With the increasing progress of information technology and the continuous expansion of the wireless communication technology field, the application requirements depending on real-time data transmission are more and more emphasized by people, but the real-time data transmission has a high requirement on the performance of the network, and because the network resources allocated to various types of data and the environmental impact on the network are dynamic changes and unpredictable, the situation of data loss occurs, and reliable Quality of Service (Qos) guarantee cannot be provided for the real-time data transmission.
It should be noted that the above background description is only for the sake of clarity and complete description of the technical solutions of the present invention and for the understanding of those skilled in the art. Such solutions are not considered to be known to the person skilled in the art merely because they have been set forth in the background section of the invention.
Disclosure of Invention
Due to the influence of network conditions, the problem of data packet loss inevitably exists, the data packet loss can influence the data recovery quality of a receiving end, in addition, due to the correlation among data, the loss of one important data can cause the transmission of other data to become meaningless, and the network resources can be wasted when the data are transmitted.
The embodiment of the invention provides a data transmission method and a data transmission device, which consider the correlation among different types of data and design a packet loss strategy according to the importance degree of the data, thereby reducing the influence of data loss on the data recovery quality, ensuring the effective transmission of important data, improving the data transmission quality, saving network resources and reducing the possibility of network congestion.
The above object of the embodiment of the present invention is achieved by the following technical solutions:
according to a first aspect of the embodiments of the present invention, there is provided a data transmission apparatus, wherein the apparatus is applied to a node in a network, wherein the apparatus includes:
a first judging unit, configured to judge whether the first type of data and/or the second type of data are lost in the current transmission data unit;
a first processing unit, configured to not send the unsent second type data and/or third type data when the first determination unit determines that the result is yes and there is unsent second type data and/or third type data in the current transmission data unit;
the transmission data unit comprises first class data, second class data and third class data, wherein the first class data refers to data which does not refer to other class data during decoding; the second type data refers to data which refers to the first type data when decoding; the third type of data refers to data that refers to the first type of data and the second type of data when decoding, and is not referred to as other types of data.
According to a second aspect of the embodiments of the present invention, there is provided a data transmission method, including:
if the first type data and/or the second type data are lost in the current transmission data unit and if the second type data and/or the third type data which are not sent exist in the current transmission data unit, the second type data and/or the third type data which are not sent;
the transmission data unit comprises first class data, second class data and third class data, wherein the first class data refers to data which does not refer to other class data during decoding; the second type data refers to data which refers to the first type data when decoding; the third type of data refers to data that refers to the first type of data and the second type of data when decoding, and is not referred to as other types of data.
The method and the device have the advantages that the method and the device consider the correlation among different types of data, and design the packet loss strategy according to the importance degree of the data, so that the influence of data loss on the data recovery quality is reduced, the effective transmission of important data is ensured, the data transmission quality is improved, network resources can be saved, and the possibility of network congestion is reduced.
Specific embodiments of the present invention are disclosed in detail with reference to the following description and drawings, indicating the manner in which the principles of the invention may be employed. It should be understood that the embodiments of the invention are not so limited in scope. The embodiments of the invention include many variations, modifications and equivalents within the spirit and scope of the appended claims.
Features that are described and/or illustrated with respect to one embodiment may be used in the same way or in a similar way in one or more other embodiments, in combination with or instead of the features of the other embodiments.
It should be emphasized that the term "comprises/comprising" when used herein, is taken to specify the presence of stated features, integers, steps or components but does not preclude the presence or addition of one or more other features, integers, steps or components.
Drawings
Many aspects of the invention can be better understood with reference to the following drawings. The components in the figures are not necessarily to scale, emphasis instead being placed upon illustrating the principles of the invention. For convenience in illustrating and describing some parts of the present invention, corresponding parts may be enlarged or reduced in the drawings. Elements and features depicted in one drawing or one embodiment of the invention may be combined with elements and features shown in one or more other drawings or embodiments. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views, and may be used to designate corresponding parts for use in more than one embodiment.
In the drawings:
FIG. 1 is a flow chart of a data transmission method in this embodiment 1;
FIG. 2 is a flow chart of a data transmission method in the present embodiment 1;
FIG. 3 is a diagram illustrating a GOP structure in the embodiment 1;
fig. 4 is a flowchart of a data transmission method in this embodiment 3;
FIG. 5 is a schematic diagram of a data transmission apparatus according to this embodiment 4;
FIG. 6 is a schematic diagram of a data transmission apparatus according to this embodiment 4;
FIG. 7 is a schematic diagram of a data transmission apparatus according to this embodiment 4;
fig. 8 is a schematic diagram of the hardware configuration of the data transmission device in this embodiment 4.
Detailed Description
The foregoing and other features of embodiments of the present invention will become apparent from the following description, taken in conjunction with the accompanying drawings. These embodiments are merely exemplary and are not intended to limit the present invention. For example, the method and apparatus provided by the embodiment of the present invention are also applicable to data transmitted in other networks.
The following describes a specific embodiment of the present invention with reference to the drawings.
Example 1
This embodiment 1 provides a data transmission method applied to a node in a network, where fig. 1 is a flowchart of the data transmission method, and as shown in fig. 1, the method includes:
step 101, judging whether first-class data and/or second-class data are lost in a current transmission data unit;
102, when the judgment result is yes and unsent second-class data and/or third-class data still exist in the current transmission data unit, unsent second-class data and/or third-class data are not sent;
the transmission data unit comprises first class data, second class data and third class data, wherein the first class data refers to data which does not refer to other class data during decoding; the second type data refers to data which refers to the first type data when decoding; the third type of data refers to data that refers to the first type of data and the second type of data when decoding, and is not referred to as other types of data.
By the method, the relevance among different types of data is considered, and the packet loss strategy is designed according to the importance degree of the data, so that the influence of data loss on the data recovery quality is reduced, the effective transmission of important data is ensured, the data transmission quality is improved, network resources can be saved, and the possibility of network congestion is reduced.
In this embodiment, a transmission data unit is used as a basic unit for transmitting data, and is sent by a source node, more than one continuous transmission data unit forms the whole transmission data, each transmission data unit includes first type data, second type data and third type data, the first type data refers to data which does not refer to other types of data during decoding, but can be used as data which refers to other two types of data during decoding; the second type data refers to data which refers to the first type data when decoding and is used as data which refers to the third type data when decoding; the third type of data refers to the first type of data and the second type of data which are referred to during decoding and are not referred to by other types of data, and different types of data have different influences on data recovery quality, wherein the first type of data is most important and has a larger influence on the data recovery quality, the second type of data is next to the first type of data, and the third type of data has the smallest influence on the data recovery quality.
In this embodiment, the transmission positions of the first type data, the second type data and the third type data in one transmission data unit can be determined according to the correlation among the data, wherein the transmission positions represent the transmission order of the data in the transmission queue, wherein the data with larger influence on the data recovery quality is placed at the front transmission position, and the data with smaller influence on the data recovery quality is placed at the back transmission position; for example, the first type of data may be transmitted first, then the second type of data is transmitted, and finally the third type of data is transmitted, or the first type of data may be transmitted first, then the second type of data and the third type of data that depend on the first type of data are transmitted and decoded, and finally other second type of data and third type of data that depend on the transmitted second type of data and third type of data are transmitted and decoded, which is not limited in this embodiment.
Therefore, in this embodiment, in order to reduce the influence of data loss on data recovery quality, ensure effective transmission of important data, and improve data transmission quality, consider the correlation between different types of data, design a packet loss policy according to the importance degree of the data, and ensure effective transmission of first type data or second type data having the highest correlation with the first type data, that is, when there is first type data and/or second type data lost in a current transmission data unit and there is also unsent second type data and/or third type data in the current transmission data unit, unsent second type data and/or third type data are not sent, thereby saving network resources and reducing the possibility of network congestion.
In step 101, the node may query whether the first type data and/or the second type data are lost in the currently transmitted data unit, or may query whether the first type data and/or the second type data are lost in the currently transmitted data unit in a unified manner by the destination node, and when such data are lost, notify the node of the loss information, and the node determines whether the first type data and/or the second type data are lost in the currently transmitted data unit according to the notified loss information.
In step 102, when there is still unsent second type data and/or third type data in the current transmission data unit, the data type and transmission position of data not sent in the current transmission data unit are determined according to the data type and transmission position lost in the current transmission data unit, taking into account the correlation and importance degree between the data.
When the first type of data in the current transmission data unit is lost and there is also unsent second type of data and/or third type of data in the current transmission data unit, the data type and transmission position of the data which is not sent in the current transmission data unit are determined according to the data type (namely, the first type of data) and transmission position which are lost in the current transmission data unit, namely, when the first type of data in the current transmission data unit is lost, the transmission position A of the data which is sent in the current transmission data unit is determined, and all unsent second type of data and/or third type of data which are left behind the transmission position A are discarded.
When the second type data is lost in the current transmission data unit and the second type data and/or the third type data which is not sent still exist in the current transmission data unit, the data type and the transmission position of the data which is not sent in the current transmission data unit are determined according to the data type (namely the second type data) and the transmission position which are lost in the current transmission data unit, namely when the second type data is lost in the current transmission data unit, the transmission position B of the data which is sent in the current transmission data unit is determined, and all the second type data and/or the third type data which are not sent are discarded, namely after the transmission position B.
In this embodiment, when there is no unsent second-type data and/or third-type data in the current transmission data unit, it indicates that all data in the transmission data unit has been transmitted, and there is no data for active packet loss, that is, there is no need to perform active packet loss.
Fig. 2 is a flowchart of a data transmission method in this embodiment, and as shown in fig. 2, the method includes:
step 201, judging whether the first type data and/or the second type data are lost in the current transmission data unit; if the first type data is lost, executing step 202, if the second type data is lost, executing step 203, and if the second type data is not lost, not executing any operation.
Step 202, judging whether the current transmission data unit has the second type data and/or the third type data which are not sent, if so, executing step 204, otherwise, not executing any operation;
step 203, judging whether the current transmission data unit has the second type data and/or the third type data which are not sent, if so, executing step 204, otherwise, not executing any operation;
and step 204, not sending the second type data and/or the third type data which are not sent.
The following description will be given taking the example that the transmitted data is video data as an example, but the present embodiment is not limited thereto, for example, the transmitted data may also be voice or text, and it should be noted that the transmission method of other types of data is similar to the transmission method of video data, and repeated descriptions are omitted.
In this embodiment, when the transmitted data is video data, the transmission data unit may be a Group of Pictures (GOP), which contains three types of data, i.e. a first type data I frame, a second type data P frame, and a third type data B frame, where the I frame is intra-coded, and does not refer to other types of frames when decoding, but can be used as a reference for other types of frames, the P frame is a predicted frame, and refers to its previous I frame or P frame when decoding, and can be used as a reference for B frame decoding, and the B frame is a bidirectional predicted frame, and refers to the previous I frame and P frame in two directions before and after decoding, and does not serve as data to be referred to by other types of data. The three types of data form a GOP in a certain encoding manner, the GOP may be represented as GOP (n, m), where n represents a frame interval of I frames in two GOPs, m represents a frame interval between two adjacent I frames and P frames in the same GOP, or a frame interval between two adjacent P frames and P frames, fig. 3 is a schematic diagram of a GOP structure in this embodiment, as shown in fig. 3, the structure of the GOP is IBBPBBPBBPBB, which may be represented as GOP (12, 3), which is described above as an example, the GOP may be encoded in other manners, and specifically, reference may be made to the prior art.
In this embodiment, when a packet loss policy is designed, correlation between data needs to be considered, and when the transmission data unit is a GOP, since decoding of a P frame and a B frame both depend on an I frame, if the I frame is lost, both the P frame and the B frame in the same GOP cannot be decoded, and at the same time, all B frames after the last P frame in the previous GOP cannot be decoded, that is, the number of the undecodable frames possibly caused by the loss of one I frame is n + m-1; since the decoding of a P frame needs to depend on the previous I frame or P frame, in other words, a P frame is the reference frame for decoding m-1B frames before and after the P frame and the next P frame, as shown in FIG. 3, P is a reference frame for decoding1Is dependent on I, P2Is dependent on P1,P3Is dependent on P2I.e. the correlation degree between P frame and I frame is P from high to low1,P2,P3The number of frames that cannot be decoded due to the loss of a P frame is related to the transmission position of the P frame in the GOP, as shown in FIG. 3, and the last P frame3The frame loss will cause 2 m-2B frames (B)5B6B7B8) Not decodable, second to last P2Frame loss, which will result in 3 m-3B frames (B)3B4B5B6B7B8) No decoding and last P3Frames cannot be decoded, and so on; in addition, because the B frame is not used as a reference frame when other types of frames are decoded, if the B frame is lost, the decoding of other frames is not influenced.
Therefore, because different types of frames have different influences on the data recovery quality, the I frame is most important, the P frame is next to the I frame, the B frame is the next to the B frame, and in addition, the importance degrees of the P frames at different transmission positions are different, namely the importance degree of the P frame closer to the I frame is the highest, the importance degree of the P frame farthest from the I frame is the lowest, the correlation and the importance degrees between the frames can be considered, and the transmission positions of the I frame, the P frame and the B frame in the GOP can be determined, wherein, for example, the I frame can be transmitted first, the P frame can be transmitted according to the importance degrees from high to low, and the B frame can be transmitted finally, namely the IP frame1P2P3B1B2B3B4B5B6B7B8It is also possible to transmit an I-frame first, then transmit P-frames and B-frames decoded depending on the I-frame, and finally transmit other P-frames and B-frames decoded depending on the transmitted P-frames and B-frames, i.e. IP1B1B2P2B3B4P3B5B6P4B7B8However, the present embodiment is not limited thereto.
In this embodiment, the importance degree of the I frame is the highest, and the importance degree of the P frame whose transmission position is closer to the I frame is higher, so that when a packet loss strategy is designed, it is necessary to ensure effective transmission of the I frame or the I frame and the P frame close to the I frame.
In step 101, determining whether an I frame and/or a P frame is lost in a current GOP; if yes, executing step 102;
in step 102, determining the data type and transmission position of data not sent in the current transmission data unit according to the data type and transmission position lost in the current transmission data unit, that is, determining the transmission position of sent data in the current transmission data unit, and discarding all P frames and B frames after the transmission position of the sent data when there are P frames or B frames not sent;
for example, the transmission location of each type of data of the currently transmitted data unit is IP1P2P3B1B2B3B4B5B6B7B8If it is determined in step 101 that the I-frame is lost, in step 102, it is determined that three IP frames have been transmitted in the current transmission data unit1P2Fourth frame P3And thereafter B1B2B3B4B5B6B7B8If none is transmitted, the fourth frame P is not transmitted3And all frames B thereafter1B2B3B4B5B6B7B8(ii) a Or in step 101, if the judgment P1The frame is lost and the frame is lost,in step 102, it is determined that five frames of IP have been sent in the current transmission data unit1P2P3B1Sixth frame B2And thereafter B3B4B5B6B7B8If none is transmitted, the sixth frame B is not transmitted2And all frames B thereafter3B4B5B6B7B8
In this embodiment, since packet loss processing is performed, network resources may be saved, and in order to ensure effective transmission of the first type of data, a path for transmitting the discarded second type of data and/or the discarded third type of data may be used to transmit the first type of data.
By the method, the relevance among different types of data is considered, and the packet loss strategy is designed according to the importance degree of the data, so that the influence of data loss on the data recovery quality is reduced, the effective transmission of important data is ensured, the data transmission quality is improved, network resources can be saved, and the possibility of network congestion is reduced.
Example 2
This embodiment 2 provides a data transmission method, applied to a source node in a network, where the method is different from embodiment 1 in that: after the primary active packet loss is carried out, whether secondary active packet loss is required or not can be judged according to the data recovery quality obtained by the receiving end, and a packet loss combination of the secondary active packet loss is determined; fig. 4 is a flowchart of the data transmission method, as shown in fig. 4, the method includes:
step 401, determining whether the first type data and/or the second type data are lost in the current transmission data unit;
step 402, when the determination result is yes and there is still unsent second class data and/or third class data in the current transmission data unit, unsent second class data and/or third class data are not sent.
The specific implementation is the same as that in steps 101-102, and is not repeated here.
In one embodiment, the method may further comprise:
step 403, obtaining data recovery quality after the transmission of the current transmission data unit is completed; when the data recovery quality is less than a threshold value, determining a packet loss combination which is not sent any more in a next transmission data unit according to a preset packet loss strategy, wherein the packet loss combination comprises a data type and a transmission position which are not sent any more;
step 404, transmitting the next transmission data unit according to the determined packet loss combination information.
By the method, the relevance among different types of data is considered, the primary packet loss strategy is determined according to the importance degree of the data, and the secondary packet loss strategy is determined based on the data recovery quality, so that the influence of data loss on the data recovery quality is further reduced, the effective transmission of important data is ensured, the data transmission quality is improved, network resources can be saved, and the possibility of network congestion is reduced.
In step 403, after the transmission of the current transmission data unit is completed, the destination node may obtain the data recovery quality, and notify the source node of the obtained data recovery quality, and when the data recovery quality is smaller than the threshold, the source node determines, according to a predetermined packet loss policy, a packet loss combination that is not sent any more in the next transmission data unit.
Wherein the data recovery quality Q ═ wI·E(I)+wP·E(P)+wB·E(B),0<w<1, wherein e (i) is an expected value of a first type of data correctly decodable in the transmission data unit, e (p) is an expected value of a second type of data correctly decodable in the transmission data unit, e (b) is an expected value of a third type of data correctly decodable in the transmission data unit, w (b)IIs a weight, w, of expected values of the first type of dataPIs a weight, w, of expected values of the second type of dataBIs a weight of the expected value of the third type of data.
Wherein e (i) is a sum of probabilities that the first type of data in the transmission data unit is indirectly decodable; e (p) is the sum of probabilities that all second type data in the transmission data unit is indirectly decodable; and E (B) the sum of probabilities that all the third type data in the transmission data unit can be decoded indirectly, wherein the probabilities that all the types of data can be decoded indirectly can be calculated according to the data type and the transmission position of the data.
In this embodiment, whether the data in one transmission data unit can be correctly decoded is not only related to the number of data packets of the data received by the receiving end (represented by direct decodable), but also related to the decoding condition of other data belonging to the same transmission data unit (represented by indirect decodable), wherein the probability that the data can be directly decoded can be calculated, the probability that the data can be indirectly decoded can be calculated according to the probability that the data can be directly decoded, and expected values of different types of data can be calculated according to the probability that the data can be indirectly decoded.
When the ratio of the number of data packets of a data received by the receiving end to the total data packets M is greater than or equal to the threshold T, it indicates that the data is directly decodable, and therefore, the probability that the data is directly decodable is equal to the probability that the number of data packets received by the receiving end is greater than or equal to mxt.
Whether data is indirectly decodable may be determined by whether a frame having a correlation with the frame is decodable, specifically, whether second type data is indirectly decodable is determined by whether first type data and/or other second type data having a correlation with decoding thereof is decodable, and whether third type data is indirectly decodable is determined by whether first type data and/or other second type data having a correlation with decoding thereof is decodable.
Therefore, since the first type data does not need to be dependent on other types of data when being decoded, the probability that the first type data is indirectly decodable is equal to the probability that the first type data is directly decodable; since the second type data needs to be dependent on the first type data and/or other second type data when being decoded, the probability that the second type data is indirectly decodable is equal to the product of the probability that the second type data is directly decodable, the probability that the first type data related to the decoding of the second type data is directly decodable, and the probability that the second type data related to the decoding of the second type data is directly decodable; since the third type of data is required to be dependent on the first type of data and/or the second type of data when being decoded, the probability that the third type of data is indirectly decodable is equal to the product of the probability that the third type of data is directly decodable, the probability that the first type of data related to the decoding thereof is directly decodable, and the probability that the second type of data related to the decoding thereof is directly decodable.
The following description will be given of the calculation of the data recovery quality by taking the example where the transmitted data is video data and the transmission data unit is GOP, but the present embodiment is not limited thereto.
According to embodiment 1, whether an I frame, a B frame, or a P frame can be correctly decoded is related to not only the number of packets of the frame received by the receiving end (in direct decodable form) but also the decoding of other video frames belonging to the same GOP (in indirect decodable form). The ratio of the number of packets received by the frame to the total number of packets can be used to indicate whether the frame is directly decodable, and it is assumed that the average number of packets included in the I frame, the B frame, and the P frame is:
Figure BDA0001193735570000101
directly decodable threshold values are respectively TI,TB,TPIf the number of received packets is greater than the threshold, it indicates that the frame is directly decodable, e.g., T75%, the frame is still directly decodable after less than 25% of the data is lost. Let the network packet loss rate be PdThe probability of direct decodability of I, B, P frames caused by network packet loss is rhoI=f(TI,Pd),ρB=f(TB,Pd),ρP=f(TP,Pd). Wherein, the specific calculation formula is as follows (1) - (3):
Figure BDA0001193735570000102
Figure BDA0001193735570000103
Figure BDA0001193735570000104
wherein, whether the data is indirectly decodable may be determined by whether a frame having a correlation with the frame is decodable, that is, the probability of indirectly decodable by an I frame, a B frame, and a P frame caused by inter-frame correlation is d (I), d (B), and d (P), and the specific calculation formula is as follows (4) - (6):
D(I)=ρI (4)
Figure BDA0001193735570000105
wherein the content of the first and second substances,
Figure BDA0001193735570000106
represents the number of P frames; in a GOP, adjacent B frames have the same probability of being indirectly decodable, as shown in FIG. 3, if they are considered as a group, then there is
Figure BDA0001193735570000107
Group B frames, the indirectly decodable probability of each group of B frames is:
Figure BDA0001193735570000108
e (i) a sum of probabilities that is indirectly decodable for the first type of data in the transmission data unit; e (p) is the sum of probabilities that all second type data in the transmission data unit is indirectly decodable; e (b) is the sum of probabilities that all the third type data in the transmission data unit are indirectly decodable, i.e. e (i), e (p), e (b) is calculated by the following formulas (7) - (9):
E(I)=ρI (7)
Figure BDA0001193735570000111
Figure BDA0001193735570000112
wherein, the predetermined packet loss policy may be: and determining the packet loss combination which enables the network packet loss rate to be the minimum as the packet loss combination which is not sent in the next transmission data unit under the condition that the data recovery quality is greater than or equal to the threshold. Determining network packet loss rates corresponding to different packet loss combinations under the condition that the data recovery quality is greater than or equal to the threshold; and determining the packet loss combination which enables the network packet loss rate to be minimum as the packet loss combination which is not sent in the next transmission data unit.
For example, network packet loss ratios corresponding to different packet loss combinations and corresponding data recovery qualities are respectively determined, and from the obtained packet loss combinations where the data recovery qualities are greater than or equal to the threshold T of the data recovery qualities, a packet loss combination with the smallest packet loss ratio is determined as a packet loss combination that is not sent any more in the next transmission data unit, for example, the packet loss combination that is not sent any more in the next transmission data unit may be determined according to the following policy: and sequentially discarding the third class of data, sequentially discarding the second class of data when the data recovery quality is not met, and finally discarding the I frame when the data recovery quality is not met.
Alternatively, the predetermined packet loss policy may be: acquiring the current network packet loss rate; and determining the packet loss combination which is not sent in the next transmission data unit according to the current network packet loss rate and the corresponding relation between the pre-stored packet loss rate and the packet loss combination so as to ensure the effective transmission of the first type data or the first type data and the second type data decoded by depending on the first type data.
The correspondence relationship will be described below by taking as an example that the transmitted data is video data and the transmission data unit is a GOP, but the embodiment is not limited thereto.
In this embodiment, the corresponding packet loss combination can be determined according to the data type and the number of each type of data in a GOP, where in a GOP, the number of B frames is n-n/m, the number of P frames is n/m-1, and the number of I frames is 1, where,
Figure BDA0001193735570000113
n denotes the total number of packets contained in one GOP.
Tables 1 and 2 below are the corresponding relationship of packet loss ratios corresponding to different packet loss combinations in fig. 3.
As shown in table 1: different packet loss combinations can be designed according to the following strategies: discarding the third type of data in sequence, discarding the second type of data after discarding the third type of data, and discarding the first type of data at last, for example, the packet loss combination may be: { discard the last 1B frame }, { discard the last 2B frames }, …, { discard n-n/m B frames }, { discard all B frames, discard the last 1P frame }, { discard all B frames, discard the last 2P frames }, …, { discard all B frames, discard all P frames }, and { discard all I frames, P frames, and B frames }.
TABLE 1
Figure BDA0001193735570000121
As shown in table 2: different packet loss combinations can be designed according to the following strategies: discarding the sequential third type data, and discarding the second type data and the third type data decoded depending on the second type data in turn, and finally discarding the first type data, for example, the packet loss combination may be: { discard the last 1B frame }, { discard the last 2B frames }, …, { discard n-n/m B frames }, { discard the last 1P frame, and 4B frames before and after the P frame }, { discard the last 2P frames, and 6B frames before and after the P frame }, …, { discard all B frames, discard all P frames }, and { discard all I frames, P frames, and B frames }.
TABLE 2
Figure BDA0001193735570000122
Figure BDA0001193735570000131
In step 403, the current network packet loss rate is obtained, the packet loss rate is compared with packet loss rates corresponding to different packet loss combinations in the corresponding relationship, and the packet loss combination corresponding to the packet loss rate in the corresponding relationship closest to the current network packet loss rate is determined as the packet loss combination that is not sent when the next transmission data unit is transmitted.
Tables 1 and 2 are merely exemplary illustrations, but the present embodiment is not limited thereto, and for example, tables 1 and 2 may be implemented in combination, and other packet loss combinations may be included.
In step 404, the packet loss combination determined in step 403 is not sent when the next transmission data unit is transmitted.
By the method, the relevance among different types of data is considered, the primary packet loss strategy is designed according to the importance degree of the data, and the secondary packet loss strategy is designed based on the data recovery quality, so that the influence of data loss on the data recovery quality is further reduced, the effective transmission of important data is ensured, the data transmission quality is improved, network resources can be saved, and the possibility of network congestion is reduced.
Example 3
This embodiment 3 provides a data transmission method, applied to a source node in a network, where the difference between the method and the embodiment 2 is that: determining a packet loss combination when the packet is lost twice by a destination node instead of determining the packet loss combination when the packet is lost twice by a source node, and notifying the source node of the determined packet loss combination; that is, step 403 'in this embodiment is different from step 403 in embodiment 2, in this embodiment, step 403' (not shown) receives a packet loss combination sent by the destination node when transmission of the current transmission data unit is completed and when the data recovery quality is less than the threshold, where the packet loss combination includes a data type and a transmission position that are not sent any more in the next transmission data unit.
The method for determining the packet loss combination by the destination node is the same as the method for determining the packet loss combination by the source node in embodiment 2, and is not repeated here.
By the method, the relevance among different types of data is considered, the primary packet loss strategy is designed according to the importance degree of the data, and the secondary packet loss strategy is designed based on the data recovery quality, so that the influence of data loss on the data recovery quality is further reduced, the effective transmission of important data is ensured, the data transmission quality is improved, network resources can be saved, and the possibility of network congestion is reduced.
Example 4
Embodiment 4 further provides a data transmission apparatus, and as the principle of the apparatus for solving the problem is similar to the method in embodiments 1 to 3, the specific implementation thereof may refer to the implementation of the method in embodiments 1 to 3, and repeated details are omitted.
Fig. 5 is a schematic diagram of an embodiment of a data transmission apparatus in this embodiment, which is applied to a node in a network, and as shown in fig. 5, the apparatus 500 includes:
a first judging unit 501, configured to judge whether first type data and/or second type data are lost in a current transmission data unit;
a first processing unit 502, configured to not send the unsent second type data and/or third type data when the first determination unit determines that the result is yes and there is unsent second type data and/or third type data in the current transmission data unit;
the transmission data unit comprises first class data, second class data and third class data, wherein the first class data refers to data which does not refer to other class data during decoding; the second type data refers to data which refers to the first type data when decoding; the third type of data refers to data that refers to the first type of data and the second type of data when decoding, and is not referred to as other types of data.
The first processing unit 502 determines the data type and transmission position of the data not sent in the current transmission data unit according to the data type and transmission position lost in the current transmission data unit.
Fig. 6 is a schematic diagram of an embodiment of a data transmission apparatus in this embodiment, which is applied to a source node in a network, and as shown in fig. 6, the apparatus 600 includes: the first determining unit 601 and the first processing unit 602, which are implemented in the same manner as the first determining unit 501 and the first processing unit 502 shown in fig. 5, are not repeated here.
Wherein, the apparatus 600 further comprises:
a first obtaining unit 603, configured to obtain a data recovery quality after the transmission of the current transmission data unit is completed;
a first determining unit 604, configured to determine, according to a predetermined packet loss policy, a packet loss combination that is no longer sent in a next data transmission unit when the data recovery quality is less than a threshold, where the packet loss combination includes a data type and a transmission position that are no longer sent;
a second processing unit 605, configured to transmit the next transmission data unit according to the packet loss combination information determined by the first determining unit.
The first determining unit 604 determines the packet loss combination that minimizes the network packet loss rate as the packet loss combination that is no longer sent in the next transmission data unit when the data recovery quality is greater than or equal to the threshold.
Wherein the first determining unit 604 comprises:
a second determining unit (not shown) configured to determine network packet loss ratios corresponding to different packet loss combinations under a condition that the data recovery quality is greater than or equal to the threshold;
and a third determining unit (not shown) configured to determine the packet loss combination that minimizes the network packet loss rate as a packet loss combination that is no longer transmitted in the next transmission data unit.
Alternatively, the first determining unit 604 includes:
a first obtaining unit (not shown) configured to obtain a current network packet loss rate;
a fourth determining unit (not shown) configured to determine a packet loss combination that is not to be sent any more in the next transmission data unit according to the current network packet loss ratio and a corresponding relationship between a pre-stored packet loss ratio and a packet loss combination.
Wherein the data recovery quality Q ═ wI·E(I)+wP·E(P)+wB·E(B),0<w<1, wherein e (i) is an expected value of a first type of data correctly decodable in the transmission data unit, e (p) is an expected value of a second type of data correctly decodable in the transmission data unit, e (b) is an expected value of a third type of data correctly decodable in the transmission data unit, w (b)IIs a first class numberAccording to the weight of the expected value, wPIs a weight, w, of expected values of the second type of dataBIs a weight of the expected value of the third type of data.
Wherein e (i) is a sum of probabilities that the first type of data in the transmission data unit is indirectly decodable; e (p) is the sum of probabilities that all second type data in the transmission data unit is indirectly decodable; e (b) is the sum of probabilities that all third type data in the transmission data unit is indirectly decodable.
Wherein the indirectly decodable probability of each type of data is calculated according to the data type and the transmission position of the data.
In this embodiment, the specific implementation manners of the first obtaining unit 603, the first determining unit 604 and the second processing unit 605 may refer to steps 403 and 404 in embodiment 2, which are not repeated here.
Fig. 7 is a schematic diagram of an embodiment of a data transmission apparatus in this embodiment, which is applied to a source node in a network, and as shown in fig. 7, the apparatus 700 includes: the first determining unit 701 and the first processing unit 702, which are implemented in the same manner as the first determining unit 501 and the first processing unit 502 shown in fig. 5, are not repeated here.
Wherein, the apparatus 700 further comprises:
a first receiving unit 703, configured to receive, when transmission of the current transmission data unit is completed and data recovery quality is less than a threshold, a packet loss combination sent by a destination node, where the packet loss combination includes a data type and a transmission position that are not sent any more in a next transmission data unit;
a third processing unit 704, configured to transmit the next pdu according to the ps combination information received by the first receiving unit 703.
In this embodiment, the specific implementation manners of the first receiving unit 703 and the third processing unit 704 may refer to steps 403' and 404 in embodiment 3, which are not repeated here.
Fig. 8 is a schematic diagram of a hardware configuration of a data transmission apparatus according to an embodiment of the present invention, and as shown in fig. 8, the apparatus 800 may include: an interface (not shown), a Central Processing Unit (CPU)820 and a memory 810; the memory 810 is coupled to the central processor 820. Wherein the memory 810 may store various data; further, a program for data transmission is stored, and the program is executed under the control of the central processor 820, and various preset values, predetermined conditions, and the like are stored.
In one embodiment, the functions of the data transfer device may be integrated into the central processor 820. Wherein the central processor 820 may be configured to:
if the first type data and/or the second type data are lost in the current transmission data unit and if the second type data and/or the third type data which are not sent exist in the current transmission data unit, the second type data and/or the third type data which are not sent;
the transmission data unit comprises first class data, second class data and third class data, wherein the first class data refers to data which does not refer to other class data during decoding; the second type data refers to data which refers to the first type data when decoding; the third type of data refers to data that refers to the first type of data and the second type of data when decoding, and is not referred to as other types of data.
Wherein the central processor 820 may be further configured to: the data type and transmission position of the data not sent in the current transmission data unit are determined according to the data type and transmission position lost in the current transmission data unit.
Wherein the central processor 820 may be further configured to: when the node is a source node, acquiring the data recovery quality after the transmission of the current transmission data unit is finished; when the data recovery quality is less than a threshold value, determining a packet loss combination which is not sent any more in a next transmission data unit according to a preset packet loss strategy, wherein the packet loss combination comprises a data type and a transmission position which are not sent any more; and transmitting the next transmission data unit according to the packet loss combination information determined by the first determination unit. Alternatively, the central processor 820 may also be configured to: when the node is a source node, when the transmission of the current transmission data unit is completed, and when the data recovery quality is less than a threshold value, receiving a packet loss combination sent by a destination node, wherein the packet loss combination comprises a data type and a transmission position which are not sent any more in a next transmission data unit; and transmitting the next transmission data unit according to the packet loss combination information received by the first receiving unit.
Wherein the central processor 820 may be further configured to: and under the condition that the data recovery quality is greater than or equal to the threshold, the first determining unit determines the packet loss combination which enables the network packet loss rate to be the minimum as the packet loss combination which is not sent any more in the next transmission data unit.
Wherein the central processor 820 may be further configured to: determining network packet loss rates corresponding to different packet loss combinations under the condition that the data recovery quality is greater than or equal to the threshold; and determining the packet loss combination which enables the network packet loss rate to be minimum as the packet loss combination which is not sent in the next transmission data unit.
Wherein the central processor 820 may be further configured to: acquiring the current network packet loss rate; and determining the packet loss combination which is not sent any more in the next transmission data unit according to the current network packet loss ratio and the corresponding relation between the pre-stored packet loss ratio and the packet loss combination.
Wherein the data recovery quality Q ═ wI·E(I)+wP·E(P)+wB·E(B),0<w<1, wherein e (i) is an expected value of a first type of data correctly decodable in the transmission data unit, e (p) is an expected value of a second type of data correctly decodable in the transmission data unit, e (b) is an expected value of a third type of data correctly decodable in the transmission data unit, w (b)IIs a weight, w, of expected values of the first type of dataPIs a weight, w, of expected values of the second type of dataBIs a weight of the expected value of the third type of data.
Wherein e (i) is a sum of probabilities that the first type of data in the transmission data unit is indirectly decodable; e (p) is the sum of probabilities that all second type data in the transmission data unit is indirectly decodable; e (b) is the sum of probabilities that all third type data in the transmission data unit is indirectly decodable.
Wherein the central processor 820 may be further configured to: and calculating the indirectly decodable probability of various data according to the data type and the transmission position of the data.
In another embodiment, the data transmission device may be disposed on a chip (not shown) connected to the central processing unit 820, and the function of the data transmission device may be realized by the control of the central processing unit 820.
In this embodiment, the apparatus 800 may further include: sensors 801, communication modules (transceivers) 804, power supplies 805, and the like; the functions of the above components are similar to those of the prior art, and are not described in detail here. It is noted that the apparatus 800 also does not necessarily include all of the components shown in FIG. 8; the device 800 may also comprise components not shown in fig. 8, as can be seen from the prior art.
By the device of the embodiment, the relevance among different types of data is considered, and the packet loss strategy is designed according to the importance degree of the data, so that the influence of data loss on the data recovery quality is reduced, the effective transmission of important data is ensured, the data transmission quality is improved, network resources can be saved, and the possibility of network congestion is reduced.
An embodiment of the present invention further provides a computer-readable program, where when the program is executed in a data transmission apparatus, the program causes a computer to execute the data transmission method according to any one of embodiments 1 to 3 above in the data transmission apparatus.
An embodiment of the present invention further provides a storage medium storing a computer-readable program, where the computer-readable program enables a computer to execute the data transmission method described in any one of embodiments 1 to 3 above in a data transmission device.
The method for data transmission in a data transmission device described in connection with the embodiments of the present invention may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. For example, one or more of the functional block diagrams and/or one or more combinations of the functional block diagrams illustrated in the figures may correspond to individual software modules, or may correspond to individual hardware modules of a computer program flow. These software modules may correspond to the steps shown in fig. 1,2, and 4, respectively. These hardware modules may be implemented, for example, by solidifying these software modules using a Field Programmable Gate Array (FPGA).
A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. A storage medium may be coupled to the processor such that the processor can read information from, and write information to, the storage medium; or the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The software module may be stored in the memory of the data transmission device or in a memory card that is insertable into the data transmission device.
One or more of the functional block diagrams and/or one or more combinations of the functional block diagrams described with respect to fig. 5-8 may be implemented as a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any suitable combination thereof designed to perform the functions described herein. One or more of the functional block diagrams and/or one or more combinations of the functional block diagrams described with respect to fig. 5-8 may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP communication, or any other such configuration.
While the invention has been described with reference to specific embodiments, it will be apparent to those skilled in the art that these descriptions are illustrative and not intended to limit the scope of the invention. Various modifications and alterations of this invention will become apparent to those skilled in the art based upon the spirit and principles of this invention, and such modifications and alterations are also within the scope of this invention.
With regard to the embodiments including the above embodiments, the following remarks are also disclosed.
1. A data transmission apparatus, the apparatus being applied to a node in a network, wherein the apparatus comprises:
a first judging unit, configured to judge whether the first type of data and/or the second type of data are lost in the current transmission data unit;
a first processing unit, configured to not send the second type data and/or the third type data that is not sent when the determination result of the first determining unit is yes and there is also second type data and/or third type data that is not sent in the current transmission data unit;
the transmission data unit comprises first class data, second class data and third class data, wherein the first class data refers to data which does not refer to other class data during decoding; the second type data refers to data which refers to the first type data when decoding; the third type of data refers to data that refers to the first type of data and the second type of data during decoding and is not referred to as other types of data.
2. The apparatus according to supplementary note 1, wherein the first processing unit determines the data type and transmission position of data not transmitted in the currently transmitted data unit, based on the data type and transmission position lost in the currently transmitted data unit.
3. The apparatus according to supplementary note 1, wherein when the node is a source node, the apparatus further comprises:
a first obtaining unit, configured to obtain data recovery quality after transmission of the current transmission data unit is completed;
a first determining unit, configured to determine, according to a predetermined packet loss policy, a packet loss combination that is no longer sent in a next data transmission unit when the data recovery quality is smaller than a threshold, where the packet loss combination includes a data type and a transmission position of data that is no longer sent;
a second processing unit, configured to transmit the next transmission data unit according to the information of the packet loss combination determined by the first determining unit;
or, when the node is a source node, the apparatus further includes:
a first receiving unit, configured to receive a packet loss combination sent by a destination node when transmission of the current transmission data unit is completed and data recovery quality is less than a threshold, where the packet loss combination includes a data type and a transmission position of data that is no longer sent in a next transmission data unit;
a third processing unit, configured to transmit the next transmission data unit according to the information of packet loss combination received by the first receiving unit.
4. The apparatus according to supplementary note 3, wherein the first determining unit determines, on condition that the data restoration quality is equal to or greater than the threshold, a packet loss combination that minimizes a network packet loss ratio as a packet loss combination that is no longer transmitted in a next transmission data unit.
5. The apparatus according to supplementary note 4, wherein the first determination unit includes:
a second determining unit, configured to determine network packet loss ratios corresponding to different packet loss combinations under a condition that the data recovery quality is greater than or equal to the threshold;
and a third determining unit, configured to determine a packet loss combination that minimizes the network packet loss rate as a packet loss combination that is no longer transmitted in the next transmission data unit.
6. The apparatus according to supplementary note 3, wherein the first determination unit includes:
a first obtaining unit, configured to obtain a current network packet loss rate;
and a fourth determining unit, configured to determine a packet loss combination that is not sent any more in a next data transmission unit according to the current network packet loss ratio and a correspondence between a pre-stored packet loss ratio and a packet loss combination.
7. The apparatus according to supplementary note 3, wherein the data recovery quality Q ═ wI·E(I)+wP·E(P)+wB·E(B),0<w<1, wherein e (i) is an expected value of a first type of data correctly decodable in the transmission data unit, e (p) is an expected value of a second type of data correctly decodable in the transmission data unit, e (b) is an expected value of a third type of data correctly decodable in the transmission data unit, w (b)IIs a weight, w, of expected values of the first type of dataPWeighted value of expected value of second class data,wBIs a weight of the expected value of the third type of data.
8. The apparatus according to supplementary note 7, wherein e (i) is a sum of probabilities that the first type of data in the transmission data unit is indirectly decodable; e (p) is the sum of probabilities that all second type data in the transmission data unit is indirectly decodable; e (b) a sum of probabilities that is indirectly decodable for all third type data in the transmission data unit.
9. The apparatus according to supplementary note 8, wherein a probability of indirect decodability of each type of data is calculated based on a data type and a transmission position of the data.
10. A data transmission method, wherein the method comprises:
judging whether the first type data and/or the second type data are lost in the current transmission data unit;
if the judgment result is yes, and if unsent second-class data and/or third-class data still exist in the current transmission data unit, unsent second-class data and/or third-class data are not sent;
the transmission data unit comprises first class data, second class data and third class data, wherein the first class data refers to data which does not refer to other class data during decoding; the second type data refers to data which refers to the first type data when decoding; the third type of data refers to data that refers to the first type of data and the second type of data during decoding and is not referred to as other types of data.
11. The method according to supplementary note 10, wherein after the judging step, the method further comprises: the data type and transmission position of the data not sent in the current transmission data unit are determined according to the data type and transmission position lost in the current transmission data unit.
12. The method according to supplementary note 10, wherein when the node is a source node, the method further comprises:
after the transmission of the current transmission data unit is finished, acquiring the data recovery quality;
when the data recovery quality is smaller than a threshold value, determining a packet loss combination which is not sent any more in a next transmission data unit according to a preset packet loss strategy, wherein the packet loss combination comprises the data type and the transmission position of the data which is not sent any more;
transmitting the next transmission data unit according to the determined packet loss combination information;
or, when the node is a source node, the method further includes:
when the transmission of the current transmission data unit is finished and the data recovery quality is less than a threshold value, receiving a packet loss combination sent by a destination node, wherein the packet loss combination comprises the data type and the transmission position of data which is not sent any more in the next transmission data unit;
and transmitting the next data transmission unit according to the information of the packet loss combination received by the first receiving unit.
13. The method according to supplementary note 12, wherein the packet loss combination that minimizes the network packet loss rate is determined as a packet loss combination that is no longer transmitted in the next transmission data unit, on the condition that the data recovery quality is equal to or greater than the threshold.
14. The method according to supplementary note 13, wherein determining the packet loss combination that minimizes the network packet loss ratio as the packet loss combination that is no longer transmitted in the next transmission data unit includes:
determining network packet loss rates corresponding to different packet loss combinations under the condition that the data recovery quality is greater than or equal to the threshold;
and determining the packet loss combination which enables the network packet loss rate to be minimum as the packet loss combination which is not sent in the next transmission data unit.
15. The method according to supplementary note 12, wherein determining the packet loss combination that minimizes the network packet loss rate as the packet loss combination that is no longer transmitted in the next transmission data unit includes:
acquiring the current network packet loss rate;
and determining the packet loss combination which is not sent any more in the next transmission data unit according to the current network packet loss rate and the corresponding relation between the pre-stored packet loss rate and the packet loss combination.
16. The method according to supplementary note 12, wherein the data recovery quality Q ═ wI·E(I)+wP·E(P)+wB·E(B),0<w<1, wherein e (i) is an expected value of a first type of data correctly decodable in the transmission data unit, e (p) is an expected value of a second type of data correctly decodable in the transmission data unit, e (b) is an expected value of a third type of data correctly decodable in the transmission data unit, w (b)IIs a weight, w, of expected values of the first type of dataPIs a weight, w, of expected values of the second type of dataBIs a weight of the expected value of the third type of data.
17. The method according to supplementary note 16, wherein e (i) is a sum of probabilities that the first type of data in the transmission data unit is indirectly decodable; e (p) is the sum of probabilities that all second type data in the transmission data unit is indirectly decodable; e (b) a sum of probabilities that is indirectly decodable for all third type data in the transmission data unit.
18. The method according to supplementary note 17, wherein a probability of indirect decodability of each type of data is calculated based on the type of data and the transmission position of the data.

Claims (13)

1. A data transmission apparatus, the apparatus being applied to a node in a network, wherein the apparatus comprises:
a first judging unit, configured to judge whether the first type of data and/or the second type of data are lost in the current transmission data unit;
a first processing unit, configured to not send the second type data and/or the third type data that is not sent when the determination result of the first determining unit is yes and there is also second type data and/or third type data that is not sent in the current transmission data unit;
the transmission data unit comprises first class data, second class data and third class data, wherein the first class data refers to data which does not refer to other class data during decoding; the second type data refers to data which refers to the first type data when decoding; the third type of data refers to the first type of data and the second type of data which are referred to during decoding and are not referred to as other types of data;
wherein, when the node is a source node, the apparatus further comprises:
a first obtaining unit, configured to obtain data recovery quality after transmission of the current transmission data unit is completed;
a first determining unit, configured to determine, according to a predetermined packet loss policy, a packet loss combination that is no longer sent in a next data transmission unit when the data recovery quality is smaller than a threshold, where the packet loss combination includes a data type and a transmission position of data that is no longer sent; and
a second processing unit, configured to transmit the next transmission data unit according to the information of the packet loss combination determined by the first determining unit;
or, when the node is a source node, the apparatus further includes:
a first receiving unit, configured to receive a packet loss combination sent by a destination node when transmission of the current transmission data unit is completed and data recovery quality is less than a threshold, where the packet loss combination includes a data type and a transmission position of data that is no longer sent in a next transmission data unit; and
a third processing unit, configured to transmit the next transmission data unit according to the information of the packet loss combination received by the first receiving unit;
and under the condition that the data recovery quality is greater than or equal to the threshold, the packet loss combination which is not sent any more in the next transmission data unit is the packet loss combination which enables the network packet loss rate to be minimum.
2. The apparatus of claim 1, wherein the first processing unit determines the data type and transmission location of data not sent in the current transmission data unit based on the data type and transmission location lost in the current transmission data unit.
3. The apparatus of claim 1, wherein the first determining unit comprises:
a second determining unit, configured to determine network packet loss ratios corresponding to different packet loss combinations under a condition that the data recovery quality is greater than or equal to the threshold;
and a third determining unit, configured to determine a packet loss combination that minimizes the network packet loss rate as a packet loss combination that is no longer transmitted in the next transmission data unit.
4. The apparatus of claim 1, wherein the data recovery quality
Figure DEST_PATH_IMAGE001
Wherein E (I) is the expected value of the first type of data correctly decodable in the transmission data unit, E (P) is the expected value of the second type of data correctly decodable in the transmission data unit, E (B) is the expected value of the third type of data correctly decodable in the transmission data unit,
Figure 133755DEST_PATH_IMAGE002
is a weight of the expected value of the first type of data,
Figure DEST_PATH_IMAGE003
is a weight of the expected value of the second type of data,
Figure 582054DEST_PATH_IMAGE004
is a weight of the expected value of the third type of data.
5. The apparatus of claim 4, wherein e (i) is a sum of probabilities that the first type of data in the transmitted data unit is indirectly decodable; e (p) is the sum of probabilities that all second type data in the transmission data unit is indirectly decodable; e (b) a sum of probabilities that is indirectly decodable for all third type data in the transmission data unit.
6. The apparatus of claim 5, wherein the probability of indirect decodability for each type of data is calculated based on the type of data and the transmission location of the data.
7. A data transmission apparatus, the apparatus being applied to a node in a network, wherein the apparatus comprises:
a first judging unit, configured to judge whether the first type of data and/or the second type of data are lost in the current transmission data unit;
a first processing unit, configured to not send the second type data and/or the third type data that is not sent when the determination result of the first determining unit is yes and there is also second type data and/or third type data that is not sent in the current transmission data unit;
the transmission data unit comprises first class data, second class data and third class data, wherein the first class data refers to data which does not refer to other class data during decoding; the second type data refers to data which refers to the first type data when decoding; the third type of data refers to the first type of data and the second type of data which are referred to during decoding and are not referred to as other types of data;
wherein, when the node is a source node, the apparatus further comprises:
a first obtaining unit, configured to obtain data recovery quality after transmission of the current transmission data unit is completed;
a first determining unit, configured to determine, according to a predetermined packet loss policy, a packet loss combination that is no longer sent in a next data transmission unit when the data recovery quality is smaller than a threshold, where the packet loss combination includes a data type and a transmission position of data that is no longer sent; and
a second processing unit, configured to transmit the next transmission data unit according to the information of the packet loss combination determined by the first determining unit;
or, when the node is a source node, the apparatus further includes:
a first receiving unit, configured to receive a packet loss combination sent by a destination node when transmission of the current transmission data unit is completed and data recovery quality is less than a threshold, where the packet loss combination includes a data type and a transmission position of data that is no longer sent in a next transmission data unit; and
a third processing unit, configured to transmit the next transmission data unit according to the information of the packet loss combination received by the first receiving unit;
and determining the packet loss combination which is not sent any more in the next transmission data unit according to the current network packet loss ratio and the corresponding relation between the pre-stored packet loss ratio and the packet loss combination.
8. The apparatus of claim 7, wherein the first processing unit determines the data type and transmission location of data not sent in the current transmission data unit based on the data type and transmission location lost in the current transmission data unit.
9. The apparatus of claim 7, wherein the data recovery quality
Figure 96212DEST_PATH_IMAGE001
Wherein E (I) is the expected value of the first type of data correctly decodable in the transmission data unit, E (P) is the expected value of the second type of data correctly decodable in the transmission data unit, E (B) is the expected value of the third type of data correctly decodable in the transmission data unit,
Figure DEST_PATH_IMAGE005
is a weight of the expected value of the first type of data,
Figure 22579DEST_PATH_IMAGE006
is a weight of the expected value of the second type of data,
Figure DEST_PATH_IMAGE007
is a weight of the expected value of the third type of data.
10. The apparatus of claim 9, wherein e (i) is a sum of probabilities that the first type of data in the transmitted data unit is indirectly decodable; e (p) is the sum of probabilities that all second type data in the transmission data unit is indirectly decodable; e (b) a sum of probabilities that is indirectly decodable for all third type data in the transmission data unit.
11. The apparatus of claim 10, wherein the probability of indirect decodability for each type of data is calculated based on the type of data and the transmission location of the data.
12. A data transmission method is applied to nodes in a network, wherein the method comprises the following steps:
judging whether the first type data and/or the second type data are lost in the current transmission data unit;
if the judgment result is yes, and if unsent second-class data and/or third-class data still exist in the current transmission data unit, unsent second-class data and/or third-class data are not sent;
the transmission data unit comprises first class data, second class data and third class data, wherein the first class data refers to data which does not refer to other class data during decoding; the second type data refers to data which refers to the first type data when decoding; the third type of data refers to the first type of data and the second type of data which are referred to during decoding and are not referred to as other types of data;
when the node is a source node, the method further comprises:
after the transmission of the current transmission data unit is finished, acquiring the data recovery quality;
when the data recovery quality is smaller than a threshold value, determining a packet loss combination which is not sent any more in a next transmission data unit according to a preset packet loss strategy, wherein the packet loss combination comprises the data type and the transmission position of the data which is not sent any more;
transmitting the next transmission data unit according to the determined packet loss combination information;
or, when the node is a source node, the method further includes:
when the transmission of the current transmission data unit is finished and the data recovery quality is less than a threshold value, receiving a packet loss combination sent by a destination node, wherein the packet loss combination comprises the data type and the transmission position of data which is not sent any more in the next transmission data unit;
transmitting the next transmission data unit according to the received packet loss combination information;
and under the condition that the data recovery quality is greater than or equal to the threshold, the packet loss combination which is not sent any more in the next transmission data unit is the packet loss combination which enables the network packet loss rate to be minimum.
13. A data transmission method is applied to nodes in a network, wherein the method comprises the following steps:
judging whether the first type data and/or the second type data are lost in the current transmission data unit;
if the judgment result is yes, and if unsent second-class data and/or third-class data still exist in the current transmission data unit, unsent second-class data and/or third-class data are not sent;
the transmission data unit comprises first class data, second class data and third class data, wherein the first class data refers to data which does not refer to other class data during decoding; the second type data refers to data which refers to the first type data when decoding; the third type of data refers to the first type of data and the second type of data which are referred to during decoding and are not referred to as other types of data;
when the node is a source node, the method further comprises:
after the transmission of the current transmission data unit is finished, acquiring the data recovery quality;
when the data recovery quality is smaller than a threshold value, determining a packet loss combination which is not sent any more in a next transmission data unit according to a preset packet loss strategy, wherein the packet loss combination comprises the data type and the transmission position of the data which is not sent any more;
transmitting the next transmission data unit according to the determined packet loss combination information;
or, when the node is a source node, the method further includes:
when the transmission of the current transmission data unit is finished and the data recovery quality is less than a threshold value, receiving a packet loss combination sent by a destination node, wherein the packet loss combination comprises the data type and the transmission position of data which is not sent any more in the next transmission data unit;
transmitting the next transmission data unit according to the received packet loss combination information;
and determining the packet loss combination which is not sent any more in the next transmission data unit according to the current network packet loss ratio and the corresponding relation between the pre-stored packet loss ratio and the packet loss combination.
CN201611226585.4A 2016-12-27 2016-12-27 Data transmission method and device Active CN108243073B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611226585.4A CN108243073B (en) 2016-12-27 2016-12-27 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611226585.4A CN108243073B (en) 2016-12-27 2016-12-27 Data transmission method and device

Publications (2)

Publication Number Publication Date
CN108243073A CN108243073A (en) 2018-07-03
CN108243073B true CN108243073B (en) 2021-07-30

Family

ID=62702739

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611226585.4A Active CN108243073B (en) 2016-12-27 2016-12-27 Data transmission method and device

Country Status (1)

Country Link
CN (1) CN108243073B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116938828A (en) * 2022-03-29 2023-10-24 腾讯科技(深圳)有限公司 Data packet transmission method and related equipment
CN117478971A (en) * 2022-07-22 2024-01-30 中国移动通信有限公司研究院 Data processing method and device and communication equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651826A (en) * 2008-08-15 2010-02-17 华为技术有限公司 Method and device for sending and receiving media and system
WO2010048825A1 (en) * 2008-10-31 2010-05-06 华为技术有限公司 Lost packet retransmission suppressing method, network node and system
CN102104468A (en) * 2011-02-18 2011-06-22 中兴通讯股份有限公司 Routing agent-based media sensing automatic retransmission request (ARQ) control method and system
WO2012054209A1 (en) * 2010-10-22 2012-04-26 Motorola Solutions, Inc. Method and apparatus for distributing video packets over multiple bearers for providing unequal packet loss protection
CN102810314A (en) * 2011-06-02 2012-12-05 华为终端有限公司 Audio encoding method and device, audio decoding method and device, and encoding and decoding system
CN103270728A (en) * 2010-12-09 2013-08-28 赛格纳斯广播公司 Systems and methods for prioritization of data for intelligent discard in a communication network
CN103283249A (en) * 2010-12-09 2013-09-04 赛格纳斯广播公司 Systems and methods for prioritization of data for intelligent discard in a communication network
CN103503511A (en) * 2011-05-25 2014-01-08 华为技术有限公司 System and method for monitoring dropped packets
CN104754404A (en) * 2015-03-02 2015-07-01 深圳市金立通信设备有限公司 Terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651826A (en) * 2008-08-15 2010-02-17 华为技术有限公司 Method and device for sending and receiving media and system
WO2010048825A1 (en) * 2008-10-31 2010-05-06 华为技术有限公司 Lost packet retransmission suppressing method, network node and system
WO2012054209A1 (en) * 2010-10-22 2012-04-26 Motorola Solutions, Inc. Method and apparatus for distributing video packets over multiple bearers for providing unequal packet loss protection
CN103270728A (en) * 2010-12-09 2013-08-28 赛格纳斯广播公司 Systems and methods for prioritization of data for intelligent discard in a communication network
CN103283249A (en) * 2010-12-09 2013-09-04 赛格纳斯广播公司 Systems and methods for prioritization of data for intelligent discard in a communication network
CN102104468A (en) * 2011-02-18 2011-06-22 中兴通讯股份有限公司 Routing agent-based media sensing automatic retransmission request (ARQ) control method and system
CN103503511A (en) * 2011-05-25 2014-01-08 华为技术有限公司 System and method for monitoring dropped packets
CN102810314A (en) * 2011-06-02 2012-12-05 华为终端有限公司 Audio encoding method and device, audio decoding method and device, and encoding and decoding system
CN104754404A (en) * 2015-03-02 2015-07-01 深圳市金立通信设备有限公司 Terminal

Also Published As

Publication number Publication date
CN108243073A (en) 2018-07-03

Similar Documents

Publication Publication Date Title
US10652580B2 (en) Video data processing method and apparatus
JP5991598B2 (en) Data processing apparatus and data processing method
US9521685B2 (en) Circuit arrangement and method of determining a priority of packet scheduling
CN109068187B (en) Real-time traffic delivery system and method
US8358688B2 (en) Method for transmitting moving image data and communication apparatus
US10084715B2 (en) Packet loss mitigation
WO2017211096A1 (en) Method and device for transmitting data stream
WO2017161999A1 (en) Packet processing method and related device
CN112995048B (en) Blocking control and scheduling fusion method of data center network and terminal equipment
WO2017173880A1 (en) Method and device for reducing packet loss ratio of transmission
Yao et al. IPB-frame adaptive mapping mechanism for video transmission over IEEE 802.11 e WLANs
WO2017097201A1 (en) Data transmission method, transmission device and receiving device
US9246830B2 (en) Method and apparatus for multimedia queue management
CN108243073B (en) Data transmission method and device
US8914834B2 (en) Source rate and channel rate matching for scalable video transmission
JP6512282B2 (en) Communication apparatus, available band calculation system, available band calculation method and program
WO2015085849A1 (en) Method for network device congestion avoidance and network device
KR20120107948A (en) Data packet priority level management
US10700818B2 (en) System and method for improving efficiency of wirelessly transmitting video packets
Yaakob et al. Performance analysis of optimal packet size for congestion control in wireless sensor networks
WO2021052295A1 (en) Network congestion processing method and related device
JP2015050591A (en) Information processor, information processing method, and program
CN114513440A (en) Message transmission method, sending end and network equipment
US8837453B2 (en) Methods and apparatus for transmitting data based on interframe dependencies
CN113472680A (en) Packet loss processing method and device, communication device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant