| With the rapid development of the network,more and more terminal devices are connected to the Internet.The fixed-length and quantitative IPv4 lacks flexibility and is difficult to meet the communication of different network types in the face of more and more address requirements and diversified user requirements.need.In order to solve the above problems,this topic focuses on the research of the flexible NewIP protocol stack,and develops code and functions based on the development version and operating system,which lays the foundation for the realization of the entire protocol stack.The main work and innovations of this paper are as follows:(1)This paper studies the NewIP address structure,and uses the singlechip wildfire stm32f429IG to simulate devices such as hosts and routers with NewIP kernels.In the Linux system and LiteOS two system environments,the basic processing functions of NewIP addresses are implemented based on Net-tools.(2)This paper analyzes the requirements of the routing and neighbor subsystems of the NewIP network layer.The functional requirements include the addition and deletion functions and display functions of the routing table,and the addition,deletion and modification functions of the neighbor table and the requirements for display to users.Based on the requirement analysis,four different communication scenarios are designed for the implementation of the routing subsystem,and the theoretical basis of the implementation is analyzed based on the different communication scenarios,the subnet division of the NewIP address is redesigned,and the The concrete realization process,finally realizes the maintenance function of the routing table in the Linux system,and introduces the data structure and the overall function calling process used in the realization of the routing subsystem in detail,and finally analyzes the experimental results of the routing subsystem.(3)Based on demand analysis,this paper designs ARP request and response packets for NewIP address,designs the data structure of hash bucket storage,adopts the process from static configuration to dynamic configuration for the implementation of neighbor subsystem,and introduces in detail The data structure and implementation process of the statically configured user mode and kernel mode are presented,and the dynamic interface is implemented on the basis of the static configuration.Finally,the experimental results of the neighbor subsystem are analyzed.(4)In the Linux and LiteOS systems,for the NewIP routing subsystem,the route command in the extended network configuration tool net-tools is used to implement the basic functions of routing;for the neighbor subsystem,the extended network configuration tool iproute2 is used.The ip command implements the basic functions of routing. |