(2014年07月22日 23:06), jalee wrote:
> Dear support team,
>
> I use ryu3.11+restful-adp(please see as below) I found out controller no send
> match field "tcp port"(please see attached file packet 9),
>
> Is my miss something? Please help verify this? Thanks,
>
>
>
> Jalee
>
>
>
> Controller is run: sudo ryu-manager ofctl_rest.py --verbose
>
>
>
> curl -d '{"cookie": "1",
>
> "dpid": "5",
>
> "priority": "23999",
>
> "idle_timeout": "0",
>
> "hard_timeout": "0",
>
> "table_id": "0",
>
> "match": {"in_port": "3",
>
> "eth_dst": "009011111111",
>
> "eth_src": "009022222222",
>
> "eth_type": "2048",
>
> "vlan_vid": "101",
Just for your information, I think OFPVID_PRESENT is bitwise-OR'ed with VID.
enum ofp_vlan_id {
OFPVID_PRESENT = 0x1000, /* Bit that indicate that a VLAN id is set */
OFPVID_NONE = 0x0000, /* No VLAN id was set. */
};
OF 1.3.4 spec (Table 13: Match combinations for VLAN tags.) says:
"value | OFPVID_PRESENT" matches packets with VLAN tag and VID equal value.
Therefore, please be modified as follows(101 | 4096 = 4197).
"vlan_vid": "4197",
>
> "vlan_pcp": "0",
>
> "ip_proto": "6",
Please correct the following:
"ip_proto": 6,
^^^
For implementation is not good, I will create a patch.
>
> "ipv4_src": "30.0.0.0/24",
>
> "ipv4_dst": "40.0.0.0/24",
>
> "tcp_src": "11111",
>
> "tcp_dst": "22222"},
>
> "actions":
> [{"type":"SET_FIELD","field":"eth_dst","value":"0e:00:5e:0a:0a:0a"},
>
>
> {"type":"SET_FIELD","field":"eth_src","value":"00:08:11:0a:0a:0a"},
>
> {"type":"SET_FIELD","field":"vlan_pcp","value":1},
>
> {"type":"SET_FIELD","field":"vlan_vid","value":102},
And OF 1.3.4 spec (7.2.5 Action Structures) says:
The value in the payload of the OXM TLV must be valid, in particular the
OFPVID_PRESENT
bit must be set in OXM_OF_VLAN_VID set-field actions.
Here as well,please be modified as follows(102 | 4096 = 4198).
{"type":"SET_FIELD","field":"vlan_vid","value":4198},
>
>
> {"type":"SET_FIELD","field":"ipv4_src","value":"100.0.0.1"},
>
>
> {"type":"SET_FIELD","field":"ipv4_dst","value":"200.0.0.1"},
>
> {"type":"SET_FIELD","field":"tcp_src","value":3333},
>
> {"type":"SET_FIELD","field":"tcp_dst","value":4444},
>
> {"type":"OUTPUT","port":"5"},
>
> {"type":"OUTPUT","port":"7"}]}'
> http://10.1.25.52:8080/stats/flowentry/add
>
>
>
>
> ====================================================================================
> 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.
> ====================================================================================
>
>
> ------------------------------------------------------------------------------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
>
>
>
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel