A traffic replication system, method, apparatus, processing chip and switch chip

By working in tandem with the processing chip and the switching chip, the problem of insufficient bandwidth in traditional network traffic devices is solved, achieving the effect of high-bandwidth traffic replication and carrying user information.

CN116566913BActive Publication Date: 2025-11-18DAWNING NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310594735.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-24
Publication Date
2025-11-18
Estimated Expiration
2043-05-24

AI Technical Summary

Technical Problem

Traditional network traffic devices have low interface bandwidth, which cannot meet the needs of high-bandwidth traffic replication, and the switching chips cannot carry user information.

Method used

By setting up the collaborative work of the processing chip and the switching chip, the processing chip arbitrates the traffic and adds a carry information set and a forwarding information set, while the switching chip determines the port queue based on the information set and generates the target port traffic, thereby achieving high-bandwidth copying of traffic and information carrying.

Benefits of technology

It enables the replication of large amounts of traffic under high bandwidth, and the traffic replicated by the switching chip can carry user information, reducing the resource consumption of the processing chip and the internal switching bandwidth consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116566913B_ABST
    Figure CN116566913B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a flow replication system, method, device, processing chip and switching chip. The flow replication system comprises a processing chip and a switching chip. The processing chip is configured to arbitrate the to-be-forwarded flow, determine a corresponding carrying information set and a forwarding information set, add the carrying information set and the forwarding information set to the to-be-forwarded flow, generate target forwarding flow, and send the target forwarding flow to the switching chip. The switching chip is configured to determine, according to the forwarding information set, an out-port queue to which the to-be-forwarded flow needs to be forwarded, determine, in the carrying information set, target carrying information corresponding to each out-port, generate, according to each target carrying information and the to-be-forwarded flow in the target forwarding flow, target port flow corresponding to each target out-port respectively, and forward the target port flow to the matched target out-port. The system avoids the situation that the processing chip cannot replicate a large amount of flow due to low bandwidth, and enables the switching chip to carry information when replicating flow.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a traffic replication system, method, apparatus, processing chip, and switching chip. Background Technology

[0002] Traditional network traffic devices typically have low interface bandwidth, such as 1G, 10G, or 40G. When network traffic is matched and forwarded, the processing chip usually copies the traffic and then forwards it to the port via a switching chip.

[0003] However, with the rapid development of computer network technology, processing chips cannot meet the replication requirements of higher bandwidths such as 100G and 400G. Especially when the processing chip needs to replicate a large amount of traffic, on the one hand, the processing chip cannot meet the needs of high-bandwidth traffic replication, and on the other hand, forwarding the large amount of traffic replicated by the processing chip through the switching chip will lead to excessive consumption of internal forwarding bandwidth.

[0004] Furthermore, existing technologies employ a traffic copying method where a processing chip copies a small amount of traffic, and the switching chip then forwards a large amount of traffic based on this small amount. Because the switching chip is not editable, this traffic copying method results in a large amount of traffic forwarded by the switch failing to carry user information. Summary of the Invention

[0005] This invention provides a traffic replication system, method, apparatus, processing chip, and switching chip to solve the problem of being unable to replicate large amounts of traffic, while also allowing user information to be carried during traffic replication.

[0006] According to one aspect of the present invention, a traffic replication system based on information carried by a switching chip is provided, the system comprising: a processing chip and a switching chip; wherein:

[0007] The processing chip is used to arbitrate the traffic to be forwarded and determine the carrying information set and forwarding information set corresponding to the traffic to be forwarded.

[0008] The processing chip is used to add the carrying information set and the forwarding information set to the traffic to be forwarded, generate the target forwarding traffic, and send the target forwarding traffic to the switching chip;

[0009] The switching chip is used to determine the egress port queue to which the traffic to be forwarded needs to be forwarded based on the forwarding information set, and to determine the target carrying information corresponding to each egress port in the carrying information set.

