Problem with rftest1 and HW switch implementation

42 views
Skip to first unread message

M.Saeed Ansari

unread,
May 27, 2016, 7:11:05 AM5/27/16
to RouteFlow
Hello,

I have successfully run rftest1(CPqD/RouteFlow version) with it's original configuration.
I have removed b1 and b2 starting process from config and their SW switch.
I have setup a Mikrotik HW router as my HW open flow switch.

After connecting and starting my test, everything is work correctly(like port assignment) but i can't ping from b1 and b2 real clients.

rftest1 log:

-> Starting rftest1
-> Stopping and resetting LXC VMs...
rfvm1 is not running
-> Deleting data from previous runs...
MongoDB shell version: 2.4.10
connecting to: db
Fri May 27 11:04:44.655 Error: couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:145
exception: connect failed
-> Setting up the management bridge (lxcbr0)...
-> Setting up MongoDB...
.-> Starting the rfvm1 virtual machine...
-> Starting the controller and RFPRoxy...
/home/pi/RouteFlow
.POX 0.1.0 (betta) / Copyright 2011-2013 James McCauley, et al.
...INFO:rfproxy:RFProxy running.
INFO:core:POX 0.1.0 (betta) is up.
-> Starting RFServer...
-> Starting the control plane network (dp0 VS)...
INFO:openflow.of_01:[None 1] closed
---
INFO:openflow.of_01:[76-73-72-66-76-73|29286 2] connected
INFO:openflow.topology:Switch 76-73-72-66-76-73|29286 connected
INFO:rfproxy:Registering datapath port (dp_id=0x7266767372667673, dp_port=1)
INFO:rfproxy:Registering datapath port (dp_id=0x7266767372667673, dp_port=2)
INFO:rfserver:Configuring RFVS (dp_id=0x7266767372667673)
INFO:rfproxy:routemod sent to datapath (dp_id=0x7266767372667673)
INFO:rfserver:Registering client port as idle (vm_id=0x12a0a0a0a0a0, vm_port=1, eth_addr=12:a1:a1:a1:a1:a1)
INFO:rfserver:Registering client port as idle (vm_id=0x12a0a0a0a0a0, vm_port=2, eth_addr=12:a2:a2:a2:a2:a2)
INFO:openflow.of_01:[e4-8d-8c-2d-a8-a8|99 3] connected
INFO:openflow.topology:Switch e4-8d-8c-2d-a8-a8|99 connected
INFO:rfproxy:Registering datapath port (dp_id=0x63e48d8c2da8a8, dp_port=1)
INFO:rfproxy:Registering datapath port (dp_id=0x63e48d8c2da8a8, dp_port=2)
INFO:rfserver:Registering datapath port as idle (dp_id=0x63e48d8c2da8a8, dp_port=1)
INFO:rfproxy:routemod sent to datapath (dp_id=0x63e48d8c2da8a8)
INFO:rfproxy:routemod sent to datapath (dp_id=0x63e48d8c2da8a8)
INFO:rfproxy:routemod sent to datapath (dp_id=0x63e48d8c2da8a8)
INFO:rfproxy:routemod sent to datapath (dp_id=0x63e48d8c2da8a8)
INFO:rfserver:Configuring datapath (dp_id=0x63e48d8c2da8a8)
INFO:rfserver:Registering datapath port as idle (dp_id=0x63e48d8c2da8a8, dp_port=2)
INFO:rfproxy:routemod sent to datapath (dp_id=0x63e48d8c2da8a8)
INFO:rfproxy:routemod sent to datapath (dp_id=0x63e48d8c2da8a8)
INFO:rfproxy:routemod sent to datapath (dp_id=0x63e48d8c2da8a8)
INFO:rfproxy:routemod sent to datapath (dp_id=0x63e48d8c2da8a8)
INFO:rfproxy:routemod sent to datapath (dp_id=0x63e48d8c2da8a8)
INFO:rfproxy:routemod sent to datapath (dp_id=0x63e48d8c2da8a8)
INFO:rfproxy:routemod sent to datapath (dp_id=0x63e48d8c2da8a8)
INFO:rfserver:Registering client port as idle (vm_id=0x12a0a0a0a0a0, vm_port=1, eth_addr=12:a1:a1:a1:a1:a1)
INFO:rfserver:Registering client port as idle (vm_id=0x12a0a0a0a0a0, vm_port=2, eth_addr=12:a2:a2:a2:a2:a2)



rfclient log:

Loaded interface eth1
Loaded interface eth2
Netlink interface enabled


Please help me about the problem, is there any miss configuration?

Thanks.

M.Saeed Ansari

unread,
May 27, 2016, 11:05:09 AM5/27/16
to RouteFlow
Hello again,

I have found that the Mikrotik dp-id is anything different, by correcting this var now b1 and b2 can ping each other.

Now, i get an error:

Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/pi/RouteFlow/rflib/ipc/MongoIPC.py", line 89, in _listen_worker
    processor.process(envelope[FROM_FIELD], envelope[TO_FIELD], channel_id, msg);
  File "/home/pi/RouteFlow/pox/ext/rfproxy.py", line 173, in process
    ofmsg = create_flow_mod(msg)
  File "/home/pi/RouteFlow/pox/ext/rfofmsg.py", line 97, in create_flow_mod
    log.warning("Failed to serialise Match (type: %s)" % option._type)
UnboundLocalError: local variable 'option' referenced before assignment

What is this error?

Khoerul Anam

unread,
Dec 28, 2016, 1:49:57 AM12/28/16
to RouteFlow
Hello sir,

What do u mean about Mikrotik dp-id is anything different ? Now i am trying implementation RouteFlow on Mikrotik but the problem is real client can't to ping each other or my real client isn't detected. Maybe u could give me advice for this problem.
Thanks
Reply all
Reply to author
Forward
0 new messages