CN103036804B - The method and system of net control uploading speed - Google Patents

The method and system of net control uploading speed Download PDF

Info

Publication number
CN103036804B
CN103036804B CN201110301706.8A CN201110301706A CN103036804B CN 103036804 B CN103036804 B CN 103036804B CN 201110301706 A CN201110301706 A CN 201110301706A CN 103036804 B CN103036804 B CN 103036804B
Authority
CN
China
Prior art keywords
output request
input output
request bag
stream value
idle stream
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
Application number
CN201110301706.8A
Other languages
Chinese (zh)
Other versions
CN103036804A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201110301706.8A priority Critical patent/CN103036804B/en
Publication of CN103036804A publication Critical patent/CN103036804A/en
Application granted granted Critical
Publication of CN103036804B publication Critical patent/CN103036804B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to a kind of method and system of net control uploading speed.The method comprises the following steps: the input output request bag obtaining process, and described input output request bag is put into queue, and wherein, described process is preset with speed limit; Add up the transmitted traffic value that described process is current, and the idle stream value current according to the transmitted traffic value calculation procedure of described speed limit and statistics; From described queue, extract input output request bag, and send described input output request bag according to described idle stream value.The method and system of above-mentioned net control uploading speed, adopt setting speed limit, add up current transmitted traffic value, calculate current idle stream value, send input output request bag according to this idle stream value, do not need time delay to send, improve the stable of network connection.

Description