[0010] The switching chip is used to generate target port traffic corresponding to each target output port based on the target-carried information and the traffic to be forwarded in the target forwarding traffic; and to forward the target port traffic to the matching target output port.

[0011] Optionally, the system may also include: a processor;

[0012] The switching chip is also used to receive the traffic to be forwarded and forward the traffic to be forwarded to the processing chip;

[0013] The processing chip is also used to perform first network traffic processing on the traffic to be forwarded, and when it is determined that the traffic to be forwarded needs second network traffic processing, forward the traffic to be forwarded after the first network traffic processing to the processor.

[0014] The processor is configured to perform second network traffic processing on the received traffic to be forwarded, and forward the traffic to be forwarded after the second network traffic processing to the processing chip, so that the processing chip can arbitrate the traffic to be forwarded.

[0015] According to another aspect of the present invention, a traffic replication method based on information carried by a switching chip is provided. This method is executed by a processing chip in a traffic replication system based on information carried by a switching chip provided in any embodiment of the present invention. The method includes:

[0016] Arbitrate the traffic to be forwarded to determine the set of carried information and the set of forwarding information corresponding to the traffic to be forwarded.

[0017] Add the carrying information set and the forwarding information set to the traffic to be forwarded to generate the target forwarding traffic;

[0018] The target forwarding traffic is sent to the switching chip so that the switching chip can determine the target port traffic that matches each target output port based on the target forwarding traffic.

[0019] Optionally, before arbitrating the traffic to be forwarded, the following may also be included:

[0020] Receive the traffic to be forwarded sent by the switching chip, and perform first network traffic processing on the traffic to be forwarded;

[0021] When it is determined that the traffic to be forwarded requires processing by the second network traffic, the traffic to be forwarded after processing by the first network traffic is forwarded to the processor;

[0022] Receive the traffic to be forwarded that has been processed by the second network traffic and sent by the processor.

[0023] According to another aspect of the present invention, a traffic replication method based on information carried by a switching chip is provided. This method is executed by a switching chip in a traffic replication system based on information carried by a switching chip provided in any embodiment of the present invention. The method includes:

[0024] The receiving and processing chip sends target forwarding traffic containing a carrying information set and a forwarding information set; and determines the outgoing port queue to which the traffic to be forwarded needs to be forwarded based on the forwarding information set.

[0025] The target carrying information corresponding to each output port is determined from the carrying information set;

[0026] Based on the target-carrying information and the traffic to be forwarded in the target forwarding traffic, generate target port traffic corresponding to each target outgoing port;

[0027] Forward the traffic from the target port to the matching target outgoing port.

[0028] Optionally, the method further includes:

[0029] The system receives traffic to be forwarded and forwards the traffic to be forwarded to the processing chip, so that the processing chip performs first network traffic processing on the traffic to be forwarded.

[0030] According to another aspect of the present invention, a traffic replication apparatus based on information carried by a switching chip is provided, executed by a processing chip in a traffic replication system based on information carried by a switching chip provided in any embodiment of the present invention, the apparatus comprising:

[0031] The information set determination module is used to arbitrate the traffic to be forwarded and determine the carrying information set and forwarding information set corresponding to the traffic to be forwarded.

[0032] The target forwarding traffic generation module is used to add the carrying information set and the forwarding information set to the traffic to be forwarded to generate target forwarding traffic;

[0033] The target forwarding traffic sending module is used to send the target forwarding traffic to the switching chip, so that the switching chip can determine the target port traffic that matches each target output port based on the target forwarding traffic.

[0034] According to another aspect of the present invention, a traffic replication apparatus based on information carried by a switching chip is provided, executed by a switching chip in a traffic replication system based on information carried by a switching chip provided in any embodiment of the present invention, the apparatus comprising:

[0035] The outgoing port queue determination module is used to receive the target forwarding traffic sent by the processing chip, which includes a carrying information set and a forwarding information set; and to determine the outgoing port queue to which the traffic to be forwarded needs to be forwarded based on the forwarding information set.

[0036] The target carrying information determination module is used to determine the target carrying information corresponding to each output port in the carrying information set.

[0037] The target port traffic determination module is used to generate target port traffic corresponding to each target output port based on the target-carried information and the traffic to be forwarded in the target forwarding traffic.

[0038] The target port traffic forwarding module is used to forward the target port traffic to the matching target outgoing port.

[0039] According to another aspect of the present invention, a processing chip is provided, comprising:

[0040] Programmable processing devices; and

[0041] A memory communicatively connected to the programmable processing device; wherein the memory stores a computer program executable by the programmable processing device, the computer program being executed by the programmable processing device to enable the programmable processing device to execute the traffic copying method based on information carried by the switching chip provided in any embodiment of the present invention.

[0042] According to another aspect of the present invention, a switching chip is provided, comprising:

[0043] Processing devices; and

[0044] A memory communicatively connected to the processing device; wherein the memory stores a computer program executable by the processing device, the computer program being executed by the processing device to enable the processing device to execute the traffic copying method based on information carried by the switching chip provided in any embodiment of the present invention.

[0045] The technical solution of this invention, through setting up a traffic replication system based on information carried by the switching chip, including a processing chip and a switching chip, wherein: the processing chip is used to arbitrate the traffic to be forwarded, determine the carrying information set and forwarding information set corresponding to the traffic to be forwarded; the processing chip is used to add the carrying information set and forwarding information set to the traffic to be forwarded, generate target forwarding traffic, and send the target forwarding traffic to the switching chip; the switching chip is used to determine the egress port queue to which the traffic to be forwarded needs to be forwarded according to the forwarding information set, and determine the target carrying information corresponding to each egress port in the carrying information set; the switching chip is used to generate target port traffic corresponding to each target egress port according to each target carrying information and the traffic to be forwarded in the target forwarding traffic; and forward the target port traffic to the matching target egress port, thus solving the problem of replicating a large amount of traffic under high bandwidth, and realizing the replication of a large amount of traffic while enabling the switching chip to replicate information carried by the traffic. By accessing the traffic to be forwarded through the switching chip, the interaction between the switching chip and the processing chip can be reduced, and the resource occupation of the processing chip can be reduced.

[0046] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0047] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0048] Figure 1 This is a schematic diagram of a traffic replication system based on information carried by a switching chip, according to Embodiment 1 of the present invention.

[0049] Figure 2 This is a schematic diagram of the structure of target forwarding traffic provided in Embodiment 1 of the present invention;

[0050] Figure 3 This is a schematic diagram illustrating how a switching chip determines the outgoing port queue and performs traffic replication according to an embodiment of the present invention;

[0051] Figure 4 This is a flowchart of a traffic replication method based on information carried by a switching chip according to Embodiment 2 of the present invention;

[0052] Figure 5This is a flowchart of a traffic replication method based on information carried by a switching chip according to Embodiment 3 of the present invention;

[0053] Figure 6 This is a schematic diagram of a traffic replication device based on information carried by a switching chip according to Embodiment 4 of the present invention;

[0054] Figure 7 This is a schematic diagram of a traffic replication device based on information carried by a switching chip, according to Embodiment 5 of the present invention. Detailed Implementation

[0055] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0056] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0057] Example 1

[0058] Figure 1 This is a schematic diagram of a traffic replication system based on information carried by a switching chip, according to Embodiment 1 of the present invention. Figure 1 As shown, the system includes a processing chip 110 and a switching chip 120.

[0059] In this embodiment of the invention, the processing chip may be a Field Programmable Gate Array (FPFA) chip, a Network Processor (NP) chip, or a Ternary Content Addressable Memory (TCAM) chip.

[0060] The processing chip can receive traffic from the front panel and determine the traffic to be forwarded. Alternatively, the switching chip can receive traffic from the front panel, determine the traffic to be forwarded, and then forward it to the processing chip. By using the switching chip to receive traffic from the front panel, the processing chip's resources are avoided when using it to handle front panel traffic. This allows the processing chip to perform more logical processing in its business logic, thus improving its business processing capabilities.

[0061] In an optional embodiment of the present invention, the switching chip receives traffic from the front panel, determines the traffic to be forwarded, and forwards the traffic to be forwarded to the processing chip; the processing chip performs first network traffic processing on the traffic to be forwarded. The first network traffic processing may be layer 2-4 network traffic processing.

[0062] like Figure 1 As shown, the traffic replication system based on information carried by the switching chip may also include a Central Processing Unit (CPU) 130. If the processing chip determines that the traffic to be forwarded requires second network traffic processing, the processing chip can forward the traffic to be forwarded after the first network traffic processing to the processor. The second network traffic processing can be Layer 7 network traffic processing. For example, Layer 7 network traffic processing can be application layer processing, such as DPI services; or, Layer 7 network traffic processing can be CPU coprocessing, such as processing fragmented packets that occupy a large amount of buffer space.

[0063] In an optional embodiment of the present invention, a traffic replication system based on information carried by a switching chip includes a processor; the processor is configured to perform second network traffic processing on the received traffic to be forwarded, and forward the traffic to be forwarded after the second network traffic processing to the processing chip, so that the processing chip arbitrates the traffic to be forwarded.

[0064] In this embodiment of the invention, a processing chip is used to arbitrate the traffic to be forwarded, determining the carry information set and forwarding information set corresponding to the traffic to be forwarded. The processing chip can arbitrate the traffic to be forwarded based on packet rule matching rules and priorities. The carry information set can be a collection of one or more user information sets that need to be carried during traffic replication and forwarding. The forwarding information set can be a collection of port information to which the traffic needs to be forwarded after replication.

[0065] In this embodiment of the invention, a processing chip is used to add a carry information set and a forwarding information set to the traffic to be forwarded, generate target forwarding traffic, and send the target forwarding traffic to the switching chip. Specifically, the processing chip can copy the same traffic required by multiple ports, add the corresponding carry information set and forwarding information set to the copied traffic, generate target forwarding traffic, and send it to the switching chip. Furthermore, the switching chip can replicate traffic in large quantities according to the target forwarding traffic and distribute it to each port.

[0066] The carry information set and forwarding information set can be added to any location in the traffic to be forwarded. For example, the carry information set and forwarding information set can be added to the header of the traffic to be forwarded, so that when the switching chip receives the target forwarding traffic, it can determine from the header whether the traffic needs to be copied, encapsulated, and carry different user information.

[0067] Figure 2 This is a schematic diagram of the structure of target forwarding traffic provided in Embodiment 1 of the present invention. Figure 2 As shown, the target forwarding traffic can consist of a forwarding information set, a carried information set, and the traffic to be forwarded. The forwarding information set may include unicast or multicast identifiers, port and / or port group identifiers. A unicast identifier indicates that the traffic is forwarded to a single port or a single port group. A multicast identifier indicates that the traffic is forwarded to a replicated port or a replicated port group. A port identifier represents any port on any board. A port group identifier represents the unicast or multicast port group number. The carried information set may include information of interest to the user, such as the rule type of the packet matching all services and the matching rules.

[0068] In this embodiment of the invention, the switching chip is used to determine the egress port queue to which the traffic to be forwarded needs to be forwarded based on the forwarding information set, and to determine the target carrying information corresponding to each egress port in the carrying information set. The switching chip is also used to generate target port traffic corresponding to each target egress port based on the target carrying information and the traffic to be forwarded in the target forwarding traffic; and to forward the target port traffic to the matching target egress port. The target egress port can be set as follows: Figure 1 The backplate shown.

[0069] Specifically, Figure 3 This is a schematic diagram illustrating how a switching chip determines the outgoing port queue and performs traffic replication according to an embodiment of the present invention. Figure 3 As shown, if the forwarding information set is a single-port identifier, the switching chip can directly forward the target forwarding traffic to the corresponding single port; and extract the information fields required by the service from the carrying information set according to the service number to which the single port belongs; and encapsulate the message according to the service requirements. The switching chip can verify the encapsulated message, and output the message from the single port after successful verification.

[0070] like Figure 3 As shown, if the forwarding information set is a port group identifier, the switching chip can perform load balancing output of ports within the port group according to load balancing requirements; and extract the information fields required by the service from the carrying information set according to the service number to which the port group belongs; and encapsulate the message according to the service requirements. The switching chip can verify the encapsulated message, and after successful verification, the message can be output from the port determined according to the load balancing requirements.

[0071] like Figure 3 As shown, if the forwarding information set consists of multiple ports and / or multiple port groups, the switching chip can first copy the target forwarding traffic to the corresponding individual ports and the ports determined according to load balancing requirements within the port groups; based on the service number to which the port or port group belongs, it extracts the information fields required by the service from the carrying information set; and encapsulates the packets according to service requirements. The switching chip can verify the encapsulated packets, and after successful verification, it can output packets from the multiple ports specified in the forwarding information set and the ports determined according to load balancing requirements.

[0072] The above method allows the traffic copied by the switching chip to carry different user information according to different business needs.

[0073] In this embodiment of the invention, the technical solution of generating target forwarding traffic by adding a carrying information set and a forwarding information set to the traffic to be forwarded by the processing chip, and then having the switching chip copy the carrying information of the traffic and forward it to the port according to the target forwarding traffic, can avoid the situation where the processing chip resources are occupied due to the large amount of traffic copying by the processing chip; at the same time, it can avoid the situation where the internal switching bandwidth is excessively occupied when the processing chip copies a large amount of traffic and forwards it to the switching chip; in addition, by having the switching chip copy the carrying information of the traffic and forward it to the port according to the target forwarding traffic, the traffic copied by the switching chip can carry different user information to meet different service requirements.

[0074] Example 2

[0075] Figure 4 This is a flowchart of a traffic replication method based on information carried by a switching chip, according to Embodiment 2 of the present invention. This embodiment is applicable to situations where traffic is replicated and forwarded with information carried by the switching chip. The method can be executed by a traffic replication device based on information carried by a switching chip. This device can be implemented in hardware and / or software and can be configured in an electronic device such as a processing chip. The method can be executed by a processing chip in a traffic replication system based on information carried by a switching chip as provided in any embodiment of the present invention.

[0076] likeFigure 4 As shown, the method includes:

[0077] Step 410: Arbitrate the traffic to be forwarded to determine the information set carried by the traffic to be forwarded and the forwarding information set.

[0078] Step 420: Add the carrying information set and the forwarding information set to the traffic to be forwarded to generate the target forwarding traffic.

[0079] Step 430: Send the target forwarding traffic to the switching chip so that the switching chip can determine the target port traffic that matches each target output port based on the target forwarding traffic.

[0080] Based on the above implementation, optionally, before arbitrating the traffic to be forwarded, the method further includes: receiving the traffic to be forwarded sent by the switching chip and performing first network traffic processing on the traffic to be forwarded; when it is determined that the traffic to be forwarded needs second network traffic processing, forwarding the traffic to be forwarded after first network traffic processing to the processor; and receiving the traffic to be forwarded after second network traffic processing sent by the processor.

