CN109327283A - A kind of anti-dropout method, apparatus and terminal device of network self-adapting - Google Patents

A kind of anti-dropout method, apparatus and terminal device of network self-adapting Download PDF

Info

Publication number
CN109327283A
CN109327283A CN201811405366.1A CN201811405366A CN109327283A CN 109327283 A CN109327283 A CN 109327283A CN 201811405366 A CN201811405366 A CN 201811405366A CN 109327283 A CN109327283 A CN 109327283A
Authority
CN
China
Prior art keywords
packet loss
redundancy
threshold
reaches
interleave depth
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.)
Granted
Application number
CN201811405366.1A
Other languages
Chinese (zh)
Other versions
CN109327283B (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.)
Shenzhen Silver Peng Cloud Computing Co Ltd
Original Assignee
Shenzhen Silver Peng Cloud Computing Co 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 Shenzhen Silver Peng Cloud Computing Co Ltd filed Critical Shenzhen Silver Peng Cloud Computing Co Ltd
Priority to CN201811405366.1A priority Critical patent/CN109327283B/en
Publication of CN109327283A publication Critical patent/CN109327283A/en
Application granted granted Critical
Publication of CN109327283B publication Critical patent/CN109327283B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0009Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the channel coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0071Use of interleaving
    • 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

Abstract

The present invention is suitable for technical field of data transmission, provides the anti-dropout method, apparatus and terminal device of a kind of network self-adapting, comprising: receives packet loss feedback information;Wherein, the packet loss feedback information includes packet loss;If the packet loss is greater than preset value, the redundancy of forward error correction coding FEC and/or the interleave depth of interweaving encoding are adjusted, until the redundancy reaches first threshold and/or the interleave depth reaches second threshold;After the redundancy reaches first threshold and/or the interleave depth reaches second threshold, if the packet loss is still greater than preset value, message length is adjusted, until the message length reaches third threshold value.The embodiment of the present invention can be adjusted multiple parameters in the case where network quality is poor, i.e., FEC redundancy and/or interleave depth are first adjusted, then adjust message length, to enhance the anti-packet loss ability of system.

Description

