CN109257245A - Flow monitoring, the method and apparatus for uploading control - Google Patents

Flow monitoring, the method and apparatus for uploading control Download PDF

Info

Publication number
CN109257245A
CN109257245A CN201710576801.6A CN201710576801A CN109257245A CN 109257245 A CN109257245 A CN 109257245A CN 201710576801 A CN201710576801 A CN 201710576801A CN 109257245 A CN109257245 A CN 109257245A
Authority
CN
China
Prior art keywords
upload
resource
period
overall
amount
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710576801.6A
Other languages
Chinese (zh)
Other versions
CN109257245B (en
Inventor
石杰
张士波
杨敬宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201710576801.6A priority Critical patent/CN109257245B/en
Publication of CN109257245A publication Critical patent/CN109257245A/en
Application granted granted Critical
Publication of CN109257245B publication Critical patent/CN109257245B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control

Abstract

The purpose of the application is to provide a kind of equipment, which includes: flow detector, for detecting the overall uplink traffic in first time window and the user uplink flow in previous cycle, wherein the first time window contains at least one the period;Processing unit, for determining the overall upload amount in each period according to the overall uplink traffic, user's upload amount of previous cycle is determined according to the user uplink flow, and according to the overall upload amount in each period and user's upload amount of previous cycle, obtains the available upload amount of current period;Data sending device, for uploading data.

Description

Flow monitoring, the method and apparatus for uploading control
Technical field
This application involves information technology field more particularly to flow monitorings, the method and apparatus for uploading control.
Background technique
In P2P (Peer-to-peer, peer-to-peer network) resource sharing scene of network system, each node is according to providing Role in the sharing of source, can be divided into supply side and consumption terminal.Supply side is exactly to upload resource during resource sharing Node, and consumption terminal refers to during resource sharing, downloads the node of resource.
During upload and downloading, when bandwidth resources deficiency, it will the case where bandwidth resources contention occur.Bandwidth Resource can be divided into downlink bandwidth and upstream bandwidth, wherein the control of downlink bandwidth can be using evacuation principle, in bandwidth allocation Shi Youxian meets the needs of user's normal operating, the i.e. demand of demand evacuation user's normal operating of resource downloading.
And uplink bandwidth resource directly determines the height of supply side node serve ability, evacuation is excessive, will affect node Between resource sharing.It in the prior art, is that being averaged for all supply sides is counted based on big data for the control for uploading flow Upstream bandwidth, on this basis multiplied by a coefficient, and using the value as the upper limit value of supply side upstream bandwidth.Due to the upper limit Value is to count to obtain based on big data, ineffective for the speed limit of the user of high bandwidth and low bandwidth.For the use of high bandwidth Family, after the upper limit value speed limit, upload ability can be limited, and the user of low bandwidth, the upper limit value may be than itself multipotencys The highest upstream bandwidth of offer is also high, does not have speed limit effect, can will cause influence to the online experience of user.
Apply for content
The scheme that the purpose of the application is to provide flow monitoring, uploads control, to solve the prior art to high band The ineffective problem of wide and low bandwidth user's speed limit.
To achieve the above object, this application provides a kind of equipment, which includes:
Flow detector, for detecting the overall uplink traffic in first time window and the user in previous cycle Row flow, wherein the first time window contains at least one the period;
Processing unit, for determining the overall upload amount in each period according to the overall uplink traffic, according to the use Family uplink traffic determines user's upload amount of previous cycle, and the use of overall upload amount and previous cycle according to each period Upload amount in family obtains the available upload amount of current period;
Data sending device, for uploading data.
In one embodiment, the data sending device is also used in first time window to goal-selling equipment Upload data;
The flow detector detects the overall uplink traffic in first time window for the data according to upload;
The processing unit, for determining each period according to the overall uplink traffic in the first time window Overall upload amount.
In one embodiment, the processing unit, for according to the overall uplink traffic in the first time window, Determine uplink bandwidth value;And according to the uplink bandwidth value and the cycle duration in each period, obtain the total of each period Body upload amount.
In one embodiment, the processing unit, for according to the totality for uploading data in multiple second time windows Uplink traffic determines multiple upstream bandwidth candidate values, wherein second time window is the sub- window of the first time window Mouthful;And the upstream bandwidth candidate value is ranked up, the upstream bandwidth candidate value of predetermined order position is determined as described Uplink bandwidth value.
In one embodiment, the flow detector, for detecting overall uplink traffic and money in previous cycle Source uplink traffic;And it is determined as the difference of the overall uplink traffic and resource uplink traffic on the user in previous cycle Row flow.
In one embodiment, the processing unit is also used to determining the overall uplink traffic, resource uplink traffic When with user uplink flow, based on default processing rule, reduce the overall uplink traffic and resource uplink traffic value and/or Amplify the value of the user uplink flow.
In one embodiment, the processing unit, for overall upload amount, the use of previous cycle according to each period Family upload amount and the reserved upload amount in each period, obtain the available upload amount of current period.
In one embodiment, the processing unit is also used to obtain current period when receiving resource upload request Remaining upload amount;And the data volume of resource corresponding to the resource upload request and the residue of current period upload Amount, wherein the residue upload amount is the resource upstream that has generated in the available upload amount and current period of current period The difference of amount;
The data sending device is also used to upload the data about the resource based on comparative result.
In one embodiment, the data sending device, for the resource corresponding to the resource upload request When data volume is less than or equal to the remaining upload amount, the data about the resource are uploaded in current period;And described When the data volume of resource corresponding to resource upload request is less than or equal to the remaining upload amount, it will be less than or equal in the resource The part of the residue upload amount uploads in current period, and the rest part of the resource is uploaded in subsequent cycle.
Another aspect based on the application additionally provides a kind of method, this method comprises:
The overall uplink traffic in first time window is detected, and each period is determined according to the overall uplink traffic Overall upload amount, wherein the first time window contains at least one the period;
The user uplink flow in previous cycle is detected, and determines the user of previous cycle according to the user uplink flow Upload amount;
According to user's upload amount of the overall upload amount in each period and previous cycle, the available upload of current period is obtained Amount.
In one embodiment, the overall uplink traffic in first time window is detected, and according to the overall upstream Amount determines the overall upload amount in each period, comprising:
Data packet is uploaded to goal-selling equipment in first time window;
According to the data of upload, the overall uplink traffic in first time window is detected;
According to the overall uplink traffic in the first time window, the overall upload amount in each period is determined.
In one embodiment, according to the overall uplink traffic in the first time window, the total of each period is determined Body upload amount, comprising:
According to the overall uplink traffic in the first time window, uplink bandwidth value is determined;
According to the uplink bandwidth value and the cycle duration in each period, the overall upload amount in each period is obtained.
In one embodiment, it according to the overall uplink traffic in the first time window, determines uplink bandwidth value, wraps It includes:
According to the overall uplink traffic for uploading data in multiple second time windows, multiple upstream bandwidth candidate values are determined, Wherein, second time window is the child window of the first time window;
The upstream bandwidth candidate value is ranked up, the upstream bandwidth candidate value of predetermined order position is determined as described Uplink bandwidth value.
In one embodiment, the user uplink flow in previous cycle is detected, comprising:
Detect the overall uplink traffic and resource uplink traffic in previous cycle;
By the difference of the overall uplink traffic and resource uplink traffic, the user uplink flow being determined as in previous cycle.
In one embodiment, this method further include:
It is regular based on default processing when determining the overall uplink traffic, resource uplink traffic and user uplink flow, Reduce the value of the overall uplink traffic and resource uplink traffic and/or the value of the amplification user uplink flow.
In one embodiment, according to user's upload amount of the overall upload amount in each period and previous cycle, acquisition is worked as The available upload amount in preceding period, comprising:
According to the overall upload amount, user's upload amount of previous cycle and the reserved upload in each period in each period Amount, obtains the available upload amount of current period.
Present invention also provides another method, this method further include:
When receiving resource upload request, the remaining upload amount of current period is obtained, wherein the residue upload amount is to work as The difference of the resource uplink traffic generated in the available upload amount and current period in preceding period, the current period can be used Biography amount is obtained based on method above-mentioned;
Compare the data volume of resource corresponding to the resource upload request and the remaining upload amount of current period, based on than Relatively result uploads the data about the resource.
In one embodiment, resource corresponding to the resource upload request is sent based on comparative result, comprising:
When the data volume of the resource corresponding to the resource upload request is less than or equal to the remaining upload amount, current The data about the resource are uploaded in period;
It, will be described when the data volume of the resource corresponding to the resource upload request is less than or equal to the remaining upload amount The part for being less than or equal to the remaining upload amount in resource uploads in current period, by the rest part of the resource subsequent It is uploaded in period.
In addition, the equipment includes processor and is stored with the one of machine readable instructions present invention also provides a kind of equipment A or multiple machine readable medias, when the processor executes the machine readable instructions, so that equipment execution is aforementioned Described in any item methods.
Compared with prior art, in scheme provided by the present application, the overall uplink traffic in first time window is first detected, And the overall upload amount in each period is determined according to the overall uplink traffic, then detect the user uplink stream in previous cycle It measures, and determines user's upload amount of previous cycle according to the user uplink flow, further according to the overall upload amount in each period With user's upload amount of previous cycle, the available upload amount of current period is obtained.By way of detection flows, so that getting The overall upload amount in each period, user's upload amount be consistent with the practical operation situation of supply end node, opened in each period When the beginning, the available upload amount of current period is calculated, is that user is normal as a result, while guaranteeing supply side node serve ability Certain bandwidth is reserved in online, and avoiding, which influences user, normally surfs the Internet.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of schematic diagram of a scenario of resource sharing;
Fig. 2 is the schematic diagram of a scenario of another resource sharing;
Fig. 3 is a kind of schematic diagram of equipment provided by the embodiments of the present application;
Fig. 4 is a kind of schematic diagram of method provided by the embodiments of the present application;
Fig. 5 is the schematic diagram of another method provided by the embodiments of the present application;
Fig. 6 schematically shows the exemplary system that can be used for implementing each embodiment described herein;
The same or similar appended drawing reference represents the same or similar component in attached drawing.
Specific embodiment
The application is described in further detail with reference to the accompanying drawing.
In following specific descriptions, a large amount of specific details are provided, to provide the thorough understanding to one embodiment.But It is, it will be by those of ordinary skill in the art it is understood that one embodiment can be practiced without these specific details. In other instances, well-known method, process, component, unit and/or circuit do not specifically describe in order to avoid obscuring discussion.
Herein, using such as be " processing ", " calculating ", " operation ", " determination ", " foundation ", " analysis ", " inspection ", Or the discussion of the term of fellow may refer to the (more of computer, computing platform, computing system or other electronic computing devices It is a) operation and/or (multiple) processing, manipulation and/or the physics that is rendered as in the register and/or memory of computer of transformation The data of (for example, electronics) amount are at the register and/or memory or other information storage medium for being similarly rendered as computer Other data of interior physical quantity, the register and/or storage period or other information storage medium of the computer can store finger It enables to execute operation and/or processing.
The instructions such as reference " one embodiment ", " embodiment ", " illustrative embodiment ", " various embodiments " describe in this way (multiple) embodiment may include special feature, structure or characteristic, each embodiment of but not centainly includes special Feature, structure or characteristic.Further, the reuse of word " in one embodiment " is not necessarily referring to identical embodiment.
As used herein, unless otherwise prescribed, it is retouched using ordinal adjectives " first ", " second ", " third " etc. General object is stated only to indicate to refer to the different examples of similar object and be not intended to imply that the object described in this way must It must be given sequence, which is time, space, sequence or in any other manner.
Some embodiments can be used in conjunction with various equipment and system, for example, personal computer (PC), desktop computer, Mobile computer, laptop computer, notebook computer, tablet computer, Smartphone device, server computer, hand Hold computer, handheld device, personal digital assistant (PDA) equipment, handheld PDA device, mixing apparatus, mobile unit, movement or Portable device, consumer device, non-moving or non-portable device, wireless communications station, wireless telecom equipment, wireless access point (AP), wired or wireless router, wired or wireless modem, video equipment, audio frequency apparatus, audio-video (A/V) are set Standby, wired or wireless network, the equipment with one or more built-in antennas and/or external antenna, digital video broadcasting (DVB) Equipment or system, multistandard wireless electric equipment or system, wired or wireless handheld device, for example, smart phone, wireless application association Discuss (WAP) equipment and fellow.
In the following detailed description, with reference to the attached drawing of a part for constituting this paper, wherein identical number refers in the text Identical part, and embodiment described in it is that subject of the present invention is achievable.It should appreciate that and other implementations can be used Example, and can realize the change for not departing from the structure or logic of the scope of the invention.Therefore, following detailed description is not limited to The meaning, and the range of embodiment is limited to the equivalent substitute of attached claims and they.
Various operations are to understand that the theme claimed is described as multiple discrete movements or operated in turn in a manner of most helpful. However, the sequence of specification is not construed as implying that these operations are necessary associated order.Particularly, these operations are not pressed It is executed according to the sequence of presentation.It is described herein to grasp the different sequence of the embodiment being described to execute.Different subsidiary operations It can be performed and/or omit in subsidiary embodiment the operation of description.
In addition, the phrase " A and/or B " in the application description means (A), (B) or (A and B);Phrase " A, B and/or C " Mean (A), (B), (C), (A and B), (A and C), (B and C) or (A, B and C).
Fig. 1 shows a kind of schematic diagram of a scenario of resource sharing, and during the secondary resource sharing, equipment 101 is to equipment The supply end node that related data of 102 transmissions about resource A, i.e. equipment 101 are resource sharing, and equipment 102 is resource point The consumption end node enjoyed.For equipment 101, overall uplink traffic in the process of running includes two parts flow, i.e. resource Uplink traffic and user uplink flow.Wherein, resource uplink traffic, that is, equipment 101 is to send flow caused by resource A, is used Family uplink traffic is i.e. in addition to resource uplink traffic, and (such as user browses net for the function of surfing the Net of user's normal use equipment 101 Page carries out instant messaging etc.) caused by flow be required to occupy certain uplink band during generating these flows It is wide.
Fig. 2 shows the schematic diagram of a scenario of another resource sharing, during the secondary resource sharing, equipment 201 via Equipment 203 sends the related data about resource A to equipment 202, and equipment 201 is the supply end node of resource sharing, equipment 202 It is the consumption end node of resource sharing, equipment 203 is the intermediate node in data transmission procedure, such as provides routing, data turn The equipment etc. of the functions such as hair.
For equipment 201, overall uplink traffic in the process of running includes resource uplink traffic and user uplink Flow, wherein resource uplink traffic, that is, equipment 201 is to send flow caused by resource A, and user uplink flow removes in resource Except row flow, other functions (such as user browses webpage, progress instant messaging etc.) of user's normal use equipment 201 are produced Raw flow.For equipment 203, refer to equipment 203 and all by equipment in its resource uplink traffic in the process of running 203 upload equipment (such as equipment 204,205 etc.) generated flow when uploading respective resources of data as intermediate node, And user uplink flow refers to that equipment 203 and all equipment that equipment 203 is uploaded data as intermediate node are realizing use Generated flow when family is normally surfed the Internet.
Fig. 3 shows the equipment that a kind of embodiment of the application provides and can open in each period for realizing flow monitoring The available upload amount of current period is obtained when the beginning.The equipment may include flow detector 310,320 sum number of processing unit According to sending device 330.Wherein, flow detector 310 is used to detect overall uplink traffic in first time window and previous User uplink flow in period.Processing unit 320 is used to determine each period generally according to the overall uplink traffic Biography amount determines user's upload amount of previous cycle according to the user uplink flow, and is uploaded according to the totality in each period User's upload amount of amount and previous cycle, obtains the available upload amount of current period;Data sending device 330 is for uploading number According to.
Wherein, first time window refers to the time window that equipment detects uplink traffic, first time window Length and specific period can be set according to actual needs, and length at least needs to include a cycle, so as to The overall upload amount in each period is calculated according to the overall uplink traffic in the first time window.In actual scene, it is The accuracy for guaranteeing the overall upload amount in each period, can choose and set first in low ebb period of the user using network Time window, and the period that first time window includes is more, and the overall upload amount in each period calculated accordingly is also more quasi- Really.For example, the period can be 1s etc., and first time window can be set as 3 points to 4 points of morning of a hour, first The overall uplink traffic detected in time window is 7200MB, then the overall upload amount that can calculate each period is 7200/3600=2MB.
The overall upload amount in each period refers in each period, the upper limit value for the data volume that equipment can upload, user Upload amount refers to the practical data volume generated when user normally surfs the Internet in the period, and can be referred in the period with upload amount can be used for Pass the data volume for the resource shared.Each of in one embodiment of the application, by way of detection flows, so that get Overall upload amount, user's upload amount in period are consistent with the practical operation situation of supply end node, at the beginning of each cycle, root The available upload amount of current period: overall upload of available upload amount=each period of current period is calculated according to following formula Amount-previous cycle user's upload amount.As a result, while guaranteeing supply side node serve ability, normally surf the Internet in advance for user Certain bandwidth is stayed, avoiding, which influences user, normally surfs the Internet.
For example, the overall upload amount that detection obtains each period is 2MB, user's upload amount in a upper period is 0.5MB, is examined Consider user when user normally surfs the Internet and upload the continuity of flow in a short time, i.e., user's upload amount in latter period has very much can Can be similar with user's upload amount of previous cycle, therefore the available upload amount that can calculate current period is 2MB-0.5MB= 1.5MB, it is possible thereby to while guaranteeing supply side node serve ability, avoid influencing to a certain extent user it is normal on Net.
In actual scene, when user normally surfs the Internet user upload flow exist in a short time it is successional may be compared with Height, but a possibility that user's upload amount in latter period is apparently higher than previous cycle similarly exists, at this time previous embodiment Mode will will affect user and normally surf the Internet.To solve this problem, processing unit 320 is in the overall upload amount according to each period With user's upload amount of previous cycle, when obtaining the available upload amount of current period, reserved upload can be further introduced into Amount, i.e., according to the overall upload amount in each period, user's upload amount of previous cycle and the reserved upload amount in each period, obtain Take the available upload amount of current period.
In one embodiment, the reserved upload amount in each period can be calculated based on following formula: reserved upload amount= The overall upload amount in each period × reserved coefficient.Such as reserved coefficient is set as 0.2, detection obtains each period generally Biography amount is 2MB, and user's upload amount in a upper period is 0.5MB, then can calculate the available upload amount of current period are as follows: 2MB- 0.5MB-2MB × 0.2=1.1MB.Even if being increased suddenly in user's upload amount in latter period compared to previous cycle as a result, 0.4MB will not influence user and normally surf the Internet.
In one embodiment, the principle for obtaining the overall upload amount in each period may is that the money for obtaining equipment local Source continues to send data to goal-selling equipment (such as preassigned server) in a certain period of time, so that uplink band Wide load reaches maximum, and the overall upload amount in each period is then calculated according to the flowmeter generated when sending these data. In the treatment process of overall upload amount for obtaining each period, the data sending device of equipment is in first time window to pre- If target device uploads data packet;Flow detector detects the overall uplink in first time window according to the data of upload Flow;Processing unit determines the overall upload amount in each period according to the overall uplink traffic in the first time window.
Due to it is required that the load of upstream bandwidth reaches maximum, being easy to influence during detecting overall upload amount It normally surfs the Internet to user.Therefore, overall upload amount can be detected by choosing the low ebb period that user normally surfs the Internet, such as often Certain time period etc. between it 3 to four point of morning is normally surfed the Internet it is possible thereby to avoid influencing user.Implement at one In example, the low ebb period that user is normally surfed the Internet using equipment can be determined by way of through big data analysis, The period is determined as first time window.
Processing unit determines that the overall of each period uploads according to the overall uplink traffic in the first time window When amount, uplink bandwidth value can be determined, wherein uplink band first according to the overall uplink traffic in the first time window Width values refer to the overall upload amount of unit time in first time window, such as 2MB/s.Then, according to uplink bandwidth value and The cycle duration in each period obtains the overall upload amount in each period, and cycle duration can be according to reality in one embodiment The demand of border scene is set, such as be set as 1s, 2s etc..If cycle duration is 1s, each period can be calculated Overall upload amount is 2MB/s × 1s=2MB.
In one embodiment, processing unit is when determining uplink bandwidth value, first according in multiple second time windows The overall uplink traffic for uploading data, determines multiple upstream bandwidth candidate values, wherein second time window is described first The child window of time window, such as N time second that first time window is chosen between daily 3 to four point of morning, and when second Between window can be each second in the N seconds time, as a result, record first time window in multiple upstream bandwidth candidate values. After getting multiple upstream bandwidth candidate values, the upstream bandwidth candidate value can be ranked up, by predetermined order position The upstream bandwidth candidate value set is determined as the uplink bandwidth value.Wherein, predetermined order position can be set based on experience value It is fixed, such as the predeterminated position can be set as preceding 5% position of sequence in the present embodiment, specific implementation can be upstream bandwidth Candidate value filters out the data of front 5%, highest one is taken from remaining upstream bandwidth candidate value from high toward low sequence, As uplink bandwidth value, it is possible thereby to reduce influence of the fluctuation of detection data to the uplink bandwidth value finally obtained, essence is improved True property.
Flow detector before detection user uplink flow in a period when, can directly detect in previous cycle Overall uplink traffic and resource uplink traffic be determined as then by the difference of the overall uplink traffic and resource uplink traffic User uplink flow in previous cycle.The overall upstream in user uplink flow=previous cycle i.e. in previous cycle Resource uplink traffic in amount-previous cycle.
In actual scene, different resource sharing modes may based on different agreements, and by equipment not Same program, application, component etc. realize data-transformation facility, such as data point are realized in P2P network (peer-to-peer computer network) When enjoying, supply end node can realize that resource data uploads by P2P component (such as P2P accelerator) etc., therefore pass through P2P component It is available to arrive resource uplink traffic.Accordingly for other resource sharing modes, can also by corresponding program, answer Resource uplink traffic is got with, component etc., for calculating user uplink flow.And overall uplink traffic can pass through detection The entrance of equipment access network generated all uplink traffics in equipment running process determine.
In order to be further reduced the case where tying up bandwidth required for user normally surfs the Internet because of resource upload, processing unit It can also be when determining the overall uplink traffic, resource uplink traffic and user uplink flow, based on default processing rule, contracting The value of the value and/or the amplification user uplink flow of the small overall uplink traffic and resource uplink traffic.It is i.e. total in statistics When the value of body uplink traffic and resource uplink traffic, so that final statistical value is lower than actual value, and count in user uplink stream When the value of amount, so that final statistical value is higher than actual value, it is possible thereby to reduce the overall uplink traffic of detection and resource upstream The error bring of amount influences, the preferential bandwidth demand for guaranteeing user and normally surfing the Internet.
In one embodiment, the implementation of preset rules can be to overall uplink traffic, resource uplink traffic with And user uplink flow carries out blocking processing, such as with 64KB (can adjust according to the actual situation) is uplink traffic Unit.The processing that truncates is carried out for the part less than 64KB in the value of statistics for entire group uplink traffic and resource uplink traffic.Example If the actual value of overall uplink traffic is 1299KB, then the statistical value of finally obtained overall uplink traffic are as follows: 64KB × 20= 1280KB is not counted in extra 19KB final statistical value.Conversely, in counting user uplink traffic, for deficiency The part of 64KB can count as 64KB.For example, the actual value of user uplink flow is 1299KB, then finally obtained user The statistical value of uplink traffic are as follows: 64KB × 21=1344KB is included in final statistical value extra 19KB with 64KB.
In addition, the implementation of preset rules is also possible to overall uplink traffic, resource uplink traffic and user uplink The actual value of flow, multiplied by a preset coefficient, as final statistical value, such as overall uplink traffic and resource uplink The coefficient of flow is 0.95, and the coefficient of user uplink flow is 1.05.Here, it should be understood by those skilled in the art that above-mentioned pre- If the implementation of rule is only for example, other implementations of preset rules that are existing or being likely to occur from now on are for example applicable It in the application, should also be included within the application protection scope, and be incorporated herein by reference.
In one embodiment, equipment shown in Fig. 3 can be also used for carrying out upload control, i.e., receives in resource every time When passing request, the upload of respective resources is controlled, to avoid the demand that user normally surfs the Internet is influenced.Wherein, processing unit 320 can obtain the remaining upload amount of current period when receiving resource upload request, which is current period The difference of the resource uplink traffic generated in upload amount and current period can be used.The resource uplink generated in current period Flow is based in current period processed resource upload request generation, for example, first resource upload request has been processed, It is 0.4MB that the resource of consumption, which uploads flow, receives a resource upload request again at this time and needs to handle, if current period is available Upload amount is 1.5MB, then the remaining upload amount that can calculate current period is 1.5MB-0.4MB=1.1MB.And for each The resource upload request received for the first time in period, it is current since the resource uplink traffic generated in current period is 0 The remaining upload amount in period is equal to the available upload amount of current period.
After determining the remaining upload amount of current period, processing unit 320 can the resource upload request institute The data volume of corresponding resource and the remaining upload amount of current period, to obtain comparison result.330 base of data sending device The data about the resource are uploaded in comparison result.
In one embodiment, the comparison result is including at least two kinds: resource corresponding to the resource upload request Data volume be less than or equal to the data volume of resource corresponding to the remaining upload amount and the resource upload request and be greater than institute State remaining upload amount.
For example, the data volume of resource corresponding to this resource upload request is 0.9MB, and the remaining of current period uploads Amount is 1.1MB, then belongs to the previous case.The data volume of the resource corresponding to resource upload request is less than or equal to the residue When upload amount, data sending device uploads the data about the resource in current period.
If the data volume of resource corresponding to this resource upload request is 1.9MB, the resource upload request institute is right The data volume for the resource answered is less than or equal to the remaining upload amount, and the remaining upload amount of current period is inadequate in dealing with this resource Upload request, at this point, data sending device will be less than or equal to the part of the remaining upload amount in current period in the resource Interior upload uploads the rest part of the resource in subsequent cycle.I.e. for the resource of the 1.9MB size, due to current The remaining upload amount in period is 1.1MB, and the data no more than 1.1MB can be uploaded in current period, is not uploaded at this Rest part can be uploaded in subsequent cycle, wherein subsequent cycle can be one or more period hereafter.
Based on the same inventive concept, embodiments herein additionally provides corresponding method, and the corresponding equipment of this method is Equipment provided in previous embodiment, and its principle solved the problems, such as is similar to these equipment.
Fig. 4 shows the method that a kind of embodiment of the application provides, and this method, can be each for realizing flow monitoring The available upload amount of current period, including following treatment process are obtained when period starts:
Box 401, by the overall uplink traffic in flow detector or other devices detection first time window, and by Processing unit or other devices determine total upload amount in each period according to the overall uplink traffic.
Box 402, by the user uplink flow in flow detector or other devices detection previous cycle, and by handling Device or other devices determine user's upload amount of previous cycle according to the user uplink flow.
Box 403, by processing unit or other devices according in total upload amount in each period and the user of previous cycle Biography amount obtains the available upload amount of current period.
First time window refers to the time window that equipment detects uplink traffic, the length of first time window and The specific period can be set according to actual needs, and length is at least needed comprising a cycle, should so as to basis Overall uplink traffic in first time window calculates the overall upload amount in each period.It is every to guarantee in actual scene The accuracy of the overall upload amount in a period can choose and set first time window in low ebb period of the user using network Mouthful, and the period that first time window includes is more, and the overall upload amount in each period calculated accordingly is also more accurate.Example Such as, the period can be 1s etc., and first time window can be set as 3 points to 4 points of morning of a hour, first time window The overall uplink traffic detected in mouthful is 7200MB, then the overall upload amount that can calculate each period is 7200/3600 =2MB.
Wherein, the overall upload amount in each period referred in each period, the upper limit value for the data volume that equipment can upload, User's upload amount refers to the practical data volume generated when user normally surfs the Internet in the period, and can be referred in the period with upload amount can use In the data volume for uploading the resource shared.In one embodiment of the application, by way of detection flows, so that get Overall upload amount, user's upload amount in each period are consistent with the practical operation situation of supply end node, start in each period When, the available upload amount of current period: the totality of available upload amount=each period of current period is calculated according to the following formula Upload amount-previous cycle user's upload amount.It is on user is normal as a result, while guaranteeing supply side node serve ability Net reserves certain bandwidth, and avoiding, which influences user, normally surfs the Internet.
For example, the overall upload amount that detection obtains each period is 2MB, user's upload amount in a upper period is 0.5MB, is examined Consider user when user normally surfs the Internet and upload the continuity of flow in a short time, i.e., user's upload amount in latter period has very much can Can be similar with user's upload amount of previous cycle, therefore the available upload amount that can calculate current period is 2MB-0.5MB= 1.5MB, it is possible thereby to while guaranteeing supply side node serve ability, avoid influencing to a certain extent user it is normal on Net.
In actual scene, when user normally surfs the Internet user upload flow exist in a short time it is successional may be compared with Height, but a possibility that user's upload amount in latter period is apparently higher than previous cycle similarly exists, at this time previous embodiment Mode will will affect user and normally surf the Internet.To solve this problem, in box 403, processing unit or other devices are according to every The overall upload amount in a period and user's upload amount of previous cycle can be into one when obtaining the available upload amount of current period Step introduces reserved reserved upload amount, i.e., according to the overall upload amount in each period, user's upload amount of previous cycle and each The reserved upload amount in period obtains the available upload amount of current period.
In one embodiment, the reserved upload amount in each period can be calculated based on following formula: reserved upload amount= The overall upload amount in each period × reserved coefficient.Such as reserved coefficient is set as 0.2, detection obtains each period generally Biography amount is 2MB, and user's upload amount in a upper period is 0.5MB, then can calculate the available upload amount of current period are as follows: 2MB- 0.5MB-2MB × 0.2=1.1MB.Even if being increased suddenly in user's upload amount in latter period compared to previous cycle as a result, 0.4MB will not influence user and normally surf the Internet.
In one embodiment, the principle for obtaining the overall upload amount in each period may is that the money for obtaining equipment local Source continues to send data to goal-selling equipment (such as preassigned server) in a certain period of time, so that uplink band Wide load reaches maximum, and the overall upload amount in each period is then calculated according to the flowmeter generated when sending these data. In the treatment process of overall upload amount for obtaining each period, the data sending device of equipment is in first time window to pre- If target device uploads data packet;Flow detector detects the overall uplink in first time window according to the data of upload Flow;Processing unit determines the overall upload amount in each period according to the overall uplink traffic in the first time window.
Due to it is required that the load of upstream bandwidth reaches maximum, being easy to influence during detecting overall upload amount It normally surfs the Internet to user.Therefore, overall upload amount can be detected by choosing the low ebb period that user normally surfs the Internet, such as often Certain time period etc. between it 3 to four point of morning is normally surfed the Internet it is possible thereby to avoid influencing user.Implement at one In example, the low ebb period that user is normally surfed the Internet using equipment can be determined by way of through big data analysis, The period is determined as first time window.
Processing unit determines that the overall of each period uploads according to the overall uplink traffic in the first time window When amount, uplink bandwidth value can be determined, wherein uplink band first according to the overall uplink traffic in the first time window Width values refer to the overall upload amount of unit time in first time window, such as 2MB/s.Then, according to uplink bandwidth value and The cycle duration in each period obtains the overall upload amount in each period, and cycle duration can be according to reality in one embodiment The demand of border scene is set, such as be set as 1s, 2s etc..If cycle duration is 1s, each period can be calculated Overall upload amount is 2MB/s × 1s=2MB.
In one embodiment, when determining uplink bandwidth value, first according to uploading data in multiple second time windows Overall uplink traffic, determine multiple upstream bandwidth candidate values, wherein second time window be the first time window Child window, such as N time second that first time window is chosen between daily 3 to four point of morning, and the second time window can To be each second in the N seconds time, multiple upstream bandwidth candidate values in first time window are recorded as a result,.It is getting After multiple upstream bandwidth candidate values, the upstream bandwidth candidate value can be ranked up, by the uplink of predetermined order position Bandwidth candidate value is determined as the uplink bandwidth value.Wherein, predetermined order position can be set based on experience value, such as this In embodiment the predeterminated position can be set as sequence preceding 5% position, specific implementation can be by upstream bandwidth candidate value from High past low sequence, filters out the data of front 5%, highest one is taken from remaining upstream bandwidth candidate value, as uplink Bandwidth value improves accuracy it is possible thereby to reduce influence of the fluctuation of detection data to the uplink bandwidth value finally obtained.
Before detection when user uplink flow in a period, the overall upstream in previous cycle can be directly detected Amount and resource uplink traffic are determined as in previous cycle then by the difference of the overall uplink traffic and resource uplink traffic User uplink flow.In overall uplink traffic-previous cycle in user uplink flow=previous cycle i.e. in previous cycle Resource uplink traffic.
In actual scene, different resource sharing modes may based on different agreements, and by equipment not Same program, application, component etc. realize data-transformation facility, such as data point are realized in P2P network (peer-to-peer computer network) When enjoying, supply end node can realize that resource data uploads by P2P component (such as P2P accelerator) etc., therefore pass through P2P component It is available to arrive resource uplink traffic.Accordingly for other resource sharing modes, can also by corresponding program, answer Resource uplink traffic is got with, component etc., for calculating user uplink flow.And overall uplink traffic can pass through detection The entrance of equipment access network generated all uplink traffics in equipment running process determine.
In order to be further reduced the case where tying up bandwidth required for user normally surfs the Internet because of resource upload, the application one In the method that kind embodiment provides, the overall uplink traffic, resource upstream are being determined by processing unit or other devices Amount and when user uplink flow can reduce the overall uplink traffic and resource uplink traffic based on default processing rule It is worth and/or amplifies the value of the user uplink flow.I.e. in the value of statistics for entire group uplink traffic and resource uplink traffic, so that Final statistical value is lower than actual value, and counts in the value of user uplink flow, so that final statistical value is higher than actual value, Influenced it is possible thereby to reduce and detect the error bring of overall uplink traffic and resource uplink traffic, it is preferential guarantee that user is normal on The bandwidth demand of net.
In one embodiment, the implementation of preset rules can be to overall uplink traffic, resource uplink traffic with And user uplink flow carries out blocking processing, such as with 64KB (can adjust according to the actual situation) is uplink traffic Unit.The processing that truncates is carried out for the part less than 64KB in the value of statistics for entire group uplink traffic and resource uplink traffic.Example If the actual value of overall uplink traffic is 1299KB, then the statistical value of finally obtained overall uplink traffic are as follows: 64KB × 20= 1280KB is not counted in extra 19KB final statistical value.Conversely, in counting user uplink traffic, for deficiency The part of 64KB can count as 64KB.For example, the actual value of user uplink flow is 1299KB, then finally obtained user The statistical value of uplink traffic are as follows: 64KB × 21=1344KB is included in final statistical value extra 19KB with 64KB.
In addition, the implementation of preset rules is also possible to overall uplink traffic, resource uplink traffic and user uplink The actual value of flow, multiplied by a preset coefficient, as final statistical value, such as overall uplink traffic and resource uplink The coefficient of flow is 0.95, and the coefficient of user uplink flow is 1.05.Here, it should be understood by those skilled in the art that above-mentioned pre- If the implementation of rule is only for example, other implementations of preset rules that are existing or being likely to occur from now on are for example applicable It in the application, should also be included within the application protection scope, and be incorporated herein by reference.
The method that the application one embodiment provides can be also used for carrying out upload control, i.e., is receiving resource upload every time When request, the upload of respective resources is controlled, to avoid the demand that user normally surfs the Internet is influenced.The treatment process of this method As shown in Figure 5, comprising:
Box 501 obtains the residue of current period by processing unit or other devices when receiving resource upload request Upload amount.The residue upload amount be in the available upload amount and current period of current period the resource uplink traffic that has generated it Difference, wherein the mode for obtaining the remaining upload amount of current period can be based on any one in previous embodiment for realizing stream The method of amount monitoring is realized.The resource uplink traffic generated in current period is based in current period processed resource Upload request generates, for example, having processed first resource upload request, it is 0.4MB that the resource of consumption, which uploads flow, at this time again It receives a resource upload request to need to handle, if the available upload amount of current period is 1.5MB, current week can be calculated The remaining upload amount of phase is 1.5MB-0.4MB=1.1MB.And the resource upload request for being received for the first time in each period, Since the resource uplink traffic generated in current period is 0, the remaining upload amount of current period is equal to current period It can be measured with upload.
Box 502, the data volume of the resource as corresponding to processing unit or other devices upload request and The remaining upload amount of current period, to obtain comparison result.
Box 503 is uploaded the data about the resource by data sending device or other devices based on comparative result.
In one embodiment, the comparison result is including at least two kinds: resource corresponding to the resource upload request Data volume be less than or equal to the data volume of resource corresponding to the remaining upload amount and the resource upload request and be greater than institute State remaining upload amount.
For example, the data volume of resource corresponding to this resource upload request is 0.9MB, and the remaining of current period uploads Amount is 1.1MB, then belongs to the previous case.The data volume of the resource corresponding to resource upload request is less than or equal to the residue When upload amount, data sending device or other devices upload the data about the resource in current period.
If the data volume of resource corresponding to this resource upload request is 1.9MB, the resource upload request institute is right The data volume for the resource answered is less than or equal to the remaining upload amount, and the remaining upload amount of current period is inadequate in dealing with this resource Upload request, at this point, data sending device or other devices will be less than or equal to the part of the remaining upload amount in the resource It is uploaded in current period, the rest part of the resource is uploaded in subsequent cycle.I.e. for the money of the 1.9MB size Source can upload the data no more than 1.1MB in current period, not exist since the remaining upload amount of current period is 1.1MB This rest part uploaded can be uploaded in subsequent cycle, wherein subsequent cycle can be hereafter one or Multiple periods.
The present embodiment can be implemented as the system for carrying out desired configuration using any suitable hardware and/or software.Fig. 6 Schematically show the exemplary system 600 that can be used for realizing each embodiment described in the embodiment of the present application.For One embodiment, Fig. 6 show exemplary system 600, which has one or more processors 605, is coupled to (one Or multiple) system control module 610 of at least one of processor 605, the system that is coupled to system control module 610 deposit It reservoir 615, nonvolatile memory (the NVM)/storage equipment 620 for being coupled to system control module 610 and is coupled to One or more communication interfaces 625 of system control module 610.
In some embodiments, system 600 can be as equipment described herein.In some embodiments, system 600 may include with instruction one or more machine readable medias (for example, system storage or NVM/ storage equipment 620) with And it is coupled with the one or more machine readable media and is configured as executing instruction to realize module thereby executing the application reality Apply the one or more processors (for example, (one or more) processor 605) of method described in example.
For one embodiment, system control module 610 may include any suitable interface controller, with to (one or It is multiple) at least one of processor 605 and/or any suitable equipment or component that communicate with system control module 610 mentions For any suitable interface.
System control module 610 may include Memory Controller module 630, to provide interface to system storage 615.It deposits Memory controller module 630 can be hardware module, software module and/or firmware module.
System storage 615 can be used for for example, load of system 600 and storing data and/or instruction.For a reality Example is applied, system storage 615 may include any suitable volatile memory, for example, DRAM appropriate.In some embodiments In, system storage 615 may include four Synchronous Dynamic Random Access Memory of Double Data Rate type (DDR4SDRAM).
For one embodiment, system control module 610 may include one or more input/output (I/O) controller, with Equipment 620 is stored to NVM/ and (one or more) communication interface 625 provides interface.
For example, NVM/ storage equipment 620 can be used for storing data and/or instruction.NVM/ storage equipment 620 may include appointing It anticipates nonvolatile memory appropriate (for example, flash memory) and/or to may include that any suitable (one or more) is non-volatile deposit Equipment is stored up (for example, one or more hard disk drives (HDD), one or more CD (CD) drivers and/or one or more Digital versatile disc (DVD) driver).
NVM/ storage equipment 620 may include a part for the equipment being physically mounted on as system 600 Storage resource or its can by the equipment access without a part as the equipment.For example, NVM/ storage equipment 620 can It is accessed by network via (one or more) communication interface 625.
(one or more) communication interface 625 can be provided for system 600 interface with by one or more networks and/or with Other any equipment communications appropriate.System 600 can be according to any mark in one or more wireless network standards and/or agreement Quasi- and/or agreement is carried out wireless communication with the one or more components of wireless network.For example, (one or more) communication interface 625 can couple with the transceiver module 140 inquired into above in relation to Fig. 1.
For one embodiment, at least one of (one or more) processor 605 can be with system control module 610 The logic of one or more controllers (for example, Memory Controller module 630) is packaged together.For one embodiment, (one It is a or multiple) at least one of processor 605 can encapsulate with the logic of one or more controllers of system control module 610 Together to form system in package (SiP).For one embodiment, at least one of (one or more) processor 605 It can be integrated on same mold with the logic of one or more controllers of system control module 610.For one embodiment, At least one of (one or more) processor 605 can be with the logic of one or more controllers of system control module 610 It is integrated on same mold to form system on chip (SoC).
In various embodiments, system 600 can be, but not limited to be: server, work station, desk-top calculating equipment or movement Calculate equipment (for example, lap-top computing devices, handheld computing device, tablet computer, net book etc.), router, wireless access Point (AP) etc..In various embodiments, system 600 can have more or fewer components and/or different frameworks.For example, In some embodiments, system 600 includes one or more video cameras, keyboard, (including touch screen is aobvious for liquid crystal display (LCD) screen Show device), nonvolatile memory port, mutiple antennas, graphic chips, specific integrated circuit (ASIC) and loudspeaker etc..
The embodiment of the present application provides method and apparatus, and example 1 may include a kind of equipment, which includes: flow detection Device, for detecting the overall uplink traffic in first time window and the user uplink flow in previous cycle;Processing unit, For determining the overall upload amount in each period according to the overall uplink traffic, determined according to the user uplink flow previous User's upload amount in period, and according to the overall upload amount in each period and user's upload amount of previous cycle, obtain current The available upload amount in period;Data sending device, for uploading data.
Example 2 may include the equipment of example 1, wherein the data sending device, be also used in first time window to Goal-selling equipment uploads data;The flow detector detects in first time window for the data according to upload Overall uplink traffic;The processing unit, for determining each week according to the overall uplink traffic in the first time window The overall upload amount of phase.
Example 3 may include the equipment of example 1 or 2, wherein the processing unit, for according to the first time window Interior overall uplink traffic, determines uplink bandwidth value;And according to the uplink bandwidth value and the cycle duration in each period, Obtain the overall upload amount in each period.
Example 4 may include any one equipment of example 1-3, wherein the processing unit, for according to multiple second times The overall uplink traffic that data are uploaded in window, determines multiple upstream bandwidth candidate values, wherein second time window is institute State the child window of first time window;And the upstream bandwidth candidate value is ranked up, by the uplink of predetermined order position Bandwidth candidate value is determined as the uplink bandwidth value.
Example 5 may include any one equipment of example 1-4, flow detector, for detecting the totality in previous cycle Uplink traffic and resource uplink traffic;And by the difference of the overall uplink traffic and resource uplink traffic, it is determined as the last week User uplink flow in phase.
Example 6 may include any one equipment of example 1-5, and the processing unit is also used to determining the overall uplink When flow, resource uplink traffic and user uplink flow, based on default processing rule, the overall uplink traffic and resource are reduced The value of uplink traffic and/or the value of the amplification user uplink flow.
Example 7 may include any one equipment of example 1-6, the processing unit, for according to each period generally Biography amount, user's upload amount of previous cycle and the reserved upload amount in each period, obtain the available upload amount of current period.
Example 8 may include any one equipment of example 1-7, wherein the processing unit, for receive resource upload ask When asking, the remaining upload amount of current period is obtained;And the data volume of resource corresponding to the resource upload request and The remaining upload amount of current period, wherein it is described residue upload amount be current period available upload amount and current period in The difference of resource uplink traffic through generating;The data sending device, for being uploaded based on comparative result about the resource Data.
Example 9 may include the equipment of example 8, the data sending device, for corresponding to the resource upload request The data volume of resource when being less than or equal to the remaining upload amount, the data about the resource are uploaded in current period;With And the data volume of the resource corresponding to the resource upload request is when being less than or equal to the remaining upload amount, it will be in the resource Part less than or equal to the remaining upload amount uploads in current period, by the rest part of the resource in subsequent cycle It uploads.
Example 10 may include a kind of method, this method comprises: the overall uplink traffic in detection first time window, and root The overall upload amount in each period is determined according to the overall uplink traffic;Detect the user uplink flow in previous cycle, and root User's upload amount of previous cycle is determined according to the user uplink flow;According to the overall upload amount and previous cycle in each period User's upload amount, obtain the available upload amount of current period.
Example 11 may include the method for example 10, wherein the overall uplink traffic in detection first time window, and according to The totality uplink traffic determines the overall upload amount in each period, comprising:
Data packet is uploaded to goal-selling method in first time window;
According to the data of upload, the overall uplink traffic in first time window is detected;
According to the overall uplink traffic in the first time window, the overall upload amount in each period is determined.
Example 12 may include the method for example 10 or 11, wherein according to the overall upstream in the first time window Amount, determines the overall upload amount in each period, comprising:
According to the overall uplink traffic in the first time window, uplink bandwidth value is determined;
According to the uplink bandwidth value and the cycle duration in each period, the overall upload amount in each period is obtained.
Example 13 may include any one method of example 10-12, wherein according in the first time window generally Row flow, determines uplink bandwidth value, comprising:
According to the overall uplink traffic for uploading data in multiple second time windows, multiple upstream bandwidth candidate values are determined, Wherein, second time window is the child window of the first time window;
The upstream bandwidth candidate value is ranked up, the upstream bandwidth candidate value of predetermined order position is determined as described Uplink bandwidth value.
Example 14 may include any one method of example 10-13, wherein the user uplink flow in detection previous cycle, Include:
Detect the overall uplink traffic and resource uplink traffic in previous cycle;
By the difference of the overall uplink traffic and resource uplink traffic, the user uplink flow being determined as in previous cycle.
Example 15 may include any one method of example 10-14, wherein this method further include:
It is regular based on default processing when determining the overall uplink traffic, resource uplink traffic and user uplink flow, Reduce the value of the overall uplink traffic and resource uplink traffic and/or the value of the amplification user uplink flow.
Example 16 may include any one method of example 10-14, wherein according to the overall upload amount in each period and previous User's upload amount in period obtains the available upload amount of current period, comprising:
According to the overall upload amount, user's upload amount of previous cycle and the reserved upload in each period in each period Amount, obtains the available upload amount of current period.
Example 17 may include a kind of method, wherein this method further include:
When receiving resource upload request, the remaining upload amount of current period is obtained, wherein the residue upload amount is to work as The difference of the resource uplink traffic generated in the available upload amount and current period in preceding period, the current period can be used Biography amount is based on any one of example 10-16 method and obtains;
Compare the data volume of resource corresponding to the resource upload request and the remaining upload amount of current period, based on than Relatively result uploads the data about the resource.
Example 18 may include the method for example 17, wherein be sent corresponding to the resource upload request based on comparative result Resource, comprising:
When the data volume of the resource corresponding to the resource upload request is less than or equal to the remaining upload amount, current The data about the resource are uploaded in period;
It, will be described when the data volume of the resource corresponding to the resource upload request is less than or equal to the remaining upload amount The part for being less than or equal to the remaining upload amount in resource uploads in current period, by the rest part of the resource subsequent It is uploaded in period.
Example 19 may include a kind of equipment, wherein the equipment includes processor and is stored with one of machine readable instructions Or multiple machine readable medias, when the processor executes the machine readable instructions, so that the equipment executes example 10- Any one of 16 methods.
Example 20 may include a kind of equipment, wherein the equipment includes processor and is stored with one of machine readable instructions Or multiple machine readable medias, when the processor executes the machine readable instructions, so that the equipment executes example 17 Or 18 method.
It should be noted that the application can be carried out in the assembly of software and/or software and hardware, for example, can adopt With specific integrated circuit (ASIC), general purpose computer or any other realized similar to hardware device.In one embodiment In, the software program of the application can be executed by processor to realize above step or function.Similarly, the software of the application Program (including relevant data structure) can be stored in computer readable recording medium, for example, RAM memory, magnetic or CD-ROM driver or floppy disc and similar devices.In addition, hardware can be used to realize in some steps or function of the application, for example, As the circuit cooperated with processor thereby executing each step or function.
In addition, a part of the application can be applied to computer program product, such as computer program instructions, when its quilt When computer executes, by the operation of the computer, it can call or provide according to the present processes and/or technical solution. And the program instruction of the present processes is called, it is possibly stored in fixed or moveable recording medium, and/or pass through Broadcast or the data flow in other signal-bearing mediums and transmitted, and/or be stored according to program instruction run calculating In the working storage of machine equipment.
It is obvious to a person skilled in the art that the application is not limited to the details of above-mentioned exemplary embodiment, Er Qie In the case where without departing substantially from spirit herein or essential characteristic, the application can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and scope of the present application is by appended power Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims Variation is included in the application.Any reference signs in the claims should not be construed as limiting the involved claims.This Outside, it is clear that one word of " comprising " does not exclude other units or steps, and odd number is not excluded for plural number.That states in device claim is multiple Unit or device can also be implemented through software or hardware by a unit or device.

Claims (20)

1. a kind of equipment, wherein the equipment includes:
Flow detector, for detecting the overall uplink traffic in first time window and the user uplink stream in previous cycle Amount, wherein the first time window contains at least one the period;
Processing unit, for determining the overall upload amount in each period according to the overall uplink traffic, according on the user Row flow determines user's upload amount of previous cycle, and according in the overall upload amount in each period and the user of previous cycle Biography amount obtains the available upload amount of current period;
Data sending device, for uploading data.
2. equipment according to claim 1, wherein the data sending device, be also used in first time window to Goal-selling equipment uploads data;
The flow detector detects the overall uplink traffic in first time window for the data according to upload;
The processing unit, for determining the totality in each period according to the overall uplink traffic in the first time window Upload amount.
3. equipment according to claim 2, wherein the processing unit, for according in the first time window Overall uplink traffic, determines uplink bandwidth value;And it according to the uplink bandwidth value and the cycle duration in each period, obtains The overall upload amount in each period.
4. equipment according to claim 3, wherein the processing unit, for according in multiple second time windows The overall uplink traffic for passing data, determines multiple upstream bandwidth candidate values, wherein when second time window is described first Between window child window;And the upstream bandwidth candidate value is ranked up, the upstream bandwidth of predetermined order position is candidate Value is determined as the uplink bandwidth value.
5. equipment according to claim 1, wherein the flow detector, for detecting the totality in previous cycle Uplink traffic and resource uplink traffic;And by the difference of the overall uplink traffic and resource uplink traffic, it is determined as the last week User uplink flow in phase.
6. equipment according to claim 5, wherein the processing unit, be also used to determine the overall uplink traffic, When resource uplink traffic and user uplink flow, based on default processing rule, the overall uplink traffic and resource uplink are reduced The value of flow and/or the value of the amplification user uplink flow.
7. equipment according to claim 1, wherein the processing unit, for according to the overall upload amount in each period, User's upload amount of previous cycle and the reserved upload amount in each period, obtain the available upload amount of current period.
8. equipment according to any one of claim 1 to 7, wherein the processing unit is also used on receiving resource When passing request, the remaining upload amount of current period is obtained;And the data of resource corresponding to the resource upload request The remaining upload amount of amount and current period, wherein the residue upload amount is the available upload amount and current period of current period The difference of the resource uplink traffic inside generated;
The data sending device is also used to upload the data about the resource based on comparative result.
9. equipment according to claim 8, wherein the data sending device, in the resource upload request institute When the data volume of corresponding resource is less than or equal to the remaining upload amount, the number about the resource is uploaded in current period According to;And the data volume of the resource corresponding to the resource upload request is when being less than or equal to the remaining upload amount, it will be described The part for being less than or equal to the remaining upload amount in resource uploads in current period, by the rest part of the resource subsequent It is uploaded in period.
10. a kind of method, wherein this method comprises:
The overall uplink traffic in first time window is detected, and determines the totality in each period according to the overall uplink traffic Upload amount, wherein the first time window contains at least one the period;
The user uplink flow in previous cycle is detected, and determines that the user of previous cycle uploads according to the user uplink flow Amount;
According to user's upload amount of the overall upload amount in each period and previous cycle, the available upload amount of current period is obtained.
11. according to the method described in claim 10, wherein, the overall uplink traffic in first time window is detected, and according to The totality uplink traffic determines the overall upload amount in each period, comprising:
Data packet is uploaded to goal-selling equipment in first time window;
According to the data of upload, the overall uplink traffic in first time window is detected;
According to the overall uplink traffic in the first time window, the overall upload amount in each period is determined.
12. according to the method for claim 11, wherein according to the overall uplink traffic in the first time window, really The overall upload amount in fixed each period, comprising:
According to the overall uplink traffic in the first time window, uplink bandwidth value is determined;
According to the uplink bandwidth value and the cycle duration in each period, the overall upload amount in each period is obtained.
13. according to the method for claim 12, wherein according to the overall uplink traffic in the first time window, really Determine uplink bandwidth value, comprising:
According to the overall uplink traffic for uploading data in multiple second time windows, multiple upstream bandwidth candidate values are determined, wherein Second time window is the child window of the first time window;
The upstream bandwidth candidate value is ranked up, the upstream bandwidth candidate value of predetermined order position is determined as the uplink Bandwidth value.
14. according to the method described in claim 10, wherein, detecting the user uplink flow in previous cycle, comprising:
Detect the overall uplink traffic and resource uplink traffic in previous cycle;
By the difference of the overall uplink traffic and resource uplink traffic, the user uplink flow being determined as in previous cycle.
15. according to the method for claim 14, wherein this method further include:
When determining the overall uplink traffic, resource uplink traffic and user uplink flow, based on default processing rule, reduce The value of the value and/or the amplification user uplink flow of the totality uplink traffic and resource uplink traffic.
16. according to the method described in claim 10, wherein, according to the user of overall the upload amount and previous cycle in each period Upload amount obtains the available upload amount of current period, comprising:
According to the overall upload amount in each period, user's upload amount of previous cycle and the reserved upload amount in each period, obtain Take the available upload amount of current period.
17. a kind of method, wherein this method comprises:
When receiving resource upload request, the remaining upload amount of current period is obtained, wherein the residue upload amount is current week The difference of the resource uplink traffic generated in the available upload amount and current period of phase, the available upload amount of the current period It is obtained based on method described in any one of claim 10 to 16;
Compare the data volume of resource corresponding to the resource upload request and the remaining upload amount of current period, is tied based on comparing Fruit uploads the data about the resource.
18. method described in any one of 7 according to claim 1, wherein send the resource upload request based on comparative result Corresponding resource, comprising:
When the data volume of the resource corresponding to the resource upload request is less than or equal to the remaining upload amount, in current period Data of the interior upload about the resource;
When the data volume of the resource corresponding to the resource upload request is less than or equal to the remaining upload amount, by the resource In be less than or equal to the part of the remaining upload amount and uploaded in current period, by the rest part of the resource in subsequent cycle Interior upload.
19. a kind of equipment, wherein the equipment include processor and be stored with machine readable instructions one or more it is machine readable Medium, when the processor executes the machine readable instructions, so that the equipment is executed as appointed in claim 10 to 16 Method described in one.
20. a kind of equipment, wherein the equipment include processor and be stored with machine readable instructions one or more it is machine readable Medium, when the processor executes the machine readable instructions, so that the equipment is executed as described in claim 17 or 18 Method.
CN201710576801.6A 2017-07-14 2017-07-14 Method and equipment for flow monitoring and uploading control Active CN109257245B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710576801.6A CN109257245B (en) 2017-07-14 2017-07-14 Method and equipment for flow monitoring and uploading control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710576801.6A CN109257245B (en) 2017-07-14 2017-07-14 Method and equipment for flow monitoring and uploading control

Publications (2)

Publication Number Publication Date
CN109257245A true CN109257245A (en) 2019-01-22
CN109257245B CN109257245B (en) 2022-04-29

Family

ID=65051199

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710576801.6A Active CN109257245B (en) 2017-07-14 2017-07-14 Method and equipment for flow monitoring and uploading control

Country Status (1)

Country Link
CN (1) CN109257245B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166376A (en) * 2019-06-06 2019-08-23 北京百度网讯科技有限公司 Flow control methods and device, system, server, computer-readable medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005094750A (en) * 2003-08-20 2005-04-07 Samsung Electronics Co Ltd Method and device for scheduling allocation for transmission of uplink packet in mobile communication system
CN101247291A (en) * 2008-03-10 2008-08-20 建汉科技股份有限公司 Method for detecting network band width of network appliance
US20110296064A1 (en) * 2010-06-01 2011-12-01 Qualcomm Incorporated Uplink data throttling by buffer status report (bsr) scaling
CN103347270A (en) * 2013-07-09 2013-10-09 华为技术有限公司 Strategy control method, device and system
CN104753805A (en) * 2013-12-31 2015-07-01 腾讯科技(深圳)有限公司 Distributed flow control method, server and system
CN108462647A (en) * 2018-01-31 2018-08-28 青岛海信宽带多媒体技术有限公司 bandwidth adjusting method and gateway

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005094750A (en) * 2003-08-20 2005-04-07 Samsung Electronics Co Ltd Method and device for scheduling allocation for transmission of uplink packet in mobile communication system
CN101247291A (en) * 2008-03-10 2008-08-20 建汉科技股份有限公司 Method for detecting network band width of network appliance
US20110296064A1 (en) * 2010-06-01 2011-12-01 Qualcomm Incorporated Uplink data throttling by buffer status report (bsr) scaling
CN103347270A (en) * 2013-07-09 2013-10-09 华为技术有限公司 Strategy control method, device and system
CN104753805A (en) * 2013-12-31 2015-07-01 腾讯科技(深圳)有限公司 Distributed flow control method, server and system
CN108462647A (en) * 2018-01-31 2018-08-28 青岛海信宽带多媒体技术有限公司 bandwidth adjusting method and gateway

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166376A (en) * 2019-06-06 2019-08-23 北京百度网讯科技有限公司 Flow control methods and device, system, server, computer-readable medium

Also Published As

Publication number Publication date
CN109257245B (en) 2022-04-29

Similar Documents

Publication Publication Date Title
CN111046433B (en) Model training method based on federal learning
CN105024933B (en) The control method and device of request packet transmission frequency
US20150134846A1 (en) Method and apparatus for media segment request retry control
CN106161627B (en) Method and device for pushed information
CN110875897B (en) Data transmission method, device, server and storage medium
CN107920108A (en) A kind of method for pushing of media resource, client and server
CN113556813B (en) Uplink data transmission method, device and system
US9160963B2 (en) Terminal and method for generating live image
CN111050387B (en) Base station dormancy method and device based on energy efficiency estimation, electronic equipment and medium
US10157588B2 (en) Systems and methods for image optimization
TWI602431B (en) Method and device for transmitting information
CN107959659B (en) Streaming media playing control method and device and electronic equipment
CN109257245A (en) Flow monitoring, the method and apparatus for uploading control
CN113747245A (en) Multimedia resource uploading method and device, electronic equipment and readable storage medium
US11405442B2 (en) Dynamic rotation of streaming protocols
WO2018000622A1 (en) Wms system and erp system synchronization method and system
CN111798263A (en) Transaction trend prediction method and device
CN104348748B (en) A kind of method and system of limitation network speed
WO2021068247A8 (en) Neural network scheduling method and apparatus, computer device, and readable storage medium
CN113591999B (en) End-edge cloud federal learning model training system and method
Orive et al. Passive network state monitoring for dynamic resource management in industry 4.0 fog architectures
CN112181577A (en) Display control system, method and device
CN114629826A (en) Network maximum bandwidth estimation method and device, electronic equipment and storage medium
CN102956208A (en) Method, device and system for counting image frame rates of terminal
CN105323293B (en) Data transmission service switching system and method

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
GR01 Patent grant
GR01 Patent grant