CN104581422B - A kind of method and apparatus transmitted for network data - Google Patents

A kind of method and apparatus transmitted for network data Download PDF

Info

Publication number
CN104581422B
CN104581422B CN201510059547.3A CN201510059547A CN104581422B CN 104581422 B CN104581422 B CN 104581422B CN 201510059547 A CN201510059547 A CN 201510059547A CN 104581422 B CN104581422 B CN 104581422B
Authority
CN
China
Prior art keywords
transmission
video data
client
parameter
rate
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.)
Expired - Fee Related
Application number
CN201510059547.3A
Other languages
Chinese (zh)
Other versions
CN104581422A (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.)
Jiangsu Xingditong Communication Technology Co ltd
Original Assignee
CHENGDU GOLDENWAY TECHNOLOGY 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 CHENGDU GOLDENWAY TECHNOLOGY Co Ltd filed Critical CHENGDU GOLDENWAY TECHNOLOGY Co Ltd
Priority to CN201510059547.3A priority Critical patent/CN104581422B/en
Publication of CN104581422A publication Critical patent/CN104581422A/en
Application granted granted Critical
Publication of CN104581422B publication Critical patent/CN104581422B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/637Control signals issued by the client directed to the server or network components
    • H04N21/6373Control signals issued by the client directed to the server or network components for rate control, e.g. request to the server to modify its transmission rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/236Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
    • H04N21/23608Remultiplexing multiplex streams, e.g. involving modifying time stamps or remapping the packet identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless

Abstract

The invention provides a kind of method and apparatus transmitted for network data, this method includes:Server end is sent to client after video data to be sent, addition timestamp and sequence number are obtained from buffering area, receives the feedback from client, and modification sends delay when obtaining new speed adjust parameter;Client receives the video data from server end, then its video content data, sequence number and timestamp are obtained, channel congestion condition adjudgement is carried out according to predefined congestion control policy, calculates and sends delay, new speed adjust parameter is calculated, and is sent to server end.The invention provides a kind of transfer control method of the video data server limited for hardware condition, the real-time and validity of transmission of video are improved, transmission rate is effectively adjusted, and significantly improves QoS.

Description

A kind of method and apparatus transmitted for network data
Technical field
The present invention relates to network transmission and communication, more particularly to a kind of video transmission method and device.
Background technology
In recent years, with internet and the high speed development of information technology, and server and internet combination, it is how right Procotol is optimized, the efficiently transmitting video data, and avoid causing network congestion under the limited network bandwidth, into One of developing direction for media server.The transmission of video data on the internet relies on the network transmission protocol, including TCP With UDP host-host protocols, if with do not possess it is any sequence, retransmit and congestion control agreement come transmitting video data, Netowrk tape Width can be exhausted rapidly, and with the deterioration of channel congestion state, the increase of number of dropped packets can also influence transmission quality.It is existing Congestion control is not suitable for the limited embedded device of hardware condition, adjusts accordingly the characteristics of not according to embedded device, The real-time and accuracy of video data in embedded device can not be met.Therefore, for above-mentioned in the presence of correlation technique Problem, not yet proposes effective solution at present.
The content of the invention
To solve the problems of above-mentioned prior art, the present invention is proposed a kind of to be transmitted for network data Method, including:
Video data server end and client are separately turned on two threads, set up two different ports of correspondence two Socket, carries out the transmission of video data and control signal respectively;
The transmission thread of server end is sent out after video data to be sent, addition timestamp and sequence number are obtained from buffering area Client is given, checks whether and obtains new speed adjust parameter;And hair is changed when obtaining new speed adjust parameter Send delay;
The receiving thread of server end receives the speed adjust data from client, joins when receiving new speed adjust During number, the transmission thread modification of server end is notified to send delay immediately;
The receiving thread of client receives the video data from server end, then obtains its video content data, sequence Number and timestamp, according to predefined congestion control policy carry out channel congestion condition adjudgement, according to present channel congestion state, The transmission delay of subsequent time packet is calculated, based on the new speed adjust parameter of the transmission Delay computing, and by new speed Rate adjusting parameter pushes to the transmission thread of client, and the transmission thread of client is sent out once new speed adjust parameter is obtained Deliver to server end.
Preferably, it is described that channel congestion condition adjudgement is carried out according to predefined congestion control policy, according to present channel Congestion state, calculates the transmission delay of subsequent time packet, based on the new speed adjust parameter of the transmission Delay computing, enters One step includes:
Packet loss and data transmission success parameter are counted in client, using weighting smoothing processing, acquisition is regarded Keep pouring in it is defeated during data transmission success R in i-th of time intervaliWith packet loss PiRespectively:
RiN-1 J=0jDi-j/Ti-j), wherein ΣN-1 J=0j)=1;
PiN-1 J=0jLPi-j/SPi-j), wherein ΣN-1 J=0j)=1;
Wherein N represents to calculate the time interval number needed for above-mentioned parameter, αjAnd μjRepresent weight coefficient;LPi-jFor (i- J) packet loss in time interval, SPi-jThe number-of-packet sent for transmitting terminal in (i-j) time interval, Di-jRepresent (i-j) Reception the video data volume of statistics, T in time intervali-jRepresent the exact value of (i-j) time interval;
Constant parameter is set, including the patient packet loss highest threshold value P of institute in video transmitting procedure is setlmaxAnd regard The minimum packet loss threshold value P of frequency facile transportlmin;Maximum video data transmission rate RmaxAnd minimum video data sends speed Rate Rmin
Work as Pi>PlmaxWhen, reduction video data rate ensures the QoS of videoconference client, determines that network continuously overloads number of times K, initiation parameter β0;Then computation rate reduces the factor:βkk-1(1-0.6m)2
Wherein packet loss difference factor m is:M=Pi-Plmax
Finally, suitable video data transmission rate is:Rnew=MAX { βkRi- 50, Rmin};
Work as Pi<PlminWhen, improve video data rate to ensure the QoS of videoconference client, calculate the packet loss difference factor:m =t (Plmin-Pi)
In formula:T represents multiplication factor;Then computation rate increases factor delta:
δ=0.2emR0+60
In formula:R0For default speed growth factor, now predict that transmission rate is:
Rnew=MIN { δ+Ri, Rmax}
Work as Plmin<Pi<PlmaxWhen, without speed adjust;
By setting rate switched thresholds RthTo reduce system velocity handover overhead, after new transmission rate is predicted, it is necessary to Compare new speed RnewWith preceding first time rate adjusted value Rlast, only as | Rnew-Rlast|>RthWhen, new speed adjust is just effective.
There is provided a kind of device transmitted for network data, including video counts according to another aspect of the present invention According to server end and client, the server end obtains video data to be sent, addition timestamp and sequence from buffering area Client is sent to after number, the feedback from client is received, checks whether and obtain new speed adjust parameter, and is being obtained Modification sends delay during new speed adjust parameter;
The client receives the video data from server end, then obtain its video content data, sequence number and when Between stab, according to predefined congestion control policy carry out channel congestion condition adjudgement, according to present channel congestion state, under calculating The transmission delay of one moment packet, based on the new speed adjust parameter of the transmission Delay computing, and by new speed adjust Parameter is sent to server end;
The data server end and client are separately turned on two threads, set up two different ports of correspondence two Socket, carries out the transmission of video data and control signal respectively.
The present invention compared with prior art, with advantages below:
The invention provides a kind of transfer control method of the video data server limited for hardware condition, improve The real-time and validity of transmission of video, transmission rate are effectively adjusted, and significantly improve QoS.
Brief description of the drawings
Fig. 1 is the flow chart of the method for being used for network data transmission according to embodiments of the present invention.
Embodiment
Retouching in detail to one or more embodiment of the invention is hereafter provided together with illustrating the accompanying drawing of the principle of the invention State.The present invention is described with reference to such embodiment, but the invention is not restricted to any embodiment.The scope of the present invention is only by right Claim is limited, and the present invention covers many replacements, modification and equivalent.Illustrate in the following description many details with Thorough understanding of the present invention is just provided.These details are provided for exemplary purposes, and without in these details Some or all details can also realize the present invention according to claims.
The purpose of congestion control is exactly to control network throughput, so as to realize low packet loss ratio, low network delay and low jitter. For video data server, remote wan communication is to should be taken into account net in its a big feature, congestion control The problem of network postpones, while in order to mitigate network burden, round-trip delay is replaced with one-way delay.The time is added in sender packet header Stamp, can calculate network delay, so that computing relay in recipient according to the timestamp and reception time of sender.The present invention The improved congestion avoidance algorithm of institute is to add sequence number and timestamp in data packet head, by determine packet loss, network delay come pair Channel congestion state is estimated and judged.
An aspect of of the present present invention provides a kind of method transmitted for network data.Fig. 1 is according to of the invention real Apply the method flow diagram that network data is transmitted that is used for of example.
The mechanism of embedded media server data rate adjustment is, in each two packet or every two groups of packets The transmission delay of a period of time is undergone between transmission, network throughput is controlled by the length for sending delay.Speed adjust mechanism Message transmission rate is all based on, i.e., then the data volume that should be sent by the formula calculating subsequent time unit interval is carried out Adjustment.So the mechanism of speed adjust is accurate for the computer that CPU process performances are higher, system clock accuracy is higher And it is effective, but be inappropriate for the video data server of limited system resources.In summary, for based on For the video data server of embedded device, the Regulation mechanism of transmission rate should not be taken based on, and hair should be taken based on The speed adjust mechanism of delay is sent, both handling capacity can effectively be controlled with simplified code complexity again.
The present invention uses dual threshold, and improves the decision method of channel congestion state.Prolong for packet loss and network The two slow congestion metrics, are respectively adopted the jamming control method based on packet loss and the congestion control side based on network delay Method.
The congestion avoidance algorithm flow based on packet loss is described below.
(1) the packet loss ρ (1) at the 1st moment is calculated according to packet loss formula, is estimated in this, as the packet loss at the 1st moment Value P (1).Then the packet loss ρ (2) at the 2nd moment is calculated, the packet loss estimate at the 2nd moment is calculated by smoothing formula.It is described Smoothing formula is as follows:
P (t)=(1- α) P (t-1)+α ρ (t)
α is smoothing factor in formula, is the constant between 0-1.When α is close to 1, packet loss estimate P (t) is close to be lost Bag rate ρ (t), smooth effect is not obvious;When α is close to 0, packet loss estimate P (t) estimates close to the packet loss of last moment Evaluation P (t-1), excessively steadily, it is impossible to track present packet loss in time.So, should be according to difference the need for, select different α. In the present embodiment, in order to take into account real-time and stability, smoothing factor takes 0.5.
(2) in order to simplify calculating, packet loss estimate P (t) is subjected to regularization, makes the packet loss grade L (t) calculated For the numerical value between 0-1.Formula is as follows:
L (t)=P (t)/β
β is tolerable maximum packet loss in formula, and this value is pre-selected according to different demands.3% work is selected in the present invention For tolerable maximum packet loss.
(3) transmission rate is adjusted using based on the method for sending delay:One is spaced between each two packet It is individual to send delay, or a transmission delay is spaced between two groups of packets (every group has several packets).Send the ginseng of delay Number D (t) scope is [Dl, Dh], wherein DlAnd DhNeed to be required according to chip performance, operating system precision and specific tasks And select.DlAnd DhCalculation formula is as follows:
Dl=Mave/Mh
Dh=Mave/Ml
M in formulahAnd MlThe minimum and maximum volume of transmitted data that system is allowed respectively in the unit interval, MaveTo be each or Every group of data package size.
(4) judgement of congestion situation:Set two congestion threshold LhAnd Ll, and 0<Ll<Lh<1.[0, Ll] as idle shape State, [Lh, 1] and it is used as congestion state.According to different packet loss grade L (t) congestion situations different with L (t-1) judgements, then Difference computation rate adjusting parameter d.
Situation 1:L(t)≥LhAnd L (t-1)<Lh, i.e. the t-1 moment is introduced into congestion state, and t enters congestion state, should Transmission rate is reduced by increasing transmission delay.
D=(Dh-Dl)·(L(t)-Lh)/(1-Lh)
D (t)=min { D (t)+d, Dh}
Situation 2:L(t)≥L(t-1)≥Lh, i.e. the t-1 moment has been enter into congestion state, and t Congestion Level SPCC is than the t-1 moment It is more serious, transmission rate should be reduced by increasing transmission delay.
D=(Dh-Dl)·(L(t)-L(t-1))/(1-Lh)
D (t)=min { D (t)+d, Dh}
Situation 3:L(t)<Ll, i.e. t enters idle condition, should send delay by reducing and accelerate transmission rate.
D=(Dh-Dl)·(Ll-L(t))/Ll
D (t)=max { D (t)-d, Dl}
Situation 4:Other situations of 3 kinds of situations except more than, it is not necessary to make any speed adjust.That is D (t)=D (t)
Congestion avoidance algorithm based on network delay and the congestion avoidance algorithm based on packet loss are essentially identical, it is only necessary to use Corresponding network delay replaces packet loss, then substitutes into above formula and calculates.
(1) the network delay γ (1) at the 1st moment is calculated according to network delay value formula, in this, as the network at the 1st moment Delay estimation value R (1).Then the network delay γ (2) at the 2nd moment is calculated, the network for calculating for the 2nd moment by smoothing formula prolongs Slow estimate.The smoothing formula is as follows:
R (t)=(1- θ) R (t-1)+θ γ (t)
θ is smoothing factor in formula, is the constant between 0-1.When θ is close to 1, network delay estimate R (t) is approached Network delay γ (t), smooth effect is not obvious;When θ is close to 0, network delay estimate R (t) is close to last moment Network delay estimate R (t-1), excessively steadily, it is impossible to tracking current network delay in time.So, should be according to difference the need for, The different θ of selection.In the present embodiment, in order to take into account real-time and stability, smoothing factor takes 0.5.
(2) in order to simplify calculating, network delay estimate R (t) is subjected to regularization, makes the network delay grade calculated M (t) is the numerical value between 0-1.Formula is as follows:
M (t)=R (t)/τ
τ postpones for tolerable maximum network in formula, and this value is pre-selected according to different demands.3% is selected in the present invention Postpone as tolerable maximum network.
(3) transmission rate is adjusted using based on the method for sending delay:One is spaced between each two packet It is individual to send delay, or a transmission delay is spaced between two groups of packets (every group has several packets).Send the ginseng of delay Number D (t) scope is [Dl, Dh], wherein DlAnd DhNeed to be required according to chip performance, operating system precision and specific tasks And select.DlAnd DhCalculation formula is as follows:
Dl=Mave/Mh
Dh=Mave/Ml
M in formulahAnd MlThe minimum and maximum volume of transmitted data that system is allowed respectively in the unit interval, MaveTo be each or Every group of data package size.
(4) judgement of congestion situation:Set two congestion threshold LhAnd Ll, and 0<Ll<Lh<1.[0, Ll] as idle shape State, [Lh, 1] and it is used as congestion state.According to different network delay grade M (t) congestion situations different with M (t-1) judgements, so Computation rate adjusting parameter d is distinguished afterwards.
Situation 1:M(t)≥LhAnd M (t-1)<Lh, i.e. the t-1 moment is introduced into congestion state, and t enters congestion state, should Transmission rate is reduced by increasing transmission delay.
D=(Dh-Dl)·(M(t)-Lh)/(1-Lh)
D (t)=min { D (t)+d, Dh}
Situation 2:M(t)≥M(t-1)≥Lh, i.e. the t-1 moment has been enter into congestion state, and t Congestion Level SPCC is than the t-1 moment It is more serious, transmission rate should be reduced by increasing transmission delay.
D=(Dh-Dl)·(M(t)-M(t-1))/(1-Lh)
D (t)=min { D (t)+d, Dh}
Situation 3:M(t)<Ll, i.e. t enters idle condition, should send delay by reducing and accelerate transmission rate.
D=(Dh-Dl)·(Ll-M(t))/Ll
D (t)=max { D (t)-d, Dl}
Situation 4:Other situations of 3 kinds of situations except more than, it is not necessary to make any speed adjust.That is D (t)=D (t)
It is for LAN and the different network environments of wide area network, both the above congestion avoidance algorithm is whole with the relation of "or" Altogether, so that it may realize the judgement and control to network congestion degree.
Network transmission with congestion control is a closed loop, and network connection is related to the different types of data of two ports Transmitting-receiving.Video data server end and client are required for opening two threads, set up two sockets, and correspondence two is different Port, carries out the transmission of video data and control signal respectively.
In server end, the transmission thread of server end obtains video data to be sent from buffering area, adds the time Sent after stamp and sequence number, then check whether and obtain new speed adjust parameter.If it is, then modification sends delay;It is no Then, it is transmitted delay according to parameter before.Receiving thread receives the speed adjust data from client, once receive New speed adjust parameter, notifies that sending thread modification sends delay immediately.
In client, the receiving thread of client receives the video data from server end, then takes its video content Data, sequence number and timestamp, channel congestion condition adjudgement is carried out according to congestion avoidance algorithm mentioned above, and new at calculating Speed adjust parameter, push to transmission thread, send thread and sent once new speed adjust parameter is obtained to server End.
According to another embodiment of the present invention, the neural network forecast amount needed for transmission rate control includes packet loss and data Transmission success rate, is counted in client to above-mentioned parameter.In order to prevent due to the parameter acquiring cycle it is shorter caused by tremble It is dynamic, using weighting smoothing processing.
If RiAnd PiData transmission success and packet loss in i-th of time interval in video transmitting procedure are represented respectively. RiAnd PiComputational methods are as follows:
RI=ΣN-1 J=0 (μjDi-j/TI-j),Wherein ΣN-1 J=0j)=1;
PI=ΣN-1 J=0jLPi-j/SPI-j),Wherein ΣN-1 J=0j)=1;
N represents to calculate the time interval number needed for above-mentioned two parameter, α in above formulajAnd μjRepresent weight coefficient; LPi-jFor packet loss in (i-j) time interval, SPi-jThe number-of-packet sent for transmitting terminal in (i-j) time interval.Di-j Represent reception the video data volume of statistics in (i-j) time interval, Ti-jRepresent the exact value of (i-j) time interval.
It is according to the rate control mechanism of the present embodiment:In network underloading, the change constant additivity determined by packet loss because Son and constant add factor determine speed increasing degree, in network overload, the change constant determined by packet loss multiply sex factor and Constant subtracts sex factor and determines rate reduction amplitude.
The step of Adaptive Rate Shape, is as follows:
1) constant parameter is set.The patient packet loss highest threshold value P of institute in video transmitting procedurelmaxAnd video is smooth The minimum packet loss threshold value P of transmissionlmin;Maximum video data transmission rate RmaxAnd minimum video data transmission rate Rmin
2) channel congestion state is judged.Channel congestion state can be by comparing actual measurement packet loss and packet loss threshold value come really It is fixed.Work as Pi>Plmax, wireless network be judged as overload;Work as Pi<Plmin, wireless network is judged as underloading;Work as Plmin<Pi< Plmax, now wireless network is poised state, it is not necessary to carry out speed adjust.
3) network overload is handled.System should reduce video data rate to ensure the QoS of videoconference client.Determine first Network continuously overloads number of times k, initiation parameter β0;Then computation rate reduces the factor:βkk-1(1-0.6m)2
Wherein the packet loss difference factor is:M=Pi-Plmax
Finally, suitable video data transmission rate is:Rnew=MAX { βkRi- 50, Rmin}
4) network underloading is handled.When network underloading, it is necessary to increase transmitting terminal transmission rate to increase network utilization.It is first First calculate the packet loss difference factor:M=t (Plmin-Pi)
In formula:T represents multiplication factor;Then computation rate increases the factor:
δ=0.2emR0+60
In formula:R0For default speed growth factor.Now prediction transmission rate is:
Rnew=MIN { δ+Ri, Rmax}
In order to prevent the fine jitter of network from causing system transfer rate frequent switching, so as to cause unnecessary system to open Pin.By setting rate switched thresholds RthTo reduce system velocity handover overhead., it is necessary to relatively newer after new transmission rate is predicted Speed RnewWith preceding first time rate adjusted value Rlast, only as | Rnew-Rlast|>RthWhen, new speed adjust is considered as just to have Effect.
In summary, the invention provides a kind of transmission controlling party of the video data server limited for hardware condition Method, improves the real-time and validity of transmission of video, and transmission rate is effectively adjusted, and significantly improves QoS.
Obviously, can be with general it should be appreciated by those skilled in the art, above-mentioned each module of the invention or each step Computing system realize that they can be concentrated in single computing system, or be distributed in multiple computing systems and constituted Network on, alternatively, the program code that they can be can perform with computing system be realized, it is thus possible to they are stored Performed within the storage system by computing system.So, the present invention is not restricted to any specific hardware and software combination.
It should be appreciated that the above-mentioned embodiment of the present invention is used only for exemplary illustration or explains the present invention's Principle, without being construed as limiting the invention.Therefore, that is done without departing from the spirit and scope of the present invention is any Modification, equivalent substitution, improvement etc., should be included in the scope of the protection.In addition, appended claims purport of the present invention Covering the whole changes fallen into scope and border or this scope and the equivalents on border and repairing Change example.

