Uploaded image for project: 'OpenFlowPlugin'
  1. OpenFlowPlugin
  2. OPNFLWPLUG-664

Failed to add flows with actions ICMP code and type in OF1.3

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • None
    • None
    • General
    • None
    • Operating System: All
      Platform: All

    • 5618

    Description

      I have been testing with Beryllium SR1 distribution for VTN project, and faced issue while adding flows with action ICMP code and type for OF1.3.

      That is after adding flows when i verify using dump-flows in mininet actions mod_tp_src and mod_tp_dst are not displayed in OF1.3. But for OF1.0 mod_tp_src and mod_tp_dst are shown in dump-flows.

      To cross verify, i have tested the above scenario with Openflowplugin Restconf command and faced same issue. Below are the steps i have followed,

      1) Configured mininet with sudo mn --topo tree,2 --controller remote,ip=10.106.138.117 --switch ovsk,protocols=OpenFlow10

      2) Add flows with action set-tp-dst-action and set-tp-src-action using below command, and response code is success

      curl -v --user "admin":"admin" -H "Content-type: application/xml" -X PUT http://localhost:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/2/flow/134 -d '<?xml version="1.0" encoding="UTF-8" standalone="no"?> <flow xmlns="urn:opendaylight:flow:inventory"> <strict>false</strict> <instructions> <instruction> <order>0</order> <apply-actions> <action> <order>0</order> <set-tp-dst-action> <port>109</port> </set-tp-dst-action> </action> <action> <order>1</order> <set-tp-src-action> <port>108</port> </set-tp-src-action> </action> <action> <output-action> <output-node-connector>3</output-node-connector> </output-action> <order>2</order> </action> </apply-actions> </instruction> </instructions> <table_id>2</table_id> <id>134</id> <cookie_mask>255</cookie_mask> <match> <ethernet-match> <ethernet-type> <type>0x800</type> </ethernet-type> <ethernet-destination> <address>ff:ff:29:01:19:61</address> </ethernet-destination> <ethernet-source> <address>00:00:00:11:23:ae</address> </ethernet-source> </ethernet-match> <ipv4-source>17.0.0.0/8</ipv4-source> <ipv4-destination>172.168.0.0/16</ipv4-destination> <ip-match> <ip-protocol>1</ip-protocol> </ip-match> <in-port>0</in-port> </match> <cookie>11</cookie> <flow-name>FooXf11</flow-name> <priority>11</priority> </flow>'

      < HTTP/1.1 200 OK
      < Set-Cookie: JSESSIONID=lw27td6lxerhh9af3fnhneta;Path=/restconf
      < Expires: Thu, 01 Jan 1970 00:00:00 GMT
      < Set-Cookie: rememberMe=deleteMe; Path=/restconf; Max-Age=0; Expires=Tue, 29-Mar-2016 04:32:56 GMT
      < Content-Length: 0

      3) Checked flowentries in mininet for OF1.0 and actions mod_tp_src and mod_tp_dst are applied in node.
      mininet> dpctl dump-flows -OOpenFlow10

          • s1 ------------------------------------------------------------------------
            NXST_FLOW reply (xid=0x4):
            cookie=0xb, duration=26.914s, table=0, n_packets=0, n_bytes=0, idle_age=26, priority=11,icmp,in_port=0,dl_src=00:00:00:11:23:ae,dl_dst=ff:ff:29:01:19:61,nw_src=17.0.0.0/8,nw_dst=172.168.0.0/16,nw_tos=108,icmp_type=6,icmp_code=3 actions=mod_tp_dst:109,mod_tp_src:108,output:3
          • s2 ------------------------------------------------------------------------
            NXST_FLOW reply (xid=0x4):
          • s3 ------------------------------------------------------------------------
            NXST_FLOW reply (xid=0x4):

      I have followed the same above scenario in OF1.3, failed to display flows in mininet.

      1)1) Configured mininet with sudo mn --topo tree,2 --controller remote,ip=10.106.138.117 --switch ovsk,protocols=OpenFlow13

      2) Add flows with action set-tp-dst-action and set-tp-src-action using below command, and response code is success. Used the same command which i tried for OF1.0, which is above.

      3) Checked flowentries in mininet for OF1.3 and but flow is not created. Output is as below,
      mininet> dpctl dump-flows -OOpenFlow10

          • s1 ------------------------------------------------------------------------
            NXST_FLOW reply (xid=0x4):
          • s2 ------------------------------------------------------------------------
            NXST_FLOW reply (xid=0x4):
          • s3 ------------------------------------------------------------------------
            NXST_FLOW reply (xid=0x4):
            mininet>

      I would like to know is there any issues in adding flows with actions ICMP code and type. Since the scenario which is working for OF1.0.

      For your information i have attached karaf.log with TRACE enabled for Openflowplugin.

      Attached with of_karaf_log.zip file.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            siva-karthik@hcl.com Karthik Sivasamy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: