When PW redundancy is configured for L2VPN services, bit-error-triggered switching can be configured. With this function, if bit errors occur, services can switch between the primary and secondary PWs.
Trigger-LSP bit error detection must be enabled on each node's interfaces. PW redundancy can be configured in either a single segment or multi-segment scenario.
Single-segment PW redundancy scenario
In Figure 1, PE1 establishes a primary PW to PE2 and a secondary PW to PE3, which implements PW redundancy. If PE2 detects bit errors, the processing is as follows:
PE2 switches traffic destined for PE1 to the path bypass PW -> PE3 -> secondary PW -> PE1 and sends a BFD packet to notify PE1 of the bit errors.
Upon receipt of the BFD packet, PE1 switches traffic destined for PE2 to the path secondary PW-> PE3 -> bypass PW -> PE2.
Traffic between PE1 and PE2 can travel along bit-error-free links.
Multi-segment PW redundancy scenario
In Figure 2, multi-segment PW redundancy is configured. PE1 is dual-homed to two SPEs. If PE2 detects bit errors, the processing is as follows:
PE2 switches traffic destined for PE1 to the path bypass PW -> PE3 -> PW2 -> SPE2 -> secondary PW -> PE1 and sends a BFD packet to notify SPE1 of the bit errors.
Upon receipt of the BFD packet, SPE1 sends an LDP Notification message to notify PE1 of the bit errors.
Upon receipt of the notification, PE1 switches traffic destined for PE2 to the path secondary PW -> SPE2 -> PW2 -> PE3 -> bypass PW-> PE2.
Traffic between PE1 and PE2 can travel along bit-error-free links. If bit errors occur on a link between PE1 and SPE1, the processing is the same as that in the single-segment PW redundancy scenario.
After traffic switches to the secondary PW, and bit errors are removed from the primary PW, traffic switches back to the primary PW based on a configured switchback policy.
If L2VPN is used to carry user services and PW redundancy is deployed to ensure reliability, deploy bit-error-triggered switching for PW to minimize the impact of bit errors on user services and improve service quality.