Discussion:
[Ryu-devel] ofctl_rest.py doesn't permit ping
Nicholas Brasini
2017-07-13 15:58:46 UTC
Permalink
Hi guys! I launched Ryu Controller with the command ryu-manager --verbose ryu/app/ofctl_rest.py and minimal topology in Mininet with sudo mn --topo single,2 --mac --controller remote --switch ovsk,protocols=OpenFlow13.


Now, if I surf to 192.168.56.101:8080/stats/switches it's ok, I see one switch, but ping between h1 and h2 doesn't work! How can I do??


Thanks
Iwase Yusuke
2017-07-14 00:26:45 UTC
Permalink
Hi,

"ryu/app/ofctl_rest.py" installs no flow entry for forwarding packets.
To permit ping, you need to run ofctl_rest.py with other applications or
install flow entries for forwarding manually.
e.g.) Run ofctl_rest.py with the simple leaning switch application
$ ryu-manager ryu/app/ofctl_rest.py ryu/app/simple_switch_13.py

Thanks,
Iwase


On 2017年07月14日 00:58, Nicholas Brasini wrote:
> Hi guys! I launched Ryu Controller with the command ryu-manager --verbose ryu/app/ofctl_rest.py and
> minimal topology in Mininet with sudo mn --topo single,2 --mac --controller remote --switch
> ovsk,protocols=OpenFlow13.
>
>
> Now, if I surf to 192.168.56.101:8080/stats/switches it's ok, I see one switch, but ping between h1
> and h2 doesn't work! How can I do??
>
>
> Thanks
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
>
> _______________________________________________
> Ryu-devel mailing list
> Ryu-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
Nicholas Brasini
2017-07-14 10:15:37 UTC
Permalink
Excellent, it works!! Now, I have another question. If I want launch a html page in localhost which prints the Open Flow traffic, how can I do? For example, I start Mamp PRO, I go to localhost:8080/sniffer.html and I press a button. Now, I want see, for example, the same that I see if I digit 192.168.56.101:8080/stats/switches. Is it possible?


________________________________
Da: Iwase Yusuke <***@gmail.com>
Inviato: venerdš¬ 14 luglio 2017 02:26
A: ***@hotmail.it
Cc: ryu-***@lists.sourceforge.net
Oggetto: Re: [Ryu-devel] ofctl_rest.py doesn't permit ping

Hi,

"ryu/app/ofctl_rest.py" installs no flow entry for forwarding packets.
To permit ping, you need to run ofctl_rest.py with other applications or
install flow entries for forwarding manually.
e.g.) Run ofctl_rest.py with the simple leaning switch application
$ ryu-manager ryu/app/ofctl_rest.py ryu/app/simple_switch_13.py

Thanks,
Iwase


On 2017Äê07ÔÂ14ÈÕ 00:58, Nicholas Brasini wrote:
> Hi guys! I launched Ryu Controller with the command ryu-manager --verbose ryu/app/ofctl_rest.py and
> minimal topology in Mininet with sudo mn --topo single,2 --mac --controller remote --switch
> ovsk,protocols=OpenFlow13.
>
>
> Now, if I surf to 192.168.56.101:8080/stats/switches it's ok, I see one switch, but ping between h1
> and h2 doesn't work! How can I do??
>
>
> Thanks
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
>
> _______________________________________________
> Ryu-devel mailing list
> Ryu-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
Iwase Yusuke
2017-07-18 01:27:19 UTC
Permalink
This post might be inappropriate. Click to display it.
Nicholas Brasini
2017-07-18 14:38:25 UTC
Permalink
This post might be inappropriate. Click to display it.
Iwase Yusuke
2017-07-20 00:45:06 UTC
Permalink
Hi,

If you prefer to use ofctl_rest.py, for example, you can use "/stats/flowentry/add" from your Web
application, I guess.
http://ryu.readthedocs.io/en/latest/app/ofctl_rest.html#add-a-flow-entry
Please note that for stopping or accepting some traffic by using OpenFlow, you need to design your
own flow entries and install them.

Thanks,
Iwase

On 2017年07月18日 23:38, Nicholas Brasini wrote:
> Yes! If I want stop traffic when a packet arrives, and if I want select Yes -> ok or No -> delete
> that packet, what function might I use?
>
>
>
> ----------------------------------------------------------------------------------------------------
> *Da:* Iwase Yusuke <***@gmail.com>
> *Inviato:* martedì 18 luglio 2017 03:27
> *A:* ***@hotmail.it
> *Cc:* ryu-***@lists.sourceforge.net
> *Oggetto:* Re: [Ryu-devel] ofctl_rest.py doesn't permit ping
> Hi,
>
> You want to implement Web Application which shows OpenFlow informations, right?
>
> Well... I guess it is depending on your application design.
> Ryu provides many APIs to control OpenFlow messages, you can implement your own App by useing
> Django, Flask, or your favorite Web framework.
>
> Thanks,
> Iwase
>
> On 2017年07月14日 19:15, Nicholas Brasini wrote:
>> Excellent, it works!! Now, I have another question. If I want launch a html page in localhost which
>> prints the Open Flow traffic, how can I do? For example, I start Mamp PRO, I go to
>> localhost:8080/sniffer.html and I press a button. Now, I want see, for example, the same that I see
>> if I digit 192.168.56.101:8080/stats/switches. Is it possible?
>>
>>
>>
>> ----------------------------------------------------------------------------------------------------
>> *Da:* Iwase Yusuke <***@gmail.com>
>> *Inviato:* venerdì 14 luglio 2017 02:26
>> *A:* ***@hotmail.it
>> *Cc:* ryu-***@lists.sourceforge.net
>> *Oggetto:* Re: [Ryu-devel] ofctl_rest.py doesn't permit ping
>> Hi,
>>
>> "ryu/app/ofctl_rest.py" installs no flow entry for forwarding packets.
>> To permit ping, you need to run ofctl_rest.py with other applications or
>> install flow entries for forwarding manually.
>> e.g.) Run ofctl_rest.py with the simple leaning switch application
>> $ ryu-manager ryu/app/ofctl_rest.py ryu/app/simple_switch_13.py
>>
>> Thanks,
>> Iwase
>>
>>
>> On 2017年07月14日 00:58, Nicholas Brasini wrote:
>>> Hi guys! I launched Ryu Controller with the command ryu-manager --verbose ryu/app/ofctl_rest.py and
>>> minimal topology in Mininet with sudo mn --topo single,2 --mac --controller remote --switch
>>> ovsk,protocols=OpenFlow13.
>>>
>>>
>>> Now, if I surf to 192.168.56.101:8080/stats/switches it's ok, I see one switch, but ping between h1
>>> and h2 doesn't work! How can I do??
>>>
>>>
>>> Thanks
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>>
>>>
>>>
>>> _______________________________________________
>>> Ryu-devel mailing list
>>> Ryu-***@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>
>>
>>
>> _______________________________________________
>> Ryu-devel mailing list
>> Ryu-***@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
>
> _______________________________________________
> Ryu-devel mailing list
> Ryu-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
Loading...