The method and system of net control uploading speed
[technical field]
The present invention relates to computer communication field, particularly a kind of method and system of net control uploading speed.
[background technology]
The network that the size of network uploading speed can affect user is experienced, when the certain and cochannel transmission of bandwidth, when a software occupy comparatively macroreticular uploading speed time, network uploading speed and the web download speed of other softwares can be limited.As user use certain P2P software program as service end resource uploading time, the speed of browsing page can be affected.
The method of traditional net control uploading speed is generally the uploading speed of software control self.If control the uploading speed of other software, most method adopting time delay to send.But single time delay transmission is depended on to uploading speed, the long easy initiation disconnecting of time delay, network connects unstable.
[summary of the invention]
Based on this, be necessary to provide a kind of method that can improve the net control uploading speed of network connective stability.
A method for net control uploading speed, comprises the following steps:
The input output request bag of acquisition process, and described input output request bag is put into queue, wherein, described process is preset with speed limit;
Add up the transmitted traffic value that described process is current, and the idle stream value current according to the transmitted traffic value calculation procedure of described speed limit and statistics;
From described queue, extract input output request bag, and send described input output request bag according to described idle stream value.
Preferably, at the input output request bag of described acquisition process, and also comprise before described input output request bag is put into the step of queue: set up the step that transmission drives the filtration drive of interface layer.
Preferably, also step is comprised:
Respectively speed limit is set to each process, to the corresponding queue of each process creation;
The input output request bag of acquisition process, and the step that queue put into by described input output request bag is specially:
Obtain the input output request bag of each process, and input output request bag is put into corresponding queue.
Preferably, obtain the input output request bag of process, and also comprise after described input output request bag is put into the step of queue:
Be that granularity splits into multiple sub-input output request bag with speed limit by described input output request bag;
From described queue, extract input output request bag, and according to the step that described idle flow carries out sending be: from described queue, extract sub-input output request bag, and send described sub-input output request bag according to described idle flow.
Preferably, extract the step of input output request bag from described queue after, also step is comprised:
Obtain the length of described input output request bag, judge whether the length of described input output request bag is greater than described idle stream value, if, then by described input output request bag with idle stream value for granularity splits, and send the input output request bag after described fractionation according to idle stream value, if not, then directly described input output request bag is sent according to idle stream value.
In addition, there is a need to provide a kind of system that can improve the net control uploading speed of network connective stability.
A system for net control uploading speed, comprising:
Acquisition module, for obtaining the input output request bag of process, and described input output request bag is put into queue, wherein, described process is preset with speed limit;
Statistical module, for adding up the current transmitted traffic value of described process, and the idle stream value current according to the transmitted traffic value calculation procedure of described speed limit and statistics;
Sending module, for extracting input output request bag from described queue, and sends described input output request bag according to described idle stream value.
Preferably, also comprise creation module, described creation module drives the filtration drive of interface layer for setting up transmission.
Preferably, also comprise and arrange module, the described module that arranges is for setting speed limit respectively to each process, and described creation module is also for the corresponding queue of each process creation; Input output request bag also for obtaining the input output request bag of each process, and is put into corresponding queue by described acquisition module.
Preferably, also comprise fractionation module, it is that granularity splits into multiple sub-input output request bag with speed limit that described fractionation module is used for described input output request bag; Described sending module also for extracting sub-input output request bag from described queue, and sends described sub-input output request bag according to described idle flow.
Preferably, also comprise judge module and split module, described acquisition module, also for after described sending module extracts input output request bag from described queue, obtains the length of described input output request bag; Described judge module is for judging whether the length of described input output request bag is greater than described idle stream value; Described fractionation module is used for when the length of described input output request bag is greater than described idle stream value, by described input output request bag with idle stream value for granularity splits, described sending module is also for sending the input output request bag after described fractionation according to idle stream value; Described sending module also for when the length of described input output request bag is not more than described idle stream value, directly sends described input output request bag according to idle stream value.
The method and system of above-mentioned net control uploading speed, adopt setting speed limit, add up current transmitted traffic value, calculate current idle stream value, send input output request bag according to this idle stream value, do not need time delay to send, improve the stable of network connection.
[accompanying drawing explanation]
Fig. 1 is the flow chart of the method for net control uploading speed in an embodiment;
Fig. 2 extracts input output request bag in an embodiment from queue, sends the particular flow sheet of input output request bag according to idle stream value;
Fig. 3 is the structural representation of the system of net control uploading speed in an embodiment;
Fig. 4 is the structural representation of the system of net control uploading speed in another embodiment;
Fig. 5 is the structural representation of the system of net control uploading speed in another embodiment.
[embodiment]
In order to make object of the present invention, technical scheme and advantage clearly, be described in detail below in conjunction with specific embodiment and accompanying drawing.
As shown in Figure 1, in one embodiment, a kind of method of net control uploading speed, comprises the following steps:
Step S110, obtain the input output request bag of process, and this input output request bag is put into queue, wherein, this process is preset with speed limit.
Software upload data are run in process mode, and process is set with speed limit.Input output request bag comprises the parameter such as length, content of packet in (I/ORequestPacket is called for short IRP).Input output request bag is put into queue with etc. to be sent.
In one embodiment, before step S110, also step is comprised: set up the filtration drive that transmission drives interface layer.All can drive layer through TDI (TransportDriveInterface, transmission drives interface layer) at the transmitting-receiving bag of Windows system lower network, TDI set up filtration drive and just can give out a contract for a project by net control, namely network uploading speed is controlled.
In one embodiment, before step S110, also comprise step: respectively speed limit is set to each process, to the corresponding queue of each process creation.The speed limit set each process can be identical or different.After setting speed limit, and create corresponding queue, the input output request bag of each process is put into corresponding queue respectively, conveniently respectively the uploading speed of each process is controlled.In addition, the speed limit of setting should consider the actual network bandwidth, and namely speed limit is greater than the network bandwidth, then speed limit does not have much good.
Speed limit is set respectively to each process and after creating corresponding queue, step S110 is specially: the input output request bag obtaining each process, and input output request bag is put into corresponding queue.
In one embodiment, also step is comprised after step silo: be that granularity splits into multiple sub-input output request bag with speed limit by this input output request bag.When the length of input output request bag is greater than speed limit, can be that granularity splits into multiple sub-input output request bag with speed limit.Take speed limit as granularity, namely speed limit is a unit.Input output request bag is divided into the sub-input output request bag of multiple speed limit size.So, input output request bag can be sent in an uniform way.When the length of input output request bag is not more than speed limit, then do not need to split.
Step S120, adds up the transmitted traffic value that this process is current, and the idle stream value current according to the transmitted traffic value calculation procedure of this speed limit and statistics.
Regularly can add up the transmitted traffic value that this process is current.The time of this timing can be 1 second, 5 seconds etc., namely every 1 second, 5 seconds statistics once.The flow value that idle stream value is available after referring to speed limit, if speed limit is 200kb, current transmitted traffic value is 100kb, and current idle stream value is 100kb.
Step S130, extracts input output request bag from this queue, and sends this input output request bag according to this idle stream value.
According to the precedence putting into queue from queue, from queue, extract input output request bag successively, then send according to the idle stream value obtained, upload as uploading speed by idle stream value.
When being that after granularity is divided into multiple sub-input output request bag, step S130 becomes: extract sub-input output request bag from this queue with speed limit by input output request bag, and send this sub-input output request bag according to this idle flow.
In one embodiment, extract input output request bag from queue after, as shown in Figure 2, also step is comprised:
Step S210, obtains the length of this input output request bag.
Step S220, judges whether the length of this input output request bag is greater than idle stream value, if so, then performs step S230, if not, then performs step S240.
Step S230, by this input output request bag with idle stream value for granularity splits, send the input output request bag after this fractionation according to idle stream value.
Length because of input output request bag is greater than idle stream value, once cannot send this input output request bag, and need split, and can idle stream value be that granularity splits, make it once can send to greatest extent.
Step S240, directly sends this input output request bag according to idle stream value.
In other embodiments, after input output request bag being split into multiple sub-input output request bag, sub-input output request bag is extracted from queue, obtain the length of sub-input output request bag, judge whether the length of sub-input output request bag is greater than idle stream value, if, then by sub-input output request bag with idle stream value for granularity splits, send the sub-input output request bag after splitting by idle stream value, if not, then directly send sub-input output request bag by idle stream value.
As shown in Figure 3, in one embodiment, a kind of system of net control uploading speed, comprises acquisition module 310, statistical module 320 and sending module 330.
This input output request bag for obtaining the input output request bag of process, and is put into queue by acquisition module 310, and wherein, this process is preset with speed limit.The parameters such as the length of packet, content are comprised in input output request bag.Input output request bag is put into queue with etc. to be sent.
Statistical module 320 is for adding up the current transmitted traffic value of this process, and the idle stream value current according to the transmitted traffic value calculation procedure of this speed limit and statistics.Regularly can add up the transmitted traffic value that this process is current.The time of this timing can be 1 second, 5 seconds etc., namely every 1 second, 5 seconds statistics once.The flow value that idle stream value is available after referring to speed limit, if speed limit is 200kb, current transmitted traffic value is 100kb, and current idle stream value is 100kb.
Sending module 330 for extracting input output request bag from this queue, and sends this input output request bag according to this idle stream value.Sending module 330 according to the precedence putting into queue, extracts input output request bag successively from queue from queue, then sends according to the idle stream value obtained, uploads by idle stream value as uploading speed.
In another embodiment, as shown in Figure 4, the system of above-mentioned net control uploading speed, except comprising acquisition module 310, statistical module 320 and sending module 330, also comprising creation module 340 and arranging module 350.
Creation module 340 drives the filtration drive of interface layer for setting up transmission.All can drive layer through TDI (TransportDriveInterface, transmission drives interface layer) at the transmitting-receiving bag of Windows system lower network, TDI set up filtration drive and just can give out a contract for a project by net control, namely network uploading speed is controlled.
Module 350 is set for setting speed limit respectively to each process.The speed limit set each process can be identical or different.
Creation module 340 is also for the corresponding queue of each process creation.
Input output request bag also for obtaining the input output request bag of each process, and is put into corresponding queue by acquisition module 310.Conveniently respectively the uploading speed of each process is controlled.In addition, the speed limit of setting should consider the actual network bandwidth, and namely speed limit is greater than the network bandwidth, then speed limit does not have much good.
In another embodiment, as shown in Figure 5, the system of above-mentioned net control uploading speed, except comprising acquisition module 310, statistical module 320, sending module 330, creation module 340 and arranging module 350, also comprises and splits module 360 and judge module 370.Wherein,
Split module 360 for this input output request bag is split into multiple sub-input output request bag in units of speed limit.When the length of input output request bag is greater than speed limit, can be that granularity splits into multiple sub-input output request bag with speed limit.Take speed limit as granularity, namely speed limit is a unit.Input output request bag is divided into the sub-input output request bag of multiple speed limit size.So, input output request bag can be sent in an uniform way.When the length of input output request bag is not more than speed limit, then do not need to split.
Sending module 330 also for extracting sub-input output request bag from this queue, and sends this sub-input output request bag according to idle flow.
Acquisition module 310 also for after sending module 330 extracts input output request bag from this queue, obtains the length of this input output request bag.
Judge module 370 is for judging whether the length of this input output request bag is greater than idle stream value.
Split module 360 for being greater than this idle stream value in the length of this input output request bag time, by this input output request bag with idle stream value for granularity splits; Sending module 330 is also for sending the input output request bag after splitting according to idle stream value.Length because of input output request bag is greater than idle stream value, once cannot send this input output request bag, and need split, and can idle stream value be that granularity splits, make it once can send to greatest extent.
Sending module 330 also for when the length of this input output request bag is not more than idle stream value, directly sends this input output request bag according to idle stream value.
In other embodiments, after input output request bag being split into multiple sub-input output request bag, when sending module 330 extracts sub-input output request bag from queue, acquisition module 310 obtains the length of sub-input output request bag, judge module 370 judges whether the length of sub-input output request bag is greater than idle stream value, if, then split module 360 by sub-input output request bag with idle stream value for granularity splits, sending module 330 sends the sub-input output request bag after splitting by idle stream value, if not, then sending module 330 directly sends sub-input output request bag by idle stream value.
The method and system of above-mentioned net control uploading speed, adopt setting speed limit, add up current transmitted traffic value, calculate current idle stream value, send input output request bag according to this idle stream value, do not need time delay to send, improve the stable of network connection.
In addition, adopt and drive interface layer to set up filtration drive in transmission to realize effective control to network uploading speed; Adopt and respectively speed limit is set to each process, and set up corresponding queue, realize controlling respectively each process uploading speed, and uploading speed can limit and is accurate to byte; Adopting input output request bag is that granularity splits with speed limit, ensures the uniformity sending length.
The above embodiment only have expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.