[0081] The technical solution of this embodiment arbitrates the traffic to be forwarded to determine the carrying information set and forwarding information set corresponding to the traffic to be forwarded; adds the carrying information set and forwarding information set to the traffic to be forwarded to generate the target forwarding traffic; and sends the target forwarding traffic to the switching chip so that the switching chip can determine the target port traffic matching each target output port based on the target forwarding traffic. This solves the problem of copying a large amount of traffic under high bandwidth, and avoids the situation where the processing chip's resources are occupied due to the copying of a large amount of traffic. At the same time, it avoids the situation where the internal switching bandwidth is excessively occupied when the processing chip copies a large amount of traffic and forwards it to the switching chip.

[0082] Example 3

[0083] Figure 5 This is a flowchart of a traffic replication method based on information carried by a switching chip according to Embodiment 3 of the present invention. This embodiment is applicable to situations where traffic is replicated and forwarded with information carried by the switching chip. This method can be executed by a traffic replication device based on information carried by a switching chip. This device can be implemented in hardware and / or software and can be configured in an electronic device such as a switching chip. This method can be executed by a switching chip in a traffic replication system based on information carried by a switching chip as provided in any embodiment of the present invention.

[0084] like Figure 5 As shown, the method includes:

[0085] Step 510: Receive the target forwarding traffic sent by the processing chip, which includes a carrying information set and a forwarding information set; and determine the outgoing port queue to which the traffic to be forwarded needs to be forwarded based on the forwarding information set.

[0086] Step 520: Determine the target carried information corresponding to each output port in the carried information set.

[0087] Step 530: Based on the information carried by each target and the traffic to be forwarded in the target forwarding traffic, generate the target port traffic corresponding to each target's outgoing port.

[0088] Step 540: Forward the traffic from the target port to the matching target outgoing port.

[0089] Based on the above implementation method, optionally, the method further includes: receiving traffic to be forwarded and forwarding the traffic to be forwarded to the processing chip, so that the processing chip performs first network traffic processing on the traffic to be forwarded.

[0090] The technical solution of this invention involves receiving target forwarding traffic sent by a processing chip, which includes a carrying information set and a forwarding information set; determining the egress port queue to which the traffic to be forwarded needs to be forwarded based on the forwarding information set; identifying target carrying information corresponding to each egress port in the carrying information set; generating target port traffic corresponding to each target egress port based on each target carrying information and the traffic to be forwarded in the target forwarding traffic; and forwarding the target port traffic to the matching target egress port. This solves the problem of copying large amounts of traffic under high bandwidth, and avoids excessive internal switching bandwidth occupation caused by the processing chip copying large amounts of traffic and forwarding it to the switching chip. By having the switching chip copy the carrying information of the traffic according to the target forwarding traffic and forward it to the port, the traffic copied by the switching chip can carry different user information to meet different service requirements.

[0091] Example 4

[0092] Figure 6 This is a schematic diagram of a traffic replication device based on information carried by a switching chip, according to Embodiment 4 of the present invention. This device can be executed by a processing chip in a traffic replication system based on information carried by a switching chip, as provided in any embodiment of the present invention. Figure 6 As shown, the device includes: an information set determination module 610, a target forwarding traffic generation module 620, and a target forwarding traffic sending module 630. Wherein:

[0093] The information set determination module 610 is used to arbitrate the traffic to be forwarded and determine the information set carried by the traffic to be forwarded and the forwarding information set;

[0094] The target forwarding traffic generation module 620 is used to add the carrying information set and the forwarding information set to the traffic to be forwarded to generate the target forwarding traffic;

[0095] The target forwarding traffic sending module 630 is used to send the target forwarding traffic to the switching chip so that the switching chip can determine the target port traffic that matches each target output port based on the target forwarding traffic.

[0096] Optionally, the device may also include:

[0097] The first network traffic processing module is used to receive the traffic to be forwarded sent by the switching chip before arbitrating the traffic to be forwarded, and to perform the first network traffic processing on the traffic to be forwarded.

[0098] The forwarding module for traffic to be forwarded is used to forward the traffic to be forwarded after the first network traffic processing to the processor when it is determined that the traffic to be forwarded needs to be processed by the second network traffic.

[0099] The forwarding traffic receiving module is used to receive forwarding traffic sent by the processor after being processed by the second network traffic.

[0100] The traffic replication device based on information carried by the switching chip provided in the embodiments of the present invention can execute the traffic replication method based on information carried by the switching chip provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.

[0101] Example 5

[0102] Figure 7 This is a schematic diagram of a traffic replication device based on information carried by a switching chip, according to Embodiment 5 of the present invention. This device can be executed by a switching chip in a traffic replication system based on information carried by a switching chip, as provided in any embodiment of the present invention. Figure 7 As shown, the device includes: an outgoing port queue determination module 710, a target carried information determination module 720, a target port traffic determination module 730, and a target port traffic forwarding module 740. Wherein:

[0103] The outgoing port queue determination module 710 is used to receive the target forwarding traffic sent by the processing chip, which includes a carrying information set and a forwarding information set; and to determine the outgoing port queue to which the traffic to be forwarded should be forwarded based on the forwarding information set.

[0104] The target carrying information determination module 720 is used to determine the target carrying information corresponding to each output port in the carrying information set;

[0105] The target port traffic determination module 730 is used to generate target port traffic corresponding to each target's outgoing port based on the information carried by each target and the traffic to be forwarded in the target forwarding traffic;

[0106] The target port traffic forwarding module 740 is used to forward target port traffic to the matching target outgoing port.

[0107] Optionally, the device may also include:

[0108] The traffic forwarding module is used to receive traffic to be forwarded and forward it to the processing chip so that the processing chip can perform the first network traffic processing on the traffic to be forwarded.

[0109] The traffic replication device based on information carried by the switching chip provided in the embodiments of the present invention can execute the traffic replication method based on information carried by the switching chip provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.

[0110] Example 6

[0111] This invention provides a processing chip, including a programmable processing device and a memory communicatively connected to the programmable processing device; wherein the memory stores a computer program executable by the programmable processing device, the computer program being executed by the programmable processing device to enable the programmable processing device to execute the traffic copying method based on information carried by the switching chip provided in any embodiment of this invention.

[0112] This invention also provides a switching chip, including a processing device and a memory communicatively connected to the processing device; wherein the memory stores a computer program executable by the processing device, the computer program being executed by the processing device to enable the processing device to execute the traffic copying method based on information carried by the switching chip provided in any embodiment of this invention.

[0113] The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the invention described and / or claimed herein.

[0114] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0115] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A traffic replication system based on information carried by a switching chip, characterized in that, The system includes: a processing chip and a switching chip; wherein: The processing chip is used to arbitrate the traffic to be forwarded and determine the carry information set and forwarding information set corresponding to the traffic to be forwarded; wherein, the carry information set is a set of one or more user information that needs to be carried in traffic replication and forwarding; the forwarding information set is a set of port information that needs to be forwarded to after traffic replication. The processing chip is used to add the carrying information set and the forwarding information set to the traffic to be forwarded, generate the target forwarding traffic, and send the target forwarding traffic to the switching chip; The switching chip is used to determine the egress port queue to which the traffic to be forwarded needs to be forwarded based on the forwarding information set, and to determine the target carrying information corresponding to each egress port in the carrying information set. The switching chip is used to generate target port traffic corresponding to each target output port based on the target-carried information and the traffic to be forwarded in the target forwarding traffic; and to forward the target port traffic to the matching target output port.

2. The system according to claim 1, characterized in that, Also includes: processor; The switching chip is also used to receive the traffic to be forwarded and forward the traffic to be forwarded to the processing chip; The processing chip is also used to perform first network traffic processing on the traffic to be forwarded, and when it is determined that the traffic to be forwarded needs second network traffic processing, forward the traffic to be forwarded after the first network traffic processing to the processor. The processor is configured to perform second network traffic processing on the received traffic to be forwarded, and forward the traffic to be forwarded after the second network traffic processing to the processing chip, so that the processing chip can arbitrate the traffic to be forwarded.

3. A method for copying traffic based on information carried by a switching chip, executed by a processing chip in the system described in claim 1 or claim 2, characterized in that, The method includes: Arbitrate the traffic to be forwarded to determine the set of carried information and the set of forwarding information corresponding to the traffic to be forwarded. Add the carrying information set and the forwarding information set to the traffic to be forwarded to generate the target forwarding traffic; The target forwarding traffic is sent to the switching chip so that the switching chip can determine the target port traffic that matches each target output port based on the target forwarding traffic.

4. The method according to claim 3, characterized in that, Before arbitrating forwarded traffic, the following is also included: Receive the traffic to be forwarded sent by the switching chip, and perform first network traffic processing on the traffic to be forwarded; When it is determined that the traffic to be forwarded requires processing by the second network traffic, the traffic to be forwarded after processing by the first network traffic is forwarded to the processor; Receive the traffic to be forwarded that has been processed by the second network traffic and sent by the processor.

5. A traffic replication method based on information carried by a switching chip, executed by a switching chip in the system described in claim 1 or claim 2, characterized in that, The method includes: The receiving and processing chip sends target forwarding traffic containing a carrying information set and a forwarding information set; and determines the outgoing port queue to which the traffic to be forwarded needs to be forwarded based on the forwarding information set. The target carrying information corresponding to each output port is determined from the carrying information set; Based on the target-carrying information and the traffic to be forwarded in the target forwarding traffic, generate target port traffic corresponding to each target outgoing port; Forward the traffic from the target port to the matching target outgoing port.

6. The method according to claim 5, characterized in that, Also includes: The system receives traffic to be forwarded and forwards the traffic to be forwarded to the processing chip, so that the processing chip performs first network traffic processing on the traffic to be forwarded.

7. A traffic replication device based on information carried by a switching chip, executed by a processing chip in the system as described in claim 1 or claim 2, characterized in that, The device includes: The information set determination module is used to arbitrate the traffic to be forwarded and determine the carrying information set and forwarding information set corresponding to the traffic to be forwarded. The target forwarding traffic generation module is used to add the carrying information set and the forwarding information set to the traffic to be forwarded to generate target forwarding traffic; The target forwarding traffic sending module is used to send the target forwarding traffic to the switching chip, so that the switching chip can determine the target port traffic that matches each target output port based on the target forwarding traffic.

8. A traffic replication device based on information carried by a switching chip, performed by the switching chip in the system as described in claim 1 or claim 2, characterized in that, The device includes: The outgoing port queue determination module is used to receive the target forwarding traffic sent by the processing chip, which includes a carrying information set and a forwarding information set; and to determine the outgoing port queue to which the traffic to be forwarded needs to be forwarded based on the forwarding information set. The target carrying information determination module is used to determine the target carrying information corresponding to each output port in the carrying information set. The target port traffic determination module is used to generate target port traffic corresponding to each target output port based on the target-carried information and the traffic to be forwarded in the target forwarding traffic. The target port traffic forwarding module is used to forward the target port traffic to the matching target outgoing port.

9. A processing chip, characterized in that, The processing chip includes: Programmable processing devices; and A memory communicatively connected to the programmable processing device; wherein the memory stores a computer program executable by the programmable processing device, the computer program being executed by the programmable processing device to enable the programmable processing device to perform the method of claim 3 or 4.

10. A switching chip, characterized in that, The switching chip includes: Processing devices; and A memory communicatively connected to the processing device; wherein the memory stores a computer program executable by the processing device, the computer program being executed by the processing device to enable the processing device to perform the method of claim 5 or 6.

Citation Information

Patent Citations

  • System and method for realizing multi-service rule matching and flow replication

    CN108683610A

  • Flow replication method and device based on FPGA (Field Programmable Gate Array) and switch chip

    CN114827034A