CN107370682A - A kind of bit rate control method and server - Google Patents

A kind of bit rate control method and server Download PDF

Info

Publication number
CN107370682A
CN107370682A CN201610308514.2A CN201610308514A CN107370682A CN 107370682 A CN107370682 A CN 107370682A CN 201610308514 A CN201610308514 A CN 201610308514A CN 107370682 A CN107370682 A CN 107370682A
Authority
CN
China
Prior art keywords
fraction
bag
statistics
packet
network
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.)
Pending
Application number
CN201610308514.2A
Other languages
Chinese (zh)
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.)
Zhang Ying Information Technology (shanghai) Co Ltd
Original Assignee
Zhang Ying Information Technology (shanghai) 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 Zhang Ying Information Technology (shanghai) Co Ltd filed Critical Zhang Ying Information Technology (shanghai) Co Ltd
Priority to CN201610308514.2A priority Critical patent/CN107370682A/en
Publication of CN107370682A publication Critical patent/CN107370682A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0289Congestion control

Abstract

The invention discloses a kind of bit rate control method and server, belongs to network transmission technology field.Methods described includes:Server periodically obtains multiple statistics bags that client reports, and multiple each statistics bags counted in bag include the statistical information for multiple packets that client receives;Calculate the Network queuing delay of each packet included in each statistics bag;According to the Network queuing delay of each packet, it is determined that the fraction of each statistics bag;Count the quantity wrapped and multiple cumulative fractions for counting bag according to multiple and instructed to client transmission Rate Control.The statistical information for multiple packets that the client that the present invention is received by server is sent, and according to the Network queuing delay of each packet, it is determined that the fraction of each statistics bag, accurately estimate network state so as to the packet information according to transmission, with control data transmission code rate, code rate adjustment efficiency and accuracy is improved, improves Consumer's Experience.

Description

A kind of bit rate control method and server
Technical field
The present invention relates to network transmission technology field, more particularly to a kind of bit rate control method and server.
Background technology
During network data real-time Transmission, quick detection network congestion, and to data transmission code rate It is controlled particularly important in network congestion Developing Tactics.In existing congestion control policy, base is typically understood Rate Control is carried out in packet loss.
But in wireless channel, the factor that causes data transfer packet loss be it is many, such as network congestion, The factors such as channel fading.When due to channel fading causes packet loss when, network congestion can be judged as, using drop The adjustable strategies of low bit- rate, so as to cause media communication quality further to reduce, occur to Network state estimate The situation of mistake, accurately data transmission code rate can not be controlled.
So as to when using prior art, on the one hand because the reason for cannot be distinguished by packet loss, cause to have and be difficult to determine The problem of plan control strategy, so that Rate Control is less efficient;Further, since it is difficult to differentiate between congestion original Cause, using the Rate Control Schem of mistake, it can not promptly and accurately adjust code check, poor user experience.
The content of the invention
In order to accurately estimate network state, code rate adjustment efficiency is improved, improves Consumer's Experience, the present invention is implemented Example provides a kind of bit rate control method and server.The technical scheme is as follows:
First aspect, there is provided a kind of bit rate control method, methods described include:
Server periodically obtains multiple statistics bags that client reports, the multiple to count each in bag The statistical information for multiple packets that statistics bag receives comprising the client;
Calculate the Network queuing delay of each packet included in each statistics bag;
According to the Network queuing delay of each packet, the fraction that each statistics is wrapped is determined;
According to it is the multiple statistics bag quantity and it is the multiple statistics bag cumulative fraction and, to the client End sends Rate Control instruction.
With reference in a first aspect, in the first possible implementation, the calculating is described each to be counted in bag Comprising the Network queuing delay of each packet include:
According to the statistical information and history minimal network queueing delay of each packet, the data are calculated The Network queuing delay of bag;
Wherein, the statistical information comprises at least the reception time of packet, sends the time.
With reference to the first possible implementation of first aspect, in second of possible implementation, institute The Network queuing delay according to each packet is stated, determining the fraction of each statistics bag includes:
According to the number range where the Network queuing delay of each packet, each statistics is calculated The fraction of bag;
According to the result of the calculating, the fraction that each statistics is wrapped is determined.
With reference to second of possible implementation of first aspect, in the third possible implementation, institute State and determine that the fraction of each statistics bag includes:
If all packets fraction and more than preset fraction value, it is determined that the fraction of the statistics bag For the first fraction;
If all packets fraction and equal to preset fraction value, it is determined that the fraction of the statistics bag For the second fraction;
If each packet fraction and less than preset fraction value, it is determined that the fraction of the statistics bag For the 3rd fraction;
Wherein, first fraction is more than second fraction, and second fraction is more than the 3rd fraction.
With reference to second of first aspect or the third possible implementation, the 4th kind of possible realization side In formula, it is described according to it is the multiple statistics bag quantity and it is the multiple statistics bag cumulative fraction and, to institute Stating client and sending Rate Control and instruct includes:
The fraction of each statistics bag is added, obtain the multiple statistics bag fraction and;
According to the quantity of the multiple statistics bag and the fraction and transmission reduction or increase data transfer code The instruction of rate.
With reference in a first aspect, in the 5th kind of possible implementation, methods described also includes:
Empty the data message of the statistics bag and fraction.
Second aspect, there is provided a kind of server, the server include:
Bag acquisition module is counted, the multiple statistics bags reported for periodically obtaining client are the multiple Each statistics bag in statistics bag includes the statistical information for multiple packets that the client receives;
Network queuing delay computing module, for calculating each packet included in each statistics bag Network queuing delay;
Bag fraction determining module is counted, for the Network queuing delay according to each packet, determines institute State the fraction of each statistics bag;
Control instruction sending module, wrapped for the quantity according to the multiple statistics bag and the multiple statistics Cumulative fraction and, send Rate Control instruction to the client.
With reference to second aspect, in the first possible implementation, the Network queuing delay computing module It is specifically used for:
According to the statistical information and history minimal network queueing delay of each packet, the data are calculated The Network queuing delay of bag;
Wherein, the statistical information comprises at least the reception time of packet, sends the time.
With reference to the first mode in the cards of second aspect, in second of possible implementation, institute Stating statistics bag fraction determining module includes:
Bag fraction calculating sub module is counted, for where the Network queuing delay according to each packet Number range, determine the fraction of each packet in each statistics bag;
Bag fraction determination sub-module is counted, for the result according to the calculating, determines each statistics bag Fraction.
With reference to second of mode in the cards of second aspect, in the third possible implementation, institute Statistics bag fraction determination sub-module is stated to be specifically used for:
If all packets fraction and more than preset fraction value, it is determined that the fraction of the statistics bag For the first fraction;
If all packets fraction and equal to preset fraction value, it is determined that the fraction of the statistics bag For the second fraction;
If each packet fraction and less than preset fraction value, it is determined that the fraction of the statistics bag For the 3rd fraction;
Wherein, first fraction is more than second fraction, and second fraction is more than the 3rd fraction.
With reference to second of second aspect or the third possible implementation, the 4th kind of possible realization side In formula, the control instruction sending module includes:
Fraction and acquisition submodule, for the fraction of each statistics bag to be added, obtain the multiple system Count bag fraction and;
Control instruction sending submodule, for according to it is the multiple statistics bag quantity and the fraction and, Send the instruction for reducing or increasing data transfer code check.
With reference to second aspect, in the 5th kind of possible implementation, the server also includes:
Data information module is emptied, for emptying the data message of the statistics bag and fraction.
The third aspect, there is provided a kind of device, described device include Network Interface Module, memory and with The Network Interface Module, the processor of memory connection, wherein, the memory is used to store one Group program code, the program code that the processor calls the memory to be stored are used to perform following operation:
Periodically obtain multiple statistics bags that client reports, the multiple each statistics bag counted in bag The statistical information of the multiple packets received comprising the client;
Calculate the Network queuing delay of each packet included in each statistics bag;
According to the Network queuing delay of each packet, the fraction that each statistics is wrapped is determined;
According to it is the multiple statistics bag quantity and it is the multiple statistics bag cumulative fraction and, to the client End sends Rate Control instruction.
With reference to the third aspect, in the first possible implementation, the processor calls the memory The program code stored is used to perform following operation:
According to the statistical information and history minimal network queueing delay of each packet, the data are calculated The Network queuing delay of bag;
Wherein, the statistical information comprises at least the reception time of packet, sends the time.
With reference to the first possible implementation of the third aspect, in second of possible implementation, institute The program code that processor calls the memory to be stored is stated to be used to perform following operation:
According to the number range where the Network queuing delay of each packet, each statistics is calculated The fraction of bag;
According to the result of the calculating, the fraction that each statistics is wrapped is determined.
With reference to second of possible implementation of the third aspect, in the third possible implementation, institute The program code that processor calls the memory to be stored is stated to be used to perform following operation:
If all packets fraction and more than preset fraction value, it is determined that the fraction of the statistics bag For the first fraction;
If all packets fraction and equal to preset fraction value, it is determined that the fraction of the statistics bag For the second fraction;
If each packet fraction and less than preset fraction value, it is determined that the fraction of the statistics bag For the 3rd fraction;
Wherein, first fraction is more than second fraction, and second fraction is more than the 3rd fraction.
With reference to second of the third aspect or the third possible implementation, the 4th kind of possible realization side In formula, the program code that the processor calls the memory to be stored is used to perform following operation:
The fraction of each statistics bag is added, obtain the multiple statistics bag fraction and;
According to the quantity of the multiple statistics bag and the fraction and transmission reduction or increase data transfer code The instruction of rate.
With reference to the third aspect, in the 5th kind of possible implementation, the processor calls the memory The program code stored is used to perform following operation:
Empty the data message of the statistics bag and fraction.
The embodiments of the invention provide a kind of bit rate control method and server, is periodically obtained by server Multiple statistics bags that client reports are taken, because each statistics bag in multiple statistics bags receives comprising client Multiple packets statistical information, so as to which server can obtain the network condition of client by counting bag, And by calculating the Network queuing delay of each packet included in each statistics bag, according to each packet Network queuing delay, it is determined that the fraction of each statistics bag, and pass through the quantity of multiple statistics bags and multiple systems Count the cumulative fraction wrapped and send Rate Control instruction to client so that service can be sent out by client The packet information included in the statistics bag sent accurately estimates network state, so that control data transmission code rate, Code rate adjustment efficiency and accuracy is improved, improves Consumer's Experience;In addition, because statistics bag is periodically Acquisition client send, so server can in time by calculate obtain client network condition, So as to reduce the generation of client network congestion situation, Consumer's Experience is improved.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, institute in being described below to embodiment The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, Other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of bit rate control method flow chart provided in an embodiment of the present invention;
Fig. 2 is a kind of bit rate control method flow chart provided in an embodiment of the present invention;
Fig. 3 is a kind of server architecture schematic diagram provided in an embodiment of the present invention;
Fig. 4 is a kind of apparatus structure schematic diagram provided in an embodiment of the present invention.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that retouched The embodiment stated is only part of the embodiment of the present invention, rather than whole embodiments.Based in the present invention Embodiment, those of ordinary skill in the art obtained under the premise of creative work is not made it is all its His embodiment, belongs to the scope of protection of the invention.
Embodiment one
The embodiments of the invention provide a kind of bit rate control method, and shown in reference picture 1, methods described includes:
101st, server periodically obtains multiple statistics bags that client reports.
Wherein, each statistics bag in the multiple statistics bag includes multiple packets that the client receives Statistical information.
102nd, the Network queuing delay of each packet included in each statistics bag is calculated.
Specifically, according to the statistical information and history minimal network queueing delay of each packet, calculate The Network queuing delay of the packet;
Wherein, the statistical information comprises at least the reception time of packet, sends the time.
103rd, according to the Network queuing delay of each packet, the fraction that each statistics is wrapped is determined.
Specifically, according to the number range where the Network queuing delay of each packet, described in calculating The fraction of each statistics bag;
According to the result of the calculating, the fraction that each statistics is wrapped is determined.
The process of the fraction for determining each statistics bag can include:
If all packets fraction and more than preset fraction value, it is determined that the fraction of the statistics bag For the first fraction;
If all packets fraction and equal to preset fraction value, it is determined that the fraction of the statistics bag For the second fraction;
If each packet fraction and less than preset fraction value, it is determined that the fraction of the statistics bag For the 3rd fraction;
Wherein, first fraction is more than second fraction, and second fraction is more than the 3rd fraction.
104th, according to the cumulative fraction of the quantity of the multiple statistics bag and the multiple statistics bag and, to described Client sends Rate Control instruction.
Specifically, the process can include:
The fraction of each statistics bag is added, obtain the multiple statistics bag fraction and;
According to the quantity of the multiple statistics bag and the fraction and transmission reduction or increase data transfer code The instruction of rate.
Optionally, methods described also includes:
Empty the data message of the statistics bag and fraction.
The embodiments of the invention provide a kind of bit rate control method, and client is periodically obtained by server The multiple statistics bags reported, because each statistics bag in multiple statistics bags includes more numbers that client receives According to the statistical information of bag, so as to which server can obtain the network condition of client by counting bag, and pass through The Network queuing delay of each packet included in each statistics bag is calculated, according to the network of each packet Queueing delay, it is determined that each fraction for counting bag, and wrapped by the quantity of multiple statistics bags and multiple statistics Cumulative fraction and, send Rate Control instruction to client so that service can pass through the system of client transmission The packet information included in meter bag accurately estimates network state, so as to control data transmission code rate, improves Code rate adjustment efficiency and accuracy, improves Consumer's Experience;In addition, because statistics bag is periodically to obtain Client send, so server can in time by calculate obtain client network condition, so as to The generation of client network congestion situation is reduced, improves Consumer's Experience.
Embodiment two
The embodiments of the invention provide a kind of bit rate control method, and shown in reference picture 2, methods described includes:
201st, server periodically obtains multiple statistics bags that client reports.
Wherein, each statistics bag in the multiple statistics bag includes multiple packets that the client receives Statistical information.
Specifically, the cycle that server periodically receives multiple statistics bags of client transmission can be default Time, preset time can be according to being actually needed specific setting;Each statistics bag in multiple statistics bags includes Multiple packets.
Because each statistics bag in multiple statistics bags includes the statistical information for multiple packets that client receives Just, so server can obtain the network condition of client in time by the statistical information, so as in time The network of client is controlled, improves efficiency.
202nd, the Network queuing delay of each packet included in each statistics bag is calculated.
Specifically, according to the statistical information and history minimal network queueing delay of each packet, calculate The Network queuing delay of the packet.
Wherein, the statistical information comprises at least the reception time of packet, sends the time.
Calculate in the following manner:
The Network queuing delay of the packet=(transmission of the m- packet during reception of the packet Time)-history minimal network queueing delay.
Optionally, method also includes:
Obtain history minimal network queueing delay.
Specifically, it can obtain in the following manner:
History minimal network queueing delay=mi n (m- history each identical number during the reception of each packet of history According to the transmission time of bag).
Network queuing delay corresponding with the packet is calculated for each current data packet of reception, will be counted The Network queuing delay of the current data packet of calculation with store history minimal network queueing delay compared with, if The Network queuing delay of the current data packet of calculating is less than the history minimal network queueing delay of storage, then will deposit The history minimal network queueing delay of storage replaces with the queueing delay of the current data packet of the calculating.
The each packet included to each statistics bag in multiple statistics bags carries out the meter of Network queuing delay Calculate.
By calculating the Network queuing delay of packet, the clock jitter of different clients can be eliminated so that Control result is more accurate.
203rd, according to the number range where the Network queuing delay of each packet, calculate described each Count the fraction of bag.
The initial score of each statistics bag can be zero.
Number range where the Network queuing delay of each packet in each statistics bag, meter Calculate the fraction of each statistics bag:
Specifically, if the Network queuing delay of the packet in the statistics bag calculated is pre- more than first If the time, then the fraction of the statistics bag is reduced into preset value;
If the Network queuing delay of the packet in the statistics bag calculated is less than the second preset time, The fraction of the statistics bag is then added into preset value;
If the Network queuing delay of the packet in the statistics bag calculated is default more than or equal to second Between be less than or equal to the first preset time, and less than the Network queuing delay of a upper packet, then by the system The fraction of meter bag adds preset value;
If the Network queuing delay of the packet in the statistics bag calculated is default more than or equal to second Between be less than or equal to the first preset time, and more than a upper packet Network queuing delay just, then will described in The fraction of statistics bag reduces preset value.
Exemplary, first preset time can be 400ms, and second preset time can be 50ms, The preset value can be 1.
204th, according to the result of the calculating, the fraction that each statistics is wrapped is determined.
If specifically, the result of the calculating is more than preset fraction value, it is determined that it is described statistics bag fraction be First fraction;
If the result of the calculating is equal to preset fraction value, it is determined that the fraction of the statistics bag is the second fraction;
If the result of the calculating is less than preset fraction value, it is determined that the fraction of the statistics bag is the 3rd fraction;
Wherein, first fraction is more than second fraction, and second fraction is more than the 3rd fraction.
The preset fraction value can be 0, and first fraction can be 1, and second fraction can be 0, 3rd fraction can be -1.
It should be noted that step 203-204 is to realize the Network queuing delay according to each packet, The process of the fraction of each statistics bag is determined, can also be by other means in addition to aforesaid way The process is realized, the embodiment of the present invention is not limited to this.
205th, according to the cumulative fraction of the quantity of the multiple statistics bag and the multiple statistics bag and, to described Client sends Rate Control instruction.
Specifically, the fraction of each statistics bag is added, obtain the multiple statistics bag fraction and;
According to the quantity of the multiple statistics bag and the fraction and transmission reduction or increase data transfer code The instruction of rate.
Specifically, according to the quantity of the multiple statistics bag and the fraction and transmission reduction or increase number Process according to the instruction of transmission code rate can include:
When the quantity of the multiple statistics bag is less than or equal to the first numerical value:If the fraction and be more than or equal to First fraction and the then instruction of the transmission increase at least one grade of data transfer code check;If the fraction and Less than or equal to the second fraction and, wherein the second fraction and less than the first fraction and, then sending reduces data transfer At least one grade of code check;Otherwise, keep code check constant;
When the quantity of the multiple statistics bag is less than or equal to second value and is more than the first numerical value:It is if described Fraction and more than or equal to the 3rd fraction and, then send the instruction of the increase at least one grade of data transfer code check; If the fraction and less than or equal to the 4th fraction and, wherein the 4th fraction and less than the 3rd fraction and, then send out Sending reduces the instruction of at least one grade of data transfer code check;Otherwise, keep code check constant;
When the quantity of the multiple statistics bag is more than second value:The system of the nearest predetermined number of timing statisticses Meter bag, such as the predetermined number can be 15, if the fraction and more than or equal to the 5th fraction and, Send the instruction of the increase at least one grade of data transfer code check;If the fraction and less than or equal to the 6th point Number and, wherein the 6th fraction and less than the 5th fraction and, then send that to reduce data transfer code check at least one etc. The instruction of level;Otherwise, keep code check constant;
Exemplary, first numerical value can be 5, and the second value can be 10, described first point Number and can be 4, second fraction and can be -3, the 3rd fraction and can be 7, the described 4th Fraction and can be -6, the 5th fraction and can be 10, the 6th fraction and can be -9.
Optionally, method also includes:
Empty the data message of the statistics bag and fraction.
Specifically, the data message of the statistics bag and fraction that cache in the server is emptied, can also be clear The fraction and wait other data messages that sky caches in the server.
By emptying the data message of statistics bag and fraction, the excessive occupancy service of the data message received is avoided The memory space of device, improves efficiency.
The embodiments of the invention provide a kind of bit rate control method, and client is periodically obtained by server The multiple statistics bags reported, because each statistics bag in multiple statistics bags includes more numbers that client receives According to the statistical information of bag, so as to which server can obtain the network condition of client by counting bag, and pass through The Network queuing delay of each packet included in each statistics bag is calculated, according to the network of each packet Queueing delay, it is determined that each fraction for counting bag, and wrapped by the quantity of multiple statistics bags and multiple statistics Cumulative fraction and, send Rate Control instruction to client so that service can pass through the system of client transmission The packet information included in meter bag accurately estimates network state, so as to control data transmission code rate, improves Code rate adjustment efficiency and accuracy, improves Consumer's Experience;In addition, because statistics bag is periodically to obtain Client send, so server can in time by calculate obtain client network condition, so as to The generation of client network congestion situation is reduced, improves Consumer's Experience.
Embodiment three
The embodiments of the invention provide a kind of server, and shown in reference picture 3, the server 3 includes:
Bag acquisition module 31 is counted, the multiple statistics bags reported for periodically obtaining client are described more Each statistics bag in individual statistics bag includes the statistical information for multiple packets that the client receives;
Network queuing delay computing module 32, for calculating each packet included in each statistics bag Network queuing delay;
Bag fraction determining module 33 is counted, for the Network queuing delay according to each packet, it is determined that The fraction of each statistics bag;
Control instruction sending module 34, wrapped for the quantity according to the multiple statistics bag and the multiple statistics Cumulative fraction and, to the client send Rate Control instruction.
Optionally, the Network queuing delay computing module 32 is specifically used for:
According to the statistical information and history minimal network queueing delay of each packet, the data are calculated The Network queuing delay of bag;
Wherein, the statistical information comprises at least the reception time of packet, sends the time.
Optionally, the statistics bag fraction determining module 33 includes:
Bag fraction calculating sub module 331 is counted, for where the Network queuing delay according to each packet Number range, calculate the fraction of each statistics bag;
Bag fraction determination sub-module 332 is counted, for the result according to the calculating, is determined described each described Count the fraction of bag;
Optionally, the statistics bag fraction determination sub-module 332 is specifically used for:
If all packets fraction and more than preset fraction value, it is determined that the fraction of the statistics bag For the first fraction;
If all packets fraction and equal to preset fraction value, it is determined that the fraction of the statistics bag For the second fraction;
If each packet fraction and less than preset fraction value, it is determined that the fraction of the statistics bag For the 3rd fraction;
Wherein, first fraction is more than second fraction, and second fraction is more than the 3rd fraction.
Optionally, the control instruction sending module 34 includes:
Fraction and acquisition submodule 341, for the fraction of each statistics bag to be added, obtain the multiple Count bag fraction and;
Control instruction sending submodule 342, for the quantity according to the multiple statistics bag and the fraction With transmission reduction or the instruction of increase data transfer code check.
Optionally, the server also includes:
Data information module 35 is emptied, for emptying the data message of the statistics bag and fraction.
The embodiment of the present invention improves a kind of server, and the server periodically obtains visitor by server Multiple statistics bags that family end reports, because each statistics bag in multiple statistics bags includes the more of client reception The statistical information of individual packet, so as to which server can obtain the network condition of client by counting bag, and By calculating the Network queuing delay of each packet included in each statistics bag, according to each packet Network queuing delay, it is determined that the fraction of each statistics bag, and the quantity by multiple statistics bags and multiple statistics Bag cumulative fraction and, to client send Rate Control instruction so that service can be sent by client Statistics bag in the packet information that includes accurately estimate network state, so as to control data transmission code rate, carry High code rate adjustment efficiency and accuracy, improves Consumer's Experience;In addition, because statistics bag is periodic What the client of acquisition was sent, so server can obtain the network condition of client by calculating in time, So as to reduce the generation of client network congestion situation, Consumer's Experience is improved.
Example IV
The embodiments of the invention provide a kind of device, and shown in reference picture 4, described device 4 includes network interface Module 41, memory 42 and the processor being connected with the Network Interface Module 41, the memory 42 43, wherein, the memory 42 is used to store batch processing code, and the processor 43 calls described deposit The program code that reservoir 42 is stored is used to perform following operation:
Periodically obtain multiple statistics bags that client reports, the multiple each statistics bag counted in bag The statistical information of the multiple packets received comprising the client;
Calculate the Network queuing delay of each packet included in each statistics bag;
According to the Network queuing delay of each packet, the fraction that each statistics is wrapped is determined;
According to it is the multiple statistics bag quantity and it is the multiple statistics bag cumulative fraction and, to the client End sends Rate Control instruction.
Optionally, the processor 43 call the program code that the memory 42 stored to be used to performing with Lower operation:
According to the statistical information and history minimal network queueing delay of each packet, the data are calculated The Network queuing delay of bag;
Wherein, the statistical information comprises at least the reception time of packet, sends the time.
Optionally, the processor 43 call the program code that the memory 42 stored to be used to performing with Lower operation:
According to the number range where the Network queuing delay of each packet, each statistics is calculated The fraction of bag;
According to the result of the calculating, the fraction that each statistics is wrapped is determined.
Optionally, the processor 43 call the program code that the memory 42 stored to be used to performing with Lower operation:
If all packets fraction and more than preset fraction value, it is determined that the fraction of the statistics bag For the first fraction;
If all packets fraction and equal to preset fraction value, it is determined that the fraction of the statistics bag For the second fraction;
If each packet fraction and less than preset fraction value, it is determined that the fraction of the statistics bag For the 3rd fraction;
Wherein, first fraction is more than second fraction, and second fraction is more than the 3rd fraction.
Optionally, the processor 43 call the program code that the memory 42 stored to be used to performing with Lower operation:
The fraction of each statistics bag is added, obtain the multiple statistics bag fraction and;
According to the quantity of the multiple statistics bag and the fraction and transmission reduction or increase data transfer code The instruction of rate.
Optionally, the processor 43 call the program code that the memory 42 stored to be used to performing with Lower operation:
Empty the data message of the statistics bag and fraction.
The embodiment of the present invention improves a kind of device, and described device periodically obtains client by server The multiple statistics bags reported, because each statistics bag in multiple statistics bags includes more numbers that client receives According to the statistical information of bag, so as to which server can obtain the network condition of client by counting bag, and pass through The Network queuing delay of each packet included in each statistics bag is calculated, according to the network of each packet Queueing delay, it is determined that each fraction for counting bag, and wrapped by the quantity of multiple statistics bags and multiple statistics Cumulative fraction and, send Rate Control instruction to client so that service can pass through the system of client transmission The packet information included in meter bag accurately estimates network state, so as to control data transmission code rate, improves Code rate adjustment efficiency and accuracy, improves Consumer's Experience;In addition, because statistics bag is periodically to obtain Client send, so server can in time by calculate obtain client network condition, so as to The generation of client network congestion situation is reduced, improves Consumer's Experience.
Above-mentioned all optional technical schemes, any combination can be used to form the alternative embodiment of the present invention, This is no longer repeated one by one.
It should be noted that:Above-described embodiment provide server or device when triggering bit rate control method, , can as needed will be upper only with the division progress of above-mentioned each functional module for example, in practical application State function distribution to be completed by different functional modules, i.e., the internal structure of server or device is divided into difference Functional module, to complete all or part of function described above.In addition, what above-described embodiment provided Server or device belong to same design with bit rate control method embodiment, and its specific implementation process refers to method Embodiment, repeat no more here.
One of ordinary skill in the art will appreciate that realizing all or part of step of above-described embodiment can pass through Hardware is completed, and by program the hardware of correlation can also be instructed to complete, described program can be stored in In a kind of computer-readable recording medium, storage medium mentioned above can be read-only storage, disk or CD etc..
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the invention, it is all the present invention's Within spirit and principle, any modification, equivalent substitution and improvements made etc., it should be included in the present invention's Within protection domain.