Claims (8)

1. a method for net control uploading speed, comprises the following steps:
The input output request bag of acquisition process, and described input output request bag is put into queue, wherein, described process is preset with speed limit;
Add up the transmitted traffic value that described process is current, and the idle stream value current according to the transmitted traffic value calculation procedure of described speed limit and statistics;
Input output request bag is extracted from described queue, obtain the length of described input output request bag, judge whether the length of described input output request bag is greater than described idle stream value, if, then by described input output request bag with idle stream value for granularity splits, and send the input output request bag after described fractionation according to idle stream value, if not, then directly send described input output request bag according to idle stream value.
2. the method for net control uploading speed according to claim 1, it is characterized in that, at the input output request bag of described acquisition process, and also comprise before described input output request bag is put into the step of queue: set up the step that transmission drives the filtration drive of interface layer.
3. the method for net control uploading speed according to claim 1 and 2, is characterized in that, also comprise step:
Respectively speed limit is set to each process, to the corresponding queue of each process creation;
The input output request bag of acquisition process, and the step that queue put into by described input output request bag is specially:
Obtain the input output request bag of each process, and input output request bag is put into corresponding queue.
4. the method for net control uploading speed according to claim 1 and 2, is characterized in that, obtains the input output request bag of process, and also comprises after described input output request bag is put into the step of queue:
Be that granularity splits into multiple sub-input output request bag with speed limit by described input output request bag;
Input output request bag is extracted from described queue, obtain the length of described input output request bag, judge whether the length of described input output request bag is greater than described idle stream value, if, then by described input output request bag with idle stream value for granularity splits, and send the input output request bag after described fractionation according to idle stream value, if not, then the direct step sending described input output request bag according to idle stream value comprises:
Sub-input output request bag is extracted from described queue, obtain the length of described sub-input output request bag, judge whether the length of described sub-input output request bag is greater than described idle stream value, if, then by described sub-input output request bag with idle stream value for granularity splits, and send the sub-input output request bag after described fractionation according to idle stream value, if not, then direct according to the described sub-input output request bag of described idle stream value transmission.
5. a system for net control uploading speed, is characterized in that, comprising:
Acquisition module, for obtaining the input output request bag of process, and described input output request bag is put into queue, wherein, described process is preset with speed limit;
Statistical module, for adding up the current transmitted traffic value of described process, and the idle stream value current according to the transmitted traffic value calculation procedure of described speed limit and statistics;
Sending module, for extracting input output request bag from described queue;
Described acquisition module, also for after described sending module extracts input output request bag from described queue, obtains the length of described input output request bag;
Judge module, for judging whether the length of described input output request bag is greater than described idle stream value;
Split module, for when the length of described input output request bag is greater than described idle stream value, by described input output request bag with idle stream value for granularity splits;
Described sending module is also for sending the input output request bag after described fractionation according to idle stream value; Described sending module also for when the length of described input output request bag is not more than described idle stream value, directly sends described input output request bag according to idle stream value.
6. the system of net control uploading speed according to claim 5, is characterized in that, also comprise creation module, and described creation module drives the filtration drive of interface layer for setting up transmission.
7. the system of net control uploading speed according to claim 6, is characterized in that, also comprises and arranges module, and the described module that arranges is for setting speed limit respectively to each process, and described creation module is also for the corresponding queue of each process creation; Input output request bag also for obtaining the input output request bag of each process, and is put into corresponding queue by described acquisition module.
8. the system of the net control uploading speed according to any one of claim 5 to 7, is characterized in that, it is that granularity splits into multiple sub-input output request bag with speed limit that described fractionation module is used for described input output request bag; Described sending module also for extracting sub-input output request bag from described queue; Described judge module is also for judging whether the length of described sub-input output request bag is greater than described idle stream value; Described sending module, also for when the length of described sub-input output request bag is not more than described idle stream value, directly sends described sub-input output request bag according to described idle stream value.
CN201110301706.8A 2011-10-08 2011-10-08 The method and system of net control uploading speed Active CN103036804B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110301706.8A CN103036804B (en) 2011-10-08 2011-10-08 The method and system of net control uploading speed

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110301706.8A CN103036804B (en) 2011-10-08 2011-10-08 The method and system of net control uploading speed