Claims (1)

1. a kind of method transmitted for network data, it is characterised in that including:
Video data server end and client are separately turned on two threads, set up two sockets of two different ports of correspondence Word, carries out the transmission of video data and control signal respectively;
The transmission thread of server end is sent to after video data to be sent, addition timestamp and sequence number are obtained from buffering area Client, checks whether and obtains new speed adjust parameter;And modification transmission is prolonged when obtaining new speed adjust parameter Late;
The receiving thread of server end receives the speed adjust data from client, when receiving new speed adjust parameter When, notify the transmission thread modification of server end to send delay immediately;
The receiving thread of client receives the video data from server end, then obtain its video content data, sequence number and Timestamp, channel congestion condition adjudgement is carried out according to predefined congestion control policy, according to present channel congestion state, is calculated The transmission delay of subsequent time packet, based on the new speed adjust parameter of the transmission Delay computing, and new speed is adjusted Whole parameter pushes to the transmission thread of client, the transmission thread of client sent once new speed adjust parameter is obtained to Server end;It is described that channel congestion condition adjudgement is carried out according to predefined congestion control policy, according to present channel congestion shape State, calculates the transmission delay of subsequent time packet, based on the new speed adjust parameter of the transmission Delay computing, further wraps Include:
Packet loss and data transmission success parameter are counted in client, using weighting smoothing processing, video is obtained and passes Data transmission success R during defeated in i-th of time intervaliWith packet loss PiRespectively:
RiN-1 J=0jDi-j/Ti-j), wherein ΣN-1 J=0j)=1;
PiN-1 J=0jLPi-j/SPi-j), wherein ΣN-1 J=0j)=1;
Wherein N represents to calculate the time interval number needed for above-mentioned parameter, αjAnd μjRepresent weight coefficient;LPi-jDuring for (i-j) Between be spaced in packet loss, SPi-jThe number-of-packet sent for transmitting terminal in (i-j) time interval, Di-j(i-j) time of expression Reception the video data volume of statistics, T in intervali-jRepresent the exact value of (i-j) time interval;
Constant parameter is set, including the patient packet loss highest threshold value P of institute in video transmitting procedure is setlmaxAnd video flowing The minimum packet loss threshold value P freely transmittedlmin;Maximum video data transmission rate RmaxAnd minimum video data transmission rate Rmin
Work as Pi>PlmaxWhen, reduction video data rate ensures the QoS of videoconference client, determines that network continuously overloads number of times k, just Beginningization parameter beta0
Then computation rate reduces the factor:βkk-1(1-0.6m)2
Wherein packet loss difference factor m is:M=Pi-Plmax
Finally, suitable video data transmission rate is:Rnew=MAX { βkRi- 50, Rmin};
Work as Pi<PlminWhen, improve video data rate to ensure the QoS of videoconference client, calculate the packet loss difference factor:M=t (Plmin-Pi)
In formula:T represents multiplication factor;Then computation rate increases factor delta:
δ=0.2emR0+60
In formula:R0For default speed growth factor, now predict that transmission rate is:
Rnew=MIN { δ+Ri, Rmax}
Work as Plmin<Pi<PlmaxWhen, without speed adjust;
By setting rate switched thresholds RthTo reduce system velocity handover overhead, it is necessary to compare after new transmission rate is predicted New speed RnewWith preceding first time rate adjusted value Rlast, only as | Rnew-Rlast|>RthWhen, new speed adjust is just effective;
The video data server end and client are separately turned on two threads, set up two different ports of correspondence two Socket, carries out the transmission of video data and control signal respectively.
CN201510059547.3A 2015-02-05 2015-02-05 A kind of method and apparatus transmitted for network data Expired - Fee Related CN104581422B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510059547.3A CN104581422B (en) 2015-02-05 2015-02-05 A kind of method and apparatus transmitted for network data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510059547.3A CN104581422B (en) 2015-02-05 2015-02-05 A kind of method and apparatus transmitted for network data

