Research and Implementation of an Efficient Interaction Mechanism of Hardware and Software Supporting Zero-copy Technology in CIA Network Card

Author
LvMinQiang
Advisor
WuChunQing
School
National University of Defense Science and Technology
Major
Computer Science and Technology
Classification
TP393.08 Computer Network Security
Degree
Master's thesis
Year
2008
Downloads
70
Citations
0

Request the full text

Abstract

In today's increasingly large-scale networks, packet capture and analysis techniques are being widely used. Packet capture analysis, real-time understanding of the use of the network, analyzing the bottleneck of the network operation, discovered network packet carrying illegal content. Traditional packet capture system based on general considerations, will spend a lot of resources for interrupt overhead and memory copy overhead, the system call overhead and protocol processing overhead. To improve the performance capture packets, packet capture system widely adopted zero-copy technology. Packet capture system with zero-copy technology to achieve a zero system call, zero memory copy, while avoiding the complexity of the kernel protocol processing, greatly improve the performance of packet capture system. However, the zero-copy packet capture system is not considered to reduce interrupt overhead. To reduce interrupt overhead, to further improve the performance of zero-copy packet capture system is the purpose of this study. Interrupt overhead related to the interrupt processing of the memory data of the network adapter and the host exchange and Linux systems on the network adapter. Work and innovation of the main points include: 1. Analysis of the high-speed network adapters and host memory data exchange, that using DMA chain transfer and command queue transmission combination, this approach requires the host memory and network adapter hardware storage space set the descriptor buffer; 2. analysis of the network adapter Get descriptor way, based on the drive way and DMA engine based on the way; 3 host memory and the network adapter the the hardware descriptor buffer model, quantitative analysis of the relationship of the various parameters that affect the size of the buffer, provide theoretical guidance for the design of the CIA NIC project; 4. analysis of the Linux system on the network adapter interrupt processing, analysis interruption the advantages and disadvantages of the driver and poll-driven mechanism proposed semi-polling driven mechanism to reduce interrupt overhead. Used in the network adapter hardware interrupt merging technique to reduce the number of interrupts. In order to reduce the Linux system on the network adapter interrupt processing time proposed using the buffer pool technology, pre-allocated a certain size of the data buffer in user space, to avoid the need to apply to the system buffer each interrupt handling, at the same time avoid an unnecessary copy process packets from kernel space to user space, the so-called zero-copy technology.

Table of contents

Abstract 11-12 ABSTRACT 12-13 first chapter 13-19 the § 1.1 subject background 13-15 1.1.1 packet capture technology applications in the field of network security 13-14 1.1.2 zero-copy packet capture system 14 1.1.3 supports efficient zero-copy software and hardware interaction mechanism 14-15 § 1.2 network card and host hardware and software interaction mechanisms related research 15-16 1.2.1 NIC host data exchange 15-16 1.2.2 Linux system on the NIC interrupt processing optimization 16 § 1.3 Project background and research contents 16-17 the § 1.4 papers organization 17 the § 1.5 research topics 17-19 Chapter II Fast Ethernet host communication technology 19-34 the § 2.1 NIC overall structure 19-20 § 2.2 high-speed LAN and host data exchange mechanism 20-23 2.2.1 DMA chain transmission 20-21 2.2.2 DMA's command queue transmission mode 21-22 2.2.3 descriptor-based DMA communication mechanism 22-23 § 2.3 NIC hardware descriptor access 23-25 2.3.1 Host-based descriptors Obtaining 23-24 2.3.2 Obtaining descriptor based on DMA engine 24-25 the § 2.4 Linux on high-speed network card interrupt handling 25-29 2.4.1 Linux the NIC interrupt process 25-26 2.4.2 NAPI technology 26-28 2.4.3 NAPI performance on SMP analysis 28-29 § 2.5 data packet transceiver process 29-31 the § 2.6 to improve network card and host interactive performance Technical 31-33 2.6.1 improve bus bandwidth 31 2.6.2 reduce interrupt overhead 31-32 2.6.3 reduce context switching overhead 32-33 § 2.7 of this chapter summarizes 33-34 Chapter support for zero-copy software and hardware interaction model (CIA-SHIM) are found; 34-44 § 3.1 CIA-SHIM overall structure 34-36 3.1.1 CIA-SHIM zero-copy technology 34-35 3.1.2 CIA-SHIM work process 35-36 § 3.2 CIA-SHIM model 36-42 3.2.1 CIA-SHIM time model 36-38 3.2.2 CIA-SHIM descriptor buffer model 38-40 3.2.3 CIA-SHIM model conclusions 40-42 the § 3.3 CIA-SHIM design CIA guidance 42-43 § 3.4 of this chapter summarizes 43-44 Chapter Design and Implementation of the interaction mechanisms of efficient software and hardware support for zero-copy 44-65 the § 4.1 the CIA's overall structural 44-46 the 4.1.1 system work process 44-45 4.1.2 hardware and software design goals of the interaction mechanisms 45-46 § 4.2 CIA DMA engine 46-48 4.2.1 DMA engine structure 46 4.2.2 DMA engine design of key technologies 46-47 4.2.3 interface definition 47-48 the § 4.3-the CIA buffer manage 48-51 4.3.1 Buffer management structure 48 4.3.2 buffer design key technology 48-50 4.3.3 interface 50-51 § 4.4 CIA driven 51-54 the 4.4.1 driver's overall structure 51-52 4.4.2-driven design of key technologies 52-53 4.4.3 driver provides the interface 53-54 § 4.5 hardware and software interact with key data structures 54-58 4.5.1 hardware key registers defined 54-55 4.5.2 software key data structure 55-58 § 4.6 hardware and software exchange key processes 58-64 § 4.7 of this chapter summarizes 64-65 Chapter the CIA efficient software and hardware performance testing and analysis of the interaction mechanism 65-70 § 5.1 test environment and tools 65 The § 5.2 test content 65-66 The § 5.3 testing methods 66 § 5.4 test results and conclusions 66-69 5.4.1 Test Results 66-68 5.4.2 Test Conclusion 68-69 § 5.5 of this chapter summarizes 69-70 Chapter VI summarizes 70-71 Acknowledgements 71-72 the References 72-74 the author achieved academic achievements during the study period 74

Related dissertations

  1. Research and Implementation of a Zero-Copy-Based Packet Capture Mechanism under High_speed Network Environment
  2. Design and Implementation of an Efficient Method for FCoE Target Software
  3. Design and Implementation of Server End in Network Performance Tester Based on PowerPC Platform
    CaiYu ·Wuhan University of Technology ·2013 ·Master's thesis
  4. Research and Implementation of a High-performance Packet Capture System
    LiuBaoChen ·Shanghai Jiaotong University ·2013 ·Master's thesis
  5. Optimized Multiprocessor Implementation of LTE-Advanced User-Plane Protocol
  6. Design of AFDX Swtich Chip Based on Shared Memory
    LiuYu ·Shanghai Jiaotong University ·2013 ·Master's thesis
  7. Pedestrian Detection under the Vehicle Environment
    XinChen ·Hunan University ·2013 ·Master's thesis
  8. Research on Knowledge Acquisition and Reduction in Rough Set Theory
  9. Research on Universal Packet Capture Technology Based on Multi-Core CPU
  10. The Research and Implementation of Bt-Packet Capture and Inspection System in the High-Speed Network
  11. Research of Internet Sniffer Technique Based on Pattern Matching
  12. Research on Efficient Network Packet Transmission Mechanism Based on Zero-Copy
    ZhaoYanBai ·Harbin Engineering University ·2012 ·Master's thesis
  13. Abnormal Crowd Behavior Detection Algorithm Research Based on Spatial-Temporal Interesting Points
  14. Research on Image Local Features and Its Application on Trademark Retrieval System
    TangPeiKai ·Guangdong University of Technology ·2013 ·Master's thesis
  15. Research on Feature Extraction and Matching of Images
    XuXianFeng ·Hefei University of Technology ·2012 ·Master's thesis
  16. Human Actions Recognition and Fight Detection Based on Local Spatial-temporal Features
    ZhuQiBing ·Hefei University of Technology ·2012 ·Master's thesis
  17. The Interrupt Mechanism of Real-time Operating System on ARM
  18. Research on embedded SPACE operating system
    WangMeng ·Capital Normal University ·2013 ·Master's thesis
  19. The Research and Implementation of High-Speed Nic’s Data-Transmission
  20. Research and an Implemention of the Iterrupt Mechanism of X86Family CPUs
    PeiYaLi ·Beijing Jiaotong University ·2012 ·Master's thesis