Application simple_switch RYU on ZodiacFX

  • 5 Replies
  • 988 Views
*

rlozano

  • Newbie
  • *
  • 3
    • View Profile
Application simple_switch RYU on ZodiacFX
« on: February 16, 2018, 07:54:12 PM »
Hi!
My problem is the following:
I install RYU controller in my RaspberryPi and I have  connect it to the port 4 of the ZodiacFX. I run the default application of RYU simple_switch_13_port and  it runs correctly but when I connect two devices to port 1 and 2 to the ZodiacFX and I execute a PING from one device to another the ping only works from one device to another (only In one direction).

I tried to change port devices:
         Device one in Port 3 - Device two in port 1
         Device one in Port 2 - Device two in port 1
         Device one in Port 2 - Device two in port 3
         Device one in Port 1 - Device two in port 3
                                        .........
I can always only do Ping from device ONE to device TWO  in any couple of ports :( .
Also I tried to connect another device thinking that device two was failing and it was not the case.  :-\

My settings are:

     Raspberry eth0: 10.0.1.8

     Zodiaz FX:
             IP Address: 10.0.1.99
             Netmask: 255.255.255.0
             Gateway: 10.0.1.1
             OpenFlow Controller: 10.0.1.8
             Openflow Status: Enabled
                             ..........
     Device One ip (windows laptop) : 10.0.1.20/24
     
     Device Two ip (windows laptop) :  10.0.1.30/24


Note:
I have sniffed the traffic in both devices with Wireshark Tool and i can see that the package ICMP (ping) of the ONE device  arrives at device TWO (request ICMP) but the device two not sends its reply package.

somebody could help me? :) Thanks!




         

*

Paul Zanna

  • Moderator
  • Sr. Member
  • *****
  • 367
    • View Profile
    • Northbound Networks
Re: Application simple_switch RYU on ZodiacFX
« Reply #1 on: February 16, 2018, 08:17:59 PM »
Hi,

First run the simple switch app using PYTHONPATH=. ryu-manager --verbose /Library/Python/2.7/site-packages/ryu/app/simple_switch_13.py and check what flows are created on the Zodiac FX. You should also see debug output from RYU when packet ins happen.

Regards,
Paul

*

rlozano

  • Newbie
  • *
  • 3
    • View Profile
Re: Application simple_switch RYU on ZodiacFX
« Reply #2 on: February 16, 2018, 08:50:59 PM »
 OK, Ok, I'll try it that way.
Before I had tried it this way on the raspbian command line : $ ryu-manager --verbose ryu/ryu/app/simple_switch_13.py     
Without "PYTHONPATH=."   ,when I try, I'll tell you.

Thank you very much  :D

*

Paul Zanna

  • Moderator
  • Sr. Member
  • *****
  • 367
    • View Profile
    • Northbound Networks
Re: Application simple_switch RYU on ZodiacFX
« Reply #3 on: February 16, 2018, 09:44:46 PM »
If it worked without the PYTHONPATH before then it should be fine, it was more about checking the flows and the RYU debug output.

Regards,
Paul

*

rlozano

  • Newbie
  • *
  • 3
    • View Profile
Re: Application simple_switch RYU on ZodiacFX
« Reply #4 on: February 20, 2018, 02:19:55 AM »
hellow again,

I saw the flow generated and i think all is normal but  I still can not ping from a device. I have attached some photos.
For run app RYU i use this command:  $ ryu-manager --verbose ryu/ryu/app/simple_switch_13.py     and the app starts to exchange flow (see image).
I have also attached a photo of the flows of the table in the Zodiac fx.
I do not know what may be happening  :-\

Regards.



*

Paul Zanna

  • Moderator
  • Sr. Member
  • *****
  • 367
    • View Profile
    • Northbound Networks
Re: Application simple_switch RYU on ZodiacFX
« Reply #5 on: February 21, 2018, 03:27:32 PM »
It doesn't look like an OpenFlow issue but more like a routing problem. Do you have the same IP settings on the client machines (default gateway, net mask, single interface, etc.)?

Regards,
Paul