TWI649989B - System and method of available bandwidth estimation - Google Patents

System and method of available bandwidth estimation Download PDF

Info

Publication number
TWI649989B
TWI649989B TW106143974A TW106143974A TWI649989B TW I649989 B TWI649989 B TW I649989B TW 106143974 A TW106143974 A TW 106143974A TW 106143974 A TW106143974 A TW 106143974A TW I649989 B TWI649989 B TW I649989B
Authority
TW
Taiwan
Prior art keywords
packets
test packets
packet
test
sent
Prior art date
Application number
TW106143974A
Other languages
Chinese (zh)
Other versions
TW201929499A (en
Inventor
黃冠傑
方澤涵
許真民
Original Assignee
中華電信股份有限公司
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 中華電信股份有限公司 filed Critical 中華電信股份有限公司
Priority to TW106143974A priority Critical patent/TWI649989B/en
Application granted granted Critical
Publication of TWI649989B publication Critical patent/TWI649989B/en
Publication of TW201929499A publication Critical patent/TW201929499A/en

Links

Abstract

本案提供一種估算網路可用頻寬之系統及其方法,係以網際網路控制訊息協定(Internet Control Message Protocol,ICMP)來估算網路可用頻寬,該方法係根據頻寬估算設定參數於起始節點以瞬間突發方式送出測試封包至目標節點,接著統計自目標節點成功回傳的回覆封包之數量,推算出上下行總傳輸量及全程傳輸時間,藉此估算現行起始節點至目標節點之間網路傳輸路徑的可用頻寬大小,作為是否能滿足使用者資料傳輸或網路應用服務運作所需頻寬之參考。 The present invention provides a system and method for estimating the available bandwidth of a network, and estimates the available bandwidth of the network by using an Internet Control Message Protocol (ICMP), which is based on the bandwidth estimation setting parameter. The starting node sends the test packet to the target node in an instantaneous burst manner, and then counts the number of reply packets successfully returned from the target node, and deduces the total uplink and downlink transmission volume and the whole transmission time, thereby estimating the current starting node to the target node. The available bandwidth of the network transmission path is used as a reference for the bandwidth required for user data transmission or network application service operation.

Description

估算網路可用頻寬之系統及其方法 System and method for estimating network available bandwidth

本案關於一種估算網路可用頻寬技術,更具體地,係關於一種以ICMP協定來估算網路可用頻寬之系統及其方法。 This case relates to a technique for estimating the available bandwidth of a network, and more particularly to a system and method for estimating the available bandwidth of a network by using an ICMP protocol.

隨著網際網路的快速普及,儲存科技、影音媒體、大資料運算之蓬勃發展,現今各式各樣的大資料皆頻繁地經由網際網路進行傳輸、遠端儲存及分享。 With the rapid spread of the Internet, storage technology, audio and video media, and large data computing are booming. Today, all kinds of large data are frequently transmitted, stored and shared via the Internet.

此外,資料於網路上傳輸時,對一般使用者來說,最直接的感受即是傳輸速率,對企業客戶來說,傳輸速率將影響企業運作效率,間接影響客戶對於網路服務供應商之黏著性,因此網路服務供應商必須提供網路傳輸頻寬之保障,以維護客戶之權益。 In addition, when data is transmitted over the Internet, the most direct feeling for the average user is the transmission rate. For enterprise customers, the transmission rate will affect the operational efficiency of the enterprise and indirectly affect the customer's adhesion to the network service provider. Sex, so network service providers must provide the guarantee of network transmission bandwidth to protect the rights of customers.

現今常見網路頻寬測試多數透過安裝特定測速軟體或經由檔案伺服器實際下載檔案進行測試,惟皆有其先天環境之要求與限制,如何在短時間內快速量測網路傳輸路徑之可用頻寬大小,並且不需於終端設備安裝軟體或開啟檔案伺服器存取之功能進行頻寬測試,為目前亟待解決之議題。 Most of today's common network bandwidth tests are tested by installing a specific speed software or actually downloading files via a file server, but all have their inherent environment requirements and limitations. How to quickly measure the available frequency of the network transmission path in a short time. The wide size and bandwidth testing without the need to install software on the terminal device or open the file server access is an urgent issue to be solved.

為解決至少上述問題,本發明提供一種估算網路可用頻寬之系統,係包含:一起始裝置,用於連通一目標裝置,包括:一讀取模組,用於讀取一組頻寬估算設定參數;一發送及接收模組,係根據該組頻寬估算設定參數,發送複數個測試封包至該目標裝置以記錄發送該複數個測試封包中的第一個測試封包之一發送時間,以及接收由該目標裝置接收該複數個測試封包後所回傳之複數個回覆封包以記錄接收該複數個回覆封包中的最後一個回覆封包之一接收時間;一判斷模組,用於判斷由該發送及接收模組所接收之複數個回覆封包的數量與發送失敗之測試封包的數量之總和是否等於所發送之複數個測試封包的數量,以及判斷該發送失敗之測試封包的數量是否等於所發送之複數個測試封包的數量;及一估算模組,係於該判斷模組判斷該複數個回覆封包的數量與該發送失敗之測試封包的數量之總和等於所發送之複數個測試封包的數量,且該發送失敗之測試封包的數量不等於所發送之複數個測試封包的數量時,根據該組頻寬估算設定參數中的封包大小、該複數個回覆封包的數量、該發送時間及該接收時間估算該起始裝置與該目標裝置之間的可用頻寬。 In order to solve at least the above problems, the present invention provides a system for estimating the available bandwidth of a network, comprising: an initiating device for connecting a target device, comprising: a reading module for reading a set of bandwidth estimates Setting a parameter; a sending and receiving module, according to the set of bandwidth estimation setting parameters, sending a plurality of test packets to the target device to record and send the sending time of one of the first test packets in the plurality of test packets, and Receiving, by the target device, the plurality of reply packets returned by the plurality of test packets to record a receiving time of receiving one of the last reply packets in the plurality of reply packets; and a determining module, configured to determine, by the sending And whether the sum of the number of the plurality of reply packets received by the receiving module and the number of test packets failed to be transmitted is equal to the number of the plurality of test packets sent, and whether the number of test packets failed to be sent is equal to the sent The number of the plurality of test packets; and an estimation module, wherein the determining module determines the number of the plurality of reply packets The sum of the number of test packets that failed to be sent is equal to the number of the plurality of test packets sent, and the number of test packets that failed to be transmitted is not equal to the number of test packets sent, based on the set of bandwidth estimates. The packet size in the parameter, the number of the plurality of reply packets, the transmission time, and the reception time estimate the available bandwidth between the initiating device and the target device.

於一實施例中,該測試封包為ICMP Ping封包,該回覆封包為ICMP Ping Echo封包。 In an embodiment, the test packet is an ICMP Ping packet, and the reply packet is an ICMP Ping Echo packet.

於一實施例中,該起始節點發送該複數個測試封包的方式為瞬間突發(burst)。 In an embodiment, the manner in which the starting node sends the plurality of test packets is an instantaneous burst.

於一實施例中,該組頻寬估算設定參數包括封包數 量、封包失效時間、目標節點網際網路協定位置、及該封包大小。 In an embodiment, the set of bandwidth estimation setting parameters includes the number of packets Quantity, packet expiration time, destination node internet protocol location, and the size of the packet.

為解決至少上述問題,本發明另提供一種估算網路可用頻寬之方法,包含下列步驟:根據一組頻寬估算設定參數,由一起始節點發送複數個測試封包至一目標節點以記錄發送該複數個測試封包中的第一個測試封包之一發送時間;由該目標節點接收該複數個測試封包以回傳複數個回覆封包,俾供該起始節點接收該複數個回覆封包以記錄接收該複數個回覆封包中的最後一個回覆封包之一接收時間;以及判斷該起始節點所接收之複數個回覆封包的數量與發送失敗之測試封包的數量之總和是否等於所發送之複數個測試封包的數量,且於該發送失敗之測試封包的數量不等於所發送之複數個測試封包的數量時,根據該組頻寬估算設定參數中的封包大小、該複數個回覆封包的數量、該發送時間及該接收時間估算該起始節點與該目標節點之間的可用頻寬。 In order to solve at least the above problems, the present invention further provides a method for estimating a bandwidth available to a network, comprising the steps of: estimating a setting parameter according to a set of bandwidths, and transmitting, by a starting node, a plurality of test packets to a target node to record and send the Sending time of one of the first test packets in the plurality of test packets; receiving, by the target node, the plurality of test packets to return a plurality of reply packets, and the start node receiving the plurality of reply packets to record and receive the Receiving a time of one of the last reply packets in the plurality of reply packets; and determining whether the sum of the number of the plurality of reply packets received by the start node and the number of test packets failed to be transmitted is equal to the number of the test packets sent The number, and when the number of test packets for which the transmission fails is not equal to the number of the plurality of test packets sent, the packet size in the setting parameter, the number of the plurality of reply packets, the sending time, and The reception time estimates the available bandwidth between the starting node and the target node.

於一實施例中,上述方法更包括判斷該起始節點所接收之複數個回覆封包的數量與該發送失敗之測試封包的數量之總和不等於所發送之複數個測試封包的數量時,令該起始節點繼續等待該目標節點回傳該回覆封包。 In an embodiment, the method further includes: determining that the sum of the number of the plurality of replies received by the originating node and the number of the failed test packets is not equal to the number of the plurality of test packets sent, The originating node continues to wait for the target node to return the reply packet.

於一實施例中,上述方法更包括判斷該發送失敗之測試封包的數量等於所發送之複數個測試封包的數量時,表示該起始節點與該目標節點之間無法連通。 In an embodiment, the method further includes determining that the number of test packets that failed to be transmitted is equal to the number of the plurality of test packets sent, indicating that the starting node and the target node are disconnected.

於一實施例中,根據該封包大小和該複數個回覆封包的數量估算上下行總傳輸量,且根據該發送時間和該接收 時間估算總傳輸時間,以根據該上下行傳輸量及該總傳輸時間估算該起始節點與該目標節點之間的可用頻寬。 In an embodiment, estimating the total uplink and downlink transmission amount according to the packet size and the number of the plurality of reply packets, and according to the sending time and the receiving The time is estimated as a total transmission time to estimate an available bandwidth between the starting node and the target node according to the uplink and downlink transmission amount and the total transmission time.

因此,本案以ICMP協定來快速估算網路可用頻寬,透過於起始節點瞬間突發送出ICMP Ping測試封包至目標網路節點,統計成功回傳之ICMP Ping Echo回覆封包數量,推算出上下行總傳輸量及全程傳輸時間,估算出當下此網路傳輸路徑之可用頻寬大小,作為是否能滿足使用者資料傳輸或網路應用服務運作所需頻寬之參考。 Therefore, in this case, the ICMP protocol is used to quickly estimate the available bandwidth of the network. The ICMP Ping test packet is sent out to the target network node through the initial node. The number of ICMP Ping Echo reply packets is successfully counted, and the uplink and downlink are calculated. The total transmission volume and the total transmission time estimate the available bandwidth of the current network transmission path as a reference for whether the bandwidth required for user data transmission or network application service operation can be satisfied.

1‧‧‧起始節點 1‧‧‧ starting node

1a‧‧‧起始裝置 1a‧‧‧Starting device

11‧‧‧讀取模組 11‧‧‧Reading module

12‧‧‧發送及接收模組 12‧‧‧Send and Receive Modules

13‧‧‧判斷模組 13‧‧‧Judgement module

14‧‧‧估算模組 14‧‧‧ Estimation module

2‧‧‧目標節點 2‧‧‧ Target node

2a‧‧‧目標裝置 2a‧‧‧Target device

101‧‧‧錄影監控範圍 101‧‧‧Video surveillance range

102‧‧‧DVR主機 102‧‧‧DVR host

103‧‧‧數位攝影機 103‧‧‧Digital cameras

104‧‧‧集中監看主機 104‧‧‧Concently monitor the host

105‧‧‧操作人員 105‧‧‧Operators

S201~S208‧‧‧步驟 S201~S208‧‧‧Steps

本案揭露之具體實施例將搭配下列圖式詳述,這些說明顯示在下列圖式:第1圖為本案之估算網路可用頻寬之系統示意圖;第2圖為本案之估算網路可用頻寬之系統之一實施例方塊圖;第3圖為本案之估算網路可用頻寬之方法流程圖;以及第4圖為本案之估算網路可用頻寬之方法之一實施例。 The specific embodiments disclosed in the present disclosure will be described in detail with the following figures. These descriptions are shown in the following figures: Figure 1 is a schematic diagram of the system for estimating the available bandwidth of the network; Figure 2 is the estimated available bandwidth of the network. A block diagram of one embodiment of the system; FIG. 3 is a flow chart of a method for estimating the available bandwidth of the network; and FIG. 4 is an embodiment of the method for estimating the available bandwidth of the network.

以下藉由特定的實施例說明本發明之實施方式,熟習此項技藝之人士可由本文所揭示之內容輕易地瞭解本發明之其他優點及功效。本說明書所附圖式所繪示之結構、比例、大小等均僅用於配合說明書所揭示之內容,以供熟悉此技藝之人士之瞭解與閱讀,非用於限定本發明可實施之限定條件,故任何修飾、改變或調整,在不影響本發明所能產生之功效及所能達成之目的下,均應仍落在本發明所揭示之技術內容得能涵蓋之範圍內。 The embodiments of the present invention are described below by way of specific examples, and those skilled in the art can readily appreciate other advantages and advantages of the present invention. The structure, the proportions, the sizes and the like of the present invention are only used in conjunction with the disclosure of the specification for the understanding and reading of those skilled in the art, and are not intended to limit the conditions for the implementation of the present invention. Therefore, any modifications, changes or adjustments are intended to be included within the scope of the technical scope of the present invention without departing from the scope of the invention.

參閱第1和2圖,本案之估算網路可用頻寬之系統及方法主要由起始節點1以瞬間突發(burst)方式送出ICMP Ping測試封包至目標節點2,以測量其成功收到ICMP Ping Echo回覆封包的數量,藉此推算出上下行總傳輸量及全程傳輸時間,計算出起始節點1與目標節點2之間網路傳輸路徑之保證可用頻寬大小。詳而言之,如第2圖所示,起始裝置1a包括讀取模組11、發送及接收模組12、判斷模組13及估算模組14。 Referring to Figures 1 and 2, the system and method for estimating the available bandwidth of the network in this case is mainly that the originating node 1 sends an ICMP Ping test packet to the target node 2 in an instantaneous burst to measure the success of receiving the ICMP. Ping Echo replies the number of packets, thereby deducing the total uplink and downlink transmission volume and the total transmission time, and calculating the guaranteed available bandwidth of the network transmission path between the starting node 1 and the target node 2. In detail, as shown in FIG. 2, the initiating device 1a includes a reading module 11, a transmitting and receiving module 12, a judging module 13, and an estimating module 14.

讀取模組11用於讀取一組頻寬估算設定參數,包括封包數量、封包大小、封包失效時間(timeout)、及目標裝置網際網路協定位置,其中,該組頻寬估算設定參數可根據當前網路物理特性進行調整。 The reading module 11 is configured to read a set of bandwidth estimation setting parameters, including a packet number, a packet size, a packet expiration time (timeout), and a target device internet protocol location, wherein the group bandwidth estimation setting parameter may be Adjust according to the current network physical characteristics.

發送及接收模組12係根據該組頻寬估算設定參數發送複數個測試封包(如ICMP Ping封包)至該目標裝置2a,以記錄發送該複數個測試封包中的第一個測試封包之一發送時間,發送及接收模組12另接收由目標裝置2a接收該複數個測試封包後所回傳之複數個回覆封包(如ICMP Ping Echo封包),以記錄接收該複數個回覆封包中的最後一個回覆封包之一接收時間。此外,發送該複數個測試封包的方式為瞬間突發(burst),以盡可能塞滿網路頻寬,倘若頻寬不足,則測試封包(ICMP Ping封包)會因超過失效時間而遭丟棄,而遭丟棄的測試封包則如此視為發送失敗的測試封包,可藉此測出當下網路頻寬所能容忍之最大傳輸量。 The sending and receiving module 12 sends a plurality of test packets (such as ICMP ping packets) to the target device 2a according to the set of bandwidth estimation setting parameters, to send and send one of the first test packets in the plurality of test packets. The time, the sending and receiving module 12 further receives a plurality of reply packets (such as an ICMP Ping Echo packet) returned by the target device 2a after receiving the plurality of test packets, to record and receive the last reply in the plurality of reply packets. One of the packets receives the time. In addition, the manner of transmitting the plurality of test packets is an instantaneous burst to fill the network bandwidth as much as possible. If the bandwidth is insufficient, the test packet (ICMP Ping packet) is discarded due to exceeding the expiration time. The discarded test packet is treated as a test packet that fails to be transmitted, thereby measuring the maximum amount of transmission that can be tolerated by the current network bandwidth.

判斷模組13用於判斷由發送及接收模組12所接收之 複數個回覆封包(ICMP Ping Echo封包)的數量與發送失敗之測試封包的數量之總和是否等於由發送及接收模組12所發送之複數個測試封包(ICMP Ping封包)的數量,以及判斷該發送失敗之測試封包的數量是否等於由發送及接收模組12所發送之複數個測試封包(ICMP Ping封包)的數量。另外,當判斷模組13判斷由發送及接收模組12所接收之複數個回覆封包(ICMP Ping Echo封包)的數量與該發送失敗之測試封包的數量之總和不等於由發送及接收模組12所發送之複數個測試封包(ICMP Ping封包)的數量時,令發送及接收模組12繼續等待目標裝置2a的回傳回覆封包。另外,當判斷模組13判斷該發送失敗之測試封包的數量等於由發送及接收模組12所發送之複數個測試封包(ICMP Ping封包)的數量時,表示起始裝置1a與目標裝置2a之間無法連通。 The determining module 13 is configured to determine that the receiving and receiving module 12 receives Whether the sum of the number of multiple reply packets (ICMP Ping Echo packets) and the number of failed test packets is equal to the number of test packets (ICMP Ping packets) sent by the transmitting and receiving module 12, and determining the transmission Whether the number of failed test packets is equal to the number of test packets (ICMP ping packets) sent by the transmitting and receiving module 12. In addition, when the judging module 13 judges that the sum of the number of the plurality of reply packets (ICMP Ping Echo packets) received by the transmitting and receiving module 12 and the number of the test packets that failed to be transmitted is not equal to that of the transmitting and receiving module 12 When the number of test packets (ICMP ping packets) transmitted is sent, the transmitting and receiving module 12 continues to wait for the return packet of the target device 2a to return. In addition, when the determining module 13 determines that the number of test packets that failed to be transmitted is equal to the number of the plurality of test packets (ICMP ping packets) sent by the transmitting and receiving module 12, it indicates that the initiating device 1a and the target device 2a Unable to connect.

估算模組14係於判斷模組13判斷由發送及接收模組12所接收之複數個回覆封包(ICMP Ping Echo封包)的數量與該發送失敗之測試封包的數量之總和等於由發送及接收模組12所發送之複數個測試封包(ICMP Ping封包)的數量,且該發送失敗之測試封包的數量不等於由發送及接收模組12所發送之複數個測試封包(ICMP Ping封包)的數量時,根據該組頻寬估算設定參數中的封包大小、該複數個回覆封包(ICMP Ping Echo封包)的數量、該發送時間及該接收時間,估算起始裝置1a與目標裝置2a之間的可用頻寬。 The estimation module 14 is determined by the judging module 13 to determine that the sum of the number of the plurality of reply packets (ICMP Ping Echo packets) received by the transmitting and receiving module 12 and the number of test packets that failed to be transmitted is equal to the transmission and reception modes. The number of test packets (ICMP ping packets) sent by the group 12, and the number of test packets that failed to be transmitted is not equal to the number of test packets (ICMP ping packets) sent by the transmitting and receiving module 12 Estimating the available frequency between the initiating device 1a and the target device 2a according to the packet size in the set of bandwidth estimation parameters, the number of the plurality of reply packets (ICMP Ping Echo packets), the sending time, and the receiving time. width.

接著說明本案之估算網路可用頻寬之方法流程,主要 流程如第3圖所示,於步驟S201中,讀取一組頻寬估算設計參數,包括封包數量、封包大小、封包失效時間、及目標裝置網際網路協定位置。接著進至步驟S202。 Next, the method flow for estimating the available bandwidth of the network in this case will be described. As shown in FIG. 3, in step S201, a set of bandwidth estimation design parameters are read, including the number of packets, the packet size, the packet failure time, and the target device internet protocol location. Then it proceeds to step S202.

於步驟S202中,根據該組頻寬估算設計參數,起始節點發送複數個測試封包(ICMP Ping封包)至目標節點。於此步驟中,記錄發送該複數個測試封包中的第一個測試封包之一發送時間。 In step S202, the design parameters are estimated according to the set of bandwidths, and the starting node sends a plurality of test packets (ICMP ping packets) to the target node. In this step, the record sends one of the first test packets in the plurality of test packets.

於步驟S203中,目標節點接收複數個測試封包以回傳複數個回覆封包(ICMP Ping Echo封包),接著進至步驟S204。 In step S203, the target node receives a plurality of test packets to transmit back a plurality of reply packets (ICMP Ping Echo packets), and then proceeds to step S204.

於步驟S204中,起始節點接收複數個回覆封包(ICMP Ping Echo封包),接著進至步驟S205。於此步驟中,記錄接收該複數個回覆封包(ICMP Ping Echo封包)中的最後一個回覆封包之一接收時間。 In step S204, the originating node receives a plurality of reply packets (ICMP Ping Echo packets), and then proceeds to step S205. In this step, the record receives the reception time of one of the last reply packets in the plurality of reply packets (ICMP Ping Echo packets).

於步驟S205中,判斷複數個回覆封包(ICMP Ping Echo封包)的數量與發送失敗之測試封包的數量之總和是否等於所發送之複數個測試封包(ICMP Ping封包)的數量,若是,則進至步驟S206;若否,則返回步驟S204以繼續接收來自目標節點的回覆封包。 In step S205, it is determined whether the sum of the number of the plurality of replies (ICMP Ping Echo packets) and the number of test packets that failed to be sent is equal to the number of the plurality of test packets (ICMP ping packets) sent, and if so, proceeds to Step S206; if no, return to step S204 to continue receiving the reply packet from the target node.

於步驟S206中,判斷發送失敗之測試封包的數量是否等於所發送之複數個測試封包(ICMP Ping封包)的數量,若否,則進至步驟S207;若是,則進至步驟S208,表示起始節點與目標節點之間無法連通。 In step S206, it is determined whether the number of test packets failed to be transmitted is equal to the number of the plurality of test packets (ICMP ping packets) sent, and if not, proceeding to step S207; if yes, proceeding to step S208, indicating the start The node and the target node cannot communicate.

於步驟S208中,根據該封包大小、該複數個回覆封包(ICMP Ping Echo封包)的數量、該發送時間及該接收時間 估算該起始節點與該目標節點之間的可用頻寬(Available Bandwidth)。計算公式如下: In step S208, the available bandwidth (Available Bandwidth) between the starting node and the target node is estimated according to the packet size, the number of the multiple reply packets (ICMP Ping Echo packets), the sending time, and the receiving time. . Calculated as follows:

其中,PacketSize為ICMP Ping封包大小;ΣP success 為收到的ICMP Ping Echo封包總數;T firstSend 為第一個送出的ICMP Ping封包之發送時間;T lastReceive 為收到最後一個ICMP Ping Echo封包之接收時間;因ICMP Ping封包與ICMP Ping Echo封包大小幾乎相同,故計算上下行直接將封包數乘以2;頻寬單位為bits per second(bps),傳輸量需將byte轉為bit,故分子需乘上8。 PacketSize is the size of the ICMP Ping packet; Σ P success is the total number of ICMP Ping Echo packets received; T firstSend is the sending time of the first ICMP Ping packet sent; T lastReceive is the receipt of the last ICMP Ping Echo packet. Time; because the ICMP Ping packet is almost the same size as the ICMP Ping Echo packet, calculate the number of packets directly multiplied by 2 in the uplink and downlink; the bandwidth unit is bits per second (bps), and the transmission amount needs to be converted into bit, so the molecule needs Multiply by 8.

請參閱第4圖,用以說明本案估算網路可用頻寬之系統及方法之一實施例,係例如為DVR影片備份之監控架構,其包含一到多個錄影監控範圍101,包含DVR主機102及一至多台數位攝影機103,負責即時監看一個區域內之即時影像並儲存即時影像於DVR主機102中;集中監看主機104可透過有線及無線網路組成網路連線路徑與多個錄影監控範圍101中之DVR主機102連結,由操作人員105依需求透過集中監看主機104進行遠端影片檢視及影片備份歸檔。 Please refer to FIG. 4 for illustrating an embodiment of a system and method for estimating the available bandwidth of the network. For example, the monitoring architecture of the DVR movie backup includes one or more video monitoring ranges 101, including the DVR host 102. And one or more digital cameras 103, which are responsible for real-time monitoring of real-time images in an area and storing real-time images in the DVR host 102; the centralized monitoring host 104 can form a network connection path and multiple videos through wired and wireless networks. The DVR host 102 in the monitoring range 101 is connected, and the operator 105 performs remote video viewing and movie backup archiving through the centralized monitoring host 104 as needed.

為確保操作人員105臨時性檢視或備份影片(如:舉證 用途)時之頻寬,可定期測試集中監控主機至多台DVR間之網路頻寬,可依需求調整定期監控之頻率;本案實施例流程例如如下: 首先設定定期測試頻寬之執行頻率(如:每小時執行一次);接著讀取ICMP Ping封包大小、封包數量、封包失效時間、目標節點IP位置設定(如512KByte,1000個封包、封包失效時間為1秒、目標節點為DVR主機102之IP)。 To ensure that the operator 105 temporarily views or backs up the video (eg: proof Use) The bandwidth can be periodically tested to monitor the network bandwidth between the host and the multiple DVRs. The frequency of regular monitoring can be adjusted according to the requirements. The process of this example is as follows: First set the execution frequency of the periodic test bandwidth (for example, execute once every hour); then read the ICMP Ping packet size, the number of packets, the packet failure time, and the target node IP location setting (such as 512KByte, 1000 packets, packet expiration time is 1 second, the target node is the IP of the DVR host 102).

於啟動時間點由集中監看主機104瞬間突發(burst)送出10000個ICMP Ping封包至遠端DVR主機102,並記錄發送時間為T firstSend At the startup time point, the centralized monitoring host 104 instantaneously bursts and sends 10000 ICMP Ping packets to the remote DVR host 102, and records the transmission time as T firstSend .

於集中監看主機104逐一接收ICMP Ping Echo封包,若實際收到ICMP Ping Echo封包數為6864個,傳輸過程總共歷時1.37秒,以上述公式計算網路可用頻寬為 The centralized monitoring host 104 receives the ICMP Ping Echo packets one by one. If the actual number of ICMP Ping Echo packets received is 6864, the transmission process lasts for 1.37 seconds, and the available bandwidth of the network is calculated by the above formula.

綜上所述,本案估算網路可用頻寬之系統及其方法係於判斷起始節點瞬間突發所發送出至目標節點之ICMP Ping封包的數量、爾後目標節點回覆之ICMP Ping Echo封包的數量、以及發送失敗的ICMP Ping封包的數量之數量,藉此進行頻寬估算計算流程。主要方法為在起始節點持續接收並統計ICMP Ping Echo封包與發送失敗的ICMP Ping封包數量,直到總數等於送出的ICMP Ping封包數量。若發送失敗的ICMP Ping封包數量等於送出的ICMP Ping封包,則判定此目標節點為不可到達之節點;反之, 則判定此節點可到達,並進入端對端可用頻寬計算流程。 In summary, the system and method for estimating the available bandwidth of the network in this case is to determine the number of ICMP Ping packets sent to the target node by the initial node and the number of ICMP Ping Echo packets replied by the target node. And the number of ICMP Ping packets that failed to be sent, thereby performing a bandwidth estimation calculation process. The main method is to continuously receive and count the number of ICMP Ping Echo packets and failed ICMP Ping packets at the originating node until the total number is equal to the number of ICMP Ping packets sent. If the number of failed ICMP Ping packets is equal to the sent ICMP Ping packet, it is determined that the target node is an unreachable node; Then it is determined that the node can reach and enter the end-to-end available bandwidth calculation process.

因此,本案能在短時間內快速量測網路傳輸路徑之可用頻寬大小,並且不需於終端設備安裝軟體或開啟檔案伺服器存取之功能進行頻寬測試。 Therefore, the present invention can quickly measure the available bandwidth of the network transmission path in a short time, and does not need to perform the bandwidth test on the terminal device installation software or the function of opening the file server access.

上述實施例僅例示性說明本發明之功效,而非用於限制本發明,任何熟習此項技藝之人士均可在不違背本發明之精神及範疇下對上述該些實施態樣進行修飾與改變。因此本發明之權利保護範圍,應如後述之申請專利範圍所列。 The above-described embodiments are merely illustrative of the effects of the present invention, and are not intended to limit the present invention, and those skilled in the art can modify and modify the above-described embodiments without departing from the spirit and scope of the invention. . Therefore, the scope of protection of the present invention should be as set forth in the appended claims.

Claims (8)

一種估算網路可用頻寬之系統,係包含:一起始裝置,用於連通一目標裝置,包括:一讀取模組,用於讀取一組頻寬估算設定參數;一發送及接收模組,係根據該組頻寬估算設定參數,發送複數個測試封包至該目標裝置以記錄發送該複數個測試封包中的第一個測試封包之一發送時間,以及接收由該目標裝置接收該複數個測試封包後所回傳之複數個回覆封包以記錄接收該複數個回覆封包中的最後一個回覆封包之一接收時間,其中,該測試封包為ICMP Ping封包且該起始裝置發送該複數個測試封包的方式為瞬間突發(burst),以及其中,該回覆封包為ICMP Ping Echo封包;一判斷模組,用於判斷由該發送及接收模組所接收之複數個回覆封包的數量與發送失敗之測試封包的數量之總和是否等於所發送之複數個測試封包的數量,以及判斷該發送失敗之測試封包的數量是否等於所發送之複數個測試封包的數量;及一估算模組,係於該判斷模組判斷該複數個回覆封包的數量與該發送失敗之測試封包的數量之總和等於所發送之複數個測試封包的數量,且該發送失敗之測試封包的數量不等於所發送之複 數個測試封包的數量時,根據該組頻寬估算設定參數中的封包大小、該複數個回覆封包的數量、該發送時間及該接收時間估算該起始裝置與該目標裝置之間的可用頻寬。 A system for estimating the available bandwidth of a network includes: an initiating device for connecting a target device, comprising: a reading module for reading a set of bandwidth estimation setting parameters; and a transmitting and receiving module And sending a plurality of test packets to the target device to record a transmission time of one of the first test packets in the plurality of test packets, and receiving the plurality of test packets received by the target device according to the set of bandwidth estimation setting parameters. And detecting, by the plurality of replies, the acknowledgment packet, the one of the plurality of replies of the plurality of replies, the ICMP ping packet, and the initiating device sending the plurality of test packets The method is an instantaneous burst, and wherein the reply packet is an ICMP Ping Echo packet; a judging module is configured to determine the number of the plurality of reply packets received by the sending and receiving module and the sending failure Whether the sum of the number of test packets is equal to the number of test packets sent, and the number of test packets that determine the failure to transmit is Equivalent to the number of the plurality of test packets sent; and an estimation module, wherein the determining module determines that the sum of the number of the plurality of reply packets and the number of test packets failed to be sent is equal to the plurality of test packets sent Quantity, and the number of test packets that failed to be sent is not equal to the number sent When the number of the test packets is determined, the available packet frequency between the initial device and the target device is estimated according to the packet size in the set of bandwidth estimation setting parameters, the number of the plurality of reply packets, the sending time, and the receiving time. width. 如申請專利範圍第1項所述之系統,其中,該判斷模組於判斷該起始裝置所接收之複數個回覆封包的數量與該發送失敗之測試封包的數量之總和不等於所發送之複數個測試封包的數量時,令該發送及接收模組繼續等待該目標裝置回傳該回覆封包,以及其中,該判斷模組於判斷該發送失敗之測試封包的數量等於所發送之複數個測試封包的數量時,表示該起始裝置與該目標裝置之間無法連通。 The system of claim 1, wherein the determining module determines that the sum of the number of the plurality of reply packets received by the initiating device and the number of test packets that failed to be transmitted is not equal to the number of the transmitted packets. When the number of test packets is tested, the sending and receiving module continues to wait for the target device to return the reply packet, and wherein the determining module determines that the number of test packets failed to be sent is equal to the plurality of test packets sent. The number indicates the inability of the initiating device to communicate with the target device. 如申請專利範圍第1項所述之系統,其中,該組頻寬估算設定參數係包括封包數量、封包失效時間、目標裝置網際網路協定位置、及該封包大小。 The system of claim 1, wherein the set of bandwidth estimation setting parameters comprises a number of packets, a packet expiration time, a target device internet protocol location, and a size of the packet. 一種估算網路可用頻寬之方法,包含下列步驟:根據一組頻寬估算設定參數,由一起始節點發送複數個測試封包至一目標節點以記錄發送該複數個測試封包中的第一個測試封包之一發送時間;由該目標節點接收該複數個測試封包以回傳複數個回覆封包,俾供該起始節點接收該複數個回覆封包以記錄接收該複數個回覆封包中的最後一個回覆封包之一接收時間,其中,該測試封包為ICMP Ping封包且該起始節點發送該複數個測試封包的方式為瞬間突發(burst),以及其中,該回覆封包為ICMP Ping Echo 封包;以及判斷該起始節點所接收之複數個回覆封包的數量與發送失敗之測試封包的數量之總和是否等於所發送之複數個測試封包的數量,且於該發送失敗之測試封包的數量不等於所發送之複數個測試封包的數量時,根據該組頻寬估算設定參數中的封包大小、該複數個回覆封包的數量、該發送時間及該接收時間估算該起始節點與該目標節點之間的可用頻寬。 A method for estimating a bandwidth available for a network, comprising the steps of: estimating parameters according to a set of bandwidth estimates, wherein a starting node sends a plurality of test packets to a target node to record and transmit the first test of the plurality of test packets. Transmitting one of the packets; receiving, by the target node, the plurality of test packets to return a plurality of reply packets, and the start node receiving the plurality of reply packets to record and receive the last reply packet in the plurality of reply packets a receiving time, wherein the test packet is an ICMP Ping packet and the starting node sends the plurality of test packets in a burst, and wherein the reply packet is ICMP Ping Echo And determining whether the sum of the number of the plurality of replies received by the originating node and the number of test packets failed to be sent is equal to the number of the plurality of test packets sent, and the number of test packets failed to be sent is not When the number of the plurality of test packets sent is equal to, the packet size in the set parameter, the number of the plurality of reply packets, the sending time, and the receiving time are estimated according to the set of bandwidth estimates. The available bandwidth between. 如申請專利範圍第4項所述之方法,更包括判斷該起始節點所接收之複數個回覆封包的數量與該發送失敗之測試封包的數量之總和不等於所發送之複數個測試封包的數量時,令該起始節點繼續等待該目標節點回傳該回覆封包。 The method of claim 4, further comprising determining that the sum of the number of the plurality of reply packets received by the originating node and the number of the test packets failed to be sent is not equal to the number of the plurality of test packets sent. When the starting node continues to wait for the target node to return the reply packet. 如申請專利範圍第4項所述之方法,更包括判斷該發送失敗之測試封包的數量等於所發送之複數個測試封包的數量時,表示該起始節點與該目標節點之間無法連通。 The method of claim 4, further comprising determining that the number of test packets that failed to be transmitted is equal to the number of the plurality of test packets sent, indicating that the starting node and the target node are disconnected. 如申請專利範圍第4項所述之方法,其中,估算該起始節點與該目標節點之間的可用頻寬之步驟更包括:根據該封包大小和該複數個回覆封包的數量估算上下行總傳輸量,且根據該發送時間和該接收時間估算總傳輸時間,以根據該上下行傳輸量及該總傳輸時間估算該起始節點與該目標節點之間的可用頻寬。 The method of claim 4, wherein the step of estimating the available bandwidth between the starting node and the target node further comprises: estimating the total uplink and downlink according to the packet size and the number of the plurality of reply packets. The amount of transmission, and estimating the total transmission time according to the transmission time and the reception time, to estimate the available bandwidth between the starting node and the target node according to the uplink and downlink transmission amount and the total transmission time. 如申請專利範圍第4項所述之方法,其中,該組讀取頻寬估算設定參數包括封包數量、封包失效時間、目標節點網際網路協定位置、及該封包大小。 The method of claim 4, wherein the set of read bandwidth estimation setting parameters comprises a number of packets, a packet expiration time, a target node internet protocol location, and a size of the packet.
TW106143974A 2017-12-14 2017-12-14 System and method of available bandwidth estimation TWI649989B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106143974A TWI649989B (en) 2017-12-14 2017-12-14 System and method of available bandwidth estimation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106143974A TWI649989B (en) 2017-12-14 2017-12-14 System and method of available bandwidth estimation

Publications (2)

Publication Number Publication Date
TWI649989B true TWI649989B (en) 2019-02-01
TW201929499A TW201929499A (en) 2019-07-16

Family

ID=66213852

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106143974A TWI649989B (en) 2017-12-14 2017-12-14 System and method of available bandwidth estimation

Country Status (1)

Country Link
TW (1) TWI649989B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117792963A (en) * 2022-09-22 2024-03-29 瑞昱半导体股份有限公司 Speed measuring method and speed measuring system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080201463A1 (en) * 2003-04-10 2008-08-21 Ross Liles Elliott Estimating Network Management Bandwidth
TW201038007A (en) * 2009-04-03 2010-10-16 Hon Hai Prec Ind Co Ltd Network device and method for automatically detecting network uplink bandwidth
TW201110617A (en) * 2009-09-11 2011-03-16 Hon Hai Prec Ind Co Ltd Network detecting device and method of network quality detecting thereof
CN103259696A (en) * 2013-04-19 2013-08-21 华为技术有限公司 Network bandwidth detecting method and device and network devices
CN105827476A (en) * 2016-01-21 2016-08-03 北京荣达千里科技有限公司 High-speed PING implementation method and PING testing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080201463A1 (en) * 2003-04-10 2008-08-21 Ross Liles Elliott Estimating Network Management Bandwidth
TW201038007A (en) * 2009-04-03 2010-10-16 Hon Hai Prec Ind Co Ltd Network device and method for automatically detecting network uplink bandwidth
TW201110617A (en) * 2009-09-11 2011-03-16 Hon Hai Prec Ind Co Ltd Network detecting device and method of network quality detecting thereof
CN103259696A (en) * 2013-04-19 2013-08-21 华为技术有限公司 Network bandwidth detecting method and device and network devices
CN105827476A (en) * 2016-01-21 2016-08-03 北京荣达千里科技有限公司 High-speed PING implementation method and PING testing method

Also Published As

Publication number Publication date
TW201929499A (en) 2019-07-16

Similar Documents

Publication Publication Date Title
AU2019214925B2 (en) Systems and methods for broadband communication link performance monitoring
US8135979B2 (en) Collecting network-level packets into a data structure in response to an abnormal condition
US10291489B2 (en) Monitoring network performance
US7852766B2 (en) Detection method, detecting device, reference value calculating device and recording medium
JP3270012B2 (en) Network server load detecting device, allocating device and method
EP3295612B1 (en) Uplink performance management
US11290362B2 (en) Obtaining local area network diagnostic test results
JPH10303902A (en) Method and system for evaluating network performance recognized by user
JP5753281B2 (en) In-service throughput test in distributed router / switch architecture
US7283555B2 (en) Method and apparatus for determining a polling interval in a network management system
TWI649989B (en) System and method of available bandwidth estimation
Dinh-Xuan et al. Study on the accuracy of QoE monitoring for HTTP adaptive video streaming using VNF
JP3510623B2 (en) Network server allocation device
GB2566467A (en) Obtaining local area network diagnostic test results
JP5537692B1 (en) Quality degradation cause estimation device, quality degradation cause estimation method, quality degradation cause estimation program
Kato et al. Inferring TCP Congestion Control Algorithms by Correlating Congestion Window Sizes and their Differences
Pittoni Online identification of last-mile throughput bottlenecks on home routers
EP3580892B1 (en) Transport layer monitoring and performance assessment for ott services
JP2005020214A (en) NETWORK QoS MEASUREMENT SYSTEM, AND NETWORK MEASUREMENT APPARATUS
JP5990491B2 (en) Network quality measurement system, method and program
CN112532465A (en) SNMP link detection method, device, communication equipment and storage medium
KR20090061434A (en) Network management system and method thereof
JP2005130298A (en) Data transfer controller, data transfer control method,and data transfer control program
KR20070054390A (en) Method and apparatus for estimating the quality of tcp/ip network by packet capturing
TSUNODA et al. How accurate are your network measurements?