Summary of the invention
The purpose of the present invention aims to solve the problem that at least one above-mentioned problem, provides a kind of balanced base station multiple terminals rate control side
Method in base station on the basis of conventional data transmission, monitors the transport network layer of user terminal, and the user around excessive rate is whole
End, receiving end reception window mouth is given in transport layer and is suppressed, containment transport layer transmitting terminal data send, thus ensure base station its
The effect of balanced overall rate is played in the experience of his user.
To achieve the goals above, the present invention provides a kind of balanced base station multiple terminals method of rate control, including following step
It is rapid:
Based on the received TCP data packet in base station, the overall base station grade uploading rate of all terminal users inside accounting base-station
And downloading rate;
Based on the received TCP data packet of each sole user's terminal, the user class for counting each sole user's terminal respectively is uploaded
Rate and downloading rate;
According to the base station of statistics grade uploading rate and downloading rate and base station radio transmission bandwidth, it is whole to calculate each sole user
The uploading rate thresholding and downloading rate thresholding at end;
By judging whether user class uploading rate or the downloading rate of each sole user's terminal are more than that it respectively uploads speed
Rate thresholding or downloading rate thresholding, adjustment transport layer receives window, to control the transmission rate of each user terminal.
Specifically, the step of uploading rate thresholding for calculating each sole user's terminal, is specific as follows:
Judge whether uploading rate is greater than ascending idle port bandwidth;
If so, setting the total uploading rate in base station to user for the uploading rate thresholding of each user terminal of inside of base station
The average value of number of terminals;
If it is not, then setting infinitely great for the uploading rate thresholding of user terminal each in base station.
Specifically, the step of downloading rate thresholding for calculating each sole user's terminal, is specific as follows:
Judge whether downloading rate is greater than downlink space interface bandwidth;
If so, setting the total downloading rate in base station to user for the downloading rate thresholding of each user terminal of inside of base station
The average value of number of terminals;
If it is not, then setting infinitely great for the downloading rate thresholding of user terminal each in base station.
Specifically, the adjustment transport layer connects when the uploading rate of sole user's terminal passes rate threshold thereon greatly
The step of receiving window is specific as follows:
Judge whether the time difference apart from last change translocation factor is greater than preset threshold value;
If more than preset threshold, then the upload translocation factor of the user terminal is added 1;
If being less than preset threshold, window field right shift " uploading translocation factor " size will be received in TCP packet.
Further, the step of adjustment transport layer reception window further includes previous step:
Judge whether the upload translocation factor of the user terminal has initialized;
If having initialized, the step of adjustment transport layer receives window is executed;
If no initializtion, the upload translocation factor of the user terminal is first initialized as 0, then execute adjustment transport layer
The step of receiving window.
Specifically, the adjustment transport layer receives when the downloading rate of sole user's terminal is greater than downloading rate thresholding
The step of window, is specific as follows:
Judge whether the time difference apart from last change translocation factor is greater than preset threshold value;
If more than preset threshold, then the downloading translocation factor of the user terminal is added 1;
If being less than preset threshold, window field right shift " downloading translocation factor " size will be received in TCP packet.
Further, the step of adjustment transport layer reception window further includes previous step:
Judge whether the downloading translocation factor of the user terminal has initialized;
If having initialized, the step of adjustment transport layer receives window is executed;
If no initializtion, the upload translocation factor of the user terminal is first initialized as 0, then execute adjustment transport layer
The step of receiving window.
Specifically, the preset threshold is 500ms.
Further, further include previous step, judge whether the net load length of the TCP data packet received is zero, if
Zero judges whether the TCP data packet carrys out self terminal.
A kind of control device of equilibrium base stations and multiuser terminal speed, comprising:
Base station stage speed statistical module: for being based on the received TCP data packet in base station, all terminals are used inside accounting base-station
The overall base station grade uploading rate and downloading rate at family;
User class counting rate module: for being based on the received TCP data packet of each sole user's terminal, each list is counted respectively
The user class uploading rate and downloading rate of one user terminal;
Computable general equilibrium module: for the base station grade uploading rate and downloading rate and base station radio transmission belt according to statistics
Width calculates the uploading rate thresholding and downloading rate thresholding of each sole user's terminal;
Transport layer window controlling module: for the user class uploading rate or downloading speed by judging each sole user's terminal
Whether rate is more than its respectively uploading rate thresholding or downloading rate thresholding, and adjustment transport layer receives window, whole to control each user
The transmission rate at end.
Compared with prior art, the solution of the invention has the following advantages:
1, the present invention realizes the balancing speed scheme based on user's transport layer in inside of base station, can be from data sending terminal source
Its data transmit-receive is controlled in the data transmission of the containment excessively high user of rate, can optimize use of the user to radio resource indirectly,
It can be reduced unnecessary network data again to send, to save network bandwidth resources.
2, the method for the invention is different from the prior art based on MAC scheduling come balanced multi-user's rate, uses without handling
Family transport layer data content reduces negative effect of the user to other users of excessive rate, and the influence to data sending terminal lacks
Weary substantivity.It solves transmitting terminal transmission to send because of radio resource anxiety without necessary data packet there are some, causes to aggravate
Also the problem of network bandwidth is wasted while air interface transmission pressure to a certain degree.
3, the prior art not will appreciate that user transmits layer status, surround due to not parsing user's TCP/IP packet content
There are a degree of disconnections with the user terminal transport layer data force and velocity of a current for the scheduling of resource of base station oneself state.And the present invention passes through
And base station operating status and user's transport layer are combined, in the whole story both ends depth equilibrium multiple users rate of data transmission, delay
Solve the problem of multi-user's sensory experience unevenness.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description
Obviously, or practice through the invention is recognized.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one
It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention
Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition
Other one or more features, integer, step, operation, element, component and/or their group.It should be understood that when we claim member
Part is " connected " or when " coupled " to another element, it can be directly connected or coupled to other elements, or there may also be
Intermediary element.In addition, " connection " used herein or " coupling " may include being wirelessly connected or wirelessly coupling.It is used herein to arrange
Diction "and/or" includes one or more associated wholes for listing item or any cell and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also
Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art
The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here
To explain.
Those skilled in the art of the present technique are appreciated that " user terminal " used herein above, " subscriber terminal equipment " had both wrapped
The equipment for including wireless signal receiver, only has the equipment of the wireless signal receiver of non-emissive ability, but including receiving and
Emit the equipment of hardware, there is the reception that on bidirectional communication link, can execute two-way communication and emits the equipment of hardware.
This equipment may include: honeycomb or other communication equipments, with single line display or multi-line display or without more
The honeycomb of multi-line display or other communication equipments;PCS (Personal Communications Service, personal communication system
System), it can be with combine voice, data processing, fax and/or communication ability;PDA(Personal Digital
Assistant,Personal digital assistant), may include radio frequency receiver, pager, the Internet/intranet access, network it is clear
Look at device, notepad, calendar and/or GPS (Global Positioning System, global positioning system) receiver;Conventional knee
Mo(u)ld top half and/or palmtop computer or other equipment, have and/or conventional laptop and/or the palm including radio frequency receiver
Laptop computer or other equipment." user terminal " used herein above, " subscriber terminal equipment " can be it is portable, can transport
It is defeated, be mounted in the vehicles (aviation, sea-freight and/or land), or be suitable for and/or be configured in local runtime, and/
Or with distribution form, operate in any other position operation in the earth and/or space." user terminal " used herein above " is used
Family terminal device " can also be that communications user terminal, Internet user's terminal, music/video play user terminal, such as can be
PDA, MID (Mobile Internet Device, mobile internet device) and/or the shifting with music/video playing function
Mobile phone is also possible to the equipment such as smart television, set-top box.
In order to simplify the analysis of existing base station, by taking LTE base station as an example, data transmission relate generally to MAC, RLC, PDCP,
The main protocols such as S1, wherein the S1 layer data form linking protocol datas such as network data transmission and inside of base station PDCP processing, number
It is as shown in Figure 1 according to the protocol architecture and equilibrium point of transmission.
For the present invention in above-mentioned data transmission structure, the processing list in user's transport layer balancing speed is responsible in addition specially
Member, the transmission structure after introducing is as shown in Fig. 2, other standard base stations introducing scheme is identical.
The control method and device of equilibrium base stations and multiuser terminal speed provided by the invention, are suitable for various standard base stations
Equipment, it is existing for the purposes of Simplified analysis including GSM, CDMA, WCDMA, TD-SCDMA, FDD-LTE, TDD-LTE, WLAN etc.
Description is unfolded in base station system still by taking LTE standard base station as an example, the shortcomings that other standard base stations and introduce scheme with LTE system
Formula base station is identical.
In base station on the basis of conventional data transmission, the transport network layer of monitor terminal is being passed for the terminal of high-speed
Defeated layer is controlled window is received, and the data of limitation transport layer transmitting terminal are sent, to limit the transmission speed of high-speed terminal
Rate plays the effect of balanced overall rate.
The control of the control method of balanced base station multiple terminals rate of the invention and balanced base station multiple terminals rate of the invention
Device processed has one-to-one correspondence property, and the latter is the former modular implementation, therefore, for the simplification illustrated, following segment word knot
This method has been merged in conjunction and device is illustrated.It should be understood by those skilled in the art that this literal accommodation, should not regard with
Under be described as limit the independence of method and apparatus.
Based on above-mentioned premise, refering to what is shown in Fig. 3, the present invention provides a kind of control device of balanced base station multiple terminals rate,
Including base station stage speed statistical module 11, user class counting rate module 12, computable general equilibrium module 13, transport layer window control mould
Block 14, wherein
The base station stage speed statistical module 11 owns inside accounting base-station for being based on the received TCP data packet in base station
The overall base station grade uploading rate and downloading rate of terminal user;
The user class counting rate module 12 is united respectively for being based on the received TCP data packet of each sole user's terminal
Count the user class uploading rate and downloading rate of each sole user's terminal;
The computable general equilibrium module 13, for being passed according to the base station grade uploading rate and downloading rate and base station radio of statistics
Defeated bandwidth calculates the uploading rate thresholding and downloading rate thresholding of each sole user's terminal;
The transport layer window controlling module 14, for by judge each sole user's terminal user class uploading rate or
Whether downloading rate is more than its respectively uploading rate thresholding or downloading rate thresholding, and adjustment transport layer receives window, each to control
The transmission rate of user terminal.
In order to illustrate the control device implementation procedure of balanced base station multiple terminals of the present invention rate, below by the present invention
The control method of the balanced base station multiple terminals rate is described further, referring to Fig. 4, specifically includes the following steps:
S11, it is based on the received TCP data packet in base station, the overall base station grade of all terminal users uploads inside accounting base-station
Rate and downloading rate;
Previous step is first carried out before executing this step, that is, judge the TCP data packet received net load length whether
It is zero, judges whether the received TCP data packet carrys out self terminal if zero.Downloading rate is counted if carrying out self terminal, it is no
Then count uploading rate.Wherein, the detailed process of the statistics upload or downloading rate value are as follows:
The byte number for calculating upstream or downstream received data packet calculates corresponding upload in conjunction with statistics point surrounding time difference
Or downloading rate value.
Statistics obtains the overall base station grade uploading rate and downloading rate of all terminal users of inside of base station as a result,.
S12, it is based on the received TCP data packet of each sole user's terminal, counts the user class of each sole user's terminal respectively
Uploading rate and downloading rate;
Detailed process described in the step is with described in step S11, based on the TCP data packet that each sole user's terminal receives,
According to the user class uploading rate and downloading rate of each sole user's terminal of process statistics described in step S11, details are not described herein.
S13, base station grade uploading rate and downloading rate and base station radio transmission bandwidth according to statistics, calculate each single use
The uploading rate thresholding and downloading rate thresholding of family terminal;
Base station grade uploading rate and downloading rate and base station radio transmission bandwidth of the base station according to statistics, each list of analytical calculation
The uploading rate thresholding and downloading rate thresholding of one user terminal, specifically, the uploading rate for calculating sole user's terminal
The step of thresholding, is as follows:
A1, judge whether uploading rate is greater than ascending idle port bandwidth;
A2, if so, setting the total uploading rate pair in base station for the uploading rate thresholding of each user terminal of inside of base station
The average value of user terminal number;
A3, if it is not, then setting infinitely great for the uploading rate thresholding of user terminal each in base station.
Similarly, the step of downloading rate thresholding for calculating sole user's terminal are as follows:
B1, judge whether downloading rate is greater than downlink space interface bandwidth;
B2, if so, setting the total downloading rate pair in base station for the downloading rate thresholding of each user terminal of inside of base station
The average value of user terminal number;
B3, if it is not, then setting infinitely great for the downloading rate thresholding of user terminal each in base station.
Thus the uploading rate threshold value and downloading rate threshold value that can determine each sole user's terminal, so as to subsequent with this
On the basis of its transmission rate is controlled.
S14, the user class uploading rate by judging each sole user's terminal or downloading rate whether be more than its respectively on
Rate threshold or downloading rate thresholding are passed, adjustment transport layer receives window, to control the transmission rate of each user terminal.
When the user class uploading rate of any sole user's terminal is more than that it uploads rate threshold, then adjusts transport layer and connect
Window is received, specific implementation step is as follows:
C1, judge whether the time difference apart from last change translocation factor is greater than preset threshold value;
C2, if more than preset threshold, then the upload translocation factor of the user terminal is added 1;
If c3, being less than preset threshold, window field right shift " uploading translocation factor " size will be received in TCP packet.
When the user class downloading rate of any sole user's terminal is more than its downloading rate thresholding, then adjusts transport layer and connect
Window is received, specific implementation step is as follows:
D1, judge whether the time difference apart from last change translocation factor is greater than preset threshold value;
D2, if more than preset threshold, then the downloading translocation factor of the user terminal is added 1;
If d3, being less than preset threshold, window field right shift " downloading translocation factor " size will be received in TCP packet.
Before executing above-mentioned steps, previous step is first carried out in advance:
Whether s1, the upload for judging the user terminal or downloading translocation factor have initialized;
If s2, having initialized, the corresponding steps that adjustment transport layer receives window are executed;
If s3, no initializtion, the upload of the user terminal or downloading translocation factor are first initialized as 0, then execute
Adjust the corresponding steps that transport layer receives window.
Wherein, the preset threshold is 500ms.
The process that window is received by adjustment transport layer described in the step, realizes and controls the transmission rate of user terminal,
The terminal of containment high-speed plays the role of balanced base station overall rate so as to ensure the experience of base station other users.
For the control method and device further to balanced base station multiple terminals rate of the invention, carried out with programmatic way
Illustrate, refering to what is shown in Fig. 5, the present invention provides following specific embodiments one, is described in the form of procedure, specific as follows:
Step S101: base station receives TCP packet, goes to step S102;
Step S102: judge whether TCP data packet net load length is 0, if going to step S103, is otherwise gone to step
S109;
Step S103: judging whether TCP packet carrys out self terminal, if going to step S106, otherwise goes to step S104;
Step S104: inquiry terminal uploading rate goes to step S105;
Step S105: the thresholding of inquiry terminal uploading rate goes to step S108;
Step S106: inquiry terminal downloads rate goes to step S107;
Step S107: the thresholding of inquiry terminal downloads rate goes to step S108;
Step S108: it according to terminal speed and its thresholding, adjusts transport layer and receives window, go to step S109;
Step S109: processing terminate.
As shown in fig.6, embodiment two is further to the control device of balanced base station multiple terminals of the present invention rate
The execution step of computable general equilibrium module 13 elaborates, and is described with Process flow, specific as follows:
Step S201: the total rate in base station is obtained, S202 is gone to step;
Step S202: judge whether rate type is downloading rate, if going to step S206, otherwise goes to step S203;
Step S203: judging whether uploading rate is greater than ascending idle port bandwidth, if going to step S204, otherwise goes to step
S205;
Step S204: total uploading rate is set to the average value of number of terminals by the uploading rate thresholding of each terminal, is turned
Step S209;
Step S205: it sets infinitely great for the uploading rate thresholding of each terminal, i.e., does not do speed limit, go to step S209;
Step S206: judging whether downloading rate is greater than downlink space interface bandwidth, if going to step S207, otherwise goes to step
S208;
Step S207: total downloading rate is set to the average value of number of terminals by the downloading rate thresholding of each terminal, is turned
Step S209;
Step S208: it sets infinitely great for the downloading rate thresholding of each terminal, i.e., does not do speed limit, go to step S209;
Step S209: it is disposed.
Computable general equilibrium module 13 calculates the uploading rate or downloading rate door of each terminal by executing above-mentioned steps
Limit, and by computable general equilibrium module 13 by calculated result more new record to inside modules, and external query interface is provided, for other moulds
Block calls, to obtain the upload or downloading rate thresholding.
As shown in fig.7, transport layer of the embodiment three to the control device of balanced base station multiple terminals of the present invention rate
The step of window controlling module 14 executes elaborates, and is described with flow model, specific as follows:
Step S301: base station receives the TCP packet that net load is zero, goes to step S302;
Step S302: judging whether TCP packet carrys out self terminal, if going to step S309, otherwise goes to step S303;
Step S303: judging whether the uploading rate of terminal is greater than uploading rate thresholding, if going to step S304, otherwise turns
Step S315;
Step S304: judge that terminal uploads whether translocation factor has initialized, if going to step S306, otherwise goes to step
S305;
Step S305: terminal upload translocation factor is initialized as 0, goes to step S306 by modification translocation factor;
Step S306: judging whether be greater than 500ms apart from the last change translocation factor time difference, if going to step S307,
Otherwise S308 is gone to step;
Step S307: terminal upload translocation factor is added 1, goes to step S308 by modification translocation factor;
Step S308: window field right shift " uploading translocation factor " size will be received in TCP packet, goes to step S317;
Step S309: judging whether the downloading rate of terminal is greater than downloading rate thresholding, if going to step S310, otherwise turns
Step S316;
Step S310: judging whether terminal downloads translocation factor has initialized, if going to step S312, otherwise goes to step
S311;
Step S311: terminal downloads translocation factor is initialized as 0, goes to step S312 by modification translocation factor;
Step S312: judging whether be greater than 500ms apart from the last change translocation factor time difference, if going to step S313,
Otherwise S314 is gone to step;
Step S313: terminal downloads translocation factor is added 1, goes to step S314 by modification translocation factor;
Step S314: window field right shift " downloading translocation factor " size will be received in TCP packet, goes to step S317;
Step S315: modification translocation factor sets 0 for terminal upload translocation factor, goes to step S317;
Step S316: modification translocation factor sets 0 for terminal downloads translocation factor, goes to step S317;
Step S317: processing terminate.
The transport layer window controlling module 14 is uploaded according to terminal or downloading rate thresholding, in conjunction with terminal present rate,
Decide whether to limit data transmission, if not needing to limit, be not processed, if desired limit, then suppress terminal transmission layer window,
It is finally reached the purpose of rate equilibrium.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.