A communication method and related equipment
By transmitting NLRI-encapsulated loop-breaking protocol packets in EVPN, the problem of EVPN's inability to transparently transmit packets in multi-homing multi-active scenarios is resolved, achieving a similar effect to a Layer 2 direct connection and providing link and node protection for ring and U-shaped networks.
Patent Information
- Application Number
- CN202011375216.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-30
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2040-11-30
AI Technical Summary
EVPN cannot transparently transmit loop-breaking protocols, making it unsuitable for use in multi-homing and multi-active scenarios and unable to implement Layer 2 direct connections in ring/U-shaped networks.
By encapsulating loop-breaking protocol packets using Network Layer Reachability Information (NLRI) transmitted through EVPN, loop-breaking protocols can be transmitted between operator edge devices (PEs), achieving an effect similar to a Layer 2 direct connection.
In ring/intersection-shaped multi-homing multi-active scenarios, EVPN transparent transmission is achieved, forming a blockage point and providing link and node protection for services on the ring.
Smart Images

Figure CN114584509B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communications, and in particular to a communication method and related equipment. Background Art
[0002] Ethernet virtual private network (EVPN) is a virtual private network (VPN) technology used for Layer 2 network interconnection. EVPN includes customer edge routers (CE) and provider edge routers (PE). CEs are devices on the customer network side that are directly connected to the service provider's network, while PEs are devices on the provider network side that are connected to the CE. In practice, CEs can access the EVPN network using a dual-homing mechanism. That is, in EVPN, a CE can access the network through two connected PEs. The CE and its two connected PEs form a dual-homed unit.
[0003] Currently, the industry has launched the EVPN multi-homing multi-active solution.
[0004] However, because EVPN cannot transparently transmit loop-breaking protocols, it cannot be applied in multi-homing and multi-active scenarios. Summary of the Invention
[0005] The present invention provides a communication method and related devices that can effectively solve the problem of EVPN not being supported in ring / interface multi-homing multi-active scenarios, and achieve a similar effect to a Layer 2 direct connection by transmitting a loop-breaking protocol between PEs via EVPN.
[0006] A first aspect of an embodiment of the present application provides a communication method, which can be executed by a first operator edge device or by a component of the first operator edge device (such as a processor, chip, or chip system). The method is applicable to a multi-homing multi-active scenario in a ring network or a U-shaped network, and the method includes: the first operator edge device PE receives a loop breaking protocol message sent by a first user edge device CE, where the loop breaking protocol message is used to avoid network loops in the ring network; the first PE encapsulates the loop breaking protocol message based on network layer reachability information (NLRI) to obtain an NLRI message; the first PE sends an NLRI message to a second PE, where the NLRI message is used for the second PE to receive the loop breaking protocol message.
[0007] In an embodiment of the present application, after receiving the ring breaking protocol message, the first PE can encapsulate the ring breaking protocol message based on NLRI and send the NLRI message to the second PE, that is, the ring breaking protocol is transmitted between the PEs through EVPN, which is equivalent to the Layer 2 connection between the PEs being opened, and normal ring breaking is performed on the CE ring, thereby realizing that in a ring networking or a U-shaped networking scenario, EVPN can achieve transparent transmission, so as to form a blocking point on the ring and provide link and node protection for the services on the ring.
[0008] Optionally, in a possible implementation manner of the first aspect, the loop breaking protocol message in the above steps includes a Bridge Protocol Data Unit (BPDU) message.
[0009] This possible implementation solves the problem of EVPN not being supported in ring / U-shaped multi-homing multi-active scenarios and the problem of EVPN being unable to break Layer 2 loops in these scenarios. PEs use EVPN to extend routing and transparently transmit / synchronize spanning tree protocol (STP) messages (i.e., BPDU messages), achieving an effect similar to a direct physical link connection.
[0010] Optionally, in a possible implementation manner of the first aspect, the ring breaking protocol message in the above steps includes an Ethernet Multi-Ring Protection Technology EPRS message.
[0011] This possible implementation solves the problem of EVPN not being supported in ring / U-shaped multi-homing multi-active scenarios and the problem of EVPN being unable to break Layer 2 loops in this scenario. PEs transparently transmit / synchronize G.8032 messages (i.e., EPRS messages) through EVPN extended routing, achieving an effect similar to a direct physical link connection.
[0012] Optionally, in a possible implementation manner of the first aspect, the NLRI message in the above step carries an instance identifier, where the instance identifier is used to indicate the instance to which the NLRI message belongs.
[0013] In this possible implementation, the NLRI carries an instance identifier, so that the second PE can determine the instance to which the NLRI message belongs after receiving the NLRI, thereby avoiding the inability to distinguish the instance corresponding to the NLRI message when there are multiple instances.
[0014] Optionally, in a possible implementation manner of the first aspect, the NLRI message in the above step carries a process identifier of the layer 2 gateway, where the process identifier is used to indicate the process to which the NLRI message belongs.
[0015] In this possible implementation, the NLRI carries a process identifier, so that the second PE can determine the process to which the NLRI message belongs after receiving the NLRI, thereby avoiding the inability to distinguish the process corresponding to the NLRI message when there are multiple processes.
[0016] Optionally, in a possible implementation manner of the first aspect, the above steps further include: if the network topology where the first PE is located changes, the first PE clears a stored Media Access Control MAC table and Address Resolution Protocol ARP table.
[0017] In this possible implementation, if the network topology changes, the first PE can clear the MAC table and the ARP table in a timely manner to avoid invalid transmission by the PE.
[0018] Optionally, in a possible implementation manner of the first aspect, the above steps further include: the first PE controlling a transmission range of the NLRI message.
[0019] In this possible implementation, the first PE may control the transmission range of the NLRI message, thereby controlling the transmission range of the Layer 2 loop breaking protocol and avoiding mutual influence between Layer 2 networks.
[0020] Optionally, in a possible implementation manner of the first aspect, in the above steps, the first PE controls the transmission range of the NLRI message, including: the first PE controls the transmission range of the NLRI by configuring a source Internet Protocol address (IP address) and a destination IP address, where the source IP address is the address of the first PE and the destination IP address is the address of the second PE.
[0021] A second aspect of an embodiment of the present application provides a communication method, which can be executed by a second operator edge device or by a component of the second operator edge device (such as a processor, chip, or chip system). The method is applicable to a multi-home multi-active scenario in a ring network or a U-shaped network, and includes: a second operator edge device (PE) receiving a network layer reachability information (NLRI) message sent by a first PE; the second PE decapsulating the NLRI message to obtain a loop breaking protocol message in the NLRI message, the loop breaking protocol message being used to avoid network loops in the ring network; and the second PE sending the loop breaking protocol message to a second CE.
[0022] In an embodiment of the present application, after receiving the NLRI message, the second PE can decapsulate the NLRI message, obtain the loop breaking protocol message, and send the loop breaking protocol message to the second CE, that is, the loop breaking protocol is transmitted between the PEs through the EVPN, which is equivalent to the Layer 2 connection between the PEs being opened, and normal loop breaking is performed on the CE ring, thereby realizing that in a ring networking or a U-shaped networking scenario, EVPN can achieve transparent transmission, so as to form a blocking point on the ring and provide link and node protection for the services on the ring.
[0023] Optionally, in a possible implementation manner of the second aspect, the above steps further include: if the network topology where the second PE is located changes, the second PE clears the stored Media Access Control MAC table and Address Resolution Protocol ARP table.
[0024] In this possible implementation, if the network topology changes, the second PE can clear the MAC table and the ARP table in a timely manner to avoid invalid transmission by the PE.
[0025] Optionally, in a possible implementation manner of the second aspect, the loop breaking protocol message in the above steps includes a Bridge Protocol Data Unit (BPDU) message.
[0026] This possible implementation solves the problem of EVPN not being supported in ring / U-shaped multi-homing multi-active scenarios and the problem of EVPN being unable to break Layer 2 loops in this scenario. PEs transparently transmit / synchronize STP messages (i.e., BPDU messages) through EVPN extended routing, achieving an effect similar to a direct physical link connection.
[0027] Optionally, in a possible implementation manner of the second aspect, the ring breaking protocol message in the above steps includes an Ethernet Multi-Ring Protection Technology EPRS message.
[0028] This possible implementation solves the problem of EVPN not being supported in ring / U-shaped multi-homing multi-active scenarios and the problem of EVPN being unable to break Layer 2 loops in this scenario. PEs transparently transmit / synchronize G.8032 messages (i.e., EPRS messages) through EVPN extended routing, achieving an effect similar to a direct physical link connection.
[0029] Optionally, in a possible implementation manner of the second aspect, the NLRI message in the above step carries an instance identifier, where the instance identifier is used to indicate the instance to which the NLRI message belongs.
[0030] In this possible implementation, the NLRI carries an instance identifier, so that the second PE can determine the instance to which the NLRI message belongs after receiving the NLRI, thereby avoiding the inability to distinguish the instance corresponding to the NLRI message when there are multiple instances.
[0031] Optionally, in a possible implementation manner of the second aspect, the NLRI message in the above step carries a process identifier of the layer 2 gateway, where the process identifier is used to indicate the process to which the NLRI message belongs.
[0032] In this possible implementation, the NLRI carries a process identifier, so that the second PE can determine the process to which the NLRI message belongs after receiving the NLRI, thereby avoiding the inability to distinguish the process corresponding to the NLRI message when there are multiple processes.
[0033] A third aspect of an embodiment of the present application provides a communication device, which may be a first operator edge device or a component (such as a processor, a chip, or a chip system) of the first operator edge device. The communication device includes:
[0034] A receiving unit, configured to receive a ring breaking protocol message sent by the first user edge device CE, where the ring breaking protocol message is used to avoid a network loop in the ring network;
[0035] A processing unit, configured to encapsulate a loop breaking protocol message based on network layer reachability information (NLRI) to obtain an NLRI message;
[0036] The sending unit is configured to send an NLRI message to the second operator edge device PE, where the NLRI message is used for the second PE to receive the loop breaking protocol message.
[0037] Optionally, in a possible implementation manner of the third aspect, the above-mentioned loop breaking protocol message includes a Bridge Protocol Data Unit BPDU message.
[0038] Optionally, in a possible implementation manner of the third aspect, the above-mentioned ring breaking protocol message includes an Ethernet multi-ring protection technology EPRS message.
[0039] Optionally, in a possible implementation manner of the third aspect, the NLRI message carries an instance identifier, where the instance identifier is used to indicate the instance to which the NLRI message belongs.
[0040] Optionally, in a possible implementation manner of the third aspect, the NLRI message carries a process identifier of a layer 2 gateway, where the process identifier is used to indicate the process to which the NLRI message belongs.
[0041] Optionally, in a possible implementation of the third aspect, the processing unit of the communication device is further configured to clear a stored media access control MAC table and an address resolution protocol ARP table if a network topology in which the communication device is located changes.
[0042] Optionally, in a possible implementation manner of the third aspect, the processing unit of the communication device is further configured to control a transmission range of the NLRI message.
[0043] Optionally, in a possible implementation of the third aspect, the processing unit of the above-mentioned communication device is specifically used to control the transmission range of the NLRI by configuring the source Internet Protocol address IP address and the destination IP address, the source IP address is the address of the first PE, and the destination IP address is the address of the second PE.
[0044] A fourth aspect of an embodiment of the present application provides a communication device, which may be a second operator edge device or a component (such as a processor, a chip, or a chip system) of the second operator edge device. The communication device includes:
[0045] A receiving unit, configured to receive a network layer reachability information NLRI message sent by a first operator edge device PE;
[0046] A processing unit, configured to decapsulate the NLRI message and obtain a loop breaking protocol message in the NLRI message, wherein the loop breaking protocol message is used to avoid network loops in a ring network;
[0047] The sending unit is configured to send a loop breaking protocol message to the second CE.
[0048] Optionally, in a possible implementation of the fourth aspect, the processing unit of the above-mentioned communication device is further used to clear the stored Media Access Control MAC table and Address Resolution Protocol ARP table if the network topology in which the communication device is located changes.
[0049] Optionally, in a possible implementation manner of the fourth aspect, the above-mentioned loop breaking protocol message includes a Bridge Protocol Data Unit BPDU message.
[0050] Optionally, in a possible implementation manner of the fourth aspect, the above-mentioned ring breaking protocol message includes an Ethernet multi-ring protection technology EPRS message.
[0051] Optionally, in a possible implementation manner of the fourth aspect, the NLRI message carries an instance identifier, where the instance identifier is used to indicate the instance to which the NLRI message belongs.
[0052] Optionally, in a possible implementation manner of the fourth aspect, the NLRI message carries a process identifier of the layer 2 gateway, where the process identifier is used to indicate the process to which the NLRI message belongs.
[0053] In a fifth aspect, an embodiment of the present application provides a communication device, which may be a first operator edge device or a component of the first operator edge device (such as a processor, chip, or chip system). The communication device executes the method in the aforementioned first aspect or any possible implementation of the first aspect.
[0054] A sixth aspect of an embodiment of the present application provides a communication device, which may be a second operator edge device or a component of the second operator edge device (such as a processor, chip, or chip system). The communication device executes the method in the aforementioned second aspect or any possible implementation of the second aspect.
[0055] The seventh aspect of the embodiments of the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed on a computer, the computer executes the method in the aforementioned first aspect or any possible implementation of the first aspect, the second aspect or any possible implementation of the second aspect.
[0056] An eighth aspect of the embodiments of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method in the aforementioned first aspect or any possible implementation of the first aspect, the second aspect or any possible implementation of the second aspect.
[0057] A ninth aspect of an embodiment of the present application provides a communication device, comprising: a processor, the processor being coupled to a memory, the memory being used to store programs or instructions, and when the programs or instructions are executed by the processor, the device implements the method in the first aspect or any possible implementation of the first aspect.
[0058] The tenth aspect of an embodiment of the present application provides a communication device, including: a processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the device implements the method in the above-mentioned second aspect or any possible implementation of the second aspect.
[0059] An eleventh aspect of an embodiment of the present application provides a communication system, comprising the communication device provided in the third, fifth, or ninth aspect, and the communication device in the fourth, sixth, or tenth aspect.
[0060] Among them, the technical effects brought about by the third, fifth, seventh, eighth, and ninth aspects or any possible implementation methods thereof can be referred to the technical effects brought about by the first aspect or different possible implementation methods of the first aspect, and will not be repeated here.
[0061] Among them, the technical effects brought about by the fourth, sixth, seventh, eighth, and tenth aspects or any possible implementation methods thereof can be referred to the technical effects brought about by the second aspect or different possible implementation methods of the second aspect, and will not be repeated here.
[0062] It can be seen from the above technical solution that the embodiment of the present application has the following advantages: after the first PE receives the ring breaking protocol message, it can encapsulate the ring breaking protocol message based on NLRI and send the NLRI message to the second PE, that is, the ring breaking protocol is transmitted between PEs through EVPN, which is equivalent to the Layer 2 connection between PEs being opened, and normal ring breaking is performed on the CE ring, thereby realizing that in a ring networking or a U-shaped networking scenario, EVPN can achieve transparent transmission, so as to form a blocking point on the ring and provide link and node protection for the services on the ring. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 A schematic diagram of a communication system in an embodiment of the present application;
[0064] Figure 2 Schematic diagram of another communication system in an embodiment of the present application;
[0065] Figure 3 Schematic diagram of another communication system in an embodiment of the present application;
[0066] Figure 4 A flow chart of a communication method in an embodiment of the present application;
[0067] Figure 5 This is a schematic diagram of the structure of an NLRI message in an embodiment of the present application;
[0068] Figure 6 This is another structural diagram of an NLRI message in an embodiment of the present application;
[0069] Figure 7 Schematic diagram of another communication system in an embodiment of the present application;
[0070] Figure 8 This is a schematic structural diagram of a communication device in an embodiment of the present application;
[0071] Figure 9 This is another structural diagram of a communication device in an embodiment of the present application;
[0072] Figure 10 This is another structural diagram of a communication device in an embodiment of the present application;
[0073] Figure 11 This is another structural diagram of the communication device in an embodiment of the present application. DETAILED DESCRIPTION
[0074] The present invention provides a communication method and related devices that can effectively solve the problem of EVPN not being supported in ring / interface multi-homing multi-active scenarios, and achieve a similar effect to a Layer 2 direct connection by transmitting a loop-breaking protocol between PEs via EVPN.
[0075] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments.
[0076] Figure 1 A schematic diagram of a communication system is provided, which may include CE devices 101 to 104 (including CE1, CE2, CE3, and CE4) and PE devices 105 to 108 (including PE1, PE2, PE3, and PE4).
[0077] CE1, CE2, and CE3 form a Layer 2 ring network with CE4 and are dual-homed to PE1 and PE2. EVPN is established between PE1, PE2, PE3, and PE4.
[0078] In the embodiment of the present application, only four CE devices 101 to 104 and four PE devices 105 to 108 are used as examples for schematic illustration. In actual applications, the communication system in the embodiment of the present application may have more CE devices and PE devices. The embodiment of the present application does not limit the number of CE devices and PE devices.
[0079] The CE device in the embodiment of the present application can be an access device such as a router, a switch, an optical line terminal (OLT) or a host, and the specific details are not limited here.
[0080] The PE device in the embodiment of the present application can be a router, a switch, or other device, and is not specifically limited here.
[0081] In ring or U-shaped networking scenarios, EVPN cannot transparently transmit loop-breaking protocol packets, which restricts the promotion and implementation of EVPN solutions. Figure 2 As shown in the figure, PE1 and PE2 cannot transparently transmit loop-breaking protocol packets, which prevents CE1, CE2, CE3, and CE4 from forming a loop. Although STP / G.8032 over EVPN is a good solution for this scenario, EVPN must be able to transparently transmit and synchronize STP / G.8032 packets.
[0082] In response to the above problems, the embodiment of the present application provides a communication method that can transmit a ring breaking protocol through EVPN, so that in a ring networking or a square networking scenario (or a scenario where the first CE is connected to the Ethernet virtual private network EVPN through the first PE and the second PE), EVPN can achieve transparent transmission, thereby making Figure 2 The scene shown becomes a closed loop (such as Figure 3 ) to create a choke point on the ring (as shown Figure 3 The black dot in CE3 in FIG3 provides link and node protection for the services on the ring. The communication method in the embodiment of the present application is described below.
[0083] The first CE in the embodiment of the present application can be Figure 1 In the CE1 shown, the first PE can be Figure 1 In the example shown, PE1, the second PE can be Figure 1 In the PE2 shown, the second CE can be Figure 1 CE4 is shown.
[0084] The communication method provided in the embodiment of the present application can be applied to multi-homing and multi-active scenarios in ring networking or U-shaped networking, wherein the multi-homing and multi-active scenarios include dual-homing and dual-active scenarios, triple-homing and triple-active scenarios, etc., which are not specifically limited here.
[0085] See also Figure 4 In one embodiment of the communication method of the present application, the following embodiments are included:
[0086] 401. A first CE sends a loop breaking protocol message to a first PE. Correspondingly, the first PE receives the loop breaking protocol message sent by the first CE.
[0087] In an embodiment of the present application, the ring breaking protocol message sent by the first CE to the first PE can be a bridge protocol data unit (BPDU) in the spanning tree protocol (STP), or it can be the Ethernet ring protection switching (ERPS) technology in G.8032, etc., and the specific details are not limited here.
[0088] 402. The first PE encapsulates the loop breaking protocol message based on network layer reachability information (NLRI) to obtain an NLRI message.
[0089] Optionally, if the network topology changes, the first PE can clear the MAC table and ARP table by receiving a topology change notification-bridge protocol data unit (TCN-BPDU), thereby avoiding the first PE from transmitting messages according to the MAC table and ARP table corresponding to the original network topology (i.e., avoiding invalid transmission).
[0090] After receiving the loop prevention protocol message from the first CE, the first PE encapsulates the loop prevention protocol message based on the NLRI, obtaining an NLRI message. In other words, if the loop prevention protocol message is only transmitted at Layer 2, the first PE encapsulates the loop prevention protocol message into an NLRI message at Layer 3, thus achieving the purpose of transmitting the loop prevention protocol message at Layer 3.
[0091] In the embodiment of the present application, the NLRI message includes a loop breaking protocol message, an EVPN instance, and a second layer gateway process.
[0092] For example, Figure 5As shown in the figure, a structural form of the NLRI message. Among them, octet is 8 bits. The NLRI message includes three fields, namely, the extended length (Length of Extend), the EVPN instance identity number (identity document, ID), the L2 gateway (gateway, GW) process (Process) ID, and the instance ID. Among them, the Length of Extend field is used to carry the loop breaking protocol message, such as: STP BPDU message or G.8032 ERPS message, etc., the EVPN instance ID field is used to indicate that the NLRI message is a message of an instance among multiple EVPN instance messages, and the L2 GW Process ID and instance ID fields are used to indicate that the NLRI message is a message of an instance among multiple instance messages under the Layer 2 protocol process.
[0093] Optionally, if a CE is connected to multiple PEs, the NLRI message may further include an Ethernet segment identifier (ESI), which is used to distinguish a link in the multiple connections. It can also be understood that the ESI is a unique identifier defining the connection between the PE and a certain CE.
[0094] Optionally, if there are multiple EVPN instances, the NLRI message may further include an Ethernet tag identifier (ETI), where the ETI is used to distinguish different broadcast domains (or user networks) in the same EVPN instance.
[0095] Optionally, the NLRI message may further include a multi-protocol label switching (MPLS) label. The MPLS label is used by the receiving end to determine the PE device of the receiving end. The number of MPLS labels is set according to actual needs and is not specifically limited here.
[0096] Optionally, if the NLRI message contains two MPLS labels (MPLS label 1 and MPLS label 2, which may also be referred to as an inner label and an outer label), one MPLS label is used to identify the PE device, and the other MPLS label is used to identify an instance on the PE device.
[0097] Exemplarily, the NLRI message includes MPLS label 1 and MPLS label 2, wherein MPLS label 1 is used by the second PE to determine whether to send the loop breaking protocol message in the NLRI message to the second CE, and MPLS label 2 is used by the second CE to determine whether to send the loop breaking protocol message to the next hop device.
[0098] For example, Figure 6 As shown in FIG. 4 , another structure of the NLRI message is shown.
[0099] In an embodiment of the present application, the first PE can also control the transmission range of the Layer 2 loop prevention protocol by controlling the transmission range of the NLRI message, thereby avoiding mutual influence between Layer 2 networks. Specific control methods may include, but are not limited to, specifying the EVPN STP / G.8032 peer to send, manually specifying a specific inclusive-route next-hop, or configuring the source Internet Protocol address (IP) and destination IP address (for example, the source IP address is the IP address of the first PE and the destination IP address is the IP address of the second PE) when delivering the service.
[0100] Optionally, if the communication method provided in the embodiment of the present application is applied to multiple CE ring networks, for example, Figure 7 As shown, Figure 7 It includes two ring networks Ring1 and Ring2. The rings can be broken through Ring1 and Ring2 respectively (that is, the rings are broken at different times). PE1 and PE2 use the ring breaking protocol message on Ring1, and PE3 and PE4 synchronize the ring breaking protocol message on Ring2.
[0101] 403. The first PE sends an NLRI message to the second PE. Correspondingly, the second PE receives the NLRI message sent by the first PE.
[0102] After the first PE receives the NLRI message, the first PE sends the NLRI message to the second PE.
[0103] 404. The second PE decapsulates the NRLI message to obtain a loop breaking protocol message.
[0104] After receiving the NLRI, the second PE decapsulates the NLRI to obtain the loop breaking protocol message.
[0105] 405. The second PE sends a loop breaking protocol message to the second CE.
[0106] The second PE can determine the next hop device through the fields in the NLRI message.
[0107] Optionally, the second PE determines to send a loop breaking protocol message to the second CE message according to MPLS Label 1 in the NLRI message.
[0108] Optionally, if the network topology changes, the second PE clears the media access control (MAC) table and the address resolution protocol (ARP) table. This prevents the second PE from transmitting packets based on the MAC table and ARP table corresponding to the original network topology (i.e., avoids invalid transmission). For example, if the second PE receives a TC-BPDU in the NLRI sent by the first PE, the second PE clears the MAC table and the ARP table.
[0109] In the embodiment of the present application, a loop breaking protocol can be transmitted between PEs through EVPN, which is equivalent to the Layer 2 connection between PEs being opened, and normal loop breaking is performed on the CE ring, so that EVPN can achieve transparent transmission in a ring networking or U-shaped networking scenario, so as to form a blocking point on the ring and provide link and node protection for the services on the ring.
[0110] Corresponding to the method provided in the above method embodiment, the present application embodiment also provides a corresponding device, including a module for executing the corresponding module of the above embodiment. The module can be software, hardware, or a combination of software and hardware.
[0111] See also Figure 8 In one embodiment of a communication device 800 in the present application, the communication device 800 may be a first PE. Alternatively, the communication device 800 may be a component of the first PE (e.g., a processor, a chip, or a chip system). The communication device 800 may be applicable to a multi-homing multi-active scenario in a ring network or a square network. The communication device 800 includes:
[0112] The receiving unit 801 is configured to receive a loop breaking protocol message sent by a first user edge device CE, where the loop breaking protocol message is used to avoid a network loop in a ring network;
[0113] A processing unit 802 is configured to encapsulate a loop breaking protocol message based on the network layer reachability information NLRI to obtain an NLRI message;
[0114] The sending unit 803 is configured to send an NLRI message to the second operator edge device PE, where the NLRI message is used for the second PE to receive the loop breaking protocol message.
[0115] Optionally, the processing unit 802 is further configured to clear the stored Media Access Control (MAC) table and Address Resolution Protocol (ARP) table if the network topology where the communication device is located changes.
[0116] Optionally, the processing unit 802 is further configured to control a transmission range of the NLRI message.
[0117] In this embodiment, the operations performed by each unit in the communication device are the same as those described above. Figure 3 、 Figure 4 or Figure 7 The operations performed by the first PE in the illustrated embodiment are similar and will not be described again here.
[0118] In this embodiment, after the receiving unit 801 receives the loop breaking protocol message, the processing unit 802 can encapsulate the loop breaking protocol message based on NLRI and send the NLRI message to the second PE through the sending unit 803. That is, the loop breaking protocol is transmitted between the PEs through EVPN, which is equivalent to the Layer 2 connection between the PEs being established, and normal loop breaking is performed on the CE ring. In this way, in a ring networking or a U-shaped networking scenario, EVPN can achieve transparent transmission, so as to form a blocking point on the ring and provide link and node protection for the services on the ring.
[0119] See also Figure 9 The present application provides another communication device 900, which can be a second PE. Alternatively, it can be a component of the second PE (e.g., a processor, chip, or chip system). The communication device 900 can be applied to multi-homing multi-active scenarios in a ring network or a square network. The communication device 900 includes:
[0120] The receiving unit 901 is configured to receive a network layer reachability information NLRI message sent by a first operator edge device PE;
[0121] The processing unit 902 is configured to decapsulate the NLRI message and obtain a loop breaking protocol message in the NLRI message, where the loop breaking protocol message is used to avoid network loops in a ring network.
[0122] The sending unit 903 is configured to send a loop breaking protocol message to the second CE.
[0123] Optionally, the processing unit 902 is further configured to clear the stored Media Access Control (MAC) table and Address Resolution Protocol (ARP) table if the network topology where the communication device is located changes.
[0124] In this embodiment, the operations performed by each unit in the communication device are the same as those described above. Figure 3 、 Figure 4 or Figure 7 The operations performed by the second PE in the illustrated embodiment are similar and will not be described again here.
[0125] In this embodiment, after the receiving unit 901 receives the NLRI message, the processing unit 902 can decapsulate the NLRI message to obtain a loop breaking protocol message, and send the loop breaking protocol message to the second CE through the sending unit 903. That is, the loop breaking protocol is transmitted between PEs through EVPN, which is equivalent to the Layer 2 connection between PEs being opened, and normal loop breaking is performed on the CE ring, thereby realizing that in a ring networking or a U-shaped networking scenario, EVPN can achieve transparent transmission, so as to form a blocking point on the ring and provide link and node protection for the services on the ring.
[0126] See also Figure 10 The present application provides another communication device 1000, which may be a first PE. Alternatively, it may be a component of the first PE (e.g., a processor, a chip, or a chip system). The communication device 1000 may be applicable to multi-homing multi-active scenarios in a ring network or a square network. The communication device 1000 may include, but is not limited to, a processor 1001, a communication port 1002, a memory 1003, and a bus 1004. In the embodiment of the present application, the processor 1001 is used to control the operation of the communication device 1000.
[0127] In addition, the processor 1001 can be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, and so on. Those skilled in the art will clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0128] It should be noted that Figure 10 The communication device shown can be used to implement Figure 3 、 Figure 4 or Figure 7 The functions of the steps executed by the first PE in the corresponding method embodiment and the technical effects corresponding to the first PE are achieved. Figure 10 For the specific implementation of the communication device shown, please refer to Figure 3 、 Figure 4 or Figure 7 The descriptions in the corresponding method embodiments will not be repeated here one by one.
[0129] See also Figure 11The present application provides another communication device 1100, which can be a second PE. Alternatively, it can be a component of the second PE (e.g., a processor, chip, or chip system). The communication device 1100 can be applicable to multi-homing multi-active scenarios in ring networks or U-shaped networks. The communication device 1100 can include, but is not limited to, a processor 1101, a communication port 1102, a memory 1103, and a bus 1104. In the embodiment of the present application, the processor 1101 is used to control the actions of the communication device 1100.
[0130] In addition, the processor 1101 can be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, and so on. Those skilled in the art will clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0131] It should be noted that Figure 11 The communication device shown can be used to implement Figure 3 、 Figure 4 or Figure 7 The functions of the steps performed by the second PE in the corresponding method embodiment and the technical effects corresponding to the second PE are achieved. Figure 11 For the specific implementation of the communication device shown, please refer to Figure 3 、 Figure 4 or Figure 7 The descriptions in the corresponding method embodiments will not be repeated here one by one.
[0132] The embodiment of the present application further provides a computer-readable storage medium storing one or more computer-executable instructions. When the computer-executable instructions are executed by a processor, the processor executes a method as a possible implementation of the communication device in the aforementioned embodiment, wherein the communication device may be specifically the aforementioned Figure 3 、 Figure 4 or Figure 7 The communication device in the corresponding method embodiment.
[0133] The embodiment of the present application further provides a computer program product storing one or more computers. When the computer program product is executed by the processor, the processor executes the method of the possible implementation of the above-mentioned communication device, wherein the communication device can be specifically the above-mentioned Figure 3 、 Figure 4 or Figure 7 The first PE and / or the second PE in the corresponding method embodiment.
[0134] The embodiment of the present application also provides a chip system, which includes a processor for supporting a communication device to implement the functions involved in the possible implementation of the above-mentioned communication device. In one possible design, the chip system may also include a memory for storing program instructions and data necessary for the communication device. The chip system may be composed of a chip, or may include a chip and other discrete devices, wherein the communication device may specifically be the aforementioned Figure 3 、 Figure 4 or Figure 7 The first PE and / or the second PE in the corresponding method embodiment.
[0135] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0136] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0137] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0138] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0139] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
Claims
1. A communication method, characterized in that: The method is applicable to a multi-homing multi-active scenario in a ring network or a square network, and the method includes: The first operator edge device PE receives a loop breaking protocol message sent by the first customer edge device CE, where the loop breaking protocol message is used to avoid a network loop in the ring network; The first PE encapsulates the loop breaking protocol message based on the network layer reachability information NLRI to obtain an NLRI message; The first PE sends the NLRI message to the second PE, where the NLRI message is used for the second PE to receive the loop breaking protocol message.
2. The method according to claim 1, characterized in that The ring breaking protocol message includes a bridge protocol data unit BPDU message.
3. The method according to claim 1, characterized in that The ring breaking protocol message includes an Ethernet multi-ring protection technology EPRS message.
4. The method according to any one of claims 1 to 3, characterized in that The NLRI message carries an instance identifier, and the instance identifier is used to indicate the instance to which the NLRI message belongs.
5. The method according to any one of claims 1 to 4, characterized in that The NLRI message carries a process identifier of a layer 2 gateway, and the process identifier is used to indicate the process to which the NLRI message belongs.
6. The method according to any one of claims 1 to 4, characterized in that The method further comprises: If the network topology where the first PE is located changes, the first PE clears the stored Media Access Control (MAC) table and Address Resolution Protocol (ARP) table.
7. The method according to any one of claims 1 to 4, characterized in that The method further comprises: The first PE controls a transmission range of the NLRI message.
8. The method according to claim 7, characterized in that The first PE controls a transmission range of the NLRI message, including: The first PE controls the transmission range of the NLRI by configuring a source Internet Protocol IP address and a destination IP address, where the source IP address is the address of the first PE and the destination IP address is the address of the second PE.
9. A communication method, characterized in that: The method is applicable to a multi-homing multi-active scenario in a ring network or a square network, and the method includes: The second operator edge device PE receives the network layer reachability information NLRI message sent by the first PE; The second PE decapsulates the NLRI message to obtain a loop breaking protocol message in the NLRI message, where the loop breaking protocol message is used to avoid a network loop in the ring network; The second PE sends the loop breaking protocol message to the second CE.
10. The method according to claim 9, characterized in that The method further comprises: If the network topology where the second PE is located changes, the second PE clears the stored Media Access Control (MAC) table and Address Resolution Protocol (ARP) table.
11. The method according to claim 9 or 10, characterized in that The ring breaking protocol message includes a bridge protocol data unit BPDU message.
12. The method according to claim 9 or 10, characterized in that The ring breaking protocol message includes an Ethernet multi-ring protection technology EPRS message.
13. The method according to claim 9 or 10, characterized in that The NLRI message carries an instance identifier, and the instance identifier is used to indicate the instance to which the NLRI message belongs.
14. The method according to claim 9 or 10, characterized in that The NLRI message carries a process identifier of a layer 2 gateway, and the process identifier is used to indicate the process to which the NLRI message belongs.
15. A communication device, characterized in that: The communication device is applicable to a multi-homing multi-active scenario of a ring network or a square network, and the communication device includes: A receiving unit, configured to receive a ring breaking protocol message sent by a first user edge device CE, wherein the ring breaking protocol message is used to avoid a network loop in the ring network; A processing unit, configured to encapsulate the loop breaking protocol message based on the network layer reachability information NLRI to obtain an NLRI message; The sending unit is configured to send the NLRI message to the second operator edge device PE, where the NLRI message is used for the second PE to receive the loop breaking protocol message. The communication device according to claim 15 , wherein: The ring breaking protocol message includes a bridge protocol data unit BPDU message.
17. The communication device according to claim 15, characterized in that The ring breaking protocol message includes an Ethernet multi-ring protection technology EPRS message.
18. The communication device according to any one of claims 15 to 17, characterized in that: The NLRI message carries an instance identifier, and the instance identifier is used to indicate the instance to which the NLRI message belongs.
19. The communication device according to any one of claims 15 to 17, characterized in that: The NLRI message carries a process identifier of a layer 2 gateway, and the process identifier is used to indicate the process to which the NLRI message belongs.
20. The communication device according to any one of claims 15 to 17, characterized in that: The processing unit is further configured to clear the stored Media Access Control (MAC) table and Address Resolution Protocol (ARP) table if the network topology where the communication device is located changes.
21. The communication device according to any one of claims 15 to 17, characterized in that: The processing unit is further configured to control a transmission range of the NLRI message.
22. The communication device according to claim 21, wherein: The processing unit is specifically configured to control the transmission range of the NLRI by configuring a source Internet Protocol address (IP address) and a destination IP address, where the source IP address is the address of the first operator's edge device (PE), and the destination IP address is the address of the second PE.
23. A communication device, characterized in that: The communication device is applicable to a multi-homing multi-active scenario of a ring network or a square network, and the communication device includes: A receiving unit, configured to receive a network layer reachability information NLRI message sent by a first operator edge device PE; a processing unit, configured to decapsulate the NLRI message to obtain a loop breaking protocol message in the NLRI message, wherein the loop breaking protocol message is used to avoid a network loop in the ring network; The sending unit is configured to send the loop breaking protocol message to the second CE.
24. The communication device according to claim 23, wherein: The processing unit is further configured to clear the stored Media Access Control (MAC) table and Address Resolution Protocol (ARP) table if the network topology where the communication device is located changes.
25. The communication device according to claim 23 or 24, characterized in that The ring breaking protocol message includes a bridge protocol data unit BPDU message.
26. The communication device according to claim 23 or 24, characterized in that The ring breaking protocol message includes an Ethernet multi-ring protection technology EPRS message.
27. The communication device according to claim 23 or 24, characterized in that The NLRI message carries an instance identifier, and the instance identifier is used to indicate the instance to which the NLRI message belongs.
28. The communication device according to claim 23 or 24, characterized in that The NLRI message carries a process identifier of a layer 2 gateway, and the process identifier is used to indicate the process to which the NLRI message belongs.
29. A communication device, characterized in that: The method comprises a processor coupled to a memory, wherein the memory is used to store computer programs or instructions, and the processor is used to execute the computer program or instructions in the memory, so that the method according to any one of claims 1 to 8 is executed.
30. A communication device, characterized in that: The method comprises a processor coupled to a memory, wherein the memory is used to store computer programs or instructions, and the processor is used to execute the computer program or instructions in the memory, so that the method according to any one of claims 9 to 14 is performed.
31. A communication system, characterized in that: Including: the communication device according to claim 29, and / or, the communication device according to claim 30.
32. A chip, characterized in that: The chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run a computer program or instruction so that the method described in any one of claims 1 to 8 is executed, or the method described in any one of claims 9 to 14 is executed.
33. A computer storage medium, characterized in that The computer storage medium stores instructions, which, when executed on a computer, enable the computer to perform the method according to any one of claims 1 to 8, or enable the computer to perform the method according to any one of claims 9 to 14.
Citation Information
Patent Citations
Two-layer virtual private network internetworking method and provider edge (PE) equipment
CN102315999A
Access method and device of Ethernet virtual network
CN105791072A