Stacking system routing equalization processing method, equipment and medium
By determining the database role and routing protocol type of member switches in the stacking system and distributing routing protocol messages, the problems of excessive load of the master device and uneven system utilization are solved, and load balancing and efficient routing forwarding table synchronization is achieved.
Patent Information
- Application Number
- CN202510105963.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-23
- Publication Date
- 2025-05-06
AI Technical Summary
The operation of all routing protocols by a single master in a stacking system results in excessive load and uneven distribution of system utilization.
By determining the database role and target routing protocol type of each member switch in the stacking system, a corresponding relationship is formed, so that the backup device and the slave device process the routing protocol message, the master device summarizes and synchronizes the routing forwarding table.
Reduce the load of the main device, realize system load balancing, improve the utilization rate of each member device, and safely and persistently backup routing protocol data through the database mechanism.
Smart Images

Figure CN119945998A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of stacking systems, and in particular to a stacking system routing balancing processing method, device and medium. Background Art
[0002] Switch stacking technology is a network virtualization technology that connects multiple physical switch devices that support stacking features through stacking ports to logically form a switch device. Dynamic routing protocols can automatically adjust routing tables according to changes in network topology and are used to automatically learn and disseminate routing information in computer networks to achieve routing selection between nodes in the network.
[0003] Since the stacking system is logically a switch device, the dynamic routing protocol of the entire system usually runs on the master device of the stacking system. Other member devices only receive dynamic routing protocol messages and then forward the dynamic protocol messages to the master device without calculating routing protocol messages. At the same time, in order to ensure the stability of the stacking system and ensure that a single device failure will not affect the system operation, the master device needs to synchronize and back up the routing protocol calculation results to other member devices. Member devices are in a forwarding state for a long time, and the system utilization distribution is seriously uneven, which increases the operating pressure of the master device system, making it easy for a single master device to run all routing protocols and cause excessive load problems. Summary of the invention
[0004] The embodiments of the present application provide a stacking system routing balancing processing method, device and medium, which are used to solve the problem of excessive load and uneven distribution of system utilization caused by a single master device running all routing protocols in the stacking system.
[0005] The present application embodiment adopts the following technical solutions:
[0006] On the one hand, an embodiment of the present application provides a stack system routing balancing processing method, the method comprising:
[0007] According to the stacking election result in the stacking system, the database role of each member switch is determined to create the database of each member switch, and the databases of the backup device and the slave device are respectively connected to the database of the master device; the target routing protocol type processed by each member switch is determined; when each member switch identifies the respective target routing protocol type, the respective routing protocol message reply mechanism is triggered by each member switch, and the routing protocol processing result is recorded in the respective database; the routing protocol processing result of each member switch is summarized by the master device to create the routing forwarding table of the stacking system; and the routing forwarding table is forwarded to the backup device and the slave device by the master device according to the database incremental synchronization principle.
[0008] In one example, after forwarding the routing table to the backup device and the slave device, the method further includes: when a new switch is added to the stacking system, determining the member role of the new switch according to the role of each member switch; determining the database role of the new switch according to the member role of the new switch to create a database of the new switch, and connecting the database of the new switch to the database of the master device; and determining the type of routing protocol processed by the new switch.
[0009] In one example, after determining the type of routing protocol processed by the new switch, the method further includes: sending a full replication request to the master device through the new switch according to the full synchronization principle of the database; creating a database file for the routing forwarding table on the master device, and sending the database file to the new switch through the master device.
[0010] In one example, after the master device forwards the routing forwarding table to the backup device and the slave device according to the database incremental synchronization principle, the method further includes: when there is a faulty offline member switch other than the master device, reallocating the routing protocol module of the faulty offline member switch to a non-faulty target member switch through the master device; and notifying the target member switch to extract the historical routing data of the routing protocol module from the database of the master device.
[0011] In one example, after the master device forwards the routing forwarding table to the backup device and the slave device according to the database incremental synchronization principle, the method also includes: when the master device fails and goes offline, based on the initial stacking configuration of the stacking system, re-electing a new master device from the backup devices, and updating the role of the backup device database elected as the new master device; adding the historical routing data in the master device database to the new master device database.
[0012] In one example, the method further includes: when each member switch receives its own routing protocol message, classifying the respective routing protocol messages by each member switch to obtain their own routing protocol type sets, and extracting non-target routing protocol types in the routing protocol type set according to their respective target routing protocol types, and forwarding the non-target routing protocol types to the member switches corresponding to the non-target routing protocol types through the stack port.
[0013] In one example, the non-target routing protocol type is forwarded to the member switch corresponding to the non-target routing protocol type through the stack port, specifically including: encapsulating the non-target routing protocol type in a CPU to CPU manner, and forwarding the encapsulated non-target routing protocol type to the member switch corresponding to the non-target routing protocol type through the stack port of each member switch.
[0014] In one example, after determining the target routing protocol type processed by each member switch, the method further includes: determining whether the stacking system has enabled a routing balancing processing mechanism; if not, after each member switch receives a routing protocol message, the member switch forwards the routing protocol message to the master device for processing through the CPU to CPU channel inside each member switch.
[0015] On the other hand, an embodiment of the present application provides a stacking system routing balancing processing device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any one of the above-mentioned stacking system routing balancing processing methods.
[0016] On the other hand, an embodiment of the present application provides a stacking system routing balancing processing non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions can execute any one of the above-mentioned stacking system routing balancing processing methods.
[0017] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects:
[0018] The present application forms a corresponding relationship by associating the role of each member switch with the type of routing protocol message, and processes the routing protocol messages originally forwarded to the master device on the backup device and the slave device, thereby reducing the load on the master device, balancing the system load, and improving the utilization rate of each member device in the stacking system; and combines with the database mechanism to safely and persistently back up routing protocol data, and can also efficiently implement the real-time distribution of one-to-many routing forwarding tables; and utilizes the full synchronization and incremental synchronization mechanism of the database to ensure the incremental synchronization requirements of existing devices in the stacking system, and to meet the full synchronization requirements of newly added devices in the stacking system, thereby reducing the interaction process of the stacking system's own protocols, and accurately and efficiently completing the data synchronization of the entire stacking system. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solution of the present application, some embodiments of the present application will be described in detail below in conjunction with the accompanying drawings, in which:
[0020] Figure 1A schematic diagram of a stacking system routing balancing processing method provided in an embodiment of the present application;
[0021] Figure 2 A device connection diagram of a stacking system routing balancing processing method provided by an embodiment of the present application;
[0022] Figure 3 A routing protocol forwarding graph of a stacking system routing balancing processing method provided in an embodiment of the present application;
[0023] Figure 4 A schematic diagram of the structure of a stacking system routing balancing processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0025] Some embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0026] Figure 1 A schematic diagram of a stacking system routing balancing processing method provided in an embodiment of the present application. The method can be applied to different business fields. Certain input parameters or intermediate results in the process allow manual intervention and adjustment to help improve accuracy.
[0027] The analysis method involved in the embodiment of the present application can be implemented by a terminal device or a server, and the present application does not impose any special restrictions on this. For the convenience of understanding and description, the following embodiments are described in detail by taking the control host as an example.
[0028] It should be noted that:
[0029] Each device in a stack system is collectively referred to as a stack member device. According to the different election roles and functions of the member devices, the member devices of a stack system are usually divided into three different roles: master device, backup device, and slave device.
[0030] The master device is the core control unit in the stacking system. It is responsible for the management and control of the entire stacking system, including the allocation of system resources, the management of configuration information and many other key tasks. The backup device mainly plays the role of backing up the master device. Under normal circumstances, the backup device will synchronize the configuration information and status information of the master device, which means that any configuration changes on the master device, such as adding a new VLAN (virtual local area network) and modifying the port rate, will be copied to the backup device in a timely manner. The slave device is mainly used to expand the number of ports and processing capabilities of the stacking system. It will work according to the instructions of the master device. For example, in terms of data forwarding, the slave device processes the data passing through its own port according to the forwarding table entries generated by the master device.
[0031] Based on this, Figure 1 The process in may include the following steps:
[0032] S101: Determine the database role of each member switch according to the stack election result in the stack system to create a database of each member switch, and connect the databases of the backup device and the slave device to the database of the master device respectively.
[0033] It should be noted that in some embodiments of the present application, before the stack election, the parameters required for the stack election are set according to the stack initial configuration configured by the stack system: mainly including the stack domain, member number, election priority, stack port, and stack member port pre-configuration information. After the configuration is completed, the stack system is switched to the stack mode, and each member device in the stack system is restarted. After the device restarts, it will enter the stack election state, and different member device roles are selected by comparing various parameters of the stack election. After the stack system election is completed, all member devices will be selected as the main device (Active device), standby device (Standby device) and slave device (Member device) according to the election results.
[0034] Further, after the election result is generated, the database role of each member switch is determined according to the stack election result in the stack system to create the database of each member switch. For example, the device elected as the master device role sets the role of the Redis database to Master, and the device elected as the backup device and slave device role sets the role of the Redis database to Slave.
[0035] After determining the database role of each member switch, start building the database of each member device. The master device is responsible for creating and maintaining the core database in the stacking system. This database contains key configuration information, routing information, member device status information, and many other contents of the entire stacking system. For example, when the network device stack is used to build a campus network, the database of the master device contains the VLAN (virtual local area network) information, port speed, and duplex mode configuration of each access port. For routing information, the master device stores the network topology and routing entries learned through various routing protocols. This information is the basis for guiding data forwarding in the network.
[0036] The backup device will create a backup database, which has a structure similar to that of the primary device's database. The main purpose of this backup database is to quickly take over the work of the primary device when the primary device fails. The backup device will periodically synchronize database information from the primary device. During the synchronization process, it will check the integrity and consistency of the information. For example, by comparing the version number and checksum of the data, it ensures that the synchronized data is accurate.
[0037] The slave device database mainly receives the database information synchronized from the master device and applies it to the local operating environment. The slave device itself generally does not actively modify the core information in the database, but operates according to the instructions of the master device. For example, the slave device will set its own port parameters based on the port configuration information synchronized from the master device, such as adding a port to a specific VLAN or setting the port's access control list (ACL). When receiving database information, the slave device will check the legitimacy of the information. If it is found that the received information does not meet the system requirements or does not match the local hardware resources, it will send feedback information to the master device. For example, if the configuration synchronized from the master device requires the slave device to enable a function that the local hardware does not support, the slave device will report this to the master device, and the master device will make adjustments or provide other solutions based on the feedback.
[0038] Furthermore, in some embodiments of the present application, the main device serves as a Master device, and the backup device and the slave device serve as Slave devices, and a Master-Slave connection is established to facilitate data synchronization.
[0039] By assigning a database role to each member switch and creating a database, the interaction process of the stacking system's own protocols is reduced, laying the foundation for the subsequent accurate and efficient completion of data synchronization of the entire stacking system.
[0040] S102: Determine the target routing protocol type processed by each member switch.
[0041] It should be noted that the stacking system switches classify the protocol types according to the routing protocol message header and specific field characteristics. By identifying and judging the key identifiers, field contents and formats of different protocols, accurately distinguishing various routing protocols and performing targeted processing is the basis for realizing efficient routing functions.
[0042] Based on message header identifier: The routing protocol message header contains key identifiers to identify the protocol. The header identifiers of different routing protocols are obviously different. By identifying them, the switch can quickly classify the message.
[0043] Parsing specific field contents: The switch also parses specific field contents of the message. Taking the OSPF protocol as an example, its message contains a field for identifying the area. The switch reads the field, and if the value conforms to the OSPF protocol area coding rule, it can determine that the message is the OSPF protocol; at the same time, the format and length of the specific field of the protocol message also provide a basis for the switch to classify the protocol type. Different routing protocols have differences in field format and length, which becomes an important basis for the switch to identify the protocol type.
[0044] In some embodiments of the present application, protocol types are divided according to protocol message fields, and each member switch role corresponds to the protocol type, for example: the backup device processes the ISIS routing protocol, the master device processes the BGP routing protocol, and the slave device processes the OSPF routing protocol.
[0045] By classifying routing protocols into types and associating the role of each member switch with the type of routing protocol message to form a corresponding relationship, it helps to process various routing protocol messages quickly and accurately. It provides a direction for subsequent processing, ensures the accuracy of switch identification, effectively avoids misjudgment of protocol types, and processes routing protocol messages originally forwarded to the master device on the backup and slave devices, reducing the load on the master device. Moreover, this judgment method based on field content further improves the accuracy of protocol type identification compared to the judgment method based on header identification, allowing the switch to accurately distinguish various routing protocol messages in complex network environments.
[0046] S103: When each member switch identifies the respective target routing protocol type, each member switch triggers the respective routing protocol message reply mechanism, and records the routing protocol processing result into the respective database.
[0047] It should be noted that in some embodiments of the present application, a routing balance processing mechanism switch is added to control the opening of the routing balance processing mechanism. Before the stacking system receives the routing protocol, it is necessary to determine whether the stacking system has opened the routing balance processing mechanism. If it is not opened, after each member switch receives the routing protocol message, the routing protocol message is forwarded to the master device for processing through the CPU to CPU channel inside each member switch.
[0048] When the routing balancing processing mechanism is turned on, after each member switch receives its own routing protocol message, each member switch classifies its own routing protocol message to obtain its own routing protocol type set, and extracts the non-target routing protocol type in the routing protocol type set according to its own target routing protocol type, and encapsulates the non-target routing protocol type in a CPU to CPU manner, and forwards the encapsulated non-target routing protocol type to the member switch corresponding to the non-target routing protocol type through the stack port of each member switch according to the set stack routing logic. For example: the ISIS protocol message received by the backup device is directly sent to the local routing module for processing, and the BGP and OSPF routing protocols are sent out through the stack port; the BGP protocol received by the master device is sent to the local routing module for processing, and the ISIS and OSPF protocol messages are sent out through the stack port; the OSPG protocol received by the slave device is sent to the local routing module for processing, and the ISIS and BGP protocol messages are sent out through the stack port.
[0049] Furthermore, the member switch corresponding to the non-target routing protocol type receives the non-target routing protocol type forwarded by CPU to CPU through the stack port, extracts the encapsulation content, and sends the non-target routing protocol to the local routing module for processing. Each member switch responds accordingly based on the content of the routing protocol, triggers its own routing protocol message reply mechanism through each member switch, such as routing protocol establishment, update, disconnection and other operations, and records the routing protocol processing results in their respective databases.
[0050] It should also be noted that the CPU to CPU channel is located inside the switch chip and is mainly used for data transmission and information exchange between the CPUs of member devices. Under the default configuration, after each member switch receives a dynamic routing protocol message from the service port, it forwards the routing protocol to the master device for processing through this channel.
[0051] By sending the non-target routing protocol to the member switch corresponding to the non-target routing protocol type through the stack port, the system load is balanced and the utilization rate of each member device of the stack system is greatly improved.
[0052] S104: Summarizing the routing protocol processing results of each member switch through the master device to create a routing forwarding table of the stack system.
[0053] It should be noted that in some embodiments of the present application, the master device extracts the routing protocol processing results of each member switch in the stacking system through the different routing databases of each member switch, summarizes the routing information of the stacking system, performs optimization calculations based on the routing optimization principle, determines the optimal network forwarding path and sets the routing forwarding table.
[0054] It should also be noted that the routing optimization principle is a criterion used to determine the optimal forwarding path from multiple optional paths during the routing selection process. It directly affects the efficiency, reliability and stability of network data transmission. It includes the following factors:
[0055] Metric consideration: Metric is a key indicator to measure the quality of routing paths. Different routing protocols have different metric calculation methods. Metric is based on hop count. The fewer hops, the better the path. If there are two paths to the same destination network, path A has 3 hops and path B has 5 hops. According to the metric principle, path A will be preferred because fewer hops means fewer network nodes for data transmission, which can reduce delays and error probabilities.
[0056] Routing priority setting: Set priorities for different routing protocols or routing entries. Routes with higher priorities will be selected first.
[0057] Stability and reliability factors: Stable and reliable links can ensure continuous data transmission and reduce packet loss and delay. In actual network deployment, the historical stability of the link will be monitored and evaluated, and links with high stability will be preferentially selected as routing paths to ensure network service quality.
[0058] The master device aggregates the routing protocol results of the entire stack system to obtain a routing forwarding table, thereby avoiding the situation where each member switch forwards the routing protocol results to each other, increasing the efficiency of forwarding routing protocol results and the efficiency of determining the optimal network forwarding path.
[0059] S105: forwarding the routing forwarding table to the backup device and the slave device through the master device according to the database incremental synchronization principle.
[0060] It should be noted that after the master device of the stacking system forwards the routing table and determines the optimal network forwarding path, when a new switch joins the stacking system, all member switches in the stacking system can sense the addition of the new member device to the system, and determine the member role of the new switch based on the role of each member switch by comparing the election parameters of the new switch and each member switch; and determine the database role of the new switch based on the member role of the new switch to create a database for the new switch, and finally establish a connection between the database of the new switch and the database of the master device, and determine the type of routing protocol processed by the new switch based on the election role of the new switch.
[0061] According to the full synchronization principle of the database, the new switch sends a full replication request to the master device, creates the routing forwarding table as a db file on the master device, and sends the db file to the new switch through the master device.
[0062] It should also be noted that when there is a faulty offline member switch other than the main device, the stacking system will generate a device offline message, because the routing protocol results of the offline device have been saved in the database in advance. The routing protocol module of the faulty offline member switch is reallocated to the target member switch that is not faulty through the main device, and the target member switch is notified to extract the historical routing data of the routing protocol module from the database of the main device.
[0063] When the master device fails and goes offline, a new master device is re-elected from the backup devices according to the initial stacking configuration of the stacking system, the role of the backup device database elected as the new master device is updated, and the historical routing data in the master device database is added to the new master device database.
[0064] It should also be noted that the incremental principle and full principle of database synchronization are key mechanisms to ensure data consistency. The incremental synchronization principle refers to synchronizing only the data that has changed since the last synchronization. In some embodiments of the present application, taking the Redis database as an example, when the main device synchronizes data to the Slave device as a Master device, only the newly added routing result table items and other data are sent according to this principle. The stacking system implements this process by recording the change log or timestamp of the data. Each time the data is updated, the stacking system records the updated content, time and other information. During synchronization, the Slave device requests the Master device for the data that has been added or modified since the last synchronization time point. The Master device filters out the corresponding data based on the records and sends it to the Slave device to complete the incremental synchronization.
[0065] The full synchronization principle refers to completely copying all the data in the database and transmitting it to the target device. In some embodiments of the present application, full synchronization is triggered when a new switch joins the stack system. After the newly added switch sets the local Redis database to the Slave role, it sends a full copy request to the Master device.
[0066] By adopting the incremental / full synchronization principle of the database, it is possible to ensure the incremental synchronization requirements of existing devices in the stacking system, as well as the full synchronization requirements of newly added devices in the stacking system, reduce the interaction process of the stacking system's own protocols, and accurately and efficiently complete the data synchronization of the entire stacking system.
[0067] It should be noted that although the embodiments of the present application are based on Figure 1 Steps S101 to S105 are described in sequence, but this does not mean that steps S101 to S105 must be performed in a strict order. Figure 1 The order shown in the figure is to introduce and explain step S101 to step S105 in sequence, in order to facilitate those skilled in the art to understand the technical solution of the embodiment of the present application. In other words, in the embodiment of the present application, the order between step S101 to step S105 can be appropriately adjusted according to actual needs.
[0068] pass Figure 1 The method is used to associate the role of each member switch with the type of routing protocol message to form a corresponding relationship, and the routing protocol message originally forwarded to the main device for processing is processed on the backup device and the slave device, thereby reducing the load of the main device, balancing the system load, and improving the utilization rate of each member device in the stacking system; and combined with the database mechanism, the routing protocol data can be safely and persistently backed up, and the real-time delivery of one-to-many routing forwarding tables can be efficiently realized; the full synchronization and incremental synchronization mechanism of the database can be used to ensure the incremental synchronization requirements of existing devices in the stacking system, and the full synchronization requirements of newly added devices in the stacking system can also be met, thereby reducing the interaction process of the stacking system's own protocols, and accurately and efficiently completing the data synchronization of the entire stacking system.
[0069] Figure 2 A device connection diagram of a stacking system routing balancing processing method provided in an embodiment of the present application.
[0070] exist Figure 2 In the figure, the upper part shows the connection of stacking system devices, mainly the standby device (Standby) is connected to the active device (Active) through the stacking link, and the active device is connected to the slave device (Member) through the stacking link; then the master device, standby device, and slave device are connected to the network devices outside the stacking system respectively.
[0071] Figure 3 A routing protocol forwarding graph of a stacking system routing balancing processing method provided in an embodiment of the present application.
[0072] exist Figure 3 In the figure, the left side is the internal structure diagram of the standby device (Standby), including the Slave1 database, ISIS routing protocol, and routing protocol processing module; the middle is the internal structure diagram of the active device (Active), including the Master database, BGP routing protocol, and routing protocol processing module; the right side is the internal structure diagram of the slave device (Member), including the Slave2 database, OSPF routing protocol, and routing protocol processing module; the master device, standby device, and slave device each have their own stacking port.
[0073] Figure 4 A schematic diagram of a stacking system routing balancing processing device provided in an embodiment of the present application includes:
[0074] at least one processor; and,
[0075] a memory communicatively connected to at least one processor; wherein,
[0076] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor so that the at least one processor can execute any one of the above-mentioned stacking system routing balancing processing methods.
[0077] Some embodiments of the present application provide a stacking system routing balancing processing non-volatile computer storage medium storing computer executable instructions, and the computer executable instructions can execute any one of the above-mentioned stacking system routing balancing processing methods.
[0078] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0079] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.
[0080] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0081] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0082] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0083] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0084] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0085] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM), and non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0086] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0087] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0088] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the technical principle of the present application should fall within the protection scope of the present application.
Claims
1. A stacking system routing balancing processing method, characterized in that: The method comprises: According to the stack election result in the stack system, determine the database role of each member switch to create the database of each member switch, and connect the databases of the standby device and the slave device to the database of the master device respectively; Determine the target routing protocol type processed by each member switch; When each member switch identifies the respective target routing protocol type, each member switch triggers the respective routing protocol message reply mechanism, and records the routing protocol processing result in the respective database; Summarizing the routing protocol processing results of each member switch through the master device to create a routing forwarding table of the stack system; The master device forwards the routing forwarding table to the backup device and the slave device according to the database incremental synchronization principle.
2. The method according to claim 1, characterized in that After forwarding the routing forwarding table to the standby device and the slave device, the method further includes: When a new switch is added to the stack system, determining the member role of the new switch according to the role of each member switch; Determine the database role of the new switch according to the member role of the new switch, so as to create a database of the new switch, and connect the database of the new switch with the database of the master device; A routing protocol type handled by the new switch is determined.
3. The method according to claim 2, characterized in that After determining the type of routing protocol processed by the new switch, the method further includes: Sending a full replication request to the master device through the new switch according to the full synchronization principle of the database; The master device creates a database file for the routing forwarding table, and sends the database file to the new switch through the master device.
4. The method according to claim 1, characterized in that: After the master device forwards the routing forwarding table to the backup device and the slave device according to the database incremental synchronization principle, the method further includes: When there is a faulty offline member switch other than the master device, reallocating the routing protocol module of the faulty offline member switch to a target member switch that is not faulty through the master device; The target member switch is notified to extract historical routing data of the routing protocol module from the database of the master device.
5. The method according to claim 1, characterized in that: After the master device forwards the routing forwarding table to the backup device and the slave device according to the database incremental synchronization principle, the method further includes: When the master device fails and goes offline, a new master device is re-elected from the backup devices according to the initial stacking configuration of the stacking system, and the role of the backup device database elected as the new master device is updated; Add the historical routing data in the master device database to the new master device database.
6. The method according to claim 1, characterized in that The method further comprises: When each member switch receives its own routing protocol message, each member switch classifies its own routing protocol message to obtain its own routing protocol type set, extracts a non-target routing protocol type from the routing protocol type set according to its own target routing protocol type, and forwards the non-target routing protocol type to the member switch corresponding to the non-target routing protocol type through the stack port.
7. The method according to claim 6, characterized in that And forwarding the non-target routing protocol type to a member switch corresponding to the non-target routing protocol type through a stack port, specifically including: The non-target routing protocol type is encapsulated in a CPU to CPU manner, and the encapsulated non-target routing protocol type is forwarded to the member switch corresponding to the non-target routing protocol type through the stack port of each member switch.
8. The method according to claim 1, characterized in that After determining the target routing protocol type processed by each member switch, the method further includes: Determine whether the stacking system has enabled a routing balancing processing mechanism; If not, after receiving the routing protocol message, each member switch forwards the routing protocol message to the master device for processing through the internal CPU to CPU channel of each member switch.
9. A stacking system routing balancing processing device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the stacking system routing balancing processing method according to any one of claims 1 to 8.
10. A stacking system routing balancing processing non-volatile computer storage medium storing computer executable instructions, characterized in that: The computer executable instructions can execute a stacking system routing balancing processing method as described in any one of claims 1 to 8.