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

Switch handshaking loops indefinitely

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • None
    • Nitrogen-SR1, Fluorine
    • openflowplugin-impl
    • None

      I'm running ODL fluorine stable release (opendaylight-0.9.0.tar.gz) and facing this problem:

      when a simulated switch (mininet) connects and disconnects very frequently, the openflowplugin enters in a loop and cannot recover the handshaking properly. This also affects the connection with some other switches.

      I can reproduce the same issue in a network of real switches (Extreme/Edgecore switches).

      When this problem happens, there is also a huge memory leak resulting in having the number of DeviceContextImpl instances growing indefinitely.

      Steps to reproduce:

      1) run opendaylight-0.9.0

      2) feature:install features-openflowplugin

      3) run mininet (sudo mn --topo linear,20 --switch ovsk,protocols=OpenFlow13 --mac --controller remote,port=6633,ip=127.0.0.1)

      4) simulate a switch disconnection by running the command "./changectrl.sh 10000 0.1" (script in attachments)

      5) wait 1-2 minutes, you should see odl trying indefinitely to regain the connection

      6) stop the script, the memory leak is now growing (you can check the number of instances of DeviceContextImpl by running "jcmd <pid> GC.class_histogram | grep -e "org.opendaylight.openflowplugin.impl.device.DeviceContextImpl$")

       

      In attachment also the karaf.log

            Somashekhar Somashekhar Javalagi
            leonardo.milleri Leonardo Milleri
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: