Check Bridge Forwarding

The CFM service can be activated on the ports of a bridge, allowing the bridge to make forwarding decisions depending on the content of the datagrams received on the CFM port. The following scenarios show how, with different configurations, the bridge forwards CFM datagrams or not.

../../../_images/topologybridge.svg

Non CFM Bridge Forward CCM

Description

In this scenario, the CFM service is not configured on any port of the br0 bridge of DUT0. The bridge should forward any CFM datagram received on its ports.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces bridge br0 address 10.0.0.1/24
set interfaces ethernet eth0 bridge-group bridge br0
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 10.0.0.2/24
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Run command traffic dump monitor interface br0 filter "ether[12:2] == 0x8902" at DUT0.

Note

After configuring the CFM service on the eth0 interface of DUT1, it will begin to send CFM datagrams that will be received on the eth0 interface of DUT0. Since this interface is a port of the br0 bridge and the CFM service is not configured on it, these CFM datagrams received are forwarded by the bridge (regardless of their content).

Step 4: Modify the following configuration lines in DUT1:

set service cfm domain TEST_DOMAIN level 5
set service cfm domain TEST_DOMAIN service TEST_SERVICE continuity-check interval 1s
set service cfm domain TEST_DOMAIN service TEST_SERVICE mep 20 interface eth0
set service cfm domain TEST_DOMAIN service TEST_SERVICE mep 20 rmep 10
set service cfm domain TEST_DOMAIN service TEST_SERVICE sender-id chassis

CFM Bridge Forward Above Level CCM

Description

In this scenario, the CFM service is configured on port eth0 of the br0 bridge of DUT0. The bridge should forward the CFM datagrams received on said port, provided they come with a level field higher than the one configured in eth0.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces bridge br0 address 10.0.0.1/24
set interfaces ethernet eth0 bridge-group bridge br0
set service cfm domain TEST_DOMAIN level 6
set service cfm domain TEST_DOMAIN service TEST_SERVICE continuity-check interval 1s
set service cfm domain TEST_DOMAIN service TEST_SERVICE mep 10 interface eth0
set service cfm domain TEST_DOMAIN service TEST_SERVICE mep 10 rmep 20
set service cfm domain TEST_DOMAIN service TEST_SERVICE sender-id chassis
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 10.0.0.2/24
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Run command traffic dump monitor interface br0 filter "ether[12:2] == 0x8902" at DUT0.

Note

After configuring the CFM service on the eth0 interface of DUT1, it will begin to send CFM datagrams that will be received on the eth0 interface of DUT0. Since this interface is a port of the br0 bridge and the CFM service is configured on it, these CFM datagrams received are forwarded by the bridge (provided the level parameter configured in DUT1 is higher than the one configured in DUT0).

Step 4: Modify the following configuration lines in DUT1:

set service cfm domain TEST_DOMAIN level 7
set service cfm domain TEST_DOMAIN service TEST_SERVICE continuity-check interval 1s
set service cfm domain TEST_DOMAIN service TEST_SERVICE mep 20 interface eth0
set service cfm domain TEST_DOMAIN service TEST_SERVICE mep 20 rmep 10
set service cfm domain TEST_DOMAIN service TEST_SERVICE sender-id chassis

CFM Bridge Not Forward Equal Level CCM

Description

In this scenario, the CFM service is configured on port eth0 of the br0 bridge of DUT0. The bridge should not forward CFM datagrams received on said port when their level field is equal to the one configured in eth0.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces bridge br0 address 10.0.0.1/24
set interfaces ethernet eth0 bridge-group bridge br0
set service cfm domain TEST_DOMAIN level 6
set service cfm domain TEST_DOMAIN service TEST_SERVICE continuity-check interval 1s
set service cfm domain TEST_DOMAIN service TEST_SERVICE mep 10 interface eth0
set service cfm domain TEST_DOMAIN service TEST_SERVICE mep 10 rmep 20
set service cfm domain TEST_DOMAIN service TEST_SERVICE sender-id chassis
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 10.0.0.2/24
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Run command traffic dump monitor interface br0 filter "ether[12:2] == 0x8902" at DUT0.

Note

After configuring the CFM service on the eth0 interface of DUT1, it will begin to send CFM datagrams that will be received on the eth0 interface of DUT0. Since this interface is a port of the br0 bridge and the CFM service is configured on it, the CFM datagrams received could be forwarded by the bridge. However, they are not and are processed by DUT0, since their level field is the same as the one configured in DUT0.

Step 4: Modify the following configuration lines in DUT1:

set service cfm domain TEST_DOMAIN level 6
set service cfm domain TEST_DOMAIN service TEST_SERVICE continuity-check interval 1s
set service cfm domain TEST_DOMAIN service TEST_SERVICE mep 20 interface eth0
set service cfm domain TEST_DOMAIN service TEST_SERVICE mep 20 rmep 10
set service cfm domain TEST_DOMAIN service TEST_SERVICE sender-id chassis

CFM Bridge Not Forward Below Level CCM

Description

In this scenario, the CFM service is configured on the eth0 port of the br0 bridge of DUT0. The bridge should not forward CFM datagrams received on said port if they come with a level field lower than the one configured in eth0.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces bridge br0 address 10.0.0.1/24
set interfaces ethernet eth0 bridge-group bridge br0
set service cfm domain TEST_DOMAIN level 6
set service cfm domain TEST_DOMAIN service TEST_SERVICE continuity-check interval 1s
set service cfm domain TEST_DOMAIN service TEST_SERVICE mep 10 interface eth0
set service cfm domain TEST_DOMAIN service TEST_SERVICE mep 10 rmep 20
set service cfm domain TEST_DOMAIN service TEST_SERVICE sender-id chassis
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 10.0.0.2/24
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Run command traffic dump monitor interface br0 filter "ether[12:2] == 0x8902" at DUT0.

Note

After configuring the CFM service on the eth0 interface of DUT1, it will begin to send CFM datagrams received on the eth0 interface of DUT0. Since this interface is a port of the br0 bridge and the CFM service is configured on it, these CFM datagrams received could be forwarded by the bridge. However, they are not forwarded and are discarded by DUT0 (since their level field is lower than the one configured in DUT0).

Step 4: Modify the following configuration lines in DUT1:

set service cfm domain TEST_DOMAIN level 5
set service cfm domain TEST_DOMAIN service TEST_SERVICE continuity-check interval 1s
set service cfm domain TEST_DOMAIN service TEST_SERVICE mep 20 interface eth0
set service cfm domain TEST_DOMAIN service TEST_SERVICE mep 20 rmep 10
set service cfm domain TEST_DOMAIN service TEST_SERVICE sender-id chassis