带有OpenDayLight的POP 2 MPLS标签

时间:2018-10-04 08:03:17

标签: rest sdn opendaylight

我在MPLS网络上使用由ODL控制的Zodiac FX开放流交换机,并且 我正在尝试通过以下流程在单个数据包(MPLS隧道)上推送2个堆叠的MPLS标签:

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<flow 
xmlns="urn:opendaylight:flow:inventory">
<flow-name>POP Z2</flow-name>
<instructions>
    <instruction>
        <order>0</order>
        <apply-actions>
            <action>
                <pop-mpls-action>
                    <ethernet-type> 8847</ethernet-type>
                </pop-mpls-action>
                <order>0</order>
            </action>
            <action>
                <pop-mpls-action>
                    <ethernet-type>2048</ethernet-type>
                </pop-mpls-action>
                <order>1</order>
            </action>
            <action>
                <output-action>
                    <output-node-connector>2</output-node-connector>
                    <max-length>60</max-length>
                </output-action>
                <order>2</order>
            </action>

        </apply-actions>
    </instruction>
</instructions>
<id>126</id>
<strict>false</strict>
<match>

    <in-port>1</in-port>

</match>
<idle-timeout>0</idle-timeout>
<cookie>401</cookie>
<cookie_mask>255</cookie_mask>
<installHw>false</installHw>
<hard-timeout>0</hard-timeout>
<priority>200</priority>
<table_id>0</table_id>

但是ODL不会将流移到操作数据存储中。 我尝试了相同的流程,但是只执行了一次推送操作,并且删除了第一个MPLS标签。

ODL是否仅限于推送一个MPLS标签?我该怎么办?

1 个答案:

答案 0 :(得分:0)

操作数据存储区填充有交换机中实际编程的内容,它可以配置--->开关--->可操作。在使用各种ODL组件执行各种操作(OF插件,Statsmgr,fwdrulesmgr ..)的情况下,这些问题都可能会失败。您可以查看karaf日志(设置为DEBUG)以查看控制器内部预期情况,tcpdump ofchan可以查看控制器正在尝试推动的内容,并可以查看开关流/日志以了解编程的内容。