異步批量文件網(wǎng)絡(luò)傳輸系統(tǒng)設(shè)計(jì)與實(shí)現(xiàn)
本文選題:文件傳輸 + 線程調(diào)度; 參考:《湖南師范大學(xué)》2014年碩士論文
【摘要】:隨著信息技術(shù)和網(wǎng)絡(luò)技術(shù)的快速發(fā)展,促使了人們對(duì)文件共享的需求不斷增加。如何實(shí)現(xiàn)大批量和大體積文件在網(wǎng)絡(luò)上快速傳輸已經(jīng)成為現(xiàn)在研究的一個(gè)熱點(diǎn)。現(xiàn)在主流的文件傳輸類軟件在批量上傳文件、大文件傳輸中還存在一些問題。本文通過對(duì)異步批量文件傳輸系統(tǒng)的設(shè)計(jì)與研究,提出一種異步批量文件傳輸、大文件快速共享的文件傳輸方案。 論文分別論述了系統(tǒng)組成的各個(gè)模塊和功能,整體采用了服務(wù)器端/客戶端的設(shè)計(jì)模式。采用了TCP協(xié)議來(lái)保證文件傳輸質(zhì)量,并在此基礎(chǔ)上采用多線程技術(shù)來(lái)實(shí)現(xiàn)批量文件的傳輸,還針對(duì)大體積文件的傳輸采用了依據(jù)網(wǎng)絡(luò)狀態(tài)自動(dòng)分片傳輸和重組的技術(shù)。論文在設(shè)計(jì)過程中除了實(shí)現(xiàn)了文件共享的基本功能之外,還采取了斷點(diǎn)續(xù)傳技術(shù)來(lái)提高文件傳輸?shù)男。本文著重?duì)文件傳輸優(yōu)化的策略進(jìn)行了研究,并提出了一種根據(jù)傳輸狀態(tài)的線程調(diào)度策略和一種基于網(wǎng)絡(luò)狀況的傳輸優(yōu)化策略。其中,根據(jù)傳輸狀態(tài)的線程調(diào)度策略是根據(jù)單個(gè)傳輸線程的狀態(tài)來(lái)動(dòng)態(tài)的調(diào)度線程池中的活動(dòng)線程數(shù)以最大利用系統(tǒng)資源和網(wǎng)絡(luò)資源來(lái)優(yōu)化傳輸,基于網(wǎng)絡(luò)狀態(tài)的傳輸優(yōu)化策略采用了統(tǒng)計(jì)當(dāng)前網(wǎng)絡(luò)流量模型,并根據(jù)這種模型預(yù)測(cè)網(wǎng)絡(luò)閑時(shí)以充分利用網(wǎng)絡(luò)的空閑資源來(lái)最大優(yōu)化文件傳輸服務(wù)。此外,為保證文件傳輸過程的準(zhǔn)確性和一致性,采用了文件檢測(cè)和文件一致性校驗(yàn)的方法,為使用戶直觀地監(jiān)測(cè)文件傳輸?shù)臓顟B(tài),本文將傳輸進(jìn)度通過消息機(jī)制實(shí)時(shí)的顯示在界面上。最后,為提高本系統(tǒng)可靈活性和可移植性,本文將客戶端設(shè)計(jì)為組件模式,以供本系統(tǒng)可以嵌入到網(wǎng)頁(yè)中或者其他應(yīng)用中。 隨著人們對(duì)文件共享和實(shí)時(shí)傳輸方面的需求增加,本文采取了實(shí)時(shí)通信的方式進(jìn)行了方案的總體設(shè)計(jì)和實(shí)施,在煙葉原料近紅外光譜信息共享系統(tǒng)中運(yùn)行表明總體方案設(shè)計(jì)是合理的。
[Abstract]:With the rapid development of information technology and network technology, the demand for file sharing is increasing.How to realize the fast transmission of large-volume and large-volume files on the network has become a hot research topic.Now the mainstream file transfer software uploads files in batches, there are still some problems in large file transfer.Based on the design and research of asynchronous batch file transfer system, a file transfer scheme of asynchronous batch file transfer and fast sharing of large files is proposed in this paper.This paper discusses the modules and functions of the system, and adopts the design mode of server / client.The TCP protocol is adopted to guarantee the quality of file transmission, and the multithreading technology is adopted to realize the transfer of batch files. The technology of automatic slicing and reorganizing according to the network state is also used for the transmission of large volume files.In addition to realizing the basic function of file sharing, the paper also adopts breakpoint transmission technology to improve the efficiency of file transfer.In this paper, the strategy of file transfer optimization is studied, and a thread scheduling strategy based on transmission state and a transmission optimization strategy based on network condition are proposed.Among them, the thread scheduling strategy based on the transmission state is to dynamically schedule the number of active threads in the thread pool according to the state of a single transport thread in order to maximize the utilization of system resources and network resources to optimize the transmission.The transmission optimization strategy based on the network state adopts the current network traffic model and predicts the idle time of the network according to this model to optimize the file transfer service by making full use of the free resources of the network.In addition, in order to ensure the accuracy and consistency of the file transfer process, the methods of file detection and file consistency verification are adopted to enable users to monitor the status of file transfer intuitively.In this paper, the transmission progress through the message mechanism in real-time display on the interface.Finally, in order to improve the flexibility and portability of the system, the client is designed as a component mode, so that the system can be embedded in the web page or other applications.With the increasing demand for file sharing and real-time transmission, this paper adopts the method of real-time communication to design and implement the scheme.The operation in the near infrared spectrum information sharing system of tobacco raw materials shows that the overall scheme design is reasonable.
【學(xué)位授予單位】:湖南師范大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2014
【分類號(hào)】:TP393.093
【參考文獻(xiàn)】
相關(guān)期刊論文 前10條
1 張安琳,黃道穎,李潢琦;Windows程序的基本框架和消息機(jī)制[J];電腦開發(fā)與應(yīng)用;2001年08期
2 章秦;;Win32多線程同步技術(shù)淺析[J];電子設(shè)計(jì)工程;2011年21期
3 王曉鵬;TCP/IP下的Socket及Winsock通信機(jī)制[J];航空計(jì)算技術(shù);2004年02期
4 王晶;樊曉椏;張盛兵;王海;;多核多線程結(jié)構(gòu)線程調(diào)度策略研究[J];計(jì)算機(jī)科學(xué);2007年09期
5 陳增強(qiáng),郭嘉琳,劉忠信,袁著祉;具有斷點(diǎn)續(xù)傳功能的文件傳輸系統(tǒng)的設(shè)計(jì)與關(guān)鍵技術(shù)[J];計(jì)算機(jī)工程;2002年12期
6 李剛;金蓓弘;;基于線程的并發(fā)控制技術(shù)研究與應(yīng)用[J];計(jì)算機(jī)工程;2007年14期
7 何俊峰,謝高崗,楊建華;基于周期性網(wǎng)絡(luò)流量模型的流量預(yù)測(cè)[J];計(jì)算機(jī)應(yīng)用;2003年10期
8 賀智明;彭桃發(fā);;基于ActiveX數(shù)據(jù)控件的Web信息系統(tǒng)平臺(tái)設(shè)計(jì)[J];計(jì)算機(jī)應(yīng)用與軟件;2007年08期
9 黃競(jìng)斌;彭新一;黃志煒;;Windows環(huán)境下的進(jìn)程監(jiān)視系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)[J];計(jì)算機(jī)與現(xiàn)代化;2010年10期
10 馬賽紅;朱愛紅;李連;;基于ActiveX控件技術(shù)的B/S模式下公文處理的研究與實(shí)現(xiàn)[J];計(jì)算機(jī)與現(xiàn)代化;2011年07期
,本文編號(hào):1738561
本文鏈接:http://sikaile.net/guanlilunwen/ydhl/1738561.html