CN116980350A - Method and device for determining pseudo-wire state - Google Patents

Method and device for determining pseudo-wire state Download PDF

Info

Publication number
CN116980350A
CN116980350A CN202210421685.1A CN202210421685A CN116980350A CN 116980350 A CN116980350 A CN 116980350A CN 202210421685 A CN202210421685 A CN 202210421685A CN 116980350 A CN116980350 A CN 116980350A
Authority
CN
China
Prior art keywords
communication device
pseudowire
state
indication information
evpn
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210421685.1A
Other languages
Chinese (zh)
Inventor
任化军
付正
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202210421685.1A priority Critical patent/CN116980350A/en
Publication of CN116980350A publication Critical patent/CN116980350A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application discloses a method for determining a state of a pseudo wire, wherein a first communication device can send a first EVPN route comprising first indication information to a second communication device, and the first indication information is used for indicating to negotiate the state of the first pseudo wire through a master-slave mode. The first pseudowire is a pseudowire between the first communication device and the second communication device. The first communication device may also transmit a second EVPN route including second indication information for indicating that a state of a second pseudowire, which is a pseudowire between the first communication device and the third communication device, is negotiated through the master-slave mode, to the third communication device. In one example, when the first communication device supports both L2VPN traffic and L2EVPN traffic, traffic load sharing imbalance across the network is not caused even if the traffic configured by the first communication device evolves from L2VPN traffic to L2EVPN traffic.

Description

Method and device for determining pseudo-wire state
Technical Field
The present application relates to the field of communications, and in particular, to a method and apparatus for determining a pseudowire state.
Background
The communication device may configure layer 2 ethernet virtual private network (layer 2 ethernet virtual private network,L2EVPN) traffic. L2EVPN traffic may include EVPN virtual private line traffic (virtual private wire service, VPWS) and EVPN virtual private local area network traffic (virtual private lan service, VPLS).
Some communication devices may be compatible with both L2EVPN service and legacy L2VPN service, and for communication devices that are compatible with both L2EVPN service and legacy L2VPN service, the configured service may evolve from legacy L2VPN service to L2EVPN service. Currently, when a service configured by a communication device compatible with both the L2EVPN service and the conventional L2VPN service is evolved from the conventional L2VPN service to the L2EVPN service, traffic load sharing imbalance of the entire network may be caused. In the following description, the "conventional L2VPN service" will be simply referred to as "L2VPN service".
Therefore, a solution is urgently needed to solve the above-mentioned problems.
Disclosure of Invention
The embodiment of the application provides a method for determining a pseudo-state, which can avoid unbalanced network traffic load sharing caused by evolution of a service configured by a communication device from an L2VPN service to an L2EVPN service.
In a first aspect, an embodiment of the present application provides a method for determining a pseudowire state, where the method may be applied to a first communication device. In one example, the first communication apparatus may send a first EVPN route to the second communication apparatus, where the first EVPN route includes first indication information for indicating that a state of a first pseudowire is negotiated through a master/slave (M/S) mode. The first pseudowire is a pseudowire between the first communication device and the second communication device. The first communication device may further send a second EVPN route to the third communication device, where the second EVPN route includes second indication information for indicating that a state of a second pseudowire is negotiated through a master-slave mode, where the second pseudowire is a pseudowire between the first communication device and the third communication device. It can be seen that in the embodiment of the present application, the status of the pseudowire can be negotiated through the master-slave mode. In one example, when the first communication device supports both the L2VPN service and the L2EVPN service, even if the service configured by the first communication device evolves from the L2VPN service to the L2EVPN service, since the first communication device may adopt the master-slave mode to negotiate the states of the first pseudowire and the second pseudowire, the manner of determining the states of the first pseudowire and the second pseudowire before and after the evolution is the master-slave mode, and therefore, even if the service configured by the first communication device evolves from the L2VPN service to the L2EVPN service, the traffic load sharing imbalance of the whole network will not be caused.
In one possible implementation manner, the first EVPN route includes a first extended community attribute, and the first indication information may be carried by the first extended community attribute, and in this case, after the second communication device receives the first EVPN route, the second communication device may parse the first EVPN route to obtain the first indication information carried in the first extended community attribute, so as to determine to negotiate the state of the first pseudowire through a master-slave mode.
In one possible implementation, the first indication information may be carried in a reserved field of the first extended community attribute. In this case, the first indication information is carried in the first extended community attribute and sent to the second communication device by directly using the reserved field existing in the first extended community attribute without extending the first extended community attribute.
In one possible implementation, the first extended community attribute may be a two-layer EVPN extended community attribute.
In one possible implementation manner, the second EVPN route includes a second extended community attribute, and the second indication information may be carried by the second extended community attribute, and in this case, after the second communication device receives the second EVPN route, the second communication device may parse the second EVPN route to obtain the second indication information carried in the second extended community attribute, so as to determine to negotiate the state of the second pseudowire through a master-slave mode.
In one possible implementation, the second indication information may be carried in a reserved field of the second extended community attribute. In this case, the second indication information is carried in the second extended community attribute and sent to the second communication device by directly using the reserved field existing in the second extended community attribute without extending the second extended community attribute.
In one possible implementation, the second extended community attribute may be a two-layer EVPN extended community attribute.
In one possible implementation manner, the first EVPN route further includes third indication information in addition to the first indication information, where the third indication information indicates a state of the first pseudowire. For this case, by the first EVPN route, not only the second communication apparatus can be notified to negotiate the state of the first pseudowire in the master-slave mode, but also the state of the first pseudowire designated by the first communication apparatus can be transmitted to the second communication apparatus by the first EVPN route. Similarly, the second EVPN route includes fourth indication information in addition to the second indication information, where the fourth indication information is used to indicate a state of the second pseudowire. For this case, by the second EVPN route, not only the second communication apparatus can be notified to negotiate the state of the second pseudowire in the master-slave mode, but also the state of the second pseudowire designated by the first communication apparatus can be transmitted to the second communication apparatus by the second EVPN route.
In one possible implementation, the state of the first pseudowire specified by the first communication device is active, and the state of the second pseudowire specified by the first communication device is standby.
In one possible implementation, considering whether the state of the first pseudowire specified by the first communication device through the first EVPN route and the state of the second pseudowire specified by the first communication device through the second EVPN route are in effect, is affected by the availability states of the first pseudowire and the second pseudowire. Wherein the availability status of the first pseudowire refers to whether the first pseudowire can be used for forwarding data, and whether the first pseudowire can be used for forwarding data can be determined according to the status of the L2EVPN instance associated with the first pseudowire. Similarly, the availability status of the second pseudowire refers to whether the second pseudowire can be used to forward data, and whether the second pseudowire can be used to forward data can be determined based on the status of the L2EVPN instance associated with the second pseudowire. In view of this, in one example, when the state of the first pseudowire specified by the first communication device is active and the state of the second pseudowire specified by the first communication device is standby, the first communication device may further determine, in conjunction with the available state of the first pseudowire, a state in which the first pseudowire and the second pseudowire can take effect. In one example, the first communication device may receive a third EVPN route sent by the second communication device, where the third EVPN route includes fifth indication information, where the fifth indication information is used to indicate that a state of an L2EVPN instance locally stored by the second communication device and associated with the first pseudowire is active. For this case, the first communication apparatus may determine that the state of the first pseudowire is active and that the state of the second pseudowire is standby based on the fifth instruction information.
In one possible implementation manner, the first communication apparatus may re-trigger negotiation of the pseudowire state when the pseudowire currently serving as the active pseudowire fails, and designate the state of the failed pseudowire as standby and designate the state of the pseudowire that is not failed as active when the negotiation of the pseudowire state is performed. In other words, when the first pseudowire is a standby pseudowire and the second pseudowire is a primary pseudowire, a first communication device may send the first EVPN route to the second communication device and the second EVPN route to the third communication device in response to determining that the second pseudowire failed. At this time, the first EVPN route carries first indication information and third indication information, the third indication information is used for indicating that the state of the first pseudo wire is active, the second EVPN route carries second indication information and fourth indication information, and the fourth indication information is used for indicating that the state of the second pseudo wire is standby.
In one possible implementation, the first communication device supports EVPN VPWS, for which case, in one example, the first EVPN route is an EVPN instance ethernet auto discovery (EVPN instance auto-discovery, evi-ad) route.
In one possible implementation, the first communication device supports EVPN VPLS, for which case, in one example, the first EVPN route is an inclusive multicast (inclusive multicast, IMET) route.
In a second aspect, an embodiment of the present application provides a method for determining a pseudowire state, where the method may be applied to a second communication device. In one example, the second communication device may receive a first EVPN route sent by the first communication device, where the first EVPN route includes first indication information and second indication information. The first indication information is used for indicating the state of a first pseudo wire determined through a master-slave mode, and the second indication information is used for indicating the first state of the first pseudo wire, wherein the first pseudo wire is a pseudo wire between the first communication device and the second communication device. After the second communication device receives the first EVPN route, it may determine that the state of the first pseudowire is the first state based on the first indication information and the second indication information. It can be seen that in the embodiment of the present application, the state of the pseudowire may be negotiated through the master-slave mode, and in particular, the second communication device may determine the state of the first pseudowire as the first state specified by the first communication device. In one example, when the first communication device supports both the L2VPN service and the L2EVPN service, even if the service configured by the first communication device evolves from the L2VPN service to the L2EVPN service, since the first communication device may adopt the master-slave mode to negotiate the state of the first pseudowire, before and after the evolution, the mode of determining the state of the first pseudowire is the master-slave mode, and therefore, even if the service configured by the first communication device evolves from the L2VPN service to the L2EVPN service, the traffic load sharing imbalance of the whole network will not be caused.
In one possible implementation, the first EVPN route includes a first extended community attribute that includes the first indication information.
In a possible implementation, the first indication information is carried in a reserved field of the first extended community attribute.
In one possible implementation, the first extended community attribute is a two-layer EVPN extended community attribute.
In one possible implementation, the method further includes: and sending a second EVPN route to the first communication device, wherein the second EVPN route comprises third indication information, and the third indication information is used for indicating the state of an L2EVPN instance which is locally stored by the second communication device and is associated with the first pseudo wire.
In one possible implementation manner, the second communication device may determine that the state of the first pseudowire is the first state based on the first indication information, the second indication information, and a state of an L2EVPN instance locally stored by the second communication device and associated with the first pseudowire. For example, when the state of the L2EVPN instance associated with the first pseudowire indicates that the second pseudowire is capable of operating in the first state, the state of the first pseudowire is determined to be the first state.
In one possible implementation manner, the first state indicated by the second indication information is active, and the state of the L2EVPN instance locally stored by the second communication device and associated with the first pseudowire is active, and then, since the state of the L2EVPN instance associated with the first pseudowire is active, it is indicated that the first pseudowire may operate in the active state, so for this case, the second communication device may determine that the state of the first pseudowire is active.
In one possible implementation manner, the first state indicated by the second indication information is standby, and the state of the L2EVPN instance locally stored by the second communication device and associated with the first pseudowire is active, which indicates that the first pseudowire may operate in the standby state, so for this case, the second communication device may determine that the state of the first pseudowire is standby.
In one possible implementation manner, the first state indicated by the second indication information is standby, and the state of the L2EVPN instance locally stored by the second communication device and associated with the first pseudowire is standby, and then, since the state of the L2EVPN instance associated with the first pseudowire is standby, it is indicated that the first pseudowire may operate in the standby state, so for this case, the second communication device may determine that the state of the first pseudowire is standby.
In one possible implementation manner, the first pseudowire is a primary pseudowire, and the receiving the first EVPN route sent by the first communication device includes: and after the first pseudo wire fails, receiving the first EVPN route sent by the first communication device.
In one possible implementation, the second communication device supports an EVPN VPWS, and the first EVPN route is a evi-ad route.
In one possible implementation, the second communication device supports EVPN VPLS, and the first EVPN route is an IMET route.
In one possible implementation, when the second communication device configures the EVPN VPLS, the second communication device may have problems of traffic detouring and wasting network resources when forwarding service data. For example, a pseudowire between the first communication device and the second communication device is a primary pseudowire, and a pseudowire between the first communication device and the third communication device is a backup pseudowire. When the second communication device receives service data sent by the first communication device through a pseudo wire between the first communication device and the second communication device, the second communication device may not directly forward the service data to a corresponding Customer Edge (CE), but forward the service data to the third communication device first, and then forward the service data to the CE by the third communication device. To avoid this problem, in one example, the second communication device, after determining the status of the first pseudowire, may further perform a designated forwarder table (designated forwarder, DF) election based on the status of the first pseudowire, wherein the DF may forward traffic data directly to the corresponding CE.
In one possible implementation, if the second communication device determines that the state of the first pseudowire is active, the second communication device may determine that the second communication device is DF.
In one possible implementation, if the second communication device determines that the state of the first pseudowire is standby, the second communication device may determine that the second communication device is a non-designated forwarder.
In a third aspect, an embodiment of the present application provides a first communication apparatus, where the first communication apparatus includes a transceiver unit and a processing unit.
In one example: the transceiver unit is configured to perform operations related to receiving and/or transmitting performed by the first communication device in the foregoing first aspect and various possible implementations of the first aspect; the processing unit is configured to perform operations other than the operations related to receiving and/or transmitting performed by the first communication device in the above first aspect and various possible implementations of the first aspect. In a specific implementation, the transceiver unit may include a receiving unit and/or a transmitting unit, where the receiving unit is configured to perform a reception-related operation, and the transmitting unit is configured to perform a transmission-related operation.
In a specific implementation, the first communication device includes: a transmitting unit configured to: transmitting a first Ethernet Virtual Private Network (EVPN) route to a second communication device, wherein the first EVPN route comprises first indication information which is used for indicating a state of a first pseudo wire negotiated through a master-slave mode, and the first pseudo wire is a pseudo wire between the first communication device and the second communication device; and sending a second EVPN route to a third communication device, wherein the second EVPN route comprises second indication information which is used for indicating a state of negotiating a second pseudo wire through a master-slave mode, and the second pseudo wire is a pseudo wire between the first communication device and the third communication device.
In one possible implementation, the first EVPN route includes a first extended community attribute that includes the first indication information.
In a possible implementation, the first indication information is carried in a reserved field of the first extended community attribute.
In one possible implementation, the first extended community attribute is a two-layer EVPN extended community attribute.
In one possible implementation, the second EVPN route includes a second extended community attribute that includes the second indication information.
In one possible implementation manner, the first EVPN route further includes third indication information, where the third indication information indicates a state of the first pseudowire, and the second EVPN route further includes fourth indication information, where the fourth indication information is used to indicate a state of the second pseudowire.
In one possible implementation, the state of the first pseudowire is primary active, and the state of the second pseudowire is standby.
In one possible implementation, the first communication device further includes: a receiving unit, configured to receive a third EVPN route sent by the second communication device, where the third EVPN route includes fifth indication information, where the fifth indication information is used to indicate that a state of an L2EVPN instance locally stored by the second communication device and associated with the first pseudowire is active; and the processing unit is used for determining that the state of the first pseudo wire is active and determining that the state of the second pseudo wire is standby based on the fifth indication information.
In one possible implementation manner, the first pseudowire is a standby pseudowire, the second pseudowire is a primary pseudowire, and the sending unit is configured to: in response to determining the second pseudowire failure, the first EVPN route is sent to the second communication device and the second EVPN route is sent to the third communication device.
In one possible implementation, the first communication device supports EVPN virtual private line traffic VPWS, and the first EVPN route is an EVPN instance ethernet auto-discovery evi-ad route.
In one possible implementation, the first communication device supports EVPN virtual private line local area network service VPLS, and the first EVPN route is an inclusive multicast IMET route.
In a fourth aspect, an embodiment of the present application provides a second communication device, where the second communication device includes a transceiver unit and a processing unit.
In one example: the transceiver unit is configured to perform the operations related to receiving and/or transmitting performed by the second communication device in the foregoing second aspect and various possible implementation manners of the second aspect; the processing unit is configured to perform operations other than the operations related to receiving and/or transmitting performed by the second communication device in the above second aspect and various possible implementations of the second aspect. In a specific implementation, the transceiver unit may include a receiving unit and/or a transmitting unit, where the receiving unit is configured to perform a reception-related operation, and the transmitting unit is configured to perform a transmission-related operation.
In a specific implementation, the second communication device includes: a receiving unit and a processing unit. The receiving unit is configured to receive a first EVPN route sent by a first communication device, where the first EVPN route includes first indication information and second indication information, the first indication information is used to indicate that a state of a first pseudowire is determined by a master-slave mode, the first pseudowire is a pseudowire between the first communication device and the second communication device, and the second indication information is used to indicate a first state of the first pseudowire; the processing unit is configured to determine, based on the first indication information and the second indication information, a state of the first pseudowire as the first state.
In one possible implementation, the first EVPN route includes a first extended community attribute that includes the first indication information.
In a possible implementation, the first indication information is carried in a reserved field of the first extended community attribute.
In one possible implementation, the first extended community attribute is a two-layer EVPN extended community attribute.
In one possible implementation manner, the second communication device further includes: a sending unit, configured to send a second EVPN route to the first communication device, where the second EVPN route includes third indication information, where the third indication information is used to indicate a state of an L2EVPN instance locally stored by the second communication device and associated with the first pseudowire.
In a possible implementation manner, the processing unit is configured to: and determining that the state of the first pseudo wire is the first state based on the first indication information, the second indication information and the state of an L2EVPN instance locally stored by the second communication device and associated with the first pseudo wire.
In one possible implementation, the first state is active, and the state of the L2EVPN instance locally stored by the second communication device and associated with the first pseudowire is active.
In one possible implementation, the first state is standby, and the state of the L2EVPN instance locally stored by the second communication device and associated with the first pseudowire is active.
In one possible implementation, the first state and the state of the L2EVPN instance locally stored by the second communication device in association with the first pseudowire are both standby.
In one possible implementation manner, the first pseudowire is a primary pseudowire, and the receiving unit is configured to: and after the first pseudo wire fails, receiving the first EVPN route sent by the first communication device.
In one possible implementation, the second communication device supports EVPN virtual private line service VPWS, and the first EVPN route is an EVPN instance ethernet auto-discovery route evi-ad route.
In one possible implementation, the second communication device supports EVPN virtual private line local area network service VPLS, and the first EVPN route is an inclusive multicast IMET route.
In a possible implementation manner, the processing unit is further configured to: and if the state of the first pseudo wire is determined to be active, determining that the second communication device is a designated forwarder DF.
In a possible implementation manner, the processing unit is further configured to: and if the state of the first pseudo wire is determined to be standby, determining that the second communication device is a non-designated forwarder (NDF).
In a fifth aspect, the present application provides a communication device comprising a memory and a processor; the memory is used for storing program codes; the processor is configured to execute instructions in the program code to cause the communication device to perform the method according to any one of the first aspect and the first aspect above, or to cause the communication device to perform the method according to any one of the second aspect and the second aspect above.
In a sixth aspect, the present application provides a communications device comprising a communications interface and a processor, the communications interface and the processor being operable to cause the communications device to perform the method of any preceding aspect and part or all of the operations of any implementation of the method of any preceding aspect. In a specific implementation manner, the communication interface is configured to perform the transceiving operations performed by the communication device according to any one of the above first aspect and the first aspect, and the processor is configured to perform other operations performed by the communication device according to any one of the above first aspect and the first aspect, except for the transceiving operations; alternatively, the communication interface is configured to perform the transceiving operation performed by the communication device according to any of the second aspect and the second aspect, and the processor is configured to perform the operation other than the transceiving operation performed by the communication device according to any of the second aspect and the second aspect.
In a seventh aspect, embodiments of the present application provide a computer readable storage medium comprising instructions or a computer program which, when run on a processor, performs the method of any of the first aspects above, or performs the method of any of the second aspects above.
In an eighth aspect, embodiments of the present application provide a computer program product comprising a computer program product which, when run on a processor, performs the method of any one of the first aspect and the first aspect above, or performs the method of any one of the second aspect and the second aspect above.
In a ninth aspect, an embodiment of the present application provides a communication system, including: a first communication device performing the method of the first aspect above and any of the first aspects above and a second communication device performing the method of the second aspect above and any of the second aspects above.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings may be obtained according to the drawings without inventive effort to those skilled in the art.
Fig. 1 is a schematic diagram of an exemplary application scenario provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a two-layer EVPN extended community attribute according to an embodiment of the present application;
fig. 3 is a signaling interaction diagram of a method for determining a pseudowire state according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a pseudowire state extension group according to an embodiment of the present application;
fig. 5 is a flowchart of a method for determining a pseudo-status according to an embodiment of the present application;
fig. 6 is a flowchart of a method for determining a pseudo-status according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a communication device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a communication device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a communication device according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides a method for determining a pseudo-state, which can avoid unbalanced network traffic load sharing caused by evolution of a communication device from an L2VPN to an L2 EVPN.
For easy understanding, possible application scenarios of the embodiments of the present application will be described first.
Referring to fig. 1, an exemplary application scenario is schematically shown in the embodiment of the present application.
As shown in fig. 1, a Customer Edge (CE) 1 is connected to a Provider Edge (PE) 1, a pseudo wire (pseudo wire) 1 is established between PE1 and PE2, a PW2 is established between PE1 and PE3, PE2 configures an L2VPN service, PE3 configures an L2EVPN service, and PE1 is compatible with both the L2VPN service and the L2EVPN service. In one example, the PE1 configured traffic may evolve from L2VPN traffic to L2EVPN traffic. After the service configured by the PE1 is evolved from the L2VPN service to the L2EVPN service, the service configured by the PE2 is also evolved from the L2VPN service to the L2EVPN service. PE2 and PE3 are both connected to CE2, and traffic data from CE1 can be forwarded to CE2 via PW1 and/or PW 2.
In one example, PW1 and PW2 may be backups of each other, e.g., in the case of a service, the traffic of the service may be forwarded using a primary pseudowire, with a backup pseudowire serving as a backup of the primary pseudowire.
Currently, the manner in which the L2VPN and L2EVPN determine pseudowire states is inconsistent.
When PE1 configures L2VPN traffic, the states of PW1 and PW2 are determined according to the M/S mode. As one example: PE1 is used as a master endpoint, PE2 and PE3 are used as slave endpoints, and the states of PW1 and PW2 are determined by PE 1. Regarding the M/S mode of the L2VPN, reference may be made to the related description of request for comments (request for comments, RFC) 6870, which is not described in detail herein.
When PE1 configures L2EVPN service, the states of PW1 and PW2 are determined by adopting independent modes. Specifically: the state of the corresponding pseudowire for PE1 may be notified by PE2 and PE 3.
In one example, the L2EVPN service may include an EVPN VPWS, and when PE1 configures the EVPN VPWS, PE2 and PE3 may send two layers of EVPN extended community attributes (attributes extended community) to the PE1, respectively, and inform the states of PE1PW1 and PW2 through P flag bits and B flag bits in the two layers of EVPN extended community attributes. Fig. 2 is a schematic structural diagram of a two-layer EVPN extended community attribute according to an embodiment of the present application. As shown in fig. 2, the two-layer EVPN extended community attribute may include 8 fields, respectively:
must be a 0 (mult be zero, MBZ) field, an M flag bit, 2 reserved fields (RES), an F flag bit, a C flag bit, a P flag bit, and a B flag bit.
Regarding the two-layer EVPN extended community attribute, reference may be made to the related description of RFC8214, which is not described in detail herein.
In one example, the L2EVPN service may include an EVPN VPLS, and when PE1 configures the EVPN VPLS, PE2 and PE3 may send ethernet auto-discovery routes to the PE1, respectively, and inform the state of PE1PW1 and PW2 by extending a community attribute through an ethernet segment identification (Ethernet Segment Identifier, ESI) tag (label) in the ethernet auto-discovery (a-D) routes. Regarding the Ethernet auto-discovery route and ESI-label, reference is made to the relevant description of RFC7432, which is not described in detail here.
Since the manner of determining the states of PW1 and PW2 is inconsistent when PE1 configures the L2VPN service and the L2EVPN service, traffic load sharing imbalance of the entire network may be caused after the service configured by PE1 evolves from the L2VPN service to the L2EVPN service. Illustrating:
when PE1 configures L2VPN service, PW1 is a main pseudo wire, and is used for transmitting service data of service 1, PW2 is a standby pseudo wire. And PW2 is used not only as a backup pseudowire for service 1, but also for transmitting service data for service 2. After the service configured by PE1 evolves to the L2EVPN service, PW2 is determined as the main pseudo wire for transmitting service data 1 according to the pseudo state determining mode of the L2 EVPN. At this time, PW2 is used to transmit not only the service data of service 1 but also the service data of service 2, which results in unbalanced traffic load between PW1 and PW2, and correspondingly, unbalanced traffic load of the entire network.
To solve this problem, the embodiment of the present application provides a method for determining a state of a pseudowire, and the method provided by the embodiment of the present application is described below with reference to the accompanying drawings.
It should be noted that, the communication device mentioned in the embodiment of the present application may be a network device such as a switch, a router, or a part of components on the network device, for example, a board on the network device, a line card, a functional module on the network device, or a chip for implementing the method of the present application, and the embodiment of the present application is not limited specifically. When the communication device is a chip, the transceiver unit for implementing the method may be, for example, an interface circuit of the chip, and the processing unit may be a processing circuit having a processing function in the chip. The communication devices may be directly connected to each other, for example, but not limited to, via an ethernet cable or an optical cable.
The conventional L2VPN mentioned in the embodiment of the present application is a network provided in a public network that can configure point-to-multipoint L2VPN services. The traditional L2VPN has the defects of incapability of realizing load sharing, difficulty in network deployment and the like, and can not meet the requirements of flexible deployment of the L2VPN, improvement of link utilization rate under a CE multi-homing scene and the like. The L2EVPN solves the above problems with conventional L2 VPNs. L2EVPN is defined in RFC7432, which introduces a control plane for controlling the learning of MAC addresses. With respect to the conventional L2VPN and L2EVPN, detailed description is not made here.
Referring to fig. 3, fig. 3 is a signaling interaction diagram of a method for determining a pseudowire state according to an embodiment of the present application. The method 100 shown in fig. 3 may include, for example, the following S101-S106.
In the method 100, the communication device 1, the communication device 2, and the communication device 3 are described as follows:
in one example, the communication device 1 acts as a master endpoint and the communication device 2 and the communication device 3 act as slave endpoints.
In one example, the communication device 1 may configure L2EVPN traffic, e.g., traffic configured by the communication device 1 may evolve from L2VPN traffic to L2EVPN traffic. The communication device 2 and the communication device 3 can configure L2EVPN service.
In one example, the communication device 1 may correspond to the PE1 shown in fig. 1, the communication device 2 may correspond to the PE2 shown in fig. 1, and the communication device 3 may correspond to the PE3 shown in fig. 1.
S101, the communication device 1 sends the EVPN route 1 to the communication device 2, wherein the EVPN route 1 includes indication information 1 and indication information 1', the indication information 1 is used for indicating that the state of the pseudo wire 1 is negotiated through the master-slave mode, the indication information 1' is used for indicating that the state of the pseudo wire 1 is the state 1, and the pseudo wire 1 is the pseudo wire between the communication device 1 and the communication device 2. In one example, the communication device 1 configures EVPN VPWS. When the communication device 1 configures an EVPN VPWS, the EVPN route 1 may be evi-ad route 1, for example. For this case, the identification of the pseudowire 1 may be included in the evi-ad route 1, and the indication information 1 and the identification of the pseudowire 1 may be used together to indicate that the state of the pseudowire 1 is negotiated through the master-slave mode. Accordingly, the indication information 1' and the identification of the pseudowire 1 may be used together to indicate that the state of the pseudowire 1 is state 1. Of course, the EVPN route 1 is not limited to the evi-ad route, but may be another route, and the embodiment of the present application is not limited specifically.
Regarding the identification of the pseudowire 1, the embodiment of the present application is not specifically limited, and in one example, the identification of the pseudowire 1 may be the name of the pseudowire 1; in yet another example, an identification pair consisting of an identification of an ethernet virtual private line service (ethernet virtual private line, EVPL) instance on PE1 and an identification of an EVPL instance on PE2 may be used as the identification of the pseudowire 1.
In yet another example, the communication device 1 configures EVPN VPLS. When the communication apparatus 1 configures EVPN VPLS, the EVPN route 1 may be, for example, an IMET route 1. For this case, the IMET route 1 may include an identification of the pseudowire 1, and the indication information 1 and the identification of the pseudowire 1 may be used together to indicate that the state of the pseudowire 1 is negotiated through the master-slave mode. Accordingly, the indication information 1' and the identification of the pseudowire 1 may be used together to indicate that the state of the pseudowire 1 is state 1. Of course, the EVPN route 1 is not limited to the IMET route, but may be another route, and the embodiment of the present application is not limited specifically.
Regarding the identification of the pseudowire 1, the embodiment of the present application is not specifically limited, and in one example, the identification of the pseudowire 1 may be the name of the pseudowire 1; in yet another example, an identification pair consisting of an identification of an EVI instance on PE1 and an identification of an EVI instance on PE2 may be used as the identification of pseudowire 1.
In one example, an extended community attribute 1 may be included in the EVPN route 1, where the extended community attribute 1 is used to carry the indication information 1. In one example, the indication information 1 may be carried by a reserved field of the extended community attribute 1, and in another example, the indication information 1 may be carried by other fields in the extended community attribute 1, which is not specifically limited in the embodiment of the present application.
The embodiment of the application is not particularly limited to the extended community attribute 1, and the extended community attribute 1 may be any extended community attribute carried in the EVPN route 1. In one example, the extended community attribute 1 may be a two-layer EVPN extended community attribute. With respect to the two-layer EVPN spreading community attribute, reference may be made to fig. 2, which is not described in detail here. In one example, when the extended community attribute 1 is a two-layer EVPN extended community attribute, the indication information 1 may be carried in, for example, an M flag bit of the two-layer EVPN extended community attribute, and, for another example, the indication information 1 may be carried in a reserved field of the two-layer EVPN extended community attribute.
In one example, the EVPN route 1 may include a pseudowire state extension group 1 therein, and the pseudowire state extension group 1 may be used to carry the indication information 1'. Regarding the pseudowire state extension group 1, reference may be made to fig. 4, and fig. 4 is a schematic structural diagram of a pseudowire state extension group according to an embodiment of the present application. As shown in fig. 4, the pseudowire status extension group 1 includes a type (type) field, a pseudowire identification field, and a pseudowire status field. The type field is used for indicating states of a plurality of fields which are used for carrying pseudowires, and the pseudowire identification field and the pseudowire state field jointly indicate a certain state of a certain pseudowire. For example, the pseudowire identification field carries an identification of pseudowire 1, and the pseudowire status field carries status 1. Of course, fig. 4 is shown for ease of understanding only and is not to be construed as limiting on embodiments of the application. The pseudowire state extension community 1 may also include other fields, for example, the pseudowire state extension community may also include an identification of the pseudowire 2 and a state of the pseudowire 2, etc., which are not illustrated.
The state 1 may be active or standby, and embodiments of the present application are not limited specifically.
The communication device 1 sends an EVPN route 2 to the communication device 3, wherein the EVPN route 2 includes indication information 2 and indication information 2', the indication information 2 is used for indicating that the state of the pseudo wire 2 is negotiated through the master-slave mode, the indication information 2' is used for indicating that the state of the pseudo wire 2 is the state 2, and the pseudo wire 2 is the pseudo wire between the communication device 1 and the communication device 3.
In one example, the communication device 1 configures EVPN VPWS. When the communication device 1 configures an EVPN VPWS, the EVPN route 2 may be evi-ad route 2. For this case, the identification of the pseudowire 2 may be included in the evi-ad route 2, and the indication information 2 and the identification of the pseudowire 2 may be used together to indicate that the state of the pseudowire 2 is negotiated through the master-slave mode. Accordingly, the indication information 2' and the identification of the pseudowire 2 may be used together to indicate that the state of the pseudowire 2 is state 2.
Regarding the identifier of the pseudowire 2, the embodiment of the present application is not specifically limited, and in one example, the identifier of the pseudowire 2 may be the name of the pseudowire 2; in yet another example, an identification pair consisting of an identification of an EVPL instance on PE1 and an identification of an EVPL instance on PE3 may be used as the identification of pseudowire 2.
In yet another example, the communication device 1 configures EVPN VPLS. When the communication apparatus 1 configures EVPN VPLS, the EVPN route 2 may be an IMET route 2. For this case, the IMET route 2 may include an identification of the pseudowire 2, and the indication information 2 and the identification of the pseudowire 2 may be used together to indicate that the state of the pseudowire 2 is negotiated through the master-slave mode. Accordingly, the indication information 2' and the identification of the pseudowire 2 may be used together to indicate that the state of the pseudowire 2 is state 2.
Regarding the identifier of the pseudowire 2, the embodiment of the present application is not specifically limited, and in one example, the identifier of the pseudowire 2 may be the name of the pseudowire 2; in yet another example, an identification pair consisting of an identification of an EVI instance on PE1 and an identification of an EVI instance on PE3 may be used as the identification of pseudowire 2.
In one example, an extended community attribute 2 may be included in the EVPN route 2, where the extended community attribute 2 is used to carry the indication information 2. In one example, the indication information 2 may be carried by a reserved field of the extended community attribute 2, and in another example, the indication information 2 may be carried by other fields in the extended community attribute 2, which is not specifically limited in the embodiment of the present application.
The embodiment of the present application is not particularly limited to the extended community attribute 2, and the extended community attribute 2 may be any extended community attribute carried in the EVPN route 2. In one example, the extended community attribute 2 may be a two-layer EVPN extended community attribute. With respect to the two-layer EVPN spreading community attribute, reference may be made to fig. 2, which is not described in detail here. In one example, when the extended community attribute 2 is a two-layer EVPN extended community attribute, the indication information 2 may be carried in, for example, an M flag bit of the two-layer EVPN extended community attribute, and, for another example, the indication information 2 may be carried in a reserved field of the two-layer EVPN extended community attribute.
In one example, a pseudowire state extension community 2 may be included in the EVPN route 2, and the pseudowire state extension community 2 may be used to carry the indication information 2'. With respect to the pseudowire state extension community 2, reference may be made to fig. 4, and the description will not be repeated here.
Regarding the state 2, it should be noted that the state 2 may be active or standby, and embodiments of the present application are not limited specifically.
In one example, the state 1 is active and the state 2 is standby.
In yet another example, the state 1 and the state are both active.
With respect to the states 1 and 2, it should be noted that, in one example, the communication apparatus 1 may be preconfigured with a master-slave relationship of the pseudowire 1 and the pseudowire 2, and in this case, the states 1 and 2 may be determined according to the master-slave relationship preconfigured on the communication apparatus 1.
In yet another example, the state 1 and the state 2 may also be determined by the communication device 1 according to the current active-standby relationship of the pseudowire 1 and the pseudowire 2, and the current operation state of the pseudowire 1 and/or the pseudowire 2. For example, the current active-standby relationship between the pseudowire 1 and the pseudowire 2 is: since pseudowire 1 is a standby pseudowire and pseudowire 2 is a primary pseudowire, and communication device 1 determines that pseudowire 2 has failed (i.e., pseudowire 2 has failed), communication device 1 triggers a pseudowire primary-standby switch, switches pseudowire 1 to a primary pseudowire, and switches pseudowire 2 to a standby pseudowire, at which point communication device 1 may determine that state 1 is active and state 2 is standby. In response to this, the communication apparatus 1 may perform S101 and subsequent steps after the failure of the pseudo wire 2. S103, the communication device 2 receives the EVPN route 1 sent by the communication device 1.
The communication device 2 determines that the state of the pseudo wire 1 is state 1 based on the instruction information 1 and the instruction information 1'.
After receiving the EVPN route 1, the communication device 2 determines that the state of the pseudowire 1 is state 1 based on the instruction information 1 and the instruction information 1'. As an example, the communication apparatus 2 may determine to use the master-slave mode to determine the state of the pseudowire 1 based on the indication information 1, and determine the state of the pseudowire 1 as the state 1 based on the indication information 1'.
In one example, the communication device 2 may determine the state of the pseudowire 1 as the state 1 based on the indication information 1, the indication information 1', and a state of an L2EVPN instance locally stored by the communication device 2 that is associated with the pseudowire 1. Regarding the L2EVPN instance, it should be noted that, when the L2EVPN service is EVPN VPWS, the L2EVPN instance is an EVPL instance; when the L2EVPN service is EVPN VPLS, the L2EVPN instance is an EVI instance. The state of an L2EVPN instance may be determined, for example, from the state of an interface associated with the L2EVPN instance.
In one example, when the state 1 is active, and the state of the L2EVPN instance locally stored by the communication apparatus 2 and associated with the pseudowire 1 is also active, the communication apparatus 2 may determine that the state of the pseudowire 1 is active, that is: and determining the pseudo wire 1 as a main pseudo wire. In one example, when the pseudowire 1 is functioning properly, the state of the L2EVPN instance locally stored by the communication device 2 in association with the pseudowire 1 is active.
In one example, when the state 1 is standby and the state of the L2EVPN instance locally stored by the communication apparatus 2 and associated with the pseudowire 1 is active, the communication apparatus 2 may determine that the state of the pseudowire 1 is standby, that is: and determining the pseudo wire 1 as a standby pseudo wire.
In one example, when the state 1 is standby and the state of the L2EVPN instance locally stored by the communication apparatus 2 and associated with the pseudowire 1 is standby, the communication apparatus 2 may determine that the state of the pseudowire 1 is standby, that is: and determining the pseudo wire 1 as a standby pseudo wire. For example, after the communication 2 determines that the pseudowire 2 failed, the state of the locally stored L2EVPN instance associated with the pseudowire 2 is modified from active to standby.
In one example, the communication device 2 may support both stand-alone and M/S modes, for which case,
after receiving the EVPN route 1, the communication device 2 may determine that the state of the pseudowire 1 is state 1 directly based on the indication information 1 and the indication information 1' in the EVPN route 1.
In yet another example, the communication apparatus 2 may or may not support the M/S mode, and in this case, after the communication apparatus 2 receives the EVPN route 1, feedback information for the EVPN route 1 may be fed back to the communication apparatus 1. If the communication device 2 supports the M/S mode, the communication device 2 may return feedback information 1 to the communication device 1, where the feedback information 1 may be used to indicate that the communication device 2 supports the M/S mode; if the communication device 2 does not support the M/S mode, the communication device 2 may return feedback information 1 'to the communication device 1, which feedback information 1' may be used to indicate that the communication device 2 does not support the M/S mode.
In one example, the feedback information 1 may be that the communication apparatus 2 transmits an EVPN route 3 to the communication apparatus 1, where the EVPN route 3 includes indication information 3, and the indication information 3 is used to indicate a state of an L2EVPN instance locally stored in the communication apparatus 2 and associated with the pseudowire 1. For this case, after the communication apparatus 1 receives the EVPN route 3, it may be determined that the communication apparatus 2 supports the M/S mode on the one hand, and the state of the L2EVPN instance associated with the pseudowire 1 may be determined on the other hand, thereby determining whether the pseudowire 1 may be used for forwarding data. For example, when the state of the L2EVPN instance associated with pseudowire 1 is active, it may be determined that pseudowire 1 may be used to forward data, and when the state of the L2EVPN instance associated with pseudowire 1 is standby, it may be determined that pseudowire 1 may not be used to forward data.
In one example, the indication information 3 may be carried in a pseudowire state extension community of the EVPN route 3. Like EVPN route 1, the EVPN route 3 may be evi-ad route 3 or IMET route 3. In one example, the indication information 3 indicates that the state of the L2EVPN instance locally stored by the communication apparatus 2 and associated with the pseudowire 1 is active.
S105, the communication device 3 receives the EVPN route 2 transmitted by the communication device 1.
The communication device 3 determines the state of the pseudo wire 2 to be state 2 based on the instruction information 2 and the instruction information 2'.
After receiving the EVPN route 2, the communication device 3 determines that the state of the pseudowire 2 is state 2 based on the instruction information 2 and the instruction information 2'. As an example, the communication device 3 may determine to use the master-slave mode to determine the state of the pseudowire 2 based on the indication information 2, and determine the state of the pseudowire 2 as the state 2 based on the indication information 2'.
In one example, the communication device 3 may determine the state of the pseudowire 2 as the state 2 based on the indication information 2, the indication information 2', and a state of an L2EVPN instance locally stored by the communication device 3 that is associated with the pseudowire 2.
Regarding the specific implementation that the communication apparatus 3 can determine the state of the pseudowire 2 as the state 2 "based on the indication information 2, the indication information 2', and the state of the L2EVPN instance locally stored by the communication apparatus 3 and associated with the pseudowire 2, the implementation principle is the same as the specific implementation that the communication apparatus 2 mentioned in S104 can determine the state of the pseudowire 1 as the state 1" based on the indication information 1, the indication information 1', and the state of the L2EVPN instance locally stored by the communication apparatus 2 and associated with the pseudowire 1, so that the description is not repeated with reference to the relevant description section in S104 regarding the communication apparatus 3 can determine the state of the pseudowire 2 as the state 2 "based on the indication information 2, the indication information 2', and the state of the L2EVPN instance locally stored by the communication apparatus 3.
In one example, the communication device 3 may support both stand-alone and M/S modes, for which case,
after receiving the EVPN route 2, the communication device 3 may determine that the state of the pseudowire 2 is state 2 directly based on the indication information 2 and the indication information 2' in the EVPN route 2.
In yet another example, the communication apparatus 3 may or may not support the M/S mode, and in this case, after the communication apparatus 3 receives the EVPN route 2, feedback information for the EVPN route 2 may be fed back to the communication apparatus 1. If the communication device 3 supports the M/S mode, the communication device 3 may return feedback information 2 to the communication device 1, the feedback information 2 may be used to indicate that the communication device 3 supports the M/S mode; if the communication device 3 does not support the M/S mode, the communication device 3 may return feedback information 2 'to the communication device 1, which feedback information 2' may be used to indicate that the communication device 3 does not support the M/S mode.
In one example, the feedback information 2 may be that the communication device 3 sends an EVPN route 4 to the communication device 1, where the EVPN route 4 includes indication information 4, and the indication information 4 is used to indicate a state of an L2EVPN instance locally stored by the communication device 3 and associated with the pseudowire 2. For this case, after the communication apparatus 1 receives the EVPN route 4, it may be determined that the communication apparatus 3 supports the M/S mode on the one hand, and the state of the L2EVPN instance associated with the pseudowire 2 may be determined on the other hand, thereby determining whether the pseudowire 2 may be used for forwarding data. For example, when the state of the L2EVPN instance associated with the pseudowire 2 is active, it may be determined that the pseudowire 2 may be used to forward data, and when the state of the L2EVPN instance associated with the pseudowire 2 is standby, it may be determined that the pseudowire 2 may not be used to forward data.
In one example, the indication information 4 may be carried in a pseudowire state extension community of the EVPN route 4. Like EVPN route 1, the EVPN route 4 may be evi-ad route 4 or IMET route 4. In one example, the indication information 4 indicates that the state of the L2EVPN instance locally stored by the communication apparatus 3 and associated with the pseudowire 2 is active.
In one example, consider whether state 1 of pseudowire 1, as specified by communication device 1 through EVPN route 1, and state 2 of pseudowire 2, as specified by communication device 1 through EVPN route 2, are in effect, subject to the availability of pseudowire 1 and pseudowire 2. For example, if the communication apparatus 1 designates the state of the pseudowire 1 as active and the pseudowire 1 is not actually available (e.g., the pseudowire 1 fails), the state 1 of the pseudowire 1 designated by the communication apparatus 1 through the EVPN route 1 and the state 2 of the pseudowire 2 designated by the communication apparatus 1 through the EVPN route 2 cannot be validated. Wherein the availability status of the pseudowire 1 refers to whether the pseudowire 1 can be used for forwarding data, as previously described, whether the pseudowire 1 can be used for forwarding data can be determined according to the status of the L2EVPN instance associated with the pseudowire 1. The availability status of pseudowire 2 refers to whether pseudowire 2 can be used to forward data, and whether pseudowire 2 can be used to forward data can be determined based on the status of the L2EVPN instance associated with pseudowire 2.
In view of this, in the embodiment of the present application, after specifying the states of the pseudowire 1 and the pseudowire 2, the communication apparatus 1 may determine the states in which the pseudowire 1 and the pseudowire 2 take effect further based on the states of the L2EVPN instances associated with the pseudowire 1. In one example, if the state 1 indicated by the indication information 1 'is active, the state 2 indicated by the indication information 2' is standby, that is: the communication device 1 designates the state of the pseudowire 1 as active and designates the state of the pseudowire 2 as standby, and the communication device 1 may further determine the effective state of the pseudowire 1 and the pseudowire 2 based on the state of the L2EVPN instance associated with the pseudowire 1.
In some embodiments, if the foregoing indication information 3 indicates that the state of the L2EVPN instance locally stored by the communication device 2 and associated with the pseudowire 1 is active, it is described that the master-slave relationship between the pseudowire 1 and the pseudowire 2 specified by the communication device 1 is: pseudowire 1 is the primary pseudowire and pseudowire 2 is the backup pseudowire. And the indication information 3 indicates that the state of the L2EVPN instance locally stored by the communication device 2 and associated with the pseudowire 1 is active, which indicates that the pseudowire 1 may be used for forwarding data, at this time, the communication device 1 may determine that the state of the pseudowire 1 is active and determine that the state of the pseudowire 2 is standby.
In other embodiments, if the foregoing indication information 3 indicates that the state of the L2EVPN instance locally stored by the communication apparatus 2 and associated with the pseudowire 1 is standby, it is described that the master-slave relationship between the pseudowire 1 and the pseudowire 2 specified by the communication apparatus 1 is: pseudowire 1 is the primary pseudowire and pseudowire 2 is the backup pseudowire. And the indication information 3 indicates that the state of the L2EVPN instance associated with the pseudowire 1 stored locally by the communication apparatus 2 is standby, which indicates that the pseudowire 1 cannot be used for forwarding data, at this time, the communication apparatus 1 may further determine the states of the pseudowire 1 and the pseudowire 2 based on the state of the L2EVPN instance associated with the pseudowire 2.
In one example, if the state of the L2EVPN instance associated with the pseudowire 2 is active, it is indicated that the pseudowire 2 may be used to forward data, and for this case, the communication device 1, the communication device 2, and the communication device 3 may renegotiate the states of the pseudowire 1 and the pseudowire 2, at which time the communication device 1 may designate the state of the pseudowire 2 as active and the state of the pseudowire 1 as standby. Regarding the specific manner in which the communication apparatus 1, the communication apparatus 2, and the communication apparatus 3 can renegotiate the states of the pseudowire 1 and the pseudowire 2, reference may be made to the flow described in the method 100, and the description will not be repeated at this time.
In yet another example, if the state of the L2EVPN instance associated with the pseudowire 2 is standby, it is indicated that the pseudowire 2 cannot be used for forwarding data either, and for this case, as an example, the communication apparatus 1, the communication apparatus 2, and the communication apparatus 3 may repeat the steps of negotiating the states of the pseudowire 1 and the pseudowire 2 until the negotiation is successful. As yet another example, the communication apparatus 1 may re-perform the step of negotiating the states of the pseudowire 1 and the pseudowire 2 after determining that the pseudowire 1 and/or the pseudowire 2 fails to recover. Regarding the specific manner in which the communication apparatus 1, the communication apparatus 2, and the communication apparatus 3 can negotiate the states of the pseudowire 1 and the pseudowire 2, reference may be made to the flow described in the method 100, and the description will not be repeated at this time.
As can be seen from the above description, with the above method 100, even if the service configured by the communication apparatus 1 evolves from the L2VPN service to the L2EVPN service, since the communication apparatus 1 can adopt the master-slave mode to negotiate the states of the foregoing pseudowire 1 and pseudowire 2, the manner of determining the states of the pseudowire 1 and pseudowire 2 is the master-slave mode before and after the evolution, and thus, even if the service configured by the communication apparatus 1 evolves from the L2VPN service to the L2EVPN service, traffic load sharing imbalance of the entire network is not caused.
As described above, the communication apparatus 1 and the communication apparatus 2 may configure the EVPN VPLS, and in this case, in the scenario shown in fig. 1, there may be a problem that traffic bypasses and network resources are wasted when forwarding traffic data from the CE1 to the CE2. For example, PW1 is a primary pseudowire, and PW2 is a backup pseudowire. The CE1 sends the service data to the PE2 through the PW1, and the PE2 may not directly forward the service data to the CE2, but forward the service data to the PE3 first, and then forward the service data to the CE2 by the PE 3.
To avoid this problem, in one example, the communication device 2, after determining the status of the pseudowire 1, may further perform DF elections based on the status of the pseudowire 1, wherein the DF may forward traffic data directly to the corresponding CE.
In one example, if the communication device 2 determines that the pseudowire 1 is a primary pseudowire, the communication device 2 may determine that the communication device 2 is a designated forwarder, and correspondingly, if the communication device 2 determines that the pseudowire 1 is a backup pseudowire, the communication device 2 may determine that the communication device 2 is a non-designated forwarder.
Similarly, if the communication device 3 determines that the pseudowire 2 is a primary pseudowire, the communication device 3 may determine that the communication device 3 is a designated forwarder, and correspondingly, if the communication device 3 determines that the pseudowire 1 is a backup pseudowire, the communication device 3 may determine that the communication device 3 is a non-designated forwarder.
In one example, the pseudowire 1 is a primary pseudowire, the pseudowire 2 is a backup pseudowire, the communication device 2 is a designated forwarder, and the communication device 3 is a non-designated forwarder.
Referring to fig. 5, the flow chart of a method for determining a pseudo-wire state according to an embodiment of the present application is shown. The method 200 shown in fig. 5 may be applied to a first communication device. The method 200 may be applied to the above method 100 for performing the steps performed by the communication device 1 in the above method 100.
In method 200, a first communication device may correspond to communication device 1 in method 100; the second communication device may correspond to communication device 2 in method 100 and the third communication device may correspond to communication device 3 in method 100.
The method 200 may include, for example, S201-S202 as follows.
S201: and sending a first Ethernet Virtual Private Network (EVPN) route to a second communication device, wherein the first EVPN route comprises first indication information which is used for indicating a state of a first pseudo wire to be negotiated through a master-slave mode, and the first pseudo wire is a pseudo wire between the first communication device and the second communication device.
S202: and sending a second EVPN route to a third communication device, wherein the second EVPN route comprises second indication information which is used for indicating a state of negotiating a second pseudo wire through a master-slave mode, and the second pseudo wire is a pseudo wire between the first communication device and the third communication device.
The first EVPN route in method 200 may correspond to EVPN route 1 in method 100; the first indication information in method 200 may correspond to indication information 1 in method 100; the first pseudowire in method 200 may correspond to pseudowire 1 in method 100.
The second EVPN route in method 200 may correspond to EVPN route 2 in method 100; the second indication information in method 200 may correspond to indication information 2 in method 100; the second pseudowire in method 200 may correspond to pseudowire 2 in method 100.
In one possible implementation, the first EVPN route includes a first extended community attribute that includes the first indication information.
The first extended community attribute in method 200 may correspond to extended community attribute 1 in method 100.
In a possible implementation, the first indication information is carried in a reserved field of the first extended community attribute.
In one possible implementation, the first extended community attribute is a two-layer EVPN extended community attribute.
In one possible implementation, the second EVPN route includes a second extended community attribute that includes the second indication information.
The second extended community attribute in method 200 may correspond to extended community attribute 2 in method 100.
In one possible implementation manner, the first EVPN route further includes third indication information, where the third indication information indicates a state of the first pseudowire, and the second EVPN route further includes fourth indication information, where the fourth indication information is used to indicate a state of the second pseudowire.
The third indication information in method 200 may correspond to indication information 1' in method 100; the fourth indication in method 200 may correspond to indication 2' in method 100.
In one possible implementation, the state of the first pseudowire is primary active, and the state of the second pseudowire is standby.
In one possible implementation, the method further includes:
receiving a third EVPN route sent by the second communication device, wherein the third EVPN route comprises fifth indication information, and the fifth indication information is used for indicating that the state of an L2EVPN instance locally stored by the second communication device and associated with the first pseudo wire is active;
and determining the state of the first pseudo wire as active and the state of the second pseudo wire as standby based on the fifth indication information.
The third EVPN route in method 200 may correspond to EVPN route 3 in method 100; the fifth indication in method 200 may correspond to indication 3 in method 100.
In one possible implementation manner, the first pseudowire is a standby pseudowire, the second pseudowire is a primary pseudowire, the sending the first ethernet virtual private network EVPN route to the second communication device and the sending the second EVPN route to the third communication device includes:
in response to determining the second pseudowire failure, the first EVPN route is sent to the second communication device and the second EVPN route is sent to the third communication device.
In one possible implementation, the first communication device supports EVPN virtual private line traffic VPWS, and the first EVPN route is an EVPN instance ethernet auto-discovery evi-ad route.
In one possible implementation, the first communication device supports EVPN virtual private line local area network service VPLS, and the first EVPN route is an inclusive multicast IMET route.
Regarding the specific implementation of the method 200, reference may be made to the description of the steps performed by the communication device 1 in the method 100, which is not described in detail here.
Referring to fig. 6, the flow chart of a method for determining a pseudo-wire state according to an embodiment of the present application is shown. The method 300 shown in fig. 6 may be applied to a second communication device. The method 300 may be applied to the above method 100 for performing the steps performed by the communication device 2 or the communication device 3 in the above method 100.
In method 300, a first communication device may correspond to communication device 1 in method 100; the second communication device may correspond to communication device 2 or communication device 3 in method 100.
The method 300 may include, for example, S301-S302 as follows.
S301: the method comprises the steps of receiving a first EVPN route sent by a first communication device, wherein the first EVPN route comprises first indication information and second indication information, the first indication information is used for indicating the state of a first pseudo wire determined through a master-slave mode, the first pseudo wire is a pseudo wire between the first communication device and the second communication device, and the second indication information is used for indicating the first state of the first pseudo wire.
S302: and determining the state of the first pseudo wire as the first state based on the first indication information and the second indication information.
When the second communication device in method 300 corresponds to communication device 2 in method 100:
The first EVPN route in method 300 may correspond to EVPN route 1 in method 100; the first indication information in method 300 may correspond to indication information 1 in method 100; the second indication information in method 300 may correspond to indication information 1' in method 100; the first pseudowire in method 300 may correspond to pseudowire 1 in method 100; the first state in method 300 may correspond to state 1 in method 100.
When the second communication device in method 300 corresponds to communication device 3 in method 100:
the first EVPN route in method 300 may correspond to EVPN route 2 in method 100; the first indication in method 300 may correspond to indication 2 in method 100; the second indication information in method 300 may correspond to indication information 2' in method 100; the first pseudowire in method 300 may correspond to pseudowire 2 in method 100; the first state in method 300 may correspond to state 2 in method 100.
In one possible implementation, the first EVPN route includes a first extended community attribute that includes the first indication information.
When the second communication device in method 300 corresponds to communication device 2 in method 100, the first extended community attribute in method 300 corresponds to extended community attribute 1 in method 100.
When the second communication device in method 300 corresponds to communication device 3 in method 100, the first extended community attribute in method 300 corresponds to extended community attribute 2 in method 100.
In a possible implementation, the first indication information is carried in a reserved field of the first extended community attribute.
In one possible implementation, the first extended community attribute is a two-layer EVPN extended community attribute.
In one possible implementation, the method further includes:
and sending a second EVPN route to the first communication device, wherein the second EVPN route comprises third indication information, and the third indication information is used for indicating the state of an L2EVPN instance which is locally stored by the second communication device and is associated with the first pseudo wire.
When the second communication device in method 300 corresponds to communication device 2 in method 100:
a second EVPN route in method 300 corresponds to EVPN route 3 in method 100; the third indication in method 300 corresponds to indication 3 in method 100.
When the second communication device in method 300 corresponds to communication device 3 in method 100:
a second EVPN route in method 300 corresponds to EVPN route 4 in method 100; the third indication in method 300 corresponds to indication 4 in method 100.
In one possible implementation manner, the determining, based on the first indication information and the second indication information, the state of the first pseudowire as the first state includes:
and determining that the state of the first pseudo wire is the first state based on the first indication information, the second indication information and the state of an L2EVPN instance locally stored by the second communication device and associated with the first pseudo wire.
In one possible implementation, the first state is active, and the state of the L2EVPN instance locally stored by the second communication device and associated with the first pseudowire is active.
In one possible implementation, the first state is standby, and the state of the L2EVPN instance locally stored by the second communication device and associated with the first pseudowire is active.
In one possible implementation, the first state and the state of the L2EVPN instance locally stored by the second communication device in association with the first pseudowire are both standby.
In one possible implementation manner, the first pseudowire is a primary pseudowire, and the receiving the first EVPN route sent by the first communication device includes:
And after the first pseudo wire fails, receiving the first EVPN route sent by the first communication device.
In one possible implementation, the second communication device supports EVPN virtual private line service VPWS, and the first EVPN route is an EVPN instance ethernet auto-discovery route evi-ad route.
In one possible implementation, the second communication device supports EVPN virtual private line local area network service VPLS, and the first EVPN route is an inclusive multicast IMET route.
In one possible implementation, the method further includes:
and if the state of the first pseudo wire is determined to be active, determining that the second communication device is a designated forwarder DF.
In one possible implementation, the method further includes:
and if the state of the first pseudo wire is determined to be standby, determining that the second communication device is a non-designated forwarder (NDF).
Regarding the specific implementation of the method 300, reference may be made to the description of the steps performed by the communication device 1 and the communication device 2 in the method 100, which are not described in detail here.
Based on the method provided by the embodiment, the embodiment of the application also provides a corresponding device.
Referring to fig. 7, a schematic structural diagram of a communication device according to an embodiment of the present application is shown.
As shown in fig. 7, the communication device includes a transceiver unit 701 and a processing unit 702;
in one example, the transceiver unit 701 is configured to perform the receiving and/or transmitting operations performed by the first communication device according to the above method embodiments;
the processing unit 702 is configured to perform operations other than the receiving and/or transmitting operations performed by the first communication device as described in the above method embodiments.
In a specific example, the communication device may include:
a transmitting unit configured to: transmitting a first Ethernet Virtual Private Network (EVPN) route to a second communication device, wherein the first EVPN route comprises first indication information which is used for indicating a state of a first pseudo wire negotiated through a master-slave mode, and the first pseudo wire is a pseudo wire between the first communication device and the second communication device; and sending a second EVPN route to a third communication device, wherein the second EVPN route comprises second indication information which is used for indicating a state of negotiating a second pseudo wire through a master-slave mode, and the second pseudo wire is a pseudo wire between the first communication device and the third communication device.
In one possible implementation, the first EVPN route includes a first extended community attribute that includes the first indication information.
In a possible implementation, the first indication information is carried in a reserved field of the first extended community attribute.
In one possible implementation, the first extended community attribute is a two-layer EVPN extended community attribute.
In one possible implementation, the second EVPN route includes a second extended community attribute that includes the second indication information.
In one possible implementation manner, the first EVPN route further includes third indication information, where the third indication information indicates a state of the first pseudowire, and the second EVPN route further includes fourth indication information, where the fourth indication information is used to indicate a state of the second pseudowire.
In one possible implementation, the state of the first pseudowire is primary active, and the state of the second pseudowire is standby.
In one possible implementation, the first communication device further includes: a receiving unit, configured to receive a third EVPN route sent by the second communication device, where the third EVPN route includes fifth indication information, where the fifth indication information is used to indicate that a state of an L2EVPN instance locally stored by the second communication device and associated with the first pseudowire is active; and the processing unit is used for determining that the state of the first pseudo wire is active and determining that the state of the second pseudo wire is standby based on the fifth indication information.
In one possible implementation manner, the first pseudowire is a standby pseudowire, the second pseudowire is a primary pseudowire, and the sending unit is configured to: in response to determining the second pseudowire failure, the first EVPN route is sent to the second communication device and the second EVPN route is sent to the third communication device.
In one possible implementation, the first communication device supports EVPN virtual private line traffic VPWS, and the first EVPN route is an EVPN instance ethernet auto-discovery evi-ad route.
In one possible implementation, the first communication device supports EVPN virtual private line local area network service VPLS, and the first EVPN route is an inclusive multicast IMET route.
In another example, the transceiver unit 701 is configured to perform the receiving and/or transmitting operations performed by the second communication device according to the above method embodiments;
the processing unit 702 is configured to perform operations other than the receiving and/or transmitting operations performed by the second communication device as described in the above method embodiments.
In a specific example, the communication device may include:
a receiving unit and a processing unit. The receiving unit is configured to receive a first EVPN route sent by a first communication device, where the first EVPN route includes first indication information and second indication information, the first indication information is used to indicate that a state of a first pseudowire is determined by a master-slave mode, the first pseudowire is a pseudowire between the first communication device and the second communication device, and the second indication information is used to indicate a first state of the first pseudowire; the processing unit is configured to determine, based on the first indication information and the second indication information, a state of the first pseudowire as the first state.
In one possible implementation, the first EVPN route includes a first extended community attribute that includes the first indication information.
In a possible implementation, the first indication information is carried in a reserved field of the first extended community attribute.
In one possible implementation, the first extended community attribute is a two-layer EVPN extended community attribute.
In one possible implementation manner, the second communication device further includes: a sending unit, configured to send a second EVPN route to the first communication device, where the second EVPN route includes third indication information, where the third indication information is used to indicate a state of an L2EVPN instance locally stored by the second communication device and associated with the first pseudowire.
In a possible implementation manner, the processing unit is configured to: and determining that the state of the first pseudo wire is the first state based on the first indication information, the second indication information and the state of an L2EVPN instance locally stored by the second communication device and associated with the first pseudo wire.
In one possible implementation, the first state is active, and the state of the L2EVPN instance locally stored by the second communication device and associated with the first pseudowire is active.
In one possible implementation, the first state is standby, and the state of the L2EVPN instance locally stored by the second communication device and associated with the first pseudowire is active.
In one possible implementation, the first state and the state of the L2EVPN instance locally stored by the second communication device in association with the first pseudowire are both standby.
In one possible implementation manner, the first pseudowire is a primary pseudowire, and the receiving unit is configured to: and after the first pseudo wire fails, receiving the first EVPN route sent by the first communication device.
In one possible implementation, the second communication device supports EVPN virtual private line service VPWS, and the first EVPN route is an EVPN instance ethernet auto-discovery route evi-ad route.
In one possible implementation, the second communication device supports EVPN virtual private line local area network service VPLS, and the first EVPN route is an inclusive multicast IMET route.
In a possible implementation manner, the processing unit is further configured to: and if the state of the first pseudo wire is determined to be active, determining that the second communication device is a designated forwarder DF.
In a possible implementation manner, the processing unit is further configured to: and if the state of the first pseudo wire is determined to be standby, determining that the second communication device is a non-designated forwarder (NDF).
In addition, the embodiment of the application further provides a communication device 800, as shown in fig. 8, and fig. 8 is a schematic structural diagram of the communication device according to the embodiment of the application. The communication device 800 includes a communication interface 801 and a processor 802 connected to the communication interface 801. The communication device 800 may be used to perform the method 100, the method 200 or the method 300 in the above embodiments.
In one example, the communication device 800 may perform the method 100 in the above embodiment, and when the communication device 800 is used to perform the method 100 in the above embodiment, the communication device 800 corresponds to the communication device 1 in the method 100. The communication interface 801 is used to perform transceiving operations performed by the communication device 1 in the method 100. The processor 802 is configured to perform operations of the method 100 other than the transceiving operations performed by the communication device 1. For example: the processor 802 is configured to obtain an EVPN route 1 and an EVPN route 2, where the EVPN route 1 includes indication information 1 and indication information 1', the indication information 1 is used to indicate that a state of a pseudowire 1 is negotiated through a master-slave mode, the indication information 1' is used to indicate that the state of the pseudowire 1 is state 1, and the pseudowire 1 is a pseudowire between the communication device 1 and the communication device 2; the EVPN route 2 includes indication information 2 and indication information 2', wherein the indication information 2 is used for indicating that the state of the pseudo wire 2 is negotiated through a master-slave mode, the indication information 2' is used for indicating that the state of the pseudo wire 2 is the state 2, and the pseudo wire 2 is a pseudo wire between the communication device 1 and the communication device 3; the communication interface 801 is configured to send the EVPN route 1 to the communication device 2, and send the EVPN route 2 to the communication device 3.
In one example, the communication device 800 may perform the method 100 of the above embodiment, and when the communication device 800 is used to perform the method 100 of the above embodiment, the communication device 800 corresponds to the communication device 2 of the method 100. The communication interface 801 is used to perform transceiving operations performed by the communication device 2 in the method 100. The processor 802 is configured to perform operations other than the transceiving operations performed by the communication device 2 in the method 100. For example: the communication interface 801 is configured to receive the EVPN route 1, where the EVPN route 1 includes indication information 1 and indication information 1', the indication information 1 is configured to indicate that the state of the pseudo wire 1 is negotiated through the master-slave mode, and the indication information 1' is configured to indicate that the state of the pseudo wire 1 is state 1; the processor 802 is configured to determine, based on the indication information 1 and the indication information 1', that the state of the pseudowire 1 is the state 1.
In one example, the communication device 800 may perform the method 100 of the above embodiment, and when the communication device 800 is used to perform the method 100 of the above embodiment, the communication device 800 corresponds to the communication device 3 of the method 100. The communication interface 801 is used to perform transceiving operations performed by the communication device 3 in the method 100. The processor 802 is configured to perform operations of the method 100 other than the transceiving operations performed by the communication device 3. For example: the communication interface 801 is configured to receive an EVPN route 2, where the EVPN route 2 includes indication information 2 and indication information 2', the indication information 2 is configured to indicate that the state of the pseudo wire 2 is negotiated through a master-slave mode, and the indication information 2' is configured to indicate that the state of the pseudo wire 2 is state 2; the processor 802 is configured to determine that the state of the pseudowire 2 is state 2 based on the indication information 2 and the indication information 2'.
In one example, the communication device 800 may perform the method 200 of the above embodiment, and when the communication device 800 is used to perform the method 200 of the above embodiment, the communication device 800 corresponds to the first communication device of the method 200. The communication interface 801 is used to perform transceiving operations performed by the first communication device in the method 200. The processor 802 is configured to perform operations other than the transceiving operations performed by the first communication device in the method 200. For example: the processor 802 is configured to obtain a first EVPN route and a second EVPN route, where the first EVPN route includes first indication information, where the first indication information is used to indicate that a state of a first pseudowire is negotiated through a master-slave mode, and the first pseudowire is a pseudowire between the first communication device and the second communication device; the second EVPN route includes second indication information, where the second indication information is used to indicate that a state of a second pseudowire is negotiated through a master-slave mode, and the second pseudowire is a pseudowire between the first communication device and the third communication device; the communication interface 801 is configured to send the first EVPN route to a second communication device and send the second EVPN route to a third communication device.
In one example, the communication device 800 may perform the method 300 of the above embodiment, and when the communication device 800 is used to perform the method 300 of the above embodiment, the communication device 800 corresponds to the second communication device of the method 300. The communication interface 801 is used to perform transceiving operations performed by a second communication device in the method 300. The processor 802 is configured to perform operations other than the transceiving operations performed by the second communication device in the method 300. For example: the communication interface 801 is configured to receive a first EVPN route sent by a first communication device, where the first EVPN route includes first indication information and second indication information, where the first indication information is used to indicate that a state of a first pseudowire is determined by a master-slave mode, the first pseudowire is a pseudowire between the first communication device and the second communication device, and the second indication information is used to indicate a first state of the first pseudowire; the processor 802 is configured to determine, based on the first indication information and the second indication information, that the state of the first pseudowire is the first state.
In addition, the embodiment of the application further provides a communication device 900, as shown in fig. 9, and fig. 9 is a schematic structural diagram of the communication device according to the embodiment of the application. The communication device 900 may be used to perform the method 100, the method 200 or the method 300 in the above embodiments.
As shown in fig. 9, the communication device 900 may include a processor 910, a memory 920 coupled to the processor 910, and a transceiver 930. The transceiver 930 may be, for example, a communication interface, an optical module, etc. The processor 910 may be a central processor (English: central processing unit, abbreviated: CPU), a network processor (English: network processor, abbreviated: NP) or a combination of CPU and NP. The processor may also be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD) or a combination thereof (English: programmable logic device). The PLD may be a complex programmable logic device (English: complex programmable logic device, abbreviated: CPLD), a field programmable gate array (English: field-programmable gate array, abbreviated: FPGA), a general-purpose array logic (English: generic array logic, abbreviated: GAL), or any combination thereof. Processor 910 may refer to one processor or may include multiple processors. Memory 920 may include volatile memory (English) such as random-access memory (RAM); the memory may also include a nonvolatile memory (english: non-volatile memory), such as a read-only memory (ROM), a flash memory (english: flash memory), a hard disk (HDD) or a Solid State Disk (SSD); memory 920 may also include combinations of the above types of memory. The memory 920 may refer to one memory or may include a plurality of memories. In one embodiment, memory 920 has stored therein computer readable instructions comprising a plurality of software modules, such as a transmit module 921, a process module 922, and a receive module 923. The processor 910, after executing the respective software modules, may perform the corresponding operations as directed by the respective software modules. In this embodiment, the operations performed by one software module actually refer to operations performed by the processor 910 according to instructions of the software module.
In one example, the communication device 900 may perform the method 100 of the above embodiment, and when the communication device 900 is used to perform the method 100 of the above embodiment, the communication device 900 corresponds to the communication device 1 of the method 100. The transceiver 930 is configured to perform a transceiving operation performed by the communication device 1 in the method 100. The processor 910 is configured to perform operations of the method 100 other than the transceiving operations performed by the communication device 1. For example: the processor 910 is configured to obtain an EVPN route 1 and an EVPN route 2, where the EVPN route 1 includes indication information 1 and indication information 1', the indication information 1 is used to indicate that a state of a pseudowire 1 is negotiated through a master-slave mode, the indication information 1' is used to indicate that the state of the pseudowire 1 is state 1, and the pseudowire 1 is a pseudowire between the communication device 1 and the communication device 2; the EVPN route 2 includes indication information 2 and indication information 2', wherein the indication information 2 is used for indicating that the state of the pseudo wire 2 is negotiated through a master-slave mode, the indication information 2' is used for indicating that the state of the pseudo wire 2 is the state 2, and the pseudo wire 2 is a pseudo wire between the communication device 1 and the communication device 3; the transceiver 930 is configured to transmit the EVPN route 1 to the communication device 2, and transmit the EVPN route 2 to the communication device 3.
In one example, the communication device 900 may perform the method 100 of the above embodiment, and when the communication device 900 is used to perform the method 100 of the above embodiment, the communication device 900 corresponds to the communication device 2 of the method 100. The transceiver 930 is configured to perform transceiving operations performed by the communication device 2 in the method 100. The processor 910 is configured to perform operations of the method 100 other than the transceiving operations performed by the communication device 2. For example: the transceiver 930 is configured to receive the EVPN route 1, where the EVPN route 1 includes indication information 1 and indication information 1', the indication information 1 is configured to indicate that the state of the pseudowire 1 is negotiated through the master-slave mode, and the indication information 1' is configured to indicate that the state of the pseudowire 1 is state 1; the processor 910 is configured to determine, based on the indication information 1 and the indication information 1', that the state of the pseudowire 1 is the state 1.
In one example, the communication device 900 may perform the method 100 of the above embodiment, and when the communication device 900 is used to perform the method 100 of the above embodiment, the communication device 900 corresponds to the communication device 3 of the method 100. The transceiver 930 is configured to perform transceiving operations performed by the communication device 3 in the method 100. The processor 910 is configured to perform operations of the method 100 other than the transceiving operations performed by the communication device 3. For example: the transceiver 930 is configured to receive the EVPN route 2, where the EVPN route 2 includes indication information 2 and indication information 2', the indication information 2 is configured to indicate that the state of the pseudo wire 2 is negotiated through the master-slave mode, and the indication information 2' is configured to indicate that the state of the pseudo wire 2 is state 2; the processor 910 is configured to determine, based on the indication information 2 and the indication information 2', that the state of the pseudowire 2 is the state 2.
In one example, the communication device 900 may perform the method 200 of the above embodiment, and when the communication device 900 is used to perform the method 200 of the above embodiment, the communication device 900 corresponds to the first communication device in the method 200. The transceiver 930 is configured to perform transceiving operations performed by the first communication device in the method 200. The processor 910 is configured to perform operations other than the transceiving operations performed by the first communication device in the method 200. For example: the processor 910 is configured to obtain a first EVPN route and a second EVPN route, where the first EVPN route includes first indication information, where the first indication information is used to indicate that a state of a first pseudowire is negotiated through a master-slave mode, and the first pseudowire is a pseudowire between the first communication device and the second communication device; the second EVPN route includes second indication information, where the second indication information is used to indicate that a state of a second pseudowire is negotiated through a master-slave mode, and the second pseudowire is a pseudowire between the first communication device and the third communication device; the transceiver 930 is configured to send the first EVPN route to a second communication device and the second EVPN route to a third communication device.
In one example, the communication device 900 may perform the method 300 of the above embodiment, and when the communication device 900 is used to perform the method 300 of the above embodiment, the communication device 900 corresponds to a second communication device of the method 300. The transceiver 930 is configured to perform the transceiving operations performed by the second communication device in the method 300. The processor 910 is configured to perform operations performed by the second communication device in the method 300 other than the transceiving operations. For example: the transceiver 930 is configured to receive a first EVPN route sent by a first communication device, where the first EVPN route includes first indication information and second indication information, where the first indication information is used to indicate that a state of a first pseudowire is determined by a master-slave mode, the first pseudowire is a pseudowire between the first communication device and the second communication device, and the second indication information is used to indicate a first state of the first pseudowire; the processor 910 is configured to determine, based on the first indication information and the second indication information, that the state of the first pseudowire is the first state.
The application also provides a computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform any one or more of the operations of the methods described in the previous embodiments (e.g., method 100 or method 200 or method 300).
The application also provides a computer program product comprising a computer program which, when run on a computer, causes the computer to perform any one or more of the operations of the methods described in the previous embodiments (e.g. method 100 or method 200 or method 300).
The present application also provides a communication system comprising at least two of the communication devices 1, 2 and 3 mentioned in the embodiment method 100 above.
The present application also provides a communication system comprising the first communication device mentioned in the above embodiment method 200 and the second communication device mentioned in the above embodiment method 300.
The present application also provides a communication system comprising at least one memory and at least one processor, the at least one memory storing instructions that, when executed, cause the communication system to perform any one or more of the operations of the methods (e.g., method 100 or method 200 or method 300) of any of the preceding embodiments of the present application.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, e.g., the division of units is merely a logical service division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each service unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software business units.
The integrated units, if implemented in the form of software business units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those skilled in the art will appreciate that in one or more of the examples described above, the services described herein may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the services may be stored in a computer-readable medium or transmitted as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The objects, technical solutions and advantageous effects of the present application have been described in further detail in the above embodiments, and it should be understood that the above are only embodiments of the present application.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application.

Claims (30)

1. A method of determining a pseudowire state, for use with a first communications device, the method comprising:
transmitting a first Ethernet Virtual Private Network (EVPN) route to a second communication device, wherein the first EVPN route comprises first indication information which is used for indicating a state of a first pseudo wire negotiated through a master-slave mode, and the first pseudo wire is a pseudo wire between the first communication device and the second communication device;
and sending a second EVPN route to a third communication device, wherein the second EVPN route comprises second indication information which is used for indicating a state of negotiating a second pseudo wire through a master-slave mode, and the second pseudo wire is a pseudo wire between the first communication device and the third communication device.
2. The method of claim 1, wherein the first EVPN route includes a first extended community attribute that includes the first indication information.
3. The method of claim 2, wherein the first indication information is carried in a reserved field of the first extended community attribute.
4. A method according to claim 2 or 3, wherein the first extended community attribute is a two-layer EVPN extended community attribute.
5. The method of any of claims 1-4, wherein the second EVPN route includes a second extended community attribute that includes the second indication information.
6. The method according to any one of claims 1-5, wherein the first EVPN route further includes third indication information, the third indication information indicating a state of the first pseudowire, and the second EVPN route further includes fourth indication information, the fourth indication information being used to indicate a state of the second pseudowire.
7. The method of claim 6, wherein the state of the first pseudowire is primary active and the state of the second pseudowire is standby.
8. The method of claim 7, wherein the method further comprises:
receiving a third EVPN route sent by the second communication device, wherein the third EVPN route comprises fifth indication information, and the fifth indication information is used for indicating that the state of an L2EVPN instance locally stored by the second communication device and associated with the first pseudo wire is active;
and determining the state of the first pseudo wire as active and the state of the second pseudo wire as standby based on the fifth indication information.
9. The method of claim 7, wherein the first pseudowire is a standby pseudowire and the second pseudowire is a primary pseudowire, wherein the transmitting the first ethernet virtual private network, EVPN, route to the second communication device, the transmitting the second EVPN route to the third communication device, comprises:
in response to determining the second pseudowire failure, the first EVPN route is sent to the second communication device and the second EVPN route is sent to the third communication device.
10. The method of any of claims 1-9, wherein the first communication device supports EVPN virtual private line traffic, VPWS, and wherein the first EVPN route is an EVPN instance ethernet auto discovery, evi-ad route.
11. The method of any of claims 1-9, wherein the first communication device supports EVPN virtual private line local area network service VPLS, and wherein the first EVPN route is an inclusive multicast IMET route.
12. A method of determining a pseudowire state for use with a second communication device, the method comprising:
receiving a first EVPN route sent by a first communication device, wherein the first EVPN route comprises first indication information and second indication information, the first indication information is used for indicating the state of a first pseudo wire determined through a master-slave mode, the first pseudo wire is a pseudo wire between the first communication device and the second communication device, and the second indication information is used for indicating the first state of the first pseudo wire;
And determining the state of the first pseudo wire as the first state based on the first indication information and the second indication information.
13. The method of claim 12, wherein the first EVPN route includes a first extended community attribute that includes the first indication information.
14. The method of claim 13, wherein the first indication information is carried in a reserved field of the first extended community attribute.
15. The method of claim 13 or 14, wherein the first extended community attribute is a two-layer EVPN extended community attribute.
16. The method according to any one of claims 12-15, characterized in that the method further comprises:
and sending a second EVPN route to the first communication device, wherein the second EVPN route comprises third indication information, and the third indication information is used for indicating the state of an L2EVPN instance which is locally stored by the second communication device and is associated with the first pseudo wire.
17. The method according to any one of claims 12-16, wherein the determining, based on the first indication information and the second indication information, the state of the first pseudowire as the first state includes:
And determining that the state of the first pseudo wire is the first state based on the first indication information, the second indication information and the state of an L2EVPN instance locally stored by the second communication device and associated with the first pseudo wire.
18. The method of claim 16 or 17, wherein the first state is active and the state of the L2EVPN instance locally stored by the second communication device in association with the first pseudowire is active.
19. The method of claim 16 or 17, wherein the first state is standby and the state of the L2EVPN instance locally stored by the second communication device in association with the first pseudowire is active.
20. The method of claim 16 or 17, wherein the first state and the state of the L2EVPN instance locally stored by the second communication device in association with the first pseudowire are both standby.
21. The method of claim 20, wherein the first pseudowire is a primary pseudowire, and wherein the receiving the first EVPN route transmitted by the first communication device comprises:
and after the first pseudo wire fails, receiving the first EVPN route sent by the first communication device.
22. The method of any of claims 12-21, wherein the second communications device supports EVPN virtual private line traffic, VPWS, and the first EVPN route is an EVPN instance ethernet auto-discovery route, evi-ad route.
23. The method of any of claims 12-21, wherein the second communication device supports EVPN virtual private line local area network service VPLS, and wherein the first EVPN route is an inclusive multicast IMET route.
24. The method of claim 23, wherein the method further comprises:
and if the state of the first pseudo wire is determined to be active, determining that the second communication device is a designated forwarder DF.
25. The method of claim 23, wherein the method further comprises:
and if the state of the first pseudo wire is determined to be standby, determining that the second communication device is a non-designated forwarder (NDF).
26. A first communication device, the first communication device comprising:
a transceiver unit and a processing unit;
the transceiver unit for performing the receiving and/or transmitting operations performed by the first communication device according to any one of claims 1-11;
The processing unit is configured to perform operations other than the receiving and/or transmitting operations performed by the first communication device according to any of claims 1-11.
27. A second communication device, the second communication device comprising:
a transceiver unit and a processing unit;
the transceiver unit for performing the receiving and/or transmitting operations performed by the second communication device according to any one of claims 12-25;
the processing unit is configured to perform operations other than the receiving and/or transmitting operations performed by the second communication device according to any of claims 12-25.
28. A communication device, comprising: a processor and a memory;
the memory is used for storing instructions;
the processor configured to execute the instructions, cause the communication device to perform the method of any one of claims 1-11, or cause the communication device to perform the method of any one of claims 12-25.
29. A computer readable storage medium comprising instructions which, when run on a processor, implement the method of any one of claims 1-25.
30. A communication system, the communication system comprising:
A first communication device performing the method of any of the preceding claims 1-11 and a second communication device performing the method of any of the claims 12-25.
CN202210421685.1A 2022-04-21 2022-04-21 Method and device for determining pseudo-wire state Pending CN116980350A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210421685.1A CN116980350A (en) 2022-04-21 2022-04-21 Method and device for determining pseudo-wire state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210421685.1A CN116980350A (en) 2022-04-21 2022-04-21 Method and device for determining pseudo-wire state

Publications (1)

Publication Number Publication Date
CN116980350A true CN116980350A (en) 2023-10-31

Family

ID=88478271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210421685.1A Pending CN116980350A (en) 2022-04-21 2022-04-21 Method and device for determining pseudo-wire state

Country Status (1)

Country Link
CN (1) CN116980350A (en)

Similar Documents

Publication Publication Date Title
US10116467B2 (en) Ethernet tag mapping in virtual private wire service using ethernet virtual private network
EP2996287B1 (en) Method for notifying information of pe device and pe device
US8537720B2 (en) Aggregating data traffic from access domains
CN101938370B9 (en) Redundant pseudowires for a border gateway protocol based virtual private local area network service multihoming environment
JP7176095B2 (en) COMMUNICATION METHOD, COMMUNICATION DEVICE AND COMMUNICATION SYSTEM
US20220124024A1 (en) Establishment of method and apparatus for implementing entry backup
EP2634978B1 (en) Message forwarding method and network device
JP7536093B2 (en) Packet forwarding method, first network device, and first device group
CN116980350A (en) Method and device for determining pseudo-wire state
CN113872843B (en) Route generation method, route processing method and device
CN111885630B (en) Data transmission method and communication device
WO2019056239A1 (en) Packet synchronization method and device
CN115460107A (en) Route detection method, device, system and storage medium
US9444728B2 (en) Packet switching device including cascaded aggregation nodes
US20150244564A1 (en) Active/standby pw redundancy for epipes
Muley et al. Pseudowire redundancy
CN112737949A (en) Fault detection method and device, electronic equipment and computer readable medium
Muley et al. Pseudowire Preferential Forwarding Status Bit
CN104378245A (en) Method and device for implementing OAM (operation, administration and maintenance) on AC (attachment circuit) port of L2VPN (layer 2 virtual private network) architecture
CN111901182B (en) Flow forwarding method and network equipment
WO2023284547A1 (en) Fault detection method, apparatus and system
US20240121174A1 (en) Information processing method, apparatus, and system
JP2024002962A (en) Tunnel establishment method, information release method, and device
CN114915538A (en) Fault detection method, network device and system
Muley et al. RFC 6870: Pseudowire Preferential Forwarding Status Bit

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication