A method for optimizing forwarding rules of network traffic distribution equipment

By connecting the switching chip of the service board to the programmable processing device in the network shunt device and passing forwarding information using custom message headers, the problem of insufficient flexibility in the face of complex business functions is solved, and the saving of ACL resources and improvement of business flexibility is achieved.

CN119363660BActive Publication Date: 2025-03-04YUNHE ZHIWANG (SHANGHAI) TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411885552.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-20
Publication Date
2025-03-04
Estimated Expiration
2044-12-20

AI Technical Summary

Technical Problem

When facing complex business functions, network shunt devices lack flexibility and high programmability, resulting in the forwarding of packets processed by programmable processing devices that consume a lot of money and complex management on the switching chip ACL rule table entries.

Method used

By connecting the switching chip of the service board with the programmable processing device, the key forwarding information is transmitted using custom message headers, so that the packets processed by the programmable processing device are transferred back to the switching chip, achieving flexible forwarding rules optimization.

Benefits of technology

While saving ACL resources, it enhances business flexibility and simplifies management complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119363660B_ABST
    Figure CN119363660B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for optimizing forwarding rules of network diversion equipment, which comprises: connecting the switching chip of a service board to a programmable processing device through a port in fabric mode; receiving a message, and after inserting a custom message header into the message, forwarding the message to the programmable processing device by the panel port of the service board using a forwarding rule; receiving a message returned by the programmable processing device; wherein the programmable processing device modifies the egress information in the custom message header after processing the message; and forwarding the message according to the egress information of the custom message header in the received message by the switching chip of the service board. The present invention regards the programmable processing device as a virtual switching chip, and the service board switching chip can carry more information to the programmable processing device. The forwarding between programmable processing devices is realized by modifying the custom message header, which saves ACL table item resources and enhances the flexibility of the service.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network traffic distribution, and in particular to a method, device and equipment for optimizing forwarding rules of network traffic distribution equipment. Background Art

[0002] A network traffic diversion device is a device used to capture and analyze network traffic. Its main application scenarios are network security and network performance optimization. It usually does not use MAC address tables and routing tables for forwarding, but instead forwards based on rules. For example, after ACL matches specific message features, it processes the message and then forwards it to a specific port.

[0003] Frame-type network distribution equipment is usually composed of multiple service boards and switch boards. When Ethernet messages are forwarded between the service board switch chip and the switch board switch chip, fabric mode ports are usually used, and a manufacturer-defined message header is inserted before or after the Ethernet message header, such as Broadcom's HiGig, HiGig2, etc. Network distribution equipment usually uses a switch chip as the core forwarding chip. When facing important business functions of network distribution equipment such as message deduplication, message custom position cutting / editing, data desensitization, IP fragment reassembly, TCP disorder reassembly, and message decryption, it faces the problem of insufficient flexibility and high programmability. In order to make up for this shortcoming, multiple programmable processing devices (CPU / network processor NP / FPGA, etc.) are usually hung next to the board where the switch chip is located. When the switch chip faces a business function that cannot be processed, the message is forwarded to the programmable processing device for processing. After the programmable processing device has finished processing, one method is to transfer the message back to the switch chip and transfer it out from the panel port, and the second method is to transfer the message back to the switch chip and continue to forward it to other programmable processing devices for further processing.

[0004] However, forwarding the message processed by the programmable processing device to the panel port of the service board or forwarding the message between the programmable processing devices consumes a large amount of ACL rule table entries of the switching chip and is complex to manage. Summary of the invention

[0005] In view of the above problems, an embodiment of the present invention aims to provide a method for optimizing forwarding rules of a network traffic distribution device to improve the above problems.

[0006] An embodiment of the present invention provides a method for optimizing forwarding rules of a network traffic distribution device, which is characterized by comprising:

[0007] Connect the switch chip of the service card to the programmable processing device through the port of the fabric mode;

[0008] After receiving the message and inserting the custom message header into the message, the panel port of the service board forwards the message to the programmable processing device using the forwarding rule, so that the programmable processing device recognizes the custom message header and obtains the key forwarding information of the service board switching chip; the key forwarding information includes the egress information;

[0009] Receive a message returned by the programmable processing device; wherein the programmable processing device modifies the egress information in the custom message header after processing the message;

[0010] The switching chip of the service board forwards the message according to the egress information of the custom message header in the received message.

[0011] Preferably, it also includes:

