Hi, Pablo
On 2014年11月19日 10:07, Pablo M. Guevara wrote:
> Hello Team,
> I'm trying to add a flow to flood packets when coming in on a given port. I
> tried all these options but I always get the same result, packet dropped.
>
> curl -X POST -d '{"dpid": "1","match": {"in_port":"1"}, "hard_timeout": "0",
> "idle_timeout": "0", "actions": [{"type": "OFPP_FLOOD"}]}'
> http://argenta2:8080/stats/flowentry/add
>
> curl -X POST -d '{"dpid": "1","match": {"in_port":"1"}, "hard_timeout": "0",
> "idle_timeout": "0", "actions": [{"type": "ALL"}]}'
> http://argenta2:8080/stats/flowentry/add
>
> curl -X POST -d '{"dpid": "1","match": {"in_port":"1"}, "hard_timeout": "0",
> "idle_timeout": "0", "actions": [{"type": "OFPP_ALL"}]}'
> http://argenta2:8080/stats/flowentry/add
>
> The resulting flow is always:
>
> {
> "actions": [], --> DROP
> "idle_timeout": 0,
> "cookie": 0,
> "packet_count": 0,
> "hard_timeout": 0,
> "byte_count": 0,
> "length": 64,
> "duration_nsec": 29000000,
> "priority": 0,
> "duration_sec": 12,
> "table_id": 0,
> "flags": 0,
> "match": {
> "in_port": 1
> }
> }
The syntax of the OUTPUT action is as follows.
"actions": [{"type": "OUTPUT", "port": <port_num>}]
<port_num>: Please set the port number or "Reserved OpenFlow Port(*)".
(*) Please refer to page 49 of OFspec 1.3.4.
So, if you want to add the flow to flood the packet, please try the following.
curl -X POST -d '{"dpid": "1","match": {"in_port":"1"}, "hard_timeout": "0",
"idle_timeout": "0", "actions": [{"type":"OUTPUT", "port": 4294967291}]}'
http://argenta2:8080/stats/flowentry/add
Note:
page 49 of OFspec 1.3.4 says:
OFPP_FLOOD = 0xfffffffb, / * Flood using non-OpenFlow pipeline. * /
and,
0xfffffffb = 4294967291
Just for your information, the following URL has describes how to use the
ofctl_rest.
It might be your help.
http://ryu.readthedocs.org/en/latest/app/ofctl_rest.html#add-a-flow-entry
Thanks
>
> What could be wrong? I'm testing with fresh copy from ryu repo and mininet,
> OFv1.3:
>
> ryu-manager --verbose --observe-links
> ~/ryu/ryu/app/gui_topology/gui_topology.py
>
>
> If I add flows for specific output ports I get the desired result, I just can
> not get to find what is the right syntax for flooding.
>
> Thanks,
>
> Pablo.
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
>
>
>
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel