Ask Your Question
1

How to confirm whether the mininet is connected to ODL? without using UI(Browser URL) [closed]

asked 2015-07-22 05:23:37 -0700

karthik330 gravatar image

i launched the ODL and installed features odl-restconf-all,odl-l2switch-switch,odl-dlux-core

Now Launched mininet by using command -> sudo mn --controller=remote,ip=172.31.4.47 --topo=tree,2

odl2@ip-172-31-4-47:~$ sudo mn --controller=remote,ip=172.31.4.47 --topo=tree,2 * Creating network Adding controller Adding hosts: h1 h2 h3 h4 Adding switches: s1 s2 s3 Adding links: (s1, s2) (s1, s3) (s2, h1) (s2, h2) (s3, h3) (s3, h4) Configuring hosts h1 h2 h3 h4 Starting controller c0 Starting 3 switches s1 s2 s3 ... Starting CLI: mininet> dump <host h1-eth0:10.0.0.1="" h1:="" pid="2827"> <host h2-eth0:10.0.0.2="" h2:="" pid="2832"> <host h3-eth0:10.0.0.3="" h3:="" pid="2834"> <host h4-eth0:10.0.0.4="" h4:="" pid="2836"> <ovsswitch lo:127.0.0.1,s1-eth1:none,s1-eth2:none="" pid="2844" s1:=""> <ovsswitch lo:127.0.0.1,s2-eth1:none,s2-eth2:none,s2-eth3:none="" pid="2847" s2:=""> <ovsswitch lo:127.0.0.1,s3-eth1:none,s3-eth2:none,s3-eth3:none="" pid="2850" s3:=""> <remotecontroller{'ip': '172.31.4.47'}="" 172.31.4.47:6633="" c0:="" pid="2821"> mininet> pingall </remotecontroller{'ip':></ovsswitch></ovsswitch></ovsswitch></host></host></host></host> Ping: testing ping reachability h1 -> X X X h2 -> X X X h3 -> X X X h4 -> X X X ** Results: 100% dropped (0/12 received) mininet>

I am not able to ping from mininet. 1)How to check/confirm whether the mininet is connected to ODL? 2)If it is connected,how to see/list the hosts/devices from ODL-terminal(Not using Browser URL)

Please help me to solve this problem..Thanks in advance..

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by karthik330
close date 2016-04-19 04:30:29

4 answers

Sort by ยป oldest newest most voted
1

answered 2015-07-23 09:31:33 -0700

jamoluhrsen gravatar image

you can just install "odl-l2switch-switch-ui" as a single feature and that will give you DLUX, restconf, etc, as it depends on all of those.

as mentioned already, you need to make sure your switch(es) is connected. you can look at the GUI as well as checking with REST. for GUI, point your browser to http://<controller ip>:8181/dlux.html (assuming Lithium is installed). For REST, send your curl command to http://<controler ip>:8181/restconf/config/opendaylight-inventory:nodes and make sure your switch(es) are in the response.

since you are using AWS, make sure your security groups are allowing access to 8181 since I assume you'll be hitting that port from your local system in to that AWS cloud.

if your switch(es) are showing up, and the l2switch-ui feature was installed, you should be able to ping now between the hosts on mininet. If you still cannot ping, then more debugging is needed. You can check if the mininet switches have any flows installed (they should) with dpctl dump-flows -O OpenFlow13 on your mininet console. if no flows are there, then ping will not work and you'd have to figure out why there are no flows.

hope it helps get you closer...

edit flag offensive delete publish link more

Comments

Success. Its Pinging..Thanks for everyOne's Help which makes me to come closer to get answer .. I refered this link https://wiki.opendaylight.org/view/Install_On_Ubuntu_14.04

karthik330 ( 2015-07-23 22:45:35 -0700 )edit
1

answered 2015-07-22 13:22:57 -0700

updated 2015-07-24 00:11:17 -0700

Hello kartik330,

1)How to check/confirm whether the mininet is connected to ODL? image description

2)If it is connected,how to see/list the hosts/devices from ODL-terminal(Not using Browser URL)

execute the following command from the karaf console.

opendaylight-user@root>shell:exec curl -u admin:admin 'http://localhost:8181/restconf/operational/network-topology:network-topology'

you will get the following output: {"network-topology":{"topology":[{"topology-id":"flow:1","node":[{"node-id":"openflow:99724883652167","termination-point":[{"tp-id":"openflow:99724883652167:LOCAL","opendaylight-topology-inventory:inventory-node-connector-ref":"/opendaylight-inventory:nodes/opendaylight-inventory:node[opendaylight-inventory:id='openflow:99724883652167']/opendaylight-inventory:node-connector[opendaylight-inventory:id='openflow:99724883652167:LOCAL']"}],"opendaylight-topology-inventory:inventory-node-ref":"/opendaylight-inventory:nodes/opendaylight-inventory:node[opendaylight-inventory:id='openflow:99724883652167']"}]}]}}

As per my knowledge, there is no command available to see the connected device/host from the karaf console.

Please let me know for any further help.

edit flag offensive delete publish link more

Comments

Hi subhash ..Thanks for your help..I follwed your steps.And i confirmed that my controller is connected.But when i am trying to get see list of devices/hosts using CURL, its not receiving anything.only time spent is runing.I am using AWS,and given that path as well..Plz check below answer

karthik330 ( 2015-07-22 22:13:33 -0700 )edit

In ODL i installed only restconf-all l2switch-switch and dlux-core...Should i add MD sal feature?.. Is there any features to be enabled for packet forwarding??

karthik330 ( 2015-07-22 22:53:19 -0700 )edit

Hello Subhash, I am having the same issue. When I run the command in ODL as you mentioned up, it does show an output similar to what you have mentioned above. But on my OF side, I do not see the is_connected parameter. Do you know why this is happening? I have created a new question with more info here : https://ask.opendaylight.org/question/4541/tls-support-issue-br0-ssl17231126633-connection-dropped-conneciton-refused-error-in-ovs-vswitchdlog-file/

sankettandulwadkar ( 2015-07-24 06:45:49 -0700 )edit

@sankettandulwadkar are you sure switch is connected to controller ? I think for the tls connection you have to configure the keys first http://git.openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=INSTALL.SSL;hb=HEAD.

subhash ( 2015-07-24 12:14:48 -0700 )edit

@subhash I am not sure about it. But yes, I have done the key configuration as mentioned on https://wiki.opendaylight.org/view/OpenDaylight_OpenFlow_Plugin:_TLS_Support. I have completed all the steps, I doesnt give me errors but isnt showing the is_connected parameter.

sankettandulwadkar ( 2015-07-24 13:58:21 -0700 )edit
0

answered 2015-07-22 22:16:36 -0700

karthik330 gravatar image

updated 2015-07-22 22:47:03 -0700

Hi subhas, This is what i am getting..

opendaylight-user@root>shell:exec curl -u admin:admin 'http://[IP].ap-southeast-1.compute.amazonaws.com:8181/restconf/operational/network-topology:network-topology' % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:01:17 --:--:-- 0^C 0 0 0 0 0 0 0 0 --:--:-- 0:01:25 --:--:-- 0^C opendaylight-user@root>stop 0 0 0 0 0 0 0 0 --:--:-- 0:01:27 --:--:-- 0No bundles specified. 0 0 0 0 0 0 0 0 --:--:-- 0:05:00 --:--:-- 0 curl: (52) Empty reply from server

can you help me...

edit flag offensive delete publish link more

Comments

If you are running the ODL in the aws instance then put localhost in the <ctrl_ip> and try in karaf console or you can directly try the curl command in the terminal (from local machine) ` curl -u admin:admin 'http://<ctrl_ip>:8181/restconf/operational/network-topology:network-topology' | more `

subhash ( 2015-07-22 23:08:06 -0700 )edit
0

answered 2015-07-23 00:44:31 -0700

hjdeore gravatar image

updated 2015-07-23 00:49:33 -0700

when you run mininet to command to form network like mn --controllo= .......

its displays list of messages like host created switch created etc etc. It has one message "Adding controller" . If mininet fails to connect to controller it shows "unable to connect controller"

So while creating network in mininet you can figure out whether its connected or not.


For pingall issue install l2switch feature using below command

feature:install odl-l2switch-switch

& wait till ODL installs the feature & creates instance of it. you check instance created by using command in karaf

log:display | grep instance

If your able to see instances of features mentioned in l2switch project like arphandler,hostracker etc etc then you must be able to ping.

edit flag offensive delete publish link more

Comments

i installed the restconf-all, l2switch-switch ,dlux-all features , and Controller is connected with Mininet. I also checked the log:display | grep arphandler , etc..Its coming .. But I dont know why i am not able to ping from mininet.Do I need any extra features?

karthik330 ( 2015-07-23 03:02:13 -0700 )edit

Question Tools

Follow
2 followers

Stats

Asked: 2015-07-22 05:23:37 -0700

Seen: 2,734 times

Last updated: Jul 24 '15