Publications (2)

Publication Number Publication Date
CN103036804A CN103036804A (en) 2013-04-10
CN103036804B true CN103036804B (en) 2016-02-03

Family

ID=48023307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110301706.8A Active CN103036804B (en) 2011-10-08 2011-10-08 The method and system of net control uploading speed

Country Status (1)

Country Link
CN (1) CN103036804B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11032367B2 (en) 2018-07-16 2021-06-08 Microsoft Technology Licensing, Llc Long upload time detection and management
CN110784386B (en) * 2019-09-27 2021-12-07 深圳市火乐科技发展有限公司 Firmware updating method and related equipment
CN117255058B (en) * 2023-11-17 2024-02-23 深圳万物安全科技有限公司 Network speed limiting method, terminal equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002097476A2 (en) * 2000-11-17 2002-12-05 Alloptic, Inc. Point-to-multipoint passive optical network that utilizes variable-length packets and variable-length upstream tine slots
CN101198049A (en) * 2007-12-29 2008-06-11 北京中企开源信息技术有限公司 Video data processing method and device
CN101510893A (en) * 2008-12-25 2009-08-19 北京大学 Method, device and transmission system for sending, transferring and receiving message document
CN101534245A (en) * 2009-04-09 2009-09-16 国电南瑞科技股份有限公司 Transmission control method for data processing of real-time monitoring system
CN101800621A (en) * 2010-01-12 2010-08-11 腾讯科技(深圳)有限公司 Method and device for limiting uploading speed

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8160063B2 (en) * 2008-06-09 2012-04-17 Microsoft Corporation Data center interconnect and traffic engineering

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002097476A2 (en) * 2000-11-17 2002-12-05 Alloptic, Inc. Point-to-multipoint passive optical network that utilizes variable-length packets and variable-length upstream tine slots
CN101198049A (en) * 2007-12-29 2008-06-11 北京中企开源信息技术有限公司 Video data processing method and device
CN101510893A (en) * 2008-12-25 2009-08-19 北京大学 Method, device and transmission system for sending, transferring and receiving message document
CN101534245A (en) * 2009-04-09 2009-09-16 国电南瑞科技股份有限公司 Transmission control method for data processing of real-time monitoring system
CN101800621A (en) * 2010-01-12 2010-08-11 腾讯科技(深圳)有限公司 Method and device for limiting uploading speed

