Network equipment exchange board card mixed insertion multicast resource optimization method, device and equipment
By establishing the mapping relationship between service board combination and switch board multicast group in the switching board software of network equipment, the problem of mismatch of multicast resource specifications when the new and old boards are mixed and plugged in, realizing the maintenance of multicast specifications and functional compatibility of network equipment.
Patent Information
- Application Number
- CN202411852263.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-03-18
AI Technical Summary
During the gradual upgrade of network equipment hardware, when the new switching board and the old service board may be mixed, the multicast resource specifications may be mismatched, and the number of multicast groups of the new switching board is smaller than that of the service board, resulting in the reduction of the multicast specifications of the service board.
By establishing the mapping relationship between the service board combination and the switching board multicast group in the switching board software, multiple software mapping tables are formed to realize the mapping of the service multicast group and the switching board multicast group, and connecting the switching board and the service board through the link aggregation group to ensure the accuracy of multicast forwarding.
The service multicast group resources are compressed on the switching board, avoiding the reduction of the multicast specifications of the service board, and ensuring the functional compatibility and performance stability of network equipment.
Smart Images

Figure CN119652848A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network equipment, and in particular to a method, device and equipment for optimizing multicast resources of mixed insertion of switching boards of network equipment. Background Art
[0002] Frame-type network equipment usually consists of multiple service boards (line cards) and switch boards. When Ethernet messages are forwarded between the service board switch chip and the switch board switch chip, a message header customized by the manufacturer is inserted before or after the Ethernet message header, such as Broadcom's HiGig, HiGig2, etc. For the compatibility of network functions and features, service boards and switch boards usually use switch chips from the same manufacturer. When upgrading the equipment hardware, in order to protect the investment, some hardware boards are usually replaced to achieve the purpose of gradual upgrade. Gradual upgrade usually selects newer switch chips from the same manufacturer, which can usually be compatible with boards that used old switch chips.
[0003] When the hardware boards of the equipment are gradually upgraded, if the corresponding manufacturer has stopped the development and update of the switching chip, or if domestic substitution is required to meet policy requirements, it is necessary to replace the switching board made of the switching chip of other manufacturers. In this way, the existing service boards and the new switching boards are mixed, which will lead to compatibility issues of network functions and characteristics. The typical problem is the specification matching problem of the multicast resources of the new switching board and the old service board. For example, the number of multicast groups of the new switching board is less than the number of multicast groups of the service board. When the number of multicast groups of the new switching board is less than the number of multicast groups of the service board, in order to achieve 1:1 mapping of the multicasts of the two, the service board usually limits the number of multicasts that can be used, reducing the multicast specifications of the service board. Summary of the invention
[0004] In view of the above problems, the purpose of the embodiments of the present invention is to provide a method, device and equipment for optimizing multicast resources of mixed insertion of switch boards of network equipment to improve the above problems.
[0005] An embodiment of the present invention provides a method for optimizing multicast resources of a network device switch board hybrid insertion, which includes:
[0006] S101, establishing N combinations of all service boards in the switch board software, wherein each service board combination is represented by one switch board multicast group, and forming a first software mapping table for mapping the service board combination to the switch board multicast group;
[0007] S102, sending the member ports of the service multicast group to the switch board through the control plane, obtaining the corresponding service board number based on the member port, and establishing a second software mapping table of the service multicast group and the service board combination;
[0008] S103, obtaining a third software mapping table for a service multicast group and a switch board multicast group based on the first software mapping table and the second software mapping table;
[0009] S104, connecting the switch board to each service board using one link aggregation group, and obtaining a fourth mapping table according to the connection relationship and the third software mapping table; wherein the switch chip of the switch board sends and receives member port tables of N service multicast groups, and each member port is a link aggregation group;
[0010] S105, for the message with the custom message header forwarded from the service board to the switch board, the multicast group number carried in the custom message header is matched through the fourth software mapping table to obtain the forwarded multicast group information, thereby realizing multicast forwarding to multiple service boards.
[0011] Preferably, in step S101, assuming the number of business sectors is a, then N=2 a -1.
[0012] Preferably, in step S101, the index of the first software mapping table is a combination of service boards, and the index is generated by converting a binary bitmap of the service board into a decimal value.
[0013] Preferably, in step S103, the service board combination is used as intermediate data to obtain a third software mapping table of the service multicast group and the switch board multicast group.
[0014] The embodiment of the present invention further provides a network equipment switch board mixed insertion multicast resource optimization device, which includes:
[0015] A first mapping unit is used to establish N combinations of all service boards in the switch board software, wherein each service board combination is represented by one switch board multicast group, and a first software mapping table for mapping the service board combination to the switch board multicast group is formed;
[0016] A second mapping unit is used to send the member ports of the service multicast group to the switch board through the control plane, obtain the corresponding service board number based on the member port, and establish a second software mapping table of the service multicast group and the service board combination;
[0017] A third mapping unit, configured to obtain a third software mapping table of a service multicast group and a switch board multicast group based on the first software mapping table and the second software mapping table;
[0018] The fourth mapping unit is used to connect the switch board to each service board using one link aggregation group, and obtain a fourth mapping table according to the connection relationship and the third software mapping table; wherein the switch chip of the switch board sends and receives member port tables of N service multicast groups, and each member port is a link aggregation group;
[0019] The matching unit is used to match the multicast group number carried in the custom message header of the message forwarded from the business card to the switch card through the fourth software mapping table to obtain the forwarded multicast group information and realize multicast forwarding to multiple business cards.
[0020] Preferably, let the number of business segments be a, then N=2 a -1.
[0021] Preferably, the index of the first software mapping table is a combination of service boards, and the index is generated by converting a binary bitmap of the service board into a decimal value.
[0022] Preferably, the service board combination is used as the intermediate data to obtain the third software mapping table of the service multicast group and the switch board multicast group.
[0023] An embodiment of the present invention also provides a network device switch board mixed insertion multicast resource optimization device, which includes a memory and a processor, wherein the memory stores a computer program, and the computer program can be executed by the processor to implement the network device switch board mixed insertion multicast resource optimization method as described above.
[0024] In summary, the embodiment of the present invention establishes a mapping relationship between a service board combination and a switch board multicast group, further obtains a mapping relationship between a service multicast group and a switch board multicast group, thereby compressing service multicast group resources on the switch board, thereby achieving the purpose of not reducing the multicast specifications of the service board. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solution of the present invention, the drawings required for use in the implementation mode will be briefly introduced below. Obviously, the drawings described below are only some implementation modes of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0026] Figure 1 It is a flowchart of mixed insertion multicast resource optimization of network device switch boards provided by the first embodiment of the present invention.
[0027] Figure 2 It is the hardware topology diagram of the network distribution device board.
[0028] Figure 3 It is a schematic diagram of a first mapping table of a service board combination and a switch board multicast group.
[0029] Figure 4 It is a schematic diagram of a second software mapping table of a service multicast group and the service board combination.
[0030] Figure 5 The third mapping representation of the service multicast group and the switch board multicast group is shown.
[0031] Figure 6 A schematic diagram of connecting a replacement card to each service card using a link aggregation group.
[0032] Figure 7 is a schematic diagram of a fourth mapping table.
[0033] Figure 8 A schematic diagram of the structure of a network equipment switch board mixed insertion multicast resource optimization device provided in the second embodiment of the present invention. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0035] See also Figure 1 The first embodiment of the present invention provides a method for optimizing multicast resources of a network device switch board mixed insertion, which can be executed by a network device switch board mixed insertion multicast resource optimization device (hereinafter referred to as the optimization device), and in particular, executed by one or more processors in the optimization device to implement the following steps:
[0036] S101, establishing N combinations of all service boards in the switch board software, wherein each service board combination is represented by one switch board multicast group, and forming a first software mapping table mapping the service board combination and the switch board multicast group.
[0037] In this embodiment, if Figure 2 As shown, Figure 2 The hardware topology of the network device board is that the service board uses a fabric mode port (multiple ports are bundled to form a fabric-path, referred to as path) and a switch board common Ethernet port (multiple ports are bundled to form a link aggregation group, Link-Aggregation Group, referred to as LAG) to connect. The number of service boards is a. The switch board switching chip and the service board switching chip are from different manufacturers. When the number of switch board multicast groups m is less than the number of service board multicast groups n, the combination data of various service boards can be maintained by the switch board software to achieve compression from the number of service board multicasts n to the number of switch board multicasts m.
[0038] When the number of service boards is a, the number of service board combinations is N = 2. a -1.
[0039] The index of the first software mapping table is the business card combination, and the index is generated by converting the binary bitmap of the business card into a decimal value. Taking 8 business cards as an example, the established mapping table is as follows: Figure 3 shown.
[0040] S102, sending the member ports of the service multicast group to the switch board through the control plane, obtaining the corresponding service board number based on the member port, and establishing a second software mapping table of the service multicast group and the service board combination.
[0041] Among them, the second software mapping table is as follows Figure 4 shown.
[0042] S103: Based on the first software mapping table and the second software mapping table, obtain a third software mapping table for the service multicast group and the switch board multicast group.
[0043] Specifically, the service board combination is used as the intermediate data to obtain the third software mapping table of the service multicast group and the switch board multicast group, such as Figure 5 shown.
[0044] S104, connecting the switch board to each service board using one link aggregation group, and obtaining a fourth mapping table according to the connection relationship and the third software mapping table; wherein the switch chip of the switch board sends and receives member port tables of N service multicast groups, and each member port is a link aggregation group;
[0045] Among them, Figure 6 As shown in the figure, the switch board uses a link aggregation group to connect to each service board, and the switch chip of the switch board sends 2 a -1 member port table of a multicast group, each member port is a link aggregation group.
[0046] Among them, based on the third software mapping table and the connection relationship, the following can be obtained: Figure 7 The fourth mapping table shown.
[0047] S105, for the message with the custom message header forwarded from the service board to the switch board, the multicast group number carried in the custom message header is matched through the fourth software mapping table to obtain the forwarded multicast group information, thereby realizing multicast forwarding to multiple service boards.
[0048] In this embodiment, when a message with a custom message header is received from a switch board, the multicast group number (ie, Figure 7The switching board multicast group in the switching board multicast group) is then matched based on the fourth mapping relationship and the multicast group number to obtain the forwarded multicast group information (i.e., the business section multicast group), and then the corresponding business board combination is obtained based on the forwarded multicast group information, thereby realizing multicast forwarding to multiple business boards.
[0049] In summary, the embodiment of the present invention establishes a mapping relationship between a service board combination and a switch board multicast group, further obtains a mapping relationship between a service multicast group and a switch board multicast group, thereby compressing service multicast group resources on the switch board, thereby achieving the purpose of not reducing the multicast specifications of the service board.
[0050] See also Figure 8 The second embodiment of the present invention further provides a network device switch board mixed insertion multicast resource optimization device, which includes:
[0051] The first mapping unit 210 is used to establish N combinations of all service boards in the switch board software, wherein each service board combination is represented by one switch board multicast group, and a first software mapping table for mapping the service board combination to the switch board multicast group is formed;
[0052] The second mapping unit 220 is used to send the member ports of the service multicast group to the switch board through the control plane, obtain the corresponding service board number based on the member port, and establish a second software mapping table of the service multicast group and the service board combination;
[0053] The third mapping unit 230 is used to obtain a third software mapping table of the service multicast group and the switch board multicast group based on the first software mapping table and the second software mapping table;
[0054] The fourth mapping unit 240 is used to connect the switch board to each service board using one link aggregation group, and obtain a fourth mapping table according to the connection relationship and the third software mapping table; wherein the switch chip of the switch board sends and receives member port tables of N service multicast groups, and each member port is a link aggregation group;
[0055] The matching unit 250 is used to match the multicast group number carried in the custom message header of the message forwarded from the service board to the switch board through the fourth software mapping table to obtain the forwarded multicast group information and realize multicast forwarding to multiple service boards.
[0056] Preferably, let the number of business segments be a, then N=2 a -1.
[0057] Preferably, the index of the first software mapping table is a combination of service boards, and the index is generated by converting a binary bitmap of the service board into a decimal value.
[0058] Preferably, the service board combination is used as the intermediate data to obtain the third software mapping table of the service multicast group and the switch board multicast group.
[0059] The third embodiment of the present invention also provides a network device switch board mixed insertion multicast resource optimization device, which includes a memory and a processor, the memory stores a computer program, and the computer program can be executed by the processor to implement the network device switch board mixed insertion multicast resource optimization method as mentioned above.
[0060] The fourth embodiment of the present invention also provides a computer-readable storage medium storing a computer program, which can be executed by a processor of the device where the computer-readable storage medium is located to implement the network device switch board mixed insertion multicast resource optimization method as described above.
[0061] In several embodiments provided in the embodiments of the present invention, it should be understood that the disclosed apparatus and method can also be implemented in other ways. The apparatus and method embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the apparatus, method and computer program product according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0062] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0063] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, an electronic device, or a network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk. It should be noted that, in this article, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements that are not explicitly listed, or also includes elements inherent to such a process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.
[0064] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0065] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0066] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0067] The "first\second" mentioned in the embodiments is only to distinguish similar objects, and does not represent a specific order for the objects. It is understandable that the "first\second" can be interchanged with the specific order or sequence where permitted. It should be understood that the objects distinguished by "first\second" can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than those illustrated or described herein.
[0068] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for optimizing multicast resources by mixing and inserting switch boards of network equipment, characterized in that: include: S101, establishing N combinations of all service boards in the switch board software, wherein each service board combination is represented by one switch board multicast group, and forming a first software mapping table for mapping the service board combination to the switch board multicast group; S102, sending the member ports of the service multicast group to the switch board through the control plane, obtaining the corresponding service board number based on the member port, and establishing a second software mapping table of the service multicast group and the service board combination; S103, obtaining a third software mapping table for a service multicast group and a switch board multicast group based on the first software mapping table and the second software mapping table; S104, connecting the switch board to each service board using one link aggregation group, and obtaining a fourth mapping table according to the connection relationship and the third software mapping table; wherein the switch chip of the switch board sends and receives member port tables of N service multicast groups, and each member port is a link aggregation group; S105, for the message with the custom message header forwarded from the service board to the switch board, the multicast group number carried in the custom message header is matched through the fourth software mapping table to obtain the forwarded multicast group information, thereby realizing multicast forwarding to multiple service boards.
2. The method for optimizing multicast resources of network equipment switch cards according to claim 1, characterized in that: In step S101, let the number of business sectors be a, then N=2 a -1.
3. The method for optimizing multicast resources of network equipment switch boards according to claim 1, characterized in that: In step S101, the index of the first software mapping table is a combination of service boards, and the index is generated by converting a binary bitmap of the service board into a decimal value.
4. The method for optimizing multicast resources of network equipment switch boards according to claim 1, characterized in that: In step S103, the service board combination is used as intermediate data to obtain a third software mapping table of the service multicast group and the switch board multicast group.
5. A network equipment switch card mixed insertion multicast resource optimization device, characterized in that: include: A first mapping unit is used to establish N combinations of all service boards in the switch board software, wherein each service board combination is represented by one switch board multicast group, and a first software mapping table for mapping the service board combination to the switch board multicast group is formed; A second mapping unit is used to send the member ports of the service multicast group to the switch board through the control plane, obtain the corresponding service board number based on the member port, and establish a second software mapping table of the service multicast group and the service board combination; A third mapping unit, configured to obtain a third software mapping table of a service multicast group and a switch board multicast group based on the first software mapping table and the second software mapping table; The fourth mapping unit is used to connect the switch board to each service board using one link aggregation group, and obtain a fourth mapping table according to the connection relationship and the third software mapping table; wherein the switch chip of the switch board sends and receives member port tables of N service multicast groups, and each member port is a link aggregation group; The matching unit is used to match the multicast group number carried in the custom message header of the message forwarded from the business card to the switch card through the fourth software mapping table to obtain the forwarded multicast group information and realize multicast forwarding to multiple business cards.
6. The network equipment switch board mixed insertion multicast resource optimization device according to claim 5, characterized in that: Assume the number of business segments is a, then N = 2 a -1.
7. The network equipment switch board mixed insertion multicast resource optimization device according to claim 5, characterized in that: The index of the first software mapping table is a combination of service boards, and the index is generated by converting a binary bitmap of the service board into a decimal value.
8. The network equipment switch board mixed insertion multicast resource optimization device according to claim 5, characterized in that: The service board combination is used as intermediate data to obtain a third software mapping table of the service multicast group and the switch board multicast group.
9. A network equipment switch card mixed insertion multicast resource optimization device, characterized in that: It includes a memory and a processor, wherein the memory stores a computer program, and the computer program can be executed by the processor to implement the network equipment switch board mixed insertion multicast resource optimization method as described in any one of claims 1 to 4.