TCP / IP protocol stack for embedded systems

Author
LiuBoTao
Advisor
ZhaoGang
School
Southwest Petroleum University
Major
Applied Computer Technology
Classification
TP368.12 Microprocessor
Degree
Master's thesis
Year
2006
Downloads
604
Citations
4

Request the full text

Abstract

Embedded system access Internet is an inevitable step, that is people’s control feeler extends towards life from produce work. It is also one of the hot problems that it is studied by the present embedded system. Before this technology is produced, people must make use of special circuit to control the long-distance apparatus. Now, they can do this by embedded Internet directly. After realizing Webserver function in an embedded system, the administrator can visit and control the system by standard Web browser (such as Internet Explorer) in any time, at anyplace.This paper further investigates principle and thought of TCP/IP stack, combining the concrete requirement of embedded Webserver, put forward a way of reduction TCP/IP stack on singlechip, also validates the way feasibility by the realization of an embedded TCP/IP stack.On the base of introduction in definition, classification and development of the embedded system, this paper debates the meaning of embedded system access Internet and studying of the current situation both at home and abroad in the networking embedded system. This paper also explains the application prospect of embedded Webserver. Then it points out the mentality of designing of the hardware and software while utilizing the singlechip to drive RTL8019AS directly, regarding realization of embedded WeServer as the example. Based the hardware, this paper realizes a minimum embedded Webserver which simply finish Web dynamic service and Web control. Finally, it carries out detailed test on the system. By the test, it proves the reduction thinking feasible and the embedded Webserver runs steady and reliable.There are two unique characteristics in this paper. One is realizing TCP re-transmission with a serial chain, and proving this scheme is feasible by test. The other is putting forward a method to ulteriorly simplify ARP, according to the characteristic of the minimum embedded Webserver system.

Table of contents

Summary 2-3 Abstract 3-8 1 Introduction 8-13 1.1 Topic Selection 8-9 the 1.1.1 embedded systems definition, characteristics and applications are found; 8 1.1.2 Embedded Internet 8 1.1.3 embedded Web server 8-9 1.2 Research-embedded devices to access the Internet several options the 1.2.1 agent way to access the Internet 9-10 9-10 <br / > 1.2.2 MCU directly to the Internet the topics proposed 10 1.3 --- CPU TCP / IP protocol stack 10-11 1.4 content and features 1.5 This article chapters 11-13 overall design of the system 13-18 the 2.1 hardware part of the overall design of the 13-15 <br / 2.1.1 overall hardware structure the 13-14 2.1.2 key device of choice 14-15 2.2 software part of the overall design 15-17 2.2.1 software overall architecture 15-16 2.2.2 The system encoding specification 16-17 2.2.3 development platform uVision2 17 < br /> 2.3 Chapter Summary to drive 17-18 interface implementation the 18-28 3.1 hardware implementation 18-22 3.1.1 Introduction of the RTL8019AS communications principle 18-19 the 3.1.2 configuration mode pin connection 19 a 3.1.3 base address pin connection 19-21 3.1.4 Other pin connection the 21-22 3.2 software driver implementation the internal RAM structures nbsp 22-27 3.2.1 ; 22-23 3.2.2 driver design guidelines 23-24 3.2.3 read / write the core register functions to achieve 24-25 3.2.4 read / write RAM interval block function to achieve 25 3.2.5 initialization function realization 25-26 3.2.6 receiver driver 26-27 3.2.7 transmit drivers are found; 27 3.3 Chapter Summary 27-28 4 embedded TCP / IP protocol stack implementation nbsp the 4.1 protocols of trade-offs; 28-56 the 28-30 4.1.1 TCP / IP protocol constitute 28-29 4.1.2 application layer protocol trade-offs 29 4.1.3 transport layer protocol trade-offs the the 4.1.4 network layer protocol trade-offs 29-30 4.1.5 link The trade-off layer protocol 30 4.2 design skills 30-33 zero-copy techniques the 4.2.1 packet and unpack process 30-31 4.2.2 Modular thinking the 31-32 4.2.3 layered design thinking 32 4.2.4 dynamic memory maintenance 32-33 4.2.5 Other Considerations 33 4.3 Ethernet interface layer to achieve the 33-34 4.4 embedded the ARP achieve 34-38 4.4.1 ARP head definition and analysis are found; 34-35 4.4.2 ARP receiver module 35 4.4.3 ARP transmit module 35-36 4.4.4 ARP cache table processing module 36-37 4.4.5 ARP retransmission processing module 37-38 4.4. 6 MAC address resolution 38 4.5 embedded IP implementation 38-40 4.5.1 IP packet header analysis 38-39 4.5.2 IP receiver module 39 4.5.3 IP transmit module 39 4.5.4 IP checksum calculation 39-40 the 4.6 embedded TCP implementations 40-51 4.6.1 TCP packet header analysis 40-42 4.6.2 TCB achieve 42 - 43 4.6.3 TCP checksum calculation nbsp 43 4.6.4 implementations of TCP keep-alive timer; 43-44 4.6.5 simple acknowledgment mechanism realization 44-45 4.6.6 TCP connection to achieve 45-47 4.6.7 TCP state machine cut 47-49 4.6.8 TCP retransmission mechanism to achieve 49-51 4.7 embedded HTTP achieve the 51-54 4.6.I HTTP message-structural 52 < br /> the 4.6.2 embedded HTTP engine implementations 52-53 4.6.3 Web to achieve dynamic service 53-54 4.6.4 Simple Web control to achieve 54 4.7 Chapter Summary 54-56 debugging, functional side test, optimize their results 56-70 5.1 debugging and testing environment 56 5.2 serial function design 56-57 the 5.3 hardware part of the commissioning 57-58 5.3.1 W78E58B, debugging 57 5.3.2 serial debugging 57 5.3.3-chip RAM debugging 57-58 5.4 software part of the test 58 -66 5.4.1 RTL8019AS closing, contract driver test 58-59 5.4.2 ARP function test 59-60 5.4.3 TCP functions test 60-65 5.4.4 memory RAM leak test 65-66 the 5.4.5 an HTTP test 66 5.5 optimized think its realization the 66-69 5.5.1 optimization principles and direction 66-67 5.5.2 to change the the TCP retransmission way 67 <br / > 5.5.3 further simplify the ARP protocol the 67-69 5.6 Chapter Summary the 69-70 6 Conclusion and outlook 70-71 6.1 Conclusion 70 6.2 Looking 70-71 Acknowledgements to References 71-72 72-74 the Papers circumstances 74-75 Appendix A, this paper to achieve the physical map of the development board 75-76 Appendix B. This realization of embedded Web server schematic 76

Related dissertations

  1. The Study on Remote Temperature Monitoring System Based on Internet
    ZhouYinFeng ·Shenyang University of Technology ·2013 ·Master's thesis
  2. Study on Remote Measurement and Control Technology of Monitor and Control System of Expressway
    JuChengWen ·Jilin University ·2007 ·Master's thesis
  3. Design of Remote Measurement and Control System Based on Web
    MaZuo ·Northeast Normal University ·2006 ·Master's thesis
  4. Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
    PanZuoZuo ·Dalian Polytechnic University ·2010 ·Master's thesis
  5. Design and Implementation of a Remote Computer Room Monitoring System
    LiuXiuJie ·Northeastern University ·2011 ·Master's thesis
  6. The Study of Remote Video Monitor System Baced on ARM
    GuoZuo ·Hebei University of Technology ·2012 ·Master's thesis
  7. The Design of Integrated Circuit Board Remote Maintenance Online Monitoring System
  8. Design and Implementation of Intelligent Video Surveillance System Based on Embedded Linux
    JinPing ·Central South University ·2013 ·Master's thesis
  9. Video Surveillance System Based on Embedded Technology Research
  10. Design of Video Monitoring System Based on the Embedded
  11. The Design of Embedded Network Video Surveillance System Based on ARM9
  12. Research and implementation of remote monitor system of ship based on the technology of the Internet of things
  13. Design of Video Surveillance Software Based on Ti Dm6446Processor
    YuanWei ·Zhejiang University of Technology ·2013 ·Master's thesis
  14. Data Acquisition System of Cavern Based on Embedded Web Server
  15. Research and Realization of Embedded Data Acquisition and Recording System for Industrial Process Based on ARM
    LiuDaoLin ·Dalian Polytechnic University ·2008 ·Master's thesis
  16. Research on the Indoor Air Monitoring System Based on Embedded Linux
  17. Research and Realization on the Key Technology of Monitoring System about Granary Environment Based on ARM9
    SunZuoLi ·Hunan University ·2013 ·Master's thesis
  18. Automatic Switcher Based on Embedded System Design and Implementation of Test Platform
  19. Research on Meteorological Data Acquisition and Processing System
    ZhaoSheng ·Wuhan University of Technology ·2013 ·Master's thesis
  20. Key Technology Reserch Data Acquisition System Based on Gprs