Re: [Ryu-devel] Spliting flows through two ports

2018-03-27 Thread Jose Carlos Ferreira de Melo Junior
Hi Iwase,

The group entry is added...















but I don't understand how can be looked up.
I don't know how to do this


Is there any other thing that I am missing 


thanks in advanced







2018-03-26 20:28 GMT-03:00 Iwase Yusuke :

> Hi Carlos,
>
> >  "*/using the group table with openflow 1.3 with no sucess/*" means that
> I am
> > using the group table as i said before and it is not working, means that
> I am
> > using the group specification and it doens't work.
>
> "Does not work" means
>  - no group entry added
>  - group entry exists, but not looked up
>  - group entry looked up, but packets are not outputted
>  or ...
> which you mean?
>
>
> > and about your topology: It has only 2 switches or 4???
>
> Only 2 switches (s1 and s2), which corresponding to "Start" and "End"
> switches
> on the image you attached on your previous mail. Also h1 and h2 represents
> hosts
> which do ping.
>
>
> Thanks,
> Iwase
>
> On 2018年03月26日 21:14, Jose Carlos Ferreira de Melo Junior wrote:
>
>> Hey Iwase,
>>
>>   "*/using the group table with openflow 1.3 with no sucess/*" means that
>> I am using the group table as i said before and it is not working, means
>> that I am using the group specification and it doens't work.
>>
>> and about your topology: It has only 2 switches or 4???
>>
>> i don't know if my code is right or if i am missing something else.
>>
>>
>>
>>
>> 2018-03-25 21:40 GMT-03:00 Iwase Yusuke  iwase.yusu...@gmail.com>>:
>>
>>
>> Hi Carlos,
>>
>> For such purpose, OFPGT_SELECT is appropriate, I guess.
>>
>> With the topology;
>>
>>++ ++
>>|   s1   | |   s2   |
>> ++|  (port 2)---(port 2)  |++
>> | h1 |---(port 1)  | |  (port 1)---| h2 |
>> ++|  (port 3)---(port 3)  |++
>>|| ||
>>++ ++
>>
>>
>> I can install groups and flows entries, then can ping between h1 and
>> h2 with the
>> following app.
>>
>>
>> $ git diff
>> diff --git a/ryu/app/simple_switch_13.py b/ryu/app/simple_switch_13.py
>> index 06a5d0e..e1a5c3b 100644
>> --- a/ryu/app/simple_switch_13.py
>> +++ b/ryu/app/simple_switch_13.py
>> @@ -48,6 +48,30 @@ class SimpleSwitch13(app_manager.RyuApp):
>> ofproto.OFPCML_NO_BUFFER)]
>>   self.add_flow(datapath, 0, match, actions)
>>
>> +buckets = [
>> +parser.OFPBucket(
>> +50, ofproto.OFPP_ANY, ofproto.OFPG_ANY,
>> +[parser.OFPActionOutput(2)]),
>> +parser.OFPBucket(
>> +50, ofproto.OFPP_ANY, ofproto.OFPG_ANY,
>> +[parser.OFPActionOutput(3)]),
>> +]
>> +mod = parser.OFPGroupMod(
>> +datapath, ofproto.OFPGC_ADD, ofproto.OFPGT_SELECT, 1,
>> buckets)
>> +datapath.send_msg(mod)
>> +
>> +match = parser.OFPMatch(in_port=1)
>> +actions = [parser.OFPActionGroup(1)]  # from host to switch
>> +self.add_flow(datapath, 1, match, actions)
>> +
>> +match = parser.OFPMatch(in_port=2)
>> +actions = [parser.OFPActionOutput(1)]  # from switch to host
>> +self.add_flow(datapath, 1, match, actions)
>> +
>> +match = parser.OFPMatch(in_port=3)
>> +actions = [parser.OFPActionOutput(1)]  # from switch to host
>> +self.add_flow(datapath, 1, match, actions)
>> +
>>   def add_flow(self, datapath, priority, match, actions,
>> buffer_id=None):
>>   ofproto = datapath.ofproto
>>   parser = datapath.ofproto_parser
>>
>>
>> I don't know what "using the group table with openflow 1.3 with no
>> sucess"
>> means, but please confirm your group and flow table again.
>>
>> Thanks,
>> Iwase
>>
>>
>> On 2018年03月23日 21:11, Jose Carlos Ferreira de Melo Junior wrote:
>>
>> Hey Iwase,
>>
>>
>> Split means really divide the flow I dont know if would be like a
>> load
>> balancing (I think it is)
>>
>> For example the image below
>>
>>
>>
>>
>> But I dont know if this would be possible using the group table.
>>
>> 2018-03-23 4:04 GMT-03:00 Iwase Yusuke >  >
>> >>:
>>
>>
>>  Hi Carlos,
>>
>>  What does "split flows" exactly mean?
>>
>>   > req = parser.OFPGroupMod(datapath, ofp.OFPFC_ADD,
>> ofp.OFPGT_SELECT,
>>   >  group_id, buckets)
>>
>>  If you specify OFPGT_SELECT, switch will execute "one"
>> 

[Ryu-devel] Sending Packet out from Ryu controller to Ryu controller

2018-03-27 Thread emi.hacker via Ryu-devel
Hello all,

I built my topology to send Table-Miss Packets from (S1 or S2 ) to C2 through 
S3, I need to send the same packet from C2 to C1, and then C1 installs the 
instruction into S1.




C1                             C2 |   \                              |S1 S2 
S3

Is there any previous example !!?



Thanks in advance
Nadim --
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


[Ryu-devel] (AD)商业秘密保护策略

2018-03-27 Thread 郑�漳
Message-ID: <122685122685122685122685122685122685122685122685122685122685>
From: =ryu-devel= 
To: 

ÈçºÎ±ÜÃâÉÌÒµÃØÃÜÔÚÈËÔ±Á÷¶¯Öб»ÇÖ·¸

¸½¼þ Ϊ ¿Î³Ì´ó¸Ù£¬ÇëÄú²éÔÄ£¡

·¢ËÍʱ¼ä:2018-03-27  21:03:01


ÈçºÎ±ÜÃâÉÌÒµÃØÃÜÔÚÈËÔ±Á÷¶¯Öб»ÇÖ·¸.docx
Description: Binary data
--
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