Font Size: a A A

A Design And Implementation Of Protocol Stack's Universal Transplant Pattern Based On Hook Technology

Posted on:2011-03-21Degree:MasterType:Thesis
Country:ChinaCandidate:Z X YouFull Text:PDF
GTID:2198330332976290Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
In the 21th century, which is an information society, computer and network have permeated through every part of our daily life. With the development of embedded system, computer technology has entered the Post-PC era. The development of the embedded system has brought with it a new demand, that is network, which is also called Post-Internet era. Nowadays, lots of embedded systems have the requirement, such as Smart phone,Network Appliance, Smart Appliances, Car Electronic Equipment.But different embedded systems have different network demands. For instance, Smart phones need complicated Network. On the contrary, Car Electronic EquIPment's network demanding is simpler. So we can't use Berkeley TCP/IP stack for all embedded systems. Therefore, we propose a simple but excellent solution to meet with embedded system's special demands. Our solution is to replace the TCP/IP stack with uIP network stack. At the same time, we customize uIP network stack, to meet the embedded system'networking requirements with the fewest hardware resources, less memory and low CPU utilization. Customization will make suitable system.Of the various kinds of methods for a new embedded system network stack, transplanting uIP stack is a good choice. There are three reasons:firstly, uIP network stack has been originally developed for an embedded system TCP/IP stack; secondly, uIP is an open source code project, so we can use those code freely; finally, there are lots of references about uIP and uIP's implanting. Based on those three reasons, implanting uIP network stack needs less modify and has high code reuse ratio, Meanwhile, the transplanted network stack has excellent stability and high maintainability.This paper aims to introduce embedded system's network stack uIP and its implanting method. And, it will make explanations with the implanting of uIP network stack into Windows system. How to embed our network stack into OS also needs careful consideration. We choose Hook technology to replace OS's Socket functions with our Socket functions. In our solution, both Socket functions and uIP network stack can be amended to suit specific requirements. Hook technology is a good and commonly used method when implanting a software system. So this Solution has good universality and practicality, thus making the project a meaningful one. In this demonstration, we have succeeded in transplanting uIP network tack into Windows system, and Windows OS's web browser Firefox can work successfully with the use of the uIP TCP/IP stack successful. At the same time, it uses less memory and low CPU utilization. For other embedded systems, we can also customize the uIP TCP/IP stack according to actual requirements, cutting the needless parts and adding special functions, and use OS's Hook technology to successfully accomplish the implanting of network stack.
Keywords/Search Tags:Embeded System, TCP/IP, HOOK, Network Stack Transplant, uIP
PDF Full Text Request
Related items