Method, device and equipment for realizing mixed insertion of service boards of network distribution equipment

By establishing a mapping relationship between ports and tunnel ports on the service board of the network shunt device and setting forwarding rules, the network function compatibility problem caused by mixing between old boards and new boards is solved, and the boards of different manufacturers are gradually upgraded and functional compatibility.

CN119402420BActive Publication Date: 2025-05-06YUNHE ZHIWANG (SHANGHAI) TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411974966.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-05-06
Estimated Expiration
2044-12-31

AI Technical Summary

Technical Problem

When the hardware board of the network shunt device is gradually upgraded, the mixing of old boards and new boards leads to compatibility issues in network functional characteristics, especially when manufacturers stop developing and updating switch chips.

Method used

By establishing the mapping relationship between the service board port and the MPLS tunnel port on the service board card, setting forwarding rules, and using MPLS-label to establish a forwarding path, the forwarding of packets and the stripping of MPLS encapsulated information are realized, so as to be compatible with the switching chips of different manufacturers.

Benefits of technology

It realizes mixed plug-in between business boards and cards of different manufacturers, allowing the equipment to be gradually upgraded, and ensuring that the export service boards can identify and parse original Ethernet packets, solving the problem of network functional characteristics compatibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119402420B_ABST
    Figure CN119402420B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device and equipment for realizing mixed insertion of service boards of network diversion equipment, the method comprising: establishing a mapping relationship between all service board ports and MPLS tunnel ports, obtaining the destination MAC, source MAC, MPLS-label required for encapsulation, and the service board port for tunnel transfer; establishing a forwarding path according to the MPLS-label on each switching board; setting forwarding rules on the service board, and realizing message forwarding according to the forwarding rules, the mapping relationship and the forwarding path; after the remote service board receives the message, the tunnel port is obtained according to the MPLS encapsulation information, the service board egress port is obtained according to the mapping relationship, and the MPLS encapsulation information is stripped and forwarded. The present invention realizes mixed insertion of switch chip service boards of different manufacturers based on the mapping of the service board panel port and the tunnel port of the network diversion equipment, so that the equipment can be gradually upgraded.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of networks, and in particular to a method, a device and equipment for implementing mixed insertion of service boards of network distribution equipment. Background Art

[0002] Frame-type network traffic distribution equipment is usually composed of multiple business boards and switch boards. When Ethernet messages are forwarded between the business 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, business 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, it is necessary to replace the boards made of switching chips from other manufacturers. In this way, the existing boards and new boards are mixed, which will lead to compatibility issues of network functions and characteristics. In order to solve this problem, the new service boards need to have certain programmable capabilities, such as being able to recognize custom message headers when receiving messages and convert them into information that can be recognized by this chip, as well as sending editable custom message headers to be compatible with the old boards. When the new service boards do not have this programmable capability, ACLs need to be used between the new and old service boards to match custom message headers for forwarding.

[0004] The drawback of this method is that when ACL is used to match custom message headers, since the message is not the original Ethernet message, the Ethernet message parsing on the egress service board will fail, and the message headers such as IPv4 / IPv6 / TCP / UDP cannot be identified, affecting the network function characteristics of the egress service board. When using standard Ethernet messages for cross-board forwarding (without custom message headers), it is necessary to add encapsulation (VLAN-tag or L2VPN) to the original Ethernet message to identify the egress port. The use of VLAN-tag for encapsulation is limited by the number of VLAN-VIDs, and the encapsulation of VLAN-tags causes too many tag layers, resulting in parsing failure of the egress service board. Summary of the invention

[0005] In view of the above problems, the purpose of the embodiments of the present invention is to provide a method, device and equipment for implementing mixed insertion of service boards of network distribution equipment, so as to improve the above problems.

[0006] An embodiment of the present invention provides a method for implementing mixed insertion of service boards of a network distribution device, which includes:

[0007] S1, for each service card, establish a mapping relationship between all service card ports and MPLS tunnel ports, so as to obtain the destination MAC, source MAC, MPLS-label, and service card port for tunnel transfer required for encapsulation; the destination MAC is the MAC configured on the remote service card, and the source MAC is the MAC configured on this service card;

