The Research of Embedded TCP/IP Protocol Stack Based on μC/OS-ⅡOS

Author
ZhangWei
Advisor
YuZhenSheng
School
Tianjin University
Major
Communication and Information System
Classification
TP393.04 Communication protocols, communication protocols
Degree
Master's thesis
Year
2004
Downloads
378
Citations
2

Request the full text

Abstract

Embeded network has been applied extensively. It is easy to understand and promot.In this atical, writer probes into the TCP/IP protocol and μC/OS-II operation system, and compile TCP/IP protocol stack with μC/OS-II OS. In this system’s hardware, the main CPU is 51 micro-controller; ethernet card is RTL8019AS FROM TEALTEK SEMI-CONDUCTOR CO.,LTD.In the solution, the primary task is to make hardware system work smoothly, and micro-controller can handle data transfer in ethernet card. Then, transfer embedded OS into the micro-controller. Compile ARP, IP, UDP and TCP protocol by μC/OS-II OS. This solution makes the function of Server end in network into reality. There are three tasks in the protocol stacks: ethernet card reception, which can inquire whether the data arrived in destination or not; TCP-Server, which is set up TCP connection with client end; UDP-Server, which is set up UDP connection with client end. The task of TCP-Server’s priority is the highest among these three tasks. The tasks can be switched via semaphore provided by μC/OS-II. Above mentioned ones is the normal process in the solution. For specific process, memory allocated parameter and data buffer should be defined per specific application.Above mention function and algorithm are completed with software compilation. It is easy to update algorithm and convenient to transfer because no change in hardware. This project shows the ROM and RAM space of hardware is enough for mini protocol stack.

Table of contents

The first chapter 7-10 computer Internet development 1.1 computer network protocols and architecture 7 7-9 1.1.1 hierarchical network architecture the 7-8 1.1.2 network principle system divided 8-9 1.2 TCP / IP protocol stack, application 1.3 papers to complete the task 1.4 The subject of the development progress and achievements 9-10 Chapter II ΜC/OS- Ⅱ embedded operating system Overview 10-27 2.1 real-time operating system concepts 10-13 2.2 μC / OS-II operating system 13-22 2.2.1 Critical segment management 14 2.2.2 Task Manager the 14-17 2.2.3 Time Management 17-18 2.2.4 tasks between the communication and synchronization 18-21 2.2.5 Memory Management 21-22 2.3 μC / OS-II on the microcontroller transplant 22-27 2.3.1 transplantation: 23-26 2.3.2 testing portable code 26-27 Chapter TCP / IP protocol and LAN protocols 27-42 3.1 TCP / IP protocol architecture 27-28 3.2 LAN architecture 28-32 3.2.1 IEEE 802 Reference Model 28-29 3.2.2 LLC LLC sublayer 29-30 3.2.3 media access control (MAC) sublayer 30 <br / > 3.2.4 LAN data package 30-32 3.3 network interconnection with the Internet Protocol IP 32-36 3.3.1 Internet Protocol IP 32 - 34 3.3.2 ARP ARP to control 34-35 3.3.3 Internet newspaper Message Protocol ICMP the 35-36 3.4 transport layer protocol 36-40 3.4.1 port concept 37 3.4.2 User Data Datagram Protocol UDP 37-38 3.4.3 Transmission Control Protocol TCP 38-40 3.5 application layer protocol 40-42 Chapter embedded TCP / IP protocol stack 42-67 4.1 of the system hardware structure 42-43 4.2 Software System Overview 43-44 4.3 system memory allocation and management 44 4.4 RTL8019AS control 44-52 4.4.1 network card the overall introduction as well as the power-on reset 44-45 4.4.2 NIC initialization 45-49 4.4.3 NIC receives data packets 49-50 4.4.4 NIC RAM read and write the 50-52 4.5 system initialization 52-53 <br / > 4.6 network card receives task structure and function completed 53-59 the ARP handler nbsp 4.6.1 ; 54-55 4.6.2 IP data processing program function and structure 55-57 4.6.3 IP data transmission function flow 57-59 4.7 UDP-Server service program 59-60 4.8 TCP -Server service program the 60-67 of 4.8.1 tcp_rcve () Function Structure 60-65 <br the /> the 4.8.2 tcp_process () function is the function and structure of 65-66 for 4.8.3 tcp_send () function is the function and structure of 66-67 Chapter system debug and test results 67-70 5.1 the transplant system μC / OS-II and debugging 67-68 5.2 network program debugging 68 5.3 Experimental results 68-69 5.4 improved 69-70 References 70-71 participants during the master's degree thesis research situation 71 during the master's degree thesis papers 71-72 Acknowledgements 72

Related dissertations

  1. Design and Implementation of Remote Login Control System Based on Modem Technology
  2. Automation Measuring System for Water Supply Based on GPRS
    YanShiQiang ·Hebei University of Technology ·2013 ·Master's thesis
  3. Task Scheduling and Process Control of Serial Production Line Coupled with Transmission and Station
    ZhaoYue ·Shenyang University ·2013 ·Master's thesis
  4. Parallel Genetic Algorithm and Application Research of Task Scheduling in Grid
    LiuWenJuan ·Hebei University of Engineering ·2013 ·Master's thesis
  5. Research on Task Scheduling and Communication Mechanisms Based on RTEMS
    LiuJianDong ·Harbin Engineering University ·2013 ·Master's thesis
  6. Random Task-oriented User Utility Optimization Model in the Cloud Environment
    ZhuMin ·Hunan University ·2013 ·Master's thesis
  7. Design and Implementation of Crawler Subsystem of Alipay Merchant Risk Monitoring System
    QianXuanTong ·Harbin Institute of Technology ·2012 ·Master's thesis
  8. Acceleration Strategy of Regular Patch-based Texture Synthesis
    TaoJing ·Liaoning Normal University ·2012 ·Master's thesis
  9. Researches on Optimization of Resource Allocation for MapReduce Scheduling
    HanHaiZuo ·South China University of Technology ·2013 ·Doctoral dissertation
  10. Design and Implementation of3D Animation Making and Management System
    LiBaiDong ·Shandong University ·2013 ·Master's thesis
  11. Research on the Scheduling Algorithms in Real-Time Multimedia Systems
  12. The Optimization Model of Grid Resource and Task Scheduling Strategy Based on Market Mechanisms
    ChenNa ·Northeastern University ·2012 ·Master's thesis
  13. Task Scheduling and Synchronization Controlling in a BSP-based Large Scale Graph Processing System
    YuanFang ·Northeastern University ·2012 ·Master's thesis
  14. Research on Energy-efficient Real-time Task Scheduling Algorithm Based on Multi-core Processors
    WangBin ·Harbin Engineering University ·2013 ·Master's thesis
  15. The Improvement of Recovery Mechanisms and Task Scheduling Based on Mapreduce
    ZhangZuo ·Tianjin University of Technology ·2013 ·Master's thesis
  16. Research on Clustering-based Task Scheduling of Ad Hoc Network
    LiuZhongHou ·Harbin Engineering University ·2013 ·Master's thesis
  17. A Task Scheduling System Model Based on Parallel Resource Attribute Selection
  18. Research and Implementation of Task Scheduling Algorithm for Cloud Computing
    WangDengKe ·Northwest Normal University ·2013 ·Master's thesis
  19. The Research for Resoure Scheduling Strategy and Simulation Analysis in Cloud Computing
    WangMei ·Zhejiang Normal University ·2013 ·Master's thesis
  20. The cloud resource scheduling process oriented perception