天堂国产午夜亚洲专区-少妇人妻综合久久蜜臀-国产成人户外露出视频在线-国产91传媒一区二区三区

當(dāng)前位置:主頁 > 科技論文 > 計(jì)算機(jī)論文 >

高速網(wǎng)卡數(shù)據(jù)傳輸?shù)难芯颗c實(shí)現(xiàn)

發(fā)布時(shí)間:2018-11-13 10:21
【摘要】:隨著網(wǎng)絡(luò)的快速發(fā)展和計(jì)算機(jī)的普及,網(wǎng)絡(luò)帶寬和流量都在急速增長,特別是由于光纖地誕生應(yīng)用,網(wǎng)絡(luò)帶寬已經(jīng)到達(dá)10Gb/s水平。隨著網(wǎng)絡(luò)帶寬的增加,對(duì)網(wǎng)卡也提出了更高的要求,于是,高速網(wǎng)卡應(yīng)運(yùn)而生。然而,受數(shù)據(jù)拷貝,中斷開銷,系統(tǒng)調(diào)用等因素影響,高速網(wǎng)卡往往達(dá)不到預(yù)想中的性能。因此,我們迫切需要對(duì)高速網(wǎng)卡的數(shù)據(jù)傳輸機(jī)制進(jìn)行改進(jìn),為防火墻、路由器、IDS及其他網(wǎng)絡(luò)測試應(yīng)用提供一個(gè)可靠的捕包系統(tǒng)。輪詢技術(shù)、NAPI技術(shù)、ZERO-COPY技術(shù)就是針對(duì)高速網(wǎng)卡數(shù)據(jù)傳輸機(jī)制的一些改進(jìn)手段,目的是降低數(shù)據(jù)傳輸過程中系統(tǒng)資源的消耗。Luca Deri在ZERO-COPY、NAPI基礎(chǔ)上提出了PFRING機(jī)制。PFRING在內(nèi)核中,創(chuàng)建了一種帶緩存的協(xié)議簇,改進(jìn)了內(nèi)核協(xié)議棧處理數(shù)據(jù)包的方式,降低了網(wǎng)卡中斷響應(yīng)頻率。 在PFRING基礎(chǔ)上,本文提出了基于DNA的高速網(wǎng)卡數(shù)據(jù)傳輸機(jī)制,所謂DNA,就是通過把網(wǎng)卡設(shè)備的寄存器全部映射進(jìn)用戶態(tài),使得用戶層的應(yīng)用程序可以直接對(duì)網(wǎng)卡進(jìn)行訪問和控制,避免了數(shù)據(jù)傳輸過程中內(nèi)核態(tài)和用戶態(tài)的互斥操作,使得用戶程序能夠更加方便有效地對(duì)數(shù)據(jù)緩沖區(qū)進(jìn)行管理,此外,為減少數(shù)據(jù)拷貝,讓PFRING的環(huán)形緩存不再保存原始數(shù)據(jù)包數(shù)據(jù),而僅僅存儲(chǔ)數(shù)據(jù)包緩存的地址,最后,設(shè)計(jì)了自適應(yīng)NAPI機(jī)制,讓數(shù)據(jù)包的傳輸方式可以根據(jù)網(wǎng)絡(luò)流量的變化而進(jìn)行靈活地切換。通過以上幾種技術(shù),大大提高了高速網(wǎng)卡的數(shù)據(jù)傳輸效率。 本論文閱讀了大量國內(nèi)外的相關(guān)文獻(xiàn),對(duì)高速網(wǎng)卡相關(guān)技術(shù)進(jìn)行了比較分析,改進(jìn)了高速網(wǎng)卡的傳輸機(jī)制,實(shí)現(xiàn)了真正的ZERO-COPY,提升了網(wǎng)卡數(shù)據(jù)包I/O的性能。本文的主要工作包括以下幾個(gè)方面: (1)理論研究部分,首先詳細(xì)介紹了高速網(wǎng)卡數(shù)據(jù)傳輸?shù)南嚓P(guān)技術(shù),分析了網(wǎng)卡數(shù)據(jù)傳輸?shù)腎/O過程,,然后對(duì)Linux網(wǎng)絡(luò)結(jié)構(gòu)進(jìn)行了研究,剖析了高速網(wǎng)卡的驅(qū)動(dòng)程序,接著研究了提高網(wǎng)卡數(shù)據(jù)傳輸效率和性能的幾種方式,特別針對(duì)PFRING機(jī)制進(jìn)行了深入地分析,了解了PFRING機(jī)制的原理,實(shí)現(xiàn),最后針對(duì)PFRING機(jī)制的不足,提出了基于DNA的高速網(wǎng)卡數(shù)據(jù)傳輸機(jī)制; (2)實(shí)踐研究部分,詳細(xì)介紹了DNA機(jī)制的實(shí)現(xiàn)過程,包括把網(wǎng)卡寄存器映射進(jìn)用戶空間,改進(jìn)DMA環(huán)形緩沖區(qū),改進(jìn)PFRING環(huán)形緩存,實(shí)現(xiàn)自適應(yīng)NAPI機(jī)制等等。最后,配置實(shí)驗(yàn)環(huán)境,對(duì)DNA的性能進(jìn)行了測試,證明了基于DNA的高速網(wǎng)卡數(shù)據(jù)傳輸機(jī)制的優(yōu)越性。
[Abstract]:With the rapid development of the network and the popularization of computers, the network bandwidth and traffic are increasing rapidly, especially because of the birth of optical fiber applications, the network bandwidth has reached the level of 10Gb/s. With the increase of network bandwidth, higher requirements for network cards are put forward, so high-speed network cards emerge as the times require. However, due to the influence of data copy, interrupt overhead, system call and so on, the high speed network card often can not achieve the expected performance. Therefore, we urgently need to improve the data transmission mechanism of high-speed network card to provide a reliable packet capture system for firewall, router, IDS and other network testing applications. Polling technology, NAPI technology and ZERO-COPY technology are some improved methods for data transmission mechanism of high-speed network card. The purpose is to reduce the consumption of system resource. Luca Deri in ZERO-COPY,. On the basis of NAPI, a PFRING mechanism is proposed. In the kernel, PFRING creates a kind of protocol cluster with cache, which improves the way in which the kernel protocol stack handles data packets and reduces the frequency of interrupt response of the network card. On the basis of PFRING, this paper puts forward the data transmission mechanism of high-speed network card based on DNA. The so-called DNA, is that by mapping all the registers of the network card device into the user state, the application program in the user layer can directly access and control the network card. It avoids the mutually exclusive operation between kernel state and user state in the process of data transmission, makes the user program more convenient and effective to manage the data buffer, in addition, in order to reduce the data copy, The ring cache of PFRING can not save the original data but only store the address of the data packet cache. Finally an adaptive NAPI mechanism is designed so that the transmission mode of the data packet can be switched flexibly according to the change of network traffic. The data transmission efficiency of high-speed network card is greatly improved by the above technology. This paper has read a large number of domestic and foreign related literature, compared and analyzed the high speed network card correlation technology, improved the high speed network card transmission mechanism, realized the real ZERO-COPY, to enhance the network card packet I / O performance. The main work of this paper includes the following aspects: (1) in the theoretical research part, firstly, the related technology of high-speed network card data transmission is introduced in detail, and the I / O process of network card data transmission is analyzed. Then the Linux network structure is studied, the driver of the high-speed network card is analyzed, and several ways to improve the efficiency and performance of the network card data transmission are studied, especially the PFRING mechanism is deeply analyzed, and the principle of the PFRING mechanism is understood. Finally, aiming at the shortage of PFRING mechanism, a high-speed network card data transmission mechanism based on DNA is proposed. (2) in the part of practical research, the implementation of DNA mechanism is introduced in detail, including mapping network card register into user space, improving DMA ring buffer, improving PFRING ring buffer, realizing adaptive NAPI mechanism and so on. Finally, the performance of DNA is tested by configuring the experimental environment, and the superiority of high-speed network card data transmission mechanism based on DNA is proved.
【學(xué)位授予單位】:電子科技大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2013
【分類號(hào)】:TP334.7