[0008] S2, establish a forwarding path on each switch card according to the MPLS-label, that is, map the egress of the switch card according to the range of the MPLS-label;

[0009] S3, set forwarding rules on the service card, and forward the message according to the forwarding rules, the mapping relationship between the service card port and the MPLS tunnel port, and the forwarding path;

[0010] S4, after the remote service card receives the message, it obtains the tunnel port according to the MPLS encapsulation information, obtains the service card egress port according to the mapping relationship between the service card port and the MPLS tunnel port, and forwards it after stripping the MPLS encapsulation information.

[0011] Preferably, the mapping relationship between the remote service card port and the MPLS tunnel port is sequential.

[0012] Preferably, step S3 specifically includes:

[0013] S31, setting forwarding rules on the service card to directly forward the message to the port of the service card; according to the mapping relationship between the port of the service card and the MPLS tunnel port, no mapping or MPLS encapsulation is required.

[0014] Preferably, step S3 specifically includes:

[0015] S32, set forwarding rules on the service board, forward the message to the remote service board port, perform MPLS encapsulation according to the mapping relationship between the service board port and the MPLS tunnel port, and select a member port from the link aggregation group to forward to the switch board; after the switch board receives the message, it maps the export table of the switch board according to the MPLS-label, obtains the export link aggregation group and forwards it to the export service board; after the export service board receives the message, it obtains the tunnel port tunnel-port according to the MPLS encapsulation information, obtains the service board egress port according to the mapping relationship between the service board port and the MPLS tunnel port, and forwards it after stripping the MPLS encapsulation.

[0016] Preferably, step S3 specifically includes:

[0017] S33, set forwarding rules on the service board to forward the message to the link aggregation group composed of the service board ports. If the service board port is selected for forwarding in the link aggregation group, execute S31; if the remote service board port is selected for forwarding in the link aggregation group and needs to be converted into MPLS tunnel port forwarding, execute S32; if the service board does not support the MPLS tunnel port to join the link aggregation group, use the ECMP group instead of the link aggregation group, and set the Ethernet layer 2 header and layer 3 header of the original message to remain unchanged.

[0018] Preferably, step S3 specifically includes:

[0019] S34, set forwarding rules on the service board, forward the message to the multicast group composed of the service board ports, and copy the message to all member ports for forwarding; if the member port in the multicast group is the port of this service board, execute step S31; if the member port is a remote service board port, convert it into MPLS tunnel port forwarding and execute step S32.

[0020] Preferably, step S3 specifically includes:

[0021] S35, set forwarding rules on the business card, forward the message to the tunnel port, and transfer it out with the tunnel information; if the exit of the tunnel port is the port of this business card, encapsulate the tunnel table entry and then transfer it out; if the exit of the tunnel port is the port of the remote business card, first forward the tunnel encapsulated message to the loopback port on the business card, and after the message transferred out from the loopback port is looped back, it enters the switching chip again, converts the remote business card port into an MPLS tunnel port, performs a second encapsulation, and executes step S32.

[0022] The embodiment of the present invention also provides a device for implementing mixed insertion of service boards of a network distribution device, which includes:

[0023] The mapping relationship establishment unit establishes the mapping relationship between all service card ports and MPLS tunnel ports for each service card, thereby obtaining the destination MAC, source MAC, MPLS-label, and service card port for tunnel transfer required for encapsulation; wherein the destination MAC is the MAC configured on the remote service card, and the source MAC is the MAC configured on the current service card;

[0024] A forwarding path establishing unit, used to establish a forwarding path on each switch board according to the MPLS-label, that is, to map the egress of the switch board according to the range of the MPLS-label;

[0025] A forwarding rule setting unit, used to set forwarding rules on the service board, and realize message forwarding according to the forwarding rules and the mapping relationship between the service board port and the MPLS tunnel port and the forwarding path;

