Design and implementation of embedded TCP / IP protocol stack

Author
ZhouHaiRui
Advisor
DaiGuanZhong
School
Northwestern Polytechnical University
Major
Control Theory and Control Engineering
Classification
TP393.04 Communication protocols, communication protocols
Degree
Master's thesis
Year
2007
Downloads
787
Citations
13

Request the full text

Abstract

With the development trend of embedded system widely used in the field of industrial control and development, as well as the control system network, the network characteristics of embedded systems more and more attention. There TCP / IP protocol stack oriented 32-bit microprocessor, 32-bit microprocessor slow growth in the field of industrial control, 8-bit and 16-bit embedded systems in the field of industrial control still occupies a monopoly position has a very wide range of applications. The papers in P89C51 microcontroller design and to achieve eIP protocol stack, the overall architecture of the system and the specific implementations, and focus on the ARP protocol, the design of the IP protocol, ICMP protocol, UDP protocol, TCP protocol and RTL8019AS driver achieve. In this thesis, in-depth study of configurability in embedded TCP / IP protocol stack. Highly modular functionality in the TCP / IP protocol stack, coupled analysis of the various functional modules, loosely coupled relationship, do fine-grained configuration, that is within each agreement between the various functional modules, each functional module configurable, rather than protocol can be configured. User through the cut, configuration the compiler switches eIP protocol stack. eIP protocol stack design fully consider the portability of the system, the system abstraction layer masked hardware architecture, network drive chip compiler differences, and in strict accordance with the RFC standard ANSI C implementation. In this thesis, in-depth study memory management issues embedded TCP / IP protocol stack. On the basis of the analysis and comparison of the dynamic partition memory management algorithms, fixed-size memory management algorithm pbuf buffer management mechanism for eIP protocol stack design, the use of the first cycle of adaptation algorithm allocated pbuf buffer stored in SRAM while supporting dynamic data, static data stored in FLASH to achieve zero-copy of the data, and improve system performance. Under laboratory conditions, we RTL8019AS driver IP protocol, TCP protocol, UDP protocol correctness and functional testing. And on the basis of the TCP protocol testing and analysis of the relationship between the network load and network transmission rate the buffer size, eIP, protocol stacks scheduling interval of system stability, reliability, and network transmission rate. The experimental buffer size is about 10K eIP protocol stack scheduling time interval of 50ms-250ms, network transmission rate can reach 420kb / s, while the system has good stability and reliability.

Table of contents

Abstract 3-4 Abstract 4-5 catalog 5-7 Chapter 1 Introduction 7-13 <br / > 1.1 research background and significance 7-8 1.2 embedded TCP / IP protocol stack Research 8-11 1.3 main research content and method nbsp ; 11-13 Chapter 2 TCP / IP protocol principle the 13-23 2.1 Embedded Systems Network Architecture 13 2.2 Overview of the TCP / IP protocol 13-16 2.3 ARP protocol 16-17 2.4 IP protocol 17-19 2.5 ICMP protocol 19-20 2.6 TCP protocol the UDP protocol nbsp 20-22 2.7; 22-23 3 Chapter eIP, Design and Implementation of the protocol stack 23-56 <br / > 3.1 eIP overall design ideas 23 3.2 eIP memory management module 23-27 3.3 Design and Implementation of the network interface layer 27-30 3.4 ARP protocol design and implementation the 30-34 the 3.5 IP protocol design and realization 34-38 3.6 ICMP protocol design and implementation 38 -39 Design and Implementation of the 3.7 TCP 39-54 3.7.1 TCP core data structures 40-42 3.7.2 TCP finite state machine 42-50 3.7.3 TCP timer management the 50-52 3.7.4 based sliding window flow control 52-53 3.7 .5 TCP packet input and output processing flow 53-54 3.8 UDP protocol design and implementation 54-56 Design and Implementation of Chapter 4 RTL8019AS driver 56-65 4.1 hardware circuit design 56-59 4.2 RTL8019AS working principle 59-60 4.3 Ethernet frame format 60-61 4.4 RTL8019AS driver design the protocol stack 61-65 5 Chapter eIP, test 65-72 5.1 RTL8019AS driver's test 65-67 5.2 ARP protocol, IP protocol, ICMP protocol test 67-68 5.3 TCP protocol test 68-70 5.4 UDP protocol test 70-71 5.5 test conclusion 71-72 Chapter 6 Conclusion and Outlook to References 72-73 73-78 studying for a master's degree during the academic papers published 78-79 Acknowledgements 79-81

Related dissertations

  1. Application of Embedded Ethernet in Power Quality Monitoring System
    WenXuanJun ·West China University ·2008 ·Master's thesis
  2. Powerful Web-based fabric Measurement and Control System
  3. The Development of the Embedded System Based on Ethernet
    JiangFeng ·Southwest Jiaotong University ·2004 ·Master's thesis
  4. The Research of Industrial Embedded Control Platform Based on uC/OS-Ⅱ
    SuJuan ·Northwestern Polytechnical University ·2007 ·Master's thesis
  5. Ethernet Technology Industrial Control Application
    LinHong ·Fuzhou University ·2006 ·Master's thesis
  6. uC / OS Ⅱ TCP / IP protocol stack Research and Implementation
  7. Network transmission of images embedded devices
    LiXiuZuo ·Shandong University ·2005 ·Master's thesis
  8. The Design and Implementation of Embedded Internet on 8bit MCU
    LiuXiaoSheng ·Suzhou University ·2004 ·Master's thesis
  9. The Research and Design of ECG Signal Acquisition and Remote Transmission System Based on ARM
  10. Design on Remote Data Collecting Terminal Based on Lpc2210
  11. The Design of Small Coal Mine Remote Monitoring System Based on ARM
    XuJin ·Northeastern University ·2011 ·Master's thesis
  12. Research and Development of Froth Flotation Video Surveillance Hardware Platform Based on DSP
    GuoJian ·Central South University ·2013 ·Master's thesis
  13. The Research and Design of Embedded Graphic Remote Monitor Terminal
    DengBoWen ·Harbin Engineering University ·2013 ·Master's thesis
  14. Research and Realization of Dynamic Simulation Circulating Water Device Control and Data Processing System Based on ARM
    ZhangYanYan ·Dalian Polytechnic University ·2011 ·Master's thesis
  15. The Design and Implementation of Integrated Data Acquisiton Instrument Hardware Platform for Gas Station
  16. The Research for the Engraving Machine Control System Based on ARM and FPGA
    FanJianFeng ·Xi'an University of Engineering ·2012 ·Master's thesis
  17. Design and Implementation of Control System for Stabilized Platform Based on Embedded System
    SunXiLong ·Harbin Institute of Technology ·2012 ·Master's thesis
  18. Study on the Control System of Lower Limbs Rehabilitative and Fitness Robot
    YangKe ·Hefei University of Technology ·2013 ·Master's thesis
  19. The Research of Embedded Web Sensor Node
    HeShuangWang ·Hebei University of Technology ·2012 ·Master's thesis
  20. The Research of Embedded Image Processing Technology Based on ARM
    WangXueBin ·Hebei University of Technology ·2013 ·Master's thesis