Claims (10)

1. a kind of bit rate control method, it is characterised in that methods described includes:
Server periodically obtains multiple statistics bags that client reports, the multiple to count each in bag The statistical information for multiple packets that statistics bag receives comprising the client;
Calculate the Network queuing delay of each packet included in each statistics bag;
According to the Network queuing delay of each packet, the fraction that each statistics is wrapped is determined;
According to it is the multiple statistics bag quantity and it is the multiple statistics bag cumulative fraction and, to the client End sends Rate Control instruction.
2. according to the method for claim 1, it is characterised in that described to calculate in each statistics bag Comprising the Network queuing delay of each packet include:
According to the statistical information and history minimal network queueing delay of each packet, the data are calculated The Network queuing delay of bag;
Wherein, the statistical information comprises at least the reception time of packet, sends the time.
3. according to the method for claim 2, it is characterised in that described according to each packet Network queuing delay, determining the fraction of each statistics bag includes:
According to the number range where the Network queuing delay of each packet, each statistics is calculated The fraction of bag;
According to the result of the calculating, the fraction that each statistics is wrapped is determined.
4. according to the method for claim 3, it is characterised in that described to determine what each statistics was wrapped Fraction includes:
If all packets fraction and more than preset fraction value, it is determined that the fraction of the statistics bag For the first fraction;
If all packets fraction and equal to preset fraction value, it is determined that the fraction of the statistics bag For the second fraction;
If each packet fraction and less than preset fraction value, it is determined that the fraction of the statistics bag For the 3rd fraction;
Wherein, first fraction is more than second fraction, and second fraction is more than the 3rd fraction.
5. the method according to claim 3 or 4, it is characterised in that described according to the multiple statistics The quantity of bag and it is the multiple statistics bag cumulative fraction and, to the client send Rate Control instruction bag Include:
The fraction of each statistics bag is added, obtain the multiple statistics bag fraction and;
According to the quantity of the multiple statistics bag and the fraction and transmission reduction or increase data transfer code The instruction of rate.
6. according to the method for claim 1, it is characterised in that methods described also includes:
Empty the data message of the statistics bag and fraction.
7. a kind of server, it is characterised in that the server includes:
Bag acquisition module is counted, the multiple statistics bags reported for periodically obtaining client are the multiple Each statistics bag in statistics bag includes the statistical information for multiple packets that the client receives;
Network queuing delay computing module, for calculating each packet included in each statistics bag Network queuing delay;
Bag fraction determining module is counted, for the Network queuing delay according to each packet, determines institute State the fraction of each statistics bag;
Control instruction sending module, wrapped for the quantity according to the multiple statistics bag and the multiple statistics Cumulative fraction and, send Rate Control instruction to the client.
8. server according to claim 7, it is characterised in that the Network queuing delay calculates mould Block is specifically used for:
According to the statistical information and history minimal network queueing delay of each packet, the data are calculated The Network queuing delay of bag;
Wherein, the statistical information comprises at least the reception time of packet, sends the time.
9. server according to claim 8, it is characterised in that the statistics bag fraction determining module Including:
Bag fraction calculating sub module is counted, for where the Network queuing delay according to each packet Number range, calculate the fraction of each statistics bag;
Bag fraction determination sub-module is counted, for the result according to the calculating, determines each statistics bag Fraction.
10. server according to claim 9, it is characterised in that the statistics bag fraction determines son Module is specifically used for:
If all packets fraction and more than preset fraction value, it is determined that the fraction of the statistics bag For the first fraction;
If all packets fraction and equal to preset fraction value, it is determined that the fraction of the statistics bag For the second fraction;
If each packet fraction and less than preset fraction value, it is determined that the fraction of the statistics bag For the 3rd fraction;
Wherein, first fraction is more than second fraction, and second fraction is more than the 3rd fraction.
CN201610308514.2A 2016-05-11 2016-05-11 A kind of bit rate control method and server Pending CN107370682A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610308514.2A CN107370682A (en) 2016-05-11 2016-05-11 A kind of bit rate control method and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610308514.2A CN107370682A (en) 2016-05-11 2016-05-11 A kind of bit rate control method and server

