CN101505244B - Bandwidth measurement method and apparatus - Google Patents

Bandwidth measurement method and apparatus Download PDF

Info

Publication number
CN101505244B
CN101505244B CN2009100807240A CN200910080724A CN101505244B CN 101505244 B CN101505244 B CN 101505244B CN 2009100807240 A CN2009100807240 A CN 2009100807240A CN 200910080724 A CN200910080724 A CN 200910080724A CN 101505244 B CN101505244 B CN 101505244B
Authority
CN
China
Prior art keywords
value
bandwidth
interface flow
flow speed
line bandwidth
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.)
Expired - Fee Related
Application number
CN2009100807240A
Other languages
Chinese (zh)
Other versions
CN101505244A (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.)
Beijing Star Net Ruijie Networks Co Ltd
Original Assignee
Beijing Star Net Ruijie Networks 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 Beijing Star Net Ruijie Networks Co Ltd filed Critical Beijing Star Net Ruijie Networks Co Ltd
Priority to CN2009100807240A priority Critical patent/CN101505244B/en
Publication of CN101505244A publication Critical patent/CN101505244A/en
Application granted granted Critical
Publication of CN101505244B publication Critical patent/CN101505244B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method and a device for measuring bandwidth, wherein the method comprises the following steps: step S1, initializing a line bandwidth value as a bandwidth default value; step S2, periodically detecting the interface flow rate and recording the peak value of the interface flow rate, wherein the peak value of the interface flow rate is the maximum value of the interface flow rate detected from the initialization to the current moment; and step S3, adjusting the line bandwidth value according to the bandwidth default value, the current line bandwidth value and the peak value of the interface flow rate. The method records the maximum value of the interface flow rate detected from the initialization to the current moment, namely the peak value of the interface flow rate, and adjusts the line bandwidth value according to the bandwidth default value, the current line bandwidth value and the peak value of the interface flow rate, thus the adjustment of the line bandwidth does not independently depend on the peak value of the interface flow rate so as to avoid the problem that the actual bandwidth of a line cannot be characterized correctly because the bandwidth control is turned on so that the interface flow is suppressed.

Description

A kind of bandwidth measurement method and apparatus
Technical field
The present invention relates to a kind of bandwidth measurement method and apparatus, particularly relate to the method and apparatus of network line Bandwidth Dynamic measuring technique, belong to data communication technology field.
Background technology
The network bandwidth is meant the maximum amount of data that can transmit in the unit interval, it is a unit with bits per second (bits per second, be called for short bps) usually, i.e. the per second bit number that can transmit.
Broadband communication network is to be provided by Internet Service Provider's (Internet Service Provider is called for short ISP), and is interconnected to allow each user terminal and local area network (LAN) to communicate.In existing broadband communication network, when user terminal or enterprise, Internet bar's local area network (LAN) etc. enter the Internet, need and buy bandwidth and access way to the ISP application, described access way generally comprises: Asymmetrical Digital Subscriber Line (Asymmetric Digital Subscriber Line is called for short ADSL), optical fiber exclusively enjoy access or the like.Personal user's terminal generally inserts by ADSL, and enterprise, Internet bar's local area network (LAN) generally adopt optical fiber to exclusively enjoy access way.
Fast development along with network technology, various network applications emerge in an endless stream, and the network bandwidth is constantly proposed more, higher demand, particularly point-to-point (Peer to Peer, that abbreviation P2P) uses enriches constantly, makes network bandwidth resources more and more seem deficient.
For limited bandwidth resources reasonably being controlled and being distributed, guarantee the fairness of allocated bandwidth and the normal operation that guarantees key business, the network equipment now (as: router, switch etc.) has all carried network bandwidth controlled function, these bandwidth controlled function often need to know in advance the line bandwidth of local area network (LAN) and the Internet wired, and then just can carry out rational allocated bandwidth.If the line bandwidth of precognition is inaccurate, then just may influence the reasonability of allocated bandwidth.Suppose that the circuit actual bandwidth can only reach 6 MBPSs (Mega bits per second, be called for short Mbps), but the bandwidth controlled function is but distributed by the 10Mbps bandwidth of precognition, possible some time etching system distributes the bandwidth of 7Mbps to high-priority service, and distribute the 3Mbps bandwidth to low priority traffice, but because circuit actual bandwidth 6Mbps only, the 7Mbps bandwidth of high-priority service can't guarantee at all.Suppose that the circuit actual bandwidth has 10Mbps, but the bandwidth controlled function but distribute by the 8Mbps of precognition, the bandwidth that so just has a 2Mbps can not get distributing all the time, influences bandwidth availability ratio.That is to say,, allocated bandwidth is fallen flat if the bandwidth value of precognition does not conform to the actual conditions, even complete failure.
Yet most users do not have corresponding network context knowledge, so the general network equipment can only require the user to import the line bandwidth value that ISP provides.But owing to subjective and objective reasons such as line losses, the maximum of enterprise, Internet bar's local area network (LAN) etc. and internet communication can reach bandwidth value and often be lower than the bandwidth value that it is bought from ISP, so the network equipment generally also needs built-in line bandwidth measuring ability, so that allocated bandwidth has more reasonability.
Existing bandwidth measurement method can be set a bandwidth default value, and as initial bandwidth higher limit, automatically passing through to add up network equipment institute data packets for transmission flow in time rating in the testing process, estimate network bandwidth value, if the estimation bandwidth value surpasses the bandwidth higher limit, then with estimating the more bandwidth higher limit of the original record of new network device of bandwidth value.This bandwidth measurement method detects by Infinite Cyclic, is higher than the bandwidth higher limit as long as the current transmission bandwidth value occurs, then upgrades the bandwidth higher limit.
Though this technical scheme realizes simple, but have the following disadvantages: this scheme does not consider whether open bandwidth control during line bandwidth is measured, if open bandwidth control when initial, because bandwidth control can influence the utilance of line bandwidth, then interface flow can accurately not characterize the circuit actual bandwidth because suppressed, and this scheme is only upgraded line bandwidth according to current bandwidth measurement situation, thereby can't measure bandwidth value accurately; If do not open bandwidth control when initial, open again through all after dates of a bandwidth measurement, may cause unstable networks when then initial.Therefore this scheme can't be when opening the bandwidth controlled function actual bandwidth of accurate Measurement Network circuit.
Summary of the invention
The purpose of this invention is to provide a kind of bandwidth measurement method and apparatus, be used to solve the deficiencies in the prior art, provide a kind of can be when opening bandwidth control, effective kinetic measurement network line bandwidth is so that the network equipment carries out the method for more reasonable effective distribution to bandwidth resources.
For achieving the above object, the invention provides a kind of bandwidth measurement method, described method comprises:
Step S1, the initialization line bandwidth value is a bandwidth default value;
Step S2 regularly detects interface flow speed, and record interface flow rate peak value; Described interface flow speed peak value is from initial detected interface flow speed maximum till the current time;
Step S3 adjusts line bandwidth value according to bandwidth default value, current line bandwidth value and interface flow speed peak value; Specifically comprise: step S31, whether judge described interface flow speed peak value greater than current line bandwidth value, if then adjust line bandwidth value according to bandwidth default value and interface flow speed peak value, otherwise execution in step S32; Step S32 when system operation time reaches the cycle very first time, adjusts line bandwidth value according to current line bandwidth value and interface flow speed peak value.
To achieve these goals, the present invention also provides a kind of bandwidth measurement device, and described device comprises initialization module, detection record module, information storage module and bandwidth adjusting module;
It is bandwidth default value that described initialization module is used for the initialization line bandwidth value, and is stored in the information memory cell;
Described detection record module is connected with initialization module, is used for regularly detecting interface flow speed, and record interface flow rate peak value, interface flow speed peak value is stored in the information memory cell;
Described information storage module is connected with the detection record module with initialization module, is used for memory bandwidth preset value, current line bandwidth value and interface flow speed peak value;
Described bandwidth adjusting module is connected with information storage module, is used for adjusting line bandwidth value according to bandwidth default value, current line bandwidth value and interface flow speed peak value; Specifically comprise and judge that whether described interface flow speed peak value is greater than current line bandwidth value, if then adjust line bandwidth value according to bandwidth default value and interface flow speed peak value, otherwise when system operation time reaches the cycle very first time, adjust line bandwidth value according to current line bandwidth value and interface flow speed peak value.
The present invention is directed to existing bandwidth measurement technical scheme accurate problem of measurement circuitry bandwidth when opening bandwidth control, provide a kind of can be when opening bandwidth control, the method of effectively accurate Measurement Network line bandwidth, the present invention by record from initially till the current time detected interface flow speed maximum be interface flow speed peak value, and according to bandwidth default value, current line bandwidth value and interface flow speed peak value are adjusted line bandwidth value, the adjustment of line bandwidth is not the single interface flow speed peak value that depends on, thereby avoids because open bandwidth control and cause interface flow to be subjected to suppressing the problem that can not accurately characterize the circuit actual bandwidth.
Description of drawings
Fig. 1 is a kind of bandwidth measurement method of the present invention embodiment one schematic diagram
Fig. 2 is a kind of bandwidth measurement method of the present invention embodiment two schematic diagrames
Fig. 3 is a kind of bandwidth measurement method of the present invention embodiment three schematic diagrames
Fig. 4 is a kind of bandwidth measurement method of the present invention embodiment four schematic diagrames
Fig. 5 is a kind of bandwidth measurement method of the present invention embodiment five schematic diagrames
Fig. 6 is a kind of bandwidth measurement method of the present invention embodiment six schematic diagrames
Fig. 7 is a kind of bandwidth measurement device of the present invention embodiment one schematic diagram
Fig. 8 is a kind of bandwidth measurement device of the present invention embodiment two schematic diagrames
Fig. 9 is a kind of bandwidth measurement device of the present invention embodiment three schematic diagrames
Figure 10 is a kind of bandwidth measurement device of the present invention embodiment four schematic diagrames
Figure 11 is a kind of bandwidth measurement device of the present invention embodiment five schematic diagrames
Embodiment
Below in conjunction with accompanying drawing the present invention is carried out specific description.
Fig. 1 has provided a kind of bandwidth measurement method of the present invention embodiment one schematic diagram, said method comprising the steps of:
Step S1, the initialization line bandwidth value is a bandwidth default value;
Described bandwidth default value can be the bandwidth value that ISP provides, or the line bandwidth value estimated of user oneself, the approaching more reality of this discreet value in theory, and system just can more early detect bandwidth value accurately.
Step S2 regularly detects interface flow speed, and record interface flow rate peak value; Described interface flow speed peak value is from initial detected interface flow speed maximum till the current time;
Interface flow speed statistics is as follows: the data total flow that the system statistics interface received in a time rating, then with statistical value divided by time rating, promptly obtain current interface flow speed.Compare current interface flow speed and interface flow speed peak value, if current interface flow speed greater than interface flow speed peak value, then updating interface flow rate peak value is the present flow rate rate value.
In the interface flow speed statistics, time rating is too short, and the bursty data of interface may influence the speed statistical accuracy; Time rating is oversize, and then the real-time variation of speed statistics influences the speed statistical accuracy equally, can suitably adjust the length of time rating when specifically implementing according to actual conditions, general time rating value be 5 seconds proper.
Step S3 adjusts line bandwidth value according to bandwidth default value, current line bandwidth value and interface flow speed peak value.
Fig. 2 has provided a kind of bandwidth measurement method of the present invention embodiment two schematic diagrames, and present embodiment also specifically is decomposed into step S3 except the step that comprises method embodiment one:
Whether step S31 judges described interface flow speed peak value greater than current line bandwidth value, if then adjust line bandwidth value according to bandwidth default value and interface flow speed peak value, otherwise execution in step S32;
Describedly adjust line bandwidth value according to bandwidth default value and interface flow speed peak value two kinds of execution modes can be arranged: a kind ofly be, do not allow line bandwidth value to be higher than bandwidth default value, then this moment line bandwidth value is adjusted into bandwidth default value, if network environment has a strict demand to congested, then measure for accurate line bandwidth more and will help avoiding congested more, thisly would rather sacrifice certain line bandwidth resource, can not allow the line bandwidth measured value be higher than the conservative mode of circuit actual bandwidth, can better avoid congested to a certain extent; Another kind is, allow line bandwidth value to be higher than bandwidth default value, then at this moment, line bandwidth value can be adjusted into interface flow speed peak value or interface flow speed peak value is added a preset value, this mode is mainly used in does not have too high request to network congestion, and wish to improve as far as possible the environment of line bandwidth utilance, adopting the flow rate peak value to add a preset value mainly is in order to improve the line bandwidth utilance, but preset value can not be too big, otherwise may influence the accuracy that line bandwidth is measured.
Step S32 when system operation time reaches the cycle very first time, adjusts line bandwidth value according to current line bandwidth value and interface flow speed peak value.
At system's run duration, per running time, period T 1, and promptly compliance with system reaches the cycle very first time running time.When circuit actual bandwidth during less than bandwidth default value, adjust and will occur in first cycle of operation T1 the first time of line bandwidth value, line bandwidth value will equal bandwidth default value always before this, so value principle of period T 1: at T1 in the cycle, line bandwidth bandwidth availability ratio occurs and reaches 100% probability greater than more than 50%, the value of T1 can not be too big, otherwise can influence ageing that bandwidth adjusts, when specifically implementing generally T1 be set to one day.During concrete the adjustment, can adjust line bandwidth value and be certain value between interface flow speed peak value and current line bandwidth value, for example line bandwidth is adjusted into half of interface flow speed peak value and current line bandwidth value sum.
Fig. 3 has provided a kind of bandwidth measurement method of the present invention embodiment three schematic diagrames, and present embodiment also will specifically be divided into according to bandwidth default value and interface flow speed peak value adjustment line bandwidth value described in the step S31 except the step that comprises method embodiment two:
Whether step S311 judges described interface flow speed peak value greater than bandwidth default value, if execution in step S312 then, otherwise execution in step S313;
Step S312 adjusts line bandwidth value according to bandwidth default value or interface flow speed peak value; Describedly adjust line bandwidth value according to bandwidth default value or interface flow speed peak value and be specifically as follows: line bandwidth value is adjusted into bandwidth default value, or line bandwidth value is adjusted into interface flow speed peak value, or line bandwidth value is adjusted into interface flow speed peak value adds second increment size that sets in advance.
Step S313 heightens line bandwidth value; The described line bandwidth value of heightening is specifically as follows simply with first increment size that sets in advance of current line bandwidth value increase.
Fig. 4 has provided a kind of bandwidth measurement method of the present invention embodiment four schematic diagrames, and present embodiment also comprises except the step that comprises method embodiment two:
Regularly detect after the interface flow speed described in the step S2, also comprise N value of record interface flow rate maximum, wherein N is the value of setting in advance.Be specifically as follows: with N value of interface flow speed maximum and current interface flow speed ratio, if current interface flow speed is then replaced this minimum value with current interface flow speed greater than the minimum value in this N the value.Wherein, the general value of N is 20 to get final product, and the value of N can be done suitable adjustment according to actual conditions when specifically implementing.
Present embodiment also comprises before the execution in step S32 described in the step S31: execution in step S33: judge whether system operation time reached for second time cycle, if then adjust line bandwidth value, otherwise execution in step S32 according to N the value and the current line bandwidth value of interface flow speed maximum.
At system's run duration, per running time, period T 2, promptly satisfied system operation time and reached for second time cycle.The principle of T2 value: at T2 in the cycle, the interface circuit bandwidth bandwidth availability ratio occurs and reaches 100% probability above more than 90%, so the T2 value is big more, the accuracy of measurement is just high more, but just reduced with the ageing of Time Bandwidth adjustment, it is proper that generally T2 is set to a week.
Described N value and current line bandwidth value according to interface flow speed maximum adjusted line bandwidth value and be specifically as follows: whether the difference of judging maximum and minimum value in N the value of described interface flow speed maximum is above the difference threshold that sets in advance, if then adjust line bandwidth value, otherwise line bandwidth value is adjusted into interface flow speed peak value according to interface flow speed peak value and current line bandwidth value.
In fact maximum is interface flow speed peak value in N the value of described interface flow speed maximum.
Present embodiment can also carry out above-mentioned expansion except carrying out the above-mentioned expansion on the basis of method embodiment three on the basis of method embodiment two.
Fig. 5 has provided a kind of bandwidth measurement method of the present invention embodiment five schematic diagrames, and present embodiment also comprises step S4 except the step that comprises method embodiment four: upgrade bandwidth adjusted value sequence, execution in step S2 according to the adjustment situation of current line bandwidth value.
Bandwidth adjusted value sequence is the sequence that is used for writing down the bandwidth adjusted value of bandwidth adjustment process, and during initialization, bandwidth adjusted value sequence is a bandwidth default value.
The method of described renewal bandwidth adjusted value sequence can for: record is more than or equal to the bandwidth adjusted value of interface flow speed peak value, and with described sequence sequence arrangement by size in bandwidth adjusted value sequence.During initialization, bandwidth adjusted value sequence is bandwidth default value.
Heightening line bandwidth value described in the step S313 is specifically as follows: heighten line bandwidth value according to interface flow speed peak value and bandwidth adjusted value sequence, for example can from bandwidth adjusted value sequence, find out the most approachingly and greater than the bandwidth adjusted value of described peak value, adjust line bandwidth value and be a value between this value and interface flow speed peak value with interface flow speed peak value.The described line bandwidth value of heightening also can be adjusted into line bandwidth value current first increment size that sets in advance of line bandwidth value increase;
According to after bandwidth default value or the interface flow speed peak value adjustment line bandwidth value, also comprise execution in step S4 described in the step S312;
Heighten described in the step S313 after the line bandwidth value, also comprise execution in step S4;
According to after current line bandwidth value and the interface flow speed peak value adjustment line bandwidth value, also comprise execution in step S4 described in the step S32;
According to after N of interface flow speed maximum value and the current line bandwidth value adjustment line bandwidth value, also comprise execution in step S4 described in the step S33.
In addition, in step S32, when judging that system operation time does not reach the cycle very first time, execution in step S2.
Fig. 6 is a kind of bandwidth measurement method of the present invention embodiment six schematic diagrames.
In the present embodiment, bandwidth default value is initialized as the bandwidth value that ISP provides, and when the line bandwidth value of coming out when detection of dynamic is higher than the bandwidth value that ISP provides, provides bandwidth value to be as the criterion with ISP, and promptly whenever line bandwidth value is not higher than the bandwidth value that ISP provides.Because in the actual application environment, when the ISP network was comparatively idle, the network line bandwidth may be higher than the bandwidth value that ISP provides, but when the online peak period, the bandwidth of network line more may be lower than the ISP value of providing usually.In order to make the line bandwidth value of measuring at any time can both obtain good performance, we are more prone to the value of keeping of going bail for.
Suppose that the interface flow peak value is F, the bandwidth value that ISP provides is Bc, and current line bandwidth value is B, below in conjunction with Fig. 6 present embodiment is elaborated:
Step 201 is initialized as the bandwidth value Bc that ISP provides with line bandwidth value B.
Step 202, be taken as 5 seconds the time rating of interface flow speed statistics, calculated current interface flow speed in per 5 seconds, and record interface flow rate peak F and interface flow speed preceding 20.
Whether step 203 judges the interface flow peak F greater than current line bandwidth value B, if execution in step 204 then, otherwise execution in step 208.
Step 204 is judged the bandwidth value Bc whether the interface flow peak F provides greater than ISP, if execution in step 207 then, otherwise execution in step 205.
Step 205 is found out in the bandwidth adjusted value sequence, and is the most approaching and greater than the bandwidth adjusted value Bf of F with F.Suppose that bandwidth adjusted value sequence is for (8.5Mbps), if this moment, the interface flow peak F was 8.6Mbps, then Bf is 9Mbps for 10Mbps, 9Mbps.
Step 206, adjusting line bandwidth B is (Bf+F)/2.In step 205 example, it is 8.8Mbps that adjustment back line bandwidth value equals (9+8.6)/2.
Step 207 is adjusted line bandwidth B for the bandwidth value Bc that ISP provides, and withdraws from the bandwidth detection flow process.Owing to when interface flow speed peak F surpasses pre-set bandwidths Bc, still line bandwidth B is set at Bc among this embodiment, thereby still can repeats this process after the follow-up judgement flow process arrival step 202, thereby directly finish this flow process in the present embodiment.
Step 208 judges whether system's cycle of operation reach a week, if execution in step 209 then, otherwise execution in step 212.After system moves 7 days for the first time, can meet this judgement, move after 14 days, also meet this judgement, the rest may be inferred.
Step 209 judges whether maximum and minimum value differ provides 1% of bandwidth value Bc greater than ISP among preceding 20 of interface flow speed.If, preceding 20 that then show the interface flow rate value is very approaching, therefore interface flow speed peak F can characterize circuit actual bandwidth value preferably, execution in step 211, otherwise, expression interface flow speed preceding 20 sudden stronger, so interface flow speed peak F can not well characterize circuit actual bandwidth value, execution in step 210.Suppose that the bandwidth value that ISP provides is 10Mbps, maximum is 9.92Mbps in preceding 20 of the interface flow speed, minimum value 9.85Mbps, because (9.92-9.85)/10=0.7%, then this moment, interface flow speed peak F can characterize circuit actual bandwidth value preferably.
Step 210, adjusting line bandwidth value B is (B+3F)/4, line bandwidth value can be slightly larger than interface flow speed peak F, has so just vacateed the space of certain flow burst, so that the more effective detection line actual bandwidth of follow-up energy.
Step 211, adjusting line bandwidth value B is interface flow speed peak F.
Step 212 judges whether system's cycle of operation reach one day, if execution in step 213 then, otherwise execution in step 202.After system moves 1 day for the first time, can meet this judgement, move after 2 days, also meet this judgement, the rest may be inferred.
Step 213, adjusting line bandwidth value is current line bandwidth value B and half of interface flow speed peak F sum.
Step 214 is upgraded bandwidth adjusted value sequence.Example in the refer step 205,206, upgraded bandwidth adjusted value sequence after, this sequence be (10Mbps, 9Mbps, 8.8Mbps).
According to as above execution mode, suppose that certain local net network keeper has bought 10Mbps optical fiber to ISP and exclusively enjoyed access, suppose that the circuit actual bandwidth is 9.7Mbps.System initialization line bandwidth B is 10Mbps, and this Time Bandwidth adjusted value sequence is (10Mbps); After system had moved the time, interface flow speed peak F was 9.5Mbps, and this moment, to adjust line bandwidth B be (B+F)/2=(10+9.5)/2=9.75Mbps, renewal bandwidth adjusted value sequence be (10Mbps, 9.75Mpbs); When system ran to second day, interface flow speed peak value still was 9.5Mbps, and this moment, to adjust line bandwidth B be (B+F)/2=(9.75+9.5)/2=9.625Mbps, renewal bandwidth adjusted value sequence be (10Mbps, 9.75Mpbs, 9.625Mbps); After this new interface flow speed peak F to have occurred be 9.65Mbps in system, and according to step 205, Bf is 9.75Mbps, then adjusting line bandwidth is (Bf+F)/2=(9.75+9.65)/2=9.7Mbps, upgrade bandwidth adjusted value sequence and be (10Mbps, 9.75Mbps, 9.7Mbps); After this when system operation time reaches a week, in preceding 20 of the interface flow rate value, maximum is 9.71Mbps, minimum value is 9.69Mbps, both differ less than ISP 1% of bandwidth value are provided, and then adjusting line bandwidth is 9.71Mbps, and upgrading bandwidth adjusted value sequence is (10Mbps, 9.75Mbps, 9.71Mbps); Follow-up continuation continues to detect according to flow process shown in Figure 6 to be handled.
And for example, suppose that certain local net network keeper has bought 10Mbps optical fiber to ISP and exclusively enjoyed access, suppose that the circuit actual bandwidth is 11Mbps.System initialization line bandwidth B is 10Mbps, and this Time Bandwidth adjusted value sequence is (10Mbps); After system had moved one day, interface flow speed peak F was 10.5Mbps, because F>Bc, then adjusted line bandwidth B=Bc, i.e. 10Mbps, and withdraw from the bandwidth detection flow process.
The present invention also provides a kind of bandwidth measurement device, and Fig. 7 has provided a kind of bandwidth measurement device of the present invention embodiment one schematic diagram, comprises initialization module M1, detection record module M2, information storage module M3 and bandwidth adjusting module M4;
It is bandwidth default value that described initialization module M1 is used for the initialization line bandwidth value, and is stored in the information memory cell;
Described detection record module M2 is connected with initialization module M1, is used for regularly detecting interface flow speed, and record interface flow rate peak value, interface flow speed peak value is stored in the information memory cell;
Described information storage module M3 is connected with detection record module M2 with initialization module M1, is used for memory bandwidth preset value, current line bandwidth value and interface flow speed peak value;
Described bandwidth adjusting module M4 is connected with information storage module M3, is used for adjusting line bandwidth value according to bandwidth default value, current line bandwidth value and interface flow speed peak value.
Fig. 8 has provided a kind of bandwidth measurement device of the present invention embodiment two schematic diagrames, present embodiment is except the structure that comprises device embodiment one, and described bandwidth adjusting module M4 further comprises the first judging unit M41, the first adjustment unit M42 and the second adjustment unit M43;
Whether the described first judging unit M41 is used to judge described interface flow speed peak value greater than current line bandwidth value, if then call the first adjustment unit M42, otherwise calls the second adjustment unit M43;
The described first adjustment unit M42 is connected with the first judging unit M41, is used for adjusting line bandwidth value according to bandwidth default value and interface flow speed peak value;
The described second adjustment unit M43 is connected with the first judging unit M41, is used for when system operation time reaches the cycle very first time, adjusts line bandwidth value according to current line bandwidth value and interface flow speed peak value.
Fig. 9 has provided a kind of bandwidth measurement device of the present invention embodiment three schematic diagrames, present embodiment is except the structure that comprises device embodiment two, and the described first adjustment unit M42 further comprises the second judging unit M421, the 3rd adjustment unit M422 and the 4th adjustment unit M423;
The described second judging unit M421 is used to judge that described interface flow speed peak value whether greater than bandwidth default value, if then call the 3rd adjustment unit, otherwise calls the 4th adjustment unit;
Described the 3rd adjustment unit M422 is connected with the second judging unit M421, is used for adjusting line bandwidth value according to bandwidth default value or interface flow speed peak value;
Described the 4th adjustment unit M423 is connected with the second judging unit M421, is used to heighten line bandwidth value.
Figure 10 has provided a kind of bandwidth measurement device of the present invention embodiment four schematic diagrames, and present embodiment also comprises following feature except the structure that comprises device embodiment two:
Described detection record module M2 also is used for N value of record interface flow rate maximum, and wherein N is the value of setting in advance;
Described bandwidth adjusting module M4 also comprises the 3rd judging unit M44 and the 5th adjustment unit M45;
Described the 3rd judging unit M44 is connected with the second adjustment unit M43 with the first judging unit M41, is used to judge whether system operation time reached for second time cycle, if then call the 5th adjustment unit M45, otherwise calls the second adjustment unit M43;
Described the 5th adjustment unit M45 is connected with the 3rd judging unit M44, is used for adjusting line bandwidth value according to N the value and the current line bandwidth value of interface flow speed maximum;
The described first judging unit M41 also is used for calling the 3rd judging unit M44 described before calling the second adjustment unit M43.
Present embodiment can also carry out above-mentioned expansion except carrying out the above-mentioned expansion on the basis of device embodiment three on the basis of device embodiment two.
Figure 11 has provided a kind of bandwidth measurement device of the present invention embodiment five schematic diagrames, and present embodiment also comprises following feature except the structure that comprises device embodiment four:
Described bandwidth measurement device also comprises sequence update module M5, is connected with bandwidth adjusting module M4 with detection record module M2, is used for upgrading bandwidth adjusted value sequence according to the adjustment situation of current line bandwidth, calls detection record module M2.
Described the 4th adjustment unit M423 specifically is used for: heighten line bandwidth value according to interface flow speed peak value and bandwidth adjusted value sequence, or line bandwidth value is adjusted into current first increment size that sets in advance of line bandwidth value increase;
Described the 3rd adjustment unit M422 also be used for described adjust line bandwidth value according to bandwidth default value or interface flow speed peak value after, calling sequence update module M5;
Described the 4th adjustment unit M423 also be used for described heighten line bandwidth value after, calling sequence update module M5;
The described second adjustment unit M43 also be used for described adjust line bandwidth value according to current line bandwidth value and interface flow speed peak value after, calling sequence update module M5;
Described the 5th adjustment unit M45 also be used for described according to interface flow speed maximum N value and after current line bandwidth value adjusts line bandwidth value, calling sequence update module M5;
The present invention is directed to existing bandwidth measurement technical scheme accurate problem of measurement circuitry bandwidth when opening the bandwidth control, the present invention by record from initially till the current time detected interface flow speed maximum be interface flow speed peak value, and according to bandwidth default value, current line bandwidth value and interface flow speed peak value are adjusted line bandwidth value, the adjustment of line bandwidth is not the single interface flow speed peak value that depends on, thereby avoids because open bandwidth control and cause interface flow to be subjected to suppressing the problem that can not accurately characterize the circuit actual bandwidth.The present invention can carry out allocated bandwidth more effectively and reasonably, accurately by combining with existing bandwidth allocation techniques, thereby optimizes bandwidth control effect greatly.
According to technical scheme of the present invention, the line bandwidth measured value can be done the self adaptation adjustment according to the circuit actual bandwidth, and when the circuit actual bandwidth was higher than bandwidth default value, final bandwidth measurement value also can be greater than or equal to bandwidth default value; When the circuit actual bandwidth was lower than bandwidth default value, final bandwidth measurement value also can be lower than bandwidth default value, and final and circuit actual bandwidth convergence.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (11)

