The Implementation of Embedded TCP/IP Stack Based on the Method of Operating System Driver
|School||Huazhong University of Science and Technology|
|Course||Circuits and Systems|
|Keywords||TCP / IP Protocol stack uCLinux Buffer zero-copy|
With the continuous development of digital technology, network technology and the popularity of radio and television cable network business suffered an unprecedented impact . Existing radio and television networks can not meet the needs of the majority of users to carry out two-way business , in order to improve competitiveness , radio and television are two-way transformation of the wired network . Network transformation , EPON ( Ethernet Passive Optical Network ) EOC ( Ethernet data transmission via coaxial cable ) program received wide attention . EOC switch as a suitable access equipment for the program , the cable signal and network data signal can be transmitted in the coaxial cable . EOC switch - based hardware platform , designed and implemented a streamlined and efficient TCP / IP protocol stack . Currently , the most widely used embedded protocol stack for the Linux operating system , TCP / IP protocol stack . Need to switch the protocol stack scheduling process context , take up a lot of system resources , another protocol stack code complexity , is very difficult to cut . For the above, this article in the EOC switch platform design and streamline the TCP / IP protocol stack , using the method based on the operating system drive , the protocol stack is designed in the form of operating system, network drive to make it work in a task , avoid process context switch ; same time, through the design of the levels of agreement between the data transfer mode , buffer zero-copy memory scheduling policy , improve the efficient use of the storage space of the protocol stack . The protocol stack using C language , so that it can be easily ported to other embedded systems . The final drive against the bottom of the protocol stack , ARP, ICMP , UDP and TCP protocol to write a server application , functional test , the test results show that the protocol stack to achieve the desired results .