Message indication method, device, equipment and storage medium

In the SRv6 VPN fully active scenario, the message indication mark in the SID information is used to determine the detour of the message and perform corresponding processing, the problem of the formation of the service message loop is solved, and the user experience and forwarding efficiency are improved.

CN112511418BActive Publication Date: 2025-04-29ZTE CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010577361.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-22
Publication Date
2025-04-29
Estimated Expiration
2040-06-22

AI Technical Summary

Technical Problem

In the SRv6 VPN fully active scenario, service packets form a loop between service edge devices, resulting in waste of forwarding resources and user experience impact.

Method used

By introducing message indication marks into SID information, indicating the detour of the message, and forwarding or discarding according to this situation, loop formation is avoided.

Benefits of technology

It effectively avoids the formation of a loop between service edge devices, improves user experience, and saves forwarding resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112511418B_ABST
    Figure CN112511418B_ABST
Patent Text Reader

Abstract

The present application provides a message indication method, apparatus, device and storage medium, the method being applied to a first node, comprising: receiving segment identification SID information, wherein the SID information includes a message indication identifier, and the message indication identifier is used to indicate the forwarding status of a message corresponding to the SID information; and processing the message based on the SID information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a message indication method, device, equipment and storage medium. Background Art

[0002] Figure 1 It is a structural diagram of the running services between PEs in an SRv6 virtual private network (VPN) all-active scenario, such as Figure 1 As shown in the figure, in the SRv6 VPN full-active scenario, the user edge device (Custom Edge, CE) is dual-homed to the service edge device (Provide Edge, PE2 and PE3), and the SRv6 VPN service runs between PEs. Among them, the fast rerouting mechanism is deployed between PE2 and PE3. After the service message sent by CE1 to CE2 is sent to PE2, if the link between PE2 and CE2 fails, PE2 changes the outer IPv6 destination of the service message to the SRv6 service SID on PE3 and sends the message to PE3.

[0003] If the link between PE3 and CE2 also fails, PE3 will change the outer IPv6 destination of the service message to the SRv6 service SID on PE2 and send the message to PE2, causing the service message to loop between PE2 and PE3. The service loop will consume forwarding resources and affect user experience. Summary of the invention

[0004] The message indication method, apparatus, device and storage medium provided in the present application are used to prevent business messages from forming loops between service edge devices, thereby improving user experience.

[0005] In a first aspect, an embodiment of the present application provides a message indication method, the method being applied to a first node, including:

[0006] Receive segment identifier SID information, wherein the SID information includes a message indication identifier, and the message indication identifier is used to indicate the forwarding status of the message corresponding to the SID information;

[0007] The message is processed based on the SID information.

[0008] In a second aspect, an embodiment of the present application provides a message indication device, which is configured at a first node and includes:

[0009] A receiving module, configured to receive segment identifier SID information, wherein the SID information includes a message indication identifier, and the message indication identifier is used to indicate a forwarding status of a message corresponding to the SID information;

[0010] The processing module is configured to process the message based on the SID information.

[0011] In a third aspect, an embodiment of the present application provides a device, including:

[0012] one or more processors;

[0013] A memory for storing one or more programs;

[0014] When the one or more programs are executed by the one or more processors, the one or more processors implement any method provided in the embodiments of the present application.

[0015] In a fourth aspect, an embodiment of the present application provides a storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of the embodiments of the present application is implemented.

[0016] The message indication method, apparatus, device and storage medium provided in the embodiments of the present application indicate the detour situation of the message corresponding to the SID information through the message indication identifier in the SID information, and forward or discard it based on the detour situation, thereby solving the problem of business messages forming loops between service edge devices, causing waste of forwarding resources, and improving user experience.

[0017] With regard to the above embodiments and other aspects of the present application and their implementation, further description is provided in the accompanying drawings, detailed description and claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a structural diagram of the running services between PEs in an SRv6VPN active scenario;

[0019] Figure 2 It is a flow chart of a message indication method provided by an embodiment of the present application;

[0020] Figure 3 This is a schematic diagram of the structure of SID information provided in an embodiment of the present application;

[0021] Figure 4 This is a schematic diagram of a link failure between PE2 and CE2;

[0022] Figure 5 This is a flow chart of a fault protection method for SRv6 VPN provided by the present application;

[0023] Figure 6 The link between PE2 and CE2 and the link between PE3 and CE2 are both faulty.

[0024] Figure 7 This is a flow chart of a fault protection method for SRv6 VPN provided by the present application;

[0025] Figure 8 It is a structural schematic diagram of a message indication device provided in an embodiment of the present application;

[0026] Fig. 9 It is a structural schematic diagram of a device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the present application more clear, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other arbitrarily without conflict.

[0028] The steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions. Also, although a logical sequence is shown in the flowchart, in some cases, the steps shown or described can be performed in a sequence different from that shown here.

[0029] First, let’s briefly introduce SRv6 technology.

[0030] In network communication, Segment Routing (SR) is a source routing technology. When using this technology, the forwarding point does not need to perceive the service status, but only needs to maintain the topology point information to achieve the decoupling of the number of service instances from the network, which greatly improves the network's ability to support ubiquitous connections and scalability. The principle of SR is that the source node pushes the instructions carrying routing information into the message header, and the intermediate forwarding point pops out the relevant instructions hop by hop to forward the message. SR technology considers two types of encapsulation on the data plane, Multi-Protocol Label Switching (MPLS) encapsulation and Internet Protocol Version 6 (IPv6) encapsulation. The MPLS forwarding plane can be applied to the SR model without any modification. IPV6 defines a new Routing Header Type (RHT) for SR, defines SR-related routing extension headers, and provides source-based routing capabilities.

[0031] In a segmented routing network, the existing local underlay protection technology is topology independent loop-free alternate (TI-LFA), which is defined in the draft-ietf-rtgwg-segment-routing-ti-lfa file and can be used for local protection within an area. When the point of local repair (PLR) detects that the primary link or the primary next-hop node fails, it can quickly switch the traffic to the backup path. The backup path can be simple, such as containing only a single link or a single node, or complex, such as containing a segment list.

[0032] However, this solution only protects the Underlay layer SRv6 tunnel and does not involve the protection of overlay layer services.

[0033] In one embodiment, a message indication method is provided, such as Figure 2 As shown, the message indication method provided in the embodiment of the present application mainly includes steps S11 and S12.

[0034] S11. Receive segment identification SID information, wherein the SID information includes a message indication identifier, and the message indication identifier is used to indicate a forwarding status of a message corresponding to the SID information.

[0035] S12. Process the message based on the SID information.

[0036] The above message indication method is applied to the first node, which may be any edge service device in a virtual private network VPN, such as Figure 1 PE2 and PE3 shown in .

[0037] The SRv6 Segment Identifier (SID) is used to identify the ID of the SRv6 Segment. The standard SRv6 SID is a 128-bit IPv6 address.

[0038] like Figure 3 As shown in FIG. 1 , if support for SRv6 network programmability is considered, the SID information usually consists of three parts: Locator, Function, and Arguments (Args).

[0039] Locator is an identifier assigned to a network node in the network topology, used to route and forward data packets to the node. Locator identifies location information. The route corresponding to the Locator will be published to the network by the node through IGP to help other devices forward data packets to the node that published the Locator. In SRv6 SID, the Locator length is variable to adapt to networks of different sizes.

[0040] Function is used to express the forwarding action to be performed by the instruction, which is equivalent to the operation code of the computer instruction. In SRv6 network programming, different forwarding behaviors are expressed by different functions, such as forwarding a data packet to a specified link, or forwarding by looking up a table in a specified table.

[0041] Arguments (Args) is an optional field. It is the parameters corresponding to the instruction when it is executed. These parameters may contain streams, services or any other relevant information.

[0042] In this embodiment, a field of Args in the SID information is used to indicate a message indication flag, and the message indication flag is used to indicate the detour status of the message corresponding to the SID information.

[0043] In one embodiment, if the message indication flag is in the first state, it indicates that the message is a message forwarded normally by the user edge device, and if the message indication flag is in the second state, it indicates that the message is a message forwarded by the service edge device after an AC link failure.

[0044] It should be noted that the normal forwarding message also refers to the non-detour message.

[0045] In a specific implementation manner, the message indication identifier is carried by the Arguments field in the SID information.

[0046] It should be noted that the message indicator is carried by one of the bits in the Arguments field in the SID information, that is, the message indicator only occupies a part of arg, and the other part of arg can be used for other purposes.

[0047] Specifically, in this embodiment, a bit of Arguments (Args) is extended to identify whether the message is a bypass message. The definition rules are as follows:

[0048] If Args is set to 0, it means that the message is forwarded normally, not a bypass message.

[0049] If Args is set to 1, it indicates that the packet is routed after an AC link failure. If the local AC link also fails, the routed packet cannot be routed again and must be discarded.

[0050] All SRv6 SIDs are bound to a specific function. Information about the function is stored in the local SID table. This table has three main purposes: it records which SIDs are defined on this node, details the functions bound to each SID, and stores the parameters of the function (such as OIF, NextHop, VRF...). The function bound to each SID is recorded in Function.

[0051] Using a field of Args in the SID information to indicate the message indicator, the control plane does not need to be extended too much, and only needs to increase the notification of the length of the message indicator. This simplifies the previous method of assigning different functions to detour messages and non-detour messages and notifying different functions through the control plane, thus simplifying the control plane.

[0052] In a specific implementation manner, the SID information further includes: first type SID information, where the first type SID information is used in the layer 2 virtual private network L2VPN to indicate that the message is decapsulated and forwarded to a bound AC interface.

[0053] In this embodiment, the first type of SID information refers to End.DX2, which is commonly used in L2VPN and is used to instruct the message to be decapsulated and forwarded to the Layer 2 interface bound thereto.

[0054] In a specific implementation, the SID information further includes: second-category SID information, where the second-category SID information is used in a flexible cross-connection scenario of an Ethernet virtual private network EVPN to indicate message decapsulation, search for a VLAN in a layer-2 table, and forward the message.

[0055] In this embodiment, the second type of SID information refers to End.DX2V, which is commonly used in the flexible cross-connection scenario of EVPN and is used to instruct the message to be decapsulated, find the VLAN in the layer 2 table, and forward it.

[0056] In a specific implementation, the SID information further includes: third-category SID information, where the third-category SID information is used in a unicast scenario of EVPN to indicate message decapsulation, search for MAC in a layer 2 table, and forward.

[0057] In this embodiment, the third type of SID information refers to End.DT2U, which is commonly used in EVPN unicast scenarios and is used to instruct message decapsulation, search for a MAC address in a specified layer 2 table, and forward the message.

[0058] In a specific implementation manner, the length of the message indication identifier is carried in a SID information TLV field in a Border Gateway Protocol BGP prefix SID attribute.

[0059] In a specific implementation, when the message indication identifier is in the first state, the processing of the message based on the SID information includes: after detecting an AC link failure, converting the first state of the message indication identifier to the second state; and sending the message indication identifier switched to the second state and the message to the second node.

[0060] The second node refers to other PE nodes in the network.

[0061] Specifically, the first node finds that the Agr field in the message is set to 0, so it knows that the message is a normal forwarding message and can be forwarded to other PE nodes.

[0062] Furthermore, PE2 issues a BGP Withdraw message to PE1 through the BGP EVPN neighbor relationship to withdraw the published Ethernet virtual instance automatic discovery route. After receiving the BGP Withdraw message, PE1 preferentially receives the Ethernet virtual instance automatic discovery route from PE3, and directly forwards the subsequent data traffic to PE3.

[0063] In a specific implementation, when the message indication identifier is in the second state, processing the message based on the SID information includes: searching a local SID table to determine a forwarding action corresponding to the SID information carrying the message indication identifier in the second state; and discarding the message after an AC link corresponding to the forwarding action fails.

[0064] The first node finds that the Arg field is set to 1, so it knows that the message is sent after the AC fails. The message cannot be forwarded to other PE nodes, so the message will be discarded.

[0065] In a specific implementation, searching the local SID table to determine the forwarding action corresponding to the SID carrying the second state message indicator includes: matching the L2VPN instance according to the first type of SID information, and forwarding the original layer 2 message to the third node from the bound AC port.

[0066] In a specific implementation, searching the local SID table to determine the forwarding action corresponding to the SID information carrying the second state message indicator includes: matching the EVPN instance according to the second type of SID information, and finding the AC link pointing to the third node from the VLAN table.

[0067] In a specific implementation, searching the local SID table to determine the forwarding action corresponding to the SID information carrying the message indication identifier of the second state includes: matching the EVPN instance according to the third type of SID information, and finding the AC link pointing to the third node from the MAC table.

[0068] In one embodiment, Figure 4 This is a schematic diagram of a link failure between PE2 and CE2. In the SRv6 EVPN VPWS all-active scenario, the user edge device (Custom Edge, CE1) is dual-homed to the service edge device (Provide Edge, PE2 and PE3), and the SRv6 EVPN VPWS service runs between PEs. The fast reroute mechanism is deployed between PE2 and PE3. Assuming that the link between PE2 and CE2 fails, the following operations are performed.

[0069] Figure 5 This is a flow chart of a fault protection method for SRv6 VPN provided by the present application. Figure 5 As shown, the fault protection of the SRv6 VPN mainly includes the following steps:

[0070] Step 501: PE2 detects that a link between PE2 and CE2 fails.

[0071] Step 502: PE2 performs fast reroute (FRR) switching, pushes in the End.DT2U SID carrying Arg=1, and the next hop points to PE3.

[0072] Among them, one bit of the Arg field is occupied to indicate that the message is routed after the AC link fails.

[0073] Accordingly, the control plane also needs to carry the extended SRv6 SID Arguments and indicate the Arguments length in the SID information sub-TLV in the BGP prefix SID attribute.

[0074] Step 503: PE2 forwards the service message to PE3 according to the shortest path.

[0075] Step 504: After receiving the traffic, PE3 searches the local SID table and matches the forwarding action corresponding to the SID carrying Arg=0End.DT2U.

[0076] Specifically, PE3 finds that the Agr field in the message is set to 0, so it knows that the message is a normal forwarding message and can be forwarded to other PE nodes.

[0077] The local SID table is searched and the forwarding action corresponding to the End.DT2U SID with Argument Length = 1 is matched.

[0078] The specific operation is to remove the IPv6 packet header, match the EVPN instance according to the End.DT2U SID, and find the AC link pointing to CE2 from the MAC table. It should be noted that the bit width and position of the Arg encapsulated in PE2 are completely encapsulated according to the instructions in the SID Structure Sub-Sub-TLV at the signaling level of PE3, which can ensure that the packet can match a 127-bit prefix IPv6 route, which corresponds to the End.DT2U SID. Regardless of whether the value of the Arg encapsulated in PE2 is 0 or 1, it will match the same 127-bit prefix.

[0079] Step 505: PE2 sends a BGP Withdraw message to PE1 through the BGP EVPN neighbor relationship to withdraw the published Ethernet virtual instance automatic discovery route

[0080] Step 506: After receiving the BGP withdrawal message, PE1 preferably receives the Ethernet virtual instance automatic discovery route from PE3, and directly forwards the subsequent data traffic to PE3.

[0081] Figure 7 is a flow chart of a fault protection method for SRv6 VPN provided by the present invention, and the scenario diagram is shown in Figure 6 ,In this scenario, the link between PE2 and CE2 fails and the link between PE3 and CE2 fails at the same time.

[0082] Step 701: PE2 detects that a link between PE2 and CE2 fails.

[0083] Step 702: PE2 performs fast reroute (FRR) switching, pushes in the End.DT2U SID carrying Arg=1, and the next hop points to PE3.

[0084] Among them, one bit of the Arg field is occupied to indicate that the message is routed after the AC link fails.

[0085] Accordingly, the control plane also needs to carry the message indication identifier length in the SID information sub-TLV in the BGP prefix SID attribute.

[0086] Specifically, the message indication identifier length is carried in the sub-TLV in the SID information sub-TLV.

[0087] Step 703: PE2 forwards the service message to PE3 according to the shortest path.

[0088] Step 704: After receiving the traffic, PE3 searches the local SID table and matches the forwarding action corresponding to the SID carrying Argument Length=1End.DT2U.

[0089] The local SID table is searched to match the forwarding action corresponding to the End.DT2U SID with Argument Length = 1. The specific operation is to remove the IPv6 packet header, then match the EVPN instance according to the End.DT2U SID, and find the AC link pointing to CE2 from the MAC table.

[0090] Step 705: PE3 detects that the AC link with CE2 fails, and PE3 finds that the Agr field in the message is set to 1, so the message will be discarded.

[0091] Since the Arg field is set to 1, it is known that the packet is forwarded after the AC fails, and the forwarded packet cannot be forwarded to other PE nodes. Therefore, the packet will be discarded.

[0092] In one embodiment, a message indicating device is provided, such as Figure 8 As shown, the message indication method provided in the embodiment of the present application mainly includes a receiving module 81 and a processing module 82.

[0093] The receiving module 81 is configured to receive segment identifier SID information, wherein the SID information includes a message indication identifier, and the message indication identifier is used to indicate the forwarding status of the message corresponding to the SID information;

[0094] The processing module 82 is configured to process the message based on the SID information.

[0095] In one embodiment, if the message indication flag is in the first state, it indicates that the message is a message forwarded normally by the user edge device, and if the message indication flag is in the second state, it indicates that the message is a message forwarded by the service edge device after an AC link failure.

[0096] In a specific implementation manner, the message indication identifier is carried by the Arguments field in the SID information.

[0097] In a specific implementation manner, the SID information further includes: first type SID information, where the first type SID information is used in the layer 2 virtual private network L2VPN to indicate that the message is decapsulated and forwarded to a bound AC interface.

[0098] In a specific implementation, the SID information further includes: second-category SID information, where the second-category SID information is used in a flexible cross-connection scenario of an Ethernet virtual private network EVPN to indicate message decapsulation, search for a VLAN in a layer-2 table, and forward the message.

[0099] In a specific implementation, the SID information further includes: third-category SID information, where the third-category SID information is used in a unicast scenario of EVPN to indicate message decapsulation, search for MAC in a layer 2 table, and forward.

[0100] In a specific implementation manner, the length of the message indication identifier is carried in a SID information TLV field in a Border Gateway Protocol BGP prefix SID attribute.

[0101] In a specific implementation, when the message indication identifier is in the first state, the processing of the message based on the SID information includes: after detecting an AC link failure, converting the first state of the message indication identifier to the second state; and sending the message indication identifier switched to the second state and the message to the second node.

[0102] In a specific implementation, when the message indication identifier is in the second state, processing the message based on the SID information includes: searching a local SID table to determine a forwarding action corresponding to the SID information carrying the message indication identifier in the second state; and discarding the message after an AC link corresponding to the forwarding action fails.

[0103] In a specific implementation, searching the local SID table to determine the forwarding action corresponding to the SID carrying the second state message indicator includes: matching the L2VPN instance according to the first type of SID information, and forwarding the original layer 2 message to the third node from the bound AC port.

[0104] In a specific implementation, searching the local SID table to determine the forwarding action corresponding to the SID information carrying the second state message indicator includes: matching the EVPN instance according to the second type of SID information, and finding the AC link pointing to the third node from the VLAN table.

[0105] In a specific implementation, searching the local SID table to determine the forwarding action corresponding to the SID information carrying the message indication identifier of the second state includes: matching the EVPN instance according to the third type of SID information, and finding the AC link pointing to the third node from the MAC table.

[0106] The message indication device provided in this embodiment can execute the message indication method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method. For technical details not described in detail in this embodiment, please refer to the message indication method provided in any embodiment of the present invention.

[0107] It is worth noting that in the embodiment of the above-mentioned message indication device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application.

[0108] The present application also provides a device, Fig. 9 is a schematic diagram of the structure of a device provided in an embodiment of the present application, such as Fig. 9 As shown, the device includes a processor 91, a memory 92, an input device 93, an output device 94 and a communication device 95; the number of processors 91 in the device can be one or more. Fig. 9 A processor 91 is taken as an example; the processor 91, memory 92, input device 93 and output device 94 in the device can be connected by a bus or other means. Fig. 9 The example of connecting through bus is taken in the following.

[0109] The memory 92 is a computer-readable storage medium that can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the message indication method in the embodiment of the present application (for example, message indication in the message indication device). The processor 91 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 92, that is, implementing any method provided in the embodiment of the present application.

[0110] The memory 92 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the device, etc. In addition, the memory 92 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 92 may further include a memory remotely arranged relative to the processor 91, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0111] The input device 93 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the device. The output device 94 may include a display device such as a display screen.

[0112] The communication device 95 may include a receiver and a transmitter. The communication device 95 is configured to perform information transmission and reception communication according to the control of the processor 91.

[0113] In an exemplary embodiment, the present application also provides a storage medium containing computer executable instructions, wherein the computer executable instructions are used to execute a message indication method when executed by a computer processor, including:

[0114] Receive segment identifier SID information, wherein the SID information includes a message indication identifier, and the message indication identifier is used to indicate the forwarding status of the message corresponding to the SID information.

[0115] The message is processed based on the SID information.

[0116] Of course, the storage medium containing computer executable instructions provided in the embodiment of the present application, whose computer executable instructions are not limited to the method operations described above, can also execute related operations in the message indication method provided in any embodiment of the present application.

[0117] Through the above description of the implementation method, the technicians in the relevant field can clearly understand that the present application can be implemented with the help of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application can be essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0118] The above description is merely an exemplary embodiment of the present application and is not intended to limit the protection scope of the present application.

[0119] It will be appreciated by those skilled in the art that the term user terminal covers any suitable type of wireless user equipment, such as a mobile phone, a portable data processing device, a portable web browser or a vehicle-mounted mobile station.

[0120] In general, various embodiments of the present application can be implemented in hardware or dedicated circuits, software, logic or any combination thereof. For example, some aspects can be implemented in hardware, while other aspects can be implemented in firmware or software that can be executed by a controller, microprocessor or other computing device, although the present application is not limited thereto.

[0121] Embodiments of the present application may be implemented by executing computer program instructions by a data processor of a mobile device, for example in a processor entity, or by hardware, or by a combination of software and hardware. The computer program instructions may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages.

[0122] The block diagram of any logic flow in the accompanying drawings of the present application can represent program steps, or can represent interconnected logic circuits, modules and functions, or can represent a combination of program steps and logic circuits, modules and functions. The computer program can be stored on a memory. The memory can have any type suitable for the local technical environment and can be implemented using any suitable data storage technology, such as but not limited to read-only memory (ROM), random access memory (RAM), optical memory device and system (digital versatile disc DVD or CD disc), etc. Computer-readable media may include non-transient storage media. The data processor can be any type suitable for the local technical environment, such as but not limited to a general-purpose computer, a special-purpose computer, a microprocessor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a programmable logic device (FGPA) and a processor based on a multi-core processor architecture.

[0123] By way of exemplary and non-limiting examples, a detailed description of exemplary embodiments of the present application has been provided above. However, various modifications and adjustments to the above embodiments will be apparent to those skilled in the art when considered in conjunction with the accompanying drawings and claims, but will not depart from the scope of the present invention. Therefore, the proper scope of the present invention will be determined according to the claims.

Claims

1. A message indication method, characterized in that: The method is applied to a first node, comprising: Receive segment identifier SID information, wherein the SID information includes a message indication identifier, and the message indication identifier is used to indicate the forwarding status of the message corresponding to the SID information; Processing the message based on the SID information; The message indication identifier is carried by the Arguments field in the SID information; If the message indication flag is in the first state, it indicates that the message is a message forwarded normally by the user edge device. If the message indication flag is in the second state, it indicates that the message is a message forwarded by the service edge device in a roundabout way after an AC link failure.

2. The method according to claim 1, characterized in that: The SID information also includes: first type SID information, where the first type SID information is used in the Layer 2 virtual private network L2VPN to instruct the message to be decapsulated and forwarded to the bound AC interface.

3. The method according to claim 1, characterized in that The SID information also includes: second-category SID information, where the second-category SID information is used in a flexible cross-connection scenario of an Ethernet virtual private network EVPN to indicate message decapsulation, search for a VLAN in a layer 2 table, and forward the message.

4. The method according to claim 1, characterized in that: The SID information also includes: third-category SID information, where the third-category SID information is used in a unicast scenario of EVPN to instruct message decapsulation, search for MAC in a layer 2 table, and forward.

5. The method according to claim 1, characterized in that The length of the message indication identifier is carried in the SID information TLV field in the Border Gateway Protocol BGP prefix SID attribute.

6. The method according to claim 1, characterized in that When the message indication flag is in the first state, the processing the message based on the SID information includes: After detecting an AC link failure, converting the first state of the message indication flag to the second state; The message indication mark switched to the second state and the message are sent to the second node.

7. The method according to claim 1, characterized in that When the message indication flag is in the second state, the processing the message based on the SID information includes: Searching the local SID table to determine the forwarding action corresponding to the SID information carrying the message indication identifier of the second state; After the AC link corresponding to the forwarding action fails, the message is discarded.

8. The method according to claim 7, characterized in that The searching the local SID table to determine the forwarding action corresponding to the SID carrying the message indication identifier of the second state includes: The L2VPN instance is matched according to the first-category SID information, and the original layer 2 message is forwarded to the third node from the bound AC port.

9. The method according to claim 7, characterized in that: The searching the local SID table to determine the forwarding action corresponding to the SID information carrying the message indication identifier of the second state includes: The EVPN instance is matched according to the second-type SID information, and the AC link pointing to the third node is found from the VLAN table.

10. The method according to claim 7, characterized in that The searching the local SID table to determine the forwarding action corresponding to the SID information carrying the message indication identifier of the second state includes: The EVPN instance is matched according to the third-type SID information, and the AC link pointing to the third node is found from the MAC table.

11. A message indicating device, characterized in that: The device is configured at the first node and includes: A receiving module, configured to receive segment identification SID information, wherein the SID information includes a message indication identifier, and the message indication identifier is used to indicate a detour situation of a message corresponding to the SID information; A processing module, configured to process the message based on the SID information; The message indication identifier is carried by the Arguments field in the SID information; If the message indication flag is in the first state, it indicates that the message is a message forwarded normally by the user edge device. If the message indication flag is in the second state, it indicates that the message is a message forwarded by the service edge device in a roundabout way after an AC link failure.

12. A device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 10.

13. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.

Citation Information

Patent Citations

  • Communication method, device and system for avoiding loop

    CN110661701A