Font Size: a A A

Localization Of An OS Network Buffer District Design Optimization Study

Posted on:2022-11-23Degree:MasterType:Thesis
Country:ChinaCandidate:J X LuFull Text:PDF
GTID:2491306776494604Subject:Aeronautics and Astronautics Science and Engineering
Abstract/Summary:PDF Full Text Request
With the continuous development of my country’s aerospace industry,ensuring the safe flight of aircraft has also become a top priority.Airborne equipment plays a key role in the safety of aircraft,so the research on the application of domestic OS in airborne equipment and the autonomous control of embedded real-time operating system has become the top priority.As the core system of my country’s airborne equipment,the domestic OS has very high requirements for the real-time,high efficiency and stability of the OS.However,embedded devices have limited resources such as memory.There are many protocols in the traditional TCP/IP network protocol stack in the OS,which occupies a large amount of resources such as memory.In the network protocol stack,the network buffer is a bridge connecting the protocol stack.The data in the network protocol stack is stored and sent through the network buffer,so the consumed resources account for most of the network protocol stack.In order to To be able to implement the network protocol stack in limited embedded devices,it needs to be tailored and reconfigured accordingly.Based on this background,this paper designs a network buffer that meets the requirements of the domestic OS for the lightweight network protocol stack of the domestic OS,and designs the buffer management mechanism and the corresponding buffer allocation algorithm.This paper firstly studies the network buffer pbuf of the currently relatively mature Lwip network protocol stack and the network buffer m Blk of Vxworks,and transplants them to the Linux environment for testing.I have a deeper understanding of the functions and the use of network buffers.At the same time,I also compare the management mechanisms of their network buffers to find out the advantages and disadvantages of their buffer structures and management mechanisms,in order to design a network protocol stack that conforms to the domestic OS.The network buffer and management mechanism lay a solid foundation.Secondly,in a multi-core environment,multiple tasks will compete for access to the network buffer.As a shared resource,the network buffer needs a synchronization mechanism to solve the resource competition problem under multi-threading.Since the lock mechanism has problems of deadlock and priority inversion,this paper adopts a lock-free mechanism,namely CAS,to achieve synchronization.A buffer limited problem was discovered during the design of the buffer management mechanism.Therefore,a network buffer allocation algorithm is designed to solve this problem.Finally,the designed network buffers are tested for related functions and performance.The experimental test results show that the network buffer designed in this paper can well realize the basic initialization,application,release,and data storage functions,and can smoothly transfer data in the protocol stack,and the CAS synchronization method used is perfect.Solve the problem of resource competition,meet the design requirements and achieve the expected goals.Compared with the existing pbuf and m Blk,its performance in a multi-threaded environment has been significantly improved.Finally,the high-performance communication of the domestic embedded OS network protocol stack is realized,the development of the domestic OS is accelerated,and the availability of domestic airborne equipment is enriched.Selectivity,and promote the independent and controllable domestic airborne equipment.
Keywords/Search Tags:localization, network buffer, synchronization mechanism, protocol stack, buffer management mechanism
PDF Full Text Request
Related items