WO2012028029A1 - Switching method and system - Google Patents
Switching method and system Download PDFInfo
- Publication number
- WO2012028029A1 WO2012028029A1 PCT/CN2011/076671 CN2011076671W WO2012028029A1 WO 2012028029 A1 WO2012028029 A1 WO 2012028029A1 CN 2011076671 W CN2011076671 W CN 2011076671W WO 2012028029 A1 WO2012028029 A1 WO 2012028029A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- dual
- homed
- link
- primary
- remote
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/55—Prevention, detection or correction of errors
- H04L49/557—Error correction, e.g. fault recovery or fault tolerance
Definitions
- the invention relates to multi-tag protocol exchange in the field of data communication (MPLS, Multi-Protocol
- L2VPN Layer 2 Virtual Private Network
- the protocol specifications related to MPLS L2VPN are being widely discussed and developed, and it has become the best choice for telecom operators to build virtual private networks (VPNs).
- the outstanding technical features of L2VPN are: It supports the interworking of multiple link emulation services and multiple Layer 2 link technologies, and is compatible with traditional Layer 2 VPN technologies.
- MPLS L2VPN There are two main models of MPLS L2VPN: VPWS (Virtual Private Wire Service) and Virtual Private LAN Service (VPLS).
- the former is a pair of client devices (CE, Customer Edge).
- CE Customer Edge
- the logical link of the layer is interconnected, the latter is the interconnection of multiple CEs through an Ethernet LAN; the interconnection of the two models needs to involve multiple service provider devices in the Packet Switched Network (PSN).
- a PW (Pseudo-Wire) is set up between the PE and the Provider Edge. The PW is used to carry Layer 2 service traffic of the CE.
- the PW itself needs to be carried on the public network tunnel of the PSN.
- the Fast Re-Route (FRR) technology provided by the public network tunnel is used to protect the traffic of the PW. That is, when the public network tunnel detects that the current active path fails. The traffic will be quickly switched to the protection path, but the PW will not perceive the switch.
- FRR Fast Re-Route
- the PW must implement the protection of the service traffic through its own redundancy, that is, create a primary and a backup PW to form redundancy protection, including: CE dual-homed to two PEs, multi-segment pseudo Multi-terminal unit switching in the network (MS-PW, Multi-Segment Pseudowire) and hierarchical VPLS (H-VPLS, Hierarchical VPLS) networking (MTU-s, Multi-Tenant Unit Switch) is dual-homed to two PEs (PE-Routing and Bridging) with routing and switching capabilities.
- MS-PW multi-segment pseudo Multi-terminal unit switching in the network
- H-VPLS Hierarchical VPLS
- MTU-s Multi-Tenant Unit Switch
- FIG. 1 is a schematic diagram of the structure of a VPLS network in the prior art.
- a typical VPLS network has both a dual-homed CE and a single-homed CE.
- CE3 is dual-homed to PE2 and PE3.
- the CE4 is singly assigned to the PE2.
- the CE3, the PE2 and the PE3 are selected.
- the CE can be configured to run the Spanning Tree Protocol (STP) on the CE3 to prevent the traffic between the PE and the CE from forming a loop.
- STP Spanning Tree Protocol
- the PE connected to the link that is not blocked will become the active forwarding node.
- the CE can also be configured to set the primary and backup links on the CE3. When the primary link is detected or the PE connected to the primary link fails.
- STP Spanning Tree Protocol
- the PE determines the mode to run an election algorithm on the PEs of the corresponding VPLS network. One of the two PEs is elected as an active forwarding node.
- the existing data flow triggers the source MAC address learning, that is, generates a destination MAC address entry according to the address in the source MAC address entry in the received data flow, and the destination MAC address entry is the MAC address entry of the source MAC entry.
- the source MAC address entry is on the single-homed CE side or the dual-homed CE side, so that the generated destination MAC address entries inherit the PW FRR information indiscriminately; as shown in Figure 1, PE1
- the destination MAC address entries of the CE3 and CE4 are inherited from the PW FRR information.
- the PW FRR switchover is bound to affect the traffic of the single-homed CE.
- TLV Type Length Value
- MAC media access control
- the main purpose of the present invention is to provide a handover method and system.
- a link of a dual-homed CE fails, the link of the dual-homed CE is quickly performed without affecting the traffic of the single-homed CE. Switching of PW.
- the present invention provides a handover method, including:
- the dual-homed PE When the dual-homed client device (CE) or the dual-homed provider device (PE) determines that the primary link fails, the dual-homed PE sends a "redundant PW transceiver defect" message to the remote PE; or, when the dual-homed PE or When the remote PE determines that the primary PW fails, the dual-homed PE notifies the dual-homed CE of the "link transmission and reception defect" message;
- the remote PE switches traffic from the primary pseudowire (PW) to the standby PW, and the dual-homed CE switches traffic from the primary link to the standby link for transmission.
- PW primary pseudowire
- the dual-homed PE when the dual-homed CE or the dual-homed PE determines that the primary link fails, the dual-homed PE sends a message of "redundant PW transmission and reception defect" to the remote PE:
- the dual-homed CE When the dual-homed CE detects that the primary link fails, it notifies the dual-homed PE "link transmission and reception defect" connected thereto; or, the dual-homed PE detects that the primary link is invalid, and sends a "link transmission and reception defect" message to the primary link. a dual-homed CE, or a "link receiving and receiving defect” message sent by a dual-homed CE connected thereto;
- the dual-homed PE determines that the primary link fails and determines that the failed primary link has a PW associated with it, the dual-homed PE sends a message of "redundant PW transmission and reception defect" to the remote PE.
- the method further includes: before the dual-homed PE or the dual-homed PE determines that the primary link is inactive, before the dual-homed PE sends a message to the remote PE, the method further includes:
- the primary and backup links of the dual-homed CE are configured, and the primary PW and the standby PW are configured between the remote PE and the dual-homed PE, and the configured PW is associated with the primary and backup links of the dual-homed CE.
- the primary link and the backup link of the dual-homed CE are configured to: configure two links on the dual-homed CE, set the redundancy status of one link as the primary, and the other link. The redundancy status is set to standby.
- the dual-homed CE generates AC Fast Reroute (FRR) forwarding entries based on the configured primary and backup links.
- FRR Fast Reroute
- the configuration of the primary PW and the standby PW between the remote PE and the dual-homed PE is as follows: multiple PWs are configured on the remote PE, and the remote PE passes through the configured PW and each adjacent one.
- the PE is connected, and the redundancy status of one PW is set to be the primary, and the redundancy status of the other PW is set to standby; the primary PW and the standby PW are associated with the primary link and the standby link; and the remote PE is configured according to the primary The PW and the standby PW generate PW FRR forwarding entries.
- the configured PW is associated with the primary link and the standby link of the dual-homed CE:
- the primary PW is associated with the standby PW, and the remote PE distinguishes the single-homed traffic and the dual-homed traffic according to whether the association process is performed.
- the remote PE distinguishes the single-homed traffic and the dual-homed traffic according to whether the association process is performed:
- the dual-homed PE will advertise the MAC address entry learned from the link of the dual-homed CE to the remote PE through the LDP address message.
- the remote PE inherits the MAC entry from the MAC address entry to the PW FRR entry.
- the forwarding behavior of the entry will be affected by the PW FRR.
- the MAC entry directs the remote PE to forward the dual-homed traffic.
- the dual-homed PE does not advertise the MAC entry learned from the link of the single-homed CE to the remote PE.
- the remote PE does not inherit the PW FRR entry based on the MAC entry.
- the forwarding behavior of the MAC entry is not affected by the PW. Impact of FRR. This MAC entry guides the remote PE to forward single-homed traffic.
- the method further includes: When the dual-homed CE and the dual-homed PE determine that the primary link is valid, the dual-homed PE advertises the message "Redundant PW is received and received normally" to the remote PE; the dual-homed CE switches the traffic back to the primary link for transmission. The PE switches back the traffic to the primary PW for transmission.
- the method further includes:
- the dual-homed PE When the dual-homed PE and the remote PE determines that the primary PW is valid, the dual-homed PE advertises the message "link is received and received normally" to the dual-homed CE; the dual-homed CE switches the traffic back to the primary link for transmission, and the remote PE will The traffic is switched back to the primary PW for transmission.
- the present invention further provides a handover system, the system comprising: a dual-homed PE, a dual-homed CE, and a remote PE;
- a dual-homed PE used for dual-homing CE or self-determined when the primary link fails, sending a message of "redundant PW transmission and reception defect" to the remote PE;
- the dual-homing CE is configured to switch traffic from the primary link to the standby link for transmission when determining that the primary link fails;
- the remote PE when used for the message "Redundant PW sends and receives defects", transfers traffic from the primary PW to the standby PW for transmission.
- the system further includes: a configuration module, configured to configure a primary link and a backup link of the dual-homed CE, and configure a primary PW and a standby PW between the remote PE and the dual-homed PE, and configure the PW and the dual-homed CE
- the primary link is associated with the alternate link
- the dual-homed PE is further configured to: when the dual-homed CE or the self-determination primary link is restored, notify the remote PE of the message that the “redundant PW is sent and received normally”;
- the dual-homing CE is further configured to: when determining that the primary link is valid, the traffic is switched back to the primary link for transmission;
- the remote PE is further configured to: when receiving the message that the “redundant PW is sent and received normally”, the traffic is switched back to the primary PW for transmission.
- the present invention further provides a handover system, including: a dual-homed PE, a dual-homed CE, and a remote PE;
- the dual-homed PE is used to notify the dual-homed CE of the "link receiving and receiving defect" message when the self-respecting PE determines that the primary PW is invalid;
- the traffic is switched from the primary link to the standby link for transmission;
- the remote PE is used to determine that the primary PW fails, and the traffic is switched from the primary PW to the standby PW for transmission.
- the system further includes: a configuration module, configured to configure a primary link and a backup link of the dual-homed CE, and configure a primary PW and a standby PW between the remote PE and the dual-homed PE, and configure the PW and the dual-homed CE
- the primary link is associated with the alternate link
- the dual-homed PE is further configured to notify the dual-homed CE of the "link transmission and reception normal" message when the remote PE determines that the primary PW is valid.
- the dual-homing CE is further configured to: when receiving the message that the link is sent and received normally, the traffic is switched back to the primary link for transmission;
- the remote PE is further configured to: when the primary PW is restored, the traffic is switched back to the primary PW for transmission.
- the switching method and system provided by the present invention have PW redundancy and link redundancy. If the primary link fails, the traffic is quickly switched to the standby link and the standby PW for transmission, thereby realizing the link and PW in the VPLS network.
- the dual-homed CE or the dual-homed PE determines that the primary link is invalid, the dual-homed PE sends a message to the remote PE. Therefore, the dual-homed PE does not send the relevant one that carries the single-homed CE.
- the destination MAC address entry is forwarded to the remote PE, and the traffic of the single-homed CE is not switched.
- the present invention better solves the problem of switching and switching back the traffic of the VPLS network.
- FIG. 1 is a schematic structural diagram of a VPLS networking in the prior art
- FIG. 2 is a schematic flow chart of a first embodiment of implementing a handover method according to the present invention
- FIG. 3 is a schematic flowchart of a second embodiment of implementing a handover method according to the present invention.
- FIG. 4 is a schematic structural view of a handover system implemented by the present invention. detailed description
- the basic idea of the present invention is: when the dual-homed client device (CE) or the dual-homed provider device (PE) determines that the primary link fails, the dual-homed PE sends a "redundant PW transceiving defect" message to the remote PE; Or, when the dual-homed PE or the remote PE determines that the primary PW fails, the dual-homed PE notifies the dual-homed CE of the "link receiving and receiving defect" message;
- the remote PE switches traffic from the primary PW to the standby PW for transmission; the dual-homed CE switches traffic from the primary link to the standby link for transmission.
- FIG. 2 is a schematic flowchart of a first embodiment of a handover method according to the present invention. As shown in FIG. 2, the method includes the following steps:
- Step 201 Configure a primary link and a backup link of the dual-homed CE.
- two links are configured on the dual-homed CE, and the redundancy state of one of the links is set to be the primary link, that is, the link is the primary link; and the redundancy state of the other link is set to the standby, that is, The link is a backup link and is used to protect the primary link.
- the setting principle can be to specify any one of them; only one of the primary link and the standby link can send and receive traffic, and the link that can send and receive traffic is doubled.
- the PE that is connected to the CE is an active forwarding node.
- the step may further include: the dual-homing CE generates an AC FRR forwarding entry according to the configured primary link and the standby link, and the forwarding entry is to be His service forwarding entries (such as MAC address entries) are inherited.
- the method is applied to the VPLS network of Figure 1.
- the method for configuring the primary link AC3 and the standby link AC4 of the dual-homed CE3 is as follows: As shown in Figure 1, the access link AC3 of the CE3 is configured on the PE2. Configure the access link AC5 of CE4, configure the access link AC4 of CE3 on PE3, and set the redundancy state of the access link AC3 of CE3 to PE2 as the primary. That is, the access link AC3 is the master of CE3. Link; the redundancy state of the access link AC4 that connects CE3 to PE3 is set to standby, that is, the access link AC4 serves as the backup link of CE3, and is used to protect the primary link AC3;
- the CE3 generates an AC FRR forwarding entry based on the configured primary link AC3 and the standby link AC4.
- the primary link entry and the backup link entry include the outbound port AC3 and the outbound port AC4.
- Source MAC address learning that is, the source MAC address of the traffic received by the CE3 (incoming port AC3), the destination MAC address entry (AC3) entry, and the destination MAC address entry as the service forwarding entry of the traffic.
- the generated destination MAC address entry inherits the AC FRR forwarding entry, so that the egress port of the generated destination MAC address entry is not only AC3 but also AC4. Similarly, if CE3 receives traffic from the alternate link AC4, source MAC learning is performed.
- the destination MAC address (outbound port AC4) entry is generated, and the destination MAC address entry is used as the service forwarding entry of the traffic, and the generated destination MAC address entry inherits the AC.
- the FRR forwards the entry so that the egress port of the generated destination MAC address entry is not only AC4 but also AC3. Therefore, when the primary link AC3 is valid, CE3 receives the entry.
- the traffic is sent by the primary link AC3 by default.
- the inheritance means that there is only one outgoing port in the destination MAC address entry. Because there are two links in the AC FRR forwarding entry, the primary link and the backup link exist. After inheriting the AC FRR forwarding entry, there are two outgoing ports in the destination MAC address entry.
- Step 202 Configure a primary PW and a standby PW between the remote PE and the dual-homed PE, and associate the configured PW with the primary link and the standby link of the dual-homed CE.
- multiple PWs are configured on the remote PE, and the remote PE passes the configured PW.
- Each PE of the neighbor is connected, and the redundancy status of one of the PWs is set to be the primary PW, and the redundancy status of the other PW is set to standby, that is, as the standby PW, which is used to protect the primary PW; It is specified that any one of them is primary, but must be consistent with the primary link AC and the standby link AC; the remote PE can switch traffic between the primary PW and the standby PW;
- the step may further include: associating the primary PW and the standby PW with the primary link and the standby link of the dual-homed CE, if the link AC between the dual-homed PE and the single-homed CE is configured, the link AC does not The PW of the dual-homed PE is associated, and the remote PE distinguishes the single-homed traffic and the dual-homed traffic according to whether the association process is performed.
- the remote PE generates a PW FRR forwarding entry according to the configured primary PW and the standby PW. The entry will be inherited by the other service forwarding entry (for example, the MAC address entry); the dual-homed PE will advertise the MAC address learned from the link AC of the dual-homed CE to the remote PE through the LDP address message.
- the remote PE then forwards the MAC entries to the PW FRR entries, so that the forwarding behavior of the MAC entries is affected by the PW FRR.
- the MAC entries guide the remote PEs to forward the dual-homed traffic. This is called The dual-homed PE does not advertise the MAC entry learned from the connected AC of the single-homed CE to the remote PE. Therefore, the remote PE cannot inherit these MAC entries to the PW. FRR form So that these acts of MAC forwarding entries from PW FRR influence, which is not affected by PW FRR of the MAC forwarding table entries for the guidance of the remote PE single-homed traffic, which is the so-called single-homed traffic.
- PE2 and PE3 are dual-homed PEs.
- the method for establishing a primary PW and a standby PW between PE1, PE2, and PE3 is as follows: PW1 is created and connected to the neighboring PE2 through PW1.
- the link AC3 between PE2 and CE3 is the primary link AC.
- the redundancy status of PW1 is set to be the primary, that is, PW1 is the primary PW.
- the link AC4 between PE3 and CE3 is the standby link AC.
- set the redundancy status of PW2 to standby that is, PW2 as the standby PW.
- PE1 A PW FRR forwarding entry is generated based on the configured primary PW1 and the standby PW2.
- the forwarding entry is inherited by other service forwarding entries (such as MAC address entries).
- PW1 is created on PE2 and connected to the adjacent PE1 through PW1.
- the PW1 created on PE2 has no redundant PW.
- the redundancy status of the PW1 is the default.
- the primary link AC3 associated with PW1 is configured on PE2. You can also configure multiple associated links AC to form an associated link.
- the AC group is created on the PE3.
- the PW2 is connected to the PE1 of the PE4.
- the PW2 is connected to the PW2 on the PE3.
- the standby link AC4 associated with the PW2 is configured on the PE3.
- Associated links AC form an associated link AC group.
- the source MAC address learning is performed to obtain the destination MAC address entry.
- the PE2 determines that the primary link AC3 is associated with PW1 according to the configured primary link AC3 associated with PW1. PE2 needs to be obtained.
- the destination MAC address entry is sent to the PE1 through the LDP address message, and is used to inform the PE1 that the destination MAC address entry needs to inherit the PW FRR forwarding entry.
- the LDP address message carrying the destination MAC address entry is a redundant PW. If the received traffic is from the link AC5, the PE2 performs the source MAC address learning, but the link AC5 is not associated with any PW, and the LDP address message is not sent to the PE1.
- the destination MAC address entry is obtained. After the standby link AC4 is associated with the PW2, the destination MAC address entry sent by the PE3 is sent to the PE1 through the LDP address message to notify the PE1. The destination MAC address entry needs to inherit the PW FRR forwarding entry.
- the source MAC address is learned and the destination MAC address entry is obtained.
- the default outgoing port of the destination MAC address entry is PW1.
- PE1 receives the PW1 from PE2, it needs to inherit the PW FRR forwarding entry.
- PE1 maintains the destination MAC address entry and allows the destination MAC address entry to inherit the PW FRR forwarding entry, so that it no longer only forwards traffic according to the outgoing port PW1, but based on the inherited PW.
- the FRR forwards the entry to forward traffic.
- the outgoing port is PW1 and PW2. If the traffic received by PE1 is from PW2, the source MAC address is learned and the destination MAC address entry is obtained.
- the default outgoing port of the destination MAC address entry is PW2.
- PE1 receives the PW2 from PE3, it needs to inherit PW FRR.
- PE1 maintains the destination MAC address entry and allows the destination MAC address entry to inherit the PW FRR forwarding entry, so that it no longer only forwards traffic according to the outgoing port PW2, but obtains the inheritance according to the inheritance.
- the PW FRR forwarding entry is used to forward traffic, and the outgoing egress port includes PW1 and PW2.
- the inheritance means that there is only one egress port in the destination MAC address entry, because there are two main PWs and two standby PWs in the PW FRR forwarding entry. Link, so after it inherits the PW FRR forwarding entry, there are two outgoing ports in the destination MAC address entry.
- PE 1 determines the destination MAC address entry that needs to inherit the PW FRR forwarding entry based on the destination MAC address entry in the LDP address message. Therefore, not all destination MAC address entries inherit PW FRR.
- the incoming traffic comes from link AC5.
- the obtained destination MAC address entry does not inherit PW FRR; therefore, when traffic is switched and switched back between the primary link and the standby link or between the primary PW and the standby PW
- the traffic between the single-homed CE and the PE is not affected. Therefore, the traffic between the dual-homed CE and the PE is protected, and the traffic between the single-homed CE and the PE is normally transmitted.
- Step 203 When the dual-homed CE or the dual-homed PE determines that the primary link fails, the dual-homed PE sends a message of “redundant PW transmission and reception defect” to the remote PE.
- the dual-homed CE (such as CE3 in FIG. 1) can detect that the primary link fails or receives the "link receiving and receiving defect" message sent by the dual-homed PE (such as PE2 in FIG. 1) connected thereto;
- the detection mode can be that the physical link of the primary link is set to DOWN or the physical failure caused by the deletion.
- the dual-homed CE can automatically detect the failure of the primary link. If the CE detects that the primary link is invalid, the CE needs to send the fault.
- the link sends and receives a defect message to the dual-homed PE connected thereto; or, the dual-homed PE detects that the primary link is invalid, or receives a dual-homed CE transmission connected thereto
- the "link is sent and received"message; the detection mode may be: the physical failure of the physical interface where the dual-homed PE is deleted, the dual-homed PE can automatically detect the failure of the primary link; The primary link fails, and the dual-homed PE also needs to send a "link transmission and reception defect" message to the dual-homed CE connected thereto;
- the dual-homed PE determines that the primary link is invalid, it is determined that the failed primary link exists with the associated PW according to the related information generated when the primary link is associated with the primary PW, so the remote PE needs to be triggered.
- PE1 of 1 performs the switching between the primary PW and the standby PW; therefore, the dual-homed PE also needs to send a message of "redundant PW transmission and reception defect" to the remote end of the primary PW associated with the primary link, that is, the remote PE, where, and the PE
- the access link AC of the connected dual-homed CE fails, the PE sends the message of the "redundant PW transmission and reception defect". If the access link AC of the single-homed CE connected to the PE fails, The message "Redundant PW Transceiver Defect" is not sent.
- Step 204 The dual-homing CE switches the traffic from the primary link to the standby link for transmission, and the remote PE switches the traffic from the primary PW to the standby PW for transmission.
- the dual-homing CE determines whether there is a backup link according to the AC FRR forwarding entry generated by itself, and determines whether the standby link is valid.
- the CE switches the traffic to the standby link for transmission. That is, the dual-homed CE stops sending traffic from the outbound ports of the two outgoing ports according to the two outbound ports in the destination MAC address entry generated by the dual-homed CE. Issued from another egress port; if it is determined that the alternate link is invalid, the destination MAC address entry that inherits the AC FRR forwarding entry becomes invalid, and the dual-homed CE stops sending traffic to the primary and backup links;
- the remote PE determines that there is a standby PW according to the PW FRR forwarding entry generated by the remote PE. If the standby PW is valid, the remote PE switches the traffic to the standby PW for transmission; that is, the dual-homed PE stops the two outgoing ports according to the generated destination MAC address entry. The outbound end of the outgoing traffic in the outgoing port If the backup PW is invalid, the destination MAC address entry that inherits the PW FRR forwarding entry becomes invalid, and the remote PW stops sending traffic to the primary PW and the standby PW.
- Step 205 When the dual-homed CE and the dual-homed PE determine that the primary link is restored, the dual-homed PE notifies the remote PE of the message that the redundant PW is sent and received normally.
- the dual-homed CE (such as CE3 in FIG. 1) takes priority over the dual-homed PE to detect that the primary link is restored, the dual-homed CE determines that the primary link is restored, and sends a message that the link is sent and received normally.
- the dual-homed PE connected to the dual-homed PE receives the "link-received normal" message sent by the dual-homed CE (such as CE3 in Figure 1), and determines that the primary link is valid through detection.
- the PE determines that the primary link is valid.
- the detection mode of the dual-homed PE can be: The physical interface of the dual-homed PE is physically connected to the physical link.
- the detection mode of the dual-homed CE can be: the physical interface where the primary link resides.
- the physical validity of the link is set to UP or the link is added.
- the dual-homed CE can automatically detect that the primary link is valid.
- the dual-homed PE (such as PE2 in FIG. 1) takes precedence over the dual-homed CE to detect that the primary link is restored, sending a "link-received normal" message to the dual-homed CE connected thereto, when the dual-homed CE receives
- the dual-homed PE (such as PE2 of FIG. 1) is connected to the "link transmission and reception normal" message, and the self-test determines that the primary link is valid
- the dual-homing CE determines that the primary link is valid
- the dual-homed CE determines the primary.
- the message that the "link is received and received normally" is sent to the dual-homed PE.
- the dual-homed PE detects that the primary link is valid and receives the "link transmission and reception normal" message of the dual-homed CE. Therefore, it is determined that the primary link recovery is valid;
- the remote PE After the dual-homing PE determines that the primary link is restored, the remote PE is triggered to perform the switchback of the standby PW and the primary PW. That is, the dual-homed PE (such as PE2 in FIG. 1) notifies the opposite end of the primary PW associated with the primary link.
- the remote PE (PE1 in Figure 1) sends a message "Redundant PW Transceiver Normal".
- the dual-homed PE can determine whether the primary link is valid according to the status of the physical port.
- the dual-homed CE can only determine whether the primary link is valid according to the status of the physical port. Both the dual-homed PE and the dual-homed CE cannot determine whether the primary link detected by the peer is valid. Therefore, both the dual-homed PE and the dual-homed CE need to determine that the primary link is valid.
- Step 206 The dual-homing CE reverts the traffic to the primary link for transmission, and the remote PE returns the traffic to the primary PW for transmission.
- the dual-homed CE when the dual-homing determines that the primary link is valid, or receives the message that the link is sent and received normally sent by the dual-homed PE, the dual-homed CE sends a message that the link is sent and received normally to the dual-homed PE, when dual-homing When the CE sends a message to the dual-homed PE "link is received and received normally" and also receives the "link-received normal" message of the dual-homed PE, the dual-homed CE cuts the traffic from the standby link back to the primary link;
- the remote PE When the peer end of the dual-homed PE of the primary PW associated with the primary link, that is, the remote PE (such as PE1 in Figure 1) receives the message "Redundant PW is received and received normally", the remote PE sends "redundant" to the dual-homed PE. If the remote PE not only informs the dual-homed PE of the "redundant PW transmission and reception” message, but also receives the "redundant PW transmission and reception normal" message of the dual-homed PE, the remote PE will send traffic. Switch back to the primary PW for transmission.
- the remote PE such as PE1 in Figure 1
- the remote PE or the dual-homed CE can implement the timely switchback or the delay switchback based on the normal mode of the two-way acknowledgement.
- the delay switchback is required, the normal message can be sent or passively acknowledged for a period of time.
- the dual-homed PE is between the remote PE and the dual-homed CE.
- the dual-homed PE sends or passively responds to the normal message on either side, the other party must ensure that the other side is normal.
- the "redundant PW transmission and reception defect" and the "redundant PW transmission and reception normal" message pair are determined by the PE according to its own role.
- the remote PE if it belongs to the VPLS instance and is in the instance, If the PW is in the FRR, the corresponding PW needs to introduce the message pair.
- the dual-homed PE if the PW belongs to the VPLS instance and the PW in the instance is associated with the AC, the corresponding PW needs to introduce the message pair.
- FIG. 3 is a schematic flowchart of a second embodiment of a handover method according to the present invention, as shown in FIG. 3, The method includes the following steps:
- Step 301 Configure a primary link and a backup link of the dual-homed CE.
- Step 302 Configure a primary PW and a standby PW between the remote PE and the dual-homed PE.
- Steps 301 and 302 are detailed in steps 201 and 203.
- Step 303 When the dual-homed PE or the remote PE determines that the primary PW is invalid, the dual-homed PE notifies the dual-homed CE of the "link receiving and receiving defect" message;
- the dual-homed PE (such as PE2 in FIG. 1) can detect that the primary PW is invalid, or receives the remote PE connected to it (such as PE1 in FIG. 1).
- "Redundant PW Transceiver Defect" message in which the PE detects the PW failure detection mode, the PE detects that the outer tunnel carrying the PW is unreachable, or the PW itself fails to keep alive, or the TP-OAM detects the PW failure, or the BFD detects The PW fails.
- the dual-homed PE detects the failure of the primary PW
- the dual-homed PE also needs to send a message of "redundant PW transmission and reception defect" to the remote PE, which is equivalent to the remote PE also determining that the primary PW is invalid.
- the processing method of the home PE (such as PE3 in Figure 1) is the same as above; or, the remote PE detects the failure of the primary PW, or receives the message of "redundant PW transmission and reception defect" sent by the dual-homed PW connected thereto; The PE detects that the primary PW is invalid.
- the remote PE also needs to send a message of "redundant PW transmission and reception defect" to the dual-homed PE connected to it.
- the dual-homed PE also determines that the primary PW is invalid.
- the dual-homed PE determines that the primary PW is invalid, it is determined that the primary PW that is in the default is associated with the primary link according to the related information generated when the primary link is associated with the primary PW, so the dual-homed CE needs to be triggered to perform the primary link.
- the switch to the standby link; the dual-homed PE also needs to send a "link send and receive defect" message to the peer dual-homed CE of the primary link associated with the primary PW (such as CE3 in Figure 1).
- Step 304 The dual-homing CE switches the traffic from the primary link to the standby link for transmission, and the remote PE switches the traffic from the primary PW to the standby PW for transmission.
- the dual-homing CE receives the message of "link transmission and reception defect" sent by the dual-homing PE
- the dual-homing CE determines whether the standby link is valid. If it is determined that the standby link is valid, the dual-homed CE switches the traffic to the standby link for transmission, that is, The dual-homed CE stops sending traffic from the egress port that is sending traffic from the two egress ports according to the two egress ports in the destination MAC address entry generated by itself, and sends traffic from another egress port; if the alternate link is determined If the entry is invalid, the destination MAC address entry that inherits the AC FRR forwarding entry becomes invalid. The dual-homed CE stops sending traffic to the primary link and the standby link.
- the remote PE determines whether the standby PW is valid according to the PW FRR forwarding entry generated by the remote P-P. If it is determined that the standby PW is valid, the remote PE switches the traffic to the standby PW for transmission; that is, the dual-homed PE stops the outgoing traffic from the two outgoing ports according to the two outgoing ports in the destination MAC address entry generated by the dual-homed PE. The outbound port sends traffic, and the traffic is sent from the other egress port. If it is determined that the standby PW is invalid, the destination MAC address entry that inherits the PW FRR forwarding entry becomes invalid, and the remote PW stops sending traffic to the primary PW and the standby PW. .
- Step 305 When the dual-homed PE and the remote PE determine that the primary PW is valid, the dual-homed PE notifies the dual-homed CE that the "link is received and received normally" message;
- the message "relay PW is received normally" is sent to the remote PE connected to it (such as PE1 in FIG. 1).
- the remote PE determines that the primary PW is valid when the remote PE receives the "redundant PW transmission and reception normal" message sent by the dual-homed PE connected to it, and the remote PE determines that the primary PW is valid; After the PW is restored, the message that the "redundant PW is sent and received normally" is sent to the dual-homed PE.
- the dual-homed PE detects that the primary PW is valid and receives the "redundant PW transmission and reception normal" message of the remote PE. Therefore, the dual-homing PE determines that the primary PW is valid.
- the detection mode of the PW that is detected by the PE is that the PE detects the opening of the outer tunnel that carries the PW. And the PW itself is effective;
- the remote PE when the remote PE detects that the primary PW recovery is valid, the remote PE determines that the primary PW is valid, and sends a message that the "redundant PW is received and received normally" to the dual-homed PE.
- the dual-homed PE determines that the primary PW is valid when the primary PW is restored, and the dual-homed PE determines that the primary PW is valid, when the dual-homed PE determines that the primary PW is valid.
- the related information generated when the primary link is associated with the primary PW determines that the active primary PW has a primary link associated with the active primary PW, and triggers the dual-homed CE to perform the failback of the standby link and the primary link; that is, the dual-homed PE
- the message "Link is received and received normally" is sent to the peer dual-homed CE of the primary link associated with the primary PW (such as CE3 in Figure 1).
- Step 306 The dual-homing CE reverts the traffic to the primary link for transmission, and the remote PE returns the traffic to the primary PW for transmission.
- the dual-homed CE when the dual-homing determines that the primary link is valid, or receives the message that the link is sent and received normally sent by the dual-homed PE, the dual-homed CE sends a message that the link is sent and received normally to the dual-homed PE, when dual-homing When the CE sends a message to the dual-homed PE "link is received and received normally" and also receives the "link-received normal" message of the dual-homed PE, the dual-homed CE cuts the traffic from the standby link back to the primary link;
- the remote PE When the peer end of the dual-homed PE of the primary PW associated with the primary link, that is, the remote PE (such as PE1 in Figure 1) receives the message "Redundant PW is received and received normally", the remote PE sends "redundant" to the dual-homed PE. If the remote PE not only informs the dual-homed PE of the "redundant PW transmission and reception” message, but also receives the "redundant PW transmission and reception normal" message of the dual-homed PE, the remote PE will send traffic. Switch back to the primary PW for transmission.
- the remote PE such as PE1 in Figure 1
- the default link and the standby link are always valid. Therefore, when the dual-homed CE receives the message that the link is sent and received normally, it determines that the primary PW is restored. Therefore, the traffic is switched back.
- FIG. 4 is an implementation of the present invention.
- the structure of the system is changed.
- the system includes: a dual-homing PE 41, a dual-homing CE 42, and a remote PE 43;
- Dual-homed PE41 used for dual-homing CE 41 or self-determined when the primary link fails, sending a message of "redundant PW transmission and reception defect" to the remote PE 43;
- the dual-homing CE42 is configured to switch traffic from the primary link to the standby link for transmission when determining that the primary link fails;
- the remote PE43 when used for the message of "redundant PW transceiver defect", switches traffic from the primary PW to the standby PW for transmission.
- the system also includes:
- the configuration module 44 is configured to configure the primary link and the backup link of the dual-homed CE42, configure the primary PW and the standby PW between the remote PE 43 and the dual-homed PE 41, and configure the PW and the primary link of the dual-homed CE. Associated with the alternate link;
- the dual-homing PE 41 is further configured to: when the dual-homing CE 42 or the self-determination primary link is restored, notify the remote PE 43 that the message “redundant PW is normal and received normally”;
- the dual-homing CE 42 is further configured to: when the primary link is restored, the traffic is switched back to the primary link for transmission;
- the remote PE 43 is further configured to: when receiving the message that the “redundant PW is sent and received normally”, the traffic is switched back to the primary PW for transmission.
- the present invention further provides a switching system, as shown in FIG. 4, the system includes: a dual-homing PE 41, a dual-homing CE 42, and a remote PE 43;
- the dual-homing PE 41 is configured to notify the dual-homing CE 42 of a "link receiving and receiving defect" message when the self- or remote-side PE determines that the primary PW fails;
- the dual-homing CE42 is configured to switch traffic from the primary link to the standby link for receiving the message of "link transmission and reception defect";
- the remote PE 43 is configured to switch the traffic from the primary PW to the standby PW when the primary PW fails. Transfer.
- the system further includes: a configuration module 44, configured to configure a primary link and a backup link of the dual-homed CE 42, and configure a primary PW and a standby PW between the remote PE 43 and the dual-homed PE 41, and configure the PW and The primary link and the standby link of the dual-homed CE are associated;
- the dual-homed PE 41 is further configured to notify the dual-homing CE 42 that the "link is transmitted and received normally" message when the remote PE 43 determines that the primary PW is valid.
- the dual-homing CE 42 is further configured to: when receiving the message that the link is sent and received normally, the traffic is switched back to the primary link for transmission;
- the remote PE 43 is further configured to: when the primary PW is restored, the traffic is switched back to the primary PW for transmission.
- the configuration module 44 configures the primary link and the backup link of the dual-homing CE 42 as:
- the dual-homed CE42 is configured according to the primary and backup links. Generate an AC FRR forwarding entry.
- the configuration module 44 configures the primary PW and the standby PW of the dual-homed PE41 to be:
- the remote PEs are connected to each adjacent PE through the configured PW.
- the redundancy status of one PW is set to be the primary and the redundancy status of the other PW is set to standby. That is, as the standby PW; the primary PW and the standby PW are associated with the primary link and the standby link; and the remote PE 43 generates the PW FRR forwarding entry according to the configured primary PW and the standby PW.
- Associating the configured PW with the primary link and the backup link of the dual-homed CE is as follows: associating the primary PW and the standby PW between the remote PE and the dual-homed PE to the primary link and the standby link of the dual-homed CE If the link between the dual-homed PE and the single-homed CE is configured, the link is not associated with the primary PW and the standby PW, and the remote PE distinguishes the single-homed traffic and the dual-homed traffic according to whether the association process is performed.
- the dual-homing CE 42 or the dual-homing PE 41 determines that the primary link fails, the dual-homed PE 41 sends a message that the "redundant PW is sent and received defective" message to the remote PE 43 is:
- the dual-homing CE 42 detects that the primary link fails, it notifies the dual-homed PE 41 that it is connected with the "link transmission and reception defect"; or, the dual-homed PE 41 detects that the primary link is invalid, or is notified by the dual-homed CE 42 connected thereto Sending and receiving defects"; when the dual-homing PE41 detects the failure of the primary link, notifying the dual-homed CE42 "link transmission and reception defect" connected thereto; when the dual-homing PE41 determines that the primary link is invalid and determines that the failed primary link exists associated with it At PW, the dual-homed PE 41 sends a message "Redundant PW Transceiver Defect" to the remote PE 43.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention discloses a switching method and system. The method comprises the following steps: a dual-homing provider edge (PE) sends a "redundant Pseudo-Wire (PW) transmit-receive defect" message to a remote PE when a dual-homing customer edge (CE) or the dual-homing PE confirms a primary link failure, or the dual-homing PE announces a "link transmit-receive defect" message to the dual-homing CE when the dual-homing PE or the remote PE confirms a primary PW failure; the remote PE switches the traffic from the primary PW to a spare PW for transmission; the dual-homing CE switches the traffic from the primary link to a spare link for transmission. The present invention also provides a switching system. According to the technical solution of the present invention, when the link of the dual-homing CE is in failure, the links and PWs of the dual-homing CEs are rapidly switched without influence on the traffic of single-homing CEs.
Description
一种切换方法及系统 技术领域 Switching method and system
本发明涉及数据通讯领域的多标签协议交换( MPLS , Multi-Protocol The invention relates to multi-tag protocol exchange in the field of data communication (MPLS, Multi-Protocol
Label Switching ) 中二层虚拟专用网络 ( L2VPN, Layer 2 Virtual Private Network )技术, 尤其涉及一种切换方法及系统。 背景技术 Label Switching ) Layer 2 Virtual Private Network (L2VPN) technology, in particular, relates to a handover method and system. Background technique
MPLS L2VPN相关的协议规范正在广泛讨论和制定着, 它已经成为电 信运营商构建虚拟专用网络( VPN , Virtual Private Network )时可利用的最 优选择。 L2VPN的显著技术特征是: 支持多种链路仿真服务和多种二层链 路技术的互通,兼容传统的二层 VPN技术。 MPLS L2VPN主要有两种模型: 虚拟专用线路业务( VPWS, Virtual Private Wire Service )和虚拟专用局域 网业务( VPLS , Virtual Private LAN Service ), 前者是一对客户端设备 ( CE, Customer Edge )通过一条二层的逻辑链路互连, 后者是多个 CE通过一个 以太局域网互连; 这两种模型的互连都需要涉及到在包交换网络(PSN, Packet Switched Network ) 的多个服务提供商设备 ( PE, Provider Edge )之 间建立伪线( PW, Pseudo-Wire ), PW用于承载 CE的二层业务流量。 The protocol specifications related to MPLS L2VPN are being widely discussed and developed, and it has become the best choice for telecom operators to build virtual private networks (VPNs). The outstanding technical features of L2VPN are: It supports the interworking of multiple link emulation services and multiple Layer 2 link technologies, and is compatible with traditional Layer 2 VPN technologies. There are two main models of MPLS L2VPN: VPWS (Virtual Private Wire Service) and Virtual Private LAN Service (VPLS). The former is a pair of client devices (CE, Customer Edge). The logical link of the layer is interconnected, the latter is the interconnection of multiple CEs through an Ethernet LAN; the interconnection of the two models needs to involve multiple service provider devices in the Packet Switched Network (PSN). A PW (Pseudo-Wire) is set up between the PE and the Provider Edge. The PW is used to carry Layer 2 service traffic of the CE.
PW 自身需要承载在 PSN的公网隧道上, 公网隧道提供的快速重路由 ( FRR, Fast Re-Route )技术用来保护 PW的业务流量, 即公网隧道检测到 当前的活跃路径失效时, 会快速的将业务流量切换到保护路径上, PW却并 不会感知到这种切换。但在下列情况时, PW必须要通过自身的冗余来实现 业务流量的保护, 即创建一主一备两条 PW来形成冗余保护, 这些情况包 括: CE双归属到两个 PE、 多段伪线( MS-PW, Multi-Segment Pseudowire )、 以及层次化 VPLS ( H-VPLS, Hierarchical VPLS )组网中的多终端单元交换
( MTU-s , Multi-Tenant Unit Switch )双归属到两个有路由和交换能力的 PE ( PE-rs, PE-Routing and Bridging )。 The PW itself needs to be carried on the public network tunnel of the PSN. The Fast Re-Route (FRR) technology provided by the public network tunnel is used to protect the traffic of the PW. That is, when the public network tunnel detects that the current active path fails. The traffic will be quickly switched to the protection path, but the PW will not perceive the switch. However, in the following cases, the PW must implement the protection of the service traffic through its own redundancy, that is, create a primary and a backup PW to form redundancy protection, including: CE dual-homed to two PEs, multi-segment pseudo Multi-terminal unit switching in the network (MS-PW, Multi-Segment Pseudowire) and hierarchical VPLS (H-VPLS, Hierarchical VPLS) networking (MTU-s, Multi-Tenant Unit Switch) is dual-homed to two PEs (PE-Routing and Bridging) with routing and switching capabilities.
现有技术中, 对于 VPWS 模型, 因特网工程任务组 (IETF, Internet Engineering Task Force )的边缘到边缘的仿真( PWE3 , Pseudo-Wire Emulation Edge to Edge )工作组已经有比较成熟的草案讨论 PW冗余的处理。 但对于 VPLS模型, IETF L2VPN工作组相关的草案讨论还不成熟。 In the prior art, for the VPWS model, the Internet Engineering Task Force (IETF, Internet Engineering Task Force) edge-to-edge simulation (PWE3, Pseudo-Wire Emulation Edge to Edge) working group has a relatively mature draft to discuss PW redundancy. Processing. However, for the VPLS model, the draft discussion related to the IETF L2VPN working group is not yet mature.
图 1是现有技术中 VPLS组网的结构示意图, 如图 1所示, 一个典型 的 VPLS组网中, 既有双归属的 CE, 也有单归属的 CE, 例如, CE3双归 属至 PE2和 PE3 , CE4单归属至 PE2; 对于 CE3 , 选择 PE2和 PE3中的哪 例如, CE决定方式可以是在 CE3上运行生成树协议 ( STP, Spanning Tree Protocol )来避免 PE和 CE间的流量形成环路,其中与没有被阻塞的链路相 连的 PE将成为活跃的转发节点; CE决定方式也可以是在 CE3上设置主备 链路, 当检测到主链路或者与主链路相连的 PE失效时, 执行主备链路的切 换, 将与备用链路相连的 PE作为活跃的转发节点; PE决定方式是在相应 VPLS组网的所有 PE上, 根据组网的配置运行一个选举算法, 从双归属的 两个 PE中选举出一个作为活跃的转发节点。 Figure 1 is a schematic diagram of the structure of a VPLS network in the prior art. As shown in Figure 1, a typical VPLS network has both a dual-homed CE and a single-homed CE. For example, CE3 is dual-homed to PE2 and PE3. The CE4 is singly assigned to the PE2. For the CE3, the PE2 and the PE3 are selected. For example, the CE can be configured to run the Spanning Tree Protocol (STP) on the CE3 to prevent the traffic between the PE and the CE from forming a loop. The PE connected to the link that is not blocked will become the active forwarding node. The CE can also be configured to set the primary and backup links on the CE3. When the primary link is detected or the PE connected to the primary link fails. Perform the switchover of the active and standby links, and configure the PE that is connected to the standby link as the active forwarding node. The PE determines the mode to run an election algorithm on the PEs of the corresponding VPLS network. One of the two PEs is elected as an active forwarding node.
现有技术中并没有关于 CE决定方式的草案, 只有针对 PE决定方式有 一篇基于边界网关协议(BGP, Border Gateway Protocol ) 的草案在讨论, 该草案对运营商设备的要求太高,需要 BGP路由通告方和 BGP路由反射器 都支持 VPLS组网中的网络层可达信息( NLRI, Network Layer Reachability Information ) 的通告, VPLS组网内所有的 PE通过特定的数据转发选择算 法来确定活跃的转发节点。 这种方法对于那些只能够通过标签分发协议 ( LDP, Label Distribution Protocol )创建 PW冗余的运营商设备来说, 实现 起来很困难。
此外, 现有的数据流触发源 MAC 学习, 即根据收到的数据流中的源 MAC表项中的地址, 生成目的 MAC地址条目, 该目的 MAC地址条目为 该源 MAC表项的 MAC地址条目; 但是这个过程中不能区分源 MAC表项 是处于单归属 CE侧还是双归属 CE侧, 以至所生成的目的 MAC地址条目 都无区别的继承了 PW FRR信息; 如图 1所示, PE1上所生成的至 CE3和 CE4的目的 MAC地址条目 , 都继承了 PW FRR信息, 这样导致 PW FRR 切换势必影响单归属 CE的流量。 There is no draft on the CE decision method in the prior art. Only a draft based on the Border Gateway Protocol (BGP) is discussed for the PE decision mode. The draft requirements for the carrier equipment are too high, and BGP routing is required. Both the advertised party and the BGP route reflector support the advertisement of the network layer reachability information (NLRI) in the VPLS network. All PEs in the VPLS network determine the active forwarding node through a specific data forwarding selection algorithm. . This method is difficult to implement for carrier devices that can only create PW redundancy through the Label Distribution Protocol (LDP). In addition, the existing data flow triggers the source MAC address learning, that is, generates a destination MAC address entry according to the address in the source MAC address entry in the received data flow, and the destination MAC address entry is the MAC address entry of the source MAC entry. However, in this process, it is not possible to distinguish whether the source MAC address entry is on the single-homed CE side or the dual-homed CE side, so that the generated destination MAC address entries inherit the PW FRR information indiscriminately; as shown in Figure 1, PE1 The destination MAC address entries of the CE3 and CE4 are inherited from the PW FRR information. As a result, the PW FRR switchover is bound to affect the traffic of the single-homed CE.
现有协议约定的两种类型的媒体接入控制 (MAC , Media Access Control )表项( List )的类型 /长度 /值的封装格式( TLV, Type Length Value ) 都包含在 LDP的地址回收消息 (AWM, Address Withdraw Message ) 中, 其中, MAC List TLV空或者非空。 如果 MAC List TLV非空, 则表示 VPLS 组网内需要撤销相应的 MAC地址条目; 如图 1所示, PE2可以在检测到接 入链路(AC , Attachment Circuit ) 3失效后, 之前从 AC3学习到的 MAC 地址条目都可以包含在 MAC List TLV中发送给 PE1 , PE1将撤销该 MAC 地址条目; 当 MAC地址条目较多时, 需要发送多次消息来撤销, 使得业务 流量收敛较慢; 如果 MAC List TLV为空, 则表示相应 VPLS组网内仅需要 保留收到该 MAC List TLV的 PW上学习到的 MAC地址条目 , 而撤销所有 其它 MAC地址条目, 如图 1所示, PE2在检测到链路 AC3失效后, 若给 PE1发送一个空的 MAC List TLV,则 PE1上继续保持从 PW1学习到的 MAC 地址条目,使得到达 CE3的单播业务流量继续从 PW1转发,显然没有进行 业务流量的切换, 业务流量会在到达链路 AC3时丟弃, 并不能实现业务流 量的保护。 The type/length/value encapsulation format (TLV, Type Length Value) of the two types of media access control (MAC) defined by the existing protocol are included in the address recovery message of the LDP ( AWM, Address Withdraw Message ), where MAC List TLV is empty or non-empty. If the MAC address TLV is not empty, it indicates that the corresponding MAC address entry needs to be revoked in the VPLS network. As shown in Figure 1, PE2 can learn from AC3 after detecting that the access link (AC, Attachment Circuit) 3 is invalid. The MAC address entry to be sent can be included in the MAC List TLV and sent to PE1. PE1 will revoke the MAC address entry. When there are more MAC address entries, multiple messages need to be sent to cancel, so that service traffic converges slowly; If the TLV is empty, the corresponding VPLS network only needs to retain the MAC address entries learned on the PW that received the MAC List TLV, and revoke all other MAC address entries. As shown in Figure 1, PE2 detects the link. After the AC3 fails, if an empty MAC List TLV is sent to PE1, the MAC address entry learned from PW1 is maintained on PE1, so that the unicast service traffic that reaches CE3 continues to be forwarded from PW1. Obviously, no service traffic is switched. Service traffic is discarded when it reaches link AC3, and traffic protection cannot be achieved.
现有技术中,检测接入链路 AC的故障并向 PW对端通告该故障时,并 没有区分接入链路 AC的双归属或单归属属性,这样将导致 PW对端针对双 归属流量进行切换时影响到不需要切换的单归属流量。
发明内容 In the prior art, when detecting the fault of the access link AC and notifying the fault to the PW peer, the dual-homing or single-homing attribute of the access link AC is not distinguished, which causes the PW peer to perform dual-homed traffic. Switching affects single-homed traffic that does not require handover. Summary of the invention
有鉴于此, 本发明的主要目的在于提供一种切换方法及系统, 当双归 属 CE的链路发生故障时, 在不影响单归属 CE的流量的情况下, 快速进行 双归属 CE的链路和 PW的切换。 In view of the above, the main purpose of the present invention is to provide a handover method and system. When a link of a dual-homed CE fails, the link of the dual-homed CE is quickly performed without affecting the traffic of the single-homed CE. Switching of PW.
为达到上述目的, 本发明的技术方案是这样实现的: In order to achieve the above object, the technical solution of the present invention is achieved as follows:
本发明提供一种切换方法, 包括: The present invention provides a handover method, including:
当双归属客户端设备 ( CE )或双归属提供商设备 ( PE )确定主链路失 效时, 双归属 PE发送 "冗余 PW收发缺陷的" 消息给远端 PE; 或, 当双 归属 PE或远端 PE确定主 PW失效时, 双归属 PE向双归属 CE通告 "链路 收发缺陷" 的消息; When the dual-homed client device (CE) or the dual-homed provider device (PE) determines that the primary link fails, the dual-homed PE sends a "redundant PW transceiver defect" message to the remote PE; or, when the dual-homed PE or When the remote PE determines that the primary PW fails, the dual-homed PE notifies the dual-homed CE of the "link transmission and reception defect" message;
所述远端 PE将流量由主伪线 (PW )切换到备用 PW进行传输, 所述 双归属 CE将流量由主链路切换到备用链路进行传输。 The remote PE switches traffic from the primary pseudowire (PW) to the standby PW, and the dual-homed CE switches traffic from the primary link to the standby link for transmission.
上述方法中, 所述当双归属 CE或双归属 PE确定主链路失效时, 双归 属 PE发送 "冗余 PW收发缺陷的" 消息给远端 PE为: In the above method, when the dual-homed CE or the dual-homed PE determines that the primary link fails, the dual-homed PE sends a message of "redundant PW transmission and reception defect" to the remote PE:
当双归属 CE检测到主链路失效时, 通知与其相连的双归属 PE "链路 收发缺陷"; 或, 双归属 PE检测到主链路失效, 发送 "链路收发缺陷" 的 消息给与其相连的双归属 CE、或收到与其相连的双归属 CE发送的 "链路 收发缺陷" 的消息; When the dual-homed CE detects that the primary link fails, it notifies the dual-homed PE "link transmission and reception defect" connected thereto; or, the dual-homed PE detects that the primary link is invalid, and sends a "link transmission and reception defect" message to the primary link. a dual-homed CE, or a "link receiving and receiving defect" message sent by a dual-homed CE connected thereto;
当双归属 PE确定主链路失效并确定失效的主链路存在与其关联的 PW 时, 双归属 PE发送 "冗余 PW收发缺陷" 的消息给远端 PE。 When the dual-homed PE determines that the primary link fails and determines that the failed primary link has a PW associated with it, the dual-homed PE sends a message of "redundant PW transmission and reception defect" to the remote PE.
上述方法中, 所述当双归属 CE或所述双归属 PE确定主链路失效时, 所述双归属 PE发送消息给所述远端 PE之前, 该方法还包括: In the above method, the method further includes: before the dual-homed PE or the dual-homed PE determines that the primary link is inactive, before the dual-homed PE sends a message to the remote PE, the method further includes:
配置双归属 CE的主链路和备用链路, 配置远端 PE与双归属 PE间的 主 PW和备用 PW, 并将配置的 PW与双归属 CE的主链路和备用链路进行 关联。
上述方法中, 所述配置双归属 CE的主链路和备用链路为: 在双归属 CE上配置两条链路, 将其中一条链路的冗余状态设置为主, 将另一条链路的冗余状态设置为备;双归属 CE根据配置的主链路和备用链 路生成 AC快速重路由 ( FRR )转发表项。 The primary and backup links of the dual-homed CE are configured, and the primary PW and the standby PW are configured between the remote PE and the dual-homed PE, and the configured PW is associated with the primary and backup links of the dual-homed CE. In the above method, the primary link and the backup link of the dual-homed CE are configured to: configure two links on the dual-homed CE, set the redundancy status of one link as the primary, and the other link. The redundancy status is set to standby. The dual-homed CE generates AC Fast Reroute (FRR) forwarding entries based on the configured primary and backup links.
上述方法中,所述配置远端 PE与双归属 PE间的主 PW和备用 PW为: 在远端 PE上配置多条 PW, 远端 PE通过配置的 PW与其相邻的每个 In the above method, the configuration of the primary PW and the standby PW between the remote PE and the dual-homed PE is as follows: multiple PWs are configured on the remote PE, and the remote PE passes through the configured PW and each adjacent one.
PE相连, 将其中一条 PW的冗余状态设置为主, 将另一条 PW的冗余状态 设置为备; 将主 PW和备用 PW关联到主链路和备用链路; 远端 PE根据配 置的主 PW和备用 PW生成 PW FRR转发表项。 The PE is connected, and the redundancy status of one PW is set to be the primary, and the redundancy status of the other PW is set to standby; the primary PW and the standby PW are associated with the primary link and the standby link; and the remote PE is configured according to the primary The PW and the standby PW generate PW FRR forwarding entries.
上述方法中,所述将配置的 PW与双归属 CE的主链路和备用链路进行 关联为: In the above method, the configured PW is associated with the primary link and the standby link of the dual-homed CE:
将远端 PE与双归属 PE间的主 PW和备用 PW关联到双归属 CE的主 链路和备用链路, 如果已配置双归属 PE与单归属 CE间的链路, 则该链路 不与所述主 PW和备用 PW进行关联, 远端 PE根据是否进行关联处理, 区 分单归属流量和双归属流量。 Associate the primary PW and the standby PW between the remote PE and the dual-homed PE to the primary and backup links of the dual-homed CE. If the link between the dual-homed PE and the single-homed CE is configured, the link does not match. The primary PW is associated with the standby PW, and the remote PE distinguishes the single-homed traffic and the dual-homed traffic according to whether the association process is performed.
上述方法中, 所述远端 PE根据是否进行关联处理, 区分单归属流量和 双归属流量为: In the above method, the remote PE distinguishes the single-homed traffic and the dual-homed traffic according to whether the association process is performed:
双归属 PE将从双归属 CE的链路上学习的 MAC表项 ,显式的通过 LDP 的地址消息通告给远端 PE, 远端 PE将所述 MAC表项继承到 PW FRR表 项 , 所 MAC表项的转发行为将受到 PW FRR的影响 , 所述 MAC表项指导 远端 PE对双归属流量的转发; The dual-homed PE will advertise the MAC address entry learned from the link of the dual-homed CE to the remote PE through the LDP address message. The remote PE inherits the MAC entry from the MAC address entry to the PW FRR entry. The forwarding behavior of the entry will be affected by the PW FRR. The MAC entry directs the remote PE to forward the dual-homed traffic.
双归属 PE不将从单归属 CE的链路上学习的 MAC表项通告给远端 PE, 远端 PE将不根据该 MAC表项继承到 PW FRR表项, MAC表项的转发行 为不受 PW FRR的影响, 该 MAC表项指导远端 PE对单归属流量的转发。 The dual-homed PE does not advertise the MAC entry learned from the link of the single-homed CE to the remote PE. The remote PE does not inherit the PW FRR entry based on the MAC entry. The forwarding behavior of the MAC entry is not affected by the PW. Impact of FRR. This MAC entry guides the remote PE to forward single-homed traffic.
上述方法中, 该方法还包括:
当双归属 CE且双归属 PE确定主链路恢复有效时, 双归属 PE向远端 PE通告 "冗余 PW收发正常" 的消息; 双归属 CE将流量回切到主链路进 行传输, 远端 PE将流量回切到主 PW进行传输。 In the above method, the method further includes: When the dual-homed CE and the dual-homed PE determine that the primary link is valid, the dual-homed PE advertises the message "Redundant PW is received and received normally" to the remote PE; the dual-homed CE switches the traffic back to the primary link for transmission. The PE switches back the traffic to the primary PW for transmission.
上述方法中, 所述该方法还包括: In the above method, the method further includes:
当双归属 PE且远端 PE确定主 PW恢复有效时, 双归属 PE向双归属 CE通告 "链路收发正常" 的消息; 双归属 CE将流量回切到主链路进行传 输, 远端 PE将流量回切到主 PW进行传输。 When the dual-homed PE and the remote PE determines that the primary PW is valid, the dual-homed PE advertises the message "link is received and received normally" to the dual-homed CE; the dual-homed CE switches the traffic back to the primary link for transmission, and the remote PE will The traffic is switched back to the primary PW for transmission.
本发明还提供一种切换系统, 该系统包括: 双归属 PE、 双归属 CE、 远端 PE; 其中, The present invention further provides a handover system, the system comprising: a dual-homed PE, a dual-homed CE, and a remote PE;
双归属 PE, 用于双归属 CE或自身确定主链路失效时,发送 "冗余 PW 收发缺陷的" 消息给远端 PE; a dual-homed PE, used for dual-homing CE or self-determined when the primary link fails, sending a message of "redundant PW transmission and reception defect" to the remote PE;
双归属 CE, 用于当确定主链路失效时, 将流量由主链路切换到备用链 路进行传输; The dual-homing CE is configured to switch traffic from the primary link to the standby link for transmission when determining that the primary link fails;
远端 PE, 用于 "冗余 PW收发缺陷的" 消息时, 将流量由主 PW切换 到备用 PW进行传输。 The remote PE, when used for the message "Redundant PW sends and receives defects", transfers traffic from the primary PW to the standby PW for transmission.
上述系统中, In the above system,
该系统还包括: 配置模块, 用于配置双归属 CE的主链路和备用链路, 并配置远端 PE与双归属 PE间的主 PW和备用 PW, 并将配置的 PW与双 归属 CE的主链路和备用链路进行关联; The system further includes: a configuration module, configured to configure a primary link and a backup link of the dual-homed CE, and configure a primary PW and a standby PW between the remote PE and the dual-homed PE, and configure the PW and the dual-homed CE The primary link is associated with the alternate link;
所述双归属 PE还用于, 当双归属 CE或自身确定主链路恢复有效时, 向远端 PE通告 "冗余 PW收发正常" 的消息; The dual-homed PE is further configured to: when the dual-homed CE or the self-determination primary link is restored, notify the remote PE of the message that the “redundant PW is sent and received normally”;
所述双归属 CE还用于, 确定主链路恢复有效时, 将流量回切到主链路 进行传输; The dual-homing CE is further configured to: when determining that the primary link is valid, the traffic is switched back to the primary link for transmission;
所述远端 PE还用于, 收到 "冗余 PW收发正常" 的消息时, 将流量回 切到主 PW进行传输。
本发明还提供一种切换系统, 包括: 双归属 PE、 双归属 CE、 远端 PE; 其中, The remote PE is further configured to: when receiving the message that the “redundant PW is sent and received normally”, the traffic is switched back to the primary PW for transmission. The present invention further provides a handover system, including: a dual-homed PE, a dual-homed CE, and a remote PE;
双归属 PE, 用于当自身或远端 PE确定主 PW失效时, 向双归属 CE 通告 "链路收发缺陷" 的消息; The dual-homed PE is used to notify the dual-homed CE of the "link receiving and receiving defect" message when the self-respecting PE determines that the primary PW is invalid;
双归属 CE, 用于收到链路收发缺陷" 的消息时, 将流量由主链路切换 到备用链路进行传输; When the dual-homing CE is used to receive the message of the link receiving and receiving defects, the traffic is switched from the primary link to the standby link for transmission;
远端 PE, 用于确定主 PW失效时, 将流量由主 PW切换到备用 PW进 行传输。 The remote PE is used to determine that the primary PW fails, and the traffic is switched from the primary PW to the standby PW for transmission.
上述系统中, In the above system,
该系统还包括: 配置模块, 用于配置双归属 CE的主链路和备用链路, 并配置远端 PE与双归属 PE间的主 PW和备用 PW, 并将配置的 PW与双 归属 CE的主链路和备用链路进行关联; The system further includes: a configuration module, configured to configure a primary link and a backup link of the dual-homed CE, and configure a primary PW and a standby PW between the remote PE and the dual-homed PE, and configure the PW and the dual-homed CE The primary link is associated with the alternate link;
所述双归属 PE还用于, 当自身且远端 PE确定主 PW恢复有效时, 向 双归属 CE通告 "链路收发正常" 的消息; The dual-homed PE is further configured to notify the dual-homed CE of the "link transmission and reception normal" message when the remote PE determines that the primary PW is valid.
所述双归属 CE还用于, 收到 "链路收发正常" 的消息时, 将流量回切 到主链路进行传输; The dual-homing CE is further configured to: when receiving the message that the link is sent and received normally, the traffic is switched back to the primary link for transmission;
所述远端 PE还用于, 确定主 PW恢复有效时, 将流量回切到主 PW进 行传输。 The remote PE is further configured to: when the primary PW is restored, the traffic is switched back to the primary PW for transmission.
本发明提供的切换方法及系统, 存在 PW 冗余和链路冗余时, 如果主 链路失效,则将流量快速切换到备用链路和备用 PW进行传输,实现了 VPLS 组网中链路和 PW的冗余保护, 以及流量的快速收敛; 同时当双归属 CE或 双归属 PE确定主链路失效时, 双归属 PE发送消息给远端 PE, 因此双归属 PE并没有发送携带单归属 CE的相关的目的 MAC地址条目给远端 PE, 不 对单归属 CE的流量进行切换, 从而实现当双归属 CE的链路发生故障时, 在不影响单归属 CE的流量的情况下, 快速进行双归属 CE的链路和 PW的
切换; 此外, 如果主链路恢复有效, 还可以进行流量的回切; 综上所述, 本发明较好的解决了 VPLS组网的流量的切换和回切问题。 附图说明 The switching method and system provided by the present invention have PW redundancy and link redundancy. If the primary link fails, the traffic is quickly switched to the standby link and the standby PW for transmission, thereby realizing the link and PW in the VPLS network. The redundancy protection and the fast convergence of the traffic. When the dual-homed CE or the dual-homed PE determines that the primary link is invalid, the dual-homed PE sends a message to the remote PE. Therefore, the dual-homed PE does not send the relevant one that carries the single-homed CE. The destination MAC address entry is forwarded to the remote PE, and the traffic of the single-homed CE is not switched. Therefore, when the link of the dual-homed CE fails, the dual-homed CE chain can be quickly performed without affecting the traffic of the single-homed CE. Road and PW In addition, if the primary link is restored, the traffic can be switched back. In summary, the present invention better solves the problem of switching and switching back the traffic of the VPLS network. DRAWINGS
图 1是现有技术中 VPLS组网的结构示意图; 1 is a schematic structural diagram of a VPLS networking in the prior art;
图 2是本发明实现切换方法的第一实施例的流程示意图; 2 is a schematic flow chart of a first embodiment of implementing a handover method according to the present invention;
图 3是本发明实现切换方法的第二实施例的流程示意图; 3 is a schematic flowchart of a second embodiment of implementing a handover method according to the present invention;
图 4是本发明实现切换系统的结构示意图。 具体实施方式 4 is a schematic structural view of a handover system implemented by the present invention. detailed description
本发明的基本思想是: 当双归属客户端设备 ( CE )或双归属提供商设 备(PE )确定主链路失效时, 双归属 PE发送 "冗余 PW收发缺陷的" 消息 给远端 PE; 或, 当双归属 PE或远端 PE确定主 PW失效时, 双归属 PE向 双归属 CE通告 "链路收发缺陷" 的消息; The basic idea of the present invention is: when the dual-homed client device (CE) or the dual-homed provider device (PE) determines that the primary link fails, the dual-homed PE sends a "redundant PW transceiving defect" message to the remote PE; Or, when the dual-homed PE or the remote PE determines that the primary PW fails, the dual-homed PE notifies the dual-homed CE of the "link receiving and receiving defect" message;
所述远端 PE将流量由主 PW切换到备用 PW进行传输; 所述双归属 CE将流量由主链路切换到备用链路进行传输。 The remote PE switches traffic from the primary PW to the standby PW for transmission; the dual-homed CE switches traffic from the primary link to the standby link for transmission.
下面通过附图及具体实施例对本发明再做进一步的详细说明。 The invention will be further described in detail below with reference to the drawings and specific embodiments.
本发明提供一种切换方法, 图 2是本发明实现切换方法的第一实施例 的流程示意图, 如图 2所示, 该方法包括以下步骤: The present invention provides a handover method. FIG. 2 is a schematic flowchart of a first embodiment of a handover method according to the present invention. As shown in FIG. 2, the method includes the following steps:
步骤 201 , 配置双归属 CE的主链路和备用链路; Step 201: Configure a primary link and a backup link of the dual-homed CE.
具体的,在双归属 CE上配置两条链路, 将其中一条链路的冗余状态设 置为主, 即该链路为主链路; 将另一条链路的冗余状态设置为备, 即该链 路为备用链路, 用于保护主链路; 设置原则可以是指定其中任意一条为主; 主链路和备用链路中仅有一条能够收发流量, 通过能够收发流量的链路与 双归属 CE相连的 PE是活跃的转发节点; 该步骤还可以包括: 双归属 CE 根据配置的主链路和备用链路生成 AC FRR转发表项, 该转发表项将被其
他业务转发表项 (例如 MAC地址条目 )继承使用。 Specifically, two links are configured on the dual-homed CE, and the redundancy state of one of the links is set to be the primary link, that is, the link is the primary link; and the redundancy state of the other link is set to the standby, that is, The link is a backup link and is used to protect the primary link. The setting principle can be to specify any one of them; only one of the primary link and the standby link can send and receive traffic, and the link that can send and receive traffic is doubled. The PE that is connected to the CE is an active forwarding node. The step may further include: the dual-homing CE generates an AC FRR forwarding entry according to the configured primary link and the standby link, and the forwarding entry is to be His service forwarding entries (such as MAC address entries) are inherited.
例如, 将该步骤应用于图 1的 VPLS组网中, 配置双归属 CE3的主链 路 AC3和备用链路 AC4方法是: 如图 1所示, 在 PE2上配置 CE3的接入 链路 AC3 ,配置 CE4的接入链路 AC5,在 PE3上配置 CE3的接入链路 AC4; 将 CE3接入 PE2的接入链路 AC3的冗余状态设置为主, 即接入链路 AC3 作为 CE3的主链路; 将 CE3接入 PE3的接入链路 AC4的冗余状态设置为 备, 即接入链路 AC4作为 CE3的备用链路, 用于保护主链路 AC3; For example, the method is applied to the VPLS network of Figure 1. The method for configuring the primary link AC3 and the standby link AC4 of the dual-homed CE3 is as follows: As shown in Figure 1, the access link AC3 of the CE3 is configured on the PE2. Configure the access link AC5 of CE4, configure the access link AC4 of CE3 on PE3, and set the redundancy state of the access link AC3 of CE3 to PE2 as the primary. That is, the access link AC3 is the master of CE3. Link; the redundancy state of the access link AC4 that connects CE3 to PE3 is set to standby, that is, the access link AC4 serves as the backup link of CE3, and is used to protect the primary link AC3;
CE3根据配置的主链路 AC3和备用链路 AC4生成一个 AC FRR转发表 项,其中的主链路条目和备用链路条目分别包括出端口 AC3和出端口 AC4; CE3如果从主链路 AC3收到流量, 进行源 MAC学习, 即根据 CE3收到的 流量的源 MAC地址(入端口 AC3 ), 生成目的 MAC地址(出端口 AC3 ) 条目,将该目的 MAC地址条目作为流量的业务转发表项,生成的目的 MAC 地址条目继承 AC FRR转发表项,使得生成的目的 MAC地址条目的出端口 不只有 AC3 , 还包括 AC4; 同理, CE3如果从备用链路 AC4收到流量, 进 行源 MAC学习 , 即根据 CE3收到的流量的源 MAC地址(入端口 AC4 ), 生成目的 MAC地址(出端口 AC4 )条目, 将该目的 MAC地址条目作为流 量的业务转发表项,生成的目的 MAC地址条目继承 AC FRR转发表项,使 得生成的目的 MAC地址条目的出端口不只有 AC4, 还包括 AC3; 因此, 当主链路 AC3有效时, CE3上收发的流量均默认由主链路 AC3传输; 所述 继承是指目的 MAC地址条目中原本只有一个出端口,因为 AC FRR转发表 项中存在主链路和备用链路两条链路, 所以在其继承 AC FRR转发表项后, 目的 MAC地址条目中就有两个出端口。 The CE3 generates an AC FRR forwarding entry based on the configured primary link AC3 and the standby link AC4. The primary link entry and the backup link entry include the outbound port AC3 and the outbound port AC4. Source MAC address learning, that is, the source MAC address of the traffic received by the CE3 (incoming port AC3), the destination MAC address entry (AC3) entry, and the destination MAC address entry as the service forwarding entry of the traffic. The generated destination MAC address entry inherits the AC FRR forwarding entry, so that the egress port of the generated destination MAC address entry is not only AC3 but also AC4. Similarly, if CE3 receives traffic from the alternate link AC4, source MAC learning is performed. That is, according to the source MAC address of the traffic received by CE3 (incoming port AC4), the destination MAC address (outbound port AC4) entry is generated, and the destination MAC address entry is used as the service forwarding entry of the traffic, and the generated destination MAC address entry inherits the AC. The FRR forwards the entry so that the egress port of the generated destination MAC address entry is not only AC4 but also AC3. Therefore, when the primary link AC3 is valid, CE3 receives the entry. The traffic is sent by the primary link AC3 by default. The inheritance means that there is only one outgoing port in the destination MAC address entry. Because there are two links in the AC FRR forwarding entry, the primary link and the backup link exist. After inheriting the AC FRR forwarding entry, there are two outgoing ports in the destination MAC address entry.
步骤 202, 配置远端 PE与双归属 PE间的主 PW和备用 PW,并将配置 的 PW与双归属 CE的主链路和备用链路进行关联; Step 202: Configure a primary PW and a standby PW between the remote PE and the dual-homed PE, and associate the configured PW with the primary link and the standby link of the dual-homed CE.
具体的, 在远端 PE上配置多条 PW, 远端 PE通过配置的 PW与其相
邻的每个 PE相连, 将其中一条 PW的冗余状态设置为主, 即作为主 PW, 将另一条 PW的冗余状态设置为备, 即作为备用 PW, 用于保护主 PW; 设 置原则可以是指定其中任意一条为主, 但必须与主链路 AC和备用链路 AC 保持一致; 远端 PE可以将流量在主 PW和备用 PW之间切换; Specifically, multiple PWs are configured on the remote PE, and the remote PE passes the configured PW. Each PE of the neighbor is connected, and the redundancy status of one of the PWs is set to be the primary PW, and the redundancy status of the other PW is set to standby, that is, as the standby PW, which is used to protect the primary PW; It is specified that any one of them is primary, but must be consistent with the primary link AC and the standby link AC; the remote PE can switch traffic between the primary PW and the standby PW;
该步骤还可以包括:将主 PW和备用 PW关联到双归属 CE的主链路和 备用链路, 如果配置了双归属 PE与单归属 CE间的链路 AC , 则该链路 AC 不与上述双归属 PE的 PW进行关联,远端 PE根据该是否进行了关联处理, 来区分单归属流量和双归属流量;远端 PE根据配置的主 PW和备用 PW生 成 PW FRR转发表项, 该转发表项将被其他业务转发表项 (例如 MAC地 址条目 )继承使用; 双归属 PE将从双归属 CE的链路 AC上学习的 MAC 表项, 显式的通过 LDP的地址消息通告给远端 PE, 远端 PE将这些 MAC 表项继 7 到 PW FRR表项, 使得这些 MAC表项的转发行为受到 PW FRR 的影响, 所述 MAC表项指导远端 PE对双归属流量的转发, 这就是所谓的 双归属流量; 此外, 双归属 PE不将从接入的单归属 CE的链路 AC上学习 的 MAC表项通告给远端 PE, 因此远端 PE将不能够把这些 MAC表项继承 到上述 PW FRR表项, 使得这些 MAC表项的转发行为不受 PW FRR的影 响,该不受 PW FRR的影响的 MAC表项指导远端 PE对单归属流量的转发, 这就是所谓的单归属流量。 The step may further include: associating the primary PW and the standby PW with the primary link and the standby link of the dual-homed CE, if the link AC between the dual-homed PE and the single-homed CE is configured, the link AC does not The PW of the dual-homed PE is associated, and the remote PE distinguishes the single-homed traffic and the dual-homed traffic according to whether the association process is performed. The remote PE generates a PW FRR forwarding entry according to the configured primary PW and the standby PW. The entry will be inherited by the other service forwarding entry (for example, the MAC address entry); the dual-homed PE will advertise the MAC address learned from the link AC of the dual-homed CE to the remote PE through the LDP address message. The remote PE then forwards the MAC entries to the PW FRR entries, so that the forwarding behavior of the MAC entries is affected by the PW FRR. The MAC entries guide the remote PEs to forward the dual-homed traffic. This is called The dual-homed PE does not advertise the MAC entry learned from the connected AC of the single-homed CE to the remote PE. Therefore, the remote PE cannot inherit these MAC entries to the PW. FRR form So that these acts of MAC forwarding entries from PW FRR influence, which is not affected by PW FRR of the MAC forwarding table entries for the guidance of the remote PE single-homed traffic, which is the so-called single-homed traffic.
例如,将该步骤应用于图 1的 VPLS组网中, PE2和 PE3是双归属 PE, 在 PE1、 PE2和 PE3之间分别建立主 PW和备用 PW的方法是: 如图 1所 示, 在 PE1上创建 PW1 , 通过 PW1与相邻的 PE2相连, 由于 PE2与 CE3 之间的链路 AC3是主链路 AC, 为了保持一致, 将 PW1的冗余状态设置为 主, 即 PW1作为主 PW; 再在 PE1上创建 PW2, 通过 PW2与相邻的 PE3 相连, 由于 PE3与 CE3之间的链路 AC4是备用链路 AC, 为了保持一致, 将 PW2的冗余状态设置为备, 即 PW2作为备用 PW,用于保护主 PW; PE1
根据配置的主 PW1和备用 PW2生成一个 PW FRR转发表项, 该转发表项 将被其他业务转发表项 (例如 MAC地址条目)继承使用; 在 PE2上创建 PW1 , 通过 PW1与相邻的 PE1相连, 在 PE2上创建的 PW1没有冗余 PW, 该 PW1的冗余状态默认为主; 在 PE2上配置与 PW1关联的主链路 AC3 , 还可以配置多个关联的链路 AC, 形成关联的链路 AC组; 在 PE3上创建 PW2,通过 PW2与^] 4|5的 PE1 目连, PE3上 J建的 PW2没有冗余; 在 PE3 上配置与 PW2关联的备用链路 AC4, 还可以配置多个关联的链路 AC , 形 成关联的链路 AC组。 For example, the method is applied to the VPLS network of FIG. 1. PE2 and PE3 are dual-homed PEs. The method for establishing a primary PW and a standby PW between PE1, PE2, and PE3 is as follows: PW1 is created and connected to the neighboring PE2 through PW1. The link AC3 between PE2 and CE3 is the primary link AC. To maintain consistency, the redundancy status of PW1 is set to be the primary, that is, PW1 is the primary PW. Create PW2 on PE1 and connect it to the neighboring PE3 through PW2. The link AC4 between PE3 and CE3 is the standby link AC. To maintain consistency, set the redundancy status of PW2 to standby, that is, PW2 as the standby PW. For protecting the main PW; PE1 A PW FRR forwarding entry is generated based on the configured primary PW1 and the standby PW2. The forwarding entry is inherited by other service forwarding entries (such as MAC address entries). PW1 is created on PE2 and connected to the adjacent PE1 through PW1. The PW1 created on PE2 has no redundant PW. The redundancy status of the PW1 is the default. The primary link AC3 associated with PW1 is configured on PE2. You can also configure multiple associated links AC to form an associated link. The AC group is created on the PE3. The PW2 is connected to the PE1 of the PE4. The PW2 is connected to the PW2 on the PE3. The standby link AC4 associated with the PW2 is configured on the PE3. Associated links AC form an associated link AC group.
PE2如果收到的流量来自主链路 AC3 , 则进行源 MAC学习,得到目的 MAC地址条目; PE2根据配置的与 PW1关联的主链路 AC3 , 确定主链路 AC3与 PW1关联; PE2需要将得到的目的 MAC地址条目通过 LDP的地址 消息发送给 PE1 , 用于告知 PE1该目的 MAC地址条目需要继承 PW FRR 转发表项, 本实施例中携带目的 MAC地址条目的 LDP的地址消息为 "冗 余 PW收发缺陷" 的消息; PE2如果收到的流量来自链路 AC5 , PE2进行 源 MAC学习,但是确定链路 AC5没有与任何一个 PW关联,则无须向 PE1 发送 LDP的地址消息; PE3收到的流量如果来自备用链路 AC4, 则进行源 MAC学习,得到目的 MAC地址条目; 确定备用链路 AC4与 PW2关联后, PE3将得到的目的 MAC地址条目通过 LDP的地址消息发送给 PE1 , 用于 告知 PE1该目的 MAC地址条目需要继承 PW FRR转发表项; If the traffic received by the PE2 is from the primary link AC3, the source MAC address learning is performed to obtain the destination MAC address entry. The PE2 determines that the primary link AC3 is associated with PW1 according to the configured primary link AC3 associated with PW1. PE2 needs to be obtained. The destination MAC address entry is sent to the PE1 through the LDP address message, and is used to inform the PE1 that the destination MAC address entry needs to inherit the PW FRR forwarding entry. In this embodiment, the LDP address message carrying the destination MAC address entry is a redundant PW. If the received traffic is from the link AC5, the PE2 performs the source MAC address learning, but the link AC5 is not associated with any PW, and the LDP address message is not sent to the PE1. If the source MAC address is learned from the standby link AC4, the destination MAC address entry is obtained. After the standby link AC4 is associated with the PW2, the destination MAC address entry sent by the PE3 is sent to the PE1 through the LDP address message to notify the PE1. The destination MAC address entry needs to inherit the PW FRR forwarding entry.
PE1收到的流量如果来自 PW1 , 则进行源 MAC学习 , 得到目的 MAC 地址条目, 目的 MAC地址条目的默认出端口都是 PW1; 当 PE1收到来自 PE2的关于 PW1的需要继承 PW FRR转发表项的目的 MAC地址条目时, PE1对该目的 MAC地址条目进行维护 ,并允许目的 MAC地址条目继承 PW FRR转发表项, 使得其不再只根据出端口 PW1来转发流量, 而是根据继承 得到的 PW FRR转发表项来转发流量,转发的出端口包括 PW1和 PW2; 同
理, PE1收到的流量如果来自 PW2, 则进行源 MAC学习, 得到目的 MAC 地址条目, 目的 MAC地址条目的默认出端口都是 PW2; 当 PE1收到来自 PE3的关于 PW2的需要继承 PW FRR转发表项的目的 MAC地址条目时, PE1对该目的 MAC地址条目进行维护 ,并允许目的 MAC地址条目继承 PW FRR转发表项, 使得其不再只根据出端口 PW2来转发流量, 而是根据继承 得到的 PW FRR转发表项来转发流量,转发的出端口包括 PW1和 PW2; 所 述继承是指目的 MAC地址条目中原本只有一个出端口, 因为 PW FRR转 发表项中存在主 PW和备用 PW两条链路, 所以在其继承 PW FRR转发表 项后, 目的 MAC地址条目中就有两个出端口。 If the traffic received by PE1 is from PW1, the source MAC address is learned and the destination MAC address entry is obtained. The default outgoing port of the destination MAC address entry is PW1. When PE1 receives the PW1 from PE2, it needs to inherit the PW FRR forwarding entry. When the destination MAC address entry is used, PE1 maintains the destination MAC address entry and allows the destination MAC address entry to inherit the PW FRR forwarding entry, so that it no longer only forwards traffic according to the outgoing port PW1, but based on the inherited PW. The FRR forwards the entry to forward traffic. The outgoing port is PW1 and PW2. If the traffic received by PE1 is from PW2, the source MAC address is learned and the destination MAC address entry is obtained. The default outgoing port of the destination MAC address entry is PW2. When PE1 receives the PW2 from PE3, it needs to inherit PW FRR. When the destination MAC address entry is published, PE1 maintains the destination MAC address entry and allows the destination MAC address entry to inherit the PW FRR forwarding entry, so that it no longer only forwards traffic according to the outgoing port PW2, but obtains the inheritance according to the inheritance. The PW FRR forwarding entry is used to forward traffic, and the outgoing egress port includes PW1 and PW2. The inheritance means that there is only one egress port in the destination MAC address entry, because there are two main PWs and two standby PWs in the PW FRR forwarding entry. Link, so after it inherits the PW FRR forwarding entry, there are two outgoing ports in the destination MAC address entry.
利用这种方法, PE 1根据 LDP的地址消息中的目的 MAC地址条目, 确定需要继承 PW FRR转发表项的目的 MAC地址条目, 因此并不是所有 的目的 MAC地址条目都继承 PW FRR,对于 PE2收到的流量来自链路 AC5 这种情况下, 得到的目的 MAC地址条目就不继承 PW FRR; 因此, 当进行 流量在主链路和备用链路或者主 PW和备用 PW之间切换和回切时, 并不 影响单归属 CE和 PE之间的流量的传输; 因此, 利用该方法既实现了双归 属 CE和 PE间的流量的保护,又保证了单归属 CE和 PE之间的流量正常传 输。 With this method, PE 1 determines the destination MAC address entry that needs to inherit the PW FRR forwarding entry based on the destination MAC address entry in the LDP address message. Therefore, not all destination MAC address entries inherit PW FRR. The incoming traffic comes from link AC5. In this case, the obtained destination MAC address entry does not inherit PW FRR; therefore, when traffic is switched and switched back between the primary link and the standby link or between the primary PW and the standby PW The traffic between the single-homed CE and the PE is not affected. Therefore, the traffic between the dual-homed CE and the PE is protected, and the traffic between the single-homed CE and the PE is normally transmitted.
步骤 203 , 当双归属 CE或双归属 PE确定主链路失效时, 双归属 PE 发送 "冗余 PW收发缺陷 " 的消息给远端 PE; Step 203: When the dual-homed CE or the dual-homed PE determines that the primary link fails, the dual-homed PE sends a message of “redundant PW transmission and reception defect” to the remote PE.
具体的, 双归属 CE (如图 1的 CE3 )可以检测到主链路失效也可以收 到与其相连的双归属 PE (如图 1的 PE2 )发送的 "链路收发缺陷"的消息; 其中,检测方式可以是主链路所在的物理接口被置为 DOWN或被删除导致 的物理失效, 导致双归属 CE可以自动感知主链路失效; 如果是 CE检测到 主链路失效, CE还需要发送 "链路收发缺陷" 的消息给与其相连的双归属 PE; 或, 双归属 PE检测到主链路失效, 或收到与其相连的双归属 CE发送
的 "链路收发缺陷" 的消息; 其中, 检测方式可以是: 双归属 PE所在的 物理接口被删除导致的物理失效, 导致双归属 PE 可以自动感知主链路失 效; 如果是双归属 PE检测到主链路失效, 双归属 PE还需要发送 "链路收 发缺陷" 的消息给与其相连的双归属 CE; Specifically, the dual-homed CE (such as CE3 in FIG. 1) can detect that the primary link fails or receives the "link receiving and receiving defect" message sent by the dual-homed PE (such as PE2 in FIG. 1) connected thereto; The detection mode can be that the physical link of the primary link is set to DOWN or the physical failure caused by the deletion. The dual-homed CE can automatically detect the failure of the primary link. If the CE detects that the primary link is invalid, the CE needs to send the fault. The link sends and receives a defect message to the dual-homed PE connected thereto; or, the dual-homed PE detects that the primary link is invalid, or receives a dual-homed CE transmission connected thereto The "link is sent and received"message; the detection mode may be: the physical failure of the physical interface where the dual-homed PE is deleted, the dual-homed PE can automatically detect the failure of the primary link; The primary link fails, and the dual-homed PE also needs to send a "link transmission and reception defect" message to the dual-homed CE connected thereto;
当双归属 PE确定主链路失效时,根据在将主链路与主 PW进行关联时 产生成的相关信息确定失效的主链路存在与其关联的 PW,所以还需要触发 远端 PE (如图 1的 PE1 )进行主 PW与备用 PW的切换; 因此双归属 PE 还需要发送 "冗余 PW收发缺陷" 的消息给与主链路关联的主 PW的对端 即远端 PE, 这里, 与 PE所连接的双归属 CE的接入链路 AC出现故障时, 该 PE才发送该 "冗余 PW收发缺陷" 的消息, 如果是与 PE所连接的单归 属 CE的接入链路 AC出现故障,则不发送该 "冗余 PW收发缺陷 "的消息。 When the dual-homed PE determines that the primary link is invalid, it is determined that the failed primary link exists with the associated PW according to the related information generated when the primary link is associated with the primary PW, so the remote PE needs to be triggered. PE1 of 1 performs the switching between the primary PW and the standby PW; therefore, the dual-homed PE also needs to send a message of "redundant PW transmission and reception defect" to the remote end of the primary PW associated with the primary link, that is, the remote PE, where, and the PE When the access link AC of the connected dual-homed CE fails, the PE sends the message of the "redundant PW transmission and reception defect". If the access link AC of the single-homed CE connected to the PE fails, The message "Redundant PW Transceiver Defect" is not sent.
步骤 204, 双归属 CE将流量由主链路切换到备用链路进行传输, 远端 PE将流量由主 PW切换到备用 PW进行传输; Step 204: The dual-homing CE switches the traffic from the primary link to the standby link for transmission, and the remote PE switches the traffic from the primary PW to the standby PW for transmission.
具体的, 当双归属 CE确定主链路失效时, 双归属 CE根据自身生成的 AC FRR转发表项确定有备用链路, 则确定备用链路是否有效; 如果确定备 用链路有效, 则双归属 CE将流量切换到备用链路进行传输, 即双归属 CE 根据自身生成的目的 MAC地址条目中的两个出端口,停止从这两个出端口 中的正在发出流量的出端口发出流量, 将流量从另一个出端口发出; 如果 确定备用链路无效,则继承 AC FRR转发表项的目的 MAC地址条目将变为 无效, 双归属 CE停止向主链路和备用链路发送流量; Specifically, when the dual-homing CE determines that the primary link is invalid, the dual-homing CE determines whether there is a backup link according to the AC FRR forwarding entry generated by itself, and determines whether the standby link is valid. The CE switches the traffic to the standby link for transmission. That is, the dual-homed CE stops sending traffic from the outbound ports of the two outgoing ports according to the two outbound ports in the destination MAC address entry generated by the dual-homed CE. Issued from another egress port; if it is determined that the alternate link is invalid, the destination MAC address entry that inherits the AC FRR forwarding entry becomes invalid, and the dual-homed CE stops sending traffic to the primary and backup links;
当与主链路关联的主 PW的双归属 PE的对端即远端 PE确定收到 "冗 余 PW收发缺陷 "的消息时, 远端 PE根据自身生成的 PW FRR转发表项确 定有备用 PW, 则确定备用 PW是否有效; 如果确定备用 PW有效, 则远端 PE将流量切换到备用 PW进行传输;即双归属 PE根据自身生成的目的 MAC 地址条目中的两个出端口, 停止从这两个出端口中的正在发出流量的出端
口发出流量, 将流量从另一个出端口发出; 如果确定备用 PW无效, 则继 承 PW FRR转发表项的目的 MAC地址条目将变为无效, 远端 PW停止向 主 PW和备用 PW发送流量。 When the remote end of the dual-homed PE of the primary PW that is associated with the primary link, that is, the remote PE, determines that the message of the "redundant PW transmission and reception defect" is received, the remote PE determines that there is a standby PW according to the PW FRR forwarding entry generated by the remote PE. If the standby PW is valid, the remote PE switches the traffic to the standby PW for transmission; that is, the dual-homed PE stops the two outgoing ports according to the generated destination MAC address entry. The outbound end of the outgoing traffic in the outgoing port If the backup PW is invalid, the destination MAC address entry that inherits the PW FRR forwarding entry becomes invalid, and the remote PW stops sending traffic to the primary PW and the standby PW.
步骤 205 , 当双归属 CE且双归属 PE确定主链路恢复有效时, 双归属 PE向远端 PE通告 "冗余 PW收发正常" 的消息; Step 205: When the dual-homed CE and the dual-homed PE determine that the primary link is restored, the dual-homed PE notifies the remote PE of the message that the redundant PW is sent and received normally.
具体的, 当双归属 CE (如图 1的 CE3 )优先于双归属 PE检测到主链 路恢复有效时,则双归属 CE确定主链路恢复有效,并发送 "链路收发正常" 的消息给与其相连的双归属 PE,当双归属 PE收到与其相连的双归属 CE(如 图 1 的 CE3 )发送的 "链路收发正常" 的消息, 并自身通过检测确定主链 路有效时, 双归属 PE确定主链路恢复有效; 其中, 双归属 PE的检测方式 可以是: 双归属 PE所在的物理端口增加链路导致的物理有效; 双归属 CE 的检测方式可以是:主链路所在的物理接口被置为 UP或增加链路导致的物 理有效, 导致双归属 CE可以自动感知主链路有效; Specifically, when the dual-homed CE (such as CE3 in FIG. 1) takes priority over the dual-homed PE to detect that the primary link is restored, the dual-homed CE determines that the primary link is restored, and sends a message that the link is sent and received normally. The dual-homed PE connected to the dual-homed PE receives the "link-received normal" message sent by the dual-homed CE (such as CE3 in Figure 1), and determines that the primary link is valid through detection. The PE determines that the primary link is valid. The detection mode of the dual-homed PE can be: The physical interface of the dual-homed PE is physically connected to the physical link. The detection mode of the dual-homed CE can be: the physical interface where the primary link resides. The physical validity of the link is set to UP or the link is added. The dual-homed CE can automatically detect that the primary link is valid.
或, 当双归属 PE (如图 1的 PE2 )优先于双归属 CE检测到主链路恢 复有效时, 发送 "链路收发正常" 的消息给与其相连的双归属 CE, 当双归 属 CE收到与其相连的双归属 PE (如图 1的 PE2 )发送的 "链路收发正常" 的消息, 并自身通过检测确定主链路有效时, 双归属 CE确定主链路恢复有 效, 双归属 CE确定主链路恢复有效后发送 "链路收发正常" 的消息给双归 属 PE; 此时双归属 PE既自身检测到主链路恢复有效, 又收到双归属 CE 的 "链路收发正常" 的消息, 因此确定主链路恢复有效; Or, when the dual-homed PE (such as PE2 in FIG. 1) takes precedence over the dual-homed CE to detect that the primary link is restored, sending a "link-received normal" message to the dual-homed CE connected thereto, when the dual-homed CE receives When the dual-homed PE (such as PE2 of FIG. 1) is connected to the "link transmission and reception normal" message, and the self-test determines that the primary link is valid, the dual-homing CE determines that the primary link is valid, and the dual-homed CE determines the primary. After the link is restored, the message that the "link is received and received normally" is sent to the dual-homed PE. At this time, the dual-homed PE detects that the primary link is valid and receives the "link transmission and reception normal" message of the dual-homed CE. Therefore, it is determined that the primary link recovery is valid;
当双归属 PE确定主链路恢复有效后, 触发远端 PE进行备用 PW与主 PW的回切; 即双归属 PE (如图 1的 PE2 )通知与主链路关联的主 PW的 对端即远端 PE (如图 1的 PE1 )发送 "冗余 PW收发正常" 的消息。 After the dual-homing PE determines that the primary link is restored, the remote PE is triggered to perform the switchback of the standby PW and the primary PW. That is, the dual-homed PE (such as PE2 in FIG. 1) notifies the opposite end of the primary PW associated with the primary link. The remote PE (PE1 in Figure 1) sends a message "Redundant PW Transceiver Normal".
本实施例中,双归属 PE只能根据自身物理端口的状态确定主链路是否 有效, 双归属 CE同样只能根据自身物理端口的状态确定主链路是否有效,
双归属 PE和双归属 CE都不能确定对方检测的主链路是否有效, 因此这里 双归属 PE和双归属 CE都需要确定主链路有效。 In this embodiment, the dual-homed PE can determine whether the primary link is valid according to the status of the physical port. The dual-homed CE can only determine whether the primary link is valid according to the status of the physical port. Both the dual-homed PE and the dual-homed CE cannot determine whether the primary link detected by the peer is valid. Therefore, both the dual-homed PE and the dual-homed CE need to determine that the primary link is valid.
步骤 206, 双归属 CE将流量回切到主链路进行传输, 远端 PE将流量 回切到主 PW进行传输; Step 206: The dual-homing CE reverts the traffic to the primary link for transmission, and the remote PE returns the traffic to the primary PW for transmission.
具体的, 当双归属确定主链路有效时, 或收到了双归属 PE发送的 "链 路收发正常 " 的消息, 双归属 CE向双归属 PE发送 "链路收发正常 " 的消 息, 当双归属 CE既发送给双归属 PE "链路收发正常 " 的消息, 也收到双 归属 PE的 "链路收发正常" 的消息时, 双归属 CE将流量由备用链路切回 主链路; 当 Specifically, when the dual-homing determines that the primary link is valid, or receives the message that the link is sent and received normally sent by the dual-homed PE, the dual-homed CE sends a message that the link is sent and received normally to the dual-homed PE, when dual-homing When the CE sends a message to the dual-homed PE "link is received and received normally" and also receives the "link-received normal" message of the dual-homed PE, the dual-homed CE cuts the traffic from the standby link back to the primary link;
与主链路关联的主 PW的双归属 PE的对端,即远端 PE(如图 1的 PE1 ) 收到 "冗余 PW收发正常"的消息时, 远端 PE向双归属 PE发送 "冗余 PW 收发正常" 的消息, 如果远端 PE既通知双归属 PE "冗余 PW收发正常" 的消息, 也收到了双归属 PE的 "冗余 PW收发正常" 的消息, 则远端 PE 将流量回切到主 PW进行传输。 When the peer end of the dual-homed PE of the primary PW associated with the primary link, that is, the remote PE (such as PE1 in Figure 1) receives the message "Redundant PW is received and received normally", the remote PE sends "redundant" to the dual-homed PE. If the remote PE not only informs the dual-homed PE of the "redundant PW transmission and reception" message, but also receives the "redundant PW transmission and reception normal" message of the dual-homed PE, the remote PE will send traffic. Switch back to the primary PW for transmission.
远端 PE或双归属 CE可基于这种双向确认正常的方式来实现及时回切 或延时回切, 当需要延时回切时, 可延时一段时间主动发送或被动应答收 发正常的消息。 需要注意的是, 双归属 PE介于远端 PE和双归属 CE之间 , 双归属 PE在任一侧主动发送或被动应答收发正常的消息时,必须保证另一 侧收发是正常的。 The remote PE or the dual-homed CE can implement the timely switchback or the delay switchback based on the normal mode of the two-way acknowledgement. When the delay switchback is required, the normal message can be sent or passively acknowledged for a period of time. Note that the dual-homed PE is between the remote PE and the dual-homed CE. When the dual-homed PE sends or passively responds to the normal message on either side, the other party must ensure that the other side is normal.
上述方法中, 引入的 "冗余 PW收发缺陷" 与 "冗余 PW收发正常" 消息对, 是由 PE根据自身角色来决定是否引入的, 对于远端 PE来说, 如 果属于 VPLS实例且实例内的 PW存在 FRR, 则相应的 PW需要引入该消 息对; 对于双归属 PE来说, 如果属于 VPLS实例且实例内的 PW与 AC关 联, 则相应的 PW需要引入该消息对。 In the above method, the "redundant PW transmission and reception defect" and the "redundant PW transmission and reception normal" message pair are determined by the PE according to its own role. For the remote PE, if it belongs to the VPLS instance and is in the instance, If the PW is in the FRR, the corresponding PW needs to introduce the message pair. For the dual-homed PE, if the PW belongs to the VPLS instance and the PW in the instance is associated with the AC, the corresponding PW needs to introduce the message pair.
图 3是本发明实现切换方法的第二实施例的流程示意图, 如图 3所示,
该方法包括以下步骤: 3 is a schematic flowchart of a second embodiment of a handover method according to the present invention, as shown in FIG. 3, The method includes the following steps:
步骤 301 , 配置双归属 CE的主链路和备用链路; Step 301: Configure a primary link and a backup link of the dual-homed CE.
步骤 302, 配置远端 PE与双归属 PE间的主 PW和备用 PW; Step 302: Configure a primary PW and a standby PW between the remote PE and the dual-homed PE.
步骤 301和步骤 302详见步骤 201和步骤 203。 Steps 301 and 302 are detailed in steps 201 and 203.
步骤 303 , 当双归属 PE或远端 PE确定主 PW失效时 , 双归属 PE向双 归属 CE通告 "链路收发缺陷" 的消息; Step 303: When the dual-homed PE or the remote PE determines that the primary PW is invalid, the dual-homed PE notifies the dual-homed CE of the "link receiving and receiving defect" message;
具体的 , 如果是主 PW先于主链路失效时, 双归属 PE (如图 1的 PE2 ) 可以检测到主 PW失效, 或收到与其相连的远端 PE (如图 1的 PE1 )发送 的 "冗余 PW收发缺陷" 的消息, 其中 PE检测 PW失效的检测方式是 PE 检测到承载 PW的外层隧道不通、 或 PW自身保活失败、 或 TP-OAM检测 到 PW失效、 或 BFD检测到 PW失效; 如果是双归属 PE检测到主 PW失 效, 双归属 PE还需要发送 "冗余 PW收发缺陷" 的消息给远端 PE, 相当 于远端 PE也确定主 PW失效; 同理, 其他双归属 PE (如图 1的 PE3 ) 的 处理方法同上; 或, 远端 PE检测到主 PW失效, 或收到与其相连的双归属 PW发送的 "冗余 PW收发缺陷" 的消息; 如果是远端 PE检测到主 PW失 效, 远端 PE还需要发送 "冗余 PW收发缺陷" 的消息给与其相连的双归 属 PE, 相当于双归属 PE也确定主 PW失效; Specifically, if the primary PW fails before the primary link, the dual-homed PE (such as PE2 in FIG. 1) can detect that the primary PW is invalid, or receives the remote PE connected to it (such as PE1 in FIG. 1). "Redundant PW Transceiver Defect" message, in which the PE detects the PW failure detection mode, the PE detects that the outer tunnel carrying the PW is unreachable, or the PW itself fails to keep alive, or the TP-OAM detects the PW failure, or the BFD detects The PW fails. If the dual-homed PE detects the failure of the primary PW, the dual-homed PE also needs to send a message of "redundant PW transmission and reception defect" to the remote PE, which is equivalent to the remote PE also determining that the primary PW is invalid. Similarly, other pairs The processing method of the home PE (such as PE3 in Figure 1) is the same as above; or, the remote PE detects the failure of the primary PW, or receives the message of "redundant PW transmission and reception defect" sent by the dual-homed PW connected thereto; The PE detects that the primary PW is invalid. The remote PE also needs to send a message of "redundant PW transmission and reception defect" to the dual-homed PE connected to it. The dual-homed PE also determines that the primary PW is invalid.
当双归属 PE确定主 PW失效时,根据在将主链路与主 PW进行关联时 产生的相关信息确定失效的主 PW存在与其关联的主链路, 所以还需要触 发双归属 CE进行主链路与备用链路的切换; 双归属 PE还需要发送 "链路 收发缺陷" 的消息给与主 PW关联的主链路的对端双归属 CE (如图 1 的 CE3 )。 When the dual-homed PE determines that the primary PW is invalid, it is determined that the primary PW that is in the default is associated with the primary link according to the related information generated when the primary link is associated with the primary PW, so the dual-homed CE needs to be triggered to perform the primary link. The switch to the standby link; the dual-homed PE also needs to send a "link send and receive defect" message to the peer dual-homed CE of the primary link associated with the primary PW (such as CE3 in Figure 1).
步骤 304, 双归属 CE将流量由主链路切换到备用链路进行传输, 远端 PE将流量由主 PW切换到备用 PW进行传输; Step 304: The dual-homing CE switches the traffic from the primary link to the standby link for transmission, and the remote PE switches the traffic from the primary PW to the standby PW for transmission.
具体的, 当双归属 CE收到双归属 PE发送的 "链路收发缺陷" 的消息
时, 双归属 CE根据自身生成的 AC FRR转发表项确定有备用链路, 则确定 备用链路是否有效; 如果确定备用链路有效, 则双归属 CE将流量切换到备 用链路进行传输, 即双归属 CE根据自身生成的目的 MAC地址条目中的两 个出端口, 停止从这两个出端口中的正在发出流量的出端口发出流量, 将 流量从另一个出端口发出; 如果确定备用链路无效, 则继承 AC FRR转发 表项的目的 MAC地址条目将变为无效, 双归属 CE停止向主链路和备用链 路发送流量; Specifically, when the dual-homing CE receives the message of "link transmission and reception defect" sent by the dual-homing PE When the dual-homing CE determines that there is a backup link according to the AC FRR forwarding entry generated by itself, it determines whether the standby link is valid. If it is determined that the standby link is valid, the dual-homed CE switches the traffic to the standby link for transmission, that is, The dual-homed CE stops sending traffic from the egress port that is sending traffic from the two egress ports according to the two egress ports in the destination MAC address entry generated by itself, and sends traffic from another egress port; if the alternate link is determined If the entry is invalid, the destination MAC address entry that inherits the AC FRR forwarding entry becomes invalid. The dual-homed CE stops sending traffic to the primary link and the standby link.
当与主链路关联的主 PW的双归属 PE的对端即远端 PE确定主 PW失 效时, 远端 PE根据自身生成的 PW FRR转发表项确定有备用 PW , 则确定 备用 PW是否有效; 如果确定备用 PW有效, 则远端 PE将流量切换到备用 PW进行传输; 即双归属 PE根据自身生成的目的 MAC地址条目中的两个 出端口, 停止从这两个出端口中的正在发出流量的出端口发出流量, 将流 量从另一个出端口发出; 如果确定备用 PW无效, 则继承 PW FRR转发表 项的目的 MAC地址条目将变为无效,远端 PW停止向主 PW和备用 PW发 送流量。 When the remote P1 of the dual-homed PE of the primary PW that is associated with the primary link determines that the primary PW is invalid, the remote PE determines whether the standby PW is valid according to the PW FRR forwarding entry generated by the remote P-P. If it is determined that the standby PW is valid, the remote PE switches the traffic to the standby PW for transmission; that is, the dual-homed PE stops the outgoing traffic from the two outgoing ports according to the two outgoing ports in the destination MAC address entry generated by the dual-homed PE. The outbound port sends traffic, and the traffic is sent from the other egress port. If it is determined that the standby PW is invalid, the destination MAC address entry that inherits the PW FRR forwarding entry becomes invalid, and the remote PW stops sending traffic to the primary PW and the standby PW. .
步骤 305 , 当双归属 PE且远端 PE确定主 PW恢复有效时 , 双归属 PE 向双归属 CE通告 "链路收发正常" 的消息; Step 305: When the dual-homed PE and the remote PE determine that the primary PW is valid, the dual-homed PE notifies the dual-homed CE that the "link is received and received normally" message;
具体的, 当双归属 PE (如图 1的 PE2 )优先于远端 PE检测到主 PW 恢复有效时, 发送 "冗余 PW收发正常" 的消息给与其相连的远端 PE (如 图 1的 PE1 ); 当远端 PE收到与其相连的双归属 PE发送的 "冗余 PW收发 正常" 的消息, 并自身通过检测确定主 PW有效时, 远端 PE确定主 PW恢 复有效; 远端 PE确定主 PW恢复有效后发送 "冗余 PW收发正常" 的消息 给双归属 PE; 此时双归属 PE既自身检测到主 PW恢复有效, 又收到远端 PE的 "冗余 PW收发正常" 的消息, 因此双归属 PE确定主 PW恢复有效; 其中, PE检测 PW有效的检测方式是 PE检测到承载 PW的外层隧道开通
并且 PW自身保活有效; Specifically, when the dual-homed PE (such as PE2 in FIG. 1) takes precedence over the remote PE detecting that the primary PW is restored, the message "relay PW is received normally" is sent to the remote PE connected to it (such as PE1 in FIG. 1). The remote PE determines that the primary PW is valid when the remote PE receives the "redundant PW transmission and reception normal" message sent by the dual-homed PE connected to it, and the remote PE determines that the primary PW is valid; After the PW is restored, the message that the "redundant PW is sent and received normally" is sent to the dual-homed PE. At this time, the dual-homed PE detects that the primary PW is valid and receives the "redundant PW transmission and reception normal" message of the remote PE. Therefore, the dual-homing PE determines that the primary PW is valid. The detection mode of the PW that is detected by the PE is that the PE detects the opening of the outer tunnel that carries the PW. And the PW itself is effective;
或, 当远端 PE优先于双归属 PE检测到主 PW恢复有效, 则远端 PE 确定主 PW恢复有效, 并发送 "冗余 PW收发正常" 的消息给双归属 PE, 当双归属 PE收到与其相连的远端 PE发送的 "冗余 PW收发正常"的消息, 并自身通过检测确定主 PW恢复有效时, 双归属 PE确定主 PW恢复有效; 当双归属 PE确定主 PW恢复有效时,根据在将主链路与主 PW进行关 联时产生成的相关信息确定恢复有效的主 PW存在与其关联的主链路, 触 发双归属 CE进行备用链路与主链路的回切; 即双归属 PE发送 "链路收发 正常" 的消息给与主 PW关联的主链路的对端双归属 CE (如图 1的 CE3 )。 Or, when the remote PE detects that the primary PW recovery is valid, the remote PE determines that the primary PW is valid, and sends a message that the "redundant PW is received and received normally" to the dual-homed PE. The dual-homed PE determines that the primary PW is valid when the primary PW is restored, and the dual-homed PE determines that the primary PW is valid, when the dual-homed PE determines that the primary PW is valid. The related information generated when the primary link is associated with the primary PW determines that the active primary PW has a primary link associated with the active primary PW, and triggers the dual-homed CE to perform the failback of the standby link and the primary link; that is, the dual-homed PE The message "Link is received and received normally" is sent to the peer dual-homed CE of the primary link associated with the primary PW (such as CE3 in Figure 1).
步骤 306, 双归属 CE将流量回切到主链路进行传输, 远端 PE将流量 回切到主 PW进行传输; Step 306: The dual-homing CE reverts the traffic to the primary link for transmission, and the remote PE returns the traffic to the primary PW for transmission.
具体的, 当双归属确定主链路有效时, 或收到了双归属 PE发送的 "链 路收发正常 " 的消息, 双归属 CE向双归属 PE发送 "链路收发正常 " 的消 息, 当双归属 CE既发送给双归属 PE "链路收发正常 " 的消息, 也收到双 归属 PE的 "链路收发正常" 的消息时, 双归属 CE将流量由备用链路切回 主链路; 当 Specifically, when the dual-homing determines that the primary link is valid, or receives the message that the link is sent and received normally sent by the dual-homed PE, the dual-homed CE sends a message that the link is sent and received normally to the dual-homed PE, when dual-homing When the CE sends a message to the dual-homed PE "link is received and received normally" and also receives the "link-received normal" message of the dual-homed PE, the dual-homed CE cuts the traffic from the standby link back to the primary link;
与主链路关联的主 PW的双归属 PE的对端,即远端 PE(如图 1的 PE1 ) 收到 "冗余 PW收发正常"的消息时, 远端 PE向双归属 PE发送 "冗余 PW 收发正常" 的消息, 如果远端 PE既通知双归属 PE "冗余 PW收发正常" 的消息, 也收到了双归属 PE的 "冗余 PW收发正常" 的消息, 则远端 PE 将流量回切到主 PW进行传输。 When the peer end of the dual-homed PE of the primary PW associated with the primary link, that is, the remote PE (such as PE1 in Figure 1) receives the message "Redundant PW is received and received normally", the remote PE sends "redundant" to the dual-homed PE. If the remote PE not only informs the dual-homed PE of the "redundant PW transmission and reception" message, but also receives the "redundant PW transmission and reception normal" message of the dual-homed PE, the remote PE will send traffic. Switch back to the primary PW for transmission.
本实施例中, 默认为主链路和备用链路一直有效, 因此当双归属 CE收 到 "链路收发正常" 的消息时, 则确定主 PW恢复有效, 因此执行流量的 回切。 In this embodiment, the default link and the standby link are always valid. Therefore, when the dual-homed CE receives the message that the link is sent and received normally, it determines that the primary PW is restored. Therefore, the traffic is switched back.
为实现上述方法, 本发明还提供一种切换系统, 图 4是本发明实现切
换系统的结构示意图, 如图 4所示, 该系统包括: 双归属 PE 41、 双归属 CE42、 远端 PE43; 其中, In order to achieve the above method, the present invention also provides a switching system, and FIG. 4 is an implementation of the present invention. The structure of the system is changed. As shown in FIG. 4, the system includes: a dual-homing PE 41, a dual-homing CE 42, and a remote PE 43;
双归属 PE41, 用于双归属 CE 41或自身确定主链路失效时, 发送 "冗 余 PW收发缺陷 " 的消息给远端 PE 43; Dual-homed PE41, used for dual-homing CE 41 or self-determined when the primary link fails, sending a message of "redundant PW transmission and reception defect" to the remote PE 43;
双归属 CE42, 用于当确定主链路失效时,将流量由主链路切换到备用 链路进行传输; The dual-homing CE42 is configured to switch traffic from the primary link to the standby link for transmission when determining that the primary link fails;
远端 PE43, 用于 "冗余 PW收发缺陷" 的消息时, 将流量由主 PW切 换到备用 PW进行传输。 The remote PE43, when used for the message of "redundant PW transceiver defect", switches traffic from the primary PW to the standby PW for transmission.
该系统还包括: The system also includes:
配置模块 44, 用于配置双归属 CE42的主链路和备用链路, 配置远端 PE 43与双归属 PE 41间的主 PW和备用 PW,并将配置的 PW与双归属 CE 的主链路和备用链路进行关联; The configuration module 44 is configured to configure the primary link and the backup link of the dual-homed CE42, configure the primary PW and the standby PW between the remote PE 43 and the dual-homed PE 41, and configure the PW and the primary link of the dual-homed CE. Associated with the alternate link;
所述双归属 PE 41还用于, 当双归属 CE42或自身确定主链路恢复有效 时, 向远端 PE 43通告 "冗余 PW收发正常" 的消息; The dual-homing PE 41 is further configured to: when the dual-homing CE 42 or the self-determination primary link is restored, notify the remote PE 43 that the message “redundant PW is normal and received normally”;
所述双归属 CE 42还用于, 确定主链路恢复有效时, 将流量回切到主 链路进行传输; The dual-homing CE 42 is further configured to: when the primary link is restored, the traffic is switched back to the primary link for transmission;
所述远端 PE43还用于, 收到 "冗余 PW收发正常" 的消息时, 将流量 回切到主 PW进行传输。 The remote PE 43 is further configured to: when receiving the message that the “redundant PW is sent and received normally”, the traffic is switched back to the primary PW for transmission.
本发明还提供一种切换系统,如图 4所示,该系统包括: 双归属 PE41、 双归属 CE42、 远端 PE43; 其中, The present invention further provides a switching system, as shown in FIG. 4, the system includes: a dual-homing PE 41, a dual-homing CE 42, and a remote PE 43;
双归属 PE41,用于当自身或远端 PE确定主 PW失效时,向双归属 CE 42通告 "链路收发缺陷" 的消息; The dual-homing PE 41 is configured to notify the dual-homing CE 42 of a "link receiving and receiving defect" message when the self- or remote-side PE determines that the primary PW fails;
双归属 CE42, 用于收到 "链路收发缺陷" 的消息时, 将流量由主链路 切换到备用链路进行传输; The dual-homing CE42 is configured to switch traffic from the primary link to the standby link for receiving the message of "link transmission and reception defect";
远端 PE 43 , 用于确定主 PW失效时, 将流量由主 PW切换到备用 PW
进行传输。 The remote PE 43 is configured to switch the traffic from the primary PW to the standby PW when the primary PW fails. Transfer.
该系统还包括: 配置模块 44, 用于配置双归属 CE 42的主链路和备用 链路, 并配置远端 PE 43与双归属 PE 41间的主 PW和备用 PW, 并将配置 的 PW与双归属 CE的主链路和备用链路进行关联; The system further includes: a configuration module 44, configured to configure a primary link and a backup link of the dual-homed CE 42, and configure a primary PW and a standby PW between the remote PE 43 and the dual-homed PE 41, and configure the PW and The primary link and the standby link of the dual-homed CE are associated;
所述双归属 PE 41还用于,当自身且远端 PE 43确定主 PW恢复有效时, 向双归属 CE 42通告 "链路收发正常" 的消息; The dual-homed PE 41 is further configured to notify the dual-homing CE 42 that the "link is transmitted and received normally" message when the remote PE 43 determines that the primary PW is valid.
所述双归属 CE 42还用于, 收到 "链路收发正常" 的消息时, 将流量 回切到主链路进行传输; The dual-homing CE 42 is further configured to: when receiving the message that the link is sent and received normally, the traffic is switched back to the primary link for transmission;
所述远端 PE 43还用于, 确定主 PW恢复有效时, 将流量回切到主 PW 进行传输。 The remote PE 43 is further configured to: when the primary PW is restored, the traffic is switched back to the primary PW for transmission.
基于上述两种系统, 所述配置模块 44配置双归属 CE42的主链路和备 用链路为: Based on the above two systems, the configuration module 44 configures the primary link and the backup link of the dual-homing CE 42 as:
在双归属 CE42 上配置两条链路, 将其中一条链路的冗余状态设置为 主,将另一条链路的冗余状态设置为备; 双归属 CE42根据配置的主链路和 备用链路生成 AC FRR转发表项。 Configure two links on the dual-homed CE42, set the redundancy status of one link as the primary, and set the redundancy status of the other link to standby. The dual-homed CE42 is configured according to the primary and backup links. Generate an AC FRR forwarding entry.
所述配置模块 44配置双归属 PE41的主 PW和备用 PW为: The configuration module 44 configures the primary PW and the standby PW of the dual-homed PE41 to be:
在远端 PE43上配置多条 PW, 远端 PE43通过配置的 PW与其相邻的 每个 PE相连, 将其中一条 PW的冗余状态设置为主, 将另一条 PW的冗余 状态设置为备, 即作为备用 PW; 将主 PW和备用 PW关联到主链路和备用 链路; 远端 PE43根据配置的主 PW和备用 PW生成 PW FRR转发表项。 Configure multiple PWs on the remote PE43. The remote PEs are connected to each adjacent PE through the configured PW. The redundancy status of one PW is set to be the primary and the redundancy status of the other PW is set to standby. That is, as the standby PW; the primary PW and the standby PW are associated with the primary link and the standby link; and the remote PE 43 generates the PW FRR forwarding entry according to the configured primary PW and the standby PW.
所述将配置的 PW与双归属 CE的主链路和备用链路进行关联为:将远 端 PE与双归属 PE间的主 PW和备用 PW关联到双归属 CE的主链路和备 用链路, 如果已配置双归属 PE与单归属 CE间的链路, 则该链路不与所述 主 PW和备用 PW进行关联, 远端 PE根据是否进行关联处理, 区分单归属 流量和双归属流量。
所述当双归属 CE42或双归属 PE41确定主链路失效时, 双归属 PE41 发送 "冗余 PW收发缺陷的" 的消息远端 PE43为: Associating the configured PW with the primary link and the backup link of the dual-homed CE is as follows: associating the primary PW and the standby PW between the remote PE and the dual-homed PE to the primary link and the standby link of the dual-homed CE If the link between the dual-homed PE and the single-homed CE is configured, the link is not associated with the primary PW and the standby PW, and the remote PE distinguishes the single-homed traffic and the dual-homed traffic according to whether the association process is performed. When the dual-homing CE 42 or the dual-homing PE 41 determines that the primary link fails, the dual-homed PE 41 sends a message that the "redundant PW is sent and received defective" message to the remote PE 43 is:
当双归属 CE42检测到主链路失效时,通知与其相连的双归属 PE41 "链 路收发缺陷"; 或, 双归属 PE41检测到主链路失效, 或被与其相连的双归 属 CE42通知 "链路收发缺陷"; 当双归属 PE41检测到主链路失效时, 通 知与其相连的双归属 CE42 "链路收发缺陷"; 当双归属 PE41确定主链路失 效并确定失效的主链路存在与其关联的 PW时, 双归属 PE41发送 "冗余 PW收发缺陷 " 的消息给远端 PE43。 When the dual-homing CE 42 detects that the primary link fails, it notifies the dual-homed PE 41 that it is connected with the "link transmission and reception defect"; or, the dual-homed PE 41 detects that the primary link is invalid, or is notified by the dual-homed CE 42 connected thereto Sending and receiving defects"; when the dual-homing PE41 detects the failure of the primary link, notifying the dual-homed CE42 "link transmission and reception defect" connected thereto; when the dual-homing PE41 determines that the primary link is invalid and determines that the failed primary link exists associated with it At PW, the dual-homed PE 41 sends a message "Redundant PW Transceiver Defect" to the remote PE 43.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围, 凡在本发明的精神和原则之内所作的任何修改、 等同替换和改进 等, 均应包含在本发明的保护范围之内。
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included. Within the scope of protection of the present invention.
Claims
1、 一种切换方法, 其特征在于, 该方法包括: A switching method, characterized in that the method comprises:
当双归属客户端设备 ( CE )或双归属提供商设备 ( PE )确定主链路失 效时, 双归属 PE发送 "冗余 PW收发缺陷" 的消息给远端 PE; 或, 当双 归属 PE或远端 PE确定主伪线( PW ) 失效时, 双归属 PE向双归属 CE通 告 "链路收发缺陷" 的消息; When the dual-homed client device (CE) or the dual-homed provider device (PE) determines that the primary link fails, the dual-homed PE sends a message of "redundant PW transmission and reception defect" to the remote PE; or, when the dual-homed PE or When the remote PE determines that the primary pseudowire (PW) fails, the dual-homed PE notifies the dual-homed CE of the "link transmission and reception defect" message;
所述远端 PE将流量由主 PW切换到备用 PW进行传输, 所述双归属 CE将流量由主链路切换到备用链路进行传输。 The remote PE switches traffic from the primary PW to the standby PW, and the dual-homed CE switches traffic from the primary link to the standby link for transmission.
2、 根据权利要求 1所述的方法, 其特征在于, 所述当双归属 CE或双 归属 PE确定主链路失效时, 双归属 PE发送 "冗余 PW收发缺陷" 的消息 给远端 PE为: The method according to claim 1, wherein when the dual-homed CE or the dual-homed PE determines that the primary link fails, the dual-homed PE sends a message of "redundant PW transmission and reception defect" to the remote PE. :
当双归属 CE检测到主链路失效时, 通知与其相连的双归属 PE "链路 收发缺陷" ; 或, 双归属 PE检测到主链路失效, 发送 "链路收发缺陷" 的 消息给与其相连的双归属 CE、或收到与其相连的双归属 CE发送的 "链路 收发缺陷" 的消息; When the dual-homed CE detects that the primary link fails, it notifies the dual-homed PE "link transmission and reception defect" connected thereto; or, the dual-homed PE detects that the primary link is invalid, and sends a "link transmission and reception defect" message to the primary link. a dual-homed CE, or a "link receiving and receiving defect" message sent by a dual-homed CE connected thereto;
当双归属 PE确定主链路失效并确定失效的主链路存在与其关联的 PW 时, 双归属 PE发送 "冗余 PW收发缺陷" 的消息给远端 PE。 When the dual-homed PE determines that the primary link fails and determines that the failed primary link has a PW associated with it, the dual-homed PE sends a message of "redundant PW transmission and reception defect" to the remote PE.
3、 根据权利要求 1所述的方法, 其特征在于, 所述当双归属 CE或所 述双归属 PE确定主链路失效时, 所述双归属 PE发送消息给所述远端 PE 之前, 该方法还包括: The method according to claim 1, wherein, when the dual-homed CE or the dual-homed PE determines that the primary link fails, the dual-homed PE sends a message to the remote PE, The method also includes:
配置双归属 CE的主链路和备用链路, 配置远端 PE与双归属 PE间的 主 PW和备用 PW, 并将配置的 PW与双归属 CE的主链路和备用链路进行 关联。 Configure the primary and backup links of the dual-homed CE, and configure the primary PW and the standby PW between the remote PE and the dual-homed PE, and associate the configured PW with the primary and backup links of the dual-homed CE.
4、 根据权利要求 3所述的方法, 其特征在于, 所述配置双归属 CE的 主链路和备用链路为: 在双归属 CE上配置两条链路, 将其中一条链路的冗余状态设置为主, 将另一条链路的冗余状态设置为备;双归属 CE根据配置的主链路和备用链 路生成 AC快速重路由 ( FRR )转发表项。 The method according to claim 3, wherein the primary link and the backup link configured with the dual-homed CE are: Configure two links on the dual-homed CE, set the redundancy status of one link as the primary, and set the redundancy status of the other link to standby. The dual-homed CE is configured according to the primary and backup links. Generate an AC Fast Reroute (FRR) forwarding entry.
5、 根据权利要求 3所述的方法, 其特征在于, 所述配置远端 PE与双 归属 PE间的主 PW和备用 PW为: The method according to claim 3, wherein the configuration of the primary PW and the standby PW between the remote PE and the dual-homed PE is:
在远端 PE上配置多条 PW, 远端 PE通过配置的 PW与其相邻的每个 PE相连, 将其中一条 PW的冗余状态设置为主, 将另一条 PW的冗余状态 设置为备; 将主 PW和备用 PW关联到主链路和备用链路; 远端 PE根据配 置的主 PW和备用 PW生成 PW FRR转发表项。 Configure multiple PWs on the remote PE. The remote PEs are connected to each adjacent PE through the configured PW. The redundancy status of one PW is set to be the primary and the redundancy status of the other PW is set to standby. The primary PW and the standby PW are associated with the primary link and the standby PW. The remote PE generates a PW FRR forwarding entry according to the configured primary PW and the standby PW.
6、 根据权利要求 3所述的方法, 其特征在于, 所述将配置的 PW与双 归属 CE的主链路和备用链路进行关联为: The method according to claim 3, wherein the associating the configured PW with the primary link and the standby link of the dual-homed CE is:
将远端 PE与双归属 PE间的主 PW和备用 PW关联到双归属 CE的主 链路和备用链路, 如果已配置双归属 PE与单归属 CE间的链路, 则该链路 不与所述主 PW和备用 PW进行关联, 远端 PE根据是否进行关联处理, 区 分单归属流量和双归属流量。 Associate the primary PW and the standby PW between the remote PE and the dual-homed PE to the primary and backup links of the dual-homed CE. If the link between the dual-homed PE and the single-homed CE is configured, the link does not match. The primary PW is associated with the standby PW, and the remote PE distinguishes the single-homed traffic and the dual-homed traffic according to whether the association process is performed.
7、 根据权利要求 5所述的方法, 其特征在于, 所述远端 PE根据是否 进行关联处理, 区分单归属流量和双归属流量为: The method according to claim 5, wherein the remote PE distinguishes the single-homed traffic and the dual-homed traffic according to whether the association process is performed:
双归属 PE将从双归属 CE的链路上学习的 MAC表项 ,显式的通过 LDP 的地址消息通告给远端 PE, 远端 PE将所述 MAC表项继承到 PW FRR表 项 , 所 MAC表项的转发行为将受到 PW FRR的影响 , 所述 MAC表项指导 远端 PE对双归属流量的转发; The dual-homed PE will advertise the MAC address entry learned from the link of the dual-homed CE to the remote PE through the LDP address message. The remote PE inherits the MAC entry from the MAC address entry to the PW FRR entry. The forwarding behavior of the entry will be affected by the PW FRR. The MAC entry directs the remote PE to forward the dual-homed traffic.
双归属 PE不将从单归属 CE的链路上学习的 MAC表项通告给远端 PE, 远端 PE将不根据该 MAC表项继承到 PW FRR表项, MAC表项的转发行 为不受 PW FRR的影响, 该 MAC表项指导远端 PE对单归属流量的转发。 The dual-homed PE does not advertise the MAC entry learned from the link of the single-homed CE to the remote PE. The remote PE does not inherit the PW FRR entry based on the MAC entry. The forwarding behavior of the MAC entry is not affected by the PW. Impact of FRR. This MAC entry guides the remote PE to forward single-homed traffic.
8、 根据权利要求 1所述的方法, 其特征在于, 该方法还包括: 当双归属 CE且双归属 PE确定主链路恢复有效时, 双归属 PE向远端 PE通告 "冗余 PW收发正常" 的消息; 双归属 CE将流量回切到主链路进 行传输, 远端 PE将流量回切到主 PW进行传输。 8. The method according to claim 1, wherein the method further comprises: When the dual-homed CE and the dual-homed PE determine that the primary link is valid, the dual-homed PE advertises the message "Redundant PW is received and received normally" to the remote PE; the dual-homed CE switches the traffic back to the primary link for transmission. The PE switches back the traffic to the primary PW for transmission.
9、 根据权利要求 1所述的方法, 其特征在于, 所述该方法还包括: 当双归属 PE且远端 PE确定主 PW恢复有效时, 双归属 PE向双归属 CE通告 "链路收发正常" 的消息; 双归属 CE将流量回切到主链路进行传 输, 远端 PE将流量回切到主 PW进行传输。 The method according to claim 1, wherein the method further comprises: when the dual-homed PE determines that the primary PW is valid, the dual-homed PE advertises to the dual-homed CE that the link is normally received and received. The message is sent by the dual-homed CE to the primary link for transmission. The remote PE switches the traffic back to the primary PW for transmission.
10、 一种切换系统, 其特征在于,该系统包括: 双归属 PE、双归属 CE、 远端 PE; 其中, A switching system, the system comprising: a dual-homed PE, a dual-homed CE, and a remote PE;
双归属 PE, 用于双归属 CE或自身确定主链路失效时,发送 "冗余 PW 收发缺陷" 的消息给远端 PE; A dual-homed PE, used for the dual-homing CE or itself to determine that the primary link fails, sending a message of "redundant PW transmission and reception defect" to the remote PE;
双归属 CE, 用于当确定主链路失效时, 将流量由主链路切换到备用链 路进行传输; The dual-homing CE is configured to switch traffic from the primary link to the standby link for transmission when determining that the primary link fails;
远端 PE, 用于收到 "冗余 PW收发缺陷的" 消息时, 将流量由主 PW 切换到备用 PW进行传输。 The remote PE is used to switch traffic from the primary PW to the standby PW for transmission when receiving the message "Redundant PW Transceiver Defect".
11、 根据权利要求 10所述的系统, 其特征在于, 11. The system of claim 10, wherein:
该系统还包括: 配置模块, 用于配置双归属 CE的主链路和备用链路, 配置远端 PE与双归属 PE间的主 PW和备用 PW, 并将配置的 PW与双归 属 CE的主链路和备用链路进行关联; The system further includes: a configuration module, configured to configure a primary link and a backup link of the dual-homed CE, configure a primary PW and a standby PW between the remote PE and the dual-homed PE, and configure the PW and the dual-homed CE master The link is associated with the alternate link;
所述双归属 PE还用于, 当双归属 CE或自身确定主链路恢复有效时, 向远端 PE通告 "冗余 PW收发正常" 的消息; The dual-homed PE is further configured to: when the dual-homed CE or the self-determination primary link is restored, notify the remote PE of the message that the “redundant PW is sent and received normally”;
所述双归属 CE还用于, 确定主链路恢复有效时, 将流量回切到主链路 进行传输; The dual-homing CE is further configured to: when determining that the primary link is valid, the traffic is switched back to the primary link for transmission;
所述远端 PE还用于, 收到 "冗余 PW收发正常" 的消息时, 将流量回 切到主 PW进行传输。 The remote PE is further configured to: when receiving the message that the “redundant PW is sent and received normally”, the traffic is switched back to the primary PW for transmission.
12、 一种切换系统, 其特征在于,该系统包括: 双归属 PE、双归属 CE、 远端 PE; 其中, A switching system, the system comprising: a dual-homed PE, a dual-homed CE, and a remote PE;
双归属 PE, 用于当自身或远端 PE确定主 PW失效时, 向双归属 CE 通告 "链路收发缺陷" 的消息; The dual-homed PE is used to notify the dual-homed CE of the "link receiving and receiving defect" message when the self-respecting PE determines that the primary PW is invalid;
双归属 CE, 用于收到 "链路收发缺陷" 的消息时, 将流量由主链路切 换到备用链路进行传输; The dual-homed CE is configured to switch traffic from the primary link to the standby link for transmission when receiving a "link transmission and reception defect" message;
远端 PE, 用于确定主 PW失效时, 将流量由主 PW切换到备用 PW进 行传输。 The remote PE is used to determine that the primary PW fails, and the traffic is switched from the primary PW to the standby PW for transmission.
13、 根据权利要求 12所述的系统, 其特征在于, 13. The system of claim 12, wherein
该系统还包括: 配置模块, 用于配置双归属 CE的主链路和备用链路, 并配置远端 PE与双归属 PE间的主 PW和备用 PW, 并将配置的 PW与双 归属 CE的主链路和备用链路进行关联; The system further includes: a configuration module, configured to configure a primary link and a backup link of the dual-homed CE, and configure a primary PW and a standby PW between the remote PE and the dual-homed PE, and configure the PW and the dual-homed CE The primary link is associated with the alternate link;
所述双归属 PE还用于, 当自身且远端 PE确定主 PW恢复有效时, 向 双归属 CE通告 "链路收发正常" 的消息; The dual-homed PE is further configured to notify the dual-homed CE of the "link transmission and reception normal" message when the remote PE determines that the primary PW is valid.
所述双归属 CE还用于, 收到 "链路收发正常" 的消息时, 将流量回切 到主链路进行传输; The dual-homing CE is further configured to: when receiving the message that the link is sent and received normally, the traffic is switched back to the primary link for transmission;
所述远端 PE还用于, 确定主 PW恢复有效时, 将流量回切到主 PW进 行传输。 The remote PE is further configured to: when the primary PW is restored, the traffic is switched back to the primary PW for transmission.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010270185.X | 2010-09-02 | ||
CN201010270185.XA CN101931520B (en) | 2010-09-02 | 2010-09-02 | Switching method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2012028029A1 true WO2012028029A1 (en) | 2012-03-08 |
Family
ID=43370459
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2011/076671 WO2012028029A1 (en) | 2010-09-02 | 2011-06-30 | Switching method and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN101931520B (en) |
WO (1) | WO2012028029A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104753794A (en) * | 2013-12-26 | 2015-07-01 | 中国移动通信集团辽宁有限公司 | Routing information transmitting method and system and route reflector |
CN114157606A (en) * | 2021-12-09 | 2022-03-08 | 锐捷网络股份有限公司 | Virtual network element equipment switching method, equipment and storage medium |
Families Citing this family (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101931520B (en) * | 2010-09-02 | 2014-01-01 | 中兴通讯股份有限公司 | Switching method and system |
CN102694718B (en) | 2011-03-25 | 2016-03-30 | 华为技术有限公司 | A kind of VPLS fast rerouting method and equipment |
CN102281155A (en) * | 2011-08-01 | 2011-12-14 | 中兴通讯股份有限公司 | PTN-based PW switching method, and system and device thereof |
CN102801630B (en) * | 2012-08-23 | 2015-07-22 | 杭州华三通信技术有限公司 | Method and equipment for implementing virtual connection |
CN102833774B (en) * | 2012-08-29 | 2015-12-09 | 华为技术有限公司 | The processing method of a kind of IP wireless access network system and primary pseudo-lines fault thereof |
CN103023772B (en) * | 2012-09-14 | 2015-12-09 | 中兴国通通讯装备技术(北京)有限公司 | Support software terminal and the self adaptation dynamic access method thereof of many Flex passage |
CN103905571B (en) * | 2012-12-26 | 2018-01-12 | 中国电信股份有限公司 | Methods, devices and systems for more new address information |
CN104135418B (en) * | 2013-05-03 | 2017-09-15 | 中国移动通信集团内蒙古有限公司 | It is a kind of to realize two layers of method and device for coordinating to switch with Layer3 Virtual Private Network |
CN104702498B (en) * | 2013-12-04 | 2018-08-28 | 中国移动通信集团内蒙古有限公司 | A kind of method and device reducing equipment room light connects quantity by harmonious protection |
CN105306330A (en) * | 2014-06-24 | 2016-02-03 | 中兴通讯股份有限公司 | Network protection method and device, and primary convergence network element in network |
CN106685817B (en) * | 2016-12-27 | 2020-05-12 | 中国移动通信集团江苏有限公司 | Method and device for switching flow of box end equipment |
CN107612738B (en) * | 2017-09-22 | 2019-09-27 | 烽火通信科技股份有限公司 | The uplink traffic fast switching system and method for VPLS dual-homed service model |
CN107566196A (en) * | 2017-10-20 | 2018-01-09 | 北京星河星云信息技术有限公司 | Network-building method and network device, customer edge and readable storage medium storing program for executing |
CN109189542B (en) * | 2018-09-28 | 2021-10-15 | 成都安恒信息技术有限公司 | Remote desktop access method for operation and maintenance auditing system |
CN110138605B (en) * | 2019-04-30 | 2022-06-17 | 浙江亿邦通信科技有限公司 | PW switching method and device based on virtual port |
CN110311861B (en) * | 2019-05-31 | 2021-10-22 | 厦门网宿有限公司 | Method and device for guiding data flow |
WO2020237639A1 (en) * | 2019-05-31 | 2020-12-03 | Telefonaktiebolaget Lm Ericsson (Publ) | Method and apparatus for network communication |
CN111131035A (en) * | 2019-12-18 | 2020-05-08 | 新华三半导体技术有限公司 | Data transmission method and device |
CN113595895B (en) * | 2020-04-30 | 2022-12-06 | 华为技术有限公司 | Message control method, first PE (provider edge) equipment, first CE (customer edge) equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101674241A (en) * | 2009-09-15 | 2010-03-17 | 杭州华三通信技术有限公司 | Method and equipment for avoiding RIP loop circuit in CE dual-homing network |
CN101753464A (en) * | 2010-01-22 | 2010-06-23 | 中兴通讯股份有限公司 | Routing convergence method, provider edge devices and virtual private network system |
CN101800662A (en) * | 2010-01-22 | 2010-08-11 | 中兴通讯股份有限公司 | Double-returning protection switching method based on VPLS and system |
CN101931520A (en) * | 2010-09-02 | 2010-12-29 | 中兴通讯股份有限公司 | Switching method and system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100454875C (en) * | 2006-08-24 | 2009-01-21 | 华为技术有限公司 | Method and system for realizing dual attachment or multiple attachment of user network boundary device |
CN101267360B (en) * | 2008-04-10 | 2010-08-18 | 华为技术有限公司 | Pseudo failure detection method and user boundary device |
-
2010
- 2010-09-02 CN CN201010270185.XA patent/CN101931520B/en not_active Expired - Fee Related
-
2011
- 2011-06-30 WO PCT/CN2011/076671 patent/WO2012028029A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101674241A (en) * | 2009-09-15 | 2010-03-17 | 杭州华三通信技术有限公司 | Method and equipment for avoiding RIP loop circuit in CE dual-homing network |
CN101753464A (en) * | 2010-01-22 | 2010-06-23 | 中兴通讯股份有限公司 | Routing convergence method, provider edge devices and virtual private network system |
CN101800662A (en) * | 2010-01-22 | 2010-08-11 | 中兴通讯股份有限公司 | Double-returning protection switching method based on VPLS and system |
CN101931520A (en) * | 2010-09-02 | 2010-12-29 | 中兴通讯股份有限公司 | Switching method and system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104753794A (en) * | 2013-12-26 | 2015-07-01 | 中国移动通信集团辽宁有限公司 | Routing information transmitting method and system and route reflector |
CN114157606A (en) * | 2021-12-09 | 2022-03-08 | 锐捷网络股份有限公司 | Virtual network element equipment switching method, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN101931520B (en) | 2014-01-01 |
CN101931520A (en) | 2010-12-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2012028029A1 (en) | Switching method and system | |
JP4899959B2 (en) | VPN equipment | |
US10469366B2 (en) | Redundant ethernet automatic protection switching access to virtual private LAN services | |
JP4796184B2 (en) | Edge node redundancy system | |
US9800432B2 (en) | Using ethernet ring protection switching with computer networks | |
JP4542045B2 (en) | Data communication apparatus and method | |
CN102664788B (en) | CE dual-homed link protection method in MPLS L3VPN and system thereof | |
US20130272114A1 (en) | Pseudo wire switching method and device | |
JP5168230B2 (en) | Communication system, edge router, and signal transfer method | |
US20120236730A1 (en) | Method, device and system for processing service traffic based on pseudo wires | |
WO2007115493A1 (en) | A method, device and system for achieving the switch in the dual-homed network based on the vpls | |
WO2009138036A1 (en) | Method for updating forwarding table during ethernet service transmission, and device and system thereof | |
WO2011060667A1 (en) | Method and device for link protection in virtual private local area network | |
WO2008083590A1 (en) | Method and apparatus of rapid convergence of point-to-point service | |
WO2012130034A1 (en) | Vpls fast rerouting method and device | |
WO2008080312A1 (en) | Convergence method, device, system of all connection network as well as dual home device | |
WO2012079375A1 (en) | Method and system for link protection in a virtual private network | |
WO2012171378A1 (en) | Method and router for preventing flow interruption caused by failover from vpls to l3 | |
WO2012024952A1 (en) | Method and system for switching path based on point to multipoint service | |
WO2011147299A1 (en) | Fast reroute method and apparatus in layer-2 virtual private network | |
WO2012146097A1 (en) | Vpls network and ethernet ring switching method and device | |
WO2008095360A1 (en) | Method and system for switching rapidly when there is a failure of virtual private network link path | |
US20120269056A1 (en) | Method, device, and system for protecting semi-ring network | |
WO2011011934A1 (en) | Method and apparatus for ethernet tunnel segmentation protection | |
WO2011050665A1 (en) | Method and device for implementing fast rerouting of ports |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 11821055 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 11821055 Country of ref document: EP Kind code of ref document: A1 |