Hi, Tahereh
Umm, that sounds strange for me...
Could you give me the source code of your app?
If so, I try to reproduce your situation and find out what is going wrong.
Thanks,
Fujimoto
On 2017年06月20日 14:16, Tahereh Yaghoubi wrote:
Hi, Satoshi
Packet destination is not changed and I can see it in the wireshark.
The packet in the first node is matched with this rule:
flow entry:
cookie=0x0, duration=10.280s, table=0, n_packets=0, n_bytes=0,
vlan_tci=0x1000/0x1000,dl_dst=10:00:00:00:00:02 actions=group:6
group entry:
group_id=6,type=ff,bucket=watch_port:1,actions=output:1,
bucket=watch_port:2,actions=output:2,set_field:4162->vlan_vid
but in the next node it is dropped.
Thanks
On Tue, Jun 20, 2017 at 9:28 AM, Fujimoto Satoshi
<satoshi.fujimo...@gmail.com <mailto:satoshi.fujimo...@gmail.com>> wrote:
Hi, Tahereh
I capture the input port of next node in wireshark, vlan_id is
correct, but the packet is dropped!
Could you check 'dl_dst' in the packet, too?
The rule you installed seems to have two match fields, 'dl_vlan'
and 'dl_dst':
cookie=0x0, duration=1447.496s, table=0, n_packets=0, n_bytes=0,
priority=32770,dl_vlan=198,dl_dst=10:00:00:00:00:02 actions=output:2
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
So packets will be dropped unless it satisfies all of these match
fields.
Thanks,
Fujimoto
On 2017年06月19日 16:49, Tahereh Yaghoubi wrote:
Hi,
I'm trying to implement a Ryu app that calculates main and backup
paths and save their rules in flow & group tables.
in my code I need to use vlan_id for tagging packets in group
table actions like this:
group_id=6,type=ff,bucket=weight:0,watch_port:2,actions=output:2,bucket=weight:0,watch_port:1,actions=output:1,set_field:4358->vlan_vid
when i down port 2 (in mininet) , it adds vlan_id= 198 and sends
the packet from port 1, but in the next node the packet does not
match with this rule:
cookie=0x0, duration=1447.496s, table=0, n_packets=0, n_bytes=0,
priority=32770,dl_vlan=198,dl_dst=10:00:00:00:00:02 actions=output:2
I capture the input port of next node in wireshark, vlan_id is
correct, but the packet is dropped!
my Ryu code is like this:
buckets.append(parser.OFPBucket(watch_port=_port,actions=[
parser.OFPActionOutput(_port),
parser.OFPActionSetField(vlan_vid=ofp.OFPVID_PRESENT | failure_id)
]))
match =parser.OFPMatch(vlan_vid=(failure_id |
ofp.OFPVID_PRESENT),eth_dst=dst_)
Thanks in advance
-Tahereh
------------------------------------------------------------------------------
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
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>
--
Tahereh Yaghoubi
------------------------------------------------------------------------------
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
------------------------------------------------------------------------------
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