[0026] The stripping unit is used to obtain the tunnel port tunnel-port according to the MPLS encapsulation information after the remote service board receives the message, obtain the service board egress port according to the mapping relationship between the service board port and the MPLS tunnel port, and forward after stripping the MPLS encapsulation information.

[0027] An embodiment of the present invention also provides a device for implementing mixed insertion of service boards of a network diversion 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 method for implementing mixed insertion of service boards of a network diversion device as described above.

[0028] In summary, this embodiment uses L2VPN technology to encapsulate the original Ethernet message, uses the remote exit to map the encapsulation information, and maps it back to the exit on the exit service board according to the encapsulation information, and strips the L2VPN header for forwarding. In this way, the exit service board can identify the original Ethernet message and parse it. The present invention can realize the mapping of the panel port and the tunnel port of the network diversion device service board, realize the mixed insertion of the switch chip service boards of different manufacturers, and enable the equipment to be gradually upgraded. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] 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.

[0030] Figure 1 It is a flowchart of a method for implementing mixed insertion of service boards of a network distribution device provided by the first embodiment of the present invention.

[0031] Figure 2 It is the hardware topology diagram of the network distribution device board.

[0032] Figure 3 It is a sequential mapping diagram between the remote service card ports and the MPLS tunnel ports.

[0033] Figure 4 This is a mapping diagram between the remote service card port and the MPLS tunnel port.

[0034] Figure 5 This is a forwarding diagram of the first implementation method.

[0035] Figure 6 This is a forwarding diagram of the second implementation method.

[0036] Figure 7 This is a forwarding diagram of the third implementation method.

[0037] Figure 8 This is a diagram of the member ports of LAG10 on each service board in the third implementation.

[0038] Fig. 9 This is a forwarding diagram of the fourth implementation method.

[0039] Fig.10 This is a member port diagram of multicast group 1 on each service board in the fourth implementation.

[0040] Fig.11 This is a forwarding diagram of the fifth implementation method.

[0041] Fig.12 This is an exit diagram of the tunnel on each service board in the fifth implementation method.

[0042] Fig.13 It is a structural diagram of an apparatus for implementing mixed insertion of service boards of a network distribution device provided in a second embodiment of the present invention. DETAILED DESCRIPTION

[0043] 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.

[0044] See also Figure 1 and Figure 2 The first embodiment of the present invention provides a method for implementing mixed insertion of service boards of a network distribution device, which can be executed by a device for implementing mixed insertion of service boards of a network distribution device (hereinafter referred to as the device), and in particular, by one or more processors in the device to implement the following method:

[0045] S1, for each service card, establish a mapping relationship between all service card ports and MPLS tunnel ports, so as to obtain the destination MAC, source MAC, MPLS-label, and service card port for tunnel transfer required for encapsulation; the destination MAC is the MAC configured on the remote service card, and the source MAC is the MAC configured on this service card.

[0046] In this embodiment, the network distribution equipment board hardware topology is as follows Figure 2 Considering that MPLS has the smallest overhead compared to other encapsulation technologies, which is only 18 bytes, this embodiment takes the MPLS encapsulation technology as an example for description.

[0047] In this embodiment, if Figure 3 As shown, each service board establishes a mapping relationship between all service board ports and MPLS tunnel ports, thereby obtaining the destination MAC, source MAC, MPLS-label, and service board port for tunnel message forwarding required for tunnel encapsulation. This service board port does not require MPLS tunnel encapsulation information. The destination MAC is the MAC configured for the remote service board, the source MAC is the MAC configured for this service board, and the service board port for tunnel message forwarding is a link aggregation group (LAG). The mapping relationship between the remote service board port and the MPLS tunnel port can be sequential or random. For ease of display, Figure 3 What is presented is sequential.

[0048] S2, establish a forwarding path on each switch card according to the MPLS-label, that is, map the egress of the switch card according to the range of the MPLS-label.

[0049] like Figure 4 As shown in the figure, each switch card establishes a forwarding path according to the MPLS-label, that is, the switch card's egress is mapped according to the MPLS-label, and the switch card's egress is a link aggregation group. If the mapping relationship between the remote service card port and the MPLS tunnel port is sequential, the switch card's egress can be mapped according to the MPLS-label range, which can save forwarding rules (such as ACL).

