| With the enterprise-class network scale continues to expand, as well as the security, cost and network controllability issues, the advantages of 3-layer-switch with IP switching capabilities is increasingly prominent. Route subsystem as a core module in OS of 3-layer-switch has new requirements in efficiency, stability and scalability.This analysed routing protocols and the switch principle of 3-Layer-Switch. This implemented the route subsysterm, a part of network operating system, witch the obtained routing entries through the dynamic routing protocol and selected the high-weight routing entries to download to the switch chip's hardware routing table.This designed and implemented multi-tasking operating cycle processes based on select into witch each processes in route subsystem ran after instalization to achieve functions; This designed and implemented a asynchronous queue mechanism with no confliction to operate the critical resources route table; This enabled users to access daemon functionality via terminal, and enabled users to easily manage and configure the route subsystem; This designed and implemented a mid layer between each route protocols and kernel route system to improve the scalability of route subsystem, to achieve a high weight routing capabilities for reducing the interaction between the kernel route system and each route protocols; This designed and implemented a module to update the kernel's MAIN route table into the forward-chip's LPM, the hardware route table.It is proved that the route subsystem of this paper achieved the function that updated route entries into forward-chip's LPM with use cases and the practical application; It is established that the route subsystem of this paper implemented a higher expansibility with adding BGP route protocol in customized version. |