[0012] A forwarding path is established for the switching chip of each service board to all service board ports and programmable processing devices, and a forwarding path is also established for the switching chip of each switching board to all service board ports and programmable processing devices.

[0013] Preferably, the programmable processing device is a network processor NP, each NP is regarded as a switching chip, occupies a virtual chip number, and occupies a virtual panel port range, and the forwarding path to the NP is regarded as the forwarding path to the virtual panel port; the custom message header includes ingress information, egress information, and a message load routing hash value, and the forwarding rules include:

[0014] The message is forwarded to the NP mounted on the service card; specifically:

[0015] According to the mapping relationship between the port and the egress, the message is forwarded from the corresponding path of the service card to the NP mounted on the service card. The egress information of the custom message header is the virtual port number occupied by the NP. The channel interconnecting the switching chips is called a path.

[0016] Preferably, the forwarding rule further includes:

[0017] The message is forwarded to the NP mounted on the remote service card; specifically:

[0018] According to the mapping relationship between the port and the forwarding egress, the message is forwarded from path0 of the service card to the switch card. The egress information of the custom message header is the virtual port number occupied by the NP.

[0019] After receiving the message, the switch board obtains the virtual port number occupied by the NP in the custom message header, and forwards it to the remote service board from the corresponding path according to the mapping relationship between the port on the switch board and the forwarding exit;

[0020] After the remote service card receives the message, it forwards the message to the NP mounted on the remote service card from the corresponding path except path0 according to the virtual port number occupied by the NP in the custom message header and the mapping relationship between the port on the remote service card and the forwarding export.

[0021] Preferably, the forwarding rule further includes:

[0022] The message is forwarded to the NPs mounted on multiple business boards; the NPs mounted on multiple business boards are converted into a link aggregation group using virtual ports occupied by multiple NPs to achieve load balancing among multiple NPs, and the export information of the custom message header is the virtual port number occupied by the NP.

[0023] Preferably, the forwarding rule further includes:

[0024] The message is copied and forwarded to the NP mounted on multiple service boards, converted and forwarded to the multicast group. The member ports in the multicast group are virtual ports occupied by multiple NPs. In addition to the port replication message of this board, the multicast group of this service board only copies one message to the remote switching board. The remote switching board replicates the message to the remote service board according to the multicast group. The remote service board continues to perform multicast replication. The export information of the custom message header is the multicast group.

[0025] Preferably, modifying the custom message header includes:

[0026] The NP mounted on the service card modifies the export information of the custom message header to the virtual port occupied by other NPs of this service card. According to the mapping relationship between the port and the forwarding export, the switching chip forwards the message to other NPs of this service card through the corresponding path.

[0027] Preferably, modifying the custom message header further includes:

[0028] The service card NP modifies the export information of the custom message header to the virtual port occupied by the NP mounted on the remote service card. According to the mapping relationship between the port and the forwarding export, the switching chip forwards the message to the switching card through the corresponding path0; the switching card forwards the message to the remote service card through the corresponding path according to the mapping relationship between the port and the forwarding export; the remote service card forwards the message to the NP through the corresponding path according to the mapping relationship between the port and the forwarding export.

[0029] Preferably, modifying the custom message header further includes:

[0030] The NP mounted on the service board modifies the export information of the custom message header to the link aggregation group. The member port of the link aggregation group is the virtual port occupied by the service board NP. The member port selection of the link aggregation group is performed by the switching chip; the export information of the custom message header is the link aggregation group.

[0031] Preferably, modifying the custom message header further includes:

[0032] The NP mounted on the service board modifies the export information of the custom message header to the multicast group. The member port of the multicast group is the virtual port occupied by the service board NP. The switching chip of each service board performs message replication of the member port, and the export information of the custom message header is the multicast group.

[0033] In summary, the port of the business card switching chip in fabric mode is used to connect the programmable processing device, and the programmable device is used as a virtual switching chip. The message processed by the programmable processing device is transferred back to the business card switching chip. The switching chip can continue to use the manufacturer's custom message header for forwarding, saving ACL resources while enhancing business flexibility. BRIEF DESCRIPTION OF THE DRAWINGS

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

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

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

[0037] Figure 3 It is a schematic diagram of the forwarding path from each service board switching chip to all service board ports and NPs.

[0038] Figure 4 It is a schematic diagram of the forwarding path from each switch card switching chip to all service card ports and NP.

[0039] Figure 5 This is a forwarding diagram of the second forwarding rule.

