Discussion:
[Ryu-devel] rest_firewall.py with rest_tolopolgy.py
Mahmoud Elzoghbi
2017-06-19 01:15:40 UTC
Permalink
when i run rest_firewall.py with rest_topology,py , i use Rest request
(http:://localhost:8080/v1.0/topology/hosts) to get all hosts that connect
with the switch but these request doesn't work (no response from this
request).

do you have any idea for this problem..
Fujimoto Satoshi
2017-06-20 04:21:30 UTC
Permalink
Hi, Mahmoud

Sorry, I couldn't reproduce your problem...

For further inspection, could you tell me the following? :
* The command which you ran
* Log messages of Ryu with '--verbose' option
* Diff of rest_firewall.py, if you modified rest_firewall.py

Thanks,
Fujimoto
Post by Mahmoud Elzoghbi
when i run rest_firewall.py with rest_topology,py , i use Rest request
(http:://localhost:8080/v1.0/topology/hosts) to get all hosts that
connect with the switch but these request doesn't work (no response
from this request).
do you have any idea for this problem..
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
Mahmoud Elzoghbi
2017-06-20 22:42:56 UTC
Permalink
Rest_topology.py module help me to get all hosts ' s mac address and ipv4
address by using rest request (http:/localhost:8080/v1.0/topology/hosts).
My problem is when i run Rest_topology.py with simple_switch.py it works
fine and get all hosts' s mac address but when I run Rest_topology.py with
rest_firewall.py It doesn't work.
Post by Fujimoto Satoshi
Hi, Mahmoud
Sorry, I couldn't reproduce your problem...
* The command which you ran
* Log messages of Ryu with '--verbose' option
* Diff of rest_firewall.py, if you modified rest_firewall.py
Thanks,
Fujimoto
when i run rest_firewall.py with rest_topology,py , i use Rest request
(http:://localhost:8080/v1.0/topology/hosts) to get all hosts that
connect with the switch but these request doesn't work (no response from
this request).
do you have any idea for this problem..
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fujimoto Satoshi
2017-06-21 01:12:40 UTC
Permalink
Hi, Mahmoud

Sorry, but I can't solve your problem without more information.
I want to know how you ran apps, it is needed to reproduce your problem.
So, could you tell me the command which you ran?

And, what "doesn't work" means?
It replies with empty list, or responds with 404?
It is helpful for me to tell me the response from rest_topology.py.

Thanks,
Fujimoto
Post by Mahmoud Elzoghbi
Rest_topology.py module help me to get all hosts ' s mac address and
ipv4 address by using rest request
(http:/localhost:8080/v1.0/topology/hosts).
My problem is when i run Rest_topology.py with simple_switch.py it
works fine and get all hosts' s mac address but when I run
Rest_topology.py with rest_firewall.py It doesn't work.
On Jun 20, 2017 6:21 AM, "Fujimoto Satoshi"
Hi, Mahmoud
Sorry, I couldn't reproduce your problem...
* The command which you ran
* Log messages of Ryu with '--verbose' option
* Diff of rest_firewall.py, if you modified rest_firewall.py
Thanks,
Fujimoto
Post by Mahmoud Elzoghbi
when i run rest_firewall.py with rest_topology,py , i use Rest
request (http:://localhost:8080/v1.0/topology/hosts) to get all
hosts that connect with the switch but these request doesn't work
(no response from this request).
do you have any idea for this problem..
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
Mahmoud Elzoghbi
2017-06-21 01:37:50 UTC
Permalink
It responses with empty list
Post by Fujimoto Satoshi
Hi, Mahmoud
Sorry, but I can't solve your problem without more information.
I want to know how you ran apps, it is needed to reproduce your problem.
So, could you tell me the command which you ran?
And, what "doesn't work" means?
It replies with empty list, or responds with 404?
It is helpful for me to tell me the response from rest_topology.py.
Thanks,
Fujimoto
Rest_topology.py module help me to get all hosts ' s mac address and ipv4
address by using rest request (http:/localhost:8080/v1.0/topology/hosts).
My problem is when i run Rest_topology.py with simple_switch.py it works
fine and get all hosts' s mac address but when I run Rest_topology.py with
rest_firewall.py It doesn't work.
Post by Fujimoto Satoshi
Hi, Mahmoud
Sorry, I couldn't reproduce your problem...
* The command which you ran
* Log messages of Ryu with '--verbose' option
* Diff of rest_firewall.py, if you modified rest_firewall.py
Thanks,
Fujimoto
when i run rest_firewall.py with rest_topology,py , i use Rest request
(http:://localhost:8080/v1.0/topology/hosts) to get all hosts that
connect with the switch but these request doesn't work (no response from
this request).
do you have any idea for this problem..
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fujimoto Satoshi
2017-06-21 02:33:43 UTC
Permalink
Hi, Mahmoud

First, rest_topology.py can find hosts only after the controller catch
the packet from hosts.
OTOH, by the default, rest_firewall.py drops all packets at the switch.
So, rest_topology.py could not find any hosts, because it catch no
packet from hosts.

To find hosts, you need to:
* enable the switch in order not to drop all packets
https://osrg.github.io/ryu-book/en/html/rest_firewall.html#changing-in-the-initial-state
* send packets from hosts in order to notify the host exists

Thanks,
Fujimoto
Post by Mahmoud Elzoghbi
It responses with empty list
On Jun 21, 2017 3:12 AM, "Fujimoto Satoshi"
Hi, Mahmoud
Sorry, but I can't solve your problem without more information.
I want to know how you ran apps, it is needed to reproduce your problem.
So, could you tell me the command which you ran?
And, what "doesn't work" means?
It replies with empty list, or responds with 404?
It is helpful for me to tell me the response from rest_topology.py.
Thanks,
Fujimoto
Post by Mahmoud Elzoghbi
Rest_topology.py module help me to get all hosts ' s mac address
and ipv4 address by using rest request
(http:/localhost:8080/v1.0/topology/hosts
<http:/localhost:8080/v1.0/topology/hosts>).
My problem is when i run Rest_topology.py with simple_switch.py
it works fine and get all hosts' s mac address but when I run
Rest_topology.py with rest_firewall.py It doesn't work.
On Jun 20, 2017 6:21 AM, "Fujimoto Satoshi"
Hi, Mahmoud
Sorry, I couldn't reproduce your problem...
* The command which you ran
* Log messages of Ryu with '--verbose' option
* Diff of rest_firewall.py, if you modified rest_firewall.py
Thanks,
Fujimoto
Post by Mahmoud Elzoghbi
when i run rest_firewall.py with rest_topology,py , i use
Rest request (http:://localhost:8080/v1.0/topology/hosts) to
get all hosts that connect with the switch but these request
doesn't work (no response from this request).
do you have any idea for this problem..
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
Mahmoud Elzoghbi
2017-06-21 12:28:46 UTC
Permalink
It is a great analysis, but after enable switch as a firewall and make ping
to make arp request to catch hosts mac by rest topology.py
It return empty list also
Post by Fujimoto Satoshi
Hi, Mahmoud
First, rest_topology.py can find hosts only after the controller catch the
packet from hosts.
OTOH, by the default, rest_firewall.py drops all packets at the switch.
So, rest_topology.py could not find any hosts, because it catch no packet
from hosts.
* enable the switch in order not to drop all packets
https://osrg.github.io/ryu-book/en/html/rest_firewall.
html#changing-in-the-initial-state
* send packets from hosts in order to notify the host exists
Thanks,
Fujimoto
It responses with empty list
Post by Fujimoto Satoshi
Hi, Mahmoud
Sorry, but I can't solve your problem without more information.
I want to know how you ran apps, it is needed to reproduce your problem.
So, could you tell me the command which you ran?
And, what "doesn't work" means?
It replies with empty list, or responds with 404?
It is helpful for me to tell me the response from rest_topology.py.
Thanks,
Fujimoto
Rest_topology.py module help me to get all hosts ' s mac address and ipv4
address by using rest request (http:/localhost:8080/v1.0/topology/hosts).
My problem is when i run Rest_topology.py with simple_switch.py it works
fine and get all hosts' s mac address but when I run Rest_topology.py with
rest_firewall.py It doesn't work.
Post by Fujimoto Satoshi
Hi, Mahmoud
Sorry, I couldn't reproduce your problem...
* The command which you ran
* Log messages of Ryu with '--verbose' option
* Diff of rest_firewall.py, if you modified rest_firewall.py
Thanks,
Fujimoto
when i run rest_firewall.py with rest_topology,py , i use Rest request
(http:://localhost:8080/v1.0/topology/hosts) to get all hosts that
connect with the switch but these request doesn't work (no response from
this request).
do you have any idea for this problem..
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fujimoto Satoshi
2017-06-22 00:38:26 UTC
Permalink
Hi, Mahmoud

Please confirm you've ran your apps with "--observe-links" option.
Without this, host detection won't work.

If the above does not solve your problem,
please tell me commands you ran to run your apps and to make ping.


Thanks,
Fujimoto
Post by Mahmoud Elzoghbi
It is a great analysis, but after enable switch as a firewall and make
ping to make arp request to catch hosts mac by rest topology.py
It return empty list also
On Jun 21, 2017 4:33 AM, "Fujimoto Satoshi"
Hi, Mahmoud
First, rest_topology.py can find hosts only after the controller
catch the packet from hosts.
OTOH, by the default, rest_firewall.py drops all packets at the switch.
So, rest_topology.py could not find any hosts, because it catch no
packet from hosts.
* enable the switch in order not to drop all packets
https://osrg.github.io/ryu-book/en/html/rest_firewall.html#changing-in-the-initial-state
<https://osrg.github.io/ryu-book/en/html/rest_firewall.html#changing-in-the-initial-state>
* send packets from hosts in order to notify the host exists
Thanks,
Fujimoto
Post by Mahmoud Elzoghbi
It responses with empty list
On Jun 21, 2017 3:12 AM, "Fujimoto Satoshi"
Hi, Mahmoud
Sorry, but I can't solve your problem without more information.
I want to know how you ran apps, it is needed to reproduce your problem.
So, could you tell me the command which you ran?
And, what "doesn't work" means?
It replies with empty list, or responds with 404?
It is helpful for me to tell me the response from
rest_topology.py.
Thanks,
Fujimoto
Post by Mahmoud Elzoghbi
Rest_topology.py module help me to get all hosts ' s mac
address and ipv4 address by using rest request
(http:/localhost:8080/v1.0/topology/hosts
<http:/localhost:8080/v1.0/topology/hosts>).
My problem is when i run Rest_topology.py with
simple_switch.py it works fine and get all hosts' s mac
address but when I run Rest_topology.py with
rest_firewall.py It doesn't work.
On Jun 20, 2017 6:21 AM, "Fujimoto Satoshi"
Hi, Mahmoud
Sorry, I couldn't reproduce your problem...
* The command which you ran
* Log messages of Ryu with '--verbose' option
* Diff of rest_firewall.py, if you modified
rest_firewall.py
Thanks,
Fujimoto
Post by Mahmoud Elzoghbi
when i run rest_firewall.py with rest_topology,py , i
use Rest request
(http:://localhost:8080/v1.0/topology/hosts) to get all
hosts that connect with the switch but these request
doesn't work (no response from this request).
do you have any idea for this problem..
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<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
https://lists.sourceforge.net/lists/listinfo/ryu-devel
Mahmoud Elzoghbi
2017-06-22 11:27:31 UTC
Permalink
I solved this problem by change the priority of rule of arp to be bigger
than drop rule

Thank you for your help
Post by Fujimoto Satoshi
Hi, Mahmoud
Please confirm you've ran your apps with "--observe-links" option.
Without this, host detection won't work.
If the above does not solve your problem,
please tell me commands you ran to run your apps and to make ping.
Thanks,
Fujimoto
It is a great analysis, but after enable switch as a firewall and make
ping to make arp request to catch hosts mac by rest topology.py
It return empty list also
Post by Fujimoto Satoshi
Hi, Mahmoud
First, rest_topology.py can find hosts only after the controller catch
the packet from hosts.
OTOH, by the default, rest_firewall.py drops all packets at the switch.
So, rest_topology.py could not find any hosts, because it catch no packet
from hosts.
* enable the switch in order not to drop all packets
https://osrg.github.io/ryu-book/en/html/rest_firewall.html#
changing-in-the-initial-state
* send packets from hosts in order to notify the host exists
Thanks,
Fujimoto
It responses with empty list
Post by Fujimoto Satoshi
Hi, Mahmoud
Sorry, but I can't solve your problem without more information.
I want to know how you ran apps, it is needed to reproduce your problem.
So, could you tell me the command which you ran?
And, what "doesn't work" means?
It replies with empty list, or responds with 404?
It is helpful for me to tell me the response from rest_topology.py.
Thanks,
Fujimoto
Rest_topology.py module help me to get all hosts ' s mac address and
ipv4 address by using rest request (http:/localhost:8080/v1.0/top
ology/hosts).
My problem is when i run Rest_topology.py with simple_switch.py it works
fine and get all hosts' s mac address but when I run Rest_topology.py with
rest_firewall.py It doesn't work.
Post by Fujimoto Satoshi
Hi, Mahmoud
Sorry, I couldn't reproduce your problem...
* The command which you ran
* Log messages of Ryu with '--verbose' option
* Diff of rest_firewall.py, if you modified rest_firewall.py
Thanks,
Fujimoto
when i run rest_firewall.py with rest_topology,py , i use Rest request
(http:://localhost:8080/v1.0/topology/hosts) to get all hosts that
connect with the switch but these request doesn't work (no response from
this request).
do you have any idea for this problem..
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Loading...