【參考文獻(xiàn)】

相關(guān)期刊論文 前3條

1 秦大偉;萬國龍;戴英霞;;高性能網(wǎng)絡(luò)服務(wù)器Linux網(wǎng)絡(luò)接口驅(qū)動(dòng)程序設(shè)計(jì)[J];電子測量技術(shù);2005年05期

2 張攀勇;王達(dá)偉;曾宇;歷軍;;專用捕包網(wǎng)絡(luò)適配器的設(shè)計(jì)與實(shí)現(xiàn)[J];通信學(xué)報(bào);2006年02期

3 譚躍生;賈元春;王靜宇;顧瑞春;;一種改進(jìn)的NAPI輪詢機(jī)制方法研究[J];微計(jì)算機(jī)應(yīng)用;2007年09期

相關(guān)碩士學(xué)位論文 前1條

1 喬思遠(yuǎn);基于DMA_ring的高速網(wǎng)絡(luò)報(bào)文捕獲機(jī)制的實(shí)現(xiàn)及應(yīng)用[D];山東大學(xué);2007年



本文編號(hào):2328812

資料下載
論文發(fā)表

本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/2328812.html


Copyright(c)文論論文網(wǎng)All Rights Reserved | 網(wǎng)站地圖 |

版權(quán)申明:資料由用戶d3b87***提供,本站僅收錄摘要或目錄,作者需要?jiǎng)h除請(qǐng)E-mail郵箱bigeng88@qq.com