Research and Implement of Key Techniques of User-space Parallel Network Stack

Author
ZhangWeiWei
Advisor
QianZhen
School
Harbin Engineering University
Major
Applied Computer Technology
Classification
TP393.04 Communication protocols, communication protocols
Degree
Master's thesis
Year
2012
Downloads
32
Citations
0

Request the full text

Abstract

With the continuous development of network communication technology, the networkbandwidth is increasing quickly. The processing ability of network stack can easily becomethe bottleneck the overall system performance. System call, memory copy, and protocolprocessing are the main overhead for traditional kernel network stack, which can largely limitthe processing capability of network stack. User-space network stack is another way toimplement network stack, which has the advantage of low-overhead of operating system andmemory copy, as well as high customization flexibility. The paper focuses on two keytechnologies of user-space network stack:User-space network stack is driven by two message flows: network data packet messageflow and socket request message flow, which is a multi-producer and single comsumer model.This paper firstly designs a circular message queue to support message communicationmechanism. However, the lock synchronization overhead on the message queue underhigh-speed traffic can be considerable. To solve this problem, the paper presents an improvedmutual exclusion algorithm of message queue based on atomic operation, which is suitable foroccasions that need to frequently determine whether the message is empty or full. Then, thepaper designs a lock-free architecture for message communication mechanism, which usesround-robin scheduling to substitute the use of mutex.Finally, this paper studies the parallel processing techniques of user-space network stack.With the increasing popularity of multi-processor and multi-core architecture, the networkstack can not make the best use of processing capability of CPU cores if it remains in thesingle-threaded model. This paper designs the parallel processing architecture of user-spacenetwork stack, which distribute data packets to specific network stack thread by hashing thefour-tuple of data packet. Then, a load balancing strategy between processors is implementedusing the “hard affinity” character provided by Linux kernel. At last, several experimentalsshow that the parallel processing of network stack has achieved a relatively good result.

Table of contents

Summary 5-6 Abstract 6-9 Chapter 1 Introduction 9-14 1.1 research background 9-10 purpose and significance of the research 1.2 10-11 Status 1.3 userland stack researches 11-13 1.4 thesis content and organizational structure 13-14 Chapter 2 concurrent user mode stack -based 14-20 2.1 Introduction 14 2.2 protocol stack classification 14 -17 2.2.1 OSI model and the TCP / IP model 14-15 2.2.2 kernel stack 15-16 2.2.3 userland agreement stack 16-17 2.3 multi-threaded and parallel programming 17-19 2.3.1 multicore programming challenges 17-18 2.3 .2 multi-threading and parallel programming structure 18-19 2.4 Summary 19-20 Chapter 3 user research communication mechanisms protocol stack state news 20 -35 3.1 Introduction 20 3.2 protocol stack messaging mechanism 20-26 3.2.1 message-driven mechanism 20-22 <br / > 3.2.2 message Format 22-24 3.2.3 multiple producers single consumer ring buffer design 24-26 3.3 messaging mechanism of mutual exclusion algorithms improved 26-29 nbsp 3.3.1 atomic operation ; 26-27 3.3.2 improved mutual exclusion algorithm design 27-29 3.4 None locks of message communication mechanism 29-31 3.4.1 lock structure 29-30 3.4.2 polling scheduling strategy 30-31 <br / > 3.5 experimental results and analysis 31-34 3.5.1 experimental environment 31 3.5.2 experimental Procedure 31-32 3.5.3 experimental results 32-34 3.6 Summary 34-35 Chapter 4 user mode protocol stack parallel processing technology research 35-51 4.1 Introduction 35 4.2 parallel processing technologies research 35-39 4.2.1 multicore multiprocessor architectures 35-37 4.2. 2 parallel programming model 37-38 4.2.3 parallel program Performance Analysis 38-39 4.3 protocol stack parallelization scheme design 39-46 <br / > 4.3.1 parallel protocol stack design ideas 39-40 4.3.2 parallel architecture 40-42 4.3.3 packet distribution policy 42 -43 4.3.4 processor load balancing 43-46 4.3.4.1 load balancing evaluation 44 4.3.4.2 Linux multicore processor load balancing 44-45 4.3.4.3 load balancing strategy designed 45-46 4.4 results and analysis 46-50 4.4.1 experimental environment 46-47 4.4.2 experimental Procedure 47 4.4.3 analysis of experimental results 47-50 4.5 Summary 50 - 51 Chapter 5 System design and Implementation 51-59 5.1 system design 51-52 5.2 implementation description 52-58 <br / > 5.2.1 messaging mechanism 52-53 5.2.2 protocol stack parallelization 53-55 5.2.3 protocol processing 55-58 5.3 Summary 58-59 conclusion 59-60 References 60-64 Thanks 64

Related dissertations

  1. Research on Surface Defects Visual Inspection System for Metal Components
    NieZhenYu ·Central South University ·2013 ·Master's thesis
  2. Research on Acceleration Technology of IPSec VPN Base on GPU
  3. Study on Several Methods for Digital Video/Image Restoration
    HuoXing ·Hefei University of Technology ·2013 ·Doctoral dissertation
  4. Study of Visual Tracking Algorithm Based on CUDA
    ZhangPing ·Beijing Jiaotong University ·2014 ·Master's thesis
  5. The Research on Optimization of Parallel Data Query Based on Multi-processor
  6. Research of Wavefront Reconstruction System for Adaptive Optics Based on Multi-core DSP
    WuMin ·Xi'an Optics and Fine Mechanics ·2013 ·Master's thesis
  7. TS101 high speed real time parallel signal processing system based on design and research
  8. Research on Special Audio Real-time Retrieval Algorithm and Its Implementation in the Fixed-point DSP
  9. A Study on Practical Technology about Static Security Check of Large Grid's Dispatching Plan
  10. Design and Implementation of Multi-computers Parallel Processing Fabric Defect Detection System
    LinSiShui ·Huaqiao University ·2013 ·Master's thesis
  11. The Design of Synthetic Aperture Radiometer Simulation System on GPU Platform
  12. Research on Fast Mosaic and Points Cloud Building Based on UAV Images in a Cluster Environment
  13. The Study of Cluster-based Synthetic Aperture Radiometer Signal-level Simulation
  14. The Design of Bank Insurance Storehouse Safety Inspection System
  15. Research on Isolated Multi-Channel Data Acquisition and Control Equipment
  16. Research on Efficient Network Packet Transmission Mechanism Based on Zero-Copy
    ZhaoYanBai ·Harbin Engineering University ·2012 ·Master's thesis
  17. The Research of Network Traffic On-Line Classification System Based on Fpga
  18. Design and Implementation of the Parallelization Based on Hadoop Model Network Traffic Diversion
    ZhengTianHong ·Inner Mongolia University ·2012 ·Master's thesis
  19. Research on the Key Technologies of Software and Hardware of Parallel Task Schedyling of Multi-core Network Processor
  20. Parallelization Research on Collaborative Filtering Algorithm Based on Cloud Computing
    LiBuYuan ·Zhengzhou University ·2013 ·Master's thesis