Uploaded image for project: 'netvirt'
  1. netvirt
  2. NETVIRT-1381

Stale entry in default flow table 46 for NON NAPT switch, where table 26 pointing to tunnel

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed
    • Medium
    • Resolution: Unresolved
    • None
    • None
    • natservice
    • None

    Description

      Bug Recreate:

      Login to the ODL VM
      Open the file ../../etc/opendaylight/datastore/initial/config/netvirt-natservice-config.xml
      With default value 5 , verify the rate limit in the table 46
      Change the default value to 0 (zero)
      Restart the ODL
      Verify zero rate limit in CSS for table 46 that is all the packets needs to be punted to the controller
      Change the default value to the positive number [20] and repeat it with higher numbers
      Restart the ODL
      Verify the changed value in CSS for table 46 and punt packets
      Verify the packet increment in the learnt flow
      Verify only one packet should be punted

      NAPT SWITCH:

      stack@pike-compute-1:/opt/stack/devstack$ curl -u admin:admin GET http://192.168.100.201:8181/restconf/config/odl-nat:napt-switches | python -mjson.tool
      % Total % Received % Xferd Average Speed Time Time Time Current
      Dload Upload Total Spent Left Speed
      0 0 0 0 0 0 0 0 -::- -::- -::- 0curl: (6) Could not resolve host: GET
      100 135 0 135 0 0 13324 0 -::- -::- -::- 13324
      {
      "napt-switches": {
      "router-to-napt-switch": [

      { "primary-switch-id": 90980215257925, "router-name": "431a4f07-dd56-45a6-87cc-dcc54d8693c1" }

      ]
      }
      }
      stack@pike-compute-1:/opt/stack/devstack$ dpnid
      dpnid is 90980215257925
      stack@pike-compute-1:/opt/stack/devstack$ flows table=26
      cookie=0x8000006, duration=2101.545s, table=26, n_packets=0, n_bytes=0, priority=5,ip,metadata=0x30d44/0xfffffe actions=goto_table:46
      stack@pike-compute-1:/opt/stack/devstack$
      stack@pike-compute-1:/opt/stack/devstack$ flows table=46
      cookie=0x81286ab, duration=2105.707s, table=46, n_packets=0, n_bytes=0, priority=5,udp,metadata=0x30d44/0xfffffe actions=CONTROLLER:65535,learn(table=46,hard_timeout=30,priority=7,cookie=0x81286ab,eth_type=0x800,nw_proto=17,NXM_OF_IP_SRC[],NXM_OF_IP_DST[],NXM_OF_UDP_SRC[],NXM_OF_UDP_DST[],OXM_OF_METADATA[1..23])
      cookie=0x8000008, duration=2105.707s, table=46, n_packets=0, n_bytes=0, priority=0,icmp,metadata=0x30d44/0xfffffe actions=drop
      cookie=0x81286ab, duration=2105.707s, table=46, n_packets=0, n_bytes=0, priority=5,tcp,metadata=0x30d44/0xfffffe actions=CONTROLLER:65535,learn(table=46,hard_timeout=30,priority=7,cookie=0x81286ab,eth_type=0x800,nw_proto=6,NXM_OF_IP_SRC[],NXM_OF_IP_DST[],NXM_OF_TCP_SRC[],NXM_OF_TCP_DST[],OXM_OF_METADATA[1..23])
      stack@pike-compute-1:/opt/stack/devstack$

      NON NAPT SWITCH']

      stack@pike-controller:~$ flows table=26
      cookie=0x8000006, duration=1536.665s, table=26, n_packets=0, n_bytes=0, priority=5,ip,metadata=0x30d44/0xfffffe actions=set_field:0x11173->tun_id,group:225000
      stack@pike-controller:~$
      stack@pike-controller:~$
      stack@pike-controller:~$
      stack@pike-controller:~$ flows table=46
      cookie=0x81286ab, duration=1647.677s, table=46, n_packets=0, n_bytes=0, priority=5,tcp,metadata=0x30d44/0xfffffe actions=CONTROLLER:65535,learn(table=46,hard_timeout=20,priority=7,cookie=0x81286ab,eth_type=0x800,nw_proto=6,NXM_OF_IP_SRC[],NXM_OF_IP_DST[],NXM_OF_TCP_SRC[],NXM_OF_TCP_DST[],OXM_OF_METADATA[1..23])
      cookie=0x81286ab, duration=1647.677s, table=46, n_packets=0, n_bytes=0, priority=5,udp,metadata=0x30d44/0xfffffe actions=CONTROLLER:65535,learn(table=46,hard_timeout=20,priority=7,cookie=0x81286ab,eth_type=0x800,nw_proto=17,NXM_OF_IP_SRC[],NXM_OF_IP_DST[],NXM_OF_UDP_SRC[],NXM_OF_UDP_DST[],OXM_OF_METADATA[1..23])
      cookie=0x8000008, duration=1647.677s, table=46, n_packets=0, n_bytes=0, priority=0,icmp,metadata=0x30d44/0xfffffe actions=drop

      Karaf logs are attached

      Attachments

        1. karaf.rar
          291 kB
          Srinivas Balajinaidu
        2. karaf.rar
          286 kB
          Srinivas Balajinaidu
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            xcheara Chetan Arakere Gowdru
            snaidus Srinivas Balajinaidu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: