Mininet connecting to ONOS issue, no topology shown

256 views
Skip to first unread message

Md. Mahbubul Hassan

unread,
Jun 24, 2021, 6:41:02 AM6/24/21
to mininet-wifi-discuss
Dear All,
After I started ONOS 2.5.1,  I now can log in using the web interface of ONOS while I have two adapters in the same ubuntu 20.04 VM- (Host-only 192.168.56.101 & NAT 10.0.3.15).
I used the mininet command as below-

$ sudo mn --topo linear,4 --controller remote,ip=10.0.2.15,port=6653 --switch ovsk,protocols=OpenFlow13

 

I log in using karaf to CLI of ONOS.

The output there is as below-

 

     ____  _  ______  ____    

    / __ \/ |/ / __ \/ __/  

   / /_/ /    / /_/ /\ \     

   \____/_/|_/\____/___/    

                              

Documentation: wiki.onosproject.org     

Tutorials:     tutorials.onosproject.org

Mailing lists: lists.onosproject.org    

 

Come help out! Find out how at: contribute.onosproject.org

 

Hit '<tab>' for a list of available commands

and '[cmd] --help' for help on a specific command.

Hit '<ctrl-d>' or type 'logout' to exit ONOS session.

 karaf@root > apps -a -s                                                13:27:25

*   3 org.onosproject.hostprovider         2.5.0    Host Location Provider

*   4 org.onosproject.lldpprovider         2.5.0    LLDP Link Provider

*   5 org.onosproject.optical-model        2.5.0    Optical Network Model

*   6 org.onosproject.openflow-base        2.5.0    OpenFlow Base Provider

*   7 org.onosproject.openflow             2.5.0    OpenFlow Provider Suite

*  22 org.onosproject.drivers              2.5.0    Default Drivers

*  53 org.onosproject.linkdiscovery        2.5.0    Link Discovery Provider

* 120 org.onosproject.fwd                  2.5.0    Reactive Forwarding

* 123 org.onosproject.gui2                 2.5.0    ONOS GUI2


ONOS listening port 6633 is open. Please see below

$netstat -tlpn

(Not all processes could be identified, non-owned process info

 will not be shown, you would have to be root to see it all.)

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name   

tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      -                  

tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -                  

tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      -                  

tcp6       0      0 :::6653                 :::*                    LISTEN      115631/java        

tcp6       0      0 :::44129                :::*                    LISTEN      115631/java        

tcp6       0      0 :::8101                 :::*                    LISTEN      115631/java        

tcp6       0      0 127.0.0.1:34663         :::*           LISTEN      115631/java        

tcp6       0      0 :::6633                 :::*                    LISTEN      115631/java        

tcp6       0      0 :::1099                 :::*                    LISTEN      115631/java        

tcp6       0      0 :::9876                 :::*                    LISTEN      115631/java        

tcp6       0      0 :::8181                 :::*                    LISTEN      115631/java        

tcp6       0      0 :::22                   :::*                    LISTEN      -                  

tcp6       0      0 ::1:631                 :::*                    LISTEN

 


The error message pops up as

13:33:11.516 INFO  [OFChannelHandler] New switch connection from /192.168.56.101:52106

13:33:11.517 INFO  [OFChannelHandler] Switch disconnected callback for sw:[/192.168.56.101:52106 DPID[?]]. Cleaning up ...

13:33:11.517 WARN  [OFChannelHandler] no dpid in channelHandler registered for disconnected switch [/192.168.56.101:52106 DPID[?]]

13:33:11.721 INFO  [OFChannelHandler] New switch connection from /192.168.56.101:52108

13:33:11.721 INFO  [OFChannelHandler] Sending OF_15 Hello to /192.168.56.101:52108

13:33:11.740 WARN  [OFChannelHandler] Config Reply from switch [/192.168.56.101:52108 DPID[00:00:00:00:00:00:00:01]] has miss length set to 128

13:33:11.742 ERROR [OFChannelHandler] Error while processing message from switch [/192.168.56.101:52108 DPID[00:00:00:00:00:00:00:01]]state WAIT_METER_FEATURES_REPLY

io.netty.handler.codec.DecoderException: org.projectfloodlight.openflow.exceptions.OFParseError: Wrong length: Expected=40(40), got=32

            at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessage

 

13:33:13.126 INFO  [OFChannelHandler] Switch disconnected callback for sw:[/192.168.56.101:52110 DPID[00:00:00:00:00:00:00:01]]. Cleaning up ...

13:33:13.127 INFO  [OFChannelHandler] [/192.168.56.101:52110 DPID[00:00:00:00:00:00:00:01]]:removal called

13:33:15.237 INFO


However, The above mininet command connected the controller. However, I didn't have any topology shown on the web interface. Please look I used on my mininet my controller IP for the host-only ( 192.168.56.101-> url) but the device found was 10.0.3.15 -(NAT adapter).

onos gui.png


What I am doing wrong?

Any help would be much appreciated.

Kind Regards,

Mohamamd



Ramon Fontes

unread,
Jun 24, 2021, 7:02:33 AM6/24/21
to Md. Mahbubul Hassan, mininet-wifi-discuss
Dear Hassan,

I suggest asking the question on the Mininet mailing list.

woon...@gmail.com

unread,
Oct 24, 2022, 8:22:59 PM10/24/22
to mininet-wifi-discuss
I have similar situation of no topology in ONOS. My case is related an example Python code in Mininet-Wifi.
  
To reproduce my error.
    (1) Start ONOS
          I used Bazel during installation
          `$ ok clean`
    (2) Logged into ONOS
    (3) Run the Python code
           `$ python mesh.py`
            or
            `$ python mesh.py -m` 
With "m" parameter it show animated output in different window (not on ONOS).
          
Mohamamd, do yo solve you error?
Reply all
Reply to author
Forward
0 new messages