A kind of anti-dropout method, apparatus and terminal device of network self-adapting
Technical field
The invention belongs to the anti-dropout method, apparatus of technical field of data transmission more particularly to a kind of network self-adapting and Terminal device.
Background technique
In audio or video communication, usually using User Datagram Protocol (UDP, User Datagram Protocol) carry out data transmission.But since UDP is a kind of insecure transmission mode, in the mistake of data transmission Often occurs the case where packet loss in journey, thus the phenomenon that causing audio to play discontinuous and video cardton.
Currently, common anti-dropout technology is forward error correction coding (FEC, Forward Erasure Correction) skill Art.Since FEC increases redundant data in initial data, so that the bandwidth of consumption increases, and FEC redundancy is higher, disappears The bandwidth of consumption is more.Therefore, during data are transmitted, the anti-packet loss ability of lifting system is carried out using FEC, cannot be obtained very Good effect.
Summary of the invention
In view of this, the embodiment of the invention provides the anti-dropout method, apparatus and terminal device of a kind of network self-adapting, It is intended to the anti-packet loss ability of lifting system.
The first aspect of the embodiment of the present invention provides a kind of anti-dropout method of network self-adapting, comprising:
Receive packet loss feedback information;Wherein, the packet loss feedback information includes packet loss;
If the packet loss is greater than preset value, the redundancy of forward error correction coding FEC and/or the friendship of interweaving encoding are adjusted Depth is knitted, until the redundancy reaches first threshold and/or the interleave depth reaches second threshold;
After the redundancy reaches first threshold and/or the interleave depth reaches second threshold, if the packet loss Rate is still greater than preset value, then adjusts message length, until the message length reaches third threshold value.
The second aspect of the embodiment of the present invention provides a kind of anti-dropout device of network self-adapting, comprising:
Information receiving module, for receiving packet loss feedback information;Wherein, the packet loss feedback information includes packet loss;
The first adjustment module adjusts the redundancy of forward error correction coding FEC if being greater than preset value for the packet loss And/or the interleave depth of interweaving encoding, until the redundancy reaches first threshold and/or the interleave depth reaches the second threshold Until value;
Second adjustment module, for reaching first threshold in the redundancy or the interleave depth reaches second threshold Later, if the packet loss is still greater than preset value, message length is adjusted, is until the message length reaches third threshold value Only.
The third aspect of the embodiment of the present invention provides a kind of terminal device, including memory, processor and is stored in In the memory and the computer program that can run on the processor, which is characterized in that described in the processor executes The method as described in above-mentioned first aspect is realized when computer program.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, which is characterized in that such as above-mentioned first party is realized when the computer program is executed by processor Method described in face.
The embodiment of the present invention by first adjusting FEC redundancy and/or interleave depth when packet loss is greater than preset value, if After the two reaches threshold value, packet loss is still greater than preset value, then adjusts message length, so that the situation poor in network quality Under, multiple parameters can be adjusted, i.e., first adjust FEC redundancy and/or interleave depth, then adjust message length, thus The anti-packet loss ability of enhancing system.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of flow diagram of the anti-dropout method of network self-adapting provided in an embodiment of the present invention;
Fig. 1 a is the message package for obtain after FEC coding to data to be transmitted;
Fig. 1 b is that interleave depth is 3, is interleaved the message obtained after coding to Fig. 1 a;
Fig. 1 c is to halve the message length in Fig. 1 a, the message package obtained after recycling FEC to encode and be grouped again;
Fig. 1 d is that interleave depth is 6, is interleaved the message obtained after coding to Fig. 1 c;
Fig. 2 is the flow diagram of the anti-dropout method of another network self-adapting provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram for the anti-dropout device that the embodiment of the present invention provides network self-adapting;
Fig. 4 is a kind of schematic diagram of terminal device provided in an embodiment of the present invention.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Embodiment one:
Referring to Figure 1, Fig. 1 is a kind of process signal of the anti-dropout method of network self-adapting provided in an embodiment of the present invention Figure, details are as follows:
Step S101: packet loss feedback information is received;Wherein, the packet loss feedback information includes packet loss.
Before sending receiving end for data to be transmitted, need first to encode data to be transmitted.For to The video data of transmission is encoded using H.264 coding techniques, obtains video frame, video frame is stored in buffer area, and The data of buffer area are divided into isometric data block.Wherein, the length of data block can be set as needed, and generally take 1KB i.e. 1024 bytes are also possible to other length.Then forward error correction coding (FEC, Forward are carried out to the data in buffer area again Erasure Correction), i.e., increase redundant data in original data to be transmitted, obtains the message with redundant data.Its In, the length of redundant data can be set as needed, and this is not restricted.
For example, it is assumed that the length of original data to be transmitted be 4, the length of redundant data is also 4, then to data to be transmitted into After row FEC coding, obtained message package is as shown in Figure 1a.The above-mentioned message with redundant data is interleaved coding again, Need to choose an interleave depth when being interleaved coding, it is assumed that interleave depth 3, the then message after being interleaved As shown in Figure 1 b.
It should be noted that the process of above-mentioned coding is also suitable audio data.
The message after intertexture is finally sent to receiving end.After receiving end receives message, to the message amount of loss It is counted, calculates packet loss, and send packet loss feedback information.After receiving packet loss feedback information, lost according to described Packet feedback information can learn the packet loss situation of current network and the quality of current network, if packet loss is excessive, Then illustrate that current network quality is bad.It wherein, include packet loss in the packet loss feedback information.
Step S102: if the packet loss is greater than preset value, the redundancy and/or friendship of forward error correction coding FEC are adjusted The interleave depth for knitting coding, until the redundancy reaches first threshold and/or the interleave depth reaches second threshold.
Wherein, the preset value can be set as needed, such as can be set to 5%.It is preset when the packet loss is greater than When value, illustrate the packet loss situation of current network than more serious, receiving end cannot be to be passed out according to the packet parsing received Defeated data, it is therefore desirable to reduce packet loss.It, can be by adjusting forward error correction coding in order to reduce the packet loss of current network The interleave depth of the redundancy of FEC and/or interweaving encoding is realized.
It should be noted that assuming that original data to be transmitted length is k, redundant data length is r, the then calculating of redundancy Are as follows: r/ (k+r).Since original data to be transmitted length k will not change under normal conditions, adjustment redundancy is actually Adjust redundant data length r.
In Network Packet Loss, even if total average packet loss ratio is not high, such as average packet loss ratio only has 1%, but if at certain There is the case where continual data package dropout in a period, this will cannot restore beyond the anti-dropout rate of maximum of FEC so as to cause FEC The anti-packet loss ability of the data of loss, system is insufficient.Since the data recovery capabilities of FEC are limited, and redundancy is higher, The bandwidth of consumption can additionally increase, therefore cannot be simply by increasing redundancy come to anti-dropout, so the redundancy of FEC is deposited In a maximum value.Therefore, when being adjusted to redundancy, need to set first threshold, the first threshold can be with It is set as needed, for example, it can be set to being the length of original data to be transmitted, this is not restricted.
Also, since interweaving encoding can inherently introduce certain time delay, interleave depth is bigger, the extra latency of introducing It can be bigger;But if interleave depth becomes smaller, the anti-packet loss ability of system is again too weak, is not enough to anti-dropout.Therefore it is choosing When interleave depth, need to consider the balance of time delay and anti-packet loss ability.In the case where not introducing significant time delay, interweave deep There are a threshold values for degree.Therefore when being adjusted to interleave depth, need to set second threshold, the second threshold can root According to needing to set, this is not restricted.
Optionally, when packet loss is greater than preset value, the intertexture that can individually adjust FEC redundancy or interweaving encoding is deep Degree can also simultaneously be adjusted the interleave depth of FEC redundancy and interweaving encoding.
It specifically, can be there are two types of adjustment side when the interleave depth to FEC redundancy and interweaving encoding is adjusted Formula.Wherein, the first is first to be adjusted to redundancy, then be adjusted to interleave depth;Second is first to interleave depth It is adjusted, then redundancy is adjusted.
Optionally, the first adjustment mode are as follows: if the packet loss is greater than preset value, adjust forward error correction coding FEC Redundancy and/or interweaving encoding interleave depth, until the redundancy reaches first threshold and/or the interleave depth reaches Until second threshold, specifically include:
If the packet loss is greater than preset value, the redundancy of forward error correction coding FEC is adjusted;
After the redundancy reaches first threshold, if the packet loss is still greater than preset value, the intertexture is adjusted Depth, until the interleave depth reaches second threshold.
When the packet loss is greater than preset value, first the redundancy of forward error correction coding FEC is adjusted, specifically: It is gradually increased redundancy.For example, it is assumed that the length of original data to be transmitted is 4, original redundancy is set as 2, works as packet loss When more serious greater than preset value, that is, packet drop, redundancy can be increased to 3, if packet loss is still greater than preset value, said It still cannot then need to continue to increase redundancy, until redundancy reaches first threshold to anti-dropout before improving eyesight.
After the redundancy reaches first threshold, if preset value is still greater than in the packet loss, illustrate at present still So further adjustment interleave depth cannot be needed at this time to anti-dropout, specifically: it is gradually increased interleave depth.For example, it is assumed that Original interleave depth is 2, when packet loss is greater than preset value, interleave depth can be increased to 3, if packet loss is still greater than Preset value illustrates still cannot then need to continue to increase interleave depth to anti-dropout at present, until the interleave depth reaches the Until two threshold values.
It should be noted that adjustment amplitude can be 1 or 2 in the above-mentioned adjustment to redundancy or interleave depth, it can also To be other numerical value, it is not limited thereto.
Optionally, second of adjustment mode are as follows: if the packet loss is greater than preset value, adjust forward error correction coding FEC Redundancy and/or interweaving encoding interleave depth, until the redundancy reaches first threshold and/or the interleave depth reaches Until second threshold, further includes:
If the packet loss is greater than preset value, the interleave depth of interweaving encoding is adjusted;
After the interleave depth reaches second threshold, if the packet loss is still greater than preset value, adjust described superfluous Remaining, until the redundancy reaches first threshold.
For example, it is assumed that the length of original data to be transmitted is 4, original interleave depth is set as 2, when packet loss is greater than in advance If value is that packet drop is more serious, interleave depth can be increased to 3, if packet loss is still greater than preset value, illustrate mesh It is preceding still then to need to continue to increase interleave depth, until interleave depth reaches second threshold to anti-dropout.
After the interleave depth reaches second threshold, if preset value is still greater than in the packet loss, illustrate at present Still further adjustment redundancy cannot be needed at this time to anti-dropout, specifically: it is gradually increased redundancy.For example, it is assumed that former The redundancy of beginning be 2, when packet loss be greater than preset value when, redundancy can be increased to 3, if packet loss be still greater than it is default Value illustrate still cannot then need to continue to increase redundancy to anti-dropout at present, is up to the redundancy reaches first threshold Only.
It should be noted that adjustment amplitude can be 1 or 2 in the above-mentioned adjustment to redundancy or interleave depth, it can also To be other numerical value, it is not limited thereto.
Illustratively, it is assumed that it is obtained message package after FEC coding that redundant data length r, which is 4, Fig. 1 a, every in Fig. 1 a A package contains 8 messages, and 4 messages on the left side are original data to be transmitted, and 4 messages on the right are redundant data. Coding is interleaved to the package of Fig. 1 a, the maximum interleave depth in Fig. 1 a is 3.Choosing interleave depth is 3, by the report of package 1 Text 1 is interleaved with each other with the message 2 of package 2 and the message 3 of package 3, and interleaved order can be 123, is also possible to 321, Either 132, the message after having obtained intertexture as shown in Figure 1 b, and interleaved order selected in Fig. 1 b is 123.
After FEC coding and interweaving encoding, it is assumed that interleave depth d, the then maximum anti-packet loss ability of system are as follows: Wmax=2 × r × d.In the above example, since redundant data length r is 4, interleave depth d is 3, therefore the maximum of system is anti- Packet loss ability is Wmax=2 × 4 × 3=24.
Step S103: after the redundancy reaches first threshold and/or the interleave depth reaches second threshold, if The packet loss is still greater than preset value, then adjusts message length, until the message length reaches third threshold value.
After the adjustment by redundancy and/or interleave depth, if packet loss is still greater than preset value, before explanation It still cannot be to anti-dropout for the adjustment of redundancy and/or interleave depth, it is therefore desirable to which further adjustment, method of adjustment are Message length is adjusted, until message length reaches third threshold value.
Usually, carry out data transmission using User Datagram Protocol (UDP, User Datagram Protocol) When, message length can be set to 1KB i.e. 1024 bytes.In the case where packet loss is greater than preset value, to realize to anti-dropout, It needs to reduce message length, to enhance the anti-packet loss ability of system.
Reduce message length can enhance system anti-packet loss ability be because are as follows: assuming that original message length is for 1KB The size of 1024 bytes, total data is 2KB i.e. 2048 bytes, then has 2 messages.Message length is halved as 512B i.e. at this time 512 bytes, the constant size of total data is still 2KB, but since the length of each message halves, so that the quantity of message increases One times, become 4 messages, it means that the message amount of each package both increases, so interleave depth can also be with Double.Therefore reduce message length, the increase of interleave depth may be implemented, so that the anti-packet loss ability of system increases By force.
For example, the message length in Fig. 1 a is halved, FEC is recycled to encode and is grouped again, obtain as illustrated in figure 1 c Message package.It can be seen that package originally is 3, one shares 24 messages, after message length is halved, message Quantity increases one times, becomes 48 messages, package quantity is 6, but the size of total data is still constant.It is right again Package in Fig. 1 c is interleaved coding, and maximum interleave depth becomes 6 by original 3, and the message after obtained intertexture is as schemed Shown in 1d.After halving message length, interleave depth d becomes 6 from 3, at this time the maximum anti-packet loss ability of system are as follows: Wmax =2 × 4 × 6=48.
It can be seen that the maximum anti-packet loss ability of system enhances one times.Therefore, can be increased by reducing message length Interleave depth, to enhance the anti-packet loss ability of system.Wherein, interleaved order can arbitrarily be set, and can be 123456, can also To be 654321, it can also be 145632, be not limited thereto.
It should be noted that, although the anti-packet loss ability of system can be enhanced by reducing message length, but message length is also simultaneously Non- the smaller the better, this is because message length is smaller, so that message amount increases in network, which increase the processing of system to open Pin, causes huge pressure to the transmitting-receiving of system, may result in network congestion, it is therefore desirable to be arranged one to message length Minimum value, i.e. third threshold value.Based on practical experience, the value of the third threshold value should be 256Byte i.e. 256 bytes.
Further, since the maximum anti-packet loss ability of system are as follows: Wmax=2 × r × d, the i.e. maximum anti-packet loss ability of system are only It is related with redundant data length r and interleave depth d.In order to obtain identical maximum anti-packet loss ability, by by original report While literary length halves, interleave depth is doubled, redundancy can be reduced.For example, in order to obtain with it is original identical System maximum anti-packet loss ability i.e. 24, after interleave depth d is increased to 6 by 3, correspondingly, redundant data length r can To be reduced to 2 by 4.Since redundancy reduces, so that system in the case where obtaining identical maximum anti-packet loss ability, has higher Bandwidth availability ratio.
The embodiment of the present invention by first adjusting FEC redundancy and/or interleave depth when packet loss is greater than preset value, if After the two reaches threshold value, packet loss is still greater than preset value, then adjusts message length, so that the situation poor in network quality Under, multiple parameters can be adjusted, i.e., first adjust FEC redundancy and/or interleave depth, then adjust message length, thus The anti-packet loss ability of enhancing system.
Embodiment two:
Step S201: packet loss feedback information is received;Wherein, the packet loss feedback information includes packet loss.
S201 is identical as the S101 in a upper embodiment in the present embodiment, referring specifically to the phase of S102 in a upper embodiment Description is closed, is not repeated herein.
Step S202: if the packet loss is greater than preset value, the redundancy and/or friendship of forward error correction coding FEC are adjusted The interleave depth for knitting coding, until the redundancy reaches first threshold and/or the interleave depth reaches second threshold.
S202 is identical as the S102 in a upper embodiment in the present embodiment, referring specifically to the phase of S102 in a upper embodiment Description is closed, is not repeated herein.
Step S203: after the redundancy reaches first threshold and/or the interleave depth reaches second threshold, if The packet loss is still greater than preset value, then adjusts message length, until the message length reaches third threshold value.
S203 is identical as the S103 in a upper embodiment in the present embodiment, referring specifically to the phase of S102 in a upper embodiment Description is closed, is not repeated herein.
Step S204: the packet loss feedback information after being adjusted is received;Wherein, in the packet loss feedback information adjusted Including packet loss adjusted.
After it have passed through the adjustment of redundancy and/or interleave depth and message length, send data to be transmitted to Receiving end, receiving end calculate packet loss again, feed back to transmitting terminal.Transmitting terminal receives the packet loss feedback information after being adjusted, It include packet loss adjusted in the packet loss feedback information adjusted.
Step S205: if the packet loss adjusted is not more than preset value, to the redundancy and/or the intertexture Depth is adjusted, until the redundancy reaches the first initial value and/or the interleave depth reaches the second initial value.
When the packet loss adjusted is not more than preset value, illustrating at present can be to anti-dropout, but due to it It is preceding that redundancy and/or interleave depth and message length are adjusted, cause to introduce certain time delay.Therefore exist In the case that network quality improves, the time delay that will be introduced is needed to reduce.
Wherein, the first initial value and the second initial value can be set as needed, such as can be set to 2 or 3, not make herein Limitation.
Adjustment sequence also there are two types of, the first is first to be adjusted to the redundancy of FEC, then deep to the intertexture of interweaving encoding Degree is adjusted;Second is first to be adjusted to the interleave depth of interweaving encoding, then be adjusted to the redundancy of FEC.
Optionally, the first adjustment mode are as follows: if the packet loss adjusted is not more than preset value, first to redundancy It is adjusted, specifically: reduce redundancy, until redundancy reaches the first initial value.
After redundancy reaches the first initial value, the packet loss adjusted is still not more than preset value, then further Ground adjusts the size of interleave depth, specifically: reduce interleave depth, until interleave depth reaches the second initial value.
It should be noted that when being adjusted to redundancy or interleave depth, the amplitude that adjusts every time can for 1 or Person 2, or other numerical value, it is not limited here.
Optionally, second of adjustment mode are as follows: first deep to interweaving if the packet loss adjusted is not more than preset value Degree is adjusted, specifically: reduce interleave depth, until interleave depth reaches two initial values.
After interleave depth reaches the second initial value, the packet loss adjusted is still not more than preset value, then into one The size of step ground adjustment redundancy, specifically: reduce redundancy, until redundancy reaches the first initial value.
It should be noted that when being adjusted to redundancy or interleave depth, the amplitude that adjusts every time can for 1 or Person 2, or other numerical value, it is not limited here.
Step S206: the redundancy is being reached into the first initial value and/or the interleave depth reaches the second initial value Later, further includes: if the packet loss adjusted is not more than preset value, the message length is adjusted, Zhi Daosuo It states until message length reaches third initial value.
After the redundancy to reach to the first initial value and/or the interleave depth reaches the second initial value, if institute Packet loss adjusted is stated no more than preset value, then can continue the length for adjusting message, specifically: increase the length of message, Until message length reaches third initial value.Under normal conditions, third initial value is set as 1KB i.e. 1024 bytes.
The embodiment of the present invention by first adjusting FEC redundancy and/or interleave depth when packet loss is greater than preset value, if After the two reaches threshold value, packet loss is still greater than preset value, then adjusts message length, so that the situation poor in network quality Under, multiple parameters can be adjusted, i.e., first adjust FEC redundancy and/or interleave depth, then adjust message length, thus The anti-packet loss ability of enhancing system;In addition, in the case where packet loss is not more than preset value, to redundancy and/or interleave depth, And message length is adjusted, until it reaches initial value, thus while guaranteeing that packet loss is not more than preset value Reduce time delay.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Embodiment three:
Fig. 3 is referred to, Fig. 3 is a kind of anti-dropout device for network self-adapting that one embodiment of the invention provides, the device It include: information receiving module 301, redundancy and/or interleave depth adjustment module 302 and message length adjustment module 303.
Information receiving module 301, for receiving packet loss feedback information;Wherein, the packet loss feedback information includes packet loss;
The first adjustment module 302 adjusts the superfluous of forward error correction coding FEC if being greater than preset value for the packet loss The interleave depth of remaining and/or interweaving encoding, until the redundancy reaches first threshold and/or the interleave depth reaches Until two threshold values;
Optionally, the first adjustment module 302 includes:
Redundancy the first adjustment unit 3021 adjusts forward error correction coding if being greater than preset value for the packet loss The redundancy of FEC;
Interweaving encoding the first adjustment unit 3022, for after the redundancy reaches first threshold, if the packet loss Rate is still greater than preset value, then adjusts the interleave depth, until the interleave depth reaches second threshold.
Optionally, the first adjustment module 302 includes:
Interweaving encoding second adjustment unit 3023 adjusts interweaving encoding if being greater than preset value for the packet loss Interleave depth;
Redundancy second adjustment unit 3024, for after the interleave depth reaches second threshold, if the packet loss Rate is still greater than preset value, then adjusts the redundancy, until the redundancy reaches first threshold.
Second adjustment module 303, for reaching first threshold in the redundancy or the interleave depth reaches second After threshold value, if the packet loss is still greater than preset value, message length is adjusted, until the message length reaches third threshold value Until.
Further, described device further include: information receiving module 304 adjusted, third adjust module 305 and the 4th Adjust module 306.
Information receiving module 304 adjusted, for receiving the packet loss feedback information after being adjusted;Wherein, the tune It include packet loss adjusted in packet loss feedback information after whole;
Third adjusts module 305, if being not more than preset value for the packet loss adjusted, to the redundancy And/or the interleave depth is adjusted, until the redundancy reaches the first initial value and/or the interleave depth reaches Until two initial values;
4th adjustment module 306, for the redundancy being reached the first initial value and/or the interleave depth reaches After second initial value, if the packet loss adjusted is not more than preset value, the message length is adjusted, until Until the message length reaches third initial value.
Example IV:
Fig. 4 is a kind of schematic diagram for terminal device that one embodiment of the invention provides.As shown in figure 4, the one of the embodiment Kind of terminal device 4 includes: processor 40, memory 41 and is stored in the memory 41 and can be on the processor 40 The computer program 42 of operation, such as program.The processor 40 realizes above-mentioned each side when executing the computer program 42 Step in method embodiment, such as step 101 shown in FIG. 1 is to 103.Alternatively, the processor 40 executes the computer journey The function of each module/unit in above-mentioned each Installation practice, such as the function of module 31 to 33 shown in Fig. 3 are realized when sequence 42.
Illustratively, the computer program 42 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 41, and are executed by the processor 40, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 42 in the terminal device 4 is described.For example, the computer program 42 can be divided It is cut into information receiving module, the first adjustment module and second adjustment module, each module concrete function is as follows:
Information receiving module, for receiving packet loss feedback information;Wherein, the packet loss feedback information includes packet loss;
The first adjustment module adjusts the redundancy of forward error correction coding FEC if being greater than preset value for the packet loss And/or the interleave depth of interweaving encoding, until the redundancy reaches first threshold and/or the interleave depth reaches the second threshold Until value;
Second adjustment module, for reaching first threshold in the redundancy or the interleave depth reaches second threshold Later, if the packet loss is still greater than preset value, message length is adjusted, is until the message length reaches third threshold value Only.
The terminal device 4 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The terminal device may include, but be not limited only to, processor 40, memory 41.It will be understood by those skilled in the art that Fig. 4 The only example of terminal device 4 does not constitute the restriction to terminal device 4, may include than illustrating more or fewer portions Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net Network access device, bus etc..
Alleged processor 40 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 41 can be the internal storage unit of the terminal device 4, such as the hard disk or interior of terminal device 4 It deposits.The memory 41 is also possible to the External memory equipment of the terminal device 4, such as be equipped on the terminal device 4 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 41 can also both include the storage inside list of the terminal device 4 Member also includes External memory equipment.The memory 41 is for storing needed for the computer program and the terminal device Other programs and data.The memory 41 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of anti-dropout method of network self-adapting characterized by comprising
Receive packet loss feedback information;Wherein, the packet loss feedback information includes packet loss;
If the packet loss is greater than preset value, the intertexture of the redundancy and/or interweaving encoding that adjust forward error correction coding FEC is deep Degree, until the redundancy reaches first threshold and/or the interleave depth reaches second threshold;
After the redundancy reaches first threshold and/or the interleave depth reaches second threshold, if the packet loss is still Greater than preset value, then message length is adjusted, until the message length reaches third threshold value.
2. the method as described in claim 1, which is characterized in that if the packet loss be greater than preset value, adjustment before to The redundancy of Error Correction of Coding FEC and/or the interleave depth of interweaving encoding, until the redundancy reaches first threshold and/or institute It states until interleave depth reaches second threshold, specifically includes:
If the packet loss is greater than preset value, the redundancy of forward error correction coding FEC is adjusted;
After the redundancy reaches first threshold, if the packet loss is still greater than preset value, the interleave depth is adjusted, Until the interleave depth reaches second threshold.
3. method according to claim 2, which is characterized in that if the packet loss be greater than preset value, adjustment before to The redundancy of Error Correction of Coding FEC and/or the interleave depth of interweaving encoding, until the redundancy reaches first threshold and/or institute It states until interleave depth reaches second threshold, further includes:
If the packet loss is greater than preset value, the interleave depth of interweaving encoding is adjusted;
After the interleave depth reaches second threshold, if the packet loss is still greater than preset value, the redundancy is adjusted, Until the redundancy reaches first threshold.
4. the method as described in claim 1, which is characterized in that the third threshold value is 256 bytes.
5. method according to any of claims 1-4, which is characterized in that the method also includes:
Receive the packet loss feedback information after being adjusted;It wherein, include adjusted in the packet loss feedback information adjusted Packet loss;
If the packet loss adjusted is not more than preset value, the redundancy and/or the interleave depth are adjusted, Until the redundancy reaches the first initial value and/or the interleave depth reaches the second initial value.
6. method as claimed in claim 5, which is characterized in that the redundancy is being reached the first initial value and/or described Interleave depth reaches after the second initial value, further includes:
If the packet loss adjusted is not more than preset value, the message length is adjusted, until the message is long Until degree reaches third initial value.
7. a kind of anti-dropout device of network self-adapting characterized by comprising
Information receiving module, for receiving packet loss feedback information;Wherein, the packet loss feedback information includes packet loss;
The first adjustment module, if for the packet loss be greater than preset value, adjust forward error correction coding FEC redundancy and/ Or the interleave depth of interweaving encoding, until the redundancy reaches first threshold and/or the interleave depth reaches second threshold Until;
Second adjustment module, for the redundancy reach first threshold or the interleave depth reach second threshold it Afterwards, if the packet loss is still greater than preset value, message length is adjusted, until the message length reaches third threshold value.
8. device as claimed in claim 7, which is characterized in that the first adjustment module specifically includes:
Redundancy the first adjustment unit adjusts the redundancy of forward error correction coding FEC if being greater than preset value for the packet loss Degree;
Interweaving encoding the first adjustment unit, for after the redundancy reaches first threshold, if the packet loss is still greater than Preset value then adjusts the interleave depth, until the interleave depth reaches second threshold.
9. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 6 when executing the computer program The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 6 of realization the method.
CN201811405366.1A 2018-11-23 2018-11-23 Network self-adaptive packet loss resisting method and device and terminal equipment Active CN109327283B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811405366.1A CN109327283B (en) 2018-11-23 2018-11-23 Network self-adaptive packet loss resisting method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811405366.1A CN109327283B (en) 2018-11-23 2018-11-23 Network self-adaptive packet loss resisting method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN109327283A true CN109327283A (en) 2019-02-12
CN109327283B CN109327283B (en) 2021-06-22

Family

ID=65259126

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811405366.1A Active CN109327283B (en) 2018-11-23 2018-11-23 Network self-adaptive packet loss resisting method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN109327283B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110855400A (en) * 2019-11-29 2020-02-28 江苏方天电力技术有限公司 Self-adaptive packet loss recovery method based on error correction code, computing device and storage medium
CN114499747A (en) * 2020-11-09 2022-05-13 成都鼎桥通信技术有限公司 Audio and video data processing method and device, electronic equipment and storage medium
CN115085859A (en) * 2021-03-15 2022-09-20 海能达通信股份有限公司 Method and device for resisting packet loss and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039260A (en) * 2006-03-17 2007-09-19 富士通株式会社 Data transferring method, and communication system and program applied with the method
CN103916367A (en) * 2012-12-31 2014-07-09 北京新媒传信科技有限公司 Method and apparatus for transmission of multimedia data
CN104158761A (en) * 2014-08-05 2014-11-19 华为技术有限公司 Flow distribution method and device
US20160344514A1 (en) * 2015-05-18 2016-11-24 Microsoft Technology Licensing, Llc Adjustable Interleaving for Communication Data
CN107483144A (en) * 2016-06-07 2017-12-15 中兴通讯股份有限公司 Forward error correction feedback information transmission method, device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039260A (en) * 2006-03-17 2007-09-19 富士通株式会社 Data transferring method, and communication system and program applied with the method
CN103916367A (en) * 2012-12-31 2014-07-09 北京新媒传信科技有限公司 Method and apparatus for transmission of multimedia data
CN104158761A (en) * 2014-08-05 2014-11-19 华为技术有限公司 Flow distribution method and device
US20160344514A1 (en) * 2015-05-18 2016-11-24 Microsoft Technology Licensing, Llc Adjustable Interleaving for Communication Data
CN107483144A (en) * 2016-06-07 2017-12-15 中兴通讯股份有限公司 Forward error correction feedback information transmission method, device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110855400A (en) * 2019-11-29 2020-02-28 江苏方天电力技术有限公司 Self-adaptive packet loss recovery method based on error correction code, computing device and storage medium
CN110855400B (en) * 2019-11-29 2022-02-25 江苏方天电力技术有限公司 Self-adaptive packet loss recovery method based on error correction code, computing device and storage medium
CN114499747A (en) * 2020-11-09 2022-05-13 成都鼎桥通信技术有限公司 Audio and video data processing method and device, electronic equipment and storage medium
CN115085859A (en) * 2021-03-15 2022-09-20 海能达通信股份有限公司 Method and device for resisting packet loss and computer readable storage medium
CN115085859B (en) * 2021-03-15 2023-11-24 海能达通信股份有限公司 Packet loss prevention method, device and computer readable storage medium