Also Published As

Publication number Publication date
CN103036804A (en) 2013-04-10

Similar Documents

Publication Publication Date Title
EP2487883B1 (en) Browser adjusting method and mobile terminal
CN101039309B (en) Link sharing service apparatus and communication method thereof
CN105554102A (en) Elastic expansion method based on container cluster and application system thereof
CN104836821A (en) Method, device and equipment for network acceleration based on router
CN105873022A (en) Downloading method and device for mobile terminal
CN104579761A (en) Automatic nosql cluster configuration system and method based on cloud computing
CN106792835B (en) Control method and system for wireless equipment sharing bandwidth
EP2918138B1 (en) Method and apparatus for providing web service in wireless communication system
CN103036804B (en) The method and system of net control uploading speed
CN103024081A (en) Peer-to-peer communication terminal dispatching method adaptable to time-effect-guaranteed communication systems
CN103430489A (en) File download method, device, and system in content delivery network
CN104092760A (en) System and method for cloud terminal multicast redirection
CN104408048A (en) Method and device for synchronization of buffered cloud storage data
CN103312824A (en) Peer-to-peer (P2P) network intelligent speed governing method, device and system
CN103746938A (en) Method and device for transmitting data packet
CN104426758A (en) Transmission control system, device and method
CN107872471A (en) Remote desktop image command processing method and system
CN103856558B (en) A kind of data processing method and device for terminal applies
CN101102333A (en) Network download system and its method
CN104753813B (en) The method that DMA transmits message
CN102685155B (en) The method that content transmits, content delivering server and content transmit proxy server
CN114630391B (en) Communication method, device and system under network co-establishment sharing scene and sharing base station
CN106850273A (en) Server and its streaming media service provide method
CN104184602A (en) Incremental data synchronization method, network element management system and network management system
US9143458B2 (en) Network device, method for controlling the network device, and network system

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