Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Example: Configuring Pseudowire Redundancy for Mobile Backhaul Scenarios

    Understanding Pseudowire Redundancy Mobile Backhaul Scenarios

    With the rising demand for mobile broadband services, telecommunication providers are seeing a sharp increase in bandwidth requirements. To keep pace with demand, operators are deploying packet-based backhaul networks that offer increased capacity at a lower cost, while providing the necessary service reliability and quality of experience that users expect.

    Most of the legacy backhaul infrastructure has been traditionally built over PDH microwave, TDM T1/E1, or ATM-over-DSL links. Service providers have traditionally added subsequent TDM links to their base stations when needed to deal with bandwidth constraint scenarios. This expansion model has proven to be inefficient for the unprecedented traffic demands required by 3G and Long Term Evolution (LTE) services. As a direct consequence, operators are gradually migrating to an Ethernet-based higher capacity infrastructure in the backhaul portion of 3G and LTE topologies. Modern base stations now provide Ethernet backhaul connectivity, allowing pseudowire technologies to transport end-user content to the desired destination. As part of this Ethernet transition, service providers are increasingly demanding better resiliency mechanisms to cover the existence gap with those features provided by previous legacy technologies. With that goal in mind, Junos OS provides efficient pseudowire redundancy capabilities to those topologies where Layer 2 and Layer 3 segments are interconnected.

    Sample Topology

    Figure 1 shows a sample topology.

    Figure 1: Pseudowire Redundancy Mobile Backhaul Sample Topology

    Pseudowire Redundancy
Mobile Backhaul Sample Topology

    Benefits of Pseudowire Redundancy Mobile Backhaul

    Junos OS pseudowire redundancy capabilities are as follows:

    • Redundant loop-free paths to interconnect Layer 2 and Layer 3 domains.
    • Layer 2 and Layer 3 domains are synchronized with regard to the elected data path.
    • Traffic disruption is minimal for the following possible scenarios:

      • Access link failures
      • Node failures
      • Control-plane failures
    • Traffic interruption is minimal after the failure’s restoration is completed.

    Layer 2 Virtual Circuit Status TLV Extension

    The pseudowire status TLV is used to communicate the status of a pseudowire between PE routers. To avoid potential primary-path discrepancies, there must be a mechanism that allows all network elements to be synchronized with respect to the primary path over which traffic needs to be sent. With this goal in mind, the status TLV is extended to address this requirement.

    By having the active and standby states being defined by the access routers, Junos OS mitigates potential primary path collisions, as there is a unique network element dictating the preferable forwarding path to be elected. As an added value, this allows network operators to switch forwarding paths on demand, which is quite useful for troubleshooting and network maintenance purposes.

    The active and standby states are communicated to the aggregation routers by making use of an additional pseudowire state flag.

    Table 1 includes a list of the pseudowire state flags.

    Table 1: Pseudowire Status Code for the Pseudowire Status TLV

    Flag

    Code

    L2CKT_PW_STATUS_PW_FWD

    0x00000000

    L2CKT_PW_STATUS_PW_NOT_FWD

    0x00000001

    L2CKT_PW_STATUS_AC_RX_FAULT

    0x00000002

    L2CKT_PW_STATUS_AC_TX_FAULT

    0x00000004

    L2CKT_PW_STATUS_PSN_RX_FAULT

    0x00000008

    L2CKT_PW_STATUS_PSN_TX_FAULT

    0x00000010

    L2CKT_PW_STATUS_PW_FWD_STDBY

    0x00000020

    Indicates the standby state.

    L2CKT_PW_STATUS_SWITCH_OVER

    0x00000040

    In multichassis LAG (MC-LAG)-based scenarios, this same PW_FWD_STDBY flag is used to advertise to remote PE devices which attachment circuit (AC) is being used as the active one. Upon arrival of this flag, the receiving PE device drops any pseudowire built toward the router originating this state. As we can see, this behavior denotes a slightly different semantic for the PW_FWD_STDBY flag. As a consequence, you can configure the hot-standby-vc-on statement to control whether the pseudowire must be constructed upon arrival of the PW_FWD_STDBY flag (in the hot-standby pseudowire scenario), or simply destroy it (in the MC-LAG scenario).

    How It Works

    The solution uses logical tunnel (lt-) paired interfaces for stitching the Layer 2 and Layer 3 domains.

    Figure 2 shows a diagram depicting how pseudowire redundancy in a mobile backhaul scenario works.

    Figure 2: Pseudowire Redundancy Mobile Backhaul Solution

    Pseudowire
Redundancy Mobile Backhaul Solution

    A Layer 2 pseudowire terminates on one of the logical tunnel interfaces (x), defined with the circuit cross-connect (CCC) address family configured. A Layer 3 VPN (RFC 2547) terminates the second logical tunnel interface (y), defined with the IPv4 (inet) address family. Logical tunnel interface (x) and (y) are paired. Layer 2 pseudowires established between each access router and its corresponding aggregation PE devices terminate on the logical tunnel interface defined within each PE device. This logical tunnel interface is used to establish a Layer 2 virtual circuit (VC) toward the remote end. In consequence, the CCC address family needs to be configured on it. The same applies to the remote end, where an equivalent interface needs to be defined with CCC capabilities.

    This CCC logical tunnel interface created in the aggregation PE devices is paired with a second logical tunnel interface on which the INET address family is enabled. This second logical tunnel interface is configured within the context of an RFC 2547 Layer 3 VPN.

    Within the scope of this document, we refer to the CCC and INET logical tunnel interfaces as LT(x) and LT(y), respectively.

    The Junos OS routing protocol process (rpd) enables the stitching required to interconnect the Layer 2 VC ending in LT(x) and the associated LT(y).

    In the aggregation PE routers, the routing process builds a pseudowire toward access routers, and this happens regardless of the active or standby state of the pseudowire. The same occurs in access routers, where the control and forwarding state is preestablished in both the Routing Engine and in the Packet Forwarding Engine to mitigate traffic disruption during convergence periods.

    An attachment circuit (AC) is a physical or virtual circuit (VC) that attaches a CE device to a PE device. Local preference is used to provide better information than the multiple exit discriminator (MED) value provides for a packet's path selection. You can configure the local preference attribute so that it has a higher value for prefixes received from a router that provides a desired path than prefixes received from a router that provides a less desirable path. The higher the value, the more preferred the route. The local preference attribute is the metric most often used in practice to express preferences for one set of paths over another.

    If the Layer 2 circuit is primary, the corresponding PE device advertises the AC’s subnet with the higher local preference. All aggregation PE devices initially advertise the AC’s subnet with the same local preference. You can configure a routing policy to allow a higher local preference value to be advertised if the Layer 2 VC is active.

    If a pseudowire is down, LT(x) is tagged with the CCC_Down flag. When this happens, the corresponding PE device withdraws the AC subnet that was initially advertised. The LT(y) address is shared between the aggregation PE devices as a virtual instance port (VIP). No VRRP hello messages are exchanged. Both PE devices assume mastership.

    Both primary and standby Layer 2 VCs are kept open to reduce traffic disruption in backup-to-primary transitions. The hot-standby-vc-on configuration statement allows manual activation.

    Resiliency in the Layer 2 domain is provided through plain pseudowire redundancy for back-to-back connections. For other topologies, pseudowire virtual circuit connectivity verification (VCCV) is used.

    Resiliency in the Layer 3 domain is provided by MPLS fast reroute and end-to-end service restoration. A restoration timer prevents having VCs in the secondary path from being switched back to the primary path immediately after the master PE device is restored.

    Access routers can indicate to the aggregation routers which Layer 2 VC is considered to be active. Upon arrival at LT(x) of a status TLV message communicating a standby state, the routing process decreases the BGP's local preference value of the direct subnet represented by the LT(y) IPv4 address. At this point, BGP proceeds to advertise this local preference change to the rest of the members within the Layer 3 domain, which will then reelect the designated forwarder PE device by relying on BGP's path selection mechanisms.

    A similar behavior occurs upon arrival of a status TLV message indicating a Layer 2 VC active state. In this case, the receiving PE device changes the local preference corresponding to the LT(y)'s subnet. The value to be used to either decrease or increase the subnet's local preference value is manually configured using a policy.

    Example: Configuring Pseudowire Redundancy in a Mobile Backhaul Scenario

    This example shows how to configure pseudowire redundancy where Layer 2 and Layer 3 segments are interconnected in a mobile backhaul scenario.

    Requirements

    This example can be configured using the following hardware and software components:

    • Junos OS Release 13.2 or later
    • MX Series 3D Universal Edge Routers or M Series Multiservice Edge Routers for the Provider Edge (PE) Routers
    • PTX Series Packet Transport Routers acting as transit label-switched routers
    • T Series Core Routers for the Core Routers

    Note: The PE routers could also be T Series Core Routers but that is not typical. Depending on your scaling requirements, the core routers could also be MX Series 3D Universal Edge Routers or M Series Multiservice Edge Routers. The Customer Edge (CE) devices could be other routers or switches from Juniper Networks or another vendor.

    No special configuration beyond device initialization is required before configuring this example.

    Overview

    Device CE1 is a simple edge router with an IPv4 interface and a static route pointing to the PE devices. Device A1 establishes two virtual circuits (VCs) toward Device PE1 and Device PE2 by making use of the hot-standby statement. Device PE1 and Device PE2 terminate these VCs and enforce a policy condition over the logical tunnel IPv4 subnet. Device PE3 performs as a Layer 3 VPN provider edge device by having an IPv4 interface in a Layer 3 VPN shared with Device PE1 and Device PE2.

    CLI Quick Configuration shows the configuration for all of the devices in Figure 3.

    The section Step-by-Step Procedure describes the steps on Device A1 and Device PE1.

    Figure 3: Pseudowire Redundancy in a Mobile Backhaul Example Topology

    Pseudowire Redundancy
