Responsive image
博碩士論文 etd-0729108-171124 詳細資訊
Title page for etd-0729108-171124
論文名稱
Title
Linux中的低負擔資料傳送協定
A Low Overhead Transport Protocol for Linux Networking
系所名稱
Department
畢業學年期
Year, semester
語文別
Language
學位類別
Degree
頁數
Number of pages
103
研究生
Author
指導教授
Advisor
召集委員
Convenor
口試委員
Advisory Committee
口試日期
Date of Exam
2008-07-29
繳交日期
Date of Submission
2008-07-29
關鍵字
Keywords
低負擔、傳輸協議、零拷貝
zero-copy, transport protocol, low overhead
統計
Statistics
本論文已被瀏覽 5673 次,被下載 0
The thesis/dissertation has been browsed 5673 times, has been downloaded 0 times.
中文摘要
在本論文中,我在Linux系統中提出了一個新的低負擔傳輸協議。而提出此一新的傳輸協議是因為,在原來的Linux傳輸或是接收中,需要多於一次的記憶體複製,而這些記憶體複製是不需要的。所以在本論文中,我將實做出只有一次的記憶體複製的傳輸協定,也稱做為zero copy。
Abstract
In this thesis, a low overhead transport protocol for Linux networking is proposed. This proposed
protocol is motivated by the observation that the transport protocol for Linux requires more than a single memory copy for both the receiving and transmission of a packet, which is essentially redundant. In this thesis, we show that all but one of the memory copies can be eliminated, thus reducing the number of memory copies to one and only one, which is in general referred to as zero copy.
目次 Table of Contents
List of Figures iii
List of Listings v
List of Tables vii
謝誌viii
Chapter 1 Introduction 1
1.1 Network in Linux System . 1
1.2 Motivations . . 2
1.3 Organization of the Thesis 4
Chapter 2 Sending and Receiving Packet 5
2.1 Sending a Packet . . 5
2.2 Receiving a Packet . 12
Chapter 3 Relationships Between the Structure Socket Sock and Socket Buffers 15
3.1 Structure Socket 15
3.2 Structure Sock . 17
3.3 Structure Socket and Structure Sock . 18
3.4 Socket Buffer . 19
3.5 Manipulate Socket Buffer 22
Chapter 4 Memory Address in the Linux 26
4.1 Address Translation . 26
4.1.1 Physical Address and Page Frame Number Translation . . 27
4.1.2 Virtual Address and Page Frame Number Translation 29
4.1.3 PFN and Structure Page 31
4.1.4 Address Translation Conclusion . . 32
4.2 Memory Mapping . . 33
4.2.1 Process and Virtual Memory Area . 34
Chapter 5 The Proposed Protocol 35
5.1 Zero Copy 35
5.2 Device driver and Protocol 36
5.3 Register a Socket . . 37
5.4 Functions 40
5.4.1 Creating Function 40
5.4.2 Binding Functions 42
5.4.3 Sending and Receiving Functions . 42
5.5 Write and Read to/form Shared Memory . . 45
5.5.1 Initial the Shared Memory . . 46
5.5.2 Update the Data . . 48
5.5.3 Getting the Address 51
5.6 Synchronization Problem . 51
5.7 Exit 51
5.8 New APIs 53
Chapter 6 Performance Evaluation 60
6.1 Test Programs . 60
6.2 Experimental Results 84
Chapter 7 Conclusion and Future Works 88
7.1 Conclusion . . 88
7.2 Future Works . 88
參考文獻 References
[1] S. Jin H.-W. Panda Balaji P. Bhagvat. Asynchronous zero-copy communication for
synchronous sockets in the sockets direct protocol (sdp) over infiniband. In Parallel and
Distributed Processing Symposium, April 2006.
[2] Christian Benvenuti. Understanding Linux Network Internals. O’REILLY, First Edition
December 2005.
[3] Andrew M. Rudoff by W. Richard Stevens, Bill Fenner. UNIX Network Programming,
Volume 1. Addison.Wesley, October 2003.
[4] Yun-Chen Li Mei-Ling Chiang. Lyranet: A zero-copy tcp/ip protocol stack for embedded
operating systems. In Embedded and Real-Time Computing Systems and Applications,
August 2005.
[5] Marco Cesati Daniel P. Bovet. Understanding the Linux Kernel, Third Edition.
O’REILLY, Third Edition November 2005.
[6] Behrouz A. Forouzan. TCP/IP Protocol Suite, 3/e. McGraw-Hill, Third Edition January
2005.
[7] Greg Kroah-Hartman Jonathan Corbet, Alessandro Rubini. Linux Device Drivers, Third
Edition. O’REILLY, Third Edition February 2005.
[8] David Liou. China linux. http://www.linuxforum.net/index.php, August 1999.
[9] Dragan Stancevic. Zero copy i user-mode perspective. Linux-Journal, page
http://www.linuxjournal.com/article/6345, January 2003.
[10] Linus Torvalds. The linux kernel archives. http://www.kernel.org/, September 1991.
電子全文 Fulltext
本電子全文僅授權使用者為學術研究之目的,進行個人非營利性質之檢索、閱讀、列印。請遵守中華民國著作權法之相關規定,切勿任意重製、散佈、改作、轉貼、播送,以免觸法。
論文使用權限 Thesis access permission:校內校外均不公開 not available
開放時間 Available:
校內 Campus:永不公開 not available
校外 Off-campus:永不公開 not available

您的 IP(校外) 位址是 18.223.196.211
論文開放下載的時間是 校外不公開

Your IP address is 18.223.196.211
This thesis will be available to you on Indicate off-campus access is not available.

紙本論文 Printed copies
紙本論文的公開資訊在102學年度以後相對較為完整。如果需要查詢101學年度以前的紙本論文公開資訊,請聯繫圖資處紙本論文服務櫃台。如有不便之處敬請見諒。
開放時間 available 已公開 available

QR Code