Research and Implementation of Key Technologies of TCP Acceleration-Oriented Protocol Stack

Author
ZhaoXin
Advisor
WuChunQing , HuXiaoFeng
School
National University of Defense Science and Technology
Major
Computer Science and Technology
Classification
TP393.04 Communication protocols, communication protocols
Degree
Master's thesis
Year
2006
Downloads
165
Citations
1

Request the full text

Abstract

With the rapid devoplement of network and communication technologies, the bandwidth of the network doubles every six months, and now the 10G Ethernet is being deployed. Until now, the processing of TCP/IP over Ethernet is accomplished by software running on the host CPU. It is well established that one herts of CPU processing is required for every one bit per second of network data processed. So the protocol processing can consume large amounts of CPU capacity, and CPU becomes the bottleneck in the end-system. To relieves the host CPU from heavy protocol handling, TCP acceleration has been a hotpot of current research, and the technology TOE (TCP/IP Offload Engine) is proposed.Firstly, this paper introduces the basic principle of TOE, offloading the processing of TCP/IP from the host processor to the hardware on the adapter. Full offload and partial offload are two modes of protocol offload. A TOE implementation consists of hardware and software. The TOE hardware can be implemented with a embedded system, ASICs, or FPGA. And the TOE software can be implemented as two ways, High Performance Sockets and TCP/IP Stack Replacing.Secondly, the paper studies the General Model of Protocol Offloading to capture many of the factors governing the effectiveness of TCP/IP offload, such as application, bandwidth of network path, the capacity of TOE NIC, etc. According to the modeling study, the paper supports that TOE is worthwile, ascertains the appropriate application for TOE, and proposes some advice on how to implement TOE. The modeling study indicates that the time-to-market of TOE NICs should be shorten, considering the long time-to-market for complexy TOE NICs leaves them at the risk of being outstripped by advances in host CPU speeds. It is also realized that TOE fits the application in which the bulk of the overhead is in data transmission and reception.So we decide to offload data path to ease the time-to-market pressure and to relieve the host from the pivotal handling. The paper designs a simple-stuctured TOE software named YH-TOE for a TOE NIC, and studies several key technologies amply to implement the YH-TOE software, which are TCP connection offloading, dual stack cooperation, hardware connection management and high efficient data transmission.In succession, the paper introduces the implementation of YH-TOE software which consists of TOE Offload Module, TOE Net Core Layer and TOE NIC Driver.TOE Offload Module is compatible with existing applications, and in charge of starting the TCP connection offloading. TOE Net Core Layer functions as the interface between TOE NIC Driver and TOE Offload Module. TOE NIC Driver manages TOE NIC to perform the protocol processing. As test has indicated, TOE can relieves the host CPU from heavy protocol handling, remarkably reduces the utilization of host CPU, effectively enhance the performance of data transmission.

Table of contents

Abstract 8-9 ABSTRACT 9-11 first chapter 11-15 1.1 Background topics 11-13 1.2 thesis research 13 1.3 paper tissue 13-14 1.4 topics research 14-15 the the TCP / IP offload processing technology 15-25 2.1 TOE technology principle 15-17 2.2 TOE strategy 17-19 2.3 TOE hardware implementations 19-20 2.3.1 embedded TOE 20 2.3.2 ASIC TOE 20 2.3.3 FPGA TOE 20 2.4 TOE software implementations 20-24 2.4.1 High-performance socket interface 21-22 2.4.2 TCP / IP protocol stack replacement 22-24 2.5 Summary 24-25 Chapter the common protocol uninstall model 25-35 3.1 universal agreement uninstall models 25-28 3.1.1 model parameters 25-26 3.1.2 model described 26-28 3.2 application factors analysis 28-29 3.3 NIC deal with the role of performance factors analysis 29-30 3.4 technical factors analysis 30-32 3.5 network environment factors analysis 32 3.6 common protocol offload model conclusions 32-34 3.7 Summary 34-35 Chapter YH-TOE overall system software design and key technologies 35-53 4.1 TOE NIC hardware to achieve 35-36 4.2 Linux system network to achieve 36-38 4.3 YH-TOE system software overall design 38-39 4.4 YH-TOE key technologies of the system software 39-52 4.4.1 TCP connection offload technology 39-43 4.4.2 dual protocol stack collaborative technology 43-46 4.4.3 hardware connection management technology 46-48 4.4.4 efficient packet transmission technology 48-52 4.5 Summary 52-53 the YH-TOE system software with the performance test 53-69 5.1 TOE uninstall module 53-59 5.1.1 key data structure 53-54 5.1.2 TCP connection is established 54 5.1.3 TCP data transmission 54-55 5.1.4 TCP connection is closed 55-59 5.2 TOE network interface core layer 59-60 5.2.1 key data structure 59-60 5.2.2 works 60 5.3 TOE NIC driver 60-66 5.3.1 hardware connection management module 60-62 5.3.2 the TOE data transmission module 62-66 5.4 system performance tests and conclusions 66-68 5.4.1 test environment and tools 66 5.4.2 Test Method 66 5.4.3 Test results and conclusions 66-68 5.5 Summary 68-69 Chapter Summary and Outlook 69-70 Acknowledgements 70-71 the References 71-74 the author achieved academic achievements during the study period 74

Related dissertations

  1. Research on Key Technology of TCP Acceleration in High Speed Networks