in a Mobile Backhaul Example Topology

    Configuration

    CLI Quick Configuration

    To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.

    Device CE1

    set interfaces ge-1/3/3 vlan-taggingset interfaces ge-1/3/3 unit 600 vlan-id 600set interfaces ge-1/3/3 unit 600 family inet address 10.41.0.104/24set interfaces lo0 unit 0 family inet address 192.168.0.104/32 primaryset interfaces lo0 unit 0 family inet address 192.168.0.104/32 primaryset protocols ospf area 0.0.0.0 interface ge-1/3/3.600set protocols ospf area 0.0.0.0 interface lo0.0set routing-options static route 192.168.0.0/8 next-hop 10.41.0.1set routing-options static route 10.53.0.0/16 next-hop 10.41.0.1set routing-options router-id 192.168.0.104

    Device A1

    set interfaces ge-1/3/0 unit 0 family inet address 10.20.0.100/24set interfaces ge-1/3/0 unit 0 family isoset interfaces ge-1/3/0 unit 0 family mplsset interfaces ge-1/3/1 unit 0 family inet address 10.10.0.100/24set interfaces ge-1/3/1 unit 0 family isoset interfaces ge-1/3/1 unit 0 family mplsset interfaces ge-1/3/2 vlan-taggingset interfaces ge-1/3/2 encapsulation vlan-cccset interfaces ge-1/3/2 unit 600 encapsulation vlan-cccset interfaces ge-1/3/2 unit 600 vlan-id 600set interfaces ge-1/3/2 unit 600 family cccset interfaces lo0 unit 0 family inet address 192.168.0.100/32 primaryset interfaces lo0 unit 0 family iso address 49.0002.0192.0168.0100.00set routing-options router-id 192.168.0.100set routing-options autonomous-system 64510set routing-options forwarding-table export pplbset protocols rsvp interface ge-1/3/0.0set protocols rsvp interface ge-1/3/1.0set protocols rsvp interface lo0.0set protocols mpls interface ge-1/3/0.0set protocols mpls interface ge-1/3/1.0set protocols isis interface ge-1/3/0.0set protocols isis interface ge-1/3/1.0set protocols isis interface lo0.0set protocols ldp interface ge-1/3/0.0set protocols ldp interface ge-1/3/1.0set protocols ldp interface lo0.0set protocols l2circuit neighbor 192.168.0.101 interface ge-1/3/2.600 virtual-circuit-id 1set protocols l2circuit neighbor 192.168.0.101 interface ge-1/3/2.600 pseudowire-status-tlvset protocols l2circuit neighbor 192.168.0.101 interface ge-1/3/2.600 revert-time 10 maximum 60set protocols l2circuit neighbor 192.168.0.101 interface ge-1/3/2.600 backup-neighbor 192.168.0.102 virtual-circuit-id 2set protocols l2circuit neighbor 192.168.0.101 interface ge-1/3/2.600 backup-neighbor 192.168.0.102 hot-standbyset policy-options policy-statement pplb then load-balance per-packet

    Device PE1

    set interfaces ge-0/1/1 unit 0 family inet address 10.21.0.101/24set interfaces ge-0/1/1 unit 0 family isoset interfaces ge-0/1/1 unit 0 family mplsset interfaces ge-0/1/2 unit 0 family inet address 10.31.0.101/24set interfaces ge-0/1/2 unit 0 family isoset interfaces ge-0/1/2 unit 0 family mplsset interfaces ge-0/1/3 unit 0 family inet address 10.10.0.101/24set interfaces ge-0/1/3 unit 0 family isoset interfaces ge-0/1/3 unit 0 family mplsset interfaces lt-1/2/0 unit 600 encapsulation vlan-cccset interfaces lt-1/2/0 unit 600 vlan-id 600set interfaces lt-1/2/0 unit 600 peer-unit 601set interfaces lt-1/2/0 unit 601 encapsulation vlanset interfaces lt-1/2/0 unit 601 vlan-id 600set interfaces lt-1/2/0 unit 601 peer-unit 600set interfaces lt-1/2/0 unit 601 family inet filter input icmp_inetset interfaces lt-1/2/0 unit 601 family inet filter output icmp_inetset interfaces lt-1/2/0 unit 601 family inet address 10.41.0.101/24 vrrp-group 0 virtual-address 10.41.0.1set interfaces lt-1/2/0 unit 601 family inet address 10.41.0.101/24 vrrp-group 0 accept-dataset interfaces lo0 unit 0 family inet address 192.168.0.101/32 primaryset interfaces lo0 unit 0 family iso address 49.0002.0192.0168.0003.00set interfaces lo0 unit 1 family inet address 192.168.1.101/32set routing-options router-id 192.168.0.101set routing-options autonomous-system 64511set protocols rsvp interface ge-0/1/1.0set protocols rsvp interface ge-0/1/2.0set protocols rsvp interface ge-0/1/3.0set protocols rsvp interface lo0.0set protocols mpls label-switched-path to_PE3 to 192.168.0.103set protocols mpls label-switched-path to_PE2 to 192.168.0.102set protocols mpls interface ge-0/1/1.0set protocols mpls interface ge-0/1/2.0set protocols mpls interface ge-0/1/3.0set protocols bgp local-address 192.168.0.101set protocols bgp group ibgp family inet-vpn anyset protocols bgp group ibgp peer-as 64511set protocols bgp group ibgp neighbor 192.168.0.102set protocols bgp group ibgp neighbor 192.168.0.103set protocols isis interface ge-0/1/1.0set protocols isis interface ge-0/1/2.0set protocols isis interface ge-0/1/3.0set protocols isis interface lo0.0set protocols ldp interface ge-0/1/1.0set protocols ldp interface ge-0/1/2.0set protocols ldp interface ge-0/1/3.0set protocols ldp interface lo0.0set protocols l2circuit neighbor 192.168.0.100 interface lt-1/2/0.600 virtual-circuit-id 1set protocols l2circuit neighbor 192.168.0.100 interface lt-1/2/0.600 pseudowire-status-tlv hot-standby-vc-onset policy-options policy-statement l3vpn_export term primary from condition primaryset policy-options policy-statement l3vpn_export term primary then local-preference add 300set policy-options policy-statement l3vpn_export term primary then community set l3vpnset policy-options policy-statement l3vpn_export term primary then acceptset policy-options policy-statement l3vpn_export term standby from condition standbyset policy-options policy-statement l3vpn_export term standby then local-preference add 30set policy-options policy-statement l3vpn_export term standby then community set l3vpnset policy-options policy-statement l3vpn_export term standby then acceptset policy-options policy-statement l3vpn_export term default then community set l3vpnset policy-options policy-statement l3vpn_export term default then acceptset policy-options policy-statement l3vpn_import term 1 from community l3vpnset policy-options policy-statement l3vpn_import term 1 then acceptset policy-options policy-statement l3vpn_import term default then rejectset policy-options policy-statement ospf_export term 0 from community l3vpnset policy-options policy-statement ospf_export term 0 then acceptset policy-options community l3vpn members target:64511:600set policy-options condition primary if-route-exists address-family ccc lt-1/2/0.600set policy-options condition primary if-route-exists address-family ccc table mpls.0set policy-options condition primary if-route-exists address-family ccc peer-unit 601set policy-options condition standby if-route-exists address-family ccc lt-1/2/0.600set policy-options condition standby if-route-exists address-family ccc table mpls.0set policy-options condition standby if-route-exists address-family ccc standbyset policy-options condition standby if-route-exists address-family ccc peer-unit 601set firewall family inet filter icmp_inet interface-specificset firewall family inet filter icmp_inet term 0 from source-address 10.41.0.101/32 exceptset firewall family inet filter icmp_inet term 0 from source-address 10.0.0.0/8set firewall family inet filter icmp_inet term 0 from protocol icmpset firewall family inet filter icmp_inet term 0 then count icmp_inetset firewall family inet filter icmp_inet term 0 then logset firewall family inet filter icmp_inet term 0 then acceptset firewall family inet filter icmp_inet term 1 then acceptset routing-instances l3vpn instance-type vrfset routing-instances l3vpn interface lt-1/2/0.601set routing-instances l3vpn interface lo0.1set routing-instances l3vpn route-distinguisher 192.168.1.101:64511set routing-instances l3vpn vrf-import l3vpn_importset routing-instances l3vpn vrf-export l3vpn_exportset routing-instances l3vpn vrf-table-labelset routing-instances l3vpn protocols ospf export ospf_exportset routing-instances l3vpn protocols ospf area 0.0.0.0 lt-1/2/0.601set routing-instances l3vpn protocols ospf area 0.0.0.0 lo0.1

    Device PE2

    set interfaces ge-0/3/0 unit 0 family inet address 10.20.0.102/24set interfaces ge-0/3/0 unit 0 family isoset interfaces ge-0/3/0 unit 0 family mplsset interfaces ge-0/3/1 unit 0 family inet address 10.21.0.102/24set interfaces ge-0/3/1 unit 0 family isoset interfaces ge-0/3/1 unit 0 family mplsset interfaces ge-0/3/3 unit 0 family inet address 10.32.0.102/24set interfaces ge-0/3/3 unit 0 family isoset interfaces ge-0/3/3 unit 0 family mplsset interfaces lt-1/2/0 unit 600 encapsulation vlan-cccset interfaces lt-1/2/0 unit 600 vlan-id 600set interfaces lt-1/2/0 unit 600 peer-unit 601set interfaces lt-1/2/0 unit 601 encapsulation vlanset interfaces lt-1/2/0 unit 601 vlan-id 600set interfaces lt-1/2/0 unit 601 peer-unit 600set interfaces lt-1/2/0 unit 601 family inet filter input icmp_inetset interfaces lt-1/2/0 unit 601 family inet filter output icmp_inetset interfaces lt-1/2/0 unit 601 family inet address 10.41.0.102/24 vrrp-group 0 virtual-address 10.41.0.1set interfaces lt-1/2/0 unit 601 family inet address 10.41.0.102/24 vrrp-group 0 accept-dataset interfaces lo0 unit 0 family inet address 192.168.0.102/32 primaryset interfaces lo0 unit 0 family iso address 49.0002.0192.0168.0102.00set interfaces lo0 unit 1 family inet address 192.168.1.102/32set routing-options router-id 192.168.0.102set routing-options autonomous-system 64511set protocols rsvp interface ge-0/3/0.0set protocols rsvp interface ge-0/3/1.0set protocols rsvp interface ge-0/3/3.0set protocols rsvp interface lo0.0set protocols mpls label-switched-path to_PE1 to 192.168.0.101set protocols mpls label-switched-path to_PE3 to 192.168.0.103set protocols mpls interface ge-0/3/0.0set protocols mpls interface ge-0/3/1.0set protocols mpls interface ge-0/3/3.0set protocols bgp local-address 192.168.0.102set protocols bgp group ibgp family inet-vpn anyset protocols bgp group ibgp peer-as 64511set protocols bgp group ibgp neighbor 192.168.0.101set protocols bgp group ibgp neighbor 192.168.0.103set protocols isis interface ge-0/3/0.0set protocols isis interface ge-0/3/1.0set protocols isis interface ge-0/3/3.0set protocols isis interface lo0.0set protocols ldp interface ge-0/3/0.0set protocols ldp interface ge-0/3/1.0set protocols ldp interface ge-0/3/3.0set protocols ldp interface lo0.0set protocols l2circuit neighbor 192.168.0.100 interface lt-1/2/0.600 virtual-circuit-id 2set protocols l2circuit neighbor 192.168.0.100 interface lt-1/2/0.600 pseudowire-status-tlv hot-standby-vc-onset policy-options policy-statement l3vpn_export term primary from condition primaryset policy-options policy-statement l3vpn_export term primary then local-preference add 300set policy-options policy-statement l3vpn_export term primary then community set l3vpnset policy-options policy-statement l3vpn_export term primary then acceptset policy-options policy-statement l3vpn_export term standby from condition standbyset policy-options policy-statement l3vpn_export term standby then local-preference add 30set policy-options policy-statement l3vpn_export term standby then community set l3vpnset policy-options policy-statement l3vpn_export term standby then acceptset policy-options policy-statement l3vpn_export term default then community set l3vpnset policy-options policy-statement l3vpn_export term default then acceptset policy-options policy-statement l3vpn_import term 1 from community l3vpnset policy-options policy-statement l3vpn_import term 1 then acceptset policy-options policy-statement l3vpn_import term default then rejectset policy-options policy-statement ospf_export term 0 from community l3vpnset policy-options policy-statement ospf_export term 0 then acceptset policy-options community l3vpn members target:64511:600set policy-options condition primary if-route-exists address-family ccc lt-1/2/0.600set policy-options condition primary if-route-exists address-family ccc table mpls.0set policy-options condition primary if-route-exists address-family ccc peer-unit 601set policy-options condition standby if-route-exists address-family ccc lt-1/2/0.600set policy-options condition standby if-route-exists address-family ccc table mpls.0set policy-options condition standby if-route-exists address-family ccc standbyset policy-options condition standby if-route-exists address-family ccc peer-unit 601set firewall family inet filter icmp_inet interface-specificset firewall family inet filter icmp_inet term 0 from source-address 10.41.0.102/32 exceptset firewall family inet filter icmp_inet term 0 from source-address 10.0.0.0/8set firewall family inet filter icmp_inet term 0 from protocol icmpset firewall family inet filter icmp_inet term 0 then count icmp_inetset firewall family inet filter icmp_inet term 0 then logset firewall family inet filter icmp_inet term 0 then acceptset firewall family inet filter icmp_inet term 1 then acceptset routing-instances l3vpn instance-type vrfset routing-instances l3vpn interface lt-1/2/0.601set routing-instances l3vpn interface lo0.1set routing-instances l3vpn route-distinguisher 192.168.1.102:64511set routing-instances l3vpn vrf-import l3vpn_importset routing-instances l3vpn vrf-export l3vpn_exportset routing-instances l3vpn vrf-table-labelset routing-instances l3vpn protocols ospf export ospf_exportset routing-instances l3vpn protocols ospf area 0.0.0.0 interface lt-1/2/0.601set routing-instances l3vpn protocols ospf area 0.0.0.0 interface lo0.1

    Device PE3

    set interfaces ge-2/0/3 unit 0 family inet address 10.32.0.103/24set interfaces ge-2/0/3 unit 0 family isoset interfaces ge-2/0/3 unit 0 family mplsset interfaces ge-2/0/5 unit 0 family inet address 10.53.0.103/24set interfaces ge-2/0/5 unit 0 family mplsset interfaces ge-2/1/8 unit 0 family inet address 10.31.0.103/24set interfaces ge-2/1/8 unit 0 family isoset interfaces ge-2/1/8 unit 0 family mplsset interfaces lo0 unit 0 family inet address 192.168.0.103/32 primaryset interfaces lo0 unit 0 family iso address 49.0002.0192.0168.0103.00set interfaces lo0 unit 1 family inet address 192.168.1.103/32set routing-options router-id 192.168.0.103set routing-options autonomous-system 64511set protocols rsvp interface ge-2/0/3.0set protocols rsvp interface ge-2/1/8.0set protocols rsvp interface lo0.0set protocols mpls label-switched-path to_PE1 to 192.168.0.101set protocols mpls label-switched-path to_PE2 to 192.168.0.102set protocols mpls interface ge-2/0/3.0set protocols mpls interface ge-2/1/8.0set protocols bgp local-address 192.168.0.103set protocols bgp group ibgp family inet-vpn anyset protocols bgp group ibgp peer-as 64511set protocols bgp group ibgp neighbor 192.168.0.101set protocols bgp group ibgp neighbor 192.168.0.102set protocols isis interface ge-2/0/3.0set protocols isis interface ge-2/1/8.0set protocols isis interface lo0.0set protocols ldp interface ge-2/0/3.0set protocols ldp interface ge-2/1/8.0set protocols ldp interface lo0.0set policy-options policy-statement l3vpn_ospf_export term 0 from protocol directset policy-options policy-statement l3vpn_ospf_export term 0 then acceptset policy-options policy-statement l3vpn_ospf_import term 0 from protocol bgpset policy-options policy-statement l3vpn_ospf_import term 0 from community l3vpnset policy-options policy-statement l3vpn_ospf_import term 0 then acceptset policy-options policy-statement ospf_export term 0 from community l3vpnset policy-options policy-statement ospf_export term 0 then acceptset policy-options community l3vpn members target:64511:600set routing-instances l3vpn instance-type vrfset routing-instances l3vpn interface ge-2/0/5.0set routing-instances l3vpn interface lo0.1set routing-instances l3vpn route-distinguisher 192.168.0.103:64511set routing-instances l3vpn vrf-target target:64511:600set routing-instances l3vpn vrf-table-labelset routing-instances l3vpn protocols ospf export ospf_exportset routing-instances l3vpn protocols ospf area 0.0.0.0 interface ge-2/0/5.0set routing-instances l3vpn protocols ospf area 0.0.0.0 interface lo0.1

    Device CE2

    set interfaces ge-2/0/8 unit 0 family inet address 10.53.0.105/24set interfaces lo0 unit 0 family inet address 192.168.0.105/32 primaryset protocols ospf area 0.0.0.0 interface ge-2/0/8.0set protocols ospf area 0.0.0.0 interface lo0.0set routing-options router-id 192.168.0.105

    Step-by-Step Procedure

    The following example requires you to navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode in the CLI User Guide.

    To configure Device A1:

    1. Configure the interfaces.

      Enable MPLS on the core-facing interfaces. The ISO address family is also enabled, because IS-IS is used as the interior gateway protocol (IGP) in the provider network.

      On the customer-facing interface, you do not need to enable MPLS. On this interface, enable CCC encapsulation and address family CCC.

      [edit interfaces]user@A1# set ge-1/3/0 unit 0 family inet address 10.20.0.100/24user@A1# set ge-1/3/0 unit 0 family isouser@A1# set ge-1/3/0 unit 0 family mpls
      user@A1# set ge-1/3/1 unit 0 family inet address 10.10.0.100/24user@A1# set ge-1/3/1 unit 0 family isouser@A1# set ge-1/3/1 unit 0 family mpls
      user@A1# set ge-1/3/2 vlan-tagginguser@A1# set ge-1/3/2 encapsulation vlan-cccuser@A1# set ge-1/3/2 unit 600 encapsulation vlan-cccuser@A1# set ge-1/3/2 unit 600 vlan-id 600user@A1# set ge-1/3/2 unit 600 family ccc
      user@A1# set lo0 unit 0 family inet address 192.168.0.100/32 primaryuser@A1# set lo0 unit 0 family iso address 49.0002.0192.0168.0100.00
    2. Configure the RSVP on the core-facing interfaces and on the loopback interface.

      RSVP is used in the Layer 3 domain.

      [edit protocols rsvp]user@A1# set interface ge-1/3/0.0user@A1# set interface ge-1/3/1.0user@A1# set interface lo0.0
    3. Configure LDP on the core-facing interfaces and on the loopback interface.

      LDP is used in Layer 2 domain.

      [edit protocols ldp]user@A1# set interface ge-1/3/0.0user@A1# set interface ge-1/3/1.0user@A1# set interface lo0.0
    4. Configure MPLS on the core-facing interfaces.
      [edit protocols mpls]user@A1# set interface ge-1/3/0.0user@A1# set interface ge-1/3/1.0
    5. Configure an interior gateway protocol, such as IS-IS or OSPF, on the core-facing interfaces and on the loopback interface.
      [edit protocols isis]user@A1# set interface ge-1/3/0.0user@A1# set interface ge-1/3/1.0user@A1# set interface lo0.0
    6. On the interface that faces the customer edge, configure the Layer 2 circuit.

      Configure the hot-standby statement on those routers with both active and standby virtual circuits (VCs) (Device A1 in our topology). You must include the pseudowire-status-tlv statement on access routers. Without the status TLV signaling, the standby flag cannot be advertised to remote provider edge (PE) devices.

      The revert-time statement and the maximum option should also be configured on access routers. Without the revert-time statement, traffic of all the VCs will not be transitioned to the primary path upon completion of the restoration. If a revert-time delay is defined but a maximum delay is not, then VCs are restored immediately upon the revert timer's expiration. The maximum option allows the VCs to be restored in a scattered fashion rather than all at once.

      [edit protocols l2circuit neighbor 192.168.0.101 interface ge-1/3/2.600]user@A1# set virtual-circuit-id 1user@A1# set pseudowire-status-tlvuser@A1# set revert-time 10 maximum 60user@A1# set backup-neighbor 192.168.0.102 virtual-circuit-id 2user@A1# set backup-neighbor 192.168.0.102 hot-standby
    7. To have the unilist next hop get pushed to other access routers, configure per-packet load balancing.
      [edit policy-options policy-statement pplb]user@A1# set then load-balance per-packet
    8. Apply the per-packet load balancing policy.
      [edit routing-options forwarding-table]user@A1# set export pplb
    9. Configure the autonomous system (AS) ID and the router ID.
      [edit routing-options]user@A1# set router-id 192.168.0.100user@A1# set autonomous-system 64510

      Similarly, configure any other access devices.

    Step-by-Step Procedure

    The following example requires you to navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode in the CLI User Guide.

    To configure Device PE1:

    1. Configure the interfaces.

      Enable MPLS on the core-facing interfaces.

      [edit interfaces]user@PE1# set ge-0/1/1 unit 0 family inet address 10.21.0.101/24user@PE1# set ge-0/1/1 unit 0 family isouser@PE1# set ge-0/1/1 unit 0 family mpls
      user@PE1# set ge-0/1/2 unit 0 family inet address 10.31.0.101/24user@PE1# set ge-0/1/2 unit 0 family isouser@PE1# set ge-0/1/2 unit 0 family mpls
      user@PE1# set ge-0/1/3 unit 0 family inet address 10.10.0.101/24user@PE1# set ge-0/1/3 unit 0 family isouser@PE1# set ge-0/1/3 unit 0 family mpls
      user@PE1# set lo0 unit 0 family inet address 192.168.0.101/32 primaryuser@PE1# set lo0 unit 0 family iso address 49.0002.0192.0168.0003.00user@PE1# set lo0 unit 1 family inet address 192.168.1.101/32
    2. On Device PE1 and Device PE2, which are aggregation routers, configure a pair of logical tunnel interfaces to represent LT(x) and LT(y).

      The solution uses logical tunnel (lt-) paired interfaces for stitching the Layer 2 and Layer 3 domains.

      A Layer 2 pseudowire terminates on one of the logical tunnel interfaces, LT(x), defined with the circuit cross-connect (CCC) address family. A Layer 3 VPN terminates the second logical tunnel interface, LT(y), defined with the IPv4 (inet) address family. LT(x) and LT(y) are paired.

      [edit interfaces]user@PE1# set lt-1/2/0 unit 600 encapsulation vlan-cccuser@PE1# set lt-1/2/0 unit 600 vlan-id 600user@PE1# set lt-1/2/0 unit 600 peer-unit 601
      user@PE1# set lt-1/2/0 unit 601 encapsulation vlanuser@PE1# set lt-1/2/0 unit 601 vlan-id 600user@PE1# set lt-1/2/0 unit 601 peer-unit 600user@PE1# set lt-1/2/0 unit 601 family inet filter input icmp_inetuser@PE1# set lt-1/2/0 unit 601 family inet filter output icmp_inet
    3. (Optional) Associate a unique VRRP address with both Device PE1 and Device PE2.

      In this case, both Device PE1 and Device PE2 assume the mastership state for the defined VIP IPv4 address, so no VRRP hello message are exchanged between the routers.

      [edit interfaces lt-1/2/0 unit 601 family inet address 10.41.0.101/24]user@PE1# set vrrp-group 0 virtual-address 10.41.0.1user@PE1# set vrrp-group 0 accept-data
    4. Configure IS-IS or another IGP.
      [edit protocols isis]user@PE1# set interface ge-0/1/1.0user@PE1# set interface ge-0/1/2.0user@PE1# set interface ge-0/1/3.0user@PE1# set interface lo0.0
    5. Configure the MPLS on the core-facing interfaces.
      [edit protocols mpls]user@PE1# set interface ge-0/1/1.0user@PE1# set interface ge-0/1/2.0user@PE1# set interface ge-0/1/3.0
    6. Configure label-switched paths to the other PE devices.

      BGP is a policy-driven protocol, so also configure and apply any needed routing policies. For example, you might want to export static routes into BGP.

      [edit protocols mpls]user@PE1# set label-switched-path to_PE3 to 192.168.0.103user@PE1# set label-switched-path to_PE2 to 192.168.0.102
    7. Configure LDP on the core-facing interfaces and on the loopback interface.
      [edit protocols ldp]user@PE1# set interface ge-0/1/1.0user@PE1# set interface ge-0/1/2.0user@PE1# set interface ge-0/1/3.0user@PE1# set interface lo0.0
    8. Configure RSVP on the core-facing interfaces and on the loopback interface.
      [edit protocols rsvp]user@PE1# set interface ge-0/1/1.0user@PE1# set interface ge-0/1/2.0user@PE1# set interface ge-0/1/3.0user@PE1# set interface lo0.0
    9. Configure internal BGP (IBGP).
      [edit protocols bgp]user@PE1# set local-address 192.168.0.101user@PE1# set group ibgp family inet-vpn anyuser@PE1# set group ibgp peer-as 64511user@PE1# set group ibgp neighbor 192.168.0.102user@PE1# set group ibgp neighbor 192.168.0.103
    10. Configure the Layer 2 circuit on the logical tunnel interface.

      Configure the hot-standby-vc-on statement if you want a hot standby pseudowire to be established upon arrival of PW_FWD_STDBY status TLV.

      [edit protocols l2circuit neighbor 192.168.0.100 interface lt-1/2/0.600]user@PE1# set virtual-circuit-id 1user@PE1# set pseudowire-status-tlv hot-standby-vc-on
    11. Define a pair of conditions to be applied to the egress policy defined within the Layer 3 VPN instance.

      In both condition primary and condition standby, the matching route corresponds to the interface lt-1/2/0.600 (y), as this is the format in which egress routes appear in routing table mpls.0 to represent any given pseudowire.

      The difference between these conditions is in the standby attribute. Upon arrival of the PW_FWD_STDBY status TLV to Device PE1 or Device PE2, Junos OS matches condition standby, and in consequence, only term standby within the l3vpn policy will be executed. On the other hand, if the PW_FWD_STDBY status TLV is not present, the policy only matches condition primary, which then executes term primary in the l3vpn policy. Also, for logical tunnel-based CCC services, you must specify the logical tunnel interface, LT(y), that is associated with the logical tunnel CCC interface, LT(x). (See Understanding Pseudowire Redundancy Mobile Backhaul Scenarios.)

      Finally, for CCC-based conditions, Junos OS only allows mpls.0 as the matching routing table. For the address attribute, Junos OS only allows strings with a logical interface unit format (for example, lt-0/0/0.0).

      [edit policy-options condition primary if-route-exists address-family ccc]user@PE1# set lt-1/2/0.600user@PE1# set table mpls.0user@PE1# set peer-unit 601
      [edit policy-options condition standby if-route-exists address-family ccc]user@PE1# set lt-1/2/0.600user@PE1# set table mpls.0user@PE1# set standbyuser@PE1# set peer-unit 601
    12. Configure the Layer 3 VPN export policy.

      If the Layer 2 virtual circuit (VC) is primary, the corresponding provider edge (PE) routing device advertises the attachment circuit’s (AC’s) subnet with the higher local preference. All aggregation PE devices initially advertise the AC’s subnet with the same local preference.

      This routing policy allows a higher local preference value to be advertised if the Layer 2 VC is active.

      [edit policy-options policy-statement l3vpn_export]user@PE1# set term primary from condition primaryuser@PE1# set term primary then local-preference add 300user@PE1# set term primary then community set l3vpnuser@PE1# set term primary then accept
      user@PE1# set term standby from condition standbyuser@PE1# set term standby then local-preference add 30user@PE1# set term standby then community set l3vpnuser@PE1# set term standby then accept
      user@PE1# set term default then community set l3vpnuser@PE1# set term default then accept
    13. Configure the Layer 3 VPN community members.
      [edit policy-options community l3vpn]user@PE1# set members target:64511:600
    14. Configure the Layer 3 VPN import policy, based on the Layer 3 VPN community.
      [edit policy-options policy-statement l3vpn_import]user@PE1# set term 1 from community l3vpnuser@PE1# set term 1 then acceptuser@PE1# set term default then reject
    15. Configure OSPF export policy, based on the Layer 3 VPN community.
      [edit policy-options policy-statement ospf_export term 0]user@PE1# set from community l3vpnuser@PE1# set then accept
    16. (Optional) Configure a firewall filter to check the path taken by traffic.
      [edit firewall family inet filter icmp_inet]user@PE1# set interface-specificuser@PE1# set term 0 from source-address 10.41.0.101/32 exceptuser@PE1# set term 0 from source-address 10.0.0.0/8user@PE1# set term 0 from protocol icmpuser@PE1# set term 0 then count icmp_inetuser@PE1# set term 0 then loguser@PE1# set term 0 then acceptuser@PE1# set term 1 then accept
    17. Configure the routing instance.

      This routing instance is in the Layer 2 domain where Device PE1 and Device PE2 are interconnected to the metro ring over multiaccess media (Ethernet). You must include the vrf-table-label' statement on Device PE1 and Device PE2 to enable advertisement of the direct subnet prefix corresponding to the logical tunnel (lt-) interface toward the Layer 3 domain.

      Device PE1 and Device PE2 use OSPF for Layer 3 VPN communication with Device CE1.

      [edit routing-instances l3vpn]user@PE1# set instance-type vrfuser@PE1# set interface lt-1/2/0.601user@PE1# set interface lo0.1user@PE1# set route-distinguisher 192.168.1.101:64511user@PE1# set vrf-import l3vpn_importuser@PE1# set vrf-export l3vpn_exportuser@PE1# set vrf-table-labeluser@PE1# set protocols ospf export ospf_exportuser@PE1# set protocols ospf area 0.0.0.0 interface lt-1/2/0.601user@PE1# set protocols ospf area 0.0.0.0 interface lo0.1
    18. Configure the autonomous system (AS) ID and router ID.
      [edit routing-options]user@PE1# set router-id 192.168.0.101user@PE1# set autonomous-system 64511

      Similarly, configure Device PE2.

    Results

    From configuration mode, confirm your configuration by entering the show interfaces, show firewall, show protocols, show policy-options, show routing-options, and show routing-instances commands. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.

    Device A1

    user@A1# show interfaces
    ge-1/3/0 {unit 0 {family inet {address 10.20.0.100/24;}family iso;family mpls;}}
    ge-1/3/1 {unit 0 {family inet {address 10.10.0.100/24;}family iso;family mpls;}}
    ge-1/3/2 {vlan-tagging;encapsulation vlan-ccc;unit 600 {encapsulation vlan-ccc;vlan-id 600;family ccc;}}
    lo0 {unit 0 {family inet {address 192.168.0.100/32 {primary;}}family iso {address 49.0002.0192.0168.0100.00;}}}
    user@A1# show protocols
    rsvp {interface ge-1/3/0.0;interface ge-1/3/1.0;interface lo0.0;}
    mpls {interface ge-1/3/0.0;interface ge-1/3/1.0;}
    isis {interface ge-1/3/0.0;interface ge-1/3/1.0;interface lo0.0;}
    ldp {interface ge-1/3/0.0;interface ge-1/3/1.0;interface lo0.0;}
    l2circuit {neighbor 192.168.0.101 {interface ge-1/3/2.600 {virtual-circuit-id 1;pseudowire-status-tlv;backup-neighbor 192.168.0.102 {virtual-circuit-id 2;hot-standby;}}}}
    user@A1# show policy-options
    policy-statement pplb {then {load-balance per-packet;}}
    user@A1# show routing-optionsautonomous-system 64510;router-id 192.168.0.100;
    forwarding-table {export pplb;}

    Device PE1

    user@PE1# show interfaces
    ge-0/1/1 {unit 0 {family inet {address 10.21.0.101/24;}family iso;family mpls;}}
    ge-0/1/2 {unit 0 {family inet {address 10.31.0.101/24;}family iso;family mpls;}}
    ge-0/1/3 {unit 0 {family inet {address 10.10.0.101/24;}family iso;family mpls;}}
    lt-1/2/0 {unit 600 {encapsulation vlan-ccc;vlan-id 600;peer-unit 601;}unit 601 {encapsulation vlan;vlan-id 600;peer-unit 600;family inet {filter {input icmp_inet;output icmp_inet;}address 10.41.0.101/24 {vrrp-group 0 {virtual-address 10.41.0.1;accept-data;}}}}}
    lo0 {unit 0 {family inet {address 192.168.0.101/32 {primary;}}family iso {address 49.0002.0192.0168.0003.00;}}unit 1 {family inet {address 192.168.1.101/32;}}}
    user@PE1# show firewall
    family inet {filter icmp_inet {interface-specific;term 0 {from {source-address {10.41.0.101/32 except;10.0.0.0/8;}protocol icmp;}then {count icmp_inet;log;accept;}}term 1 {then accept;}}}
    user@PE1# show protocols
    rsvp {interface ge-0/1/1.0;interface ge-0/1/2.0;interface ge-0/1/3.0;interface lo0.0;}
    mpls {label-switched-path to_PE3 {to 192.168.0.103;}label-switched-path to_PE2 {to 192.168.0.102;}interface ge-0/1/1.0;interface ge-0/1/2.0;interface ge-0/1/3.0;}
    bgp {local-address 192.168.0.101;group ibgp {family inet-vpn {any;}peer-as 64511;neighbor 192.168.0.102;neighbor 192.168.0.103;}}
    isis {interface ge-0/1/1.0;interface ge-0/1/2.0;interface ge-0/1/3.0;interface lo0.0;}
    ldp {interface ge-0/1/1.0;interface ge-0/1/2.0;interface ge-0/1/3.0;interface lo0.0;}
    l2circuit {neighbor 192.168.0.100 {interface lt-1/2/0.600 {virtual-circuit-id 1;pseudowire-status-tlv hot-standby-vc-on;}}}
    user@PE1# show policy-options
    policy-statement l3vpn_export {term primary {from condition primary;then {local-preference add 300;community set l3vpn;accept;}}term standby {from condition standby;then {local-preference add 30;community set l3vpn;accept;}}term default {then {community set l3vpn;accept;}}}
    policy-statement l3vpn_import {term 1 {from community l3vpn;then accept;}term default {then reject;}}
    policy-statement ospf_export {term 0 {from community l3vpn;then accept;}}
    community l3vpn members target:64511:600;
    condition primary {if-route-exists {address-family {ccc {lt-1/2/0.600;table mpls.0;peer-unit 601;}}}}
    condition standby {if-route-exists {address-family {ccc {lt-1/2/0.600;table mpls.0;standby;peer-unit 601;}}}}
    user@PE1# show routing-optionsrouter-id 192.168.0.101;autonomous-system 64511;
    user@PE1# show routing-instances
    l3vpn {instance-type vrf;interface lt-1/2/0.601;interface lo0.1;route-distinguisher 192.168.1.101:64511;vrf-import l3vpn_import;vrf-export l3vpn_export;vrf-table-label;protocols {ospf {export ospf_export;area 0.0.0.0 {interface lt-1/2/0.601;interface lo0.1;}}}}

    If you are done configuring the devices, enter commit from configuration mode.

    Verification

    Confirm that the configuration is working properly.

    Checking Layer 2 Circuits

    Purpose

    Upon Layer 2 virtual circuit (VC) establishment, the output of the show l2circuit connections command shows the active and the hot-standby VC. In addition, control-plane details are shown for the hot-standby VC.

    Action

    From operational mode, enter the show l2circuit connections extensive command.

    user@A1> show l2circuit connections extensive
    Layer-2 Circuit Connections:
    
    Legend for connection status (St)   
    EI -- encapsulation invalid      NP -- interface h/w not present   
    MM -- mtu mismatch               Dn -- down                       
    EM -- encapsulation mismatch     VC-Dn -- Virtual circuit Down    
    CM -- control-word mismatch      Up -- operational                
    VM -- vlan id mismatch           CF -- Call admission control failure
    OL -- no outgoing label          IB -- TDM incompatible bitrate 
    NC -- intf encaps not CCC/TCC    TM -- TDM misconfiguration 
    BK -- Backup Connection          ST -- Standby Connection
    CB -- rcvd cell-bundle size bad  SP -- Static Pseudowire
    LD -- local site signaled down   RS -- remote site standby
    RD -- remote site signaled down  HS -- Hot-standby Connection
    XX -- unknown
    
    Legend for interface status  
    Up -- operational            
    Dn -- down                   
    Neighbor: 192.168.0.101 
        Interface                 Type  St     Time last up          # Up trans
        ge-1/3/2.600(vc 1)        rmt   Up     Jan 24 11:00:26 2013           1
          Remote PE: 192.168.0.101, Negotiated control-word: Yes (Null)
          Incoming label: 299776, Outgoing label: 299776
          Negotiated PW status TLV: Yes
          local PW status code: 0x00000000, Neighbor PW status code: 0x00000000
          Local interface: ge-1/3/2.600, Status: Up, Encapsulation: VLAN
        Connection History:
            Jan 24 11:00:26 2013  status update timer  
            Jan 24 11:00:26 2013  PE route changed     
            Jan 24 11:00:26 2013  Out lbl Update                    299776
            Jan 24 11:00:26 2013  In lbl Update                     299776
            Jan 24 11:00:26 2013  loc intf up                 ge-1/3/2.600
    Neighbor: 192.168.0.102 
        Interface                 Type  St     Time last up          # Up trans
        ge-1/3/2.600(vc 2)        rmt   HS     -----                       ----
          Remote PE: 192.168.0.102, Negotiated control-word: Yes (Null)
          Incoming label: 299792, Outgoing label: 299776
          Negotiated PW status TLV: Yes
          local PW status code: 0x00000020, Neighbor PW status code: 0x00000000
          Local interface: ge-1/3/2.600, Status: Up, Encapsulation: VLAN

    user@PE1> show l2circuit connections extensive
    Layer-2 Circuit Connections:
    
    Legend for connection status (St)   
    EI -- encapsulation invalid      NP -- interface h/w not present   
    MM -- mtu mismatch               Dn -- down                       
    EM -- encapsulation mismatch     VC-Dn -- Virtual circuit Down    
    CM -- control-word mismatch      Up -- operational                
    VM -- vlan id mismatch           CF -- Call admission control failure
    OL -- no outgoing label          IB -- TDM incompatible bitrate 
    NC -- intf encaps not CCC/TCC    TM -- TDM misconfiguration 
    BK -- Backup Connection          ST -- Standby Connection
    CB -- rcvd cell-bundle size bad  SP -- Static Pseudowire
    LD -- local site signaled down   RS -- remote site standby
    RD -- remote site signaled down  HS -- Hot-standby Connection
    XX -- unknown
    
    Legend for interface status  
    Up -- operational            
    Dn -- down                   
    Neighbor: 192.168.0.100 
        Interface                 Type  St     Time last up          # Up trans
        lt-1/2/0.600(vc 1)        rmt   Up     Jan 24 11:06:36 2013           1
          Remote PE: 192.168.0.100, Negotiated control-word: Yes (Null)
          Incoming label: 299776, Outgoing label: 299776
          Negotiated PW status TLV: Yes
          local PW status code: 0x00000000, Neighbor PW status code: 0x00000000
          Local interface: lt-1/2/0.600, Status: Up, Encapsulation: VLAN
        Connection History:
            Jan 24 11:06:36 2013  status update timer  
            Jan 24 11:06:36 2013  PE route changed     
            Jan 24 11:06:36 2013  Out lbl Update                    299776
            Jan 24 11:06:36 2013  In lbl Update                     299776
            Jan 24 11:06:36 2013  loc intf up                 lt-1/2/0.600

    user@PE2> show l2circuit connections extensive
    Layer-2 Circuit Connections:
    
    Legend for connection status (St)   
    EI -- encapsulation invalid      NP -- interface h/w not present   
    MM -- mtu mismatch               Dn -- down                       
    EM -- encapsulation mismatch     VC-Dn -- Virtual circuit Down    
    CM -- control-word mismatch      Up -- operational                
    VM -- vlan id mismatch           CF -- Call admission control failure
    OL -- no outgoing label          IB -- TDM incompatible bitrate 
    NC -- intf encaps not CCC/TCC    TM -- TDM misconfiguration 
    BK -- Backup Connection          ST -- Standby Connection
    CB -- rcvd cell-bundle size bad  SP -- Static Pseudowire
    LD -- local site signaled down   RS -- remote site standby
    RD -- remote site signaled down  HS -- Hot-standby Connection
    XX -- unknown
    
    Legend for interface status  
    Up -- operational            
    Dn -- down                   
    Neighbor: 192.168.0.100 
        Interface                 Type  St     Time last up          # Up trans
        lt-1/2/0.600(vc 2)        rmt   Up     Jan 24 10:55:31 2013           1
          Remote PE: 192.168.0.100, Negotiated control-word: Yes (Null)
          Incoming label: 299776, Outgoing label: 299792
          Negotiated PW status TLV: Yes
          local PW status code: 0x00000000, Neighbor PW status code: 0x00000020
          Local interface: lt-1/2/0.600, Status: Up, Encapsulation: VLAN
        Connection History:
            Jan 24 10:55:31 2013  status update timer  
            Jan 24 10:55:31 2013  PE route changed     
            Jan 24 10:55:31 2013  Out lbl Update                    299792
            Jan 24 10:55:31 2013  In lbl Update                     299776
            Jan 24 10:55:31 2013  loc intf up                 lt-1/2/0.600
    
    

    Meaning

    From the perspective of Device PE1 and Device PE2, a single Layer 2 circuit is established toward access routers, so there is no standby device information in the CLI output of the show l2circuit connections command. Note that no timing and flapping information is provided for the VC acting as the hot-standby. Junos OS only allows these counters to be tracked for the active VC.

    Checking the Policy Conditions

    Purpose

    On the PE devices, verify the state of the different conditions defined as part of the Layer3 VPN's egress policy, where 10.41.0.0/24 corresponds to the logical tunnel (y) subnet.

    Action

    From operational mode, enter the show policy conditions detail command.

    user@PE1> show policy conditions detail
    Configured conditions:
    Condition primary (static), event: Existence of a route in a specific routing table
    Dependent routes:
     10.41.0.0/24, generation 8
     192.168.0.104/32, generation 8
    
    Condition standby (static), event: Existence of a route in a specific routing table
    Dependent routes:
    None
    
    Condition tables:
    Table mpls.0, generation 0, dependencies 0, If-route-exists conditions: primary (static) standby (static)
    Table l3vpn.inet.0, generation 12, dependencies 2
    

    user@PE2> show policy conditions detail
    Configured conditions:
    Condition primary (static), event: Existence of a route in a specific routing table
    Dependent routes:
     10.41.0.0/24, generation 18
    
    Condition standby (static), event: Existence of a route in a specific routing table
    Dependent routes:
     10.41.0.0/24, generation 18
    
    Condition tables:
    Table mpls.0, generation 0, dependencies 0, If-route-exists conditions: primary (static) standby (static)
    Table l3vpn.inet.0, generation 367, dependencies 2
    

    Published: 2013-08-28