TWI462529B - A testing method for network transmission speed - Google Patents

A testing method for network transmission speed Download PDF

Info

Publication number
TWI462529B
TWI462529B TW099107044A TW99107044A TWI462529B TW I462529 B TWI462529 B TW I462529B TW 099107044 A TW099107044 A TW 099107044A TW 99107044 A TW99107044 A TW 99107044A TW I462529 B TWI462529 B TW I462529B
Authority
TW
Taiwan
Prior art keywords
transmission rate
network
browser
file
webpage
Prior art date
Application number
TW099107044A
Other languages
Chinese (zh)
Other versions
TW201132052A (en
Inventor
Shyang Yih Chen
Yu Yung Cheng
Stevenson Huang
Ying Tsung Lee
Chun Chang Chen
Chia Hui Lin
Chen Yuan Ni
Shao I Lu
Original Assignee
Chunghwa Telecom Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chunghwa Telecom Co Ltd filed Critical Chunghwa Telecom Co Ltd
Priority to TW099107044A priority Critical patent/TWI462529B/en
Publication of TW201132052A publication Critical patent/TW201132052A/en
Application granted granted Critical
Publication of TWI462529B publication Critical patent/TWI462529B/en

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Description

網路傳輸速率測試方法Network transmission rate test method

本發明係提供一種網路傳輸速率測試方法,詳而言之,係關於一種利用分段式上傳資料及下載檔案以快速進行精確測試之網路傳輸速率測試方法。The present invention provides a network transmission rate testing method, and more particularly, to a network transmission rate testing method that utilizes segmented uploading of data and downloading of files for rapid and accurate testing.

使用者欲連結網際網路時,通常須透過網路服務提供者(Internet Service Provider,ISP)所提供之網路連線設備(如數據機)才能和網際網路相連。When users want to connect to the Internet, they usually need to connect to the Internet through a network connection device (such as a data machine) provided by an Internet Service Provider (ISP).

通常網路服務提供者會提供各種頻寬種類供客戶選擇,例如256K/64K、2M/256K、8M/640K…等,所謂頻寬(bandwidth)係指在固定的時間內有多少資料從一端傳輸到另一端的度量標準,其單位為bps(bits per second),即每秒傳送多少位元,例如2M/256K是指下載速率為2X1024X1024bits/second,上傳速率為256X1024bits/second。然而,客戶利用客戶端資料處理裝置連結網際網路時,往往發現上網速率與當初選擇的頻寬不一致,可能是家中同時上網人數過多而造成頻寬不夠,或是從客戶端資料處理裝置到伺服器之間發生問題而造成封包無法傳送,此時就可藉由測速網站來進行網路傳輸速率測試。Usually, the network service provider will provide various bandwidth types for customers to choose, such as 256K/64K, 2M/256K, 8M/640K, etc. The so-called bandwidth refers to how much data is transmitted from one end in a fixed time. The metric to the other end, the unit is bps (bits per second), that is, how many bits are transmitted per second. For example, 2M/256K means that the download rate is 2X1024X1024bits/second, and the upload rate is 256X1024bits/second. However, when customers use the client data processing device to connect to the Internet, they often find that the Internet access rate is different from the originally selected bandwidth. It may be that the number of people surfing at home is too large, resulting in insufficient bandwidth, or from the client data processing device to the servo. If there is a problem between the devices and the packet cannot be transmitted, the network transmission rate test can be performed by the speed measurement website.

目前市面上充斥著各種測速網站,其所使用的網頁技術與標準大致可分為四類技術,第一類為超文件標示語言(hypertext markup language,HTML)與客戶端腳本語言(如:JavaScript)、第二類為Flash、第三類為客戶端交換技術(如:Java Applet)、及第四類為超文件標示語言(hypertext markup language,HTML)與客戶端腳本語言(如:JavaScript)與主機端程式,其中,大多網際網路服務提供者使用超文件標示語言(hypertext markup language,HTML)與客戶端腳本語言(如:JavaScript)來編譯測速網頁,其優點為客戶不需額外安裝軟體且能適用於大多數瀏覽器,然而其缺點僅能測試網路下載速率,對於網路上傳速率則無法測試,此外,使用Flash或客戶端交換技術(如:Java Applet)技術所編譯的測速網頁能進行下載及上傳測試,然卻需額外安裝Flash或Java軟體,再者,使用超文件標示語言(hypertext markup language,HTML)、客戶端腳本語言(如:JavaScript)與主機端程式所共同編譯的測速網頁,雖然客戶不需額外安裝軟體,但客戶需選擇一檔案上傳才能測試上傳速率。另一方面,由於網路連接初始時並不穩定或受到客戶端瀏覽器的影響,通常利用小檔案進行測速時會有不準確的疑慮,而越大的測試檔案則可提供越準確的測試結果,相對地,所需的測試時間便越久,然而,若為了縮短測試時間而以小檔案進行測試,則亦造成測試結果與實際速率有明顯差異。Currently, there are various speed measuring websites on the market. The webpage technologies and standards used can be roughly divided into four types of technologies. The first category is hypertext markup language (HTML) and client-side scripting language (such as JavaScript). The second type is Flash, the third is client-side switching technology (such as: Java Applet), and the fourth is hypertext markup language (HTML) and client-side scripting language (such as JavaScript) and host. End-end programs, in which most Internet service providers use hypertext markup language (HTML) and client-side scripting languages (such as JavaScript) to compile speed-test pages. The advantage is that customers do not need to install additional software and can Applicable to most browsers, but its shortcomings can only test the network download rate, can not test the network upload rate, in addition, the speed measurement page compiled by Flash or client switching technology (such as: Java Applet) technology can be carried out Download and upload tests, but you need to install additional Flash or Java software. In addition, use hypertext markup language (HTML). Client-side scripting languages (such as: JavaScript) and co-host of the program compiled web speed, although customers do not need to install additional software, but customers need to select a file to upload test upload speed. On the other hand, because the network connection is initially unstable or affected by the client's browser, there are often inaccuracies when using small files for speed measurement, and larger test files provide more accurate test results. In contrast, the longer the test time required, however, if the test is performed in a small file in order to shorten the test time, the test result is also significantly different from the actual rate.

是故,如何能提供一種於客戶端不需額外安裝軟體及不需上傳之選擇測試檔案網路傳輸速率測試方法,得以快速且精確地測得網路傳輸速率,遂成為目前亟待解決的課題。Therefore, how to provide a test network transmission rate test method that does not require additional software installation and no need to upload the client, and quickly and accurately measure the network transmission rate, has become an urgent problem to be solved.

鑒於上述習知技術之缺點,本發明之目的在於提供一種於客戶端不需額外安裝軟體及選擇上傳之測試檔案網路傳輸速率之測試方法,得以精確且快速地測得網路傳輸速率。In view of the above-mentioned shortcomings of the prior art, it is an object of the present invention to provide a test method for the network transmission rate of a test file without requiring additional software installation and selecting an upload, so that the network transmission rate can be accurately and quickly measured.

為達到前述目的以及其他目的,本發明提供一種網路傳輸速率測試方法,係應用於測試客戶端資料處理裝置之網路下行傳輸速率,該網路傳輸速率測試方法包括以下步驟:(1)該客戶端資料處理裝置藉由其瀏覽器瀏覽伺服器所提供之網頁;(2)該網頁命令該瀏覽器至該伺服器下載第一檔案,且該瀏覽器於下載該第一檔案的過程中執行計時程序;(3)該網頁命令該瀏覽器以該第一檔案的資料量及所計時的時間來估計初估的網路下行傳輸速率,以將該初估的網路下行傳輸速率分類;(4)該網頁命令該瀏覽器依據該初估的網路下行傳輸速率分類所得到的類別,至該伺服器下載對應該類別之第二檔案,且該瀏覽器於下載該第二檔案的過程中執行計時程序;及(5)該網頁命令該瀏覽器以該第二檔案的資料量及所計時的時間來計算最終的網路下行傳輸速率,並將所計算之該最終的網路下行傳輸速率顯示於該瀏覽器上的該網頁上。To achieve the foregoing and other objects, the present invention provides a network transmission rate testing method for testing a network downlink transmission rate of a client data processing device. The network transmission rate testing method includes the following steps: (1) The client data processing device browses the webpage provided by the server by using the browser; (2) the webpage commands the browser to download the first file to the server, and the browser executes the process of downloading the first file a timing program; (3) the webpage commanding the browser to estimate the estimated downlink downlink transmission rate by using the amount of data of the first file and the time counted to classify the estimated downlink downlink transmission rate; 4) the webpage commands the browser to classify the obtained category according to the estimated network downlink transmission rate, to the server downloading the second file of the corresponding category, and the browser is in the process of downloading the second file Executing a timing program; and (5) the webpage commanding the browser to calculate the final network downlink transmission rate by using the data volume of the second file and the time counted, and calculating the calculated The final network downlink transmission rate displayed on the Web page on the browser.

於上述之網路傳輸速率測試方法中,該第一檔案之資料量係小於該第二檔案之資料量。換言之,即先以資料量較小而可適用於各種傳輸速率的第一檔案分類出網路下行傳輸速率的類別,再利用符合該類別的第二檔案來進行速率測試以得到最終網路下行傳輸速率。In the above network transmission rate test method, the data volume of the first file is smaller than the data volume of the second file. In other words, the first file of the network with a small amount of data and applicable to various transmission rates is first classified into the downlink transmission rate category, and then the second file conforming to the category is used for the rate test to obtain the final network downlink transmission. rate.

其次,本發明另提供一種網路傳輸速率測試方法,係應用於測試客戶端資料處理裝置之網路上行傳輸速率,該網路傳輸速率測試方法包括:(1)該客戶端資料處理裝置藉由其瀏覽器瀏覽伺服器所提供之網頁;(2)該網頁命令該瀏覽器產生並傳輸第一資料予該伺服器,且該瀏覽器於傳輸該第一資料的過程中執行計時程序;(3)該網頁命令該瀏覽器以所產生並傳輸的該第一資料之字元數及所計時的時間來估計初估的網路上行傳輸速率,以將該初估的網路上行傳輸速率分類;(4)該網頁命令該瀏覽器依據該初估的網路上行傳輸速率分類所得到的類別,產生並傳輸對應該類別之第二資料予該伺服器,且該瀏覽器於傳輸該第二資料的過程中執行計時程序;及(5)該網頁命令該瀏覽器以所產生並傳輸的該第二資料的字元數及所計時的時間來計算最終的網路上行傳輸速率,並將所計算之該最終的網路上行傳輸速率顯示於該瀏覽器上的該網頁上。Secondly, the present invention further provides a network transmission rate testing method, which is applied to test a network uplink transmission rate of a client data processing device, and the network transmission rate testing method includes: (1) the client data processing device by The browser browses the webpage provided by the server; (2) the webpage commands the browser to generate and transmit the first data to the server, and the browser executes the timing program in the process of transmitting the first data; (3) The web page instructs the browser to estimate the estimated network uplink transmission rate based on the number of characters of the first data generated and transmitted and the time counted to classify the estimated network uplink transmission rate; (4) the webpage instructs the browser to classify the obtained category according to the estimated network uplink transmission rate, generate and transmit the second data of the corresponding category to the server, and the browser transmits the second data. And executing (5) the webpage commanding the browser to calculate the final network uplink transmission rate by using the number of characters of the second data generated and transmitted and the time counted, The network of the final uplink transmission rate sum calculated on the web page displayed on the browser.

於上述之網路傳輸速率測試方法中,該第一資料之字元數係小於該第二資料之字元數。換言之,即先以字元數較少而可適用於各種傳輸速率的第一資料分類出網路上行傳輸速率的類別,再利用符合該類別的第二資料來進行速率測試以得到最終網路上行傳輸速率。In the above network transmission rate testing method, the number of characters of the first data is less than the number of characters of the second data. In other words, the first data of a variety of transmission rates can be classified into the category of the network uplink transmission rate, and the second data conforming to the category is used for the rate test to obtain the final network uplink. Transmission rate.

相較於習知技術,本發明之網路傳輸速率測試方法採用階段式測試方法,於第一階段時,先粗略估計網路傳輸速率並予以分類;於第二階段時,再依據所分類之類別上傳資料或下載檔案以計算網路傳輸速率,故可快速且精確地測得網路傳輸速率。另外,經由伺服器的網頁命令客戶端資料處理裝置的瀏覽器執行該網頁的程式碼,使得於客戶端不需額外安裝軟體或選擇上傳的檔案得以進行網路傳輸速率之測試。Compared with the prior art, the network transmission rate test method of the present invention adopts a phased test method. In the first stage, the network transmission rate is roughly estimated and classified; in the second stage, according to the classified The category uploads data or downloads files to calculate the network transmission rate, so the network transmission rate can be measured quickly and accurately. In addition, the webpage of the client data processing device is commanded by the webpage of the server to execute the code of the webpage, so that the client does not need to install additional software or select the uploaded file to test the network transmission rate.

以下係藉由特定的具體實施例說明本發明之技術內容,熟習此技術之人士可由本說明書所揭示之內容輕易地了解本發明之其他優點與功效,亦可藉由其他不同的具體實施例加以施行或應用。In the following, the technical content of the present invention will be described by a specific embodiment, and those skilled in the art can easily understand other advantages and effects of the present invention by the contents disclosed in the present specification, and can also be implemented by other different embodiments. Implementation or application.

請參閱第1圖,其係本發明網路傳輸速率測試方法之應用架構示意圖。如圖所示,使用者藉由客戶端資料處理裝置11以瀏覽器110透過網路10登入伺服器12,而伺服器12提供測速網頁121予客戶端資料處理裝置11,使用者便可於客戶端資料處理裝置11顯示器上所顯示的瀏覽器110畫面瀏覽測速網頁121。一般而言,客戶端資料處理裝置11可為桌上型電腦、筆記型電腦等具有網路功能的資料處理裝置。於本實施型態中,伺服器12係指網路服務提供者的網站,用以供使用該網路服務的客戶端進行測試。於其他實施形態中,伺服器12亦可為專門提供測速之網站,適用於使用各種網路服務的客戶端進行測速。Please refer to FIG. 1 , which is a schematic diagram of an application architecture of a network transmission rate testing method according to the present invention. As shown in the figure, the user accesses the server 12 through the network 10 through the browser 10 through the client data processing device 11, and the server 12 provides the speed measurement web page 121 to the client data processing device 11, and the user can access the client. The browser 110 screen displayed on the display of the end material processing device 11 browses the speed measurement web page 121. In general, the client data processing device 11 can be a network processing device such as a desktop computer or a notebook computer. In this embodiment, the server 12 refers to a website of a network service provider for testing by a client using the network service. In other embodiments, the server 12 may also be a website dedicated to speed measurement, which is suitable for speed measurement by clients using various network services.

請參閱第2圖,其係本發明網路傳輸速率測試方法之測試網路下行傳輸速率之流程圖。Please refer to FIG. 2, which is a flow chart of the test network downlink transmission rate of the network transmission rate test method of the present invention.

於步驟S201中,使用者透過客戶端資料處理裝置之瀏覽器連結伺服器後,該伺服器提供一寫有程式碼之測速網頁予該客戶端資料處理裝置,以供該客戶端資料處理裝置以其瀏覽器瀏覽該測速網頁。接著進至步驟S202。In step S201, after the user connects to the server through the browser of the client data processing device, the server provides a speed-coded webpage with the code to the client data processing device for the client data processing device to Its browser browses the speed page. Then it proceeds to step S202.

於步驟S202中,該客戶端資料處理裝置取得該測速網頁後,該測速網頁的程式碼命令該客戶端資料處理裝置的瀏覽器至該伺服器下載第一檔案,同時該客戶端資料處理裝置的瀏覽器開始計時。接著進至步驟S203。In step S202, after the client data processing device obtains the speed measurement webpage, the code of the speed measurement webpage commands the browser of the client data processing device to the server to download the first file, and the client data processing device The browser starts timing. Then it proceeds to step S203.

於步驟S203中,該客戶端資料處理裝置的瀏覽器於接收到該伺服器傳輸完成下載的通知時停止計時,並以該第一檔案的資料量及所計時的時間來估計網路下行傳輸速率,以分類該網路下行傳輸速率。詳言之,瀏覽器的計時功能在該客戶端資料處理裝置開始下載該第一檔案時啟動,且在該瀏覽器接收到該伺服器對該客戶端資料處理裝置發出完成下載的通知時停止計時,接著該瀏覽器以該第一檔案的資料量除以所計時的時間即可估計出網路下行傳輸速率,以分類該網路下行傳輸速率大概落在哪個範圍。接著進至S204。In step S203, the browser of the client data processing device stops timing when receiving the notification that the server transmits the download, and estimates the downlink transmission rate of the network by using the data amount of the first file and the time counted. To classify the network downlink transmission rate. In detail, the timing function of the browser is started when the client data processing device starts downloading the first file, and stops when the browser receives the notification that the server issues the completion download to the client data processing device. Then, the browser can estimate the downlink transmission rate of the network by dividing the data amount of the first file by the time counted, so as to classify the downlink transmission rate of the network. Then proceed to S204.

於步驟S204中,該測速網頁的程式碼命令該客戶端資料處理裝置的瀏覽器依據所分類之網路下行傳輸速率的類別,至該伺服器下載符合該類別之第二檔案,同時該客戶端資料處理裝置的瀏覽器開始計時。接著進至步驟S205。In step S204, the code of the speed measurement webpage commands the browser of the client data processing device to download the second file that matches the category according to the classified type of the network downlink transmission rate, and the client The browser of the data processing device starts timing. Then it proceeds to step S205.

於步驟S205中,該客戶端資料處理裝置的瀏覽器於接收到該伺服器傳輸完成下載的通知時停止計時,並以該第二檔案的資料量及所計時的時間來計算網路下行傳輸速率,即以該第二檔案的資料量除以所計時的時間即可計算出網路下行傳輸速率。接著進至步驟S206。In step S205, the browser of the client data processing device stops timing when receiving the notification that the server transmits the download, and calculates the network downlink transmission rate by using the data amount of the second file and the time counted. The network downlink transmission rate can be calculated by dividing the data amount of the second file by the time counted. Then it proceeds to step S206.

於步驟S206中,該客戶端資料處理裝置的瀏覽器透過該測速網頁顯示所計算之網路下行傳輸速率,藉此供使用者得知其所使用的客戶端資料處理裝置至伺服器下載檔案的下行傳輸速率。In step S206, the browser of the client data processing device displays the calculated network downlink transmission rate through the speed measurement webpage, so that the user knows that the client data processing device used by the client downloads the file from the server. Downlink transmission rate.

值得一提的是,該第一檔案的資料量係小於該第二檔案的資料量,其用意在於以一小資料量的檔案來分類該客戶端資料處理裝置的網路下行傳輸速率。簡言之,由於過小的檔案資料量無法精確測出該客戶端資料處理裝置的網路下行傳輸速率,然,另一方面,過大的檔案資料量又花費太多測試時間,故本發明之網路傳輸速率測試方法係以如第2圖所示之階段式測試方法,於第一階段時,先以一通用於各種傳輸速率的資料量之第一檔案進行估計,亦即估計出初估的網路下行傳輸速率,以分類出使用者所使用的客戶端資料處理裝置至伺服器進行下載處理的網路下行傳輸速率的類別,於本實施形態中,該第一檔案係資料量為257KB之圖片檔,於其他實施形態中,亦可為其他檔案且其資料量可大於或小於257KB;接著,於第二階段時,取得最終的網路下行傳輸速率,亦即再依據分類出的該初估的網路下行傳輸速率所屬的類別至該伺服器中下載符合該類別之第二檔案,藉此精確測出使用者所使用的客戶端資料處理裝置至伺服器進行下載處理的網路下行傳輸速率。值得一提的是,該第二檔案的資料量乃設計為該客戶端資料處理裝置可於15秒內下載完成,當然,其秒數不以此為限,例如,若以第一檔案估計網路下行傳輸速率,得知該網路下行傳輸速率落在1Mb的頻寬範圍,則該測速網頁的程式碼便命令該瀏覽器至該伺服器下載資料量約為12Mb的第二檔案。因此,藉由本發明之實施,得以精確且快速地測得網路下行傳輸速率。It is worth mentioning that the data volume of the first file is smaller than the data volume of the second file, and the intention is to classify the network downlink transmission rate of the client data processing device by a small data file. In short, because the amount of file data is too small to accurately measure the network downlink transmission rate of the client data processing device, on the other hand, the excessive amount of file data takes too much testing time, so the network of the present invention The road transmission rate test method is based on the phased test method as shown in Fig. 2. In the first stage, the first file is first estimated by a data volume for various transmission rates, that is, the estimated network is estimated. The downlink transmission rate of the road is used to classify the downlink transmission rate of the network that the client uses the client data processing device to download to the server. In this embodiment, the first file system has a data volume of 257 KB. In other embodiments, the file may be other files and the amount of data may be greater than or less than 257 KB. Then, in the second phase, the final network downlink transmission rate is obtained, that is, the initial estimation according to the classification. The category of the network downlink transmission rate belongs to the server to download the second file that matches the category, thereby accurately measuring the client data processing used by the user. Opposite to the web server for download processing downlink transmission rate. It is worth mentioning that the data volume of the second file is designed to be downloaded by the client data processing device within 15 seconds. Of course, the number of seconds is not limited thereto. For example, if the first file is estimated The downlink transmission rate of the channel is known to be that the downlink transmission rate of the network falls within a bandwidth of 1 Mb, and the code of the speed measurement webpage commands the browser to download a second file whose data volume is about 12 Mb. Therefore, with the implementation of the present invention, the network downlink transmission rate can be accurately and quickly measured.

此外,於本實施形態中,於步驟S204中下載該第二檔案時,可將該第二檔案分割以分批下載並計時,且於步驟S205中以該第二檔案的資料量及所計時的時間來計算網路下行傳輸速率時,可計算出複數個網路下行傳輸速率,再將該複數個網路下行傳輸速率予以平均以產生該網路下行傳輸速率。In addition, in the embodiment, when the second file is downloaded in step S204, the second file may be divided and downloaded in batches and timed, and in step S205, the data amount of the second file and the timed time are used. When calculating the downlink transmission rate of the network, a plurality of downlink transmission rates of the network may be calculated, and then the downlink transmission rates of the plurality of networks are averaged to generate a downlink transmission rate of the network.

另外,需說明的是,該伺服器的測速網頁中寫有程式碼以命令使用者所使用的客戶端資料處理裝置上的瀏覽器,換言之,當該客戶端資料處理裝置連結該伺服器以下載該測速網頁時,該客戶端資料處理裝置上的瀏覽器便執行該測速網頁的程式碼,即該程式碼係命令該客戶端資料處理裝置至該伺服器下載第一檔案,並啟動該瀏覽器的計時功能,此外,該程式碼更寫有第一檔案及第二檔案之下載路徑,以命令該客戶端資料處理裝置於已知以該第一檔案所估計的網路下行傳輸速率而分類的頻寬類別時,至該伺服器下載對應該頻寬類別的第二檔案,以利用該第二檔案來精確測試該客戶端資料處理裝置之網路下行傳輸速率。因此,藉由客戶端資料處理裝置執行測速網頁中的程式碼,本發明之網路傳輸速率測試方法不需額外安裝軟體即可進行測試。In addition, it should be noted that the server's speed measurement web page is written with a code to command the browser on the client data processing device used by the user, in other words, when the client data processing device is connected to the server to download When the webpage is measured, the browser on the client data processing device executes the code of the speed measurement webpage, that is, the code commands the client data processing device to download the first file to the server, and starts the browser. The timing function, in addition, the code further writes a download path of the first file and the second file to command the client data processing device to be classified according to the network downlink transmission rate estimated by the first file. In the bandwidth category, the server downloads a second file corresponding to the bandwidth category to use the second file to accurately test the network downlink transmission rate of the client data processing device. Therefore, the network transmission rate test method of the present invention can be tested without additional software installation by executing the code in the speed measurement webpage by the client data processing device.

請參閱第3圖,其係本發明網路傳輸速率測試方法之測試網路上行傳輸速率之流程圖。Please refer to FIG. 3, which is a flow chart of the test network uplink transmission rate of the network transmission rate test method of the present invention.

於步驟S301中,使用者透過客戶端資料處理裝置之瀏覽器連結伺服器後,該伺服器提供一具有程式碼之測速網頁予該客戶端資料處理裝置,以供該客戶端資料處理裝置以其瀏覽器瀏覽該測速網頁。接著進至步驟S302。In step S301, after the user connects to the server through the browser of the client data processing device, the server provides a webpage with a coded speed to the client data processing device for the client data processing device to use. The browser browses the speed page. Then it proceeds to step S302.

於步驟S302中,該客戶端資料處理裝置取得該測速網頁後,該測速網頁的程式碼命令該客戶端資料處理裝置的瀏覽器產生並傳輸第一資料予該伺服器,同時該客戶端資料處理裝置的瀏覽器開始計時。接著進至步驟S303。In step S302, after the client data processing device obtains the speed measurement webpage, the code of the speed measurement webpage commands the browser of the client data processing apparatus to generate and transmit the first data to the server, and the client data processing The browser of the device starts timing. Then it proceeds to step S303.

於步驟S303中,該客戶端資料處理裝置的瀏覽器於接收到該伺服器傳輸完成上傳的通知時停止計時,以該第一資料的字元數及所計時的時間來估計網路上行傳輸速率,以分類該網路上行傳輸速率。接著進至S304。In step S303, the browser of the client data processing device stops timing when receiving the notification that the server transmits the upload, and estimates the network uplink transmission rate by the number of characters of the first data and the time counted. To classify the network upstream transmission rate. Then proceed to S304.

於步驟S304中,該測速網頁的程式碼命令該客戶端資料處理裝置的瀏覽器依據所分類之網路上行傳輸速率的類別,產生並傳輸符合該類別之第二資料予該伺服器,同時該客戶端資料處理裝置的瀏覽器開始計時。接著進至步驟S305。In step S304, the code of the speed measurement webpage commands the browser of the client data processing device to generate and transmit the second data conforming to the category to the server according to the classified type of the network uplink transmission rate, and The browser of the client data processing device starts timing. Then it proceeds to step S305.

於步驟S305中,該客戶端資料處理裝置的瀏覽器於接收到該伺服器傳輸完成上傳的通知時停止計時,並以該第二資料的字元數及所計時的時間來計算網路上行傳輸速率,即以該第二資料的字元數除以所計時的時間即可計算出網路上行傳輸速率。接著進至步驟S306。In step S305, the browser of the client data processing device stops timing when receiving the notification that the server transmits the upload, and calculates the network uplink transmission by the number of characters of the second data and the time counted. The rate, that is, the number of characters of the second data divided by the time counted, can calculate the network uplink transmission rate. Then it proceeds to step S306.

於步驟S306中,該客戶端資料處理裝置的瀏覽器透過該測速網頁顯示所計算之網路上行傳輸速率,藉此供使用者得知其所使用的客戶端資料處理裝置上傳資料至伺服器的上行傳輸速率。In step S306, the browser of the client data processing device displays the calculated network uplink transmission rate through the speed measurement webpage, so that the user knows that the client data processing device used by the client uploads the data to the server. Uplink transmission rate.

於本實施形態中,該第一資料及該第二資料為該瀏覽器執行該測速網頁之執行碼所產生之字元,且需說明的是,該第一資料的字元數係小於該第二資料的字元數,其用意與第2圖所示之實施形態相同,係先以一較少字元數的資料來分類該客戶端資料處理裝置的網路上行傳輸速率,如第3圖所示,於第一階段時,測速網頁命令該瀏覽器先產生並上傳字元數較少的第一資料,以粗略測試傳輸速率以分類出初估的網路上行傳輸速率的類別;於第二階段時,測速網頁再命令該瀏覽器依據該初估的網路上行傳輸速率所屬的類別,而產生並上傳符合該類別之第二資料,以精確測出最終的網路上行傳輸速率。例如,若所測得知網路上傳速率為1MB/s,則表示每秒可上傳1024X1024個字元。In this embodiment, the first data and the second data are characters generated by the browser executing the execution code of the speed measurement webpage, and it should be noted that the number of characters of the first data is smaller than the first The number of characters of the second data is the same as the embodiment shown in FIG. 2, and the network uplink transmission rate of the client data processing device is first classified by a small number of characters, as shown in FIG. As shown, in the first stage, the speed measurement webpage instructs the browser to first generate and upload the first data with a small number of characters, to roughly test the transmission rate to classify the category of the initially estimated network uplink transmission rate; In the phase, the speed measurement webpage instructs the browser to generate and upload the second data conforming to the category according to the category of the estimated network uplink transmission rate, so as to accurately measure the final network uplink transmission rate. For example, if the measured network upload rate is 1MB/s, it means that 1024X1024 characters can be uploaded per second.

再者,於網路上行及下行傳輸速率之兩實施形態中,伺服器所提供的測速網頁可以客戶端腳本語言(如:JavaScript)、文檔呈現語言(如:DHTML或可擴充套件置標語言(eXtensible Markup Language,XML))等所組成之非同步JavaScript和XML(Asynchronous JavaScript And XML,AJAX)之網頁開發技術來編譯網頁,於AJAX技術中,可透過XMLHttpRequest物件與伺服器溝通,以交換客戶端與伺服器之間的檔案或資料,且所有程式係以JavaScript執行於客戶端,此外,更可修改客戶端瀏覽器的POST請求,以令客戶端瀏覽器於不同階段產生並上傳具不同預定字元數的資料,得以估計及計算網路傳輸速率。Furthermore, in the two embodiments of the network uplink and downlink transmission rates, the speed measurement webpage provided by the server can be a client-side scripting language (eg, JavaScript), a document rendering language (eg, DHTML or an extensible kit markup language ( eXtensible Markup Language, XML)) is composed of asynchronous JavaScript and XML (Asynchronous JavaScript And XML, AJAX) web development technology to compile web pages. In AJAX technology, XMLHttpRequest objects can be used to communicate with servers to exchange clients. The file or data between the server and the server, and all the programs are executed by the client in JavaScript. In addition, the POST request of the client browser can be modified to cause the client browser to generate and upload different predetermined words at different stages. The metadata is used to estimate and calculate the network transmission rate.

需說明的是,於其他實施形態中,亦可使用其他語言或技術來實現以測速網頁中的程式碼,命令客戶端的瀏覽器進行階段式的產生並上傳資料(即字元)或下載檔案,以進行網路上行或下行傳輸速率之測試。It should be noted that, in other embodiments, other languages or technologies may be used to implement the code in the webpage of the speed measurement, and the browser of the client is commanded to generate and upload data (ie, characters) or download files. To test the network uplink or downlink transmission rate.

上述之實施態樣係以兩階段為例予以說明,惟透過本發明之網路傳輸測試方法,可以視實際需要將測試程序劃分為三個以上的階段,藉以獲得需要的上行及下行傳輸速率的測試結果,而其具體執行時的流程步驟與前述各該實施態樣相同,故不另贅述之。The above embodiment is described by taking two stages as an example. However, through the network transmission test method of the present invention, the test program can be divided into three or more stages according to actual needs, to obtain the required uplink and downlink transmission rates. The test results, and the process steps in the specific execution are the same as those in the foregoing embodiments, and therefore will not be further described.

綜上所述,本發明之網路傳輸測試方法可測試客戶端資料處理裝置之網路上行及下行傳輸速率,藉由伺服器所提供之網頁的程式碼,命令該客戶端資料處理裝置的瀏覽器執行階段式測試程序,即於測試網路下行傳輸速率時至該伺服器分次下載檔案,而於測試網路上行傳輸速率時瀏覽器乃執行該網頁的程式碼以分次產生並上傳字元,以於第一階段進行估計及分類,再於第二階段精確計算網路下行傳輸速率。因此,本發明之網路傳輸測試方法,具有於客戶端不需額外安裝軟體及不需選擇上傳的測試檔案,並可快速且精確地測得網路傳輸速率之功效。In summary, the network transmission test method of the present invention can test the network uplink and downlink transmission rates of the client data processing device, and command the browsing of the client data processing device by using the code of the webpage provided by the server. The device performs a phased test procedure, that is, when the network downlink transmission rate is tested, the server downloads the files in stages, and when testing the network uplink transmission rate, the browser executes the code of the web page to generate and upload the words in stages. Yuan, for the first stage to estimate and classify, and then in the second stage to accurately calculate the network downlink transmission rate. Therefore, the network transmission test method of the present invention has the effect that the client does not need to install additional software and does not need to select the uploaded test file, and can quickly and accurately measure the network transmission rate.

上述各實施例僅例示性說明本發明之原理及功效,而非用於限制本發明。任何熟習此項技術之人士均可在不違背本發明之精神及範疇下,對上述實施例進行修飾與改變。因此,本發明之權利保護範圍,應如後述之申請專利範圍所列。The above embodiments are merely illustrative of the principles and effects of the invention and are not intended to limit the invention. Modifications and variations of the above-described embodiments can be made by those skilled in the art 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 scope of the claims described below.

10...網路10. . . network

11...客戶端資料處理裝置11. . . Client data processing device

110...瀏覽器110. . . Browser

12...伺服器12. . . server

121...測速網頁121. . . Speed page

S201~S206...步驟S201~S206. . . step

S301~S306...步驟S301~S306. . . step

第1圖係本發明網路傳輸速率測試方法之應用架構示意圖;1 is a schematic diagram of an application architecture of a network transmission rate test method of the present invention;

第2圖係本發明網路傳輸速率測試方法之測試網路下行傳輸速率之流程圖;及2 is a flow chart of a test network downlink transmission rate of the network transmission rate test method of the present invention; and

第3圖係本發明網路傳輸速率測試方法之測試網路上行傳輸速率之流程圖。Figure 3 is a flow chart showing the test network uplink transmission rate of the network transmission rate test method of the present invention.

S201~S206...步驟S201~S206. . . step

Claims (9)

一種網路傳輸速率測試方法,係應用於測試一客戶端資料處理裝置之網路下行傳輸速率,該網路傳輸速率測試方法包括以下步驟:(1)該客戶端資料處理裝置藉由其瀏覽器瀏覽一伺服器所提供之網頁;(2)該網頁命令該瀏覽器至該伺服器下載第一檔案,且該瀏覽器於下載該第一檔案的過程中執行計時程序;(3)該網頁命令該瀏覽器以該第一檔案的資料量及所計時的時間來估計初估的網路下行傳輸速率,以將該初估的網路下行傳輸速率分類;(4)該網頁命令該瀏覽器依據該初估的網路下行傳輸速率分類所得到的類別,至該伺服器下載對應該類別之第二檔案,且該瀏覽器於下載該第二檔案的過程中執行計時程序;及(5)該網頁命令該瀏覽器以該第二檔案的資料量及所計時的時間來計算最終的網路下行傳輸速率,並將所計算之該最終的網路下行傳輸速率顯示於該瀏覽器上的該網頁上。 A network transmission rate testing method is applied to test a network downlink transmission rate of a client data processing device, and the network transmission rate testing method comprises the following steps: (1) the client data processing device by using the browser thereof Viewing a webpage provided by a server; (2) the webpage instructs the browser to download the first file to the server, and the browser executes a timing program in the process of downloading the first file; (3) the webpage command The browser estimates the estimated downlink downlink transmission rate by using the data volume of the first file and the time counted to classify the estimated downlink downlink transmission rate; (4) the webpage commands the browser basis The initially estimated network downlink transmission rate classifies the obtained category, until the server downloads the second file of the corresponding category, and the browser executes the timing program in the process of downloading the second file; and (5) the The webpage command is used by the browser to calculate the final network downlink transmission rate by using the data volume of the second file and the time counted, and displaying the calculated final network downlink transmission rate in the browser. On the page on the device. 如申請專利範圍第1項之網路傳輸速率測試方法,其中,該第一檔案之資料量係小於該第二檔案之資料量。 The network transmission rate test method of claim 1, wherein the data volume of the first file is smaller than the data volume of the second file. 如申請專利範圍第1項之網路傳輸速率測試方法,其中,該第一檔案的資料量為257KB。 For example, the network transmission rate test method of claim 1 is characterized in that the data volume of the first file is 257 KB. 如申請專利範圍第1項之網路傳輸速率測試方法,其中,該第一檔案為圖片。 The network transmission rate test method of claim 1, wherein the first file is a picture. 如申請專利範圍第1項之網路傳輸速率測試方法,其中,該第二檔案的資料量係設定為供該客戶端資料處理裝置以該初估的網路下行傳輸速率在一預定時間內下載完成。 The network transmission rate test method of claim 1, wherein the data volume of the second file is set for the client data processing device to download at the estimated downlink downlink transmission rate within a predetermined time. carry out. 如申請專利範圍第5項之網路傳輸速率測試方法,其中,該預定時間為15秒。 The network transmission rate test method of claim 5, wherein the predetermined time is 15 seconds. 如申請專利範圍第1項之網路傳輸速率測試方法,其中,步驟(4)復包括以下步驟:(4-1)將該第二檔案切割成複數個分割檔案;(4-2)依序下載該複數個分割檔案並分別計時下載該複數個分割檔案的時間;(4-3)該網頁命令該瀏覽器以該複數個分割檔案的個別資料量及所分別計時之下載該複數個分割檔案的個別時間,計算複數個網路下行傳輸速率;以及(4-4)將該複數個網路下行傳輸速率予以平均以作為該步驟(5)所計算之該最終的網路下行傳輸速率。 For example, in the network transmission rate test method of claim 1, wherein the step (4) further comprises the following steps: (4-1) cutting the second file into a plurality of divided files; (4-2) sequentially Downloading the plurality of split files and timing the downloading of the plurality of split files respectively; (4-3) the webpage commanding the browser to download the plurality of split files by using the individual data amount of the plurality of split files and separately counting the time And calculating a plurality of network downlink transmission rates at an individual time; and (4-4) averaging the plurality of network downlink transmission rates as the final network downlink transmission rate calculated in the step (5). 一種網路傳輸速率測試方法,係應用於測試一客戶端資料處理裝置之網路上行傳輸速率,該網路傳輸速率測試方法包括以下步驟:(1)該客戶端資料處理裝置藉由其瀏覽器瀏覽伺服器所提供之網頁;(2)該網頁命令該瀏覽器產生並傳輸第一資料予該 伺服器,且該瀏覽器於傳輸該第一資料的過程中執行計時程序;(3)該網頁命令該瀏覽器以所產生並傳輸的該第一資料之字元數及所計時的時間來估計初估的網路上行傳輸速率,以將該初估的網路上行傳輸速率分類;(4)該網頁命令該瀏覽器依據該初估的網路上行傳輸速率分類所得到的類別,產生並傳輸對應該類別之第二資料予該伺服器,且該瀏覽器於傳輸該第二資料的過程中執行計時程序;及(5)該網頁命令該瀏覽器以所產生並傳輸的該第二資料的字元數及所計時的時間來計算最終的網路上行傳輸速率,並將所計算之該最終的網路上行傳輸速率顯示於該瀏覽器上的該網頁上。 A network transmission rate testing method is applied to test a network uplink transmission rate of a client data processing device, and the network transmission rate testing method comprises the following steps: (1) the client data processing device by using the browser thereof Browsing the webpage provided by the server; (2) the webpage commands the browser to generate and transmit the first data to the webpage a server, and the browser executes a timing program in the process of transmitting the first data; (3) the web page instructs the browser to estimate the number of characters of the first data generated and transmitted and the time counted An initial estimated network uplink transmission rate to classify the initially estimated network uplink transmission rate; (4) the web page instructs the browser to classify the generated class according to the estimated network uplink transmission rate, generate and transmit Corresponding to the second information of the category to the server, and the browser executing the timing program in the process of transmitting the second data; and (5) the web page instructing the browser to generate and transmit the second data The number of characters and the time counted to calculate the final network uplink transmission rate, and the calculated final network uplink transmission rate is displayed on the web page on the browser. 如申請專利範圍第8項之網路傳輸速率測試方法,其中,該第一資料之字元數係小於該第二資料之字元數。 The network transmission rate test method of claim 8, wherein the number of characters of the first data is less than the number of characters of the second data.
TW099107044A 2010-03-11 2010-03-11 A testing method for network transmission speed TWI462529B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW099107044A TWI462529B (en) 2010-03-11 2010-03-11 A testing method for network transmission speed

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW099107044A TWI462529B (en) 2010-03-11 2010-03-11 A testing method for network transmission speed

Publications (2)

Publication Number Publication Date
TW201132052A TW201132052A (en) 2011-09-16
TWI462529B true TWI462529B (en) 2014-11-21

Family

ID=50180486

Family Applications (1)

Application Number Title Priority Date Filing Date
TW099107044A TWI462529B (en) 2010-03-11 2010-03-11 A testing method for network transmission speed

Country Status (1)

Country Link
TW (1) TWI462529B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI466493B (en) * 2012-03-09 2014-12-21 Chunghwa Telecom Co Ltd Broadband Network Rate Bottleneck Analysis System
TW201345197A (en) * 2012-04-27 2013-11-01 Hwa Jiuh Digital Technology Ltd Networking data transmission speed testing method for language test
TW201414239A (en) * 2012-09-26 2014-04-01 Chunghwa Telecom Co Ltd Measurement system for network service quality of customer network terminal device
TWI559704B (en) * 2015-01-12 2016-11-21 Test method of network transmission rate
TWI798973B (en) * 2021-12-02 2023-04-11 中華電信股份有限公司 Electronic device and method for estimating poor customer experience of wireless network
CN117792963A (en) * 2022-09-22 2024-03-29 瑞昱半导体股份有限公司 Speed measuring method and speed measuring system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080059848A1 (en) * 2006-09-01 2008-03-06 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. Data transmission speed test system and method
US20080089340A1 (en) * 2006-10-13 2008-04-17 Hon Hai Precision Industry Co., Ltd. System and method for testing transmission speeds of network interface cards in a computer
CN100463416C (en) * 2005-06-10 2009-02-18 腾讯科技(深圳)有限公司 Method for testing maximum available bandwidth of network
TW200931876A (en) * 2007-12-31 2009-07-16 Ind Tech Res Inst Methods and systems for bandwidth prediction
TW200948106A (en) * 2008-01-30 2009-11-16 Ericsson Telefon Ab L M Measurement bandwidth configuration method
CN101667890A (en) * 2009-09-24 2010-03-10 深圳市普联技术有限公司 Network bandwidth detecting method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100463416C (en) * 2005-06-10 2009-02-18 腾讯科技(深圳)有限公司 Method for testing maximum available bandwidth of network
US20080059848A1 (en) * 2006-09-01 2008-03-06 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. Data transmission speed test system and method
US20080089340A1 (en) * 2006-10-13 2008-04-17 Hon Hai Precision Industry Co., Ltd. System and method for testing transmission speeds of network interface cards in a computer
TW200931876A (en) * 2007-12-31 2009-07-16 Ind Tech Res Inst Methods and systems for bandwidth prediction
TW200948106A (en) * 2008-01-30 2009-11-16 Ericsson Telefon Ab L M Measurement bandwidth configuration method
CN101667890A (en) * 2009-09-24 2010-03-10 深圳市普联技术有限公司 Network bandwidth detecting method and system

Also Published As

Publication number Publication date
TW201132052A (en) 2011-09-16

Similar Documents

Publication Publication Date Title
TWI462529B (en) A testing method for network transmission speed
CN102209004B (en) Network transmission rate testing method
US8266281B1 (en) Collecting client-side performance metrics and latencies
US8572252B2 (en) Extensible dynamic performance instrumentation of pages
CN105045620B (en) Measure the method and detection device of webpage head screen load time
US8200812B2 (en) Reducing workload on a backend system using client side request throttling
US10146750B2 (en) Method, apparatus, terminal, and storage medium for image processing
WO2018001124A1 (en) Webpage file sending method, webpage rendering method and apparatus, and webpage rendering system
Meenan How fast is your website?
CN107305528B (en) Application testing method and device
Mardani et al. Fawkes: Faster Mobile Page Loads via {App-Inspired} Static Templating
CN104796929B (en) Network debugging method and device
CN110866202A (en) Front-end paging method and device and readable storage medium
CN105138452B (en) A kind of browser performance automated testing method based on terminal system
US9680697B2 (en) Dynamic product installation based on user feedback
JP5933487B2 (en) QoE estimation apparatus, QoE estimation method and program
CN111294257B (en) Method, device and system for automatic pressure test of application server
CN108268370B (en) Website quality analysis method, device and system based on Referer and template library matching
US20210234942A1 (en) Critical path estimation for accelerated and optimal loading of web pages
CN114285760A (en) Webpage access quality evaluation method and device
WO2016101711A1 (en) Automatic evaluation method and system for quality of experience of business network service
CN111597102A (en) Page performance testing method, terminal and storage medium
CN115576791A (en) Dynamic adjustment method and device for pressure measurement thread, electronic equipment and storage medium
CN114915565A (en) Method and system for debugging network
JP6046552B2 (en) QoE estimation device, method and program in QoE estimation device

Legal Events

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