Publications (2)

Publication Number Publication Date
CN104581422A CN104581422A (en) 2015-04-29
CN104581422B true CN104581422B (en) 2017-09-15

Family

ID=53096460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510059547.3A Expired - Fee Related CN104581422B (en) 2015-02-05 2015-02-05 A kind of method and apparatus transmitted for network data

Country Status (1)

Country Link
CN (1) CN104581422B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789886A (en) * 2016-11-16 2017-05-31 深圳市异度信息产业有限公司 The transmission method and device of data
CN106533959B (en) * 2016-12-23 2019-07-19 锐捷网络股份有限公司 The determination method and switching equipment of a kind of switching equipment outlet end rate
CN108235371B (en) * 2018-01-12 2022-01-25 海能达通信股份有限公司 Data transmission control method and device
CN108712299A (en) * 2018-03-15 2018-10-26 北京百度网讯科技有限公司 A kind of method, apparatus, equipment and the computer storage media of monitoring live streaming delay
CN112566145A (en) * 2019-09-25 2021-03-26 深圳市中兴微电子技术有限公司 Congestion control method and device, computer storage medium and terminal
CN110784414B (en) * 2019-10-30 2023-06-23 北京达佳互联信息技术有限公司 Data interaction method, device, electronic equipment and storage medium
CN113497671B (en) * 2020-04-02 2023-07-18 成都鼎桥通信技术有限公司 Data processing method, device, equipment, storage medium and terminal equipment
CN112689254B (en) * 2020-12-21 2023-10-31 北京云迹科技股份有限公司 Data transmission method and device and electronic equipment
CN113542147A (en) * 2021-07-09 2021-10-22 上海擎昆信息科技有限公司 Data transmission method and system
CN113746665B (en) * 2021-07-29 2022-04-15 深圳市明源云科技有限公司 Log data processing method, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272402A (en) * 2008-05-14 2008-09-24 深圳市同洲电子股份有限公司 Method, system and device for data transmission
CN101651676A (en) * 2009-09-01 2010-02-17 北京中科智网传媒技术有限公司 Online download method for large data volume files
CN102195752A (en) * 2010-03-05 2011-09-21 微软公司 Remote presentation over lossy transport with forward error correction
CN102521265A (en) * 2011-11-21 2012-06-27 华中科技大学 Dynamic consistency control method in massive data management
CN103546662A (en) * 2013-09-23 2014-01-29 浙江工业大学 Audio and video synchronizing method in network monitoring system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5630310B2 (en) * 2011-02-16 2014-11-26 ソニー株式会社 Transmission terminal and transmission method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272402A (en) * 2008-05-14 2008-09-24 深圳市同洲电子股份有限公司 Method, system and device for data transmission
CN101651676A (en) * 2009-09-01 2010-02-17 北京中科智网传媒技术有限公司 Online download method for large data volume files
CN102195752A (en) * 2010-03-05 2011-09-21 微软公司 Remote presentation over lossy transport with forward error correction
CN102521265A (en) * 2011-11-21 2012-06-27 华中科技大学 Dynamic consistency control method in massive data management
CN103546662A (en) * 2013-09-23 2014-01-29 浙江工业大学 Audio and video synchronizing method in network monitoring system

