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

ICMPv4 type/code in OF10 match are ignored.

    XMLWordPrintable

Details

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

    • 3328

    Description

      Although OF10 supports ICMP type/code match, openflowplugin always ignores icmpv4-match in MD-SAL match if OF protocol is OF10.

      I tried to install a flow entry which drops ICMPv4 echo into OF10 switch.

      PUT http://localhost:8080/restconf/config/opendaylight-inventory:nodes/opendaylight-inventory:node/openflow:1/flow-node-inventory:table/0/flow-node-inventory:flow/icmp_echo
      {
      "flow-node-inventory:flow": [
      {
      "id": "icmp_echo",
      "idle-timeout": 0,
      "hard-timeout": 0,
      "table_id": 0,
      "priority": 10,
      "match": {
      "ip-match":

      { "ip-protocol": 1 }

      ,
      "icmpv4-match":

      { "icmpv4-type": 8, "icmpv4-code": 0 }

      ,
      "ethernet-match": {
      "ethernet-type":

      { "type": 2048 }

      }
      }
      }
      ]
      }

      But both ICMP type and code were ignored.

      mininet> dpctl dump-flows

          • s1 ------------------------------------------------------------------------
            NXST_FLOW reply (xid=0x4):
            cookie=0x0, duration=68.873s, table=0, n_packets=0, n_bytes=0, idle_age=68, priority=10,icmp actions=drop

      ICMP type and code should be set as TP_SRC/TP_DST respectively into OF10 match like this.

      mininet> dpctl dump-flows

          • s1 ------------------------------------------------------------------------
            NXST_FLOW reply (xid=0x4):
            cookie=0x0, duration=4.637s, table=0, n_packets=0, n_bytes=0, idle_age=4, priority=10,icmp,icmp_type=8,icmp_code=0 actions=drop

      Attachments

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

        Activity

          People

            yasuda Shigeru Yasuda
            yasuda Shigeru Yasuda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: