TWI419515B - The network bandwidth upper limit statistics and adjustment method of network equipment - Google Patents

The network bandwidth upper limit statistics and adjustment method of network equipment Download PDF

Info

Publication number
TWI419515B
TWI419515B TW99125028A TW99125028A TWI419515B TW I419515 B TWI419515 B TW I419515B TW 99125028 A TW99125028 A TW 99125028A TW 99125028 A TW99125028 A TW 99125028A TW I419515 B TWI419515 B TW I419515B
Authority
TW
Taiwan
Prior art keywords
bandwidth
upper limit
value
statistics
network
Prior art date
Application number
TW99125028A
Other languages
Chinese (zh)
Other versions
TW201206116A (en
Original Assignee
Cybertan Technology Inc
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 Cybertan Technology Inc filed Critical Cybertan Technology Inc
Priority to TW99125028A priority Critical patent/TWI419515B/en
Publication of TW201206116A publication Critical patent/TW201206116A/en
Application granted granted Critical
Publication of TWI419515B publication Critical patent/TWI419515B/en

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Description

網路設備之網路頻寬上限統計及調整方法Network bandwidth upper limit statistics and adjustment methods for network devices

本發明有關於一種網路設備之網路頻寬上限統計及調整方法,不需修改先前頻寬偵測技術,即可對於錯估的頻寬上限值進行修正及調整。The invention relates to a network bandwidth upper limit statistics and adjustment method for a network device, which can correct and adjust the mis-estimated bandwidth upper limit value without modifying the previous bandwidth detection technology.

現今的網路設備,例如:寬頻路由器或無線網路寬頻分享器,對於設備本身的網路流量、頻寬分配及限制功能採用網路頻寬管理(Quality of Service;QoS)及服務類型(Type of Service;TOS)機制,並利用優先權技術對於各種不同協定的流量或是特定端點的流量進行頻寬的分配與限制的設定。此外,這些網路設備之頻寬分配與限制功能必須事先得知對外頻寬的上限值才能針對各種流量做比例分配頻寬的動作。然而,現今許多頻寬偵測的技術因為其演算法或是網路佈建狀況的不同,多少都會對於實際頻寬的偵測產生誤差的狀況,例如:高估或低估。Today's network devices, such as broadband routers or wireless network broadband sharers, use network bandwidth management (QoS) and service types (Type) for the network traffic, bandwidth allocation and restriction functions of the device itself. Of Service (TOS) mechanism, and uses priority technology to set bandwidth allocation and restriction for traffic of various protocols or traffic of a specific endpoint. In addition, the bandwidth allocation and restriction functions of these network devices must know the upper limit of the external bandwidth in advance to allocate a bandwidth for each traffic. However, many of today's bandwidth detection techniques, due to differences in their algorithms or network deployment conditions, can cause errors in the detection of actual bandwidth, such as overestimation or underestimation.

以往網路設備常使用一封包來回時間技術(Round Trip Time;RTT)估算網路頻寬,對於特定端點(例如:DNS、GATEWAY或NTP server)傳送封包,並藉由接收回應封包的時間差進行數學運算以估算出頻寬。然而以上的技術與做法,會因為網路設備與特定端點中的網路狀態以及路徑長短的不同而導致誤差範圍大幅變動,例如:當網路擁塞時,可能估算出較低的頻寬(2Mbps頻寬只估算出1Mbps頻寬),則QoS機制採用該較低的頻寬值(1Mbps)進行頻寬的分配與限制,將會造成使用者只能使用到1Mbps頻寬的狀況,進而造成頻寬使用上的浪費。反之,若估算出較高的頻寬值(2Mbps頻寬卻估算出3Mbps頻寬),QoS進行頻寬分配與限制時,假設給予高優先權分配2Mbps,而低優先權給予分配1Mbps,則高優先權的流量頻寬2Mbps中有一1Mbps將被低優先權所佔據,將使得高優先權在滿載傳輸時最高只能有1Mbps流量頻寬。如此,將會造成實際頻寬並沒有按照原先設定比例分配的狀況。In the past, network devices often used a Round Trip Time (RTT) to estimate the network bandwidth, and transmitted packets for specific endpoints (for example, DNS, GATEWAY, or NTP server), and received the time difference of the response packets. Mathematical operations to estimate the bandwidth. However, the above techniques and practices may cause large variations in error range due to network conditions and network lengths in specific endpoints. For example, when the network is congested, a lower bandwidth may be estimated ( 2Mbps bandwidth only estimates 1Mbps bandwidth), the QoS mechanism uses the lower bandwidth value (1Mbps) for bandwidth allocation and limitation, which will cause the user to use only 1Mbps bandwidth, resulting in Waste of bandwidth usage. On the other hand, if a higher bandwidth value is estimated (2 Mbps bandwidth is estimated to be 3 Mbps bandwidth), when QoS performs bandwidth allocation and limitation, it is assumed that a high priority allocation is given for 2 Mbps, and a low priority is given for allocation of 1 Mbps. A priority of 1 Mbps in the traffic bandwidth of 2 Mbps will be occupied by low priority, which will make the high priority only 1 Mbps traffic bandwidth at full load. In this way, the actual bandwidth will not be allocated according to the original set ratio.

面對上述頻寬偵測所產生的誤差,先前的作法只能修改頻寬偵測演算法的演算方式或是設計不同的偵測演算法盡量使偵測的誤差幅度變小來改善,但是無論再精準的演算法或偵測方式仍會出無法容許的誤差範圍或是處在無法精確的偵測狀況與環境條件,而令頻寬偵測的結果缺少準確性。In the face of the above-mentioned error caused by bandwidth detection, the previous method can only modify the calculation method of the bandwidth detection algorithm or design different detection algorithms to improve the error of the detection as much as possible, but Accurate algorithms or detection methods still have unacceptable error ranges or are inaccurate detection conditions and environmental conditions, and the results of bandwidth detection lack accuracy.

本發明之主要目的,在於提供一種網路設備之網路頻寬上限統計及調整方法,不需修改先前已提出的頻寬偵測技術,以將先前頻寬偵測技術所偵測出的網路頻寬值導入於本發明統計及調整方法中,即可對於估算錯誤的頻寬上限值進行修正及調整。The main purpose of the present invention is to provide a network bandwidth upper limit statistics and adjustment method for a network device, which does not need to modify the previously proposed bandwidth detection technology to detect the network detected by the previous bandwidth detection technology. The path bandwidth value is introduced into the statistics and adjustment method of the present invention, and the upper limit value of the estimated error bandwidth can be corrected and adjusted.

本發明之次要目的,在於提供一種網路設備之網路頻寬上限統計及調整方法,其可應用於對內網路、對外網路、有線網路或無線網路之上/下載的頻寬上限值進行調整,藉此以符合各種網路系統的需求。A secondary object of the present invention is to provide a network bandwidth upper limit statistics and adjustment method for a network device, which can be applied to an intranet, an external network, a wired network, or a wireless network. The wide upper limit is adjusted to meet the needs of various network systems.

為此,本發明提供一種網路設備之網路頻寬上限統計及調整方法,其步驟包括:取得網路設備中現行的一頻寬上限值;設定一取樣量及一接受比例值,以決定一接受門檻值;提供一統計表,統計表用以記錄複數個索引值的統計次數,各索引值分別對應一頻寬階層,且各頻寬階層間差距一級距單位;進行一頻寬上限統計流程,步驟包括:取得目前在網路設備中運行之頻寬偵測技術所偵測出的一網路頻寬值及記錄有一取樣次數;換算網路頻寬值為索引值,以根據網路頻寬值所換算出的索引值對於統計表中同等數值的索引值其統計次數往上加1,以及對於取樣次數往上加1;及比較取樣次數是否達到取樣量,若取樣次數未達到取樣量,繼續頻寬上限統計流程,否則,進行一頻寬上限調整流程;及進行頻寬上限調整流程,步驟包括:換算頻寬上限值為索引值,以根據頻寬上限值所換算出的索引值從統計表中取出同等數值的索引值其記錄的統計次數;及比較取出的統計次數是否大於接受門檻值,若取出的統計次數大於接受門檻值,再度進行下一次頻寬上限統計流程,否則,在統計表中判斷出最多統計次數的索引值,之後,比對最多統計次數的索引值及頻寬上限值所換算出的索引值間之數值大小,以對於頻寬上限值所換算出的索引值往下減1、往上加1或維持現值並乘上級距單位,以計算出更新的頻寬上限值而取代目前的頻寬上限值,並在 更新頻寬上限值之後,再度進行下一次頻寬上限統計流程。To this end, the present invention provides a network bandwidth upper limit statistics and adjustment method for a network device, the steps comprising: obtaining a current upper bandwidth upper limit value in the network device; setting a sampling amount and an acceptance ratio value to Deciding to accept the threshold value; providing a statistical table for recording the number of statistics of the plurality of index values, each index value corresponding to a bandwidth class, and each of the bandwidth levels is different from the first-order unit; performing a bandwidth upper limit The statistical process includes the following steps: obtaining a network bandwidth value detected by the bandwidth detection technology currently running in the network device and recording a sampling number; converting the network bandwidth value into an index value, according to the network The index value converted by the road bandwidth value is incremented by 1 for the index value of the equivalent value in the statistical table, and 1 is added to the sampling number; and the comparison sampling number reaches the sampling amount, and if the sampling frequency is not reached The sampling amount is continued, and the bandwidth upper limit statistical process is continued. Otherwise, a bandwidth upper limit adjustment process is performed; and the bandwidth upper limit adjustment process is performed, and the steps include: the upper limit of the conversion bandwidth is an index value. The number of statistics of the index value of the same value is taken from the statistical table according to the index value converted from the upper limit value of the bandwidth; and whether the number of statistics taken is greater than the acceptance threshold, and if the number of statistics taken is greater than the acceptance threshold , the next time the upper limit of the bandwidth is counted again. Otherwise, the index value of the most statistics is determined in the statistics table, and then the index value converted by the maximum number of statistics and the index value converted by the upper limit of the bandwidth are compared. The value of the value is decremented by the index value converted from the upper limit of the bandwidth, plus 1 or up to the present value and multiplied by the pitch unit to calculate the updated bandwidth upper limit instead of the current frequency. Wide upper limit and After updating the upper limit of the bandwidth, the next upper bandwidth upper limit statistics flow is performed again.

請參閱第1圖及第2圖,為本發明網路設備之網路頻寬上限統計及調整方法一較佳實施例之流程圖及本發明各索引值之統計次數一實施例之統計表。本發明網路設備之網路頻寬上限統計及調整方法係可應用於一網路設備上,並可利用先前已提出的頻寬偵測技術所偵測出的網路頻寬而進行統計,以調整出較精準的頻寬上限值,而順利的進行頻寬分配。Please refer to FIG. 1 and FIG. 2 , which are flowcharts of a preferred embodiment of a network bandwidth upper limit statistics and adjustment method for a network device according to the present invention, and a statistical table of an embodiment of the present invention. . The network bandwidth upper limit statistics and adjustment method of the network device of the present invention can be applied to a network device, and can be counted by using the network bandwidth detected by the previously proposed bandwidth detection technology. In order to adjust the upper limit of the more accurate bandwidth, the bandwidth is smoothly distributed.

如第1圖所示,本發明所述之網路頻寬上限統計及調整方法,其主要步驟包括如下:首先,步驟S111,在網路設備開始運作時,網路設備中一頻寬統計調整常駐程式將會進行啟動,並取得網路設備中現行的一頻寬上限值(Upper Limit Bandwidth;ULBW),此頻寬上限值(ULBW)可由使用者手動制定或者透過一先前已提出的頻寬偵測技術自動制定。As shown in FIG. 1 , the network bandwidth upper limit statistics and adjustment method of the present invention includes the following main steps: First, in step S111, a network bandwidth statistical adjustment is performed in the network device when the network device starts to operate. The resident program will start and obtain the current Upper Limit Bandwidth (ULBW) in the network device. The upper bandwidth limit (ULBW) can be manually determined by the user or through a previously proposed The bandwidth detection technology is automatically developed.

步驟S112,設定一取樣的總數量S及一可接受的比例值R(0~1間的浮點數),以決定一接受門檻值A=R×S。In step S112, a total number S of samples and an acceptable ratio value R (a floating point number between 0 and 1) are set to determine an acceptance threshold A=R×S.

接著,步驟S113,提供一統計表,統計表用以記錄複數個索引值IN 的統計次數T〔IN 〕,各索引值IN 分別對應一頻寬階層,各頻寬階層間差距一級距單位,本實施例係以128Kbps作為頻寬階層的級距單位,則索引值I0 對應於0Kbps,索引值I1 對應於128Kbps,索引值I2 對應於 256Kbps,索引值I3 對應於384Kbps…(階層方式依此類推)。當然,本發明另一實施例中係可以不同單位數值來作為頻寬階層的級距單位,例如:32Kbps、64Kbps、256Kbps、512Kbps或任何單位數值。之後,進入一頻寬上限統計流程120。Next, in step S113, a statistical table is provided. The statistical table is used to record the statistical number T[I N ] of the plurality of index values I N , and each index value I N corresponds to a bandwidth level, and the bandwidth is different from the first level. Unit, this embodiment uses 128Kbps as the span level unit of the bandwidth hierarchy, the index value I 0 corresponds to 0Kbps, the index value I 1 corresponds to 128Kbps, the index value I 2 corresponds to 256Kbps, and the index value I 3 corresponds to 384Kbps... (Legacy is like this). Of course, in another embodiment of the present invention, different unit values may be used as the level unit of the bandwidth level, for example, 32 Kbps, 64 Kbps, 256 Kbps, 512 Kbps, or any unit value. Thereafter, a bandwidth upper limit statistics flow 120 is entered.

本發明所述之頻寬上限統計流程120,其流程如下所述:步驟S121,取樣得到一網路頻寬值(Network Bandwidth;NBW),取得該網路頻寬值(NBW)的方法係可使用目前在網路設備中所運行的一般頻寬偵測技術,例如:封包來回時間RTT技術(封包容量大小/時間差)、流量統計技術(收集封包流量/收集時間)或者其他先前已提出的頻寬偵測技術,同時記錄有一取樣次數之變數C。The bandwidth upper limit statistics flow 120 of the present invention is as follows: Step S121, sampling a network bandwidth (NBW), and obtaining the network bandwidth value (NBW) Use general bandwidth detection techniques currently running on network devices, such as packet round-trip time RTT technology (packet size/time difference), traffic statistics techniques (collect packet flow/collection time), or other previously proposed frequencies The wide detection technique simultaneously records a variable C of the number of samples.

步驟S122,網路頻寬值(NBW)根據一第一頻寬級距方程式換算為一對應的索引值IA ,其方程式(1)如下所示:IA =(NBW+)mod A (1)其中,IA 為換算網路頻寬值(NBW)所求得的索引值,NBW為網路頻寬值,mod為除法取商數運算函數,A為級距單位(如128Kbps)。藉由網路頻寬值(NBW)所換算出的索引值IA 以對於統計表中同等數值的索引值IN 其統計次數T〔IN 〕往上加1,例如:偵測出網路頻寬值(NBW)為963Kbps,則可透過方程式(1)計算出索引值IA =(963+64)mod 128=8,對於第2圖中之統計表IN=8 的統計次數T〔I8 〕往上加1, 再者,同時對於網路頻寬值(NBW)的取樣次數C也會往上加1(C=C+1)。Step S122, the network bandwidth value (NBW) is converted into a corresponding index value I A according to a first bandwidth step equation, and the equation (1) is as follows: I A = (NBW+ Mod A (1) where I A is the index value obtained by converting the network bandwidth value (NBW), NBW is the network bandwidth value, mod is the division quotient operation function, and A is the step unit ( Such as 128Kbps). Value by network bandwidth (NBW) as an index value in terms of I A to the value equivalent to the statistical tables of index values which count the number of T I N I N [1] add up, for example: detect network When the bandwidth value (NBW) is 963 Kbps, the index value I A = (963 + 64) mod 128 = 8 can be calculated by the equation (1), and the statistical number T of the statistical table I N = 8 in the second graph [ I 8 〕 plus 1 is added, and at the same time, the number C of sampling times for the network bandwidth value (NBW) is also increased by 1 (C=C+1).

接續,步驟S123,若目前網路頻寬值(NBW)的取樣次數C未達到取樣量S,則繼續頻寬上限統計流程120,直到取樣次數C已相同於取樣量S,後續才進行一頻寬上限調整流程130。Next, in step S123, if the sampling frequency C of the current network bandwidth value (NBW) does not reach the sampling amount S, the bandwidth upper limit statistical process 120 is continued until the sampling frequency C is the same as the sampling amount S, and then the frequency is performed. The upper limit adjustment process 130.

當頻寬上限統計流程120對於網路頻寬值(NBW)收集到足夠的取樣筆數後,進入本發明所述之頻寬上限調整流程130,其流程如下所述:步驟S131,頻寬上限值(ULBW)根據一第二頻寬級距方程式換算為一對應的索引值IB ,其方程式(2)如下所示:IB =(ULBW)mod A (2)其中,IB 為換算頻寬上限值(ULBW)所求得的索引值,ULBW為頻寬上限值,mod為除法取商數運算函數,A為級距單位(如128Kbps)。藉由頻寬上限值(ULBW)所換算出的索引值IB 從統計表中取出同等數值的索引值IN 其記錄的統計次數T〔IN 〕,例如:當頻寬上限值(ULBW)制定為896Kbps時,換算出的索引值IB=7 ,則從第2圖之統計表中取出IN=7 的統計次數T〔I7 〕=7;當頻寬上限值(ULBW)制定為1024Kbps時,換算出的索引值IB=8 ,則從第2圖之統計表中取出IN=8 的統計次數T〔I8 〕=81;當頻寬上限值(ULBW)制定為1152Kbps時,換算出的索引值IB=9 ,則從第2圖之統計表中取出IN=9 的統計次數T〔I9 〕=4。After the bandwidth upper limit statistics process 120 collects a sufficient number of samples for the network bandwidth value (NBW), the bandwidth upper limit adjustment process 130 of the present invention is entered, and the flow is as follows: step S131, bandwidth The limit value (ULBW) is converted into a corresponding index value I B according to a second bandwidth step equation, and the equation (2) is as follows: I B = (ULBW) mod A (2) where I B is a conversion The index value obtained by the upper bandwidth limit value (ULBW), ULBW is the upper limit of the bandwidth, mod is the division function of the division, and A is the unit of the step (for example, 128 Kbps). The index value I B converted by the upper limit value of the bandwidth (ULBW) is used to extract the index value I N of the same value from the statistical table, and the statistical number T[I N ] of the record, for example, when the bandwidth upper limit value ( When ULBW is defined as 896 Kbps, the converted index value I B=7 , the statistical number of I N=7 is taken from the statistical table of Fig. 2 [I 7 ]=7; when the upper limit of the bandwidth (ULBW) When the index value I B=8 is calculated as 1024Kbps, the statistical number of I N=8 is taken from the statistical table of Fig. 2[I 8 ]=81; when the upper limit of the bandwidth (ULBW) When the index value I B=9 is calculated as 1152 Kbps, the statistical number T[I 9 ]=4 of I N=9 is taken from the statistical table of FIG. 2 .

步驟132,統計次數T〔IN 〕取出之後,比對統計次數T〔IN 〕是否大於接受門檻值A。若統計次數T〔IN 〕大於接受門檻值A,再度進行下一次頻寬上限統計流程120,以進行下一週期之頻寬統計。反之,比對統計次數T〔IN 〕小於接受門檻值A,則頻寬上限值(ULBW)有可能制定或估計錯誤,而令頻寬上限值(ULBW)的索引值IN 在統計表中非常態分佈,後續,將對於現行的頻寬上限值(ULBW)進行調整的相關步驟之後,才會再度進行頻寬上限統計流程120。In step 132, after the statistical number T[I N ] is taken out, the comparison statistical number T[I N ] is greater than the acceptance threshold A. If the number of statistics T[I N ] is greater than the acceptance threshold A, the next bandwidth upper limit statistics flow 120 is performed again to perform the bandwidth statistics of the next cycle. On the other hand, if the comparison statistics T[I N ] is less than the acceptance threshold A, the upper bandwidth limit (ULBW) may make an error or an estimation error, and the index value I N of the upper bandwidth limit (ULBW) is counted. The super-state distribution in the table, followed by the relevant steps of adjusting the current upper bandwidth limit (ULBW), will again perform the bandwidth upper limit statistics flow 120.

係以一範例進行解說,若取樣的總數量S設定為100次取樣次數及接受的比例值R為0.8,則接收門檻值A將可決定為80次,當頻寬上限值(ULBW)換算為索引值IB=8 ,且在第2圖之統計表中對應取出索引值IN=8 的統計次數T〔I8 〕=81將可超過接受門檻值A,則目前所估算或制定的頻寬上限值(ULBW)係為一較準確的上限值,不需調整,即可重返頻寬上限統計流程120;相反的,當頻寬上限值(ULBW)換算出的索引值IB 不等於8而為其他值時,則在第2圖之統計表中所對應取出的索引值IN 的統計次數T〔IN 〕必定小於接受門檻值A,則目前所估算或制定的頻寬上限值(ULBW)亦可能為高估、低估或錯估的上限值,必須進一步調整頻寬上限值(ULBW),並在調整完之後,才重返頻寬上限統計流程120。As an example, if the total number of samples S is set to 100 times of sampling and the accepted ratio R is 0.8, the receiving threshold A can be determined as 80 times, when the upper limit of the bandwidth (ULBW) is converted. For the index value I B=8 , and the statistical number T[I 8 ]=81 corresponding to the extracted index value I N=8 in the statistical table of FIG. 2 will exceed the acceptance threshold A, which is currently estimated or formulated. The upper bandwidth limit (ULBW) is a more accurate upper limit value, and can be returned to the upper bandwidth upper limit statistical process 120 without adjustment; conversely, when the upper limit of the bandwidth (ULBW) is converted into an index value If I B is not equal to 8 and is other values, then the statistical number T[I N ] of the index value I N taken out in the statistical table of FIG. 2 must be less than the acceptance threshold A, which is currently estimated or formulated. The upper bandwidth limit (ULBW) may also be the upper limit of the overestimation, underestimation or misestimation. The upper bandwidth limit (ULBW) must be further adjusted, and after the adjustment is completed, the bandwidth upper limit statistics flow 120 is returned. .

承上,步驟133,當取出的索引值IN 的統計次數T〔IN 〕小於接受門檻值A的情況下,將從第2圖之統計表中判斷出最多統計次數的索引值IN (如本實施例最多取樣次數的 索引值為IN=8 ,其統計次數T〔I8 〕=81)。In step 133, when the statistical number T[I N ] of the extracted index value I N is less than the acceptance threshold A, the index value I N of the maximum number of statistics is determined from the statistical table of FIG. 2 ( The index value of the maximum number of sampling times in this embodiment is I N=8 , and the number of statistics is T[I 8 ]=81).

步驟134,比對最多統計次數T〔IN 〕的索引值IN 及該頻寬上限值(ULBW)所換算出的索引值IB 間之數值大小。若最多統計次數T〔IN 〕的索引值IN 小於索引值IB ,則IB 往下減1(IB =IB -1),並乘上級距單位(如128Kbps),以取代現行的頻寬上限值(ULBW=(IB -1)×128Kbps),換言之,現行的頻寬上限值(ULBW)有高估的情況,必須調降一級頻寬階層。若最多統計次數T〔IN 〕的索引值IN 大於索引值IB ,則IB 往上加1(IB =IB +1),並乘上級距單位(如128Kbps),以取代現行的頻寬上限值(ULBW=(IB +1)×128Kbps),換言之,現行的頻寬上限值(ULBW)有低估的情況,必須調升一級頻寬階層。當然,在步驟134中,頻寬品質的不穩亦可能造成頻寬上限值(ULBW)錯估的情況發生,而令最多統計次數T〔IN 〕的索引值IN 雖等於索引值IB ,但,最多統計次數T〔IN 〕仍小於所設定的接受門檻值A,此時,暫且不需對於頻寬上限值(ULBW)進行調整,以避免對於頻寬不穩的網路設備進行頻寬上限值(ULBW)的調整。In step 134, the numerical value between the index value I N of the maximum number of statistics T[I N ] and the index value I B converted by the bandwidth upper limit value (ULBW) is compared. If the index value I N of the maximum number of statistics T[I N ] is smaller than the index value I B , then I B is decremented by 1 (I B =I B -1) and multiplied by the rank unit (eg 128 Kbps) to replace the current The upper bandwidth limit (ULBW = (I B -1) × 128 Kbps), in other words, the current upper bandwidth limit (ULBW) is overestimated, and the first-order bandwidth level must be lowered. If the index value I N of the maximum number of statistics T[I N ] is greater than the index value I B , then I B is incremented by 1 (I B =I B +1) and multiplied by the rank unit (eg 128 Kbps) to replace the current The upper bandwidth limit (ULBW = (I B +1) × 128 Kbps), in other words, the current upper bandwidth limit (ULBW) is underestimated, and the first-order bandwidth level must be raised. Of course, in step 134, the instability of the bandwidth quality may also cause a misclassification of the upper bandwidth limit (ULBW), and the index value I N of the most statistical number T[I N ] is equal to the index value I. B , however, the maximum number of statistics T[I N ] is still less than the set acceptance threshold A. At this time, it is not necessary to adjust the upper bandwidth limit (ULBW) to avoid the network with unstable bandwidth. The device adjusts the upper bandwidth limit (ULBW).

在進行完步驟134之後,再度進行下一週期頻寬上限統計流程120及頻寬上限調整流程130,繼續對於網路設備所偵測的頻寬值作統計,且週期性地對於網路設備之頻寬上限值(ULBW)進行調整。After the step 134 is performed, the next period bandwidth upper limit statistics process 120 and the bandwidth upper limit adjustment process 130 are performed again, and the bandwidth value detected by the network device is continuously counted, and periodically for the network device. The upper bandwidth limit (ULBW) is adjusted.

又,本發明實施例所述之取樣總數量S係以一百次取樣次數為例,然,為了令取樣的網路頻寬值(NBW)集中度越高,亦可進一步設定為一百次、一千次、一萬次或其他更高數量的取樣次數,而比例值R隨著取樣的精確度要求提高比例,比例值R設的越高並接近1,其取樣的精確度要求也會相對提高。In addition, the total number of samples S in the embodiment of the present invention is taken as an example of one hundred sampling times. However, in order to increase the concentration of the sampled network bandwidth (NBW), it may be further set to one hundred times. , one thousand times, ten thousand times or other higher number of sampling times, and the proportional value R increases with the accuracy of the sampling requirement, the higher the proportional value R is set and is close to 1, the precision of sampling is also required. Relatively improved.

再者,本發明頻寬上限統計及調整方法可對於對外、對內網路線路之網路設備所包括的各類有線網路介面(例如:乙太網路界面)或是無線網路介面(例如:802. 11a、802. 11b/g)之上/下傳時的網路頻寬值(NBW)進行偵測及統計,再者,頻寬上限值(ULBW)係可為一頻寬上傳的上限值(Uplink Upper Limit Bandwidth;UULBW)或一頻寬下載的上限值(Downlink Upper Limit Bandwidth;DULBW)。Furthermore, the bandwidth upper limit statistics and adjustment method of the present invention can be used for various wired network interfaces (eg, Ethernet interfaces) or wireless network interfaces included in network devices of external and internal network lines ( For example: 802.11a, 802.11b/g) network bandwidth value (NBW) for detection and statistics, and bandwidth upper limit (ULBW) can be a bandwidth The upper limit of the upload (Uplink Upper Limit Bandwidth; UULBW) or the upper limit of the bandwidth download (Downlink Upper Limit Bandwidth; DULBW).

總合上述,本發明利用統計原理對於先前各種頻寬偵測技術或演算法每次偵測估計的網路頻寬進行相對的記錄,並經由每統計週期的循環分析比較,調整更新網路設備中運行的頻寬值,改善各類頻寬偵測技術的誤差,以得到常態分佈上較準確的網路設備實體線路頻寬上限值(ULBW)。In summary, the present invention uses the statistical principle to relatively record the network bandwidth estimated by each of the previous various bandwidth detection techniques or algorithms, and adjusts and updates the network device through cyclic analysis and comparison every statistical period. The bandwidth value of the running medium improves the error of various bandwidth detection technologies to obtain the upper limit (ULBW) of the network device physical line bandwidth which is more accurate in the normal state distribution.

以上所述者,僅為本發明之較佳實施例而已,並非用來限定本發明實施之範圍,即凡依本發明申請專利範圍所述之形狀、構造、特徵及精神所為之均等變化與修飾,均應包括於本發明之申請專利範圍內。The above is only the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, that is, the variations, modifications, and modifications of the shapes, structures, features, and spirits described in the claims of the present invention. All should be included in the scope of the patent application of the present invention.

120...頻寬上限統計流程120. . . Bandwidth upper limit statistical process

130...頻寬上限調整流程130. . . Bandwidth upper limit adjustment process

第1圖:為本發明網路設備之頻寬上限統計及調整方法一較佳實施例之流程圖。FIG. 1 is a flow chart of a preferred embodiment of a method for estimating and adjusting the bandwidth of a network device according to the present invention.

第2圖:為本發明各索引值之統計次數一實施例之統計表。Figure 2 is a statistical table of an embodiment of the statistical number of index values of the present invention.

120...頻寬上限統計流程120. . . Bandwidth upper limit statistical process

130...頻寬上限調整流程130. . . Bandwidth upper limit adjustment process

Claims (10)

一種網路設備之網路頻寬上限統計及調整方法,其步驟包括:取得該網路設備中現行的一頻寬上限值;設定一取樣量及一接受比例值,以決定一接受門檻值;提供一統計表,統計表用以記錄有複數個索引值的統計次數,各索引值分別對應一頻寬階層,且各頻寬階層間差距一級距單位;進行一頻寬上限統計流程,步驟包括:取樣目前在該網路設備中運行之頻寬偵測技術所偵測出的一網路頻寬值及記錄一取樣次數;換算該網路頻寬值為該索引值,以根據該網路頻寬值所換算出的該索引值對於該統計表中同等數值的該索引值其統計次數往上加1,以及對於該取樣次數往上加1;及比較該取樣次數是否達到該取樣量,若該取樣次數未達到該取樣量,繼續該頻寬上限統計流程,否則,進行一頻寬上限調整流程;及進行該頻寬上限調整流程,步驟包括:換算該頻寬上限值為該索引值,以根據該頻寬上限值所換算出的該索引值從該統計表中取出同等數值的該索引值其記錄的該統計次數;及比較該取出的統計次數是否大於該接受門檻值,若該取出的統計次數大於該接受門檻值,再度進行 下一次該頻寬上限統計流程,否則,在該統計表中判斷出該最多統計次數的該索引值,之後,比對該最多統計次數的該索引值及該頻寬上限值所換算出的該索引值間之數值大小,以對於該頻寬上限值所換算出的該索引值往下減1、往上加1或維持現值並乘上該級距單位,以計算出更新的該頻寬上限值而取代現行的該頻寬上限值,並在更新該頻寬上限值之後,再度進行下一次該頻寬上限統計流程。 A network bandwidth upper limit statistics and adjustment method for a network device, the steps comprising: obtaining a current upper bandwidth upper limit value in the network device; setting a sampling amount and an acceptance ratio value to determine an acceptance threshold value Providing a statistical table for recording statistics of a plurality of index values, each index value corresponding to a bandwidth class, and each of the bandwidth levels is a first-order distance unit; performing a bandwidth upper limit statistical process, steps The method includes: sampling a network bandwidth value detected by a bandwidth detection technology currently running in the network device, and recording a sampling number; converting the network bandwidth value to the index value, according to the network The index value converted by the road bandwidth value is incremented by 1 for the index value of the same value in the statistical table, and 1 is added to the sampling number; and the sampling time is compared to whether the sampling amount reaches the sampling amount. If the sampling number does not reach the sampling amount, continue the bandwidth upper limit statistical process; otherwise, perform a bandwidth upper limit adjustment process; and perform the bandwidth upper limit adjustment process, the steps include: converting the frequency The upper limit value is the index value, and the index value of the same value is taken from the statistical table according to the index value converted from the upper limit value of the bandwidth, and the statistical number of the record is recorded; and whether the counted number of statistics is compared Greater than the acceptance threshold, if the counted number of statistics is greater than the acceptance threshold, re-run The bandwidth upper limit statistics flow is next, otherwise, the index value of the maximum number of statistics is determined in the statistics table, and then converted by the index value of the maximum number of statistics and the upper limit value of the bandwidth. The value between the index values is decremented by 1 for the index value converted to the upper limit of the bandwidth, plus 1 is added or the present value is maintained and multiplied by the rank unit to calculate the updated The bandwidth upper limit value is substituted for the current upper bandwidth limit value, and after updating the bandwidth upper limit value, the next upper bandwidth upper limit statistical flow is performed again. 如申請專利範圍第1項所述之網路頻寬上限統計及調整方法,當該最多統計次數的該索引值小於該頻寬上限值所換算出的該索引值時,則該頻寬上限值所換算出的該索引值往下減1,當該最多統計次數的該索引值大於該頻寬上限值所換算出的該索引值時,則該頻寬上限值所換算出的該索引值往上加1,當該最多統計次數的該索引值等於該頻寬上限值所換算出的該索引值時,則該頻寬上限值所換算出的該索引值維持現值。 The network bandwidth upper limit statistics and adjustment method described in claim 1, wherein when the index value of the maximum number of statistics is less than the index value converted by the upper bandwidth limit, the bandwidth is The index value converted by the limit value is decremented by one, and when the index value of the maximum number of statistics is greater than the index value converted by the upper limit value of the bandwidth, the upper limit value of the bandwidth is converted. The index value is incremented by one, and when the index value of the maximum number of statistics is equal to the index value converted by the upper limit of the bandwidth, the index value converted by the upper limit of the bandwidth maintains the present value. . 如申請專利範圍第1項所述之網路頻寬上限統計及調整方法,其中該頻寬階層間的該級距單位為32Kbps、64Kbps、128Kbps、256Kbps、512Kbps或任何單位數值。 For example, the network bandwidth upper limit statistics and adjustment method described in claim 1 wherein the pitch level unit is 32 Kbps, 64 Kbps, 128 Kbps, 256 Kbps, 512 Kbps or any unit value. 如申請專利範圍第3項所述之網路頻寬上限統計及調整方法,其中該網路頻寬值根據一第一頻寬級距方程式換算出該索引值,該第一頻寬級距方程式如下所示: 其中,IA 為該索引值,NBW為該網路頻寬值,mod為除法取商數運算函數,A為該級距單位。For example, the network bandwidth upper limit statistics and adjustment method described in claim 3, wherein the network bandwidth value is converted according to a first bandwidth step equation, the first bandwidth step equation As follows: Where I A is the index value, NBW is the network bandwidth value, mod is the division quotient operation function, and A is the step size unit. 如申請專利範圍第3項所述之網路頻寬上限統計及調整方法,其中該頻寬上限值根據一第二頻寬級距方程式換算出該索引值,該第二頻寬級距方程式如下所示:IB =ULBW mod A其中,IB 為該索引值,ULBW為該頻寬上限值,mod為除法取商數運算函數,A為該級距單位。The network bandwidth upper limit statistics and adjustment method described in claim 3, wherein the bandwidth upper limit value is converted according to a second bandwidth step equation, the second bandwidth step formula As shown below: I B =ULBW mod A where I B is the index value, ULBW is the upper limit of the bandwidth, mod is the division quotient operation function, and A is the step unit. 如申請專利範圍第1項所述之網路頻寬上限統計及調整方法,其中該頻寬上限值為一頻寬上傳的上限值或一頻寬下載的上限值。The network bandwidth upper limit statistics and adjustment method described in claim 1, wherein the upper limit of the bandwidth is an upper limit of a bandwidth upload or an upper limit of a bandwidth download. 如申請專利範圍第1項所述之網路頻寬上限統計及調整方法,其中該取樣量設定為一百次、一千次、一萬次或其他數量的取樣次數。For example, the network bandwidth upper limit statistics and adjustment method described in claim 1 wherein the sampling amount is set to one hundred, one thousand, ten thousand or other number of sampling times. 如申請專利範圍第1項所述之網路頻寬上限統計及調整方法,其中頻寬上限統計及調整方法週期性地對於該網路設備之該網路頻寬值進行統計及該頻寬上限值進行調整。For example, the network bandwidth upper limit statistics and adjustment method described in claim 1 wherein the bandwidth upper limit statistics and adjustment method periodically counts the network bandwidth value of the network device and the bandwidth. The limits are adjusted. 如申請專利範圍第1項所述之網路頻寬上限統計及調整方法,其對於該網路設備之一對外網路的上/下載頻寬上限或一對內網路的上/下載頻寬上限進行調整。For example, the network bandwidth upper limit statistics and adjustment method described in claim 1 for the upper/download bandwidth upper limit of one of the network devices or the upper/download bandwidth of a pair of intranets The upper limit is adjusted. 如申請專利範圍第1項所述之網路頻寬上限統計及調整方法,其中該網路設備包括有至少一有線網路界面及/或至少一無線網路界面,該網路頻寬上限統計及調整方法應用在該網路設備所連線的有線網路及/或無線網路上。The network bandwidth upper limit statistics and adjustment method according to claim 1, wherein the network device comprises at least one wired network interface and/or at least one wireless network interface, and the network bandwidth upper limit statistics And the adjustment method is applied to the wired network and/or the wireless network connected to the network device.
TW99125028A 2010-07-29 2010-07-29 The network bandwidth upper limit statistics and adjustment method of network equipment TWI419515B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW99125028A TWI419515B (en) 2010-07-29 2010-07-29 The network bandwidth upper limit statistics and adjustment method of network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW99125028A TWI419515B (en) 2010-07-29 2010-07-29 The network bandwidth upper limit statistics and adjustment method of network equipment

Publications (2)

Publication Number Publication Date
TW201206116A TW201206116A (en) 2012-02-01
TWI419515B true TWI419515B (en) 2013-12-11

Family

ID=46761846

Family Applications (1)

Application Number Title Priority Date Filing Date
TW99125028A TWI419515B (en) 2010-07-29 2010-07-29 The network bandwidth upper limit statistics and adjustment method of network equipment

Country Status (1)

Country Link
TW (1) TWI419515B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6104700A (en) * 1997-08-29 2000-08-15 Extreme Networks Policy based quality of service
US6438603B1 (en) * 1999-04-30 2002-08-20 Microsoft Corporation Methods and protocol for simultaneous tuning of reliable and non-reliable channels of a single network communication link
US6487212B1 (en) * 1997-02-14 2002-11-26 Advanced Micro Devices, Inc. Queuing structure and method for prioritization of frames in a network switch
US20040086063A1 (en) * 2002-11-02 2004-05-06 Cho James B. Apparatus and method for dynamically adjusting receiver bandwidth
TW200516928A (en) * 2003-11-04 2005-05-16 Benq Corp Method of controlling signal transmission in a local area network
US20060020700A1 (en) * 2002-05-13 2006-01-26 Microsoft Corporation Adaptive allocation of last-hop bandwidth based on monitoring of end-to-end throughput
US7333485B2 (en) * 1996-12-30 2008-02-19 Hewlett-Packard Development Company, L.P. Network communication device including bonded ports for increased bandwidth
TW200939696A (en) * 2008-03-03 2009-09-16 Cybertan Technology Inc Network bandwidth detecting method of network equipments

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7333485B2 (en) * 1996-12-30 2008-02-19 Hewlett-Packard Development Company, L.P. Network communication device including bonded ports for increased bandwidth
US6487212B1 (en) * 1997-02-14 2002-11-26 Advanced Micro Devices, Inc. Queuing structure and method for prioritization of frames in a network switch
US6104700A (en) * 1997-08-29 2000-08-15 Extreme Networks Policy based quality of service
US6438603B1 (en) * 1999-04-30 2002-08-20 Microsoft Corporation Methods and protocol for simultaneous tuning of reliable and non-reliable channels of a single network communication link
US20060020700A1 (en) * 2002-05-13 2006-01-26 Microsoft Corporation Adaptive allocation of last-hop bandwidth based on monitoring of end-to-end throughput
US20040086063A1 (en) * 2002-11-02 2004-05-06 Cho James B. Apparatus and method for dynamically adjusting receiver bandwidth
TW200516928A (en) * 2003-11-04 2005-05-16 Benq Corp Method of controlling signal transmission in a local area network
TW200939696A (en) * 2008-03-03 2009-09-16 Cybertan Technology Inc Network bandwidth detecting method of network equipments

Also Published As

Publication number Publication date
TW201206116A (en) 2012-02-01

Similar Documents

Publication Publication Date Title
Jain et al. End-to-end estimation of the available bandwidth variation range
US20060215574A1 (en) Bandwidth estimation in broadband access networks
US10003506B2 (en) Automatic discovery and enforcement of service level agreement settings
CA2554876A1 (en) Method and apparatus for characterizing an end-to-end path of a packet-based network
KR100640492B1 (en) Method for estimating available bandwidth of network
CN100369424C (en) Method and apparatus for estimating terminal to terminal service grade protocol
CN104486163B (en) A kind of single-end available bandwidth measuring and the terminal using this method
KR20110044258A (en) Data streaming through time-varying transport media
WO2013172996A1 (en) Link microbenchmarking with idle link correction
TWI419515B (en) The network bandwidth upper limit statistics and adjustment method of network equipment
GB2459814A (en) Measuring method, measuring device, and computer program
CN101247291A (en) Method for detecting network band width of network appliance
KR101628377B1 (en) Apparatus and method for performing congestion control in a communication system
JP2009253882A (en) Band management program, band management apparatus and band management method
SE540705C2 (en) Mobile radio network node and method for estimating the capacity of a link in a radio communications network
JP4674862B2 (en) Traffic volume estimation method, traffic volume estimation device, traffic volume estimation program, and packet discard prevention method using the traffic volume estimation method
CN108055147B (en) Method for analyzing service performance of communication data network
KR101210926B1 (en) Server, apparatus and method for allocating cost of dynamic routing
WO2020200026A1 (en) Method for measuring available bandwidth and communication device
CN101917339A (en) Network bandwidth upper limit counting and adjusting method of network equipment
Selin et al. Available bandwidth measurement technique using impulsive packet probing for monitoring end-to-end service quality on the internet
Villa et al. Detecting period and burst durations in video streaming by means of active probing
CN111404783A (en) Network state data acquisition method and system
KR100932557B1 (en) Bandwidth Estimation Model and Its Method
Ramanathan et al. What do packet dispersion techniques measure?

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees