200926680 九、發明說明: 【發明所屬之技術領域】 本發明是有關於一種網路傳輸系統及其測試方法,且 特別是有關於一種FTP網路傳輸系統及其測試方法。 【先前技術】 樓案轉換協議(File Transfer Protocol ; FTP)是一個歷史 ❹ 悠久的網路通訊協定,主要的功能是用來傳輸檔案。和大 多數的網路協定一樣,檔案轉換協議採用使用者/伺服器 架構,各地的使用者可以經由網路連到伺服器上傳或下載 檔案。檔案轉換協議比較特別的地方在於使用時必須建立 一個連線.一個用來傳輸指令、一個用來傳輸樓案。 當客戶端使用檔案轉換協議軟體連到檔案轉換協議伺 服器時,客戶端會先連到伺服器的連接埠,並建立一條「控 制連線」(Control Stream) ^接下來,使用者會輸入帳號、 © 密碼等指令,這些指令及其回應都是使用「控制連線」。當 4要下載檔案或是需要檔案目錄時,檔案或目錄是經另一 個「資料連線」(Data Stream)來傳遞。「資料連線」和「控 &連線」不同的是資料連線所傳輸的資料比較大,而控制 連線只是用來傳輸指令及簡單的回應。 然而現有的檔案轉換協議測試工具,在測試時往往不 月b調整傳送速度,無法測試網路頻寬的最大臨界值。換言 之,在測試時僅能測試槽案轉換協冑的傳輸功㉟,無法測 試傳輸速度。 5 200926680 要一個新的網路傳輸系統及其測試方法,除了 測5式傳輸功能,更能進-步測試網路速度。 【發明内容】 =此本發明之一方面提供一種網路傳輸測試方法,能 夠依如使用者需要測試的頻寬大小,調整網路傳輸速度。 根據本發明之—音 *月之實施例’此-方法首先在一第一儲存 二’提供具—預定大小之一緩衝區。接著將至少-组 ==一第二儲存單元,儲存至緩衝區,然後將傳輸 資料由緩衝區上傳至網際網路。 本發月之另—方面提供一種網路傳輸系統,能狗依昭 ^者需要測試的頻寬大小來調整網路傳輸速度,使㈣ 頻寬達到滿載。 f據本發明之另—實施例,網路傳輸系統包括—第一 =早::一第二儲存單元、一傳輸模組以及-網路傳輸 二蔣值^儲存單元用來儲存複數組傳輸資料。傳輸模組 &育料由第二儲存單元傳遞至第一儲存單元,後由 周路傳輸介面將傳輸資料由S -儲存單s傳遞至網際網200926680 IX. Description of the Invention: [Technical Field] The present invention relates to a network transmission system and a test method thereof, and in particular to an FTP network transmission system and a test method thereof. [Prior Art] The File Transfer Protocol (FTP) is a long-established network communication protocol. The main function is to transfer files. Like most network protocols, the file conversion protocol uses a user/server architecture, and users everywhere can connect to the server to upload or download files. A special feature of the file conversion protocol is that a connection must be established when using it. One is used to transmit instructions and one is used to transmit buildings. When the client uses the file conversion protocol software to connect to the file conversion protocol server, the client will first connect to the server's port and create a "Control Stream" ^ Next, the user will enter the account number. , © Password, etc. These commands and their responses use "Control Connection". When 4 wants to download a file or needs a file directory, the file or directory is passed via another Data Stream. The difference between "data connection" and "control & connection" is that the data transmitted by the data connection is relatively large, and the control connection is only used to transmit commands and simple responses. However, the existing file conversion protocol testing tool often does not adjust the transmission speed during the test, and cannot test the maximum threshold of the network bandwidth. In other words, only the transmission function 35 of the slot conversion protocol can be tested during the test, and the transmission speed cannot be tested. 5 200926680 To be a new network transmission system and its test method, in addition to measuring the 5-type transmission function, it is possible to further test the network speed. SUMMARY OF THE INVENTION One aspect of the present invention provides a network transmission test method capable of adjusting a network transmission speed according to a bandwidth size that a user needs to test. In accordance with the present invention, the embodiment of the present invention provides a buffer of a predetermined size in a first storage location. Then at least - group == a second storage unit is stored in the buffer, and then the transmission data is uploaded from the buffer to the Internet. Another aspect of this month provides a network transmission system that adjusts the network transmission speed by the bandwidth that the dog needs to test, so that the (4) bandwidth is fully loaded. According to another embodiment of the present invention, the network transmission system includes - first = early:: a second storage unit, a transmission module, and - network transmission, the second value storage unit is used to store the complex array transmission data. . The transmission module & feed is transferred from the second storage unit to the first storage unit, and then the transmission data is transmitted from the S-storage list to the Internet by the peripheral transmission interface.
路,其中,第—健六苗 J 苘存皁兀之大小相應於網際網路之傳輸速 度〇 < 根據上述實施例,網路傳輸測試方法以及網路傳輪系 t =夠依據需要來調整資料傳輸速度,使資料傳輪速度 、到最大額定值’以測試網路系統功能以及效能。 200926680 【實施方式】 以下述實施例之網路傳輸測試方法以及網路傳輸系 統’係依據傳輸速度來調整緩衝區大小,然後將資料由緩 衝區上傳至網路,以測試網路系統功能以及效能。 ❹ 請參照第1圖,其係繪示本發明一實施例之網路傳輸 系統。網路傳輸系統包括祠服器1丨3、網際網路1丨丨以及用 戶端115。用戶端115可使用檔案轉換協議(File Transfer Protocol ; FTP)形式的封包,將資料透過網際網路i j丨上傳 至伺服器113,或將資料由伺服器113下載至用戶端ιΐ5。 例如將硬碟1〇5中的檔案架構傳輸到伺服器113之 中,或由用戶端115透過檔案轉換協議直接編輯或删除伺 服器所儲存的槽案’甚至上傳或下載整個目錄。由於槽案 轉換協議可以-直保持料,^會因閒置敎而被系統強 制離線,因而可以絲同步本地與遠端資料夾的内容。 用戶端115包括第—儲存單元、第二儲存單元、傳輸 、107以及網路傳輸介面1〇9。在此用戶端中,可使用記 二 之緩衝區101來當成第一儲存單元,此一緩衝區 ^小係相應於網際網路⑴之傳輸且此 的夫」、7 ·”丄 ^ 網路傳輸測試程式動態調整。舉例來 際網路之頻寬為_咖,可將緩衝區101之大 :也調整為12.5Mbyte(1 輸資料時,使網路頻寬滿# η 刀) 得 领覓/兩載,加快網路傳輸速度。 用戶端115之第二铋尨留_ 4存卓7^,例如硬碟105,則用來儲 甘坤祝f料。硬碑〗 〃 所儲存之傳輪資料,可选過傳輸模 7 200926680 組107,例如IDE介面,傳遞至記憶體1〇3的緩衝區1〇1。 由於記憶體103的存取速度較硬碟ι〇5快,在資料傳輸時, 可先將須要傳送的資料’由硬碟1〇5全部搬移或複製至緩 衝區101 ’再透過緩衝區1〇1上傳。如此一來,傳輸時可以 直接由緩衝區1〇1上傳資料,不再需要每次至硬碟1〇5中 存取權案’因而加快了資料傳輸速度,進而使網路頻寬滿 載。 網路傳輸介面109’例如網路卡,則將緩衝區1〇1所儲 存的資料’以槽案轉換協議(File Transfer Protocol ; FTP ) 形式的封包,透過網際網路傳U1遞至伺服器113〇 "月參照第2圖,其緣示本發明一實施例之一種網路傳 輸測試方法。網路傳輸測試方法首先在第一儲存單元中’ &供/、預疋大小之一緩衝區(步驟2〇1)。例如在記憶體中切 割一塊緩衝區。接著依據網路傳送速度,調整此一緩衝區 的大小(胃步驟203)’此-緩衝區之大小可等於網際網路之頻 寬,或是依照所需要的網路傳輸速度來調整,例如,若網 =頻寬為1GGM bit,但目前之測試速度僅需要達到頻寬的 一半,則可將緩衝區大小調整A 6.25 M咖^刪 _ ^緩衝區大小確定之後’將傳輸資料由第二儲存單 儲存至緩衝區(步驟2G5),其中,帛二儲存單元可以是 :::裝置,用來儲存資料。接著’將傳輪資料由緩衝區 :際網路(步驟2〇7)’並藉由網際網路傳達至伺服 、、中,傳輸資料可以使用檔案轉換協議形式的封包傳 8 200926680Road, wherein, the size of the first - Jian Liumiao J sputum saponin corresponds to the transmission speed of the Internet 〇 < According to the above embodiment, the network transmission test method and the network transmission system t = enough to adjust according to needs Data transmission speed, data transmission speed, to maximum rating 'to test network system functions and performance. 200926680 [Embodiment] The network transmission test method and the network transmission system of the following embodiments adjust the buffer size according to the transmission speed, and then upload the data from the buffer to the network to test the network system function and performance. . ❹ Referring to Figure 1, there is shown a network transmission system in accordance with an embodiment of the present invention. The network transmission system includes a server 1, a network 1, and a user terminal 115. The client 115 can upload the data to the server 113 via the Internet using the packet in the form of File Transfer Protocol (FTP), or download the data from the server 113 to the client ΐ5. For example, the file structure in the hard disk 1〇5 is transferred to the server 113, or the client 115 directly edits or deletes the slot stored by the server through the file conversion protocol, and even uploads or downloads the entire directory. Since the slot conversion protocol can directly maintain the material, it will be forced offline by the system due to idleness, so that the contents of the local and remote folders can be synchronized. The client 115 includes a first storage unit, a second storage unit, a transmission, 107, and a network transmission interface 1〇9. In this client, the buffer 101 of the second can be used as the first storage unit, and the buffer is corresponding to the transmission of the Internet (1) and the transmission of the network is "7". The test program is dynamically adjusted. For example, the bandwidth of the Internet is _ coffee, and the size of the buffer 101 can be adjusted to 12.5 Mbyte (when the data is input, the network bandwidth is full # η knife). Two-speed, speed up the network transmission speed. The second retention of the client terminal _ 4 save Zhuo 7 ^, such as the hard disk 105, is used to save Gan Kun wish f material. Hard monument〗 〃 The stored wheel information, can be The transfer mode 7 200926680 group 107, such as the IDE interface, is selected and transferred to the buffer 1〇1 of the memory 1〇3. Since the access speed of the memory 103 is faster than the hard disk ι〇5, during data transmission, The data to be transmitted 'removed or copied from the hard disk 1〇5 to the buffer 101' and then uploaded through the buffer 1〇1. As a result, the data can be directly uploaded from the buffer 1〇1 during transmission, no longer needed Accessing the rights to the hard disk 1〇5 each time, thus speeding up the data transfer speed, thereby making the network bandwidth The network transmission interface 109', such as a network card, transfers the data stored in the buffer 1〇1 to the packet in the form of File Transfer Protocol (FTP), and passes the U1 to the servo through the Internet. Referring to Figure 2, there is shown a network transmission test method according to an embodiment of the present invention. The network transmission test method is first in the first storage unit, one of the & Buffer (step 2〇1). For example, cutting a buffer in the memory. Then adjust the size of the buffer according to the network transmission speed (stomach step 203) 'This buffer size can be equal to the Internet. The bandwidth is adjusted according to the required network transmission speed. For example, if the network = bandwidth is 1GGM bit, but the current test speed only needs to reach half of the bandwidth, the buffer size can be adjusted to A 6.25. After the buffer size is determined, the data is stored from the second storage sheet to the buffer (step 2G5), wherein the second storage unit can be::: device for storing data. Then Transfer data by buffer Zone: Inter-network (step 2〇7)' and transmitted to the servo, and through the Internet, the transmission of data can be transmitted in the form of a file conversion protocol. 8 200926680
在步驟207之後,檢查緩衝區之資料是否均已傳送完 (步驟209),若未傳送完畢則繼續執行步驟2〇7來傳送資 料;若已傳送完畢則驗證資料傳輸功能是否正確,並記錄 資料傳送所需時間(㈣211)等資訊,來供使用者曰後杳 閱。例如可以紀錄使用者身份(實體帳號、訪客或匿名登入 制者曾經下達過的命令、傳輸資料的傳輸時間、檔 案大小等。 使用者可以根據這些紀錄’判_路傳輸的安全性, 或是判斷傳輸資料的網路卡與作業系統的相容性,分析各 種網路卡的效能。甚至更可依據這些時間紀錄,對網路卡 或作業系統進行除錯來提高網路卡與作業㈣的相容性。 根據上述實施例,網路傳輸測試方法以及網路傳輸系 統’事先將資料由第二健存單元傳遞至第_儲存單元的緩 衝區’然後再由緩衝區上傳資料至網際網路。由於第一儲 j單元的存取速度較第二儲存單元快,且資料可直接由第 一儲存單元的緩衝區上傳,不再需要至第二儲存單元存 取=’固可加快資料傳輸速度^此外,更可係依據傳輸速度 來調整第一儲存單元之緩衝區大小,使網路頻寬滿載來測 試網路傳輸功能與效能。 雖然本發明已以一較佳實施例揭露如上,然其並非用 以限定本發明,任何在本發明所屬技術領域中具有通常知 識者,在不脫離本發明之精神和範圍内,當可作各種之更 動與潤飾,因此本發明之保護範圍當視後附之申請專利範 200926680 圍所界定者為準。 【圖式簡單說明】 能更明顯易懂,所附圖式之詳細説明如下: ❸ 第1圖係緣示本發明-實施例之網路傳輪系統 第2圖係繪示本發明—實施例之網路傳輪測以法 【主要元件符號說明】 1〇广記憶體 107 :傳輪模組 1U :網際網路 115:用戶端 101 :緩衝區 105 :硬碟 1〇9 :網路傳輸介面 113 :伺服器 201〜211 :步驟After step 207, it is checked whether the data of the buffer has been transmitted (step 209). If the transmission is not completed, continue to perform step 2〇7 to transmit the data; if the transmission has been completed, verify that the data transmission function is correct, and record the data. Send the required time ((4) 211) and other information for the user to read later. For example, it is possible to record the identity of the user (the physical account, the order that the visitor or anonymous login system has issued, the transmission time of the transmission data, the file size, etc. The user can judge the security of the transmission according to these records, or judge The compatibility of the network card that transmits the data with the operating system, analyzes the performance of various network cards, and even debugs the network card or operating system based on these time records to improve the network card and the operation (4) According to the above embodiment, the network transmission test method and the network transmission system 'transmit the data from the second storage unit to the buffer of the storage unit in advance' and then upload the data from the buffer to the Internet. Since the access speed of the first storage unit is faster than that of the second storage unit, and the data can be directly uploaded by the buffer of the first storage unit, it is no longer necessary to access the second storage unit='solid can speed up the data transmission speed^ In addition, the buffer size of the first storage unit can be adjusted according to the transmission speed, so that the network bandwidth is fully loaded to test the network transmission function and performance. The present invention has been described above in terms of a preferred embodiment, and is not intended to limit the scope of the present invention. Any of the ordinary skill in the art to which the present invention pertains can be made without departing from the spirit and scope of the invention. The scope of protection of the present invention is subject to the definitions of the appended patent application No. 200926680. The simple description of the drawings can be more clearly understood, and the detailed description of the drawings is as follows: BRIEF DESCRIPTION OF THE DRAWINGS FIG. 2 is a diagram showing a network transmission system according to the present invention and an embodiment. FIG. 2 is a diagram showing a network transmission method according to the present invention. [Main component symbol description] 1 〇 记忆 memory 107: transmission wheel Module 1U: Internet 115: Client 101: Buffer 105: Hard Disk 1〇9: Network Transmission Interface 113: Servers 201 to 211: Steps