Hi,
On 2014年08月23日 19:28, Jalee Lee wrote:
> Hi Yusuke,
> I saw you have create new core for flow entry filter by fields, that is
> good news for me.
> I have some question need your help clarify.
> Can you tell me about field item relationship is "or" or "and"?
> Such as:
> You can see tested result as below.
> I use filter by 4 fields, but I found the key point are table_id and match
> field. So the priority and cookie can be work?
ofctl_rest use OFPFlowStats request to get flow entries.
In Open Flow Spec(OF1.3), OFPFlowStats contains the fields as follows.
- table_id
- out_port
- out_group
- cookie
- cookie_mask
- match
/stats/flow messages(ofctl_rest) cat filter by these fields only.
>
> Thanks,
>
> Best Regards,
>
> Jalee
>
> lab@lab-hackertools:~/jalee-python$ curl -X POST -d '{"table_id": 0,
>> "priority": 23999,
>> "cookie": 1,
>> "match":{"ipv4_src": "31.0.0.0/24",}}'
>> http://10.1.25.52:8080/stats/flow/2
> {"2": [{"actions": ["SET_FIELD: {eth_dst:0e:00:5e:0a:0a:0a}", "SET_FIELD:
> {eth_src:00:08:11:0a:0a:0a}", "SET_FIELD: {vlan_pcp:1}", "SET_FIELD:
> {vlan_vid:26112}", "SET_FIELD: {ipv4_src:100.0.0.1}", "SET_FIELD:
> {ipv4_dst:200.0.0.1}", "SET_FIELD: {tcp_src:1293}", "SET_FIELD:
> {tcp_dst:23569}", "OUTPUT:2", "OUTPUT:48"], "idle_timeout": 0, "cookie":
> 1, "packet_count": 397972, "hard_timeout": 0, "byte_count": 31041816,
> "duration_nsec": 198052000, "priority": 63999, "duration_sec": 84,
> "table_id": 0, "match": {"dl_type": 2048, "nw_dst": "40.0.0.0/24",
> "vlan_pcp": 0, "dl_src": "00:90:22:22:22:22/ff:ff:ff:ff:ff:ff",
> "nw_proto": 6, "tp_dst": 22222, "tp_src": 11111, "dl_dst":
> "00:90:11:11:11:11/ff:ff:ff:ff:ff:ff", "dl_vlan": 101, "nw_src":
> "31.0.0.0/24", "in_port": 46}}]}
To filter by the cookie fields, the cookie_mask fields are required.
(The default value of cookie_mask is 0.)
---
cookie_mask Mask used to restrict the cookie bits that must match.
---
curl -X POST -d '{"table_id": 0,
"priority": 23999,
"cookie": 1,
"cookie_mask": 1,
"match":{"ipv4_src": "31.0.0.0/24",}}'
http://10.1.25.52:8080/stats/flow/2
>
>
>
>
>
> 於 8/18/14, 15:44,"Jalee Lee" <[email protected]> 寫道:
>
>> Thanks Yusuke. Waiting for your good news.
>> Best Regards,
>>
>> Jalee
>>
>> 於 8/18/14, 15:00,"Yusuke Iwase" <[email protected]> 寫道:
>>
>>> Hi,
>>>
>>> On 2014年08月15日 01:08, Jalee Lee wrote:
>>>> Hi Takahashi,
>>>> As I know we can get all flow stats, but if we have over 100K
>>>> flow-entry,
>>>> this command will be occur some impact.
>>>> So, if possible can we by something filter get flow stats?
>>>>
>>>>
>>>> curl -X GET http://10.1.25.52:8080/stats/flow/2/cookie
>>>>
>>>> curl -X GET http://10.1.25.52:8080/stats/flow/2/priority
>>>>
>>>> curl -X GET http://10.1.25.52:8080/stats/flow/2/match-field
>>>>
>>>> curl -X GET http://10.1.25.52:8080/stats/flow/2/actions
>>>>
>>>
>>> There is no implementation to get flows filtered by each field.
>>> I will try to make a patch.
>>>
>>>>
>>>> Thanks,
>>>>
>>>>
>>>> Jalee
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> ========================================================================
>>>> =
>>>> ===========
>>>> This message may contain information which is private, privileged or
>>>> confidential of INNO-Tech Network & Service Inc.
>>>> If you are not the intended recipient of this message, please notify
>>>> the sender and destroy/delete the message.
>>>> Any review, retransmission, dissemination or other use of, or taking
>>>> of
>>>> any action in reliance upon this information,
>>>> by persons or entities other than the intended recipient is prohibited.
>>>>
>>>> ========================================================================
>>>> =
>>>> ===========
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------
>>>> -
>>>> -----
>>>> _______________________________________________
>>>> Ryu-devel mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>>>
>
>
>
>
> ====================================================================================
> This message may contain information which is private, privileged or
> confidential of INNO-Tech Network & Service Inc.
> If you are not the intended recipient of this message, please notify the
> sender and destroy/delete the message.
> Any review, retransmission, dissemination or other use of, or taking of any
> action in reliance upon this information,
> by persons or entities other than the intended recipient is prohibited.
> ====================================================================================
>
>
>
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel