Transplant of1wIP Protocol Based on UIO Framework

Author
YangHongGang
Advisor
ZhouQingGuo
School
Lanzhou University
Major
Computer System Architecture
Classification
TP316.81
Degree
Master's thesis
Year
2013
Downloads
0
Citations
0

Request the full text

Abstract

In the safety-critical area, if an application relays on the Linux kernel network stack, the entire Linux kernel network stack has to be certificated, because it is not isolated in any way. Since the network subsystem is one of the largest kernel components, its complexity makes the verification work very difficult or arguably impossible. However, in practice, we often only need the simple receive and transmit operations.In this work, we implemented a user space NIC driver based on the UIO(user space IO) framework of the Linux kernel. The driver can bypass the Linux kernel network stack, but also meet our requirement. We also ported a light weight TCP/IP stack lwIP (light weight IP) to replace the original in kernel network stack. This will greatly simplify our safety certification work. Meanwhile, there are the other advantages. Errors of the userspace driver will never crash the kernel and the maintenance of the userspace driver is easier than the in-kernel one, for example.The performance testing data shows that the userspace NIC driver’s performance is slightly worse than the native in kernel one. The reason is that the userspace NIC driver introduces extra interruption delay and context switches. But, the userspace NIC driver still meets our requirements.

Table of contents

Chinese abstract 3-4 Abstract 4-5 directory 5-7 first chapter 7-13 <br / > 1.1 Background 7 1.2 Research Status 7-12 1.2.1 driver isolation studies introduced 8-11 1.2.2 network protocol research describes 11-12 1.3 The main contents 12 1.4 thesis structure 12-13 Chapter II system Overview 13-16 2.1 hardware and software platform to introduce 13-15 2.1.1 RTL8139D About 13-15 2.1.2 Debian Profile 15 2.2 system overview 15-16 Chapter III design and Implementation 16-56 3.1 overall architectural view 16-17 3.2 UIO framework 17-26 3.2.1 UIO core framework for the registration and release 20-21 3.2.2 UIO device registration and unloading 21-22 3.2.3 UIO device interrupt handling 22-25 3.2.4 device memory mapped into user space 25-26 3.3 users space DMA module design and implementation design 26-33 3.3.1 uio-dma module implementations 27-33 3.4 kernel NIC driver -side design and implementation 33-36 3.5 IwIP transplant 36-56 3.5.1 IwIP network protocol stack introduced 36-44 3.5.2 IwIP transplant introduce 44-46 3.5.3 IwIP transplant realize 46-54 3.5.4 IwIP transplantation test 54-56 Chapter IV performance testing and analysis 56-61 4.1 throughput test 56-57 4.2 delay Test 57-58 4.3 interrupt transmission delay test 58-61 Chapter V Conclusion and outlook 61-63 5.1 This work summarizes applied significance 61 5.2 This work is 61 5.3 NIC driver user space limitations 61-62 5.4 job Outlook 62-63 References 63-66 during graduate outcomes 66-67 Thanks 67

Related dissertations

  1. Research on the Influence Factors of Fast Moving Consumer Goods Brand Extension
    MengQingJi ·Nanjing University of Technology ·2012 ·Master's thesis
  2. CTL (TJ) Co.Ltd Responsible Care Project Implementation Analysis
    ZhengWenZuo ·Hebei University of Technology ·2012 ·Master's thesis
  3. On the Institutional Cultural Construction of Housing Fund Management Center
    GuoZiBin ·Yunnan University ·2012 ·Master's thesis
  4. Study on Safe Management of Fresh Food in Supermarkets
  5. Research on System of Food Safety Inspection and Risk Monitoring
    LiuShuang ·Tianjin University ·2012 ·Master's thesis
  6. Safety Design of Distributed Control System for a PVC Production Process
    WangBo ·Zhejiang University of Technology ·2013 ·Master's thesis
  7. Research on Modular Reuse of SHIF-Based Ontology
    XuLianJun ·Central South University ·2013 ·Master's thesis
  8. Design and Implementation of MinSheng Bank Taiyuan Branch Business Supervision System
    LiangZhiWei ·Dalian University of Technology ·2013 ·Master's thesis
  9. The Research and Implementation of a Safe Family Private Cloud
  10. Research on Security System of Competitive Sports in China
    ChenLi ·Hunan University ·2013 ·Master's thesis
  11. Guangzhou Panyu District primary school sports teaching safety investigation section
    ZuoJinMeng ·Guangzhou University ·2013 ·Master's thesis
  12. Discussion on Safety Production in Administrative Punishment of Illegal Income Determination
    ZhouYing ·Ningbo University ·2012 ·Master's thesis
  13. Legal Regulation Study on Genetically Modified Food Safety
    HuangZuo ·Guangxi University ·2013 ·Master's thesis
  14. Study on the Problem of the Public Traffic Safety Education
    FengYinJun ·Shanxi University of Finance ·2014 ·Master's thesis
  15. Yong Nian Police Custody Safety Management Case Study
    MaZuoAng ·Hebei University of Technology ·2012 ·Master's thesis
  16. A Study on the Women's Safety in Contemporary Indian Society
    ChenHuan ·Central China Normal University ·2014 ·Master's thesis
  17. Study on Ethics of the Safety of Genetically Modified Food
    HouZuo ·Wuhan University of Technology ·2013 ·Master's thesis
  18. Tianjin landscape sign setting standards - the ancient town of Beitang flag is set plan
    ZhangBin ·Tianjin Normal University ·2013 ·Master's thesis
  19. Efficacy and Safety of Nonablative Lux1540nm Laser for Melasma
    ZhouZuoZuo ·Chongqing Medical University ·2013 ·Master's thesis
  20. Short-time Clinical Therapeutic Effects of Intravitreal Rani Bizumab Injection for Macular Edema
    ShiYaBo ·Anhui Medical University, ·2013 ·Master's thesis