Also Published As

Publication number Publication date
CN109327283B (en) 2021-06-22

Similar Documents

Publication Publication Date Title
CN109327283A (en) A kind of anti-dropout method, apparatus and terminal device of network self-adapting
JP6072990B1 (en) Method and apparatus for reducing signaling power
CN105471545B (en) Data packet processing method and device
CN101674152B (en) Method, device and system for data transmission based on forward error correction (FEC)
CN103167359B (en) The transmission method of RTP Media Stream and device
CN105653484B (en) A kind of deblocking compression multi-channel transmission method
EP3720020A1 (en) Rate matching and polar code encoding method and device
CN110430010A (en) Method, equipment and the communication system of information processing
CN110326221A (en) A method of for generating ordered sequence for polarization code
CN104427602A (en) Power control method and power control device
CN108123777A (en) A kind of coding mode determines method and device
CN110166168A (en) Determine the method, apparatus and system of transport block size
CN107888331A (en) Data transmission method for uplink, device and information source
CN109392013A (en) A kind of method of adjustment and communication device of service quality QoS
CN103888338B (en) The traffic sharing method and device of Ethernet MTL microwave transmission link polymerization
CN107707338A (en) Code block component group determination/indicating means, user equipment, base station and storage medium
WO2023098546A1 (en) Federated learning method and related device
CN106911740A (en) A kind of method and apparatus of cache management
CN101621681A (en) Method and equipment for adjusting video communication quality
CN104052698A (en) Apparatus For Improved Communication And Associated Methods
CN108347300A (en) A kind of method, apparatus and device for encoding and decoding of adjustment Polar codes
CN103997391A (en) Information interaction and feedback method based on interference alignment
CN106101184A (en) A kind of document down loading method and playback equipment
CN108270508A (en) A kind of cyclic redundancy check (CRC) implementation method, device and the network equipment
CN109672498A (en) Interpretation method and device

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
CB02 Change of applicant information

Address after: 1408 Qiancheng commercial center, No.5 Haicheng Road, Mabu community, Xixiang street, Bao'an District, Shenzhen, Guangdong 518000

Applicant after: Shenzhen Qixin haoshitong cloud computing Co., Ltd

Address before: 518000 916, 9th floor, block B, building 9, zone 2, Shenzhen Bay science and technology ecological park, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: Shenzhen Inpor Cloud Computing Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant