< Home

Configuring Proactive One-way Frame Delay Measurement

This section provides a sample of configuring proactive one-way frame delay measurement using the edit-config method.

Table 1 Configuring proactive one-way frame delay measurement

Operation

XPATH

edit-config

  • /huawei-cfm/cfm/md/md-name

  • /huawei-cfm/cfm/md/ma/ma-name

  • /huawei-cfm/cfm/md/ma/delay-measure/one-way/receive-mep/mep_id

  • /huawei-cfm/cfm/md/ma/delay-measure/one-way/receive-mep/continual

  • /huawei-cfm/cfm/md/ma/delay-measure/one-way/threshold

  • /huawei-cfm/cfm/md/ma/delay-measure/one-way/send-mep/mep_id

  • /huawei-cfm/cfm/md/ma/delay-measure/one-way/send-mep/continual

  • /huawei-cfm/cfm/md/ma/delay-measure/one-way/send-mep/interval

  • /huawei-cfm/cfm/md/ma/delay-measure/one-way/send-mep/remote-mep-id

Data Requirements

Item

Data

Description

MD name

md_test

Set the MD name to md_test.

MA name

ma_test

Set the MA name to ma_test.

Alarm threshold for one-way frame delay measurement

100

Set the alarm threshold for one-way frame delay measurement to 100.

MEP ID in sent packets

1

Set the MEP ID in sent packets to 1.

Continuous packet sending

true

Specify continuous packet sending.

RMEP ID

10

Set the RMEP ID to 10.

DM frame sending interval

1000

Set the DM frame sending interval to 1000 ms.

Continuous packet receiving

true

Specify continuous packet receiving.

MEP ID in received packets

1

Set the MEP ID in received packets to 1.

Request Example

<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="9" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <edit-config>
    <target>
      <running/>
    </target>
    <config>
      <huawei-cfm:cfm xmlns:huawei-cfm="urn:huawei:params:xml:ns:yang:huawei-cfm">
        <huawei-cfm:md>
          <huawei-cfm:md-name>md_test</huawei-cfm:md-name>
          <huawei-cfm:ma>
            <huawei-cfm:ma-name>ma_test</huawei-cfm:ma-name>
            <huawei-cfm:delay-measure>
              <huawei-cfm:one-way>
                <huawei-cfm:threshold>100</huawei-cfm:threshold>
                <huawei-cfm:send-mep>
                  <huawei-cfm:mep-id>1</huawei-cfm:mep-id>
                  <huawei-cfm:continual>true</huawei-cfm:continual>
                  <huawei-cfm:remote-mep-id>10</huawei-cfm:remote-mep-id>
                  <huawei-cfm:interval>1000</huawei-cfm:interval>
                </huawei-cfm:send-mep>
                <huawei-cfm:receive-mep>
                  <huawei-cfm:mep-id>1</huawei-cfm:mep-id>
                  <huawei-cfm:continual>true</huawei-cfm:continual>
                </huawei-cfm:receive-mep>
              </huawei-cfm:one-way>
            </huawei-cfm:delay-measure>
          </huawei-cfm:ma>
        </huawei-cfm:md>
      </huawei-cfm:cfm>
    </config>
  </edit-config>
</rpc>

Response example

Sample of successful response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="9">
  <ok/>
</rpc-reply>

Sample of failed response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="9">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-message>parse rpc config error.</error-message>
  </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >