CN102404174B - Method for detecting network bandwidth - Google Patents

Method for detecting network bandwidth Download PDF

Info

Publication number
CN102404174B
CN102404174B CN201110445254.0A CN201110445254A CN102404174B CN 102404174 B CN102404174 B CN 102404174B CN 201110445254 A CN201110445254 A CN 201110445254A CN 102404174 B CN102404174 B CN 102404174B
Authority
CN
China
Prior art keywords
bandwidth
current
average
detects
existing
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
CN201110445254.0A
Other languages
Chinese (zh)
Other versions
CN102404174A (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.)
VOLANS TECHNOLOGY DEVELOPMENT CORPORATION
Original Assignee
CHENGDU VOLANS TECHNOLOGY DEVELOPMENT Corp
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 CHENGDU VOLANS TECHNOLOGY DEVELOPMENT Corp filed Critical CHENGDU VOLANS TECHNOLOGY DEVELOPMENT Corp
Priority to CN201110445254.0A priority Critical patent/CN102404174B/en
Publication of CN102404174A publication Critical patent/CN102404174A/en
Application granted granted Critical
Publication of CN102404174B publication Critical patent/CN102404174B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a method for detecting network bandwidth, comprising the following steps of: a, using a default bandwidth to download preset data volume from a speed-measuring website to obtain an initial bandwidth; b, applying the initial bandwidth to the control by a load balance module and a flow control module; c, obtaining a present bandwidth and a present maximum bandwidth according to data flow; d, computing an average value of the present bandwidth and the present maximum bandwidth and judging if the computed average value is used as the initial bandwidth to realize bandwidth resetting according to the variable quantity of the computed bandwidth and the present bandwidth; and e, circularly performing the steps from the step b at a set time interval in order to detect the bandwidth in real time. The method of the invention solves the problem that a client is not convenient to configure a router when external network bandwidth is in a dynamically changing environment and applies the detected bandwidth dynamically to flow control and load balance by automatically detecting the network bandwidth, thus drastically improving the accuracy of bandwidth detection and improves the flow control and load balance effect.

Description

