| With the rapid development of the Internet,more and more hardware devices are connecting to the Internet,showing a trend of interconnection of all things.Therefore,network protocols also need to be adapted to the increasingly complex network environment.However,due to the limitation of fixed IP address length and fixed IP header length in the current traditional IP protocol,the additional calculation and memory consumption brought about by many IoT devices with high bandwidth requirements and low power consumption requirements are transmitting IP packets.time was restricted.Therefore,it has become particularly important to improve the capabilities of the network protocol system.A new framework for future Internet protocols-a new generation of Internet Internet Protocol NewIP,which is intended to develop a new set of protocol stacks that are parallel to the traditional TCP/IP protocol stack.It alleviates the problems caused by fixed-length addresses and single-topology addressing modes in traditional IP networks through flexible and variable-length addressing IP address systems,flexible and extensible header fields,and multi-semantic definition and addressing of IP addresses.In order to meet the complex and changeable network environment in the future.This research aims to complete the design and implementation of the NewIP protocol stack network layer related functions,DNS client and NewIP related system interfaces in the IoT operating system LiteOS launched by Huawei.The main work and innovations of the paper are as follows:(1)The paper analyzes the requirements and designs and implements the functions of the network layer of the NewIP protocol stack in detail,including the process of sending and receiving NewIP packets in the network layer,encapsulating the NewIP header when sending,and parsing the NewIP header when receiving.,and fragment and reassemble the NewIP packets that are too long.(2)The paper designs and implements the DNS client in the NewIP protocol stack.The DNS client is used for the domain name resolution protocol.It is an upper-layer application provided on the basis of the normal availability of the network layer function.It is used to realize the mapping between the domain name and the NewIP address.Query of group information.(3)The paper designs and implements the system interface of the NewIP protocol stack in LiteOS to ensure the integrity of the network layer functions of the NewIP protocol stack and facilitate the configuration and maintenance of the NewIP network by network administrators,mainly including the NewIP address.The query modification of the NewIP gateway,the query modification of the NewIP gateway,the static configuration of the NewIP neighbor,etc.(4)The paper conducts system tests for the above modules,and verifies the experimental results and overall availability of NewIP network layer functions,system interfaces and domain name resolution protocols.Finally,all test cases pass the verification. |