[0040] Figure 6 This is a forwarding diagram for the third forwarding rule.

[0041] Figure 7 This is a forwarding diagram of the fourth forwarding rule. DETAILED DESCRIPTION

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

[0043] See also Figure 1 The first embodiment of the present invention provides a method for optimizing forwarding rules of a network traffic distribution device, which includes:

[0044] S101, connecting the switching chip of the service board to the programmable processing device through a port in fabric mode.

[0045] In this embodiment, if Figure 2 As shown, Figure 2 The hardware topology of the network distribution device board. Figure 2 In the example, the channel for interconnecting switch chips is called fabric-path. For simplicity, it is referred to as path in the following.

[0046] In this embodiment, if Figure 3 As shown in the figure, each service card switching chip establishes a forwarding path to all service card ports and NP. Each NP can be regarded as a switching chip, occupying a virtual chip number and a virtual panel port range. The forwarding path to the NP can be regarded as the forwarding path to the virtual panel port. The message forwarded from the path will carry the manufacturer's custom message header and be load-balanced among the member ports of the path.

[0047] like Figure 4 Each switch card switching chip also establishes a forwarding path to all service card ports and NPs.

[0048] S102, after receiving a message and inserting a custom message header into the message, the panel port of the service board uses a forwarding rule to forward the message to the programmable processing device, so that the programmable processing device recognizes the custom message header and obtains key forwarding information of the service board switching chip; the key forwarding information includes export information.

[0049] In this embodiment, the custom message header usually includes ingress information, egress information, and a message payload routing hash value, so the egress information of the message header can be customized to control the forwarding logic of the message.

[0050] When forwarding, the business segment needs to forward according to preset forwarding rules. Some specific forwarding rules will be introduced below, but it should be understood that in actual situations, more forwarding rules may be included, and these solutions are also within the scope of protection of the present invention.

[0051] In one implementation, the first forwarding rule is:

[0052] The message is forwarded to the NP mounted on the service card; specifically:

[0053] According to the mapping relationship between the port and the egress, the message is forwarded from the corresponding path of the service card to the NP mounted on the service card. The egress information of the custom message header is the virtual port number occupied by the NP.

[0054] for example, Figure 2 In the example, the message coming from port0 / 1 needs to be forwarded to chip0-NP0-port after the forwarding rule is matched. The egress of the forwarding rule on the switch chip is chip0-path1.

[0055] In another implementation, the second forwarding rule is:

[0056] Forward the message to the NP mounted on the remote service card.

[0057] Among them, Figure 5 As shown in the figure, the forwarding rules are set on the service card to forward the message to the NP mounted on the remote service card. According to the mapping relationship between the port and the forwarding exit, the message is forwarded from path0 of the service card (path0 is the default path), and the exit information of the custom message header is the virtual port number occupied by the NP. After the switch card receives the message, it obtains the virtual port number occupied by the NP in the custom message header, and forwards it to the remote service card from the corresponding path according to the mapping relationship between the port on the switch card and the forwarding exit. After the remote service card receives the message, it forwards it from the corresponding path (except path0) according to the virtual port number occupied by the NP in the custom message header and the mapping relationship between the port on the remote service card and the forwarding exit.

[0058] For example, packets coming in from port0 / 1 need to be forwarded to chip2-NP0-port after the forwarding rule is matched, and the egress of the forwarding rule on the switch chip is chip0-path0.

[0059] In another implementation, the third forwarding rule is:

[0060] Forwards packets to NPs mounted on multiple service cards.

[0061] Among them, NPs mounted on multiple business boards are converted to virtual ports occupied by multiple NPs and bundled to form a link aggregation group to achieve load balancing among multiple NPs. The export information of the custom message header is the virtual port number occupied by the NP.

[0062] For example, the four virtual ports chip0-NP0-port, chip1-NP1-port, chip2-NP0-port, and chip2-NP1-port form a link aggregation group LAG1. The packets coming from port0 / 1 need to be load balanced to the four NPs after the forwarding rules are matched. The egress of the forwarding rule is LAG1. For example, Figure 6 shown.

[0063] In another implementation, the fourth forwarding rule is:

[0064] The message is copied and forwarded to the NP mounted on multiple service boards, converted and forwarded to the multicast group. The member ports in the multicast group are virtual ports occupied by multiple NPs. In addition to the port replication message of this board, the multicast group of this service board only copies one message to the remote switching board. The remote switching board replicates the message to the remote service board according to the multicast group. The remote service board continues to perform multicast replication. The export information of the custom message header is the multicast group.

[0065] For example, multicast group 1 has four member ports: chip0-NP0-port, chip1-NP1-port, chip2-NP0-port, and chip2-NP1-port. The message coming from port0 / 1 needs to be copied to the four NPs after the forwarding rule is matched. The egress of the forwarding rule is multicast group 1. Figure 7 shown.

[0066] S103, receiving a message returned by the programmable processing device; wherein the programmable processing device modifies the egress information in the custom message header after processing the message;

[0067] Specifically, in one implementation, modifying the custom message header includes:

[0068] The NP mounted on the service card modifies the export information of the custom message header to the virtual port occupied by other NPs of this service card. According to the mapping relationship between the port and the forwarding export, the switching chip forwards the message to other NPs of this service card through the corresponding path.

[0069] For example, for a message forwarded from port0 / 1 to chip0-NP0, chip0-NP0 modifies the egress information in the custom message header and then forwards the message to chip0-NP1.

[0070] In another implementation, modifying the custom message header further includes:

[0071] The service card NP modifies the export information of the custom message header to the virtual port occupied by the NP mounted on the remote service card. According to the mapping relationship between the port and the forwarding export, the switching chip forwards the message to the switching card through the corresponding path0; the switching card forwards the message to the remote service card through the corresponding path according to the mapping relationship between the port and the forwarding export; the remote service card forwards the message to the NP through the corresponding path according to the mapping relationship between the port and the forwarding export.

[0072] In another implementation, modifying the custom message header further includes:

[0073] The NP mounted on the service card modifies the egress information of the custom message header to be the link aggregation group. The member port of the link aggregation group is the virtual port occupied by the service card NP. The member port selection of the link aggregation group is performed by the switching chip. The subsequent process refers to step S4. The egress information of the custom message header is the link aggregation group.

[0074] For example, the four virtual ports chip0-NP0-port, chip1-NP1-port, chip2-NP0-port, and chip2-NP1-port form a link aggregation group LAG2. The message sent from chip0-NP1 executes LAG2 member port selection on the switching chip chip0.

[0075] In another implementation, modifying the custom message header further includes:

[0076] The NP mounted on the service board modifies the export information of the custom message header to the multicast group. The member port of the multicast group is the virtual port occupied by the service board NP. The switching chip of each service board performs message replication of the member port, and the export information of the custom message header is the multicast group.

[0077] S104, the switching chip of the service board forwards the message according to the egress information of the custom message header in the received message.

[0078] In summary, the embodiment of the present invention regards the programmable processing device as a virtual switching chip. The service board switching chip can carry more information (custom message header) to the programmable processing device. The forwarding between programmable processing devices is achieved by modifying the custom message header, which saves ACL table entry resources and enhances the flexibility of the service.

[0079] A second embodiment of the present invention provides a network traffic distribution device forwarding rule optimization device, which includes:

[0080] A connection unit, used to connect the switching chip of the service board to the programmable processing device through a port in fabric mode;

[0081] The insertion unit is used to receive the message, and after inserting the custom message header into the message, the panel port of the service board uses the forwarding rule to forward the message to the programmable processing device, so that the programmable processing device recognizes the custom message header and obtains the key forwarding information of the service board switching chip; the key forwarding information includes the egress information;

[0082] A receiving unit, configured to receive a message returned by a programmable processing device; wherein the programmable processing device modifies the egress information in the custom message header after processing the message;

[0083] The forwarding unit is used for the switching chip of the service board to forward the message according to the egress information of the custom message header in the received message.

[0084] The third embodiment of the present invention also provides a network diversion device forwarding rule 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 diversion device forwarding rule optimization method as described above.

[0085] The fourth embodiment of the present invention further 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 network traffic diversion device forwarding rule optimization method as described above.

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

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

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

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

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

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

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

[0093] 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 forwarding rules of a network traffic distribution device, characterized in that: include: Connect the switch chip of the service card to the programmable processing device through the port of the fabric mode; After receiving the message and inserting the custom message header into the message, the panel port of the service board forwards the message to the programmable processing device using the forwarding rule, so that the programmable processing device recognizes the custom message header and obtains the key forwarding information of the service board switching chip; the key forwarding information includes the egress information; Receive a message returned by the programmable processing device; wherein the programmable processing device modifies the egress information in the custom message header after processing the message; The switching chip of the service board forwards the message according to the egress information of the custom message header in the received message.