The method that the network bandwidth detects
Technical field
The present invention relates to a kind of method that the network bandwidth is detected.
Background technology
In having the network environment of router access, owing to there being the various lines such as ADSL, static optical fiber, when router is configured, after often needing user according to actual bandwidth situation, router to be arranged, can guarantee the normal operation of the functions such as Flow Control, load balancing.But conventionally because part client does not know actual bandwidth situation, or there is gap in actual bandwidth and nominal bandwidth, often causes Flow Control, load balancing to go wrong.
Summary of the invention
For above problem, the invention provides a kind of method that the network bandwidth detects, automatically carry out the detection of the network bandwidth, and being applied in the middle of Flow Control, load balancing the Bandwidth Dynamic of detection, greatly improve the accuracy of detection bandwidth, improve Flow Control and load balancing effect.
The method that the network bandwidth of the present invention detects, comprising:
A. use default bandwidth to download predetermined data volume from the website of testing the speed, according to the business of the size of described data volume and corresponding downloading duration, obtain initial bandwidth;
B. load balancing module and Flow Control module are applied to described initial bandwidth in control, realize load balancing and Flow Control function;
C. record the data traffic at least 1 time current 1 second, according to described data traffic, obtain current bandwidth average and the current maximum bandwidth of each record, the current bandwidth average of each time is averaging and obtains existing bandwidth, the current maximum bandwidth of each time is averaging and obtains current maximum bandwidth average;
D. described existing bandwidth and current maximum bandwidth average value of averaging are calculated, if the existing bandwidth of poor > of described mean value and existing bandwidth 10%, described mean value is carried out to bandwidth replacement as existing bandwidth;
E. the time that interval is set carries out to carry out bandwidth from b step cycle and detects in real time.
When configuration of routers by specifying testing the speed of network address, according to the actual situation of obtaining data, calculate the bandwidth of initial outer net, in the use procedure of successive router, regularly externally guipure is wide samples, according to average bandwidth situation and the lasting peak condition used, constantly test bandwidth is detected, adjust the most realistic bandwidth numerical value router is configured in real time, greatly improve thus the accuracy of detection bandwidth, improve Flow Control and load balancing effect.
Preferably, the data traffic in step c in recording occurring continuously 5 times current 1 second, and according to this data volume of 5 times, calculate current bandwidth average and the current maximum bandwidth of each record.More accurate from the more values that finally obtain of probability angle sampled value, but take into account efficiency simultaneously, every execution is this step once, preferably carries out 5 samplings.
Preferably, step c enters steps d again after repeating 5 times.
Preferably, by the existing bandwidth described in the current bandwidth mean value computation step c of nearest 10 times; By the current maximum bandwidth average described in the current maximum bandwidth calculation procedure c of nearest 10 times, to obtain existing bandwidth and current maximum bandwidth average more accurately.
Further, because actual bandwidth peak and standard peak value have certain difference, therefore according to sample variance, the maximum bandwidth average described in steps d is compensated, so that the more realistic bandwidth value of result.
Preferably, the setting-up time described in step e is 300 seconds, at interval of each step that repeats a inventive method for 300 seconds, current outer net bandwidth is detected in real time, realizes dynamic-configuration.
Method of the present invention, solved outer net bandwidth in the environment of dynamic change, the problem of client's inconvenience configuration router, and by automatically carrying out the detection of the network bandwidth, by being applied in the middle of Flow Control, load balancing of the Bandwidth Dynamic detecting, greatly improve the accuracy of detection bandwidth, improve Flow Control and load balancing effect.
Below in conjunction with the embodiment by accompanying drawing illustrated embodiment, foregoing of the present invention is described in further detail again.But this should be interpreted as to the scope of the above-mentioned theme of the present invention only limits to following example.Without departing from the idea case in the present invention described above, various replacements or the change according to ordinary skill knowledge and customary means, made, all should comprise within the scope of the invention.
Accompanying drawing explanation
Fig. 1 is the flow chart of the method for network bandwidth detection of the present invention.
Embodiment
The method that the network bandwidth of the present invention detects as shown in Figure 1, comprising:
A. work as device start, after initialization network has connected, forbid that intranet data connects to avoid data to disturb.Use the 10M(million of acquiescence) bandwidth downloads predetermined data volume from the website of testing the speed, and according to the business of the size of described data volume and corresponding downloading duration T, obtains initial bandwidth B 0, i.e. initial bandwidth B 0(bit/s)=downloading data amount M(bit)/downloading duration T(s), duration T=downloads end time T2-and downloads initial time T1;
B. load balancing module and Flow Control module are by described initial bandwidth B 0be applied in control, realize load balancing and Flow Control function;
C. the data traffic in recording occurring continuously 5 times current 1 second, is designated as respectively M1, M2, M3, M4, M5, and calculates current bandwidth average B according to this data volume of 5 times n(bit/s)=(M1+M2+M3+M4+M5)/5, and current maximum bandwidth BM n=Max (M1, M2, M3, M4, M5).Repeat after 5 times, by the current bandwidth average B of nearest 10 times nbe averaging and obtain existing bandwidth, then by the current maximum bandwidth BM of nearest 10 times nbe averaging and obtain current maximum bandwidth average.Current maximum bandwidth average BM=Average{BMn- 0, BMn- 1, BMn- 2, BMn- 3, BMn- 4, BMn- 5, BMn- 6, BMn- 7, BMn- 8, BMn- 9.Once, the value of subscript n increases progressively 1 to every record, and records this calculated value, as historical data;
D. according to sample variance, maximum bandwidth average BM is compensated: sample variance S=[(Bn- 0-X) ^2+ (Bn- 1-X) ^2....+ (Bn- 9-X) ^2]/(10-1), X represents sample average=(Bn- 0+ Bn- 1+ ...+Bn- 9)/10.Existing bandwidth and current maximum bandwidth average BM value of averaging are calculated, if 10% of the existing bandwidth of poor > of described mean value and existing bandwidth, the bandwidth value variable quantity of the bandwidth calculating and current system differs 10%, using described mean value as existing bandwidth B 0carry out bandwidth replacement;
E. interval is carried out to carry out bandwidth from b step cycle in 300 seconds and is detected in real time.

Claims (6)

1. the method that the network bandwidth detects, its feature comprises:
A. use default bandwidth to download predetermined data volume from the website of testing the speed, according to the business of the size of described data volume and corresponding downloading duration, obtain initial bandwidth;
B. load balancing module and Flow Control module are applied to described initial bandwidth in control, realize load balancing and Flow Control function;
C. record the data traffic at least 1 time current 1 second, according to described data traffic, obtain current bandwidth average and the current maximum bandwidth of each record, the current bandwidth average of each time is averaging and obtains existing bandwidth, the current maximum bandwidth of each time is averaging and obtains current maximum bandwidth average;
D. described existing bandwidth and current maximum bandwidth average value of averaging are calculated, if the existing bandwidth of poor > of described mean value and existing bandwidth 10%, described mean value is carried out to bandwidth replacement as existing bandwidth;
E. the time that interval is set carries out to carry out bandwidth from b step cycle and detects in real time.
2. the method that the network bandwidth as claimed in claim 1 detects, is characterized by: the data traffic in step c in recording occurring continuously 5 times current 1 second, and according to this data volume of 5 times, calculate current bandwidth average and the current maximum bandwidth of each record.
3. the method that the network bandwidth as claimed in claim 1 detects, is characterized by: step c enters steps d again after repeating 5 times.
4. the method that the network bandwidth as claimed in claim 1 detects, is characterized by: by the existing bandwidth described in the current bandwidth mean value computation step c of nearest 10 times; By the current maximum bandwidth average described in the current maximum bandwidth calculation procedure c of nearest 10 times.
5. the method that the network bandwidth as claimed in claim 1 detects, is characterized by: according to sample variance, the maximum bandwidth average described in steps d is compensated.
6. the method that the network bandwidth as described in one of claim 1 to 5 detects, is characterized by: the 300 seconds time that interval described in step e is set.
CN201110445254.0A 2011-12-27 2011-12-27 Method for detecting network bandwidth Active CN102404174B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110445254.0A CN102404174B (en) 2011-12-27 2011-12-27 Method for detecting network bandwidth

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110445254.0A CN102404174B (en) 2011-12-27 2011-12-27 Method for detecting network bandwidth

Publications (2)

Publication Number Publication Date
CN102404174A CN102404174A (en) 2012-04-04
CN102404174B true CN102404174B (en) 2014-02-12

Family

ID=45885987

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110445254.0A Active CN102404174B (en) 2011-12-27 2011-12-27 Method for detecting network bandwidth

Country Status (1)

Country Link
CN (1) CN102404174B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932218A (en) * 2012-11-21 2013-02-13 成都市迅电网络技术有限公司 Method and system for acquiring maximum bandwidth of network physical line
CN104320336B (en) * 2014-10-29 2017-12-01 福建星网锐捷网络有限公司 A kind of MPLS TE Links bandwidth information release processing method and apparatus
CN111404766B (en) * 2019-01-02 2022-04-12 中国移动通信有限公司研究院 Dial testing method, system and equipment
CN111506425B (en) * 2020-04-14 2021-12-17 星辰天合(北京)数据科技有限公司 Method and device for processing quality of service data
CN116614393B (en) * 2023-07-21 2023-11-28 中融云数(北京)技术有限公司 Weak network scene bandwidth estimation method and system based on RTC communication

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247291A (en) * 2008-03-10 2008-08-20 建汉科技股份有限公司 Method for detecting network band width of network appliance
US7701884B2 (en) * 2004-04-19 2010-04-20 Insors Integrated Communications Network communications bandwidth control
CN102098301A (en) * 2011-01-06 2011-06-15 复旦大学 Multilink self-adaptation data transmission method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2481255A (en) * 2010-06-18 2011-12-21 Skype Ltd Dynamically adapting network bandwidth limitations for applications on a device based on current transmission conditions

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7701884B2 (en) * 2004-04-19 2010-04-20 Insors Integrated Communications Network communications bandwidth control
CN101247291A (en) * 2008-03-10 2008-08-20 建汉科技股份有限公司 Method for detecting network band width of network appliance
CN102098301A (en) * 2011-01-06 2011-06-15 复旦大学 Multilink self-adaptation data transmission method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
周健等.远程实时视频传输的自适应技术.《清华大学学报》.2004,第44卷(第7期),
远程实时视频传输的自适应技术;周健等;《清华大学学报》;20040731;第44卷(第7期);全文 *

Also Published As

Publication number Publication date
CN102404174A (en) 2012-04-04

Similar Documents

Publication Publication Date Title
CN102404174B (en) Method for detecting network bandwidth
KR101698732B1 (en) Determining the signal quality of an electrical interconnect
CN103326893A (en) Limit speed measuring method
KR20120093360A (en) Dynamic mobile application quality-of-service monitoring and reporting
WO2012078316A1 (en) Endpoint web monitoring system and method for measuring popularity of a service or application on a web server
CN111103403B (en) Gas cross interference correction system and method based on distributed network
CN108141381B (en) System and method to coordinate cable test results with cable test configuration
US10841192B1 (en) Estimating data transfer performance improvement that is expected to be achieved by a network optimization device
JP2007036839A (en) Apparatus, system, and method for dividing quality deterioration in packet exchange network
CN109981386B (en) Network quality testing method, testing server and testing system
CN102932218A (en) Method and system for acquiring maximum bandwidth of network physical line
CN106888133B (en) Using speed-measuring method and device
CN110784330B (en) Method and device for generating application recognition model
US10055336B1 (en) Computer implemented system and method and computer program product for testing a software component by simulating an interface to a computing component using randomized network packet information
CN115225455A (en) Abnormal device detection method and device, electronic device and storage medium
CN105095024A (en) File backup method and device
CN103259804B (en) Method and system for obtaining and comparing network service quality information
US20170099192A1 (en) Network status measuring system and a method for measuring status of a network
US11402418B2 (en) Time-domain reflectometry protocol for sensors
TWI524697B (en) The use of automatic optimization of test parameters of the network speed method
EP3029573A1 (en) System and method for testing the performance of a computing infrastructure
CN109639528A (en) A kind of test method and device of log receptivity
CN105991560B (en) Audio/video communication method for network access and audio/video communication network access device
US20120284361A1 (en) Determination of the transmission capacity in data networks
CN111147299A (en) Method and device for testing speed limit strategy

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
C56 Change in the name or address of the patentee

Owner name: CHENGDU FEIYUXING TECHNOLOGY CO., LTD.

Free format text: FORMER NAME: CHENGDU VOLANS TECHNOLOGY DEVELOPMENT CORPORATION.

CP01 Change in the name or title of a patent holder

Address after: 610041, No. 12-13, building 6, D zone, Tianfu Software Park, 216 century South Road, Tianfu District, Chengdu, Sichuan

Patentee after: VOLANS TECHNOLOGY DEVELOPMENT CORPORATION

Address before: 610041, No. 12-13, building 6, D zone, Tianfu Software Park, 216 century South Road, Tianfu District, Chengdu, Sichuan

Patentee before: Chengdu VOLANS Technology Development Corporation.

C56 Change in the name or address of the patentee
CP02 Change in the address of a patent holder

Address after: The middle high tech Zone Yizhou road in Chengdu city of Sichuan province 610041 No. 1800 Tianfu Software Park G District 4 Building 7-8F

Patentee after: VOLANS TECHNOLOGY DEVELOPMENT CORPORATION

Address before: 610041, No. 12-13, building 6, D zone, Tianfu Software Park, 216 century South Road, Tianfu District, Chengdu, Sichuan

Patentee before: VOLANS TECHNOLOGY DEVELOPMENT CORPORATION