1. a bandwidth measurement method is characterized in that, described method comprises:
Step S1, the initialization line bandwidth value is a bandwidth default value;
Step S2 regularly detects interface flow speed, and record interface flow rate peak value; Described interface flow speed peak value is from initial detected interface flow speed maximum till the current time;
Step S3 adjusts line bandwidth value according to bandwidth default value, current line bandwidth value and interface flow speed peak value; Specifically comprise:
Whether step S31 judges described interface flow speed peak value greater than current line bandwidth value, if then adjust line bandwidth value according to bandwidth default value and interface flow speed peak value, otherwise execution in step S32;
Step S32 when system operation time reaches the cycle very first time, adjusts line bandwidth value according to current line bandwidth value and interface flow speed peak value.
2. bandwidth measurement method according to claim 1 is characterized in that, specifically comprises according to bandwidth default value and interface flow speed peak value adjustment line bandwidth value described in the step S31:
Whether step S311 judges described interface flow speed peak value greater than bandwidth default value, if execution in step S312 then, otherwise execution in step S313;
Step S312 adjusts line bandwidth value according to bandwidth default value or interface flow speed peak value;
Step S313 heightens line bandwidth value.
3. bandwidth measurement method according to claim 1 and 2 is characterized in that:
Regularly detect after the interface flow speed described in the step S2, also comprise N value of record interface flow rate maximum, wherein N is the value of setting in advance;
Also comprise before the S32 of execution in step described in the step S31: execution in step S33: judge whether system operation time reached for second time cycle, if then adjust line bandwidth value, otherwise execution in step S32 according to N the value and the current line bandwidth value of interface flow speed maximum.
4. bandwidth measurement method according to claim 3, it is characterized in that, adjusting line bandwidth value according to N value of interface flow speed maximum and current line bandwidth value described in the step S33 is specially: whether the difference of judging maximum and minimum value in N the value of described interface flow speed maximum is above the difference threshold that sets in advance, if then adjust line bandwidth value, otherwise line bandwidth value is adjusted into interface flow speed peak value according to interface flow speed peak value and current line bandwidth value.
5. bandwidth measurement method according to claim 3 is characterized in that,
Described bandwidth measurement method also comprises step S4, upgrades bandwidth adjusted value sequence, execution in step S2 according to the adjustment situation of current line bandwidth value;
Heightening line bandwidth value described in the step S313 is specially: heighten line bandwidth value according to interface flow speed peak value and bandwidth adjusted value sequence, or line bandwidth value is adjusted into current first increment size that sets in advance of line bandwidth value increase;
According to after bandwidth default value or the interface flow speed peak value adjustment line bandwidth value, also comprise execution in step S4 described in the step S312;
Heighten after the line bandwidth value described in the step S 313, also comprise execution in step S4;
According to after current line bandwidth value and the interface flow speed peak value adjustment line bandwidth value, also comprise execution in step S4 described in the step S32;
According to after N of interface flow speed maximum value and the current line bandwidth value adjustment line bandwidth value, also comprise execution in step S4 described in the step S 33.
6. bandwidth measurement method according to claim 2, it is characterized in that, be specially according to bandwidth default value or interface flow speed peak value adjustment line bandwidth value described in the step S312: line bandwidth value is adjusted into bandwidth default value, or line bandwidth value is adjusted into interface flow speed peak value, or line bandwidth value is adjusted into interface flow speed peak value adds second increment size that sets in advance.
7. a bandwidth measurement device is characterized in that, described device comprises: initialization module, detection record module, information storage module and bandwidth adjusting module;
It is bandwidth default value that described initialization module is used for the initialization line bandwidth value;
Described detection record module is connected with initialization module, is used for regularly detecting interface flow speed, and record interface flow rate peak value;
Described information storage module is connected with the detection record module with initialization module, is used for memory bandwidth preset value, current line bandwidth value and interface flow speed peak value;
Described bandwidth adjusting module is connected with information storage module, is used for adjusting line bandwidth value according to bandwidth default value, current line bandwidth value and interface flow speed peak value; Specifically comprise and judge that whether described interface flow speed peak value is greater than current line bandwidth value, if then adjust line bandwidth value according to bandwidth default value and interface flow speed peak value, otherwise when system operation time reaches the cycle very first time, adjust line bandwidth value according to current line bandwidth value and interface flow speed peak value.
8. bandwidth measurement device according to claim 7 is characterized in that, described bandwidth adjusting module comprises first judging unit, first adjustment unit and second adjustment unit;
Described first judging unit is used to judge that described interface flow speed peak value whether greater than current line bandwidth value, if then call first adjustment unit, otherwise calls second adjustment unit;
Described first adjustment unit is connected with first judging unit, is used for adjusting line bandwidth value according to bandwidth default value and interface flow speed peak value;
Described second adjustment unit is connected with first judging unit, is used for when system operation time reaches the cycle very first time, adjusts line bandwidth value according to current line bandwidth value and interface flow speed peak value.
9. bandwidth measurement device according to claim 8 is characterized in that, described first adjustment unit comprises second judging unit, the 3rd adjustment unit and the 4th adjustment unit;
Described second judging unit is used to judge that described interface flow speed peak value whether greater than bandwidth default value, if then call the 3rd adjustment unit, otherwise calls the 4th adjustment unit;
Described the 3rd adjustment unit is connected with second judging unit, is used for adjusting line bandwidth value according to bandwidth default value or interface flow speed peak value;
Described the 4th adjustment unit is connected with second judging unit, is used to heighten line bandwidth value.
10. it is characterized in that according to Claim 8 or 9 described bandwidth measurement devices:
Described detection record module also is used for N value of record interface flow rate maximum, and wherein N is the value of setting in advance;
Described bandwidth adjusting module also comprises the 3rd judging unit and the 5th adjustment unit;
Described the 3rd judging unit is connected with second adjustment unit with first judging unit, is used to judge whether system operation time reached for second time cycle, if then call the 5th adjustment unit, otherwise calls second adjustment unit;
Described the 5th adjustment unit is connected with the 3rd judging unit, is used for adjusting line bandwidth value according to N the value and the current line bandwidth value of interface flow speed maximum;
Described first judging unit also is used for calling the 3rd judging unit described before calling second adjustment unit.
11. bandwidth measurement device according to claim 10 is characterized in that,
Described bandwidth measurement device also comprises the sequence update module, is connected with the bandwidth adjusting module with the detection record module, is used for upgrading bandwidth adjusted value sequence according to the adjustment situation of current line bandwidth value, calls the detection record module;
Described the 4th adjustment unit specifically is used for: heighten line bandwidth value according to interface flow speed peak value and bandwidth adjusted value sequence, or line bandwidth value is adjusted into current first increment size that sets in advance of line bandwidth value increase;
Described the 3rd adjustment unit also be used for described adjust line bandwidth value according to bandwidth default value or interface flow speed peak value after, the calling sequence update module;
Described the 4th adjustment unit also be used for described heighten line bandwidth value after, the calling sequence update module;
Described second adjustment unit also be used for described adjust line bandwidth value according to current line bandwidth value and interface flow speed peak value after, the calling sequence update module;
Described the 5th adjustment unit also be used for described according to interface flow speed maximum N value and after current line bandwidth value adjusts line bandwidth value, the calling sequence update module.
CN2009100807240A 2009-03-27 2009-03-27 Bandwidth measurement method and apparatus Expired - Fee Related CN101505244B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100807240A CN101505244B (en) 2009-03-27 2009-03-27 Bandwidth measurement method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100807240A CN101505244B (en) 2009-03-27 2009-03-27 Bandwidth measurement method and apparatus