[0050] S3, set forwarding rules on the service card, and forward the message according to the forwarding rules and the mapping relationship between the service card port and the MPLS tunnel port and the forwarding path.

[0051] Specifically, in the first implementation mode, forwarding rules (such as ACL) are set on the service card to forward the message directly to the port of the service card. The message is forwarded directly according to the mapping relationship between the service card port and the MPLS tunnel port, without the need for additional mapping or MPLS encapsulation.

[0052] For example, Figure 5 As shown in the figure, the message coming from port0 / 1 needs to be forwarded to port0 / 2 after the forwarding rule is matched, and the exit of the forwarding rule on the switch chip is port0 / 2.

[0053] In the second implementation, forwarding rules (such as ACL) are set on the service card to forward the message to the remote service card port. According to the mapping relationship between the service card port and the MPLS tunnel port, MPLS encapsulation is required, and a member port is selected from the link aggregation group (LAG0) to forward it to the switch card. After the switch card receives the message, it maps the export table of the switch card according to the MPLS-label, obtains the export link aggregation group and forwards it to the export service card. After receiving the message, the export service card obtains the tunnel port according to the MPLS encapsulation information, obtains the service card egress port according to the mapping relationship between the service card port and the MPLS tunnel port, and forwards it after stripping the MPLS encapsulation.

[0054] For example, Figure 6 As shown in the figure, the message coming from port0 / 1 needs to be forwarded to port2 / 2 after the forwarding rule is matched. The egress of the forwarding rule on the switch chip is tunnel-port202. After checking the encapsulation table of the tunnel to obtain the encapsulation information, it is forwarded from the member port 0 / 49 of LAG0. Switch board 1 obtains the egress as LAG2 according to MPLS-label 202. After receiving the message, service board 2 obtains tunnel-port202 according to MPLS-label 202, and tunnel-port202 is mapped to the egress port2 / 2.

[0055] In the third implementation, forwarding rules (such as ACL) are set on the service card to forward the message to the link aggregation group composed of the service card ports. If the service card port is selected for forwarding in the link aggregation group, refer to the first implementation. If the remote service card port is selected for forwarding in the link aggregation group, it needs to be converted to MPLS tunnel port forwarding, refer to the second implementation. If the service card does not support the MPLS tunnel port to join the link aggregation group, the ECMP group can be used instead of the link aggregation group, and the Ethernet layer 2 header (including VLAN-tag) and layer 3 header of the original message are set to remain unchanged.

[0056] For example, Figure 7 As shown in the figure, port0 / 2 and port2 / 2 are member ports of link aggregation group LAG10. The packets coming from port0 / 1 need to be forwarded to LAG10 after the forwarding rules are matched. Figure 8 shown.

[0057] In the fourth implementation, forwarding rules (such as ACL) are set on the service card. When the message is forwarded to the multicast group composed of the service card ports, the message will be copied to all member ports for forwarding. If the member port in the multicast group is the port of the service card, refer to the first implementation. If the member port is a remote service card port, it needs to be converted to an MPLS tunnel port for forwarding, refer to the second implementation.

[0058] For example, Fig. 9 As shown in the figure, port0 / 2 and port2 / 2 are member ports of multicast group 1. The packets coming from port0 / 1 need to be forwarded to multicast group 1 after the forwarding rules are matched. The member ports of multicast group 1 on each service card are as follows: Fig.10 shown.

[0059] In the fifth implementation, forwarding rules (such as ACL) are set on the service card to forward the message to the tunnel port (MPLS, VxLAN, GRE, etc.), and the message is forwarded with the tunnel information. If the exit of the tunnel port is the port of this service card, the tunnel table entry is encapsulated and then forwarded. If the exit of the tunnel port is the port of the remote service card, the message after tunnel encapsulation needs to be forwarded to the loopback port on the service card first. After the message forwarded from the loopback port is looped back, it enters the switching chip again, and the remote service card port is converted into an MPLS tunnel port for the second encapsulation, which is performed in accordance with the second implementation.

[0060] For example, Fig.11 As shown in the figure, port 0 / 2 is the exit of the VxLAN tunnel, port 2 / 2 is the exit of the GRE tunnel, and for packets coming in from port 0 / 1, after the forwarding rules are matched, packet 1 needs to be forwarded to the VxLAN tunnel, and packet 2 needs to be forwarded to the GRE tunnel. The exits of the tunnels on each service card are as follows: Fig.12 .

[0061] S4, after the remote service card receives the message, it obtains the tunnel port according to the MPLS encapsulation information, obtains the service card egress port according to the mapping relationship between the service card port and the MPLS tunnel port, and forwards it after stripping the MPLS encapsulation information.

[0062] In summary, this embodiment uses L2VPN technology to encapsulate the original Ethernet message, uses the remote exit to map the encapsulation information, and maps it back to the exit on the exit service board according to the encapsulation information, and strips the L2VPN header for forwarding. In this way, the exit service board can identify the original Ethernet message and parse it. The present invention can realize the mapping of the panel port and the tunnel port of the network diversion device service board, realize the mixed insertion of the switch chip service boards of different manufacturers, and enable the equipment to be gradually upgraded.

[0063] See also Fig.13The second embodiment of the present invention further provides a device for implementing mixed insertion of service boards of a network distribution device, which includes:

[0064] The mapping relationship establishing unit 210 establishes a mapping relationship between all service card ports and MPLS tunnel ports for each service card, thereby obtaining the destination MAC, source MAC, MPLS-label, and service card port for tunnel transfer required for encapsulation; wherein the destination MAC is the MAC configured on the remote service card, and the source MAC is the MAC configured on the current service card;

[0065] The forwarding path establishing unit 220 is used to establish a forwarding path on each switch board according to the MPLS-label, that is, to map the egress of the switch board according to the range of the MPLS-label;

[0066] The forwarding rule setting unit 230 is used to set the forwarding rule on the service card, and realize the forwarding of the message according to the forwarding rule and the mapping relationship between the service card port and the MPLS tunnel port and the forwarding path;

[0067] The stripping unit 240 is used to obtain the tunnel port tunnel-port according to the MPLS encapsulation information after the remote service card receives the message, obtain the service card egress port according to the mapping relationship between the service card port and the MPLS tunnel port, and forward after stripping the MPLS encapsulation information.

[0068] The third embodiment of the present invention also provides a device for implementing mixed insertion of service boards of network diversion equipment, 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 method for implementing mixed insertion of service boards of network diversion equipment as described above.

[0069] The fourth embodiment of the present invention also provides a computer-readable storage medium storing a computer program, wherein the computer program can be executed by a processor of a device where the computer-readable storage medium is located to implement the method for mixed insertion of service boards of a network diversion device as described above.

[0070] 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.

[0071] 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.

[0072] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this 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 method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code. It should be noted that in this article, the term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such 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.

[0073] 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.

[0074] 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.

[0075] 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.

[0076] 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.

[0077] 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 implementing mixed insertion of service boards of network distribution equipment, characterized in that: include: S1, for each service card, establish a mapping relationship between all service card ports and MPLS tunnel ports, so as to obtain the destination MAC, source MAC, MPLS-label, and service card port for tunnel transfer required for encapsulation; the destination MAC is the MAC configured on the remote service card, and the source MAC is the MAC configured on this service card; S2, establish a forwarding path on each switch card according to the MPLS-label, that is, map the egress of the switch card according to the range of the MPLS-label; S3, set forwarding rules on the service card, and forward the message according to the forwarding rules, the mapping relationship between the service card port and the MPLS tunnel port, and the forwarding path; S4, after the remote service card receives the message, it obtains the tunnel port according to the MPLS encapsulation information, obtains the remote service card port according to the mapping relationship between the service card port and the MPLS tunnel port, and forwards it after stripping the MPLS encapsulation information.