2. The method for optimizing network traffic distribution device forwarding rules according to claim 1, characterized in that: Also includes: A forwarding path is established for the switching chip of each service board to all service board ports and programmable processing devices, and a forwarding path is also established for the switching chip of each switching board to all service board ports and programmable processing devices.

3. The method for optimizing network traffic distribution device forwarding rules according to claim 2, characterized in that: Assume that the programmable processing device is a network processor NP, each NP is regarded as a switching chip, occupies a virtual chip number, and occupies a virtual panel port range, and the forwarding path to the NP is regarded as the forwarding path to the virtual panel port; The custom message header includes ingress information, egress information, and a message load routing hash value, and the forwarding rules include: The message is forwarded to the NP mounted on the service card; specifically: According to the mapping relationship between the port and the egress, the message is forwarded from the corresponding path of the service card to the NP mounted on the service card. The egress information of the custom message header is the virtual port number occupied by the NP. The channel interconnecting the switching chips is called a path.

4. The method for optimizing network traffic distribution device forwarding rules according to claim 3, characterized in that: The forwarding rules also include: The message is forwarded to the NP mounted on the remote service card; specifically: According to the mapping relationship between the port and the forwarding egress, the message is forwarded from path0 of the service card to the switch card. The egress information of the custom message header is the virtual port number occupied by NP; path0 is the default path; After receiving the message, the switch board obtains the virtual port number occupied by the NP in the custom message header, and forwards it to the remote service board from the corresponding path according to the mapping relationship between the port on the switch board and the forwarding exit; After the remote service card receives the message, it forwards the message to the NP mounted on the remote service card from the corresponding path other than path0 according to the virtual port number occupied by the NP in the custom message header and the mapping relationship between the port on the remote service card and the forwarding export.

5. The method for optimizing network traffic distribution device forwarding rules according to claim 3, characterized in that: The forwarding rules also include: The message is forwarded to the NPs mounted on multiple business boards; the NPs mounted on multiple business boards are converted into a link aggregation group using virtual ports occupied by multiple NPs to achieve load balancing among multiple NPs, and the export information of the custom message header is the virtual port number occupied by the NP.

6. The method for optimizing network traffic distribution device forwarding rules according to claim 3, characterized in that: The forwarding rules also include: The message is copied and forwarded to the NP mounted on multiple service boards, converted and forwarded to the multicast group. The member ports in the multicast group are virtual ports occupied by multiple NPs. In addition to the port replication message of this board, the multicast group of this service board only copies one message to the remote switching board. The remote switching board replicates the message to the remote service board according to the multicast group. The remote service board continues to perform multicast replication. The export information of the custom message header is the multicast group.

7. The method for optimizing network traffic distribution device forwarding rules according to claim 3, characterized in that: Modifying custom message headers includes: The NP mounted on the service card modifies the export information of the custom message header to the virtual port occupied by other NPs of this service card. According to the mapping relationship between the port and the forwarding export, the switching chip forwards the message to other NPs of this service card through the corresponding path.

8. The method for optimizing network traffic distribution device forwarding rules according to claim 4, characterized in that: Modifying the custom message header also includes: The service card NP modifies the export information of the custom message header to the virtual port occupied by the NP mounted on the remote service card. According to the mapping relationship between the port and the forwarding export, the switching chip forwards the message to the switching card through the corresponding path0; the switching card forwards the message to the remote service card through the corresponding path according to the mapping relationship between the port and the forwarding export; the remote service card forwards the message to the NP through the corresponding path according to the mapping relationship between the port and the forwarding export.

9. The method for optimizing network traffic distribution device forwarding rules according to claim 5, characterized in that: Modifying the custom message header also includes: The NP mounted on the service board modifies the export information of the custom message header to the link aggregation group. The member port of the link aggregation group is the virtual port occupied by the service board NP. The member port selection of the link aggregation group is performed by the switching chip; the export information of the custom message header is the link aggregation group.

10. The method for optimizing network traffic distribution device forwarding rules according to claim 6, characterized in that: Modifying the custom message header also includes: The NP mounted on the service board modifies the export information of the custom message header to the multicast group. The member port of the multicast group is the virtual port occupied by the service board NP. The switching chip of each service board performs message replication of the member port, and the export information of the custom message header is the multicast group.

Citation Information

Patent Citations

  • Method for testing internal channels between board cards and distributed network equipment

    CN112953857A

  • Message processing method and device

    CN113132257A