Publications (2)

Publication Number Publication Date
CN101505244A CN101505244A (en) 2009-08-12
CN101505244B true CN101505244B (en) 2011-01-05

Family

ID=40977324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100807240A Expired - Fee Related CN101505244B (en) 2009-03-27 2009-03-27 Bandwidth measurement method and apparatus

Country Status (1)

Country Link
CN (1) CN101505244B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106059954A (en) * 2016-05-27 2016-10-26 青岛海信电器股份有限公司 Network bandwidth regulation method and device

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102170373A (en) * 2010-02-25 2011-08-31 国信朗讯科技网络技术有限公司 Method and device for monitoring network flow
CN102315979A (en) * 2010-07-05 2012-01-11 国讯新创软件技术有限公司 Method and device for monitoring network flow
CN102684975B (en) * 2011-03-10 2015-07-22 中兴通讯股份有限公司 Dynamic bandwidth source allocation method and dynamic bandwidth source allocation device
CN102546411B (en) * 2011-12-31 2014-08-13 北京华为数字技术有限公司 Method and device for forwarding traffic
CN103124296B (en) * 2013-03-06 2015-08-05 成都索贝数码科技股份有限公司 For the dynamic self-adapting distribution method of the bandwidth resources of distributed file system
CN103746876B (en) * 2013-12-31 2017-08-01 迈普通信技术股份有限公司 A kind of bandwidth traffic detection method and system based on business
CN104967571B (en) * 2015-06-08 2018-08-24 新华三技术有限公司 A kind of bandwidth adjusting method and device
CN105188093A (en) * 2015-10-22 2015-12-23 上海斐讯数据通信技术有限公司 Network access point dynamic bandwidth allocation method and network access point dynamic bandwidth allocation device
CN109639459B (en) * 2018-11-19 2022-09-23 网宿科技股份有限公司 Method for adjusting rated bandwidth, terminal and storage medium
CN111988196B (en) * 2020-07-21 2022-04-01 中国长城科技集团股份有限公司 Bandwidth detection method and device, electronic equipment and storage medium
CN114006843B (en) * 2021-11-02 2023-03-31 中国工商银行股份有限公司 Method and device for determining bandwidth and electronic equipment
CN115514992A (en) * 2022-09-23 2022-12-23 深圳市音络科技有限公司 HDMI data transmission method, system, terminal and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106059954A (en) * 2016-05-27 2016-10-26 青岛海信电器股份有限公司 Network bandwidth regulation method and device
CN106059954B (en) * 2016-05-27 2019-08-02 青岛海信电器股份有限公司 A kind of method and device that network bandwidth is adjusted

Also Published As

Publication number Publication date
CN101505244A (en) 2009-08-12

Similar Documents

Publication Publication Date Title
CN101505244B (en) Bandwidth measurement method and apparatus
Sivaraman et al. End-to-end statistical delay service under GPS and EDF scheduling: A comparison study
Namboodiri et al. Energy-efficient VoIP over wireless LANs
CN112751691B (en) Network flow rate limiting method and device, central control equipment and gateway
US9998338B2 (en) System and method for dynamic effective rate estimation for real-time video traffic
US20100111056A1 (en) Recalculating airtime quota in wlan to use up bandwidth
US11871265B2 (en) Method and an electronic device for dynamically controlling TCP congestion window
Wamser et al. Utilizing buffered YouTube playtime for QoE-oriented scheduling in OFDMA networks
Khorov et al. SEBRA: SAND-enabled bitrate and resource allocation algorithm for network-assisted video streaming
CN105050136B (en) Light wirelessly mixes the adaptive delay perception power-economizing method of broadband access network
CN100518083C (en) A realization method to dynamically change maximum length of bandwidth request
Khabazian et al. Call admission control with resource reservation for multi-service OFDM networks
CN101516111A (en) Resource distribution method and system
US11005618B1 (en) Adaptive high efficiency, low latency DOCSIS PGS scheduler
CN107171957B (en) Self-adaptive DTN routing algorithm based on resource limited condition
EP3366060B1 (en) Allocating radio resources in a cellular network
Lombardo et al. Achieving energy savings and QoS in internet access routers
Latré et al. Protecting video service quality in multimedia access networks through PCN
Atawia et al. Energy-efficient predictive video streaming under demand uncertainties
Li et al. Lower bound of weighted fairness guaranteed congestion control protocol for WSNs
Song et al. EDASH: Energy-aware QoE optimization for adaptive video delivery over LTE networks
Feng et al. TCP-friendly CBR-like rate control
de la Cruz et al. Measurement-based Call Admission Control algorithm for multi-rate VoWLANs
Hou et al. Fair QoS multi-resource allocation for uplink traffic in WLAN
Lin et al. An efficient bandwidth allocation algorithm for real-time VBR stream transmission under IEEE 802.16 wireless networks

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
DD01 Delivery of document by public notice

Addressee: Zhou Jian

Document name: Notification of Passing Examination on Formalities

C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110105

Termination date: 20200327

CF01 Termination of patent right due to non-payment of annual fee