2. The method for implementing mixed insertion of service boards of network distribution equipment according to claim 1, characterized in that: The mapping relationship between the remote service card port and the MPLS tunnel port is sequential.

3. The method for implementing mixed insertion of service boards of network distribution equipment according to claim 1, characterized in that: Step S3 is specifically as follows: S31, set forwarding rules on the service board to directly forward the message to the port of the service board.

4. The method for implementing mixed insertion of service boards of network distribution equipment according to claim 3, characterized in that: Step S3 is specifically as follows: S32, setting forwarding rules on the service card, forwarding the message to the remote service card port, performing MPLS encapsulation according to the mapping relationship between the service card port and the MPLS tunnel port, and selecting a member port from the link aggregation group to forward to the switch card; After receiving the message, the switch card maps the export table of the switch card according to the MPLS-label, obtains the export link aggregation group and forwards it to the export service card; After receiving the message, the egress service card obtains the tunnel port according to the MPLS encapsulation information, obtains the service card egress port according to the mapping relationship between the service card port and the MPLS tunnel port, and forwards it after stripping the MPLS encapsulation.

5. The method for implementing mixed insertion of service boards of network distribution equipment according to claim 4, characterized in that: Step S3 is specifically as follows: S33, set forwarding rules on the service board to forward the message to the link aggregation group composed of the service board ports. If the service board port is selected for forwarding in the link aggregation group, execute S31; if the remote service board port is selected for forwarding in the link aggregation group, convert it into MPLS tunnel port forwarding and execute S32; if the service board does not support the MPLS tunnel port to join the link aggregation group, use the ECMP group instead of the link aggregation group, and set the Ethernet layer 2 header and layer 3 header of the original message to remain unchanged.

6. The method for implementing mixed insertion of service boards of network distribution equipment according to claim 4, characterized in that: Step S3 is specifically as follows: S34, set forwarding rules on the service board, forward the message to the multicast group composed of the service board ports, and copy the message to all member ports for forwarding; if the member port in the multicast group is the port of this service board, execute S31; if the member port is a remote service board port, convert it into MPLS tunnel port forwarding, and execute step S32.

7. The method for implementing mixed insertion of service boards of network distribution equipment according to claim 4, characterized in that: Step S3 is specifically as follows: S35, set forwarding rules on the service card, forward the message to the tunnel port, and carry the tunnel information to forward it out; if the exit of the tunnel port is the port of the service card, encapsulate the tunnel table entry and forward it out; If the exit of the tunnel port is a remote service board port, the tunnel encapsulated message is first forwarded to the loopback port on the service board. After the message forwarded from the loopback port is looped back, it enters the switching chip again, converts the remote service board port into an MPLS tunnel port, performs a second encapsulation, and executes step S32.

8. A device for realizing mixed insertion of service boards of network distribution equipment, characterized in that: include: The mapping relationship establishment unit establishes the mapping relationship between all service card ports and MPLS tunnel ports for each service card, thereby obtaining the destination MAC, source MAC, MPLS-label, and service card port for tunnel transfer required for encapsulation; wherein the destination MAC is the MAC configured on the remote service card, and the source MAC is the MAC configured on the current service card; A forwarding path establishing unit, used to establish a forwarding path on each switch board according to the MPLS-label, that is, to map the egress of the switch board according to the range of the MPLS-label; A forwarding rule setting unit, used to set forwarding rules on the service board, and realize message forwarding according to the forwarding rules and the mapping relationship between the service board port and the MPLS tunnel port and the forwarding path; The stripping unit is used to obtain the tunnel port tunnel-port according to the MPLS encapsulation information after the remote service board receives the message, obtain the remote service board port according to the mapping relationship between the service board port and the MPLS tunnel port, and forward after stripping the MPLS encapsulation information.

9. A device for realizing mixed insertion of service boards of network distribution equipment, characterized in that: It comprises 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 method for mixed insertion of service boards of a network diversion device as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method for communication among business boards in distributed equipment

    CN105227463A

  • Communication method and device

    CN115037682A