CN103281258B - A kind of data transmission method for uplink and device - Google Patents
A kind of data transmission method for uplink and device Download PDFInfo
- Publication number
- CN103281258B CN103281258B CN201310116734.1A CN201310116734A CN103281258B CN 103281258 B CN103281258 B CN 103281258B CN 201310116734 A CN201310116734 A CN 201310116734A CN 103281258 B CN103281258 B CN 103281258B
- Authority
- CN
- China
- Prior art keywords
- data
- queue
- sent
- network
- token number
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of data transmission method for uplink and device.Wherein, the method includes: judge the network state of data to be sent, and type of message;If network is in light-load state, or network is in heavy duty state and message is urgent messages, then send above-mentioned data to be sent;If network is in heavy duty state and message is non-emergent message, then according to the type of service of above-mentioned data to be sent, the secondary performing above-mentioned data to be sent sends operation.Pass through the present invention, solve in correlation technique and carry out business datum regulation and control according to business datum priority, business datum is caused to send the problem that effect is poor, achieve the high efficiency of transmission of network light load hours evidence, during network heavy duty on the premise of the lowest-bandwidth transmission ratio ensureing every class business, the flexible and efficient transmission of business datum, thus both ensure that the lowest-bandwidth demand of business datum, also improve bandwidth availability ratio simultaneously, adjust the resource occupation of specific transactions more neatly.
Description
Technical field
The present invention relates to communication field, particularly relate to a kind of data transmission method for uplink and device.
Background technology
Along with the development of wireless communication technology, various wireless communication mode is used widely the most day by day, but by
In the restriction of equipment self-growth, limited bandwidth resources by be in the regular period main feature of wireless channel it
One.In current wireless network, the upper-layer service classification of wireless channel carrying is the finest, different
Bandwidth is taken by business, and ageing requirement etc. is different, and between different business often the most substantially
Priority difference, simultaneously there is also user in actual use needs to adjust the transmission matter of a certain business temporarily
The demand of amount, when therefore carrying out data transmission in the wireless channel of Bandwidth-Constrained, needs consideration to ensure
The minimum transmission bandwidth demand of different business, can make full use of channel again, the most also support interim
Resources regulation.
In the related, in order to realize the service that different types of business datum is made a distinction, common
The mode of processing mode many employings multichannel or many tokens carries out cooperative scheduling and flow-control.Traditional manifold
The flow control algorithm of road or many tokens is mainly based upon service priority and regulates and controls, it is allowed to high priority message can
To seize the resource of low priority message, in the way of sacrificing low priority message resource, ensure high priority report
The transmission quality of literary composition.But in some application scenarios, priority difference inconspicuous between different business, as
Fruit prioritization by force, is likely to result in some business and slowly cannot send.Many tokens mode is in reality simultaneously
When business now takies the interim regulation and control of resource, algorithm is the most complex.
Carry out business datum regulation and control in correlation technique according to business datum priority, cause business datum to be sent out
Send the problem that effect is poor, the most not yet propose effective solution.
Summary of the invention
Carry out business datum regulation and control in correlation technique according to business datum priority, cause business datum to be sent out
Send the problem that effect is poor, the invention provides a kind of data transmission method for uplink and device, in order to solve above-mentioned skill
Art problem.
According to an aspect of the present invention, the invention provides a kind of data transmission method for uplink, wherein, the method
Including: judge the network state of data to be sent, and type of message;If network is in light-load state,
Or network is in heavy duty state and message is urgent messages, then send above-mentioned data to be sent;If net
Network is in heavy duty state and message is non-emergent message, then according to the type of service of above-mentioned data to be sent,
The secondary performing above-mentioned data to be sent sends operation.
Preferably, it is judged that the network state of data to be sent may include that according to predetermined threshold value interval to network
Congestion Level SPCC judges;Wherein, above-mentioned predetermined threshold value interval is the interval from first threshold to Second Threshold
Scope, above-mentioned first threshold is less than above-mentioned Second Threshold;At above-mentioned network congestion degree higher than above-mentioned default threshold
When being worth interval Second Threshold, then judge that above-mentioned network is changed into heavy duty state from light-load state;Upper
When stating network congestion degree less than the first threshold that above-mentioned predetermined threshold value is interval, then judge that above-mentioned network is from heavy burden
Load state is changed into light-load state.
Preferably, according to the type of service of above-mentioned data to be sent, the secondary performing above-mentioned data to be sent is sent out
Send operation to may include that according to above-mentioned type of service to distribute above-mentioned data to be sent to different queue;According to
Above-mentioned type of service and token sum, determine the transmission token number first of each queue;According to each queue
The above-mentioned token number that sends first, send the data to be sent of each queue first;Above-mentioned treating is sent first
After sending data, determine residue token number;According to above-mentioned type of service and above-mentioned residue token number, determine
The transmission token number again of each queue;Above-mentioned according to each queue sends token number again, again sends
The data to be sent of each queue.
Preferably, according to above-mentioned type of service and token sum, the transmission token first of each queue is determined
Number may include that the service bandwidth occupation proportion determining each queue according to above-mentioned type of service;By above-mentioned order
Board sum takes advantage of the service bandwidth occupation proportion of each queue, then deducts the existing debt of each queue, obtains each
The transmission token number first of individual queue;Wherein, above-mentioned existing debt refers to during queue previous transmission data extra
The token number taken.
Preferably, according to above-mentioned type of service and above-mentioned residue token number, again sending out of each queue is determined
Token number is sent to may include that the priority determining each queue according to above-mentioned type of service;According to each queue
Above-mentioned priority, by above-mentioned residue token number distribute to each queue, obtain the transmission again of each queue
Token number.
Preferably, according to the above-mentioned token number that sends first of each queue, the pending of each queue is sent first
Send data may include that each queue of pre-judgement send data to be sent first after debt, if less than pre-
If debt amount;Wherein, above-mentioned debt is the order additionally taken after each queue sends data to be sent first
Board number;If it is, send the data to be sent of each queue first.
Preferably, said method can also include: sets up index;Wherein, above-mentioned index is used for recording pending
Send data, the above-mentioned existing debt of each queue;Before obtaining the token number of transmission first of each queue, on
Method of stating also includes: determine the existing debt of each queue and above-mentioned data to be sent according to above-mentioned index.
According to a further aspect in the invention, present invention also offers a kind of data sending device, wherein, this dress
Put and include: judge module, for judging the network state of data to be sent, and type of message;First
Send module, be that network is in light-load state, or network for the judged result at above-mentioned judge module
It is in heavy duty state and time message is urgent messages, sends above-mentioned data to be sent;Second sending module,
It is that network is in heavy duty state and message is non-emergent message for the judged result at above-mentioned judge module
Time, according to the type of service of above-mentioned data to be sent, the secondary performing above-mentioned data to be sent sends operation.
Preferably, above-mentioned judge module may include that judging unit, for interval to net according to predetermined threshold value
Network Congestion Level SPCC judges;Wherein, above-mentioned predetermined threshold value interval is the district from first threshold to Second Threshold
Between scope, above-mentioned first threshold be less than above-mentioned Second Threshold;First identifying unit, for gathering around at above-mentioned network
When plug degree is higher than the Second Threshold that above-mentioned predetermined threshold value is interval, it is determined that above-mentioned network changes from light-load state
Attach most importance to load condition;Second identifying unit, for being less than above-mentioned predetermined threshold value district at above-mentioned network congestion degree
Between first threshold time, it is determined that above-mentioned network is changed into light-load state from heavy duty state.
Preferably, above-mentioned second sending module may include that data allocation unit, for according to above-mentioned business
Above-mentioned data to be sent are distributed to different queue by type;Send token number first and determine unit, for basis
Above-mentioned type of service and token sum, determine the transmission token number first of each queue;Data send first
Unit, for the above-mentioned token number that sends first according to each queue, sends the to be sent of each queue first
Data;Again send token number and determine unit, for after sending above-mentioned data to be sent first, determine surplus
Remaining token number;According to above-mentioned type of service and above-mentioned residue token number, determine the transmission again of each queue
Token number;Data transmitting element again, for the above-mentioned token number that again sends according to each queue, again
Send the data to be sent of each queue.
By the present invention, first determine whether the network state of data to be sent, and type of message, if network
It is in light-load state, or network is in heavy duty state and message is urgent messages, then send above-mentioned treating
Send data;If network is in heavy duty state and message is non-emergent message, then according to above-mentioned to be sent
The type of service of data, the secondary performing above-mentioned data to be sent sends operation.Solve root in correlation technique
Carry out business datum regulation and control according to business datum priority, cause business datum to send the problem that effect is poor, real
Show the high efficiency of transmission of network light load hours evidence, at the lowest-bandwidth ensureing every class business during network heavy duty
On the premise of transmission ratio, the flexible and efficient transmission of business datum, thus both ensure that the low strap of business datum
Wide demand, also improves bandwidth availability ratio simultaneously, adjusts the resource occupation of specific transactions more neatly.
Accompanying drawing explanation
Fig. 1 is the flow chart of data transmission method for uplink according to embodiments of the present invention;
Fig. 2 is the structured flowchart of data sending device according to embodiments of the present invention;
Fig. 3 is the structural representation of flow control system based on type of service according to embodiments of the present invention;
Fig. 4 is flow-control flow chart based on type of service according to embodiments of the present invention;
Fig. 5 is data secondary transmission flow figure according to embodiments of the present invention.
Detailed description of the invention
In the related, when wireless network needs to transmit multiple business message, each business report possible
Literary composition priority each other inconspicuous and respective data traffic, ageing requirement are not quite similar, if now adopted
The mode taking the multichannel in correlation technique or many tokens carries out cooperative scheduling and flow-control, is difficulty with each
Effective transmission of individual business datum.Based on this, embodiments provide a kind of data transmission method for uplink and dress
Put, below in conjunction with accompanying drawing and embodiment, the present invention is further elaborated.Should be appreciated that this
Specific embodiment described by place, only in order to explain the present invention, does not limit the present invention.
Present embodiments providing a kind of data transmission method for uplink, Fig. 1 is that data according to embodiments of the present invention send
The flow chart of method, as it is shown in figure 1, the method comprises the following steps (step S102-step S106):
Step S102, it is judged that the network state of data to be sent, and type of message.Specifically, network-like
State is divided into light-load state and heavy duty state, and type of message is divided into urgent messages and non-emergent message.
If network is in light-load state, or network is in heavy duty state and message is urgent messages,
Then perform step S104, if network is in heavy duty state and message is non-emergent message, then perform step
S106。
Step S104, sends data to be sent.
Step S106, according to the type of service of data to be sent, the secondary performing data to be sent sends operation.
By said method, first determine whether the network state of data to be sent, and type of message, if net
Network is in light-load state, or network is in heavy duty state and message is urgent messages, then send above-mentioned
Data to be sent;If network is in heavy duty state and message is non-emergent message, then according to above-mentioned pending
Sending the type of service of data, the secondary performing above-mentioned data to be sent sends operation.Solve in correlation technique
Carry out business datum regulation and control according to business datum priority, cause business datum to send the problem that effect is poor,
Achieve the high efficiency of transmission of network light load hours evidence, at the low strap ensureing every class business during network heavy duty
On the premise of wide transmission ratio, the flexible and efficient transmission of business datum, thus both ensure that the minimum of business datum
Bandwidth demand, also improves bandwidth availability ratio simultaneously, adjusts the resource occupation of specific transactions more neatly.
For step S102 judging, network is in light-load state or the operation of heavy duty state, permissible
Judged by network congestion degree, it is preferable that present embodiments provide a kind of preferred implementation, i.e.
Judge that the network state of data to be sent includes: according to predetermined threshold value interval, network congestion degree is judged;
Wherein, above-mentioned predetermined threshold value interval is the interval range from first threshold to Second Threshold, and first threshold is less than
Second Threshold;When network congestion degree is higher than the Second Threshold that predetermined threshold value is interval, then judge that network is from gently
Load condition is changed into heavy duty state;When network congestion degree is less than the first threshold that predetermined threshold value is interval,
Then judge that network is changed into light-load state from heavy duty state.
What this predetermined threshold value was interval is disposed to avoid the concussion of network congestion degree, such as, when network is gathered around
When plug degree is less than first threshold, it is possible to determine that network is in light-load state, but in practical operation,
Network congestion degree, it is possible that concussion, is i.e. just marginally larger than first threshold when network congestion degree, but goes back
During less than Second Threshold, it is possible to determine that network is still in light-load state, until network congestion degree exceedes
Second Threshold, just judges that network is changed into heavy duty state from light-load state.In like manner, when network congestion journey
When degree is more than Second Threshold, it is possible to determine that network is in heavy duty state, when network congestion degree is just less than
Second Threshold, but also greater than first threshold time, it is possible to determine that network is still in heavy duty state, until
Network congestion degree is less than first threshold, just judges that network is changed into light-load state from heavy duty state.
So, first threshold provides to the concussion that predetermined threshold value interval is network congestion degree of Second Threshold
Buffering interval, it is possible to be more reasonably applied in practical operation.According to predetermined threshold value interval, network is being gathered around
Plug degree judges, so that it is determined that after network state, can choose whether that execution is treated according to network state
The secondary sending data sends operation.It addition, interval the arranging and can be revised voluntarily by user of predetermined threshold value,
Can be configured according to practical situation, generally, the difference of first threshold and Second Threshold can be set
Value is 20%.
Below the process of the secondary transmission operation of data to be sent is introduced, according to the industry of data to be sent
Service type, the secondary transmission operation performing data to be sent includes: data to be sent divided according to type of service
It is assigned to different queue;According to type of service and token sum, determine the transmission token number first of each queue;
According to the transmission token number first of each queue, send the data to be sent of each queue first;Send out first
After sending data to be sent, determine residue token number;According to type of service and residue token number, determine each
The transmission token number again of queue;According to the transmission token number again of each queue, again send each queue
Data to be sent.
Specifically, the secondary of data sends in operation, and sending operation first is business band based on each queue
Wide occupation proportion carries out the distribution of token number, then carries out the transmission of data according to token number;Again send behaviour
Work is the distribution that priority based on each queue carries out token number, then carries out sending out of data according to token number
Send.Separately below twice transmission operation is introduced.
Send in operation first, according to type of service and token sum, determine sending out first of each queue
Token number is sent to include: to determine the service bandwidth occupation proportion of each queue according to type of service;By token sum
Take advantage of the service bandwidth occupation proportion of each queue, then deduct the existing debt of each queue, obtain each queue
Transmission token number first;Wherein, above-mentioned existing debt refers to additionally to take during queue previous transmission data
Token number.
Again sending in operation, according to type of service and residue token number, determining each queue again
Transmission token number includes: determine the priority of each queue according to above-mentioned type of service;According to each queue
Above-mentioned priority, by above-mentioned residue token number distribution to each queue, obtains the order of transmission again of each queue
Board number.
It addition, be previously noted the existing debt of each queue, i.e. during queue previous transmission data, due to for
The token number of its distribution is not enough, the most additionally occupies a part of token number, these tokens additionally taken
Number is existing debt.In view of being likely to occur this situation of existing debt, a debt amount can be preset,
Send before data at distribution token number, can judge the most in advance each queue send data first after debt,
Whether within default debt amount, if it is, data can be sent.Specifically, according to each queue
Transmission token number first, send the data to be sent of each queue first, can be preferable to carry out by following
Mode realizes: judge in advance each queue send data to be sent first after debt, if fall into debt less than presetting
Amount;Wherein, above-mentioned debt is the token number additionally taken after each queue sends data to be sent first;
If it is, send the data to be sent of each queue first.By this preferred implementation, can avoid
Data blindly send, and improve the success rate that data send.
In order to improve data transmission efficiency, it is also possible to setting up index, this index is used for recording data to be sent,
The existing debt of each queue.Preferably, before obtaining the token number of transmission first of each queue, above-mentioned
Method can also include: determines the existing debt of each queue and above-mentioned data to be sent according to above-mentioned index.
So, improve and determine existing debt and the efficiency of data to be sent.This index can be by each queue often
Secondary data is updated after sending.
By the present embodiment, when network heavy duty by the service message entering queue is carried out according to self
The congestion control of characteristic and twice transmission operation, it is ensured that the lowest-bandwidth demand of business, also improve simultaneously
When bandwidth availability ratio, the i.e. data in some some business of moment need not transmission, it is allowed to other business are seized
Its bandwidth resources, when such business has data to arrive, can recover rapidly its use to pre-set bandwidths resource.
The queue specified by controlling message to enter, arranges the debt amount of specified queue, adjusts specific industry neatly
The resource occupation of business.
The data transmission method for uplink introduced corresponding to above-described embodiment, present embodiments provides a kind of data and sends dress
Put, in order to realize above-described embodiment.Fig. 2 is the structural frames of data sending device according to embodiments of the present invention
Figure, as in figure 2 it is shown, this device includes: judge module the 10, first sending module 20 and second sends mould
Block 30.Below this structure is described in detail.
Judge module 10, for judging the network state of data to be sent, and type of message;
First sending module 20, is connected to judge module 10, ties for the judgement at above-mentioned judge module 10
Fruit is that above-mentioned network is in light-load state, or above-mentioned network is in heavy duty state and above-mentioned message is
During urgent messages, send above-mentioned data to be sent;
Second sending module 30, is connected to judge module 10, ties for the judgement at above-mentioned judge module 10
Fruit is, above-mentioned network is in heavy duty state and time above-mentioned message is non-emergent message, according to above-mentioned to be sent
The type of service of data, the secondary performing above-mentioned data to be sent sends operation.
By said apparatus, first determine whether that module 10 judges the network state of data to be sent, and message
Type, if network is in light-load state, or network is in heavy duty state and message is urgent messages,
Then trigger the first sending module 20;If network is in heavy duty state and message is non-emergent message, then touch
Send out the second sending module 30.Solve in correlation technique and carry out business datum regulation and control according to business datum priority,
Business datum is caused to send the problem that effect is poor, it is achieved that the high efficiency of transmission of network light load hours evidence, net
During network heavy duty on the premise of the lowest-bandwidth transmission ratio ensureing every class business, business datum is flexible and efficient
Transmission, thus both ensure that the lowest-bandwidth demand of business datum, also improve bandwidth availability ratio simultaneously, more
Add the resource occupation adjusting specific transactions neatly.
Judge module 10 is judged that network is in light-load state or the operation of heavy duty state, permissible
Judged by network congestion degree, it is preferable that present embodiments provide a kind of preferred structure, the most above-mentioned
Judge module 10 includes:
Judging unit, for judging network congestion degree according to predetermined threshold value interval;Wherein, above-mentioned
Predetermined threshold value interval is the interval range from first threshold to Second Threshold, and above-mentioned first threshold is less than above-mentioned the
Two threshold values;
First identifying unit, for second threshold interval higher than above-mentioned predetermined threshold value at above-mentioned network congestion degree
During value, it is determined that above-mentioned network is changed into heavy duty state from light-load state;
Second identifying unit, for first threshold interval less than above-mentioned predetermined threshold value at above-mentioned network congestion degree
During value, it is determined that above-mentioned network is changed into light-load state from heavy duty state.
What above-mentioned predetermined threshold value was interval is disposed to avoid the concussion of network congestion degree, and predetermined threshold value is interval
Arrange and can be revised voluntarily by user, can be configured according to practical situation, generally, permissible
The difference arranging first threshold and Second Threshold is 20%.It is previously and is discussed in detail, at this no longer
Repeat.
Operation is sent for the secondary of data to be sent in the second sending module 30, present embodiments provides one
Planting preferred structure, the most above-mentioned second sending module 30 includes: data allocation unit, for according to above-mentioned industry
Above-mentioned data to be sent are distributed to different queue by service type;Send token number first and determine unit, for root
According to above-mentioned type of service and token sum, determine the transmission token number first of each queue;Data are sent out first
Send unit, for the above-mentioned token number that sends first according to each queue, send the pending of each queue first
Send data;Again send token number and determine unit, for after sending above-mentioned data to be sent first, determine
Residue token number;According to above-mentioned type of service and above-mentioned residue token number, determine again sending out of each queue
Send token number;Data transmitting element again, for the above-mentioned token number that again sends according to each queue, then
The data to be sent of secondary each queue of transmission.
Specifically, the secondary of data sends in operation, and sending operation first is business band based on each queue
Wide occupation proportion carries out the distribution of token number, then carries out the transmission of data according to token number;Again send behaviour
Work is the distribution that priority based on each queue carries out token number, then carries out sending out of data according to token number
Send.The most respectively twice transmission operation is described, does not repeats them here.
Fig. 3 is the structural representation of flow control system based on type of service according to embodiments of the present invention,
As it is shown on figure 3, flow control system specifically includes: service adaptation unit, data penetration transmission unit, token pond
Administrative unit, queue scheduling unit and data transmission unit, by mutual function call between unit
Realize collaborative work.
Service adaptation unit, its function is suitable, according in advance with the function of judge module 10 in above-described embodiment
If the identification of service feature value finishing service type, carry out queuing message type mark simultaneously: if TOS
Field is not carried out specifically defined by operation system, then revise the TOS field of IP heading;If TOS
Do not allow amendment with type of service definition binding, then markup information be added in the Option Field of IP header,
Peel off when the final jump of transmission.
Data penetration transmission unit, its function is suitable with the function of the first sending module 20 in above-described embodiment, negative
Blame the real-time transmission completing all messages when network is in light load, and urgent messages during network heavy duty
The real-time transmission of (such as: existence information), and add up the consumption of token, timing reports token pond administrative unit
To update current token number.
Token pond administrative unit, its function is suitable with the function of judging unit in above-described embodiment, is responsible for often
The statistics that after the granting of token when individual timeslice arrives, the transmission of every secondary data, token consumes, the most also needs basis
Predetermined threshold value carries out anticipation to network congestion degree, and then controls queue scheduling unit enabled state.Network is gathered around
The threshold value of plug anticipation can support that user revises, but two threshold values generally should keep the difference of 20%, it is to avoid queue
The concussion of scheduling unit state.
Queue scheduling unit, its function sends token in the second sending module 30 in above-described embodiment first
Number determines that unit, again transmission token number determine that the function of unit is suitable, completes during network heavy duty non-emergent
The congestion control of message, each queue, according to the characteristic of corresponding business and priority, is respectively provided with congested calculation
The parameters of method;Queue scheduling unit is responsible for the polling sequence arrangement of queue simultaneously.
Data transmission unit, its function sends first with data in the second sending module 30 in above-described embodiment
The function of unit, data transmitting element again is suitable, is the core function unit of this flow control system, complete
Become and according to token number in token pond, individual queue is carried out secondary transmission, for the first time when network enters heavy duty
Send according to token sum × service bandwidth percentage ratio, then deduct the existing debt of queue, carry out data quantitative
Send.After being sent for the first time, still there is residue token, by snoop queue group the most again, residue is made
Board sends, until token exhausts or all data are complete for " debt is repaid " of each queue and data successively
Portion is sent.Twice transmission terminates backward token management unit and reports this token Expenditure Levels.
Preferably, in order to improve data transmission efficiency, data transmission unit is at locally created index, index point
Send mark and control of queue array two parts for data, identify data existence to be sent, queue respectively
Debt state and queue entries address, only meet the queue required and just can be accessed.This index can be by often
Individual queue is updated after sending every time.
The flow control system based on type of service introduced in conjunction with above-described embodiment, below to based on service class
The flow-control flow process of type is introduced.Fig. 4 is flow based on type of service according to embodiments of the present invention
Control flow chart, as shown in Figure 4, this flow process comprises the following steps (step S402-step S412):
Step S402, receives business datum, carries out type of service adaptive, and carries out queuing message type mark.
That is: judging network state and the type of message of business datum, network state is divided into light-load state and heavy duty
State, type of message is divided into urgent messages and non-emergent message.If network is in light-load state, or
Network is in heavy duty state and is urgent messages, then perform step S404;If network is in heavy duty shape
State and be non-emergent message, then perform step S406.
According to the identification of default service feature value finishing service type, carry out queuing message type mark simultaneously:
If TOS field is not carried out specifically defined by operation system, then revise the TOS field of IP heading;
If TOS does not allow amendment with type of service definition binding, then markup information is added to the choosing of IP header
In item field, peel off when the final jump of transmission.
Step S404, carries out data transmission by data penetration transmission unit, and reports token consumption.Then perform
Step S410.
Step S406, enters queue according to information type mark, carries out congestion control.
Step S408, when sending timeslice and arriving, token pond administrative unit updates token number, and data are sent out
Send unit to complete data to send.
Step S410, after data are sent, adjust current all kinds of parameter, reappraises offered load state,
Decide whether to enable queue scheduling unit.
Step S412, adjustment process terminates.
In the present embodiment, it is necessary first to illustrate to need user by emulation or other modes, analyze specific
In application scenarios, the average discharge of all kinds of business is distributed and the ageing requirement of business self, calculates all kinds of business and accounts for
With the percentage ratio of bandwidth, as the anticipated import parameter of this flow process.
In the above-described embodiments, in step S208, data transmission procedure is the key component of this flow control algorithm,
Data secondary transmission flow figure as shown in Figure 5, this flow process comprises the following steps (step S502-step
S524):
Step S502, is updated token number.
Step S504, traversal index, determine whether each queue has data to be sent, if it has, then perform
Step S506, otherwise, performs step S504, continues traversal index.
Step S506, calculates the transmission token number first of each queue, sends that token number=this presses first
Existing debt according to token number-queue that the service bandwidth occupation proportion of each queue is distributed.
Step S508, it is judged that the token number of transmission first calculated whether > 0, and judge that these data are sent out in advance
Debt after sending whether < falls into debt amount, is then to perform step S510, otherwise, perform step if be
S512。
Step S510, according to sending token number first, carries out data first and sends.
Step S512, updates index.
Step S514, whether poll is complete to check each queue, if it is, perform step S514, as
The most no, then perform step S504.
Step S516, calculates residue token number, it is judged that residue token number whether > 0, if it is, perform
Step S518, if it is not, then perform step S524.
Step S518, again snoop queue, according to queue priority, carry out each queue with residue token number
" debt repay ", and carry out the transmission again of data.
Step S520, updates index.
Step S522, it is judged that residue token whether < 0, and whether data be sent, as long as the two it
The judged result of one is yes, or is and is, then perform step S524, otherwise, perform step S518.
Step S524, this flow process terminates.
Use the data transmission algorithm in above-described embodiment, make all kinds of business obtain and most preferably send quality, simultaneously
The bandwidth availability ratio of wireless channel is reached optimum, in addition also allows for user right during message sends
The transmission quality of specific transactions regulates and controls.But, priority is well defined, it is allowed to sacrifice low preferentially
The resource of level business is to meet the system of high-priority service transmission demand, and the implementation result of the present embodiment is inadequate
Preferable.
As can be seen from the above description, the embodiment of the present invention is according to the pre-determined bandwidth of type of service
Take ratio, data are carried out the mode of secondary transmission, fill on the basis of meeting the minimum transmission demand of business
Divide and utilize channel resource, simultaneously by controlling the business specific queue of entrance, the debt volume of specified queue is set
The modes such as degree can realize resources regulation flexibly.Queue scheduling algorithm is driven by network congestion degree in the design
Dynamic, when network gently loads, message is sent in real time, to reduce system complexity raising message transmission effect
Rate, open queue scheduling and flow-control when network heavy duty, ensure that business is closed with the process expense of system
Reason transmission demand.
Achieve the high efficiency of transmission of network light load hours evidence, during network heavy duty, ensure every class business
On the premise of low-bandwidth transmission ratio, take into account the efficient utilization of bandwidth, a kind of simple mode side is provided simultaneously
Just user flexibility adjusts service transmission quality so that in some application scenarios, business transmission more adapts to user's
Particular demands.Implementation method of the present invention is simple, can be compatible with existing system, and treated message is permissible
Normally it is transmitted in existing system.
Although being example purpose, having been disclosed for the preferred embodiments of the present invention, those skilled in the art will
It is also possible for recognizing various improvement, increasing and replace, therefore, on the scope of the present invention should be not limited to
State embodiment.
Claims (7)
1. a data transmission method for uplink, it is characterised in that described method includes:
Judge the network state of data to be sent, and type of message;
If described network is in light-load state, or described network is in heavy duty state and described message
For urgent messages, then send described data to be sent;
If described network is in heavy duty state and described message is non-emergent message, then according to described pending
Sending the type of service of data, the secondary performing described data to be sent sends operation;
Wherein, according to the type of service of described data to be sent, the secondary performing described data to be sent sends
Operation includes:
According to described type of service, described data to be sent are distributed to different queue;
The service bandwidth occupation proportion of each queue is determined according to described type of service;
Token sum is taken advantage of the service bandwidth occupation proportion of each queue, then deducts the existing debt of each queue,
Obtain the transmission token number first of each queue;Wherein, described existing debt refers to queue previous transmission data
Time the token number that additionally takies;
According to each queue, send token number first, send the data to be sent of each queue first;
After sending described data to be sent first, determine residue token number;According to described type of service and
Described residue token number, determines the transmission token number again of each queue;
According to each queue, again send token number, again send the data to be sent of each queue.
2. the method for claim 1, it is characterised in that judge the network state of data to be sent
Including:
According to predetermined threshold value interval, network congestion degree is judged;Wherein, described predetermined threshold value interval is
Interval range from first threshold to Second Threshold, described first threshold is less than described Second Threshold;
When described network congestion degree is higher than the Second Threshold that described predetermined threshold value is interval, then judge described net
Network is changed into heavy duty state from light-load state;
When described network congestion degree is less than the first threshold that described predetermined threshold value is interval, then judge described net
Network is changed into light-load state from heavy duty state.
3. the method for claim 1, it is characterised in that according to described type of service and described
Residue token number, determines that the token number of transmission again of each queue includes:
The priority of each queue is determined according to described type of service;
According to the described priority of each queue, described residue token number is distributed to each queue, obtain each
The transmission token number again of individual queue.
4. the method for claim 1, it is characterised in that send out first according to each queue
Sending token number, the data to be sent sending each queue first include:
Pre-judge each queue send data to be sent first after debt, if less than presetting amount of falling into debt;
Wherein, described debt is the token number additionally taken after each queue sends data to be sent first;
If it is, send the data to be sent of each queue first.
5. the method for claim 1, it is characterised in that described method also includes:
Set up index;Wherein, described index is used for recording data to be sent, the described existing debt of each queue
Business;
Before obtaining the token number of transmission first of each queue, described method also includes: true according to described index
The existing debt of each queue fixed and described data to be sent.
6. a data sending device, it is characterised in that described device includes:
Judge module, for judging the network state of data to be sent, and type of message;
First sending module, is that described network is in light load for the judged result at described judge module
State, or when described network is in heavy duty state and described message is urgent messages, send described pending
Send data;
Second sending module, is that described network is in heavy duty for the judged result at described judge module
When state and described message are non-emergent message, according to the type of service of described data to be sent, perform described
The secondary of data to be sent sends operation;
Described second sending module includes:
Data allocation unit, for distributing described data to be sent to different queue according to described type of service;
Send token number first and determine unit, for according to described type of service and token sum, determining each
The transmission token number first of individual queue;
Data transmitting element first, for sending token number first according to each queue, sends first
The data to be sent of each queue;
Again send token number and determine unit, for after sending described data to be sent first, determine residue
Token number;According to described type of service and described residue token number, determine the order of transmission again of each queue
Board number;
Data transmitting element again, for again sending token number according to each queue, sends again
The data to be sent of each queue.
7. device as claimed in claim 6, it is characterised in that described judge module includes:
Judging unit, for judging network congestion degree according to predetermined threshold value interval;Wherein, described
Predetermined threshold value interval is the interval range from first threshold to Second Threshold, and described first threshold is less than described the
Two threshold values;
First identifying unit, for second threshold interval higher than described predetermined threshold value at described network congestion degree
During value, it is determined that described network is changed into heavy duty state from light-load state;
Second identifying unit, for first threshold interval less than described predetermined threshold value at described network congestion degree
During value, it is determined that described network is changed into light-load state from heavy duty state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310116734.1A CN103281258B (en) | 2013-04-07 | 2013-04-07 | A kind of data transmission method for uplink and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310116734.1A CN103281258B (en) | 2013-04-07 | 2013-04-07 | A kind of data transmission method for uplink and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103281258A CN103281258A (en) | 2013-09-04 |
CN103281258B true CN103281258B (en) | 2016-08-17 |
Family
ID=49063711
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310116734.1A Active CN103281258B (en) | 2013-04-07 | 2013-04-07 | A kind of data transmission method for uplink and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103281258B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107196877B (en) * | 2016-03-14 | 2021-07-20 | 华为技术有限公司 | Method for controlling network flow and network equipment thereof |
CN105827449B (en) * | 2016-04-01 | 2019-08-30 | 广东省电信规划设计院有限公司 | Service activating method and its system based on PTN network performance |
CN110691022A (en) * | 2019-12-09 | 2020-01-14 | 新誉集团有限公司 | Communication load adjusting method, device and system based on CAN bus |
CN113645147A (en) * | 2021-07-01 | 2021-11-12 | 苏州裕太微电子有限公司 | Token updating system and method of flow shaper |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1440167A (en) * | 2003-03-28 | 2003-09-03 | 北京港湾网络有限公司 | Broadband communication data transmission method |
CN101399756A (en) * | 2007-09-25 | 2009-04-01 | 华为技术有限公司 | Method, system and device for service data transmission in P2P network |
CN101827027A (en) * | 2009-12-25 | 2010-09-08 | 中国科学院声学研究所 | Interlayer coordination-based home network QoS guarantee method |
CN102420773A (en) * | 2012-01-05 | 2012-04-18 | 北京网御星云信息技术有限公司 | Token-bucket-algorithm-based data transmission method and traffic control device |
CN102480471A (en) * | 2010-11-24 | 2012-05-30 | 杭州华三通信技术有限公司 | Method for realizing QoS (quality of service) processing in monitoring RRPP (rapid ring protection protocol) ring and network node |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1152522C (en) * | 2001-12-04 | 2004-06-02 | 上海交通大学 | Serial bus communication system containing Ethernet nodes and real-time nodes |
-
2013
- 2013-04-07 CN CN201310116734.1A patent/CN103281258B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1440167A (en) * | 2003-03-28 | 2003-09-03 | 北京港湾网络有限公司 | Broadband communication data transmission method |
CN101399756A (en) * | 2007-09-25 | 2009-04-01 | 华为技术有限公司 | Method, system and device for service data transmission in P2P network |
CN101827027A (en) * | 2009-12-25 | 2010-09-08 | 中国科学院声学研究所 | Interlayer coordination-based home network QoS guarantee method |
CN102480471A (en) * | 2010-11-24 | 2012-05-30 | 杭州华三通信技术有限公司 | Method for realizing QoS (quality of service) processing in monitoring RRPP (rapid ring protection protocol) ring and network node |
CN102420773A (en) * | 2012-01-05 | 2012-04-18 | 北京网御星云信息技术有限公司 | Token-bucket-algorithm-based data transmission method and traffic control device |
Also Published As
Publication number | Publication date |
---|---|
CN103281258A (en) | 2013-09-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109600262A (en) | Resource self-configuring and self-organization method and device in URLLC transmission network slice | |
CN104717158B (en) | A kind of method and device adjusting bandwidth scheduling strategy | |
CN101796773B (en) | Application data flow management in IP network | |
CN101433032B (en) | Quality guarantee for real-time applications over shared networks | |
CN103841044A (en) | Bandwidth control method based on software-defined networking and oriented to different types of flow | |
CN106793133A (en) | The dispatching method of multi-service QoS is ensured in a kind of electric power wireless communication system | |
CN107787458A (en) | Service quality in wireless backhaul | |
CN103281258B (en) | A kind of data transmission method for uplink and device | |
EP2357764A1 (en) | Traffic shaping scheduling method, traffic shaping scheduling apparatus, and routing device | |
CN106954232A (en) | A kind of resource allocation methods of time delay optimization | |
CN109618375B (en) | UAV ad hoc network time slot scheduling method based on service priority and channel interruption probability | |
CN102647760B (en) | Multi-service-network-based efficient service resource management method | |
CN104009936B (en) | Queue scheduling method based on dynamic weight calculation | |
WO2013128884A1 (en) | Packet forwarding device and packet forwarding method, and computer program | |
CN102711129A (en) | Method and device for determining network planning parameter | |
WO2020249017A1 (en) | Service processing method and device for access network | |
CN102868638A (en) | Method and system for dynamically regulating bandwidth | |
CN103327542B (en) | A kind of QoS support method and device that is applied to MANET network | |
CN105591970A (en) | Traffic control method and device | |
CN100459581C (en) | A method for packet dispatching of variable parameter for real-time mixed service environment | |
CN108260160A (en) | Dispatch the method and system of user | |
CN108055701A (en) | A kind of resource regulating method and base station | |
CN104302008A (en) | Wireless multi-hop network bandwidth allocation method integrating time division and cache proportion | |
Cai et al. | Dynamic QoS mapping and adaptive semi-persistent scheduling in 5G-TSN integrated networks | |
CN103024908A (en) | Method for self-adaptive adjustment on symbol occupation amount of PDCCH (Physical Downlink Control Channel) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |