rftest2 mininet problem

625 views
Skip to first unread message

illlusioner77367

unread,
Feb 21, 2016, 3:08:45 AM2/21/16
to RouteFlow
Hello everyone, I am having some new problems.

I try the steps in rftest2 and everything looks fine, I check the mongo table in routeflow and find the mapping association is active.

Using wireshark I can find that the eth0 in every mininet host can get the OSPDF hello package, so I believe that Routeflow is working fine.

But the problem come when I try to ping each other, the icmp package only send inside loopback. Every host's eth0 doesn't send out any icmp package, and the ping shows destination host unreachable error, which is strange.
I also check the routing table of the mininet host and find that the routing table routes 172.31.1.0 packages to eth0, but for some reasons, it doesn't work.

So I would like to what solution to solve this kind of problem, or what environment to run the rftest2.

The host os I use is ubuntu 14.04 and the guest os is ubuntu 12.04 32 bit.

The mininet I use is version 2.2.1.

Any help is appreciated, thanks

illlusioner77367

unread,
Feb 21, 2016, 11:10:43 AM2/21/16
to RouteFlow
Nevermind I find the problem may be at other places, will try to solve it first.

illlusioner77367

unread,
Feb 22, 2016, 8:36:39 AM2/22/16
to RouteFlow
Sorry to disrupt everyone again.

I guess I find the problem but I kinda have no idea why it occurs.

I try to log into each rfvmA, rfvmB,rfvmC, rfvmD, and found out that I can not ping each other's gateway.

For example if I log into rfvmC(which has 172.31.3.1 in one of the port) and I want to ping rfvmA's port (the ip is 172.31.1.1). The ping complain about network unreachable

But host 172.31.1.100 can ping 172.31.1.1

I guess the problem may be the dp0 ?

Is there anyway to debug the dp0 switch.

Or anyone that successful run rftest2 can share the experience?

me

unread,
Feb 22, 2016, 11:18:43 PM2/22/16
to RouteFlow
what's the command for mininet? sudo mn --custom..... may i see?

and what's the output when you write sudo ./rftest2?

illlusioner77367

unread,
Feb 23, 2016, 12:39:37 AM2/23/16
to RouteFlow
I use virtualBox to run RouteFlow and add a host only adapter for the routeflow controller

So the mininet command is the same as the github, but the ip address is the VirtualBox host only network adapter's ip address.

The output of the rftest2 is in the following link

http://codepad.org/JdbneQC5

So basically the problem is that routeflow mapped all the port and the switch. But the virtual VM inside only s8 with ip gateway 172.31.4.1 can find it's host and the switches can not ping each other.

me

unread,
Feb 23, 2016, 12:51:06 AM2/23/16
to RouteFlow
sorry, i still not understand your problem.
when you tried to pinggall in the mininet, is it working? I mean, the host can ping each other?
or may be there's something wrong with the ipconf?

illlusioner77367

unread,
Feb 23, 2016, 5:07:53 AM2/23/16
to RouteFlow
Sorry for late replying.

The host can not ping each other.

ipconfig is ok the routing table of each rfvm looks fine.

I am trying to switch to vandercken branch to try out

Alex Sanxez

unread,
May 15, 2016, 2:08:37 PM5/15/16
to RouteFlow
Hello illlusioner77367,

I'm having problems too to make pingall work in rftest2. Did you
found a solution?



Thanks,


Alex


maria merici

unread,
May 18, 2016, 6:54:52 AM5/18/16
to routeflo...@googlegroups.com
Hi Alex

Have you set up the configuration for eth1 on your VBox?
I mean when you write eth1 ifconfig, you will see your ip address.
has it already 192.168.56.1?

in rftest2 you will use ip=192.168.56.1 write? i thought it affect the result

Or maybe there's something wrong on your MongoDB?

--
You received this message because you are subscribed to a topic in the Google Groups "RouteFlow" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/routeflow-discuss/NSnJYNGn-wI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to routeflow-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alex Sanxez

unread,
May 21, 2016, 12:10:07 PM5/21/16
to RouteFlow
Hello Samantha, thanks for the answer!

I'm using two VBox, one for the RouteFlow and the other for the mininet virtual image. Both machines are connected using the  "internal network" I've created  with VBox. So for example my RouteFlow machine has the ip 10.0.1.100 and the mininet machine has 10.0.1.102. I have checked that both machines can exchange information. As you suggest, I also think that the problem it's with the MongoDB, but I don't know what's wrong. For the rftest1 I haven't got any problem, so I don't know what is the issue.

Any clue?

Alex Sanxez

unread,
May 21, 2016, 2:02:04 PM5/21/16
to RouteFlow
If this helps:

When I run rftest2 this message appears:

-> Starting the controller and RFPRoxy...
.............Error parsing multitabledps list ''.  Ignored.
rfserver        INFO     List of fastpath attachments: []
rfserver        INFO     Fastpath is disabled
rfserver        INFO     Registering client port as idle (vm_id=0x2a0a0a0a0a0, vm_port=1, eth_addr=02:a1:a1:a1:a1:a1)
rfserver        INFO     Registering client port as idle (vm_id=0x2a0a0a0a0a0, vm_port=2, eth_addr=02:a2:a2:a2:a2:a2)
rfserver        INFO     Registering client port as idle (vm_id=0x2a0a0a0a0a0, vm_port=3, eth_addr=02:a3:a3:a3:a3:a3)
rfserver        INFO     Registering client port as idle (vm_id=0x2a0a0a0a0a0, vm_port=4, eth_addr=02:a4:a4:a4:a4:a4)
...loading app ryu-rfproxy/rfproxy.py
loading app ryu.controller.ofp_handler
instantiating app None of Switches
creating context switches
instantiating app ryu-rfproxy/rfproxy.py of RFProxy
May 21 19:55:31 ryu.app.rfproxy INFO     RFProxy running.
instantiating app ryu.controller.ofp_handler of OFPHandler
-> Starting the control plane network (dp0 VS)...
unsupported version 0x1. If possible, set the switch to use one of the versions [4]
unsupported version 0x1. If possible, set the switch to use one of the versions [4]
unsupported version 0x1. If possible, set the switch to use one of the versions [4]
unsupported version 0x1. If possible, set the switch to use one of the versions [4]
unsupported version 0x1. If possible, set the switch to use one of the versions [4]
/usr/local/lib/python2.7/dist-packages/ryu/topology/switches.py:550: UserWarning: Datapath#ports is kept for compatibility with the previous openflow versions (< 1.3). This is not updated by the EventOFPPortStatus message. If you want to be updated, you should use 'ryu.controller.dpset' or 'ryu.topology.switches'.
  for port in dp.ports.values():
/home/tgf/RouteFlow/ryu-rfproxy/rfproxy.py:169: UserWarning: Datapath#ports is kept for compatibility with the previous openflow versions (< 1.3). This is not updated by the EventOFPPortStatus message. If you want to be updated, you should use 'ryu.controller.dpset' or 'ryu.topology.switches'.


And when I close the script (Ctrl+C), it doesn't exit properly and the only thing it does is print dots.
 

Alex Sanxez

unread,
May 22, 2016, 7:23:40 AM5/22/16
to RouteFlow
I saw that it could be problems with the OpenFlow version when using Ryu and mininet. Maybe that's the point. Anybody know about that?

Alex Sanxez

unread,
May 22, 2016, 7:59:35 AM5/22/16
to RouteFlow
I found the problem and the solution!

The problem was with the OF version. I forced the mininet switches to use OF 1.3 and know it works me fine.

For those who have the same problem:

1. Run rftest2.
2. Execute in the mininet machine, the command provided in the RouteFlow tutorial.
3. Open a terminal on the mininet machine (I used a ssh connection).
4. Run that command to force each switch to use OF 1.3: 
sudo ovs-vsctl set bridge switchname protocols=OpenFlow13   (replace switchname with the bridge name)(in my case s5,s6,s7,s8)
5. Now you an run pingall on the mininet machine.


If someone know a better way to do the same (modifying configuration files or similar), I will appreciate the help.

a18204...@gmail.com

unread,
May 22, 2016, 10:39:08 PM5/22/16
to RouteFlow
Hello Alex Sanxez,
I downloaded RouteFlow-vandervecken and ryu-rfproxy-vandervecken,when I run command "sudo ./rftest2 " in RouteFlow, messages "unmapped datapath port (dp_id=xxx,port_id=xxx)" are always printed and hosts cannot ping each other. Do you ever meet such problem ? What's branch of RouteFlow and ryu-rfproxy you use ? Do you use Ubuntu12.04 ? 
I will be appreciate if you are willing to help me.
在 2016年5月22日星期日 UTC+8下午7:59:35,Alex Sanxez写道:

Alex Sanxez

unread,
May 25, 2016, 1:16:40 AM5/25/16
to RouteFlow
Hello,

I'm using a 64bit Ubuntu 14.04. The unmapped messages also appears in my case. I think that's normal. The flow messages with actions appears when I run the mininet topology, not earlier.
The Ryu branch I have is the one is cloned by the RouteFlow build script (I think is vandervecken).

To run mininet I modified the command to specify that the OF protocol I want to use is 1.3. To do this add to the command provided this line:

--switch ovs,protocols=OpenFlow13


I hope that helped you ;)

a18204...@gmail.com

unread,
May 25, 2016, 7:06:06 AM5/25/16
to RouteFlow
Hello Alex Sanxez,

Thank you for the reply. I will try to use 64bit Ubuntu 14.04. 

best regards ! 

在 2016年5月25日星期三 UTC+8下午1:16:40,Alex Sanxez写道:

a18204...@gmail.com

unread,
May 25, 2016, 10:12:15 AM5/25/16
to RouteFlow
Hello Alex Sanxez,

I used 64bit Ubuntu 14.04 and downloaded routeflow-vandervecken. I did the following command:

cd routeflow
sudo ./build.sh -c -z

All seems did well. But it did not git clone Ryu. So I installed Ryu2.0 manually. 

then I run " sudo ./rftest2 " after "sudo ./create" and start mininnet with command " sudo mn --custom mininet/custom/topo-4sw-4host.py --topo=rftest2 --switch ovs,protocols=OpenFlow13 --controller=remote,ip=xxx,port=6633 --pre=ipconf "

the result is as the pictures show:


hosts can not ping each other yet. Which detail do I miss ? I will be appreciate if you can help me!


best regards!





在 2016年5月25日星期三 UTC+8下午1:16:40,Alex Sanxez写道:
Hello,

Alex Sanxez

unread,
May 25, 2016, 1:59:54 PM5/25/16
to RouteFlow
Hello again! ;)

To install ryu with the script you must run this:

./build.sh -ci ryu

I don't know if this will solve your problem.

The first and third image you have posted looks like me.

I modified the rftest2 script, replacing "lxc-shutdown" with "lxc-stop", because shutdown is deprecated in the last LXC version.



best regards!

Message has been deleted

a18204...@gmail.com

unread,
May 26, 2016, 3:45:02 AM5/26/16
to RouteFlow
Hello Alex Sanxez,

I did as you told me. It installed ryu-4.2, the newest version for ryu. The problem in the second image I posted above was gone. But still the first and last images happened. hosts can 

not ping each other. I think there maybe some problems in the Mongodb. But I haven't any idea to solve the problems. 

overall ,thank you for help!

best regards!

在 2016年5月26日星期四 UTC+8上午1:59:54,Alex Sanxez写道:

Alex Sanxez

unread,
May 26, 2016, 1:05:06 PM5/26/16
to RouteFlow
How do you use mininet? I mean, you have a virtual machine with mininet?

If this can help you: I run RouteFlow and mininet in two different virtual machines with VirtualBox. Then I connect both machines with an internal network.

That's all I can help you :(


I hope someone can help you to solve your problem.



Best regards!


Alex

a18204...@gmail.com

unread,
May 26, 2016, 9:12:43 PM5/26/16
to RouteFlow
Hello Alex Sanxez

I git clone mininet on Ubuntu 14.04 ( with VMware Workstation )which is hosted by computer A. The Ubuntu's eth0 is "10.108.97.71" . RouteFlow is installed on another Ubuntu 14.04 

( with VMware Workstation ) which is hosted by computer B. The Ubuntu's eth0 is "10.108.97.136".  My two different computer connect the campues network whose network segment is 

10.108.97.0/24”. The two Ubuntu system select bridge mode to achieve IP. 

Should I transfer into VirtualBox?  

Best regards !
在 2016年5月27日星期五 UTC+8上午1:05:06,Alex Sanxez写道:

Alex Sanxez

unread,
May 28, 2016, 10:18:49 AM5/28/16
to RouteFlow
Sorry I don't know :(

I have both virtual machines in the same computer, both connected by an internal network.

I don't know how to do in your case.

a18204...@gmail.com

unread,
May 29, 2016, 9:26:09 PM5/29/16
to RouteFlow
Never mind. Thank you for your reply!

best regards!

在 2016年5月28日星期六 UTC+8下午10:18:49,Alex Sanxez写道:

maria merici

unread,
May 30, 2016, 12:10:59 AM5/30/16
to routeflo...@googlegroups.com
Hello Alex,

sorry i just opened my inbox and can't help your problem, we're so gratefull you've solved it right.

with the fullstop prints, i also do it manually, by type these command in the terminal:
$ sudo lxc-stop -n [rfvm's name]



Hello a18204318104..

what do you mean with "transfer into virtualbox"?

I have seen your pircture with RFVS, RFProxy error,
I think you got wrong when installed the dependencies or something about your RouteFlow machine.
May be with the controller you used.
Have you tried to re-install it?


--

a18204...@gmail.com

unread,
May 30, 2016, 4:06:59 AM5/30/16
to RouteFlow
Hello Samantha,

I mean that I transfer to use VirtualBox , not VMware Workstation. 

with the command: "sudo ./build.sh -c -z ", it fetch the dependencies automatically, and I installed the dependecies as the README.md wirte manually: 
sudo apt-get install build-essential git libboost-dev \
  libboost-program-options-dev libboost-thread-dev \
  libboost-filesystem-dev iproute-dev openvswitch-switch \
  mongodb python-pymongo
I installed ryu2.0 before,it doesn't work. Then I pip install ryu and version for ryu is 4.2. It also doesn't work.

I will be appreciate if you can help me!

best regards!

在 2016年5月30日星期一 UTC+8下午12:10:59,Samantha写道:

zhiwei Pan

unread,
May 30, 2016, 4:36:20 AM5/30/16
to RouteFlow
Hello Samantha,

could you share me with the progress of how you install RouteFlow ? 

thank you!

在 2016年5月30日星期一 UTC+8下午4:06:59,zhiwei Pan写道:

maria merici

unread,
May 30, 2016, 11:11:32 AM5/30/16
to routeflo...@googlegroups.com
Hello zhiwei pan,

Im using virtualbox 4.0.4 and the Operating system is Ubuntu 12.04.5 LTS 32 bit

It's not up to date, i use the old version of the Vbox and also ubuntu, but it works.

the RAM i setting 12 MB, memory 40.22 GB

Network adapter 1 NAT, adapter 2 host Host only adapter

You can search for how to install ubuntu on your Vbox
res
i use this link to install routeflow    ->>> https://github.com/CPqD/RouteFlow

The RouteFlow support OpenFlow 1.0, As i know, it's already include in the dependencies installation

Just follow the instruction and you can ask me if you found something confused with the installation on that website i shared.

for the rftest2, as i know you should setting the ethernet1 and configure it as xxx.xxx.xx.x as the IP address you use to call the mininet custom

and you have to move the file ipconf and topo-4sw-4host from routeflow folder TO:
ipconf -> folder Home and topo....->mininet/custom







zhiwei Pan

unread,
May 30, 2016, 10:59:21 PM5/30/16
to RouteFlow
Hello Samantha,

The openflow controller you use is Pox or Ryu ? I now want to use Ryu because I need OpenFlow 1.3.

I have installed the RouteFlow with Pox successfully, but failed in RouteFlow with Ryu. 

在 2016年5月30日星期一 UTC+8下午11:11:32,Samantha写道:

maria merici

unread,
May 31, 2016, 1:18:52 AM5/31/16
to routeflo...@googlegroups.com
Hello zhiwei Pan.

oh, I'm sorry. I don't know that you only want to use Ryu Controller.

I used POX Controller with OpenFlow 1.0,

i don't know how to use Ryu. i thought before that you just want to run rftest2, then i tell you about mine that used POX. 

maria merici

unread,
May 31, 2016, 6:34:08 AM5/31/16
to routeflo...@googlegroups.com
Sorry for interupt. I want to ask out of topic.

I make a topology with mininet, with 2 AS with BGP and OSPF.

But i got the result of pingall, it's just always 10% dropped (3/30).

Do you know what possibility cause the dropped pingall?

zhiwei Pan

unread,
May 31, 2016, 8:45:08 AM5/31/16
to RouteFlow
I guess it's because the TTL of some ICMP packets decrease to 0. I am not sure . 

在 2016年5月31日星期二 UTC+8下午6:34:08,Samantha写道:

maria merici

unread,
May 31, 2016, 9:13:42 AM5/31/16
to routeflo...@googlegroups.com
Hi thankyou for your answer.

Or can it because the "hops or amount of routers" passed by the PING packet, that make the echo reply from destination isn't arrived at the sender?

zhiwei Pan

unread,
May 31, 2016, 8:57:33 PM5/31/16
to RouteFlow
Hi Samantha,

yes, maybe

在 2016年5月31日星期二 UTC+8下午9:13:42,Samantha写道:

晨 What

unread,
Aug 22, 2016, 7:56:27 AM8/22/16
to RouteFlow
Hi Pan,

Can I ask how you can run Routeflow on Ubuntu 14.04?
 

在 2016年5月25日星期三 UTC+2下午4:12:15,zhiwei Pan写道:

zhiwei Pan

unread,
Nov 17, 2016, 8:25:38 PM11/17/16
to RouteFlow
hello,

I'm sorry that i did not succeed in running RouteFlow on Ubuntu 14.04. 

在 2016年8月22日星期一 UTC+8下午7:56:27,Whatchen写道:

Manjunath A

unread,
Nov 18, 2016, 12:18:30 AM11/18/16