| Embeded TCP/IP technology is application of TCP/IP on Embedded Devices, It is the combine of embedded technology and TCP/IP technology, At present mainstream TCP/IP technology is based on IPv4,IPv6 is the upgrade of IPv4,it is the core protocol of next generation internet.It prolong the length of IP Address from 32 bits on IPv4 to 128 bits on IPv6,and completly solve the IP Address lack problem on IPv4,IPv6 also have IP Address-autorly allocated,service quality control excellences etc.But at present the exist embedded TCP/IP stacks don't support the IPv6.So in this design we design a embeded TCP/IPv6 stack.In this article we first bring forward a simplify principia of only realize basic TCP/IP communicate function,and cut down(security enhance,mobile IP,multiplicity access etc)complex assistant function.According to this principia we cut down PPP,SLIP protocols which associated with dial-connect mode, cut down IPsec protocol which associated with IP security control and UDP,in the next step we condese the lefted protocols as follows:IPv6 protocol only realize it's base head and segment expand head ,don't support IP forward transport. ICMPv6 protocol only realize Echo Reply Message and Destination Unreachable Message ,don't realize Echo Request Message and Router Solicitation Message. TCP protocol only realize Finite State Machine ,Glide Window, Round-trip Time and Retransmit Mechanism;Then we optimize the neighbor reachable method,which base the up protocol's reachable acknowledgement,after optimization ND don't run when we receive a up protocol's reachable acknowledgement,it can also get neighbor's MAC information;At last,we design a RAM management mode,which include application RAM, stack RAM, MAC RAM,In the stack RAM we use"zero copy"technology;After this we implement a embedded TCP/IPv6 stack on Altera De2 board,and test it, include messages test,takeing in test, packes delaying test,target code statis and analysis test;The test rusults proved that the embedded TCP/IPv6 stack have basic communiation ability ,few-code,and run-simply characterstics.It is the feasible method for communication between embedded system and IPv6 networks. |