Also Published As

Publication number Publication date
CN104581422A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN104581422B (en) A kind of method and apparatus transmitted for network data
CN104618258B (en) A kind of control method of message transmission rate
Johansson et al. Self-clocked rate adaptation for multimedia
CN114145001B (en) Rate optimized congestion management
Al-Saadi et al. A survey of delay-based and hybrid TCP congestion control algorithms
US8824281B2 (en) Network-friendly transmission control protocol (TCP) methods, apparatus and articles of manufacture
EP2432175B1 (en) Method, device and system for self-adaptively adjusting data transmission rate
US7974195B2 (en) Method and apparatus for network congestion control
CN106301684B (en) Media data transmission method and device
US20190356602A1 (en) Predictive management of a network buffer
US20030086413A1 (en) Method of transmitting data
Hock et al. TCP LoLa: Congestion control for low latencies and high throughput
CN110166374B (en) MPTCP congestion control method and device based on energy efficiency
CN106878192B (en) Data scheduling method of self-adaptive MPTCP
Gomez et al. A performance evaluation of TCP BBRv2 alpha
Qazi et al. Congestion control using efficient explicit feedback
CN104579582B (en) A kind of high-quality speech transmission method based on communication network
WO2016100890A1 (en) Smooth bandwidth-delay product variation inside wireless networks
CN115347994A (en) Method, device, medium, wireless access device and system for in-network state feedback
JP3853784B2 (en) Data communication management method
Fridovich-Keil et al. A model predictive control approach to flow pacing for TCP
Zhang et al. LearningCC: An online learning approach for congestion control
Chen et al. Congestion-aware mac layer adaptation to improve video teleconferencing over wi-fi
JP3548005B2 (en) Flow control method and flow control device
Adhari et al. Eclipse: A new dynamic delay-based congestion control algorithm for background traffic

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20180612

Address after: 210000 1 Riverside Road, Qiqiao Town, Gaochun District, Nanjing, Jiangsu

Patentee after: Jiangsu Xingditong Communication Technology Co.,Ltd.

Address before: 610041 Sichuan science and technology incubator in Chengdu hi tech Zone

Patentee before: CHENGDU GOLDENWAY TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170915

Termination date: 20220205

CF01 Termination of patent right due to non-payment of annual fee