Hi,

why is an arp drop rule added in the datapath when two bridges are
connected via a flow-based tunnel and both bridges are on the same host?

In the example picture I am attempting a ping from the client to the ws1.
Two bridges, sff1 and 2, ports listed also. Flows programmed are below the
picture. So arps from the client go into sff1(LOCAL), hit the broadcast
rule and arp sent out the tunnel. In the datapath, though, is the arp drop
rule so the arp request/response never completes.

If I put the sff2 bridge on a different host then everything works well.

I am guessing it is an issue with the shared datapath for both bridges when
on the same host and using flow-based tunnels. If I switch to port-based
tunnels then it works fine also. Is there some other config that can be
added to the bridges or different flows that can be used?

sudo ovs-dpctl dump-flows
skb_priority(0),in_port(1),eth(src=f6:00:00:00:00:01/00:00:00:00:00:00,dst=ff:ff:ff:ff:ff:ff/01:00:00:00:00:00),eth_type(0x0806),
packets:0, bytes:0, used:never,
actions:set(tunnel(tun_id=0xa,src=192.168.120.45,dst=192.168.120.46,tos=0x0,ttl=64,flags(df,key))),2
skb_priority(0),tunnel(tun_id=0xa,src=192.168.120.45,dst=192.168.120.46,tos=0x0,ttl=64,flags(key)),in_port(2),skb_mark(0),eth(src=f6:00:00:00:00:01/00:00:00:00:00:00,dst=ff:ff:ff:ff:ff:ff/01:00:00:00:00:00),eth_type(0x0806),
packets:0, bytes:0, used:never, actions:drop


+--+-----------+----+        +--+-----------+----+
|  1           2    |        |  1           2    |     +-----+
|                   | vxlan  |                   |     |     |
|       sff1       5+--------+5       sff2      6+-----+ ws1 |
| LOCAL             |        | LOCAL             |     |     |
+--+----------------+        +--+----------------+     +-----+
   |
   client web requests

sudo ovs-vsctl add-br sff1 -- set bridge sff1
other_config:hwaddr=f6:00:00:00:00:01
sudo ovs-vsctl add-port sff1 vx1 -- set Interface vx1 type=vxlan
options:remote_ip=flow options:local_ip=flow options:key=flow
ofport_request=5
sudo ip addr add dev sff1 192.168.120.45/24

sudo ovs-vsctl add-br sff2 -- set bridge sff2
other_config:hwaddr=f6:00:00:00:00:02
sudo ovs-vsctl add-port sff2 vx2 -- set Interface vx2 type=vxlan
options:remote_ip=flow options:local_ip=flow options:key=flow
ofport_request=5
sudo ip addr add dev sff2 192.168.120.46/24


sudo ovs-ofctl add-flow sff1 priority=0,actions=NORMAL
sudo ovs-ofctl add-flow sff1
"dl_dst=01:00:00:00:00:00/01:00:00:00:00:00,actions=set_field:10->tun_id,set_field:192.168.120.46->tun_dst,set_field:192.168.120.45->tun_src,output:5"
sudo ovs-ofctl add-flow sff1
"dl_dst=f6:00:00:0f:02:06,actions=set_field:10->tun_id,set_field:192.168.120.46->tun_dst,set_field:192.168.120.45->tun_src,output:5"

sudo ovs-ofctl add-flow sff2 priority=0,actions=NORMAL
sudo ovs-ofctl add-flow sff2
"dl_dst=f6:00:00:00:00:01,actions=set_field:10->tun_id,set_field:192.168.120.45->tun_dst,set_field:192.168.120.46->tun_src,output:5"
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to