Redirection processing method and apparatus, and readable medium
By configuring the target forwarding group in the redirection processing device, the problem of traffic being unable to switch back to the original path when the redirection exit is abnormal is solved, automatic switching and recovery are achieved, and the network's redundancy protection and self-intelligent recovery capabilities are improved.
Patent Information
- Application Number
- PCT/CN2024/141771
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-04-15
- Filing Date
- 2024-12-24
- Publication Date
- 2025-10-23
AI Technical Summary
In the prior art, when an abnormality occurs at the redirection exit, network traffic cannot be automatically switched back to the original forwarding path, resulting in service damage. In addition, the processing is cumbersome, increasing the operation and troubleshooting costs of network management.
By configuring the target forwarding group in the redirection processing device, including the main exit and the backup exit, the main exit is the redirection exit and the backup exit is the traffic escape exit. When the main exit is abnormal, it automatically switches to the backup exit to achieve traffic switching back to the original forwarding path. FRR or ECMP group is used for path switching to ensure business continuity.
It realizes automatic switching and recovery of traffic when the redirection exit is abnormal, reduces packet loss time, and improves the network's redundancy protection capability, traffic escape capability, business reliability and network self-intelligent recovery capability.
Smart Images

Figure CN2024141771_23102025_PF_FP_ABST
Abstract
Description
Redirection processing method, device and readable medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese Patent Application No. 202410464734.9 filed with the China Patent Office on April 15, 2024, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present disclosure relates to, but is not limited to, the field of computer technology. Background Art
[0004] Generally speaking, network traffic redirection is mainly used to change the forwarding exit of network traffic and redirect the original flow direction of network traffic according to some customer's characteristic needs.
[0005] In related technologies, network traffic redirection is primarily handled through methods such as ACL (Access Control Lists) redirection, QoS (Quality of Service) redirection, and policy-based routing redirection. These methods modify the original path of network traffic and redirect it to other exits, such as CPU (Central Processing Unit) ports, other physical ports, other tunnel encapsulations, or mirrored observation ports. However, if the destination exit or link experiences an anomaly, network traffic cannot reach the desired redirection exit. In related technologies, this traffic is typically discarded, resulting in service losses. Summary of the Invention
[0006] The present disclosure provides a redirection processing method, device, and readable medium.
[0007] In the first aspect, an embodiment of the present disclosure provides a redirection processing method, the method comprising: receiving a message flow; sending the message flow through a target forwarding group corresponding to the message flow; the target forwarding group comprises a main exit and a backup exit, the main exit being a redirection exit of the message flow, the backup exit being used to send the message flow when the main exit is abnormal, wherein, when the backup exit serves as a traffic escape exit, the backup exit is the original sending exit of the message flow.
[0008] On the other hand, an embodiment of the present disclosure also provides a redirection processing device, comprising: at least one processor; a memory on which at least one program is stored, and when the at least one program is executed by the at least one processor, the at least one processor implements any redirection processing method described herein; and at least one I / O interface connected between the processor and the memory, configured to implement information interaction between the processor and the memory.
[0009] On the other hand, an embodiment of the present disclosure further provides a computer-readable medium having a computer program stored thereon, wherein when the computer program is executed by a processor, any redirection processing method described herein is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] FIG1 is a first schematic diagram of a redirection processing flow provided by an embodiment of the present disclosure;
[0011] FIG2 is a schematic diagram of a process of sending a message flow through a target forwarding group according to an embodiment of the present disclosure;
[0012] FIG3 is a schematic diagram of a process for generating and associating a target forwarding group according to an embodiment of the present disclosure;
[0013] FIG4 is a schematic diagram of a redirection processing process provided by an exemplary embodiment of the present disclosure;
[0014] FIG5 is a schematic structural diagram of a redirection processing device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0015] Example embodiments will be described more fully hereinafter with reference to the accompanying drawings, but the example embodiments may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete and will fully convey the scope of this disclosure to those skilled in the art.
[0016] As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items.
[0017] The terms used herein are used only to describe specific embodiments and are not intended to limit the present disclosure. As used herein, the singular forms "a," "an," and "the" are also intended to include the plural forms, unless the context clearly indicates otherwise. It will also be understood that when the terms "comprising" and / or "made of" are used in this specification, the presence of the features, wholes, steps, operations, elements, and / or components is specified, but the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or groups thereof is not excluded.
[0018] The embodiments described herein may be described with reference to plan views and / or cross-sectional views, with the aid of idealized schematic diagrams of the present disclosure. Thus, the example illustrations may be modified based on manufacturing techniques and / or tolerances. Therefore, the embodiments are not limited to the embodiments shown in the accompanying drawings, but include modifications of the configurations formed based on the manufacturing process. Therefore, the regions illustrated in the accompanying drawings are schematic in nature, and the shapes of the regions shown in the drawings illustrate specific shapes of the regions of the elements, but are not intended to be limiting.
[0019] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and the present disclosure, and will not be interpreted as having an idealized or overly formal meaning unless expressly defined as such herein.
[0020] In some application scenarios, redirection is a network optimization behavior. For example, traffic is redirected to a better network link or a better tunnel, while the original forwarding path of this traffic is still available and can be used as a traffic escape path. According to relevant technologies, once an abnormality occurs at the redirection exit, the traffic cannot be switched back to the original forwarding path for sending, resulting in damage to the business. If the traffic is to be switched back to the original forwarding path, the corresponding redirection configuration must be deleted. However, such traffic switching cannot be completed automatically, and it cannot be automatically switched back to the redirection exit again after the abnormality at the redirection exit is eliminated. In terms of network management, it will bring more cumbersome operations and unnecessary troubleshooting costs.
[0021] To at least address the above-mentioned issues, an embodiment of the present disclosure provides a redirection processing method, which is applied to a redirection processing device, which is a network device. FIG1 is a schematic diagram of a redirection processing flow provided by an embodiment of the present disclosure. As shown in FIG1 , the redirection processing method may include the following steps S11 and S12.
[0022] In step S11, a message stream is received.
[0023] In step S12, the message flow is sent through the target forwarding group corresponding to the message flow; the target forwarding group includes a primary exit and a backup exit, the primary exit is a redirection exit for the message flow, and the backup exit is used to send the message flow when the primary exit is abnormal. Among them, when the backup exit is used as a traffic escape exit, the backup exit is the original sending exit of the message flow.
[0024] In this step, the target forwarding group corresponding to the packet flow is determined, the target forwarding group is pre-configured in the redirection processing device, and switching between the redirection path and the original forwarding path can be realized. The target forwarding group includes a primary egress and a backup egress. The primary egress is the redirection egress of the packet flow, and the backup egress is the original sending egress of the packet flow in the case of serving as a traffic escape egress. If the primary egress is normal, the packet flow is sent through the primary egress; if the primary egress is abnormal, the packet flow is sent through the backup egress.
[0025] In some application scenarios, the redirection path is a more optimal forwarding path compared with the original forwarding path. The traffic can be redirected to a more optimal network link or a more optimal tunnel, etc. At this time, the original forwarding path of the traffic is still available and can be used as a traffic escape path. Therefore, if there is a traffic escape requirement, the backup egress can be used as a traffic escape egress and configured as the original sending egress of the packet flow. In this way, when the primary egress is abnormal, the traffic is switched back to the original forwarding path, and the packet flow can be forwarded from the original sending egress to ensure the continuity of the service. For example, the primary path of the target forwarding group is the redirection path, and the backup path of the target forwarding group is the original forwarding path of the packet flow as the escape path. The primary and backup paths are placed on any module of the chip that can perform primary and backup switching, and the redirection egress is directed to this module, so that the escape behavior of switching the traffic to the original forwarding path when the redirection egress is abnormal can be completed.
[0026] In some embodiments, the target forwarding group can be a FRR (Fast Reroute) group or an ECMP (Equal-Cost Multi-Path Routing) group.
[0027] If the target forwarding group is a FRR group, the priority of the primary egress in the FRR group is higher than that of the backup egress. Therefore, after the packet flow enters the FRR group, the packet flow is preferentially sent through the primary egress of the FRR group. However, in the case that the primary egress of the FRR group is abnormal, the primary egress of the FRR group is closed, so that the primary egress cannot send the packet flow. In this way, the packet flow can be sent through the backup egress of the FRR group, realizing the switching of the primary and backup egresses of the FRR group. In the case that the backup egress of the FRR group serves as a traffic escape egress, the backup egress is configured as the original sending egress of the packet flow, so that the received packet flow is forwarded from the original sending egress.
[0028] If the target forwarding group is an ECMP group, the ECMP HASH algorithm controls the traffic to be sent out only from one of the egresses of the ECMP group, the packet flow is sent out from the primary egress, and when the primary egress is abnormal, the ECMP group deletes the primary egress, the packet flow can only be sent through the backup egress of the ECMP group, thereby realizing switching of the primary and backup egresses of the ECMP group. In the case where the backup egress of the ECMP group is used as a traffic escape egress, the backup egress is configured as the original sending egress of the packet flow, thereby forwarding the received packet flow from the original sending egress.
[0029] The redirection processing method provided by the embodiments of the present disclosure includes: receiving a packet flow, and sending the packet flow through a target forwarding group corresponding to the packet flow; the target forwarding group includes a primary egress and a backup egress, the primary egress is a redirection egress of the packet flow, and the backup egress is used to send the packet flow in the case where the primary egress is abnormal; in the case where the primary egress of the target forwarding group is abnormal and the backup egress is used as a traffic escape egress, the backup egress is the original sending egress of the packet flow. In the case where the primary egress of the target forwarding group is abnormal and the backup egress is used as a traffic escape egress, the embodiments of the present disclosure can return the network traffic to the original sending egress before redirection, realize automatic switching of the traffic to escape, avoid packet loss, prevent service damage, and improve the redundancy protection capability of the network, the escape capability of the traffic, the service reliability, the stability of the overall network, and the self-intelligent recovery capability of the network.
[0030] FIG. 2 is a flowchart of sending a packet flow through a target forwarding group provided by the embodiments of the present disclosure. In some embodiments, as shown in FIG. 2, the step of sending the packet flow through the target forwarding group corresponding to the packet flow (i.e., step S12) can include the following steps S121 and S122.
[0031] In step S121, the packet characteristics of the packet flow are obtained.
[0032] The packet characteristics refer to the characteristic information of a type of packet rather than the characteristic information of a certain packet. For example, the packet characteristics can be the header information of the packet, including but not limited to: MAC (Media Access Control Address) address, IP (Internet Protocol Address) address, and the like.
[0033] In step S122, in the case where the packet characteristics hit a preset redirection matching entry, the packet flow is sent through a target forwarding group associated with the preset redirection matching entry.
[0034] The redirection matching entry can include, but is not limited to, a redirection matching entry of a matching policy such as an ACL, QoS, policy routing, etc. In the embodiment of the present disclosure, the redirection matching entry is associated with a target forwarding group in advance. In this step, when the packet flow matches the pre-configured redirection matching entry according to the matching policy, i.e., the packet characteristics of the packet flow match the redirection matching entry, the target forwarding group associated with the redirection matching entry is determined, and the packet flow is sent through the target forwarding group.
[0035] In some embodiments, the target forwarding group is generated and the association between the redirection matching entry and the target forwarding group is established in the initialization phase. FIG. 3 is a flowchart of generating and associating a target forwarding group according to an embodiment of the present disclosure. As shown in FIG. 3, before receiving the packet flow, the method can include the following steps S31-S33.
[0036] In step S31, the redirection egress of the packet flow is obtained, and the primary egress is configured according to the redirection egress.
[0037] The redirection egress of the packet flow is redirection configuration information, which is configured by the user. When the user configures the redirection information of a certain flow, the corresponding ACL, QoS, policy routing, etc. redirection matching entry can be generated according to the packet characteristics of the flow, and the primary egress of the target forwarding group is configured according to the redirection egress. If the target forwarding group is an FRR group, the primary next hop of the FRR group is configured as the redirection egress; if the target forwarding group is an ECMP group, the primary egress is configured as the first position in the ECMP equivalent route, and the first position is the redirection egress.
[0038] It should be noted that the primary egress and the backup egress include, but are not limited to, a port, a VLAN (Virtual Local Area Network), and a tunnel if tunnel processing is required. If redirection to the CPU is required, the redirection egress can be a CPU port.
[0039] In step S32, the original sending egress of the packet flow is determined, and the backup egress is configured according to the original sending egress.
[0040] In this step, the original sending egress of the packet flow can be determined according to a preset forwarding table entry, a copy of the original sending egress is made, and the copied original sending egress is configured to the backup egress of the target forwarding group.
[0041] The preset forwarding table item is an original table item of traffic forwarding, and is preconfigured in the redirection processing device. In the non-redirection message forwarding process, the sending outlet of the message flow is determined by querying the forwarding table item to realize normal forwarding of the message flow. In the embodiment of the present disclosure, the original sending outlet of the message flow can be determined by querying the forwarding table item, and the original sending outlet is configured in the target forwarding group as a backup outlet, so that the traffic can be switched back to the original forwarding path after redirection failure.
[0042] If the target forwarding group is an FRR group, the backup next hop of the FRR group is configured as the original sending outlet of the message flow; if the target forwarding group is an ECMP group, the backup outlet is configured as the second position in the ECMP equivalent route, and the second position is the original sending outlet of the message flow.
[0043] In the embodiment of the present disclosure, the main path of the target forwarding group is specified by the configured redirection outlet, and the backup path of the target forwarding group is obtained based on the redirection matching item in the chip table (i.e. the forwarding table item), and then the main and backup paths are set on any module that can make main and backup switching on the chip, and the redirection outlet is pointed to the module.
[0044] In step S33, the preset redirection matching item is associated with the target forwarding group.
[0045] After the configuration of the main outlet and the backup outlet is completed, the target forwarding group can be generated. After the target forwarding group is generated, the preset redirection matching item needs to be pointed to the target forwarding group, that is, the preset redirection matching item is associated with the target forwarding group. In this way, when the message flow is received, the redirection matching item can send the message flow into the target forwarding group for message forwarding processing.
[0046] In some embodiments, the redirection processing method further includes the following steps: in the case that the original sending outlet of the message flow in the preset forwarding table item is updated, the backup outlet of the target forwarding group is configured as the updated original sending outlet, that is, the configuration information of the backup outlet of the target forwarding group is synchronously updated according to the updated original sending outlet.
[0047] In the scenario where there is an escape requirement, the backup outlet of the target forwarding group is the original sending outlet of the message flow. If the original sending path of the forwarding message flow is changed due to protocol calculation, correspondingly, the preset forwarding table item is updated, that is, the original sending outlet is updated. Then, the information in the target forwarding group is synchronously updated, the backup outlet of the target forwarding group is configured as the updated original sending outlet, so as to ensure that the backup path of the target forwarding group is consistent with the network path calculation.
[0048] In order to be applicable to the redirection configuration only for changing the forwarding path of the packet flow, without the need of the escape scenario, in the embodiment of the present disclosure, the packet flow can be discarded by configuring the backup egress of the target forwarding group. Therefore, in some embodiments, in the case that the backup egress is the non-flow escape egress, the backup egress of the target forwarding group is the black hole egress. That is, in the case without the flow escape requirement, if the primary egress of the target forwarding group is abnormal, since the backup egress of the target forwarding group is the black hole egress, the packet flow is directly discarded, and no longer switched back to the original sending path for forwarding.
[0049] In some embodiments, the redirection processing method can further include the following steps: in the process of sending the packet flow through the backup egress of the target forwarding group, in response to the primary egress of the target forwarding group recovering to normal, sending the packet flow through the primary egress of the target forwarding group.
[0050] If the target forwarding group is the FRR group, if the FRR group detects that the primary egress recovers to normal, the primary egress is enabled. Since the processing priority of the primary egress of the FRR group is higher than that of the backup egress, the packet flow can be forwarded through the primary egress of the FRR group. If the target forwarding group is the ECMP group, if the ECMP group detects that the primary egress recovers to normal, the primary egress configured as the first position is added in the ECMP group. Since the ECMP HASH algorithm controls the traffic to be sent out from only one egress of the ECMP group, the packet flow can be forwarded through the primary egress of the ECMP group.
[0051] After the primary egress of the target forwarding group recovers to normal, the abnormality of the primary path of the target forwarding group is excluded, the traffic can be automatically switched back to the redirection path for forwarding again, the network self-intelligence troubleshooting is realized, and the maintainability and self-intelligence recovery capability of the overall network are improved.
[0052] The embodiment of the present disclosure only needs to consume the resources of the target forwarding group and two egress resources, that is, the redirection egress and the original sending egress can be bundled, without any processing of the original forwarding entry, the traffic can be quickly switched back when the redirection egress is abnormal, and the traffic can be quickly switched when the redirection egress recovers to normal, the whole process can be automatically completed without manual intervention, and the redundancy protection capability of the network, the flow escape capability, the maintainability and the self-intelligence recovery capability of the network can be improved.
[0053] In some embodiments, the redirection processing method can further include the following steps: in the case of updating the redirection egress of the packet flow, updating the primary egress of the target forwarding group to the updated redirection egress, that is, updating the configuration information of the primary egress of the target forwarding group according to the updated redirection egress information. The redirection egress update triggers the primary egress update of the target forwarding group, that is, if the redirection egress changes, the primary path for forwarding the redirected traffic also changes accordingly, ensuring that the primary path of the target forwarding group is consistent with the user configuration.
[0054] In some embodiments, the redirection processing method can further include the following steps: in the case of deleting the redirection egress of the packet flow, deleting the target forwarding group. It should be noted that in this case, the redirection matching entry also needs to be deleted. Since the primary egress of the target forwarding group and the redirection matching entry are configured according to the redirection egress, in the case of deleting the redirection egress, it means that traffic redirection is no longer performed, and the redirection matching entry and the target forwarding group for implementing traffic redirection are deleted accordingly.
[0055] After deleting the redirection matching entry and the target forwarding group, the original sending port of the packet flow is determined according to the preset forwarding table entry, and the packet flow is sent through the original sending port. When the redirection egress is deleted, only the corresponding redirection matching entry and the target forwarding group need to be directly deleted in the redirection processing device, while the forwarding table entry for implementing traffic forwarding on the original sending path is still retained. Deleting the redirection matching entry and the corresponding target forwarding group does not have any impact on the forwarding table entry, therefore, the traffic can be directly switched back to the original forwarding path for forwarding.
[0056] It should be noted that in the case where there is no traffic escape requirement, the backup egress of the target forwarding group is a black hole egress, and the following functions can also be implemented: when the redirection egress returns to normal, the traffic can be switched back to the redirection path for forwarding; and after deleting the redirection matching entry and the target forwarding group, the traffic can be switched to the original forwarding path for forwarding; and after the redirection egress is updated, the primary egress of the target forwarding group is updated accordingly, and the traffic can be forwarded on the updated redirection path.
[0057] To clearly illustrate the technical solutions of the embodiments of the present disclosure, the following will take the forwarding group FRR as an example to illustrate the solutions of the present disclosure in detail in combination with FIG. 4.
[0058] As shown in FIG. 4, the port A of the redirection processing device is the receiving port of the traffic S (i.e., the packet flow), the port C of the redirection processing device is the original sending port of the traffic S, and the user configures the redirection configuration information of the traffic S, which includes the packet characteristics of the traffic S and the redirection egress, wherein the redirection egress is the port B of the redirection processing device.
[0059] In the initialization phase, the redirection processing device forms the FRR group according to the redirection configuration information and the original forwarding table entry of the traffic S, and the configuration process includes the following steps 101-104.
[0060] In step 101, the redirection processing device generates a redirection traffic matching entry according to the packet characteristics of the traffic S, i.e., a redirection matching entry, which can be an ACL, QoS, policy routing, etc. matching policy redirection matching entry.
[0061] In step 102, the redirection processing device configures the next hop of the primary path exit of the FRR group according to the redirection exit of the traffic S, and points it to port B.
[0062] In step 103, the redirection processing device queries the original forwarding table entry to find the original forwarding entry of the traffic S, determines the exit information of the original forwarding entry, and configures the next hop of the backup path exit of the FRR group according to the exit information, and points it to port C.
[0063] In step 104, the redirection processing device sets the exit of the redirection matching entry to the FRR group, thereby associating the redirection matching entry with the FRR group.
[0064] In the traffic forwarding phase, the traffic redirection steps include 201-203.
[0065] In step 201, in the case of an abnormality on port B, the FRR group senses that the primary exit is abnormal, and then directly closes the primary exit, thereby switching the forwarding path of the traffic S from the redirection path to the original forwarding path.
[0066] In step 202, port A receives the traffic S, the traffic S hits the redirection matching entry, and is directed to the backup exit through the FRR group, i.e., to the original sending port (i.e., port C).
[0067] In step 203, the traffic S is sent through port C.
[0068] As can be seen from steps 201-203, in the case of an abnormality on the redirection exit port B, the forwarding path of the traffic S is switched back to the original forwarding path from the redirection path.
[0069] Further, the traffic redirection steps can also include the following steps 204-206.
[0070] In step 204, in the case of abnormality recovery of port B, the FRR group senses that the primary exit is normal and enables the primary exit.
[0071] In step 205, the traffic S continues to hit the redirection matching entry, the traffic S enters the FRR group, at this time, the primary and backup egresses can both forward the traffic S, and since the primary egress of the FRR group has a higher priority, the traffic S is sent to port B through the primary egress.
[0072] In step 206, the traffic S is sent through port B.
[0073] As can be seen from steps 204-206, in the case of abnormal recovery of the redirection egress port B, the forwarding path of the traffic S can be switched again from the original forwarding path to the redirection path.
[0074] Through the above steps 201-206, the traffic S can be switched back and forth between the user-configured redirection path and the original sending path, and during the switching back and forth, the switching speed can be guaranteed, and the service damage can be as low as milliseconds. At the same time, since the original forwarding path of the traffic S is not modified during the redirection processing, when the redirection configuration is deleted, the traffic S can be switched to the original forwarding path again, and the same millisecond-level switching effect can be achieved.
[0075] The embodiment of the disclosure provides a switching scheme for data flow redirection. When a network device performs data flow redirection, if an abnormality occurs in a redirection destination port, network traffic can be switched back to a forwarding destination port before the traffic is redirected, the traffic can be automatically switched back to an original forwarding path, and when the redirection destination port recovers, the traffic can be switched to the original redirection destination port again, so that the traffic is automatically switched back to the redirection path. In some application scenarios, an escape channel for the traffic can be guaranteed, automatic switching escape of the traffic can be implemented, and the redundancy protection capability of the network, the escape capability of the traffic, the stability of the network, the service reliability, and the self-intelligent recovery capability of the network can be improved.
[0076] The embodiment of the disclosure uses a combination of a target forwarding group and egress information, writes a redirection egress into a primary egress of the target forwarding group, and writes an original sending egress into a backup egress of the target forwarding group, and then configures the forwarding group as a redirection egress through ACL, QoS, policy routing, and the like, so that the primary and backup processing of the forwarding path is completed. In this process, the original forwarding table of the traffic is not deleted or added, and only the egress of the original forwarding table needs to be synchronized.
[0077] The embodiments of the present disclosure retain the matching policies of the redirected ACL, QoS, policy routing, etc., and the matching policies can still correctly match the traffic that needs to be redirected. Meanwhile, the embodiments of the present disclosure also retain the original forwarding table entry of the traffic before the redirection. Therefore, in the redirection processing process, the original forwarding table entry is not affected by the redirection processing, and only the target forwarding group information needs to be directly synchronized and updated when the original traffic forwarding configuration is updated or the redirection configuration is updated. Therefore, when the target forwarding group egress switches and switches back, and the redirection rule is deleted to reuse the original forwarding table entry to forward the traffic, the traffic can be switched in time, the packet loss time is greatly reduced, and the switching and switching back of the traffic forwarding path can be automatically implemented following the redirection egress exception and recovery. Compared with the redirection implementation manner in the related art, the embodiments of the present disclosure have great improvement in network self-intelligent troubleshooting and intelligent traffic escape.
[0078] The embodiments of the present disclosure can be applied to a scenario of adjusting and optimizing network traffic using redirection technology, and are especially suitable for a use scenario that has a demand for redirecting traffic back to the original forwarding path, and can be applied to various telecom-level networks.
[0079] The embodiments of the present disclosure also provide a redirection processing apparatus, as shown in FIG. 5, including: at least one processor 501; a memory 502, having at least one program stored thereon, when the at least one program is executed by the at least one processor, causing the at least one processor to implement the redirection processing method provided by the foregoing embodiments; and at least one I / O interface 503, configured to implement information interaction of the processor and the memory.
[0080] The processor 501 is a device with data processing capability, including but not limited to a central processing unit (CPU) and the like; the memory 502 is a device with data storage capability, including but not limited to a random access memory (RAM, more specifically, SDRAM, DDR, etc.), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), and a flash memory (FLASH); and the I / O interface (read-write interface) 503 is connected between the processor 501 and the memory 502, and can implement information interaction of the processor 501 and the memory 502, including but not limited to a data bus (Bus) and the like.
[0081] In some embodiments, the processor 501, the memory 502, and the I / O interface 503 are connected with each other through a bus, and further connected with other components of a computing device.
[0082] The embodiments of the present disclosure also provide a computer readable medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the redirection processing method provided by the foregoing embodiments.
[0083] Those of ordinary skill in the art will realize and understand, all or certain steps in the methods disclosed above and the functional modules / units in the devices can be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementation, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component can have multiple functions, or one function or step can be performed by several physical components in cooperation. Certain physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transitory media). As is well known to those of ordinary skill in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, it is well known to those of ordinary skill in the art that communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and can include any information delivery media.
[0084] Example embodiments have been disclosed herein and, although the use of specific terms is expressly used herein, they are intended in a generic sense only and are not intended to limit the scope of the present application. In some instances, it can be clear to those of ordinary skill in the art that features, characteristics and / or elements described in connection with a particular embodiment can be used in conjunction with other embodiments, unless explicitly stated otherwise. Accordingly, those of ordinary skill in the art will recognize that the foregoing description and examples have been presented for the purposes of illustration and example only, and not limitation, and that various changes in form and detail can be practiced within the scope of the appended claims.
Claims
1. A redirection processing method, comprising: receiving a packet flow; sending the packet flow through a target forwarding group corresponding to the packet flow; the target forwarding group comprising a primary egress and a backup egress, the primary egress being a redirection egress of the packet flow, the backup egress being used to send the packet flow in case of abnormality of the primary egress, wherein in case that the backup egress is a traffic escape egress, the backup egress is an original sending egress of the packet flow.
2. The method of claim 1, wherein, the sending the packet flow through the target forwarding group corresponding to the packet flow comprises: acquiring a packet feature of the packet flow; in case that the packet feature hits a preset redirection matching entry, sending the packet flow through a target forwarding group associated with the preset redirection matching entry.
3. The method of claim 1, wherein, Before the receiving the packet flow, the method further comprises: acquiring a redirection egress of the packet flow, and configuring the primary egress according to the redirection egress; determining an original sending egress of the packet flow, and configuring the backup egress according to the original sending egress; associating a preset redirection matching entry with the target forwarding group.
4. The method of claim 3, wherein, The determining the original sending egress of the packet flow comprises: determining the original sending egress of the packet flow according to a preset forwarding table entry. 5.The method of claim 4, further comprising: in case that the original sending egress of the packet flow is updated in the preset forwarding table entry, configuring the backup egress of the target forwarding group as the updated original sending egress.
6. The method of claim 1, wherein, in case that the backup egress is a non-traffic escape egress, the backup egress is a black hole egress. 7.The method of claim 1 or 6, further comprising: in the process of sending the packet flow through the backup egress of the target forwarding group, in response to the primary egress of the target forwarding group recovering, sending the packet flow through the primary egress of the target forwarding group. 8.The method of claim 1 or 6, further comprising: in case that a redirection egress of the packet flow is updated, updating the primary egress of the target forwarding group as the updated redirection egress. 9.The method of claim 1 or 6, further comprising: in case that the redirection egress of the packet flow is deleted, deleting the target forwarding group. 10.A redirection processing apparatus, comprising: at least one processor; a memory having at least one program stored thereon, when the at least one program is executed by the at least one processor, causing the at least one processor to implement the redirection processing method according to any one of claims 1-9; at least one I / O interface configured to implement information interaction between the processor and the memory.
11. A computer readable medium having stored thereon a computer program, wherein, The computer program is executed by the processor to implement the redirection processing method according to any one of claims 1-9.
Citation Information
Patent Citations
Data transmission method, apparatus and system in VPLS network
CN101340351A
Message transmission method, device and equipment
CN116074243A
Network path detection method and system and computer equipment
CN117376175A
Traffic switching using multi-dimensional packet classification
US20030161303A1