TW201114232A - Method and system for data transmission - Google Patents

Method and system for data transmission Download PDF

Info

Publication number
TW201114232A
TW201114232A TW98134314A TW98134314A TW201114232A TW 201114232 A TW201114232 A TW 201114232A TW 98134314 A TW98134314 A TW 98134314A TW 98134314 A TW98134314 A TW 98134314A TW 201114232 A TW201114232 A TW 201114232A
Authority
TW
Taiwan
Prior art keywords
data
user
data transmission
file
server
Prior art date
Application number
TW98134314A
Other languages
Chinese (zh)
Other versions
TWI384820B (en
Inventor
Ya-Yun Hsu
Yu-Li Tsai
Original Assignee
Acer Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Acer Inc filed Critical Acer Inc
Priority to TW98134314A priority Critical patent/TWI384820B/en
Publication of TW201114232A publication Critical patent/TW201114232A/en
Application granted granted Critical
Publication of TWI384820B publication Critical patent/TWI384820B/en

Links

Abstract

A method and a system for data transmission, applied to a data transmission service between a user end and a server end, is provided. The data to be transferred by the data transmission service comprises a plurality of file directories and files. The present method first analyzes a file directory level of the data to be transferred by the data transmission service. Then, among the file directories, a total number of a plurality of first directories comprising at least one file is calculated and served as a best user session number N of the data transmission service, wherein N is an interger larger than one. Finally, N user accounts are dynamically generated and N different credential information are used to dynamically establish N user sessions between the user end and the server end, such that data transmission between the user end and the server end can be carried out through the N user sessions.

Description

201114232 PNAI-SW-024 l-TWXX 31861twf.doc/d 六、發明說明: 【發明所屬之技術領域】 本發明是有關於-種資料傳輪方法, -種建立最佳數目的用戶連線以進竹料傳輸的^關於 【先前技術】 隨著通訊技術的蓬勃發展,網路的相關應用也 新。播案分享即是在網路上傳輸資料的一種應用,发係由 飼服端在轉上主動地分享本身的檔㈣料,而提 用戶端連線讀輸資料。-般㈣案分 (P〇i—,剛的傳輸模式,齡本身存放在= 端的電腦上,而由用戶端使用複製(C()py)與自動 (Robocopy)做為檔案傳輸的基本方式。 、 上述的檔案傳輸方式只能允許用戶端建立單一的用 戶連線(usersession),並透過此用戶連線循序傳輸所 貧料令的多個槽案。然而’採用此種方式雖然可以將網路 頻寬(bandwidth)平均分配給每一個用戶使用,但每—個 用士戶連線只能佔用有限的頻寬。在有多餘的頻寬可供運用 4 ’部也沒有辦法再將此頻寬分配給既有的用戶連線使 ^,使得用戶端_服端之_檔案分享綠超越網路傳 理紐。結果就是’每當好端需要使賴路傳輸 ^夕個難的資料或是需要傳輸檔案容量較大的資料 時,其所需的傳輸時間就會隨著槽案數量及容量的多寡而 線性增加。 201114232 PNAI-S W-0241 -T\VXX 31861 tAvf.doc/d 【發明内容】 藉由分析資料中的檔 據以建立多個用戶連 本發明提供一種資料傳輸方法, 案目錄階層決定最佳用戶連線數目, 線以進行資料傳輸。 本發明提出一種資料傳輸方法,用於用戶端與伺服端 之間的資料傳輸服務,其中透過所述資料傳輪服 輸之資料包括多個檔案目錄以及檔案。此方法係先八欠 料傳輸服務所要傳輸之資料的檔案目錄階層,接 些標案目錄中具有至少-個檔案之多個第1目錄= 數,以作為資料傳輸服務的一個最佳用戶連線( ―)數目N,其中N為大於i的正整數。然後再動= 產生N個用戶帳號(user account),並以n個不同的認證 (credentials)資訊動態建立用戶端與伺服端之間的 用戶連線,而能夠透過此等Ν個用戶連線進行用戶端與伺 服端之間的資料傳輸。 …° 在本發明之一實施例中,上述動態建立用戶端與伺服 端之間的Ν個用戶連線的步驟更包括先以第一用戶^號及 第一認證資訊建立用戶端與伺服端之間的一個用戶^ ^, 然後再以管理者(supervisor)之權限,動態產生(ν」) 個用戶帳號’並使得此等(N-1)個用戶帳號各自以不同 的認證資訊建立(N-1)個用戶連線。 在本發明之一實施例中,上述動態建立用戶端與伺服 端之間的N個用戶連線的步驟更包括由每一個用戶自'用戶 端向伺服端發送一則連線訊息,而由伺服端根據此連線訊 201114232 PNAI-SW-024 l-TWXX 3186 ltwf.doc/d 息而回傳一則回應訊息。其中,所述連線訊息包含用戶帳 號、遂證資訊以及待傳送資料之資訊,而所述待傳送資料 之資訊則包括檔案目錄階層及檔案名稱。 在本發明之一實施例中,上述資料傳輸服務係為檔案 分享(file share)的資料傳輸服務。 本發明另提出一種資料傳輸系統,其係用以透過檔案 分享的資料傳輸服務而將傳輸資料傳送至伺服端,此傳輪 φ 資,包括多個檔案目錄以及檔案。此系統包括分析模組/ 叶具杈組及連線通道建立模組。其中,分析模組係用以分 析傳輸資料的檔案目錄階層、檔案總數及每一個檔案的大 ^,以巧得分析資料。計算模組則可根據分析資料決定傳 送傳輸資料的一個最佳連線數目N。連線通道建立模組係 ,以動悲產生N個用戶帳號,並以N個不同的認證資訊動 悲建立所述資料傳輸系統與伺服端之間的N個連線,以透 過此等N個連線傳輸資料至伺服端。 在本發明之一實施例中,上述之連線通道建立模組更 包括帳號建立模組,其係以管理者之權限,動態產生]^個 用戶帳號,並使此等N個用戶帳號各自以不同的認證資訊 建立N個用戶連線。 在士發明之一實施例中,上述之連線通道建立模組包 發送桓組,其係使每—個用戶向舰端發送—則連線訊 ^而由伺服^根據此連線訊息而回傳一則回應訊息。其 迷魏訊息包含用戶帳號、認證資㈣及待傳送資 厂之貢訊而所述待傳送資料之資訊則包括檔案目錄階層 201114232 PNAI-S W-0241 -TWXX 31861twf.doc/d 及檔案名稱。 在本發明之一實施例中,上述之計算模紐係根據多個 檔案目錄中具有至少一個樓案之多個第一層目錄的總數決 定傳送傳輸資料的最佳連線數目N。 在本發明之一實施例中’上述之計算模組係根據多個 檔案中具有某一特定檔案容量之檔案總數決定傳送傳輸資 料的最佳連線數目N。 在本發明之一實施例中,上述檔案分享的資料傳輸服 務係透過傳輸控制協定(Transmission Control pr〇t〇c〇l, TCP )及用戶賀料訊息協定(User Datagram Protocol, UDP ) 其中之一提供資料傳輸服務。 本發明另提出一種資料傳輸方法,用於用戶端與伺服 端之間資料傳輸服務。此方法包括先分析服務所要傳輸之 資料的目錄階層與檔案總數,並根據此目錄階層與檔案總 數決定服務所要傳輸之資料的—個最佳用戶連線數目n厂 其令N為大於1的正整數,最後職態產生N個用戶,並 以N個不同的認證建立用戶端與舰端之間的n個用戶連 士二2過此等N個用戶連線進行用戶端與伺服端之間的 宫料偟給。 述,本發明之資料傳輸方法係分析所要傳輸《 找出其中具有至少-刪的第- 二用· f目錄的數目以作為傳輸此資料# 曰^用η·目。而實際在進行¥料傳輸時,則依據此 取土戶連線數目建立多個用戶連線以傳輸槽案,可實現 201114232 PNAI-SW-0241-TWXX 31861twf.doc/d 多個檔案的平行傳輸β 一為讓本發明之上述特徵和優點能更明顯易懂,下文特 舉實施例,並配合所附圖式作詳細說明如下。 寸 【實施方式】 本發明係在有多個檔案需要經由網路傳輸時,藉由分 ^所要傳輸資料中的檀案目錄階層,以找出傳輸此資料: φ 最佳用戶連線數目,並動態產生對應該數目的用戶連線以 傳輸檔案。據此,本發明能夠有效地運用網路的所有頻寬 以進行資料傳輸,使得資料的傳輸時間可以隨著 數目的增加而線性減少。 連線 圖1是依照本發明一實施例所繪示之資料傳輸系統的 方塊圖。請參照圖1,本實施例之資料傳輸系統1〇〇包括 分析模組110、計算模組120及連線通道建立模組13〇,而 連線通道建立模組130中則包括帳號建立模組132及發送 模組134。資料傳輸系統100係透過檔案分享(file share) 的資料傳輸服務將傳輸資料傳送至伺服端,此傳輸資料中 包括多個檔案目錄以及檔案。其中,上述檔案分享的資料 傳輸服務例如是透過傳輸控制協定(Transmission c〇ntrol Protocol,TCP)或是用戶資料訊息協定(User Datagram Protocol,UDP)來提供,而不限定其範圍。 圖2是依據本發明一實施例所繪示之資料傳輸方法的 流程圖。請同時參照圖丨及圖2,本實施例之資料傳輸方 法適用於圖1之資料傳輪系統1〇〇,而用以在用戶端與伺 201114232 ?XAI-SW-0241-TAVXX 31861twf.doc/d 服端之間提供資料傳輸服務,其詳細步騍如下: 首先,由分析模組110分析用戶端所欲傳輸資料中的 檔案目錄階層,以獲得分析資料(步驟S210)。其中,分 析模組110例如會分析每一個檔案目錄階層中的檔案目錄 與樓案的總數,以獲得此傳輸資料之槽案目錄結構的相關 資料’而用以作為後續決定連線機制的參考。 t接著,由計算模組120根據上述分析模組11〇分析傳 輪貝料所得的分析資料,決定傳送此傳輸 (一)數目N,其中N為大於w正整數。詳=線 汁异杈組120會在所需傳輸資料的所有檔案目錄中找尋具 個檔案的第一層目錄,並計算此類第一層目錄的 Γ22〇)’Γ作為傳送此偷#料的最佳連線數目N (步驟 沾㈣^謂的第—層目錄是指在傳輸資料之檔案目途 二1 上而下的各個播案目錄階層中第-次出現㈣ j植木目錄。簡而言之,此第—層目錄之前的槽案目金 =都沒有包含綠,朗此第—層目錄下相始有出則201114232 PNAI-SW-024 l-TWXX 31861twf.doc/d VI. Description of the Invention: [Technical Field of the Invention] The present invention relates to a method for data transmission, which is to establish an optimal number of user connections. Bamboo transmission ^About [prior technology] With the rapid development of communication technology, the related applications of the network are also new. Broadcasting sharing is an application for transmitting data on the Internet. The sending department actively shares its own file (four) materials on the turn, and asks the user to connect and read the data. - (4) Case (P〇i -, just the transmission mode, the age itself is stored on the computer at the end, and the client uses copy (C () py) and automatic (Robocopy) as the basic way of file transfer. The above file transfer method can only allow the user to establish a single user session (usersession), and sequentially transmit multiple slots of the poorer order through the user connection. However, the network can be used in this way. The bandwidth is evenly distributed to each user, but each connection can only occupy a limited bandwidth. There is no way to use the 4' in the extra bandwidth. Assigned to the existing user connection ^, so that the user _ server _ file sharing green beyond the network transmission New Zealand. The result is 'every good end needs to make the road to transfer ^ difficult information or need When transferring data with a large file size, the required transmission time will increase linearly with the number of slots and capacity. 201114232 PNAI-S W-0241 -T\VXX 31861 tAvf.doc/d [Summary Content 】 By analyzing the data in the data to build more The user provides a data transmission method, and the directory hierarchy determines the optimal number of user connections and lines for data transmission. The present invention provides a data transmission method for data transmission between a client and a server. The information transmitted through the data transfer wheel includes a plurality of file directories and files. This method is the file directory hierarchy of the data to be transmitted by the first eight unsuccessful transmission service, and the plurality of file directories have at least one file. The first directory = number, as a data transmission service, the best user connection ( ― number N, where N is a positive integer greater than i. Then move = generate N user accounts (user account), and n A different credential information dynamically establishes a user connection between the client and the server, and can perform data transmission between the client and the server through such a user connection. ... ° In the present invention In an embodiment, the step of dynamically establishing a user connection between the client and the server further includes first establishing the first user and the first authentication information. A user ^ ^ between the end and the server, and then dynamically generate (ν") user accounts with the authority of the supervisor (and make these (N-1) user accounts each with different authentication The information is established (N-1) user connections. In an embodiment of the present invention, the step of dynamically establishing N user connections between the client and the server further includes each user from the user terminal. The server sends a connection message, and the server sends back a response message according to the connection 201114232 PNAI-SW-024 l-TWXX 3186 ltwf.doc/d. The connection message includes a user account number, a certificate information, and information about the data to be transmitted, and the information of the data to be transmitted includes the file directory hierarchy and the file name. In an embodiment of the invention, the data transmission service is a file share data transfer service. The present invention further provides a data transmission system for transmitting transmission data to a server through a file sharing service, which includes a plurality of file directories and files. The system includes an analysis module / a leaf set and a connection channel building module. Among them, the analysis module is used to analyze the file directory hierarchy of the transmitted data, the total number of files and the size of each file to analyze the data. The calculation module can determine the optimal number N of transmissions for transmitting the data based on the analysis data. The connection channel establishes a module system to generate N user accounts with sorrow, and establishes N connections between the data transmission system and the server with N different authentication information to pass through the N lines. Connect the data to the server. In an embodiment of the present invention, the connection channel establishing module further includes an account creation module, which dynamically generates a user account with the authority of the administrator, and makes each of the N user accounts Different authentication information establishes N user connections. In an embodiment of the invention, the above-mentioned connection channel establishment module packet transmission group is configured to enable each user to send to the ship terminal - the connection signal is sent by the servo ^ according to the connection message. Pass a response message. The information of the Weiwei message includes the user account, the certification capital (4) and the information of the to-be-transmitted information, and the information of the information to be transmitted includes the file directory hierarchy 201114232 PNAI-S W-0241 -TWXX 31861twf.doc/d and the file name. In an embodiment of the invention, the calculation module determines the optimal number N of connections for transmitting the transmission data based on the total number of the plurality of first-level directories having at least one of the plurality of archive directories. In one embodiment of the present invention, the computing module described above determines the optimal number N of connections for transmitting the transmission data based on the total number of files having a particular file capacity among the plurality of files. In an embodiment of the present invention, the data sharing service of the file sharing system is one of a Transmission Control Protocol (Transmission Control) and a User Datagram Protocol (UDP). Provide data transfer services. The invention further provides a data transmission method for a data transmission service between a client and a server. The method comprises first analyzing the directory hierarchy and the total number of files of the data to be transmitted by the service, and determining the number of the best user connections according to the directory hierarchy and the total number of files to determine the information to be transmitted by the service, and the N is greater than 1 Integer, the last position generates N users, and N users are established with N different authentications. The N users are connected between the client and the ship. 2 N users are connected to perform the connection between the client and the server. Gongyao gave it. As described, the data transmission method of the present invention is to analyze the number of directories in which the directory of the first-second use f is found to have at least - deleted as the transmission of the data # 曰^ with η·目. In fact, when the material transmission is carried out, a plurality of user connections are established according to the number of the connected households to transmit the slot case, and the parallel transmission of multiple files of 201114232 PNAI-SW-0241-TWXX 31861twf.doc/d can be realized. The above features and advantages of the present invention will become more apparent from the following description. In the present invention, when there are multiple files to be transmitted via the network, the data is transmitted by dividing the directory of the data in the data to be transmitted: φ the number of optimal user connections, and Dynamically generate the corresponding number of users to connect to transfer files. Accordingly, the present invention can effectively utilize all the bandwidths of the network for data transmission, so that the transmission time of data can be linearly reduced as the number increases. Connection Figure 1 is a block diagram of a data transmission system in accordance with an embodiment of the present invention. Referring to FIG. 1, the data transmission system 1 of the embodiment includes an analysis module 110, a calculation module 120, and a connection channel establishment module 13A, and the connection channel establishment module 130 includes an account creation module. 132 and a transmitting module 134. The data transmission system 100 transmits the transmission data to the server through a file share data transfer service, and the transmission data includes a plurality of file directories and files. The data transmission service of the file sharing is provided by, for example, a Transmission Control Protocol (TCP) or a User Datagram Protocol (UDP), without limiting its scope. 2 is a flow chart of a data transmission method according to an embodiment of the invention. Please refer to FIG. 2 and FIG. 2 at the same time. The data transmission method of this embodiment is applicable to the data transmission system 1 of FIG. 1 and is used for the user terminal and the server 201114232 ? XAI-SW-0241-TAVXX 31861twf.doc/ The data transmission service is provided between the server terminals, and the detailed steps are as follows: First, the analysis module 110 analyzes the file directory hierarchy in the data to be transmitted by the user terminal to obtain analysis data (step S210). The analysis module 110 analyzes, for example, the total number of archive directories and the number of buildings in each file directory hierarchy to obtain the relevant information of the slot directory structure of the transmitted data, and serves as a reference for the subsequent decision connection mechanism. Then, the calculation module 120 analyzes the analysis data obtained by the filter module according to the analysis module 11 to determine the number N of transmissions (1), where N is a positive integer greater than w. The detailed data line 120 will search for the first level of the file in the file directory of all the required data, and calculate the first level of the file. The number of optimal connections N (step-by-four (4) ^ refers to the first-level directory refers to the first occurrence of the (four) j-wood directory in the various directory categories of the file on the second side of the file transfer. In a nutshell The slot item in front of this first-level directory does not contain green, and the first-level directory has the same

目舒說? 3是依照本發明—實施例所緣示H 圖。請參照圖3,本實施例之檔案_ 可以包二-個槽案目錄_ 有至少-個=本實施例所述之, 始有包含縣,料科有包含赌目錄。彳物, 201114232 PNAI-SW-0241-TWXX 31861twf.doc/d 錄A下包含龍目錄目錄c,並未 類:第一層目錄;槽案目錄C下包含槽。 錄H’由於檔案G是第—次出現在檔案目錄下,因 此棺木目錄C可歸類為第—層目錄;檔案目錄Η下包人右 S 1 J Π但其前一階層的檔案目錄C本身已^類 為弟-:目i:’因此檔案目錄η只能歸類為第二層目錄: 值得注意的是,上述以第—層目錄總數來“最‘ 線,目的原因在於傳輸資料可能包括多個槽案目錄, 而每-個檔案目錄階層中又可能包括多個檔案目錄二 案。若要實賴案平行傳輪的最純,就_在傳輪: 中找出可以在同-時間傳輪但*會彼此重複的縣目錄 檔案,如此才能夠在不重複傳輸且不浪費網路頻寬的情^ 下,建立適當數目的用戶連線以實現最大的資料傳輸 上述疋義的第一層目錄就符合此最大不重複的原則,而此 第一層目錄的總數就是本實施例中的最佳連線數目。 在決定最佳連線數目Ν之後’接著則由連線通道建立 模組130動態產生Ν個用戶帳號(useraccount),並以ν 個不同的認證(credentials)資訊動態建立資料傳輪系会 100與祠服端之間的N個連線,以透過此等N個連線 資料至伺服端(步驟S230)。其中,欲傳輸資料的用戶^ 向伺服端發送連線訊息。相對地,伺服端在接收到連線: 息之後,也會回傳回應訊息以建立用戶連線。 ' 訊 詳細地說’在計算模組120決定最佳連線數目N 後’連線通道建立模組130中的帳號建立模組132將 201114232 ΡΝΛΙ-S W-0241 -T WXX 31861 twf.doc/d 管理者之權限,動態產生N個用戶帳號,並透過發 134向祠服端發送連線訊息,使得此ν個用戶帳號各自、 不同的認證資訊向伺服端要求建立Ν個用戶連線。其中以 發送模組134所發送的連線訊息中即包括用戶的用戶 號、涊證資訊以及待傳送資料之資訊,而此待傳送資料 資訊中則包括所欲傳輸資料的檔案目錄階層及稽案名ρ笑 資訊。 ”冉寺 此外,在一實施例中,連線通道建立模組13〇例如是 先以既有的一組用戶帳號及認證資訊登入伺服端,以在資 料傳輸系、统100與伺服端之間建立一個用戶連線。而在登 入之後’再以管理者的權限’動態產生(Ν_υ個用戶帳 號,並使此⑽)個用戶帳號各自叫同的認證資訊來 與伺服端建立(Ν-1)個用戶連線。 值得-提的是,除了上述以標案目錄中具有至少一個 樓案之第-層目制缝來決定最佳連較目的方式之 外二實施例中,本發明也可以根據播案目錄中具有 之播案的總數來決定最佳連線數目,以作 為後、·,貝建立用戶連線的依據,以下則再舉—實施例詳細說 明0 厂=依據本發明-實施例所•之資料傳輸方法的 j圖。晴同時參關1及圖4,本實施例之資料傳輸方 絲^圖1之資料傳輸系統⑽,用以在用戶端與祠服 立而之間提供貧料傳輸服務,其詳細步驟如下. 首先,由分析模組no*析用戶端所欲傳輸資料中的 201114232 PNAI-SW-024I-TWXX 31861 twf.doc/d 槽案目錄階層,以獲得分析資料(步驟S41〇)。其中,八 析权組11G會分析每-個槽案目錄階層中各健案的二 小,而獲得此傳輸資料之槽案目錄結構的相關資料= 作為後續決定連線策略的參考。 人 接著,由計算 120根據上述分析模組110分折所 得的分析資料,搜尋傳輸資料㈣個難中具有—特^ 案容量之㈣總數,而蚊傳送此傳輸資料的-個最佳^ 線數目Ν (步驟S420),其中Ν為大於【的正整數。連 值得注意的是,上述以特定檔案容量之檔案總數來決 =最佳連線數目的相在於傳輪㈣巾可能包括許多大容 置播案’而這些大容量姆在整雜輸資料的過程中勢必 會佔據較大㈣重。據此’本發明先把這些大容量樓案從 傳,貝料巾挑選出來,並分別建立對應的用戶連線以進行 平行傳輸d而可避免這些大容量槽案被分配到同一個用 戶連線中傳輸而造成傳輸塞車的情形。 “在決疋最佳連線數目N之後,接著則由連線通道建立 权組丄3G動癌、產生N個用戶帳號,並以N個不同的認證資 訊動祕立貧料傳輪系統i⑽與健端之間的則固連線, 以透喝此等N個連線傳輪資料至伺服端(步驟S43〇)。 其中’欲傳輪資料的用戶會向舰端發送連線訊息。相對 地’伺服端在接收到連線訊息之後,即會回傳回應訊息以 建立用戶連線。 、,得提的疋,在一實施例中,資料傳輸系統1〇〇也 可以^合考置貧料傳輪服務所要傳輸之資料的目錄階層與 11 201114232 PNAI-SW-0241-TWXX 3l861twf.doc/d 檔案總數,以決定該服務所要傳輸之資料之最佳用戶連線 數目。例如,當目錄階層過多或小權案數過多時,採用以 目錄總數為傳輸基礎;當目錄階層較少或大檔案較多時, 則採用以檔案總數為傳輸基礎,以達到最佳的用戶連線數 目。以下則再舉一實施例詳細說明。 圖5是依據本發明一實施例所繪示之資料傳輸方法的 流程圖。請同時參照圖1及圖5,本實施例之資料傳輸方 法適用於圖1之資料傳输系統1〇〇,用以在用戶端與伺服 端之間提供資料傳輸服務,其詳細步騾如下: 鲁 首先’由分析模組110分析資料傳輸服務所要傳輪之 資料的目錄階層與檔案總數,以獲得分析資料(步驟 S510)。其中’分析模組11()會分析每一個檔案目錄階層 中的槽案目錄與檔案的總數以及各個檔案的大小,而獲得 此傳輸資料之檔案目錄結構的相關資料,據以作為後續決 定連線策略的參考。 接著,由計算模組12〇根據上述分析資料中目錄階層 與檔案總數,以決定該服務所要傳輸之資料之最佳用戶連 線,目N(步驟S520) ’其中N為大於1的正整數。其中, 汁异模組120可根據資料傳輸量最大化或是最有效利用網 路頻寬的傳輸策略,選擇使用傳輸資料的多個檔案目錄總 數’抑或選擇特定權案容量之稽案總數,來作為最佳用戶 連線數目N。 取後’則由連線通道建立模組13〇動態產生n個用 、’以N個不同的認證建立用戶端與飼服端之間的n個 12 201114232 PNAI-SW-0241-TWXX 31861twf.doc/d 用戶連線,赠過此則_戶躲 間的資料傳輪(步驟S53G)。 尸純之 综上所述,本發明之資料傳輸方法 5資料中的檔案目錄階層、檔案總數1及每;Ϊ 蚊傳送轉輸:倾的最料祕目。因此: ^ ^傳輸㈣時能夠建立最佳連線數目的用戶連線以進 ^貝料,平行傳輪,進而實現檀案平行傳輸的最佳化。本 二明的没計可以破除傳統單—機器或單—用戶只能建立單 —用戶連線傳輸資料的方式,使得資料的傳輸不再受到物 理極限的限制。 雖然本發明已以實施例揭露如上,然其並非用以限定 本發明’任何所屬技術領域中具有通常知識者’在不脫離 本發明之精神和範圍内,當可作些許之更動與潤飾,故本 發明之保護範圍當視後附之申請專利範圍所界定者為準。 【圖式簡單說明】 圖1是依照本發明一實施例所繪示之資料傳輪系統的 方塊圖。 '… 圖2疋依據本發明一實施例所緣示之資料傳輸方法的 流程圖。 圖3疋依照本發明一實施例所繪示之樓案目錄結構的 示意圖。 圖4是依據本發明一實施例所繪示之資料傳輪方法的 流·程圖。 13 201114232 ?NA:-SW-0241 -TWXX 31861twf.doc/d 圖5是依據本發明一實施例所繪示之資料傳輸方法的 流程圖。 【主要元件符號說明】 100 資料傳輸系統 110 分析模組 120 計算模組 130 連線通道建立模組 132 帳號建立模組 134 發送模組 300 檀案目錄結構 S110〜S130 ·•本發明一實施例之資料傳輸方法的各步 驟 S410〜S430 :本發明一實施例之資料傳輸方法的各步 驟 S510〜S530 :本發明一實施例之資料傳輸方法的各步 驟 參 14目舒说? 3 is an H-picture according to the present invention - an embodiment. Referring to FIG. 3, the file _ in this embodiment can include two-slot directory _ there are at least one = as described in this embodiment, and the county has a county, and the material department has a gambling directory. Booty, 201114232 PNAI-SW-0241-TWXX 31861twf.doc/d Record A contains the dragon directory directory c, no class: the first level directory; the slot directory C contains slots. Record H' because the file G is the first time in the file directory, so the coffin directory C can be classified as the first-level directory; the file directory is under the right S 1 J Π but the previous level of the file directory C itself Has been classed as a brother-::目i: 'So the file directory η can only be classified as a second-level directory: It is worth noting that the above is the "most" line with the total number of first-level directories, the purpose is that the transmission of data may include Multiple slot directories, and each file directory level may include multiple file directory two cases. If you want to use the parallel transmission of the purest, then _ in the pass: find out in the same time The county directory files that are transmitted but will repeat each other, so that the appropriate number of user connections can be established to achieve maximum data transmission without repeating transmission and without wasting network bandwidth. The layer directory conforms to the principle of maximum non-repetition, and the total number of the first layer directory is the optimal number of connections in this embodiment. After determining the optimal number of connections, then the module is established by the connection channel. 130 dynamically generates a user account (useraccoun t), and dynamically establishes N connections between the data transmission system 100 and the server end with ν different credentials information to pass the N connection data to the server (step S230) Among them, the user who wants to transmit data sends a connection message to the server. In contrast, after receiving the connection: the server will also send back a response message to establish a user connection. After the calculation module 120 determines the optimal number of connections N, the account establishment module 132 in the connection channel establishment module 130 will have the authority of the 201114232 ΡΝΛΙ-S W-0241 -T WXX 31861 twf.doc/d manager. N user accounts are generated, and a connection message is sent to the server through the sending 134, so that the authentication information of the respective user accounts is required to establish a user connection to the server, and the sending module 134 sends the connection. The connection message includes the user's user number, the information about the card and the information to be transmitted, and the information to be transmitted includes the file directory hierarchy and the name of the file to be transmitted. In addition, in a real Embodiment, the connection channel establishing module 13〇 example first to a group of existing user account and authentication information sign servo end user to establish a resource between the material conveying system, a servo system 100 and the end connection. After the login, the administrator's authority is used to dynamically generate (Ν_υ user account number, and make this (10)) user account the same authentication information to establish (Ν-1) user connections with the server. It is worth mentioning that, in addition to the above-mentioned two embodiments in which the first-layer seam of at least one design in the catalogue is used to determine the best connection purpose, the present invention may also have The total number of broadcasts to determine the optimal number of connections, as a basis for the establishment of user connections, and the following is a further example - the details of the embodiment 0 factory = data transmission according to the present invention - embodiment The j diagram of the method. The data transmission system (10) of the data transmission square wire of the present embodiment is used to provide a poor material transmission service between the user end and the service device. The detailed steps are as follows. The analysis module no* analyzes the 201114232 PNAI-SW-024I-TWXX 31861 twf.doc/d slot directory hierarchy in the data that the user wants to transmit to obtain the analysis data (step S41〇). Among them, the 8G group will analyze the size of each health record in each trough directory, and obtain the relevant information of the trough directory structure of this transmission data = as a reference for the subsequent decision connection strategy. Then, based on the analysis data obtained by the above-mentioned analysis module 110, the calculation 120 searches for the total number of (4) of the transmission data (four) difficulties, and the number of best cables transmitted by the mosquitoes. Ν (step S420), where Ν is a positive integer greater than [. It is worth noting that the above-mentioned total number of files with a specific file capacity = the best number of connections is that the transmission wheel (four) towel may include many large-volume broadcast cases, and these large-capacity products are in the process of transferring data. The middle is bound to occupy a large (four) weight. According to this, the present invention first selects these large-capacity buildings from the pass and the bedding, and respectively establish corresponding user connections for parallel transmission d to avoid these large-capacity slots being assigned to the same user connection. The transmission causes a traffic jam. “After deciding the optimal number of connections N, then the connection channel establishes the right group 丄3G to cancer, generates N user accounts, and uses N different authentication information to mobilize the poor material delivery system i(10) and The connection between the health terminals is to connect the N connection data to the server (step S43〇). The user who wants to transmit the data will send a connection message to the ship. After the server receives the connection message, it will return the response message to establish the user connection. In addition, in one embodiment, the data transmission system can also be used to determine the poor material. The directory hierarchy of the data to be transmitted by the transport service and the total number of files to determine the information to be transmitted by the service. For example, when there are too many directory levels When there are too many small cases, the total number of directories is used as the transmission basis; when there are fewer directory levels or more files, the total number of files is used as the transmission basis to achieve the best number of user connections. A detailed description of an embodiment. 5 is a flowchart of a data transmission method according to an embodiment of the present invention. Referring to FIG. 1 and FIG. 5 simultaneously, the data transmission method of this embodiment is applicable to the data transmission system 1 of FIG. The data transmission service is provided between the client and the server, and the detailed steps are as follows: First, the analysis module 110 analyzes the directory hierarchy and the total number of files of the data to be transmitted by the data transmission service to obtain analysis data (step S510). The analysis module 11() analyzes the total number of the directory and the files in each file directory hierarchy and the size of each file, and obtains the relevant information of the file directory structure of the transmission data, which is used as a follow-up decision. The reference of the connection strategy. Next, the calculation module 12 determines the best user connection for the data to be transmitted by the service according to the directory hierarchy and the total number of files in the analysis data, and returns N (step S520), where N is A positive integer greater than 1. The juice module 120 can select the transmission resource according to the maximum amount of data transmission or the most efficient use of the network bandwidth transmission strategy. The total number of multiple file directories' or the total number of files for a specific power capacity is selected as the optimal number of user connections N. After the 'connection', the module 13 is dynamically created to generate n uses, 'to N A different authentication establishes the n 12 201114232 PNAI-SW-0241-TWXX 31861twf.doc/d user connection between the client and the feeding end, and the data transmission of the _ household hiding room is given (step S53G) According to the corpse pure, the file directory hierarchy and the total number of files in the data transmission method 5 of the present invention 1 and each; the mosquito transmission transmission: the most important secret of the dumping. Therefore: ^ ^ transmission (four) can The user who establishes the optimal number of connections is connected to the bedding material and parallel to the wheel, thereby optimizing the parallel transmission of the Tan. This can eliminate the traditional single-machine or single-user-only way to establish a single-user connection to transmit data, so that the transmission of data is no longer limited by physical limits. Although the present invention has been disclosed in the above embodiments, it is not intended to limit the invention to those skilled in the art, and the invention may be modified and modified without departing from the spirit and scope of the invention. The scope of the invention is defined by the scope of the appended claims. BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a block diagram of a data transfer system in accordance with an embodiment of the present invention. Fig. 2 is a flow chart showing a method of data transmission according to an embodiment of the present invention. FIG. 3 is a schematic diagram showing the structure of a building directory according to an embodiment of the invention. 4 is a flow chart of a data transfer method according to an embodiment of the invention. 13 201114232 ?NA:-SW-0241 -TWXX 31861twf.doc/d FIG. 5 is a flow chart of a data transmission method according to an embodiment of the invention. [Description of main component symbols] 100 data transmission system 110 analysis module 120 calculation module 130 connection channel establishment module 132 account establishment module 134 transmission module 300 file directory structure S110~S130 ·• an embodiment of the present invention Steps S410 to S430 of the data transmission method: steps S510 to S530 of the data transmission method according to an embodiment of the present invention: steps 14 of the data transmission method according to an embodiment of the present invention

Claims (1)

201114232 FNA1-SW-0241-TWXX 31861twf.d〇c/d 七、申請專利範圍: 一種貝料傳輸方法,用於一用戶端與一伺服端之間 的二資料傳輸服務,其巾透過所述資料傳輸服務所要傳輸 之貧料包括多個檔案目錄以及檔案,該方法包括: 分析該資料傳輪服務所要傳輸之:f料的财目錄階 層; 計算該些檔案目錄中具有至少一構案之多個第一層 • 目錄的總數,以作為該資料傳輸服務之一最佳用戶連A (User session)數目 n ;以及 動態產生N個用戶帳號(useracc〇unt),並以^^個 =同的認證(credentials )資訊動態建立該用戶端與該伺服 端之間的N個用戶連線,以透過該等N個用戶連線進行該 用戶端與該伺服端之間的資料傳輸。 Λ 2. 如申請專利範圍第丨項所述之資料傳輪方法,其中 動態建立該用戶端與該伺服端之間的Ν個用戶連線更包 括: ' • 以一第一用戶帳號及一第一認證資訊建立該用戶端 與該伺服端之間的一個用戶連線;以及 以管理者(supervisor)之權限,動態產生(队丨)個 用戶帳號’並使該等(Ν-1 )個用戶帳號各自以不同的認 證資訊建立該等(N-1)個用戶連線。 3. 如申請專利範圍第1項所述之資料傳輸方法,其中 動悲建立該用戶端與該伺服端之間的N個用戶連線更包 括:201114232 FNA1-SW-0241-TWXX 31861twf.d〇c/d VII. Patent application scope: A beetle transmission method for two data transmission services between a client and a server, the towel passing through the data The poor material to be transmitted by the transmission service includes a plurality of archive directories and files, and the method includes: analyzing the wealth of the information directory to be transmitted by the data transfer service; calculating a plurality of at least one configuration file in the archive directory The first layer • The total number of directories, as one of the best users of the data transmission service, the number of A (User session) n; and dynamically generate N user accounts (useracc〇unt), and ^^ = same authentication The (credentials) information dynamically establishes N user connections between the client and the server to perform data transmission between the client and the server through the N user connections. Λ 2. For the data transfer method described in the scope of the patent application, the dynamic establishment of the user connection between the client and the server further includes: ' • with a first user account and a first A certification information establishes a user connection between the client and the server; and dynamically generates (teams) user accounts 'with the authority of the supervisor' and enables the (Ν-1) users Each account establishes these (N-1) user connections with different authentication information. 3. For the data transmission method described in claim 1, wherein the N user connection between the client and the server is further included: 15 201114232 PNAI-S W-0241 -TWXX 31861twf.doc/d 每一用戶係自用戶端向伺服端發送—連線訊·.、 該/[司服端根據該連線訊息而回傳一回應气阜 、及 4. 如申請專利範圍第3項所述之資料傳輪方法 該連線訊息包含用戶帳號、認證資訊以及待傳 '次/、中 訊。 、貝料之資 5. 如申請專利範圍第4項所述之資料傳輸方法复 待傳送資料之資訊包括檔案目錄階層及檔案名稱。"中 6·如申請專利範圍第1項所述之資料傳輸方法, 該資料傳輸服務係為一檔案分享(file share)次二中 服務。 ^料傳輪 7. -種資料傳輸系統,用以透過—樓案分享 輸服務而將一傳輸資料傳送至一伺服端,該傳輪資料 多個檔案目錄以及檔案,該系統包括: 叶匕括 一分析模組,用以分析該傳輸資料的檔案目錄卩比 檔案總數及每一檔案大小,以獲得一分析資料;白e 一計算模組,其係根據該分析資料決定 料之-最佳連線數SN;以及 L亥傳輪貝 一連線通道建立模組,其係動態產生N個用戶 並以N個不同的認證f訊動態建立該f料傳輪系統與^ 服端之間的N個用戶連線,以透過該等N個用戶連^於 資料至該健端。 逆银得輸 8. 如申請專利範圍第7項所述之資料傳輪系統,i 該連線通道建立模纟且更包括: 帳唬建立模組,其係以管理者之權限,動 態產生N 16 201114232 FNAi-SW-0241-TWXX 31861twf.doc/d 個用戶帳號,並使該等N個用戶帳號各自以不同的認證資 訊建立該等N個用戶連線。 9. 如申請專利範圍第7項所述之資料傳輸系統,其中 該連線通道建立模組包括: 一發送模組,其係使每一用戶向伺服端發送一連線訊 息;以及 該伺服端根據該連線訊息而回傳一回應訊息。 10. 如申請專利範圍第9項所述之資料傳輸系統,其中 • 該連線訊息包含用戶帳號、認證資訊以及待傳送資料之資 訊。 11. 如申請專利範圍第10項所述之資料傳輸系統,其 中待傳送資料之資訊包括檔案目錄階層及檔案名稱。 12. 如申請專利範圍第7項所述之資料傳輸系統,其中 該計算模組係根據多個檔案目錄中具有至少一檔案之多個 第一層目錄的總數決定傳送該傳輸資料之該最佳連線數目 N。 • 13.如申請專利範圍第7項所述之資料傳輸系統,其中 該計算模組係根據多個檔案中具有一特定檔案容量之檔案 總數決定傳送該傳輸資料之該最佳連線數目N。 14.如申請專利範圍第7項所述之資料傳輸系統,其中 該檔案分享的資料傳輸服務係透過一傳輸控制協定 (Transmission Control Protocol, TCP)及一用戶資料訊息 協定(User Datagram Protocol, UDP)其中之一提供資料傳 輸服務。 17 201114232 PNAI-S W-0241 -TWXX 31861twf.doc/d 15.—種資料傳輸方法,用於一用戶端與一伺服端之間 一資料傳輸服務5該方法包括: 分析該資料傳輸服務所要傳輸之資料的目錄階層與 檔案總數; 根據該目錄階層與該檔案總數決定該服務所要傳輸 之資料之一最佳用戶連線數目N,其中N為大於1的正整 數;以及 動態產生N個用戶,並以N個不同的認證建立該用戶端與 該伺服端之間的N個用戶連線,以透過N個用戶連線進行 該用戶端與該伺服端之間的資料傳輸。15 201114232 PNAI-S W-0241 -TWXX 31861twf.doc/d Each user sends from the user to the server - connection message.. / [The service end returns a response based on the connection message阜, and 4. For the data transfer method described in item 3 of the patent application, the connection message includes the user account, the authentication information, and the pending 'times/, Zhongxun. The information on the data transmission method as described in item 4 of the patent application includes information on the file directory hierarchy and file name. "中6· If the data transmission method described in item 1 of the patent application is applied, the data transmission service is a file share second service. ^料传轮7 - A data transmission system for transmitting a transmission data to a server through a connection-sharing service, the transmission data has multiple file directories and files, and the system includes: An analysis module for analyzing the file directory of the transmission data, the total number of files and the size of each file, to obtain an analysis data; the white e-calculation module, which determines the material-optimal connection based on the analysis data The number of lines SN; and the L-Hai-Hui-Bai-line connection module establishes a module, which dynamically generates N users and dynamically establishes N between the f-material transmission system and the service end by N different authentications. Users are connected to connect the data to the health terminal through the N users. Inverse silver is lost 8. If the data transfer system described in item 7 of the patent application scope is applied, i the connection channel establishes a model and further includes: an account creation module, which dynamically generates N by the authority of the manager. 16 201114232 FNAi-SW-0241-TWXX 31861twf.doc/d user accounts, and these N user accounts each establish these N user connections with different authentication information. 9. The data transmission system of claim 7, wherein the connection channel establishment module comprises: a transmission module, wherein each user sends a connection message to the server; and the server A reply message is sent back according to the connection message. 10. For the data transmission system described in claim 9, wherein • the connection message contains the user account, the authentication information, and the information of the data to be transmitted. 11. For the data transmission system described in claim 10, the information to be transmitted includes the file directory hierarchy and the file name. 12. The data transmission system of claim 7, wherein the computing module determines the best to transmit the transmission data according to a total number of the plurality of first layer directories having at least one file in the plurality of file directories. The number of connections is N. 13. The data transmission system of claim 7, wherein the calculation module determines the optimal number N of transmissions of the transmission data based on the total number of files having a specific file capacity among the plurality of files. 14. The data transmission system of claim 7, wherein the file sharing data transmission service comprises a Transmission Control Protocol (TCP) and a User Datagram Protocol (UDP). One of them provides a data transfer service. 17 201114232 PNAI-S W-0241 -TWXX 31861twf.doc/d 15. A data transmission method for a data transmission service between a client and a server 5 The method comprises: analyzing the data transmission service to be transmitted The directory hierarchy of the data and the total number of files; the number of optimal user connections N according to the directory hierarchy and the total number of files to be transmitted by the service, where N is a positive integer greater than 1; and dynamically generating N users, N user connections between the client and the server are established by using N different authentications, so that data transmission between the client and the server is performed through N user connections. 1818
TW98134314A 2009-10-09 2009-10-09 Method and system for data transmission TWI384820B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW98134314A TWI384820B (en) 2009-10-09 2009-10-09 Method and system for data transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW98134314A TWI384820B (en) 2009-10-09 2009-10-09 Method and system for data transmission

Publications (2)

Publication Number Publication Date
TW201114232A true TW201114232A (en) 2011-04-16
TWI384820B TWI384820B (en) 2013-02-01

Family

ID=44909962

Family Applications (1)

Application Number Title Priority Date Filing Date
TW98134314A TWI384820B (en) 2009-10-09 2009-10-09 Method and system for data transmission

Country Status (1)

Country Link
TW (1) TWI384820B (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6460087B1 (en) * 1998-02-25 2002-10-01 Kdd Corporation Method of transferring file
US6085251A (en) * 1998-04-02 2000-07-04 The United States Of America As Represented By The Secretary Of The Air Force Implementing a parallel file transfer protocol

Also Published As

Publication number Publication date
TWI384820B (en) 2013-02-01

Similar Documents

Publication Publication Date Title
JP3956365B2 (en) System and method for responding to resource requests in a distributed computer network
CN102546583A (en) Service virtualization over content-centric networks
US9112875B2 (en) System and method for anonymous addressing of content on network peers and for private peer-to-peer file sharing
US9204180B2 (en) Method, server and terminal for audio and video on demand
JP5567558B2 (en) Information disclosure on the website using the server
US8533359B2 (en) Interdomain network aware peer-to-peer protocol
WO2008116401A1 (en) A method, system and nodes for p2p content sharing
WO2010028590A1 (en) Method for providing address list, peer-to-peer network and scheduling method thereof
KR101564416B1 (en) 2 Method and apparatus for receiving data using P2P portal server
CN102571857A (en) Method and system for realizing logging in XMPP (Xmlbased Messaging and Presence Protocol) server
EP2282460B1 (en) Document transmission realizing method, apparatus and user device for message business
US9591069B2 (en) Peer-to-peer assist for live media streaming
WO2015149486A1 (en) Page push method, device and server, and centralized network management controller
US20140019549A1 (en) Control System for Conferencing Applications in Named-Data Networks
US20120297075A1 (en) Device interconnection and service discovery via a communication cloud
WO2016180284A1 (en) Service node allocation method, device, cdn management server and system
EP3155772B1 (en) A new instant messaging(im) routing method and router
US20210226815A1 (en) Communications bridge
JP2010500804A (en) A method for information diffusion in distributed networks
TW201114232A (en) Method and system for data transmission
WO2012000222A1 (en) Method for p2p-based remote video education implemented on webpage
TW200847711A (en) Method and related system for building up a network connection between clients and servers through a stream fork by utilizing http protocol
CN103001930A (en) Remote data communication system
Ruso et al. Ppssm: push/pull smooth video streaming multicast protocol design and implementation for an overlay network
Uma Maheswari et al. Reliability Enhanced Overlay Structure for Peer-to-Peer Video Streaming