Publications (1)

Publication Number Publication Date
CN107370682A true CN107370682A (en) 2017-11-21

Family

ID=60303541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610308514.2A Pending CN107370682A (en) 2016-05-11 2016-05-11 A kind of bit rate control method and server

Country Status (1)

Country Link
CN (1) CN107370682A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191060A (en) * 2018-02-22 2019-08-30 中兴通讯股份有限公司 A kind of adjustment data packet sends method, apparatus, equipment and the system of code rate

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414938A (en) * 2008-11-28 2009-04-22 华南理工大学 Self-adapting real-time detection method for digital household network available bandwidth
CN101984712A (en) * 2010-11-15 2011-03-09 宁波城市职业技术学院 Real-time communication routing method for wireless sensor network
CN103746875A (en) * 2013-12-31 2014-04-23 广东工业大学 Dichotomy-based multi-hop wireless network available bandwidth self-adaptive detection method
US20150098329A1 (en) * 2013-10-03 2015-04-09 National Chiao Tung University Vehicular communication system and routing method thereof
CN105024946A (en) * 2015-06-16 2015-11-04 清华大学 Bandwidth allocation method based on sliding window, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414938A (en) * 2008-11-28 2009-04-22 华南理工大学 Self-adapting real-time detection method for digital household network available bandwidth
CN101984712A (en) * 2010-11-15 2011-03-09 宁波城市职业技术学院 Real-time communication routing method for wireless sensor network
US20150098329A1 (en) * 2013-10-03 2015-04-09 National Chiao Tung University Vehicular communication system and routing method thereof
CN103746875A (en) * 2013-12-31 2014-04-23 广东工业大学 Dichotomy-based multi-hop wireless network available bandwidth self-adaptive detection method
CN105024946A (en) * 2015-06-16 2015-11-04 清华大学 Bandwidth allocation method based on sliding window, device and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191060A (en) * 2018-02-22 2019-08-30 中兴通讯股份有限公司 A kind of adjustment data packet sends method, apparatus, equipment and the system of code rate

Similar Documents

Publication Publication Date Title
CN102917466B (en) Priority scheduling and admission control in a communication network
EP1780961B1 (en) Flow control for real-time data streams
CN102077530B (en) Check wireless traffic and slow down grouping and delete to avoid wireless saturated method and apparatus
CN110972150B (en) Network capacity expansion method and device, electronic equipment and computer storage medium
WO2011042903A1 (en) Computer network service providing system including self adjusting volume enforcement functionality
CN105376176A (en) Method, device and system for guaranteeing the service quality of mobile Internet video services
CN102461093A (en) Method of managing a traffic load
JP2016208445A (en) Radio communication system, server, and base station
CN104980818A (en) Enhanced media quality management
CN105763476A (en) Method and apparatus for customizing data business service strategies
CN102611521B (en) Adjusting method for channel quality indicator (CQI)
CN105450969A (en) Real-time video data transmission method and electronic equipment
EP2547145A1 (en) Method and equipment for controlling quality of service of user terminal device
CN102752076B (en) Control method that data send and device and computer system
EP3560152B1 (en) Determining the bandwidth of a communication link
CN107370682A (en) A kind of bit rate control method and server
CN103312540A (en) User service requirement parameter determining method and device
CN107196863A (en) A kind of code rate adjustment method and electronic equipment
CN106789709B (en) Load balancing method and device
EP3366060B1 (en) Allocating radio resources in a cellular network
US7672242B2 (en) Traffic management device and method thereof
CN104902570B (en) A kind of dynamics of channels configuration method and device
CN101262432B (en) Communication device
CN107483359A (en) The method, apparatus and system of Dynamic Bandwidth Allocation
JPWO2003053012A1 (en) Policing control method, control device thereof, and network system using the control 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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20171121