Traffic forwarding method, network device and storage medium
By using the fill value of the adjacent segment identifier in the network device to indicate the traffic processing method, the problem that the existing technology is incompatible with different business requirements is solved, and the compatibility of the transmission network with different business requirements and the improvement of communication efficiency are achieved.
Patent Information
- Application Number
- CN202210006357.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-04
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2042-01-04
AI Technical Summary
Existing technologies are not compatible with different business requirements, resulting in inconsistent processing methods and service quality for the same business on different devices.
By introducing fill values for adjacency segment identifiers in network devices, the network is instructed how to handle traffic carried by a failed link, thereby controlling the processing actions of forwarding nodes according to service SLA requirements.
It achieves the compatibility of the transmission network with different business requirements and improves communication efficiency and reliability.
Smart Images

Figure CN116436848B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a traffic forwarding method, a network device, and a computer-readable storage medium. Background Art
[0002] A Layer 3 bundle port corresponds to multiple Layer 2 member links. Due to different transmission paths and other factors, different Layer 2 member links can have significant differences in latency, jitter, packet loss rate, and reliability. As a result, the service quality of services carried on different member links may vary.
[0003] In related technologies, when traffic forwarding devices such as routers and switches detect a failure on the link that is sending traffic to be forwarded, they typically select a new alternative link for forwarding, or discard the traffic, based on the device's initial settings. Different initial settings on different devices result in different processing of traffic corresponding to the same service, resulting in varying quality of service for the same service.
[0004] Based on the above traffic forwarding solution, during the process of conceiving and implementing this application, the inventor discovered that there is at least a defect that the relevant technical solution is not compatible with different business requirements.
[0005] The above content is only used to assist in understanding the technical solution of the present invention and does not constitute an admission that the above content is prior art. Summary of the Invention
[0006] The main purpose of the present invention is to provide a traffic forwarding method, a network device and a computer-readable storage medium, aiming to achieve the compatibility of transmission services with different business requirements.
[0007] To achieve the above object, the present invention provides a traffic forwarding method, which includes the following steps:
[0008] When a link failure occurs on a target Layer 2 member link, a fill value of an adjacency segment identifier corresponding to traffic to be forwarded is determined;
[0009] When the fill value is the first value, sending the traffic to be forwarded through the alternative Layer 2 member link; or
[0010] When the filling value is the second value, the traffic to be forwarded is discarded.
[0011] Optionally, the traffic forwarding method further includes:
[0012] determining the target Layer 2 member link according to the adjacency segment identifier;
[0013] Determining whether a link failure exists on the target Layer 2 member link;
[0014] When there is no link failure on the target layer-2 member link, the to-be-forwarded traffic is forwarded through the target layer-2 member link.
[0015] Optionally, before the step of sending the traffic to be forwarded through the alternative Layer 2 member link, the method further includes:
[0016] Determine the fault-free link among the Layer 2 member links corresponding to the Layer 3 bundled ports.
[0017] The candidate layer 2 member link is selected from the fault-free links.
[0018] Optionally, the traffic forwarding method further includes:
[0019] Announce the adjacent segment identifier of the layer 2 member link in the layer 3 bundle port, including the adjacent segment identifier of the layer 2 member link with the first value and the second value as the fill value, so that when the network element receives the traffic to be forwarded, it can determine the traffic processing method according to the declaration content and the adjacent segment identifier corresponding to the traffic to be forwarded.
[0020] Optionally, the adjacent segment identifier of the layer 2 member link is an adjacent segment identifier of the layer 2 member link used to declare the layer 2 member link in the layer 3 bundle interface in RFC8668.
[0021] To achieve the above object, the present invention provides a traffic forwarding method, which includes the following steps:
[0022] The upper-layer system obtains the service level agreement (SLA) requirements and collects the adjacency segment identifiers of the Layer 2 member links in the Layer 3 bundle interface of each network element based on the extended BGP-LS.
[0023] The network path is programmed based on the service SLA requirement and the adjacent segment identifier, so that the network forwards traffic corresponding to the service based on the programming result.
[0024] Optionally, the adjacent segment identifier of the layer 2 member link in the layer 3 bundle port collected by the extended BGP-LS includes an adjacent segment identifier whose fill value corresponds to a first value and a second value; when programming the network path, the adjacent segment identifier whose fill value corresponds to the first value or the second value is selected according to the service SLA requirements.
[0025] In addition, to achieve the above-mentioned purpose, the present invention also provides a network device, which includes a memory, a processor, and a traffic forwarding control program stored on the memory and runnable on the processor. When the traffic forwarding control program is executed by the processor, the steps of the traffic forwarding method described above are implemented.
[0026] In addition, to achieve the above-mentioned object, the present invention further provides a network device, comprising:
[0027] An acquisition module, configured to determine a fill value of an adjacency segment identifier corresponding to traffic to be forwarded when a link failure occurs on a target layer 2 member link;
[0028] The execution module is used to send the traffic to be forwarded through the alternative Layer 2 member link when the filling value is a first value; or to discard the traffic to be forwarded when the filling value is a second value.
[0029] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a traffic forwarding control program is stored. When the traffic forwarding control program is executed by a processor, the steps of the traffic forwarding method described above are implemented.
[0030] The embodiments of the present invention propose a traffic forwarding method, network device, and computer-readable storage medium. When a link failure occurs on a target Layer 2 member link, the method determines the fill value of the adjacent segment identifier corresponding to the traffic to be forwarded. When the fill value is a first value, the traffic to be forwarded is sent via an alternative Layer 2 member link; or when the fill value is a second value, the traffic to be forwarded is discarded. Since the fill value of the adjacent segment identifier can be used to instruct the network on how to handle the traffic carried by the failed Layer 2 member link, it is possible to control the processing actions of each forwarding node according to the SLA corresponding to the traffic, thereby making the transmission network compatible with different business requirements. This improves the compatibility of the transmission network with different business requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present invention;
[0032] Figure 2 A flow chart of an embodiment of a traffic forwarding method of the present invention;
[0033] Figure 3 A flow chart of another embodiment of the traffic forwarding method of the present invention;
[0034] Figure 4 This is a simplified modular diagram of a network device involved in an embodiment of the present invention.
[0035] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION
[0036] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0037] A Layer 3 bundle port corresponds to multiple Layer 2 member links. Due to different transmission paths and other factors, different Layer 2 member links can have significant differences in latency, jitter, packet loss rate, and reliability. As a result, the service quality of services carried on different member links may vary.
[0038] In related technologies, when a traffic forwarding device such as a router or switch detects a failure in the transmission link corresponding to the traffic to be forwarded, it generally selects a new alternative link for forwarding based on the initial settings of the device, or discards the traffic.
[0039] Based on the above traffic forwarding solution, during the process of conceiving and implementing this application, it was found that the relevant technical solution had at least one defect of being incompatible with different business requirements.
[0040] To improve compatibility with different service requirements, embodiments of the present invention provide a traffic forwarding method, a network device, and a computer-readable storage medium. The method includes the following steps:
[0041] When a link failure occurs on a target Layer 2 member link, a fill value of an adjacency segment identifier corresponding to traffic to be forwarded is determined;
[0042] When the fill value is the first value, sending the traffic to be forwarded through the alternative Layer 2 member link; or
[0043] When the filling value is the second value, the traffic to be forwarded is discarded.
[0044] Because the fill value of the adjacency segment identifier can be used to instruct the network how to handle the traffic carried by the failed Layer 2 member link, it is possible to control the processing actions of each forwarding node based on the SLA corresponding to the traffic, thereby making the transmission network compatible with different business requirements. This improves the compatibility of the transmission network with different business requirements.
[0045] The content to be protected by the claims of the present invention will be described in detail below with reference to the accompanying drawings.
[0046] like Figure 1 As shown, Figure 1 It is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present invention.
[0047] The terminal in the embodiment of the present invention may be a network device, such as a routing device or a switch.
[0048] like Figure 1As shown, the terminal may include: a processor 1001, such as a CPU, a memory 1003, and a communication bus 1002. Communication bus 1002 is used to enable communication between these components. Memory 1003 may be a high-speed RAM memory or a non-volatile memory, such as a disk drive. Memory 1003 may also optionally be a storage device independent of processor 1001.
[0049] Those skilled in the art will understand that Figure 1 The terminal structure shown in the figure does not constitute a limitation to the terminal, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0050] like Figure 1 As shown, the memory 1003 as a computer storage medium may include an operating system and a traffic forwarding control program.
[0051] exist Figure 1 In the terminal shown, the processor 1001 can be used to call the traffic forwarding control program stored in the memory 1003 and perform the following operations:
[0052] When a link failure occurs on a target Layer 2 member link, a fill value of an adjacency segment identifier corresponding to traffic to be forwarded is determined;
[0053] When the fill value is the first value, sending the traffic to be forwarded through the alternative Layer 2 member link; or
[0054] When the filling value is the second value, the traffic to be forwarded is discarded.
[0055] Furthermore, the processor 1001 may call the traffic forwarding control program stored in the memory 1003 and perform the following operations:
[0056] determining the target Layer 2 member link according to the adjacency segment identifier;
[0057] Determining whether a link failure exists on the target Layer 2 member link;
[0058] When there is no link failure on the target layer-2 member link, the to-be-forwarded traffic is forwarded through the target layer-2 member link.
[0059] Furthermore, the processor 1001 may call the traffic forwarding control program stored in the memory 1003 and perform the following operations:
[0060] Determine the fault-free link among the Layer 2 member links corresponding to the Layer 3 bundled ports.
[0061] The candidate layer 2 member link is selected from the fault-free links.
[0062] Furthermore, the processor 1001 may call the traffic forwarding control program stored in the memory 1003 and perform the following operations:
[0063] Announce the adjacent segment identifier of the layer 2 member link in the layer 3 bundle port, including the adjacent segment identifier of the layer 2 member link with the first value and the second value as the fill value, so that when the network element receives the traffic to be forwarded, it can determine the traffic processing method according to the declaration content and the adjacent segment identifier corresponding to the traffic to be forwarded.
[0064] In some embodiments, the processor 1001 may also be configured to call a traffic forwarding control program stored in the memory 1003 and perform the following operations:
[0065] The upper-layer system obtains the service level agreement (SLA) requirements and collects the adjacency segment identifiers of the Layer 2 member links in the Layer 3 bundle interface of each network element based on the extended BGP-LS.
[0066] The network path is programmed based on the service SLA requirement and the adjacent segment identifier, so that the network forwards traffic corresponding to the service based on the programming result.
[0067] A Layer 3 bundle interface consists of multiple Layer 2 member links. Due to different transmission paths and other factors, different Layer 2 member links can have significant differences in latency, jitter, packet loss, and reliability. As a result, the service quality of services carried on different member links varies.
[0068] In actual applications, when a Layer 2 member link designated for forwarding traffic in a Layer 3 bundle interface fails, there are generally two processing behaviors. First, the carried traffic should be discarded when a failure occurs. Then, after the upper-layer system (network management, controller, etc.) or the head node router senses the failure, it recalculates the path that meets the SLA (Service Level Agreement) requirements corresponding to the traffic to be forwarded and sends it to the relevant devices in the network for traffic forwarding. Second, when the traffic carried in the failed Layer 2 member link is more sensitive to packet loss and requires rapid switching, but has low requirements for other SLAs such as latency and path, the carried traffic should be forwarded to other available Layer 2 member links in the Layer 3 bundle interface when a failure occurs. The selection of the Layer 2 member link for forwarding traffic can still use the existing hash algorithm.
[0069] Because the first behavior may cause a large amount of packet loss before the new path takes effect, and the second behavior cannot meet the strict SLA requirements of the forwarded traffic, such as latency and path, different measures need to be set on different devices to adapt to various service scenarios.
[0070] However, in related technologies, when a Layer 2 member link used to forward traffic fails, how the device handles the traffic is determined by the device's initial settings. Due to varying production standards, the initial settings of devices manufactured by different manufacturers also vary. Consequently, related technical solutions are incompatible with diverse service requirements.
[0071] To address the aforementioned shortcomings of the existing technology, embodiments of the present invention provide a traffic forwarding method for network devices. This method uses an extended flag bit in an adjacency identifier to instruct the network device on how to handle traffic to be forwarded when a Layer 2 member link carrying the traffic fails. This allows the network device to accommodate diverse service requirements, improving communication efficiency and reliability.
[0072] The following is an explanation of the content claimed in the claims of the present invention through specific exemplary schemes, so that those skilled in the art can better understand the scope of protection of the claims of the present invention. It should be understood that the following exemplary schemes do not limit the scope of protection of the present invention, but are only used to explain the present invention.
[0073] For example, referring to Figure 2 In one embodiment of the traffic forwarding method of the present invention, the traffic forwarding method includes the following steps:
[0074] Step S1: When a link failure occurs on a target Layer 2 member link, a fill value of an adjacency segment identifier corresponding to traffic to be forwarded is determined;
[0075] Step S2: when the fill value is the first value, sending the traffic to be forwarded through the alternative Layer 2 member link; or
[0076] Step S3: When the filling value is the second value, discard the traffic to be forwarded.
[0077] RFC8668 Advertising Layer 2Bundle Member in ISIS extends the ISIS protocol by introducing new TLVs (L2Bundle Member Attributes). This allows ISIS to advertise the attributes of Layer 2 member links in a Layer 3 bundle interface when advertising the Layer 3 logical topology, including the adjacency segment identifiers (Adj-SIDs) of the Layer 2 member links. This allows programmatic control of the Layer 2 member links in a Layer 3 bundle interface during network programming.
[0078] The L2 Bundle Member Adjacency Segment Identifier Sub-TLV, defined in RFC8668, is used to advertise the adjacency segment identifier of a Layer 2 member link in a Layer 3 bundle. The format is as follows:
[0079] Type:41(1octet)
[0080] Length::variable(1octet)
[0081] Flags:1-octet field of the following flags:
[0082]
[0083] Weight:1 octet
[0084] L2 Bundle Member Adj-SID Descriptors: SID, Index or Label according to the V-and L-Flags
[0085] Based on the above definition, bits 6 and 7 in the Flags field of the L2 Bundle Member Adjacency Segment Identifier Sub-TLV are reserved. Therefore, either of these reserved bits can be defined as bit H, which is used to identify the processing action required for the traffic to be forwarded.
[0086] In this embodiment, the NE allocates two adjacency segment identifiers from the adjacency segment identifier space for each Layer 2 member link in a Layer 3 bundle interface: one corresponding to the H bit (a flag bit selected from the reserved bits) being 0, and one corresponding to the H bit being 1. When the NE announces the adjacency segment identifiers of the Layer 2 member links in a Layer 3 bundle interface through ISIS, it carries two L2 BundleMember Adjacency Segment Identifier Sub-TLVs, simultaneously announcing the adjacency segment identifiers with the H bit set to 0 and the H bit set to 1.
[0087] It should be noted that, during the declaration process, the adjacent segment identifier of the layer 2 member link is the adjacent segment identifier of the layer 2 member link in the layer 3 bundle port in RFC8668. The fill value of the adjacent segment identifier of the layer 2 member link is the fill value of the preset flag bit in the Flags field.
[0088] When a network device (forwarding node) obtains the traffic to be forwarded, it can first determine the target Layer 2 member link based on the adjacent segment identifier corresponding to the traffic to be forwarded, and then determine whether there is a link failure in the target Layer 2 member link. When there is no link failure in the target Layer 2 member link, the traffic to be forwarded is forwarded through the target Layer 2 member link.
[0089] It should be noted that the target Layer 2 member link refers to the traffic-carrying link specified in the neighboring stage identifier of the traffic to be forwarded. This refers to the Layer 2 member link that will carry the traffic when it reaches the current network device. Therefore, after determining the target Layer 2 member link, the network device can first determine whether the target Layer 2 member link is faulty. If not, the traffic to be forwarded is forwarded directly through the target Layer 2 member link.
[0090] When a failure is detected on a target Layer 2 member link, a fill value of the adjacency segment identifier corresponding to the traffic to be forwarded can be obtained, so that the fill value can be used to instruct the network device on how to handle the response traffic when a failure is detected on the target Layer 2 member link.
[0091] Optionally, when the fill value is a first value, the traffic to be forwarded is sent through the alternative Layer 2 member link; or when the fill value is a second value, the traffic to be forwarded is discarded. The first value and the second value are used to represent numerical differences, and this embodiment does not limit the specific values of the first value and the second value.
[0092] Optionally, in some implementation schemes, when the network device detects that the fill value is a first value, it first determines the fault-free link in the second-layer member link corresponding to the third-layer bundle port, and then selects the alternative second-layer member link from the fault-free link, and sends the traffic to be forwarded through the alternative second-layer member link.
[0093] Exemplarily, when selecting the alternative Layer 2 member link from the fault-free link, the parameters such as delay, jitter, packet loss rate and / or reliability corresponding to each fault-free link can be obtained first, and then the optimal link can be selected as the alternative Layer 2 member link based on the delay, jitter, packet loss rate and / or reliability of the fault-free link.
[0094] It should be noted that in some other optional implementations, alternative secondary member links can be selected directly based on the scheduling rules corresponding to the network device, or based on the busyness of the fault-free links. For example, the least busy Layer 2 member link can be selected as the alternative Layer 2 member link. Alternatively, a Layer 2 member link can be directly selected from the other fault-free Layer 2 member links in the Layer 3 bundle port using a hash algorithm to serve as the alternative Layer 2 member link for traffic forwarding.
[0095] In the technical solution disclosed in this embodiment, when a link failure occurs on the target Layer 2 member link, the fill value of the adjacent segment identifier corresponding to the traffic to be forwarded is determined. When the fill value is a first value, the traffic to be forwarded is sent through the alternative Layer 2 member link; or when the fill value is a second value, the traffic to be forwarded is discarded. Since the fill value of the adjacent segment identifier can be used to instruct the network on how to handle the traffic carried by the failed Layer 2 member link, it is possible to control the processing actions of each forwarding node based on the SLA corresponding to the traffic, thereby making the transmission network compatible with different business requirements. This improves the compatibility of the transmission network with different business requirements.
[0096] Please refer to Figure 3 In another embodiment of the traffic forwarding method of the present invention, the traffic forwarding method includes the following steps:
[0097] Step S10: The upper-layer system obtains the service level agreement (SLA) requirements and collects the adjacency segment identifiers of the Layer 2 member links in the Layer 3 bundle interface of each network element based on the extended BGP-LS.
[0098] Step S20: Programming the network path based on the service SLA requirement and the adjacent segment identifier, so that the network forwards the traffic corresponding to the service based on the programming result.
[0099] In this embodiment, the upper-layer system can first obtain SLA (Service Level Agreement) requirements so that it can determine the priority of different types of traffic based on the SLA requirements. For traffic types that prioritize packet loss rate, the system can choose to re-hash traffic when the bearer link fails and forward it through an alternative link. For traffic types that prioritize packet loss rate, the system can choose to discard the traffic.
[0100] After obtaining the SLA requirements, the upper-layer system can also collect the adjacent segment identifiers of the Layer 2 member links in the Layer 3 bundle interface of each network element based on the extended BGP-LS. The extended BGP-LS can add a flag bit so that the extended BGP-LS can collect the adjacent segment identifiers whose corresponding fill values are the first value and the second data. The BGP-LS collects the adjacent segment identifiers of the Layer 2 member links in the Layer 3 bundle interface.
[0101] After the SLA requirement and the adjacent segment identifiers of the layer 2 member links in the layer 3 bundle interface of each network element are obtained, the network path can be programmed based on the SLA requirement and the adjacent segment identifiers.
[0102] Exemplarily, the upper-layer system can collect the adjacent segment identifiers of the Layer 2 member links in the Layer 3 bundle port from the network element through BGP LS, including adjacent segment identifiers with an H bit of 0 and an H bit of 1. The head node network element or the upper-layer system such as the controller and the network management selects the adjacent segment identifier with an H bit of 0 or an H bit of 1 as needed when programming the network path according to the service SLA requirements. If the service expects to discard traffic and wait for path recalculation when a link fails, instead of the network element selecting a member link that carries traffic from other Layer 2 member links in the Layer 3 bundle port through hashing, the adjacent segment identifier with an H bit of 0 is used for path programming; if the service expects to minimize packet loss when a link fails, the network element selects a member link that carries traffic from other Layer 2 member links in the Layer 3 bundle port through hashing, and the adjacent segment identifier with an H bit of 1 is used for path programming.
[0103] In the technical solution disclosed in this embodiment, the upper-layer system obtains SLA requirements and, using extended BGP-LS, collects the adjacency segment identifiers of the Layer 2 member links in each network element's Layer 3 bundle interface. Network paths are then programmed based on these SLA requirements and adjacency segment identifiers. This allows upper-layer devices to control each forwarding node according to service requirements and, in the event of a bearer link failure, process traffic to be forwarded based on service requirements. This improves the transport network's compatibility with diverse service requirements.
[0104] In addition, an embodiment of the present invention also proposes a network device, which includes a memory, a processor, and a traffic forwarding control program stored on the memory and runnable on the processor. When the traffic forwarding control program is executed by the processor, the steps of the traffic forwarding method described in the above embodiments are implemented.
[0105] In addition, the embodiment of the present invention also proposes a network device, exemplarily referring to Figure 4 , the network device 100 includes:
[0106] An acquisition module 101 is configured to determine a fill value of an adjacency segment identifier corresponding to traffic to be forwarded when a link failure occurs on a target layer 2 member link;
[0107] The execution module 103 is configured to send the traffic to be forwarded through the alternative Layer 2 member link when the filling value is a first value; or to discard the traffic to be forwarded when the filling value is a second value.
[0108] Optionally, determining the target layer 2 member link according to the adjacency segment identifier;
[0109] Determining whether a link failure exists on the target Layer 2 member link;
[0110] When there is no link failure on the target layer-2 member link, the to-be-forwarded traffic is forwarded through the target layer-2 member link.
[0111] Optionally, before the step of sending the traffic to be forwarded through the alternative Layer 2 member link, the method further includes:
[0112] Determine the fault-free link among the Layer 2 member links corresponding to the Layer 3 bundled ports.
[0113] The candidate layer 2 member link is selected from the fault-free links.
[0114] Optionally, the traffic forwarding method further includes:
[0115] Announce the adjacent segment identifier of the layer 2 member link in the layer 3 bundle port, including the adjacent segment identifier of the layer 2 member link with the first value and the second value as the fill value, so that when the network element receives the traffic to be forwarded, it can determine the traffic processing method according to the declaration content and the adjacent segment identifier corresponding to the traffic to be forwarded.
[0116] Optionally, the adjacent segment identifier of the layer 2 member link is an adjacent segment identifier of the layer 2 member link used to declare the layer 2 member link in the layer 3 bundle interface in RFC8668.
[0117] Optionally, the filling value of the adjacency segment identifier of the layer 2 member link is a filling value of a preset flag bit in the Flags field.
[0118] In addition, an embodiment of the present invention further proposes a computer-readable storage medium, on which a traffic forwarding control program is stored. When the traffic forwarding control program is executed by a processor, the steps of the traffic forwarding method described in the above embodiments are implemented.
[0119] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.
[0120] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.
[0121] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, or of course by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above and includes a number of instructions for causing a network device to execute the methods described in each embodiment of the present invention.
[0122] The above are only preferred embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention description and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A traffic forwarding method, characterized in that: Applied to a network element, the traffic forwarding method comprises the following steps: announcing the adjacent segment identifiers of the Layer 2 member links in the Layer 3 bundle interface, wherein the adjacent segment identifiers of the Layer 2 member links are filled with a first value and a second value, so that when a network element receives traffic to be forwarded, it can determine a traffic processing method based on the announcement content and the adjacent segment identifiers corresponding to the traffic to be forwarded; When a link failure occurs on a target Layer 2 member link, a fill value of an adjacency segment identifier corresponding to traffic to be forwarded is determined; When the fill value is the first value, sending the traffic to be forwarded through the alternative Layer 2 member link; or When the filling value is the second value, the traffic to be forwarded is discarded.
2. The traffic forwarding method according to claim 1, wherein: Traffic forwarding methods also include: determining the target Layer 2 member link according to the adjacency segment identifier; Determining whether a link failure exists on the target Layer 2 member link; When there is no link failure on the target layer-2 member link, the to-be-forwarded traffic is forwarded through the target layer-2 member link.
3. The traffic forwarding method according to claim 1, wherein: Before the step of sending the traffic to be forwarded through the alternative Layer 2 member link, the method further includes: Determine the fault-free link among the Layer 2 member links corresponding to the Layer 3 bundled ports. The candidate layer 2 member link is selected from the fault-free links.
4. The traffic forwarding method according to claim 1, wherein: The adjacent segment identifier of the layer 2 member link is the adjacent segment identifier of the layer 2 member link in RFC8668, which is used to declare the adjacent segment identifier of the layer 2 member link in the layer 3 bundle interface.
5. A traffic forwarding method, characterized in that: Applied to the upper layer system, the traffic forwarding method includes the following steps: The upper layer system obtains a service service level agreement (SLA) requirement and collects, based on the extended BGP-LS, adjacency segment identifiers of layer 2 member links in a layer 3 bundle interface of each network element, wherein the adjacency segment identifiers include adjacency segment identifiers corresponding to first and second values whose fill values are respectively the first and second values; The network path is programmed based on the service SLA requirement and the adjacent segment identifier, and the adjacent segment identifier corresponding to the first value or the second value is selected as the fill value according to the service SLA requirement, so that the network forwards the traffic corresponding to the service based on the programming result.
6. A network device, characterized in that: The network device includes: a memory, a processor, and a traffic forwarding control program stored in the memory and executable on the processor. When the traffic forwarding control program is executed by the processor, the steps of the traffic forwarding method according to any one of claims 1 to 5 are implemented.
7. A network device, characterized in that: The network equipment includes: An acquisition module, configured to determine a fill value of an adjacency segment identifier corresponding to traffic to be forwarded when a link failure occurs on a target layer 2 member link; an execution module, configured to announce the adjacent segment identifiers of the Layer 2 member links in the Layer 3 bundle interface, wherein the adjacent segment identifiers of the Layer 2 member links are filled with a first value and a second value, so that when a network element receives traffic to be forwarded, it can determine a traffic processing method based on the announcement content and the adjacent segment identifiers corresponding to the traffic to be forwarded; The execution module is further configured to send the traffic to be forwarded through an alternative Layer 2 member link when the filling value is a first value; or to discard the traffic to be forwarded when the filling value is a second value.
8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a traffic forwarding control program, which, when executed by a processor, implements the steps of the traffic forwarding method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Message forwarding method and device
CN107547371A
Data forwarding method and device
CN109889441A