hi, Fujimoto
with setting roles and Async solution, if there are more than two controllers,
how can i distinguish between them?
my problem is, how can i sent packet-in to the exact controller?
thank you,
Mehran shetabi
________________________________
From: Fujimoto Satoshi <satoshi.fujimo...@gmail.com>
Sent: Tuesday, July 11, 2017 4:45 AM
To: mehran shetabi; ryu-devel@lists.sourceforge.net
Subject: Re: [Ryu-devel] how can i distinguish controllers for packet in to
them?
Hi, Mehran
how can i use OpenFlow channel in Mininet?
Sorry, OpenFlow channel is a connection which is used for OpenFlow protocol and
you already have.
What I meant was that you should have another connection between controllers
and the switch other than OpenFlow channel,
to exchange "raw" packets, not OpenFlow packets.
in the second solution, how can i retrieve Packet-in header?
As I said, in the second solution, the packets will be sent without Packet-in
header.
So, in this solution, there is no way to retrieve Packet-in header.
If you want to get Packet-in header, I think this solution is not suitable,
then you should apply the first solution (setting roles and Async).
Do you need to get Packet-in header?
If not, I try implementing and tell you how to implement the second solution.
Thanks,
Fujimoto
On 2017?07?11? 06:04, mehran shetabi wrote:
hi, Fujimoto
in the second solution, how can i retrieve Packet-in header?
is there any solution for it?
thank you,
Mehran shetabi
________________________________
From: Fujimoto Satoshi
<satoshi.fujimo...@gmail.com><mailto:satoshi.fujimo...@gmail.com>
Sent: Monday, July 10, 2017 5:35 AM
To: mehran shetabi;
ryu-devel@lists.sourceforge.net<mailto:ryu-devel@lists.sourceforge.net>;
satoshi.fujimo...@gmail.com<mailto:satoshi.fujimo...@gmail.com>
Subject: Re: [Ryu-devel] how can i distinguish controllers for packet in to
them?
Hi, Mehran
Unfortunately, you cannot use the port number which is connected to the
controller in OFPActionOutput().
However, if you can set roles(Master/Slave) to the controllers,
you can use OFPSetAsync to control whether the switch sends Packet-In to Master
or Slave controller:
http://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html#ryu.ofproto.ofproto_v1_3_parser.OFPSetAsync
Or, this is not a beautiful method, you can connect controllers and the switch
by another connection, like:
c1 ??of???sw ??of???c2
????????????????
???????????????? ("of" means an OpenFlow channel)
Then, you can specify the port number which is connected to the controller.
But the controller should receive packets in your application,
and the packets are "raw" packets, so the informations in the Packet-in header
will be lost.
Thanks,
Fujimoto
On 2017?07?10? 07:52, mehran shetabi wrote:
Hi,
In Mininet, I created a topology with one switch, two host, and two inband RYU
controller.
In OFPActionOutput() function, instead of using ofproto.OFPP_CONTROLLER for
output port may I use port number (e.g. 3) that connected to the controller?
If the answer is no, is there any way to distinguish controllers for packet in
to them?
Thank you,
Mehran shetabi
------------------------------------------------------------------------------
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-devel@lists.sourceforge.net<mailto:Ryu-devel@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-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel