Date created: 02/10/19 17:14:07. Last modified: 02/10/19 17:20:51

Ethernet CFM over Pseudowire

Topology:

In this example topology as101.lab is an access layer PE with two pseudowires to sr15.lab, the core layer NNI PE, sr12.lab is an aggregation PE in the middle performing pseudowire stitching.

Two maintenance domains are used for Ethernet CFM in this topology. Domain 1 is used to record reachability and performance to the directly connected neighbour meaning that a domain 1 exists between as101.lab and sr12.lab and another domain 1 exists between sr12.lab and sr15.lab. A second domain is used to record end-to-end reachability and performance, domain 2 which only exists on and between as101.lab and sr15.lab:

     MEP 3                           MEP 2                           MEP 1
+-------------+                 +------------+                  +--------------+
|             |1/1/25           |            |1/1/3             |              |
|  as101.lab  +-----------------+  sr12.lab  +------------------+   sr15.lab   |
|             |            1/1/2|            |             1/1/7|              |
+-------------+                 +------------+                  +--------------+

              +-----------------+            +------------------+
                    Domain 1                       Domain 1


              +-------------------------------------------------+
                                   Domain 2

 

Partial Configs:

Below are the partial configs for the Ethernet CFM services, assuming a working IGP and working pseudowires already exist.

as101.lab:

eth-cfm
    domain 1 format none level 1
        association 1 format icc-based name "251:1 sr12"
            bridge-identifier 10101
                exit
            remote-mepid 2 # sr12.lab
            exit
        association 2 format icc-based name "251:2 sr12"
            bridge-identifier 10101
                exit
            remote-mepid 2 # sr12.lab
            exit
        exit
    domain 2 format none level 2
        association 1 format icc-based name "251:1 sr15"
            bridge-identifier 10101
                exit
            remote-mepid 1 # sr15.lab
            exit
        association 2 format icc-based name "251:2 sr15"
            bridge-identifier 10101
                exit
            remote-mepid 1 # sr15.lab
            exit
        exit
    exit

service
    epipe 10101 customer 101 svc-sap-type any create
        spoke-sdp 251:1 endpoint "Remote" create
            eth-cfm
                mep 3 domain 1 association 1 direction down
                    description "as101.lab:sr12.lab"
                    eth-test-enable
                        bit-error-threshold 0
                        exit
                    ccm-enable
                    one-way-delay-threshold 0
                    no shutdown
                    exit
                mep 3 domain 2 association 1 direction down
                    description "as101.lab:sr15.lab"
                    eth-test-enable
                        bit-error-threshold 0
                        exit
                    ccm-enable
                    one-way-delay-threshold 0
                    no shutdown
                    exit
                mip
                exit
            exit

        spoke-sdp 251:2 endpoint "Remote" create
            eth-cfm
                mep 3 domain 1 association 2 direction down
                    description "as101.lab:sr12.lab"
                    eth-test-enable
                        bit-error-threshold 0
                        exit
                    ccm-enable
                    one-way-delay-threshold 0
                    no shutdown
                    exit
                mep 3 domain 2 association 2 direction down
                    description "as101.lab:sr15.lab"
                    eth-test-enable
                        bit-error-threshold 0
                        exit
                    ccm-enable
                    one-way-delay-threshold 0
                    no shutdown
                    exit
                mip
                exit
            exit
        exit

saa
    test "251:1-AS101.lab-SR12.lab"
        type # MAC from SR12.lab "system" / loopback interface
            eth-cfm-two-way-delay 00:1a:f0:ae:ca:ad mep 3 domain 1 association 1 count 10
            exit
        continuous
        no shutdown 
        exit
    test "251:1-AS101.lab-SR15.lab"
        type # MAC from SR15.lab "system" / loopback interface
            eth-cfm-two-way-delay 0c:a4:02:1c:78:01 mep 3 domain 2 association 1 count 10
            exit
        continuous
        no shutdown 
        exit
    test "251:2-AS101.lab-SR12.lab"
        type # MAC from SR12.lab "system" / loopback interface
            eth-cfm-two-way-delay 00:1a:f0:ae:ca:ad mep 3 domain 1 association 2 count 10
            exit
        continuous
        no shutdown 
        exit
    test "251:2-AS101.lab-SR15.lab"
        type # MAC from SR15.lab "system" / loopback interface
            eth-cfm-two-way-delay 0c:a4:02:1c:78:01 mep 3 domain 2 association 2 count 10
            exit
        continuous
        no shutdown 
        exit
    exit

 

sr12.lab:

eth-cfm
    domain 1 format none level 1
        association 111 format icc-based name "224:1 as101"
            bridge-identifier 10101
                exit
            remote-mepid 3
            exit
        association 112 format icc-based name "250:1 sr15"
            bridge-identifier 10101
                exit
            remote-mepid 1
            exit
        association 113 format icc-based name "224:2 as101"
            bridge-identifier 10102
                exit
            remote-mepid 3
            exit
        association 114 format icc-based name "250:2 sr15"
            bridge-identifier 10102
                exit                  
            remote-mepid 1
            exit
        exit

service
    epipe 10101 customer 101 vc-switching create
        spoke-sdp 224:1 create
            eth-cfm
                mep 2 domain 1 association 111 direction down
                    description "sr12.lab:as101.lab"
                    eth-test-enable
                        bit-error-threshold 0
                        exit
                    ccm-enable    
                    one-way-delay-threshold 0
                    no shutdown
                    exit
                mip
                exit
            exit
        spoke-sdp 250:1 create
            eth-cfm
                mep 2 domain 1 association 112 direction down
                    description "sr12.lab:sr15.lab"
                    eth-test-enable
                        bit-error-threshold 0
                        exit
                    ccm-enable
                    one-way-delay-threshold 0
                    no shutdown
                    exit
                mip
                exit
            exit
        exit

    epipe 10102 customer 101 vc-switching create
        spoke-sdp 224:2 create
            eth-cfm
                mep 2 domain 1 association 113 direction down
                    description "sr12.lab:as101.lab"
                    eth-test-enable
                        bit-error-threshold 0
                        exit
                    ccm-enable
                    one-way-delay-threshold 0
                    no shutdown
                    exit
                mip
                exit
            exit
        spoke-sdp 250:2 create
            eth-cfm
                mep 2 domain 1 association 114 direction down
                    description "sr12.lab:sr15.lab"
                    eth-test-enable
                        bit-error-threshold 0
                        exit
                    ccm-enable
                    one-way-delay-threshold 0
                    no shutdown
                    exit
                mip
                exit
            exit
        exit
    exit

saa
    test "10101-AS101.lab-SR12.lab"
        type # MAC from AS101.lab "system" / loopback interface
            eth-cfm-two-way-delay 8c:90:d3:79:ac:09 mep 2 domain 1 association 111 count 10
            exit
        continuous
        no shutdown 
        exit
    test "10101-SR12.lab-SR15.lab"
        type # MAC from SR15.lab "system" / loopback interface
            eth-cfm-two-way-delay 0c:a4:02:1c:78:01 mep 2 domain 1 association 112 count 10
            exit
        continuous
        no shutdown 
        exit
    test "10102-AS101.lab-SR12.lab"
        type # MAC from AS101.lab "system" / loopback interface
            eth-cfm-two-way-delay 8c:90:d3:79:ac:09 mep 2 domain 1 association 113 count 10
            exit
        continuous
        no shutdown 
        exit
    test "10102-SR12.lab-SR15.lab"
        type # MAC from SR15.lab "system" / loopback interface
            eth-cfm-two-way-delay 0c:a4:02:1c:78:01 mep 2 domain 1 association 114 count 10
            exit
        continuous
        no shutdown 
        exit
    exit

 

sr15.lab:

eth-cfm
    domain 1 format none level 1
        association 111 format icc-based name "251:1 sr12"
            bridge-identifier 10101
                exit
            remote-mepid 2  # sr12.lab
            exit
        association 112 format icc-based name "251:2 sr12"
            bridge-identifier 10101
                exit
            remote-mepid 2  # sr12.lab
            exit
        exit
    domain 2 format none level 2
        association 113 format icc-based name "251:1 as101"
            bridge-identifier 10101
                exit
            remote-mepid 3  # as101.lab
            exit
        association 114 format icc-based name "251:2 as101"
            bridge-identifier 10101
                exit
            remote-mepid 3  # as101.lab
            exit
        exit
    exit

service
    epipe 10101 customer 120 create
        spoke-sdp 251:1 endpoint "Remote" create
            eth-cfm
                mep 1 domain 1 association 111 direction down
                    description "sr15.lab:sr12.lab"
                    eth-test-enable
                        bit-error-threshold 0
                        exit
                    ccm-enable
                    one-way-delay-threshold 0
                    no shutdown
                    exit
                mep 1 domain 2 association 113 direction down
                    description "sr15.lab:as101.lab"
                    eth-test-enable
                        bit-error-threshold 0
                        exit
                    ccm-enable
                    one-way-delay-threshold 0
                    no shutdown
                    exit
                mip
                exit
            precedence primary
            exit
        spoke-sdp 251:2 endpoint "Remote" create
            eth-cfm
                mep 1 domain 1 association 112 direction down
                    description "sr15.lab:sr12.lab"
                    eth-test-enable
                        bit-error-threshold 0
                        exit
                    ccm-enable
                    one-way-delay-threshold 0
                    no shutdown
                    exit
                mep 1 domain 2 association 114 direction down
                    description "sr15.lab:as101.lab"
                    eth-test-enable
                        bit-error-threshold 0
                        exit
                    ccm-enable
                    one-way-delay-threshold 0
                    no shutdown
                    exit
                mip
                exit
            precedence 1
            exit
        exit
    exit

saa
    test "251:1-SR15.lab-SR12.lab"
        type # MAC from SR12.lab "system" / loopback interface
            eth-cfm-two-way-delay 00:1a:f0:ae:ca:ad mep 1 domain 1 association 111 count 10
            exit
        continuous
        no shutdown
        exit
    test "251:1-SR15.lab-AS101.lab"
        type # MAC from AS101.lab "system" / loopback interface
            eth-cfm-two-way-delay 8c:90:d3:79:ac:09 mep 1 domain 2 association 113 count 10
            exit
        continuous
        no shutdown
        exit
    test "251:2-SR15.lab-SR12.lab"
        type # MAC from SR12.lab "system" / loopback interface
            eth-cfm-two-way-delay 00:1a:f0:ae:ca:ad mep 1 domain 1 association 112 count 10
            exit
        continuous
        no shutdown
        exit
    test "251:2-SR15.lab-AS101.lab"
        type # MAC from AS101.lab "system" / loopback interface
            eth-cfm-two-way-delay 8c:90:d3:79:ac:09 mep 1 domain 2 association 114 count 10
            exit
        continuous
        no shutdown
        exit
    exit

 

Full Configs:

as101.lab

sr12.lab

sr15.lab