[ovs-discuss] ovs dpdk vxlan does NOT work

Na Zhu zhunatuzi at gmail.com
Wed Sep 23 00:49:43 UTC 2015


Hi,

My version is 2.4.90, i download from ovs github and build it myself.

[root at juno bin]# ./ovs-vsctl --version
ovs-vsctl (Open vSwitch) 2.4.90
Compiled Sep 19 2015 08:46:02
DB Schema 7.12.1

[root at juno bin]# ./ovs-appctl dpif/show
netdev at ovs-netdev: hit:246440 missed:9259
        br-vxlan:
                bond0 1/2: (system)
                br-vxlan 65534/1: (tap)
        br0:
                br0 65534/3: (tap)
                vxlan0 1/4: (vxlan: remote_ip=10.53.87.254)
[root at juno bin]# ./ovs-appctl dpif/dump-flows br0
[root at juno bin]#

[root at juno bin]# ./ovs-appctl dpif/dump-flows br-vxlan
recirc_id(0),in_port(2),eth(src=00:25:90:2e:11:0c,dst=00:25:90:2e:0e:a4),eth_type(0x0800),ipv4(dst=10.53.87.242,proto=6/0x1,frag=no),
packets:1216, bytes:152197, used:0.143s, flags:SFP., actions:1
recirc_id(0),in_port(2),eth(src=52:54:00:09:28:0d,dst=ff:ff:ff:ff:ff:ff),eth_type(0x0806),arp(sip=10.52.36.106,tip=10.52.36.102,op=1/0xff,sha=52:54:00:09:28:0d),
packets:132, bytes:7920, used:0.618s, actions:1
recirc_id(0),in_port(2),eth(src=00:50:56:89:4b:74,dst=ff:ff:ff:ff:ff:ff),eth_type(0x0806),arp(sip=10.53.34.233,tip=10.53.34.234,op=1/0xff,sha=00:50:56:89:4b:74),
packets:85, bytes:5100, used:0.826s, actions:1
recirc_id(0),in_port(2),eth(src=00:0c:29:e5:88:e4,dst=01:00:5e:00:00:12),eth_type(0x0800),ipv4(frag=no),
packets:139, bytes:8340, used:0.616s, actions:1
recirc_id(0),in_port(2),eth(src=00:08:e3:ff:fd:90,dst=ff:ff:ff:ff:ff:ff),eth_type(0x0806),arp(sip=10.55.60.1,tip=10.55.60.4,op=1/0xff,sha=00:08:e3:ff:fd:90),
packets:6, bytes:360, used:4.789s, actions:1
recirc_id(0),in_port(2),eth(src=00:50:56:bc:29:13,dst=01:00:5e:00:00:12),eth_type(0x0800),ipv4(frag=no),
packets:30, bytes:1800, used:0.704s, actions:1
recirc_id(0),in_port(2),eth(src=00:0c:29:10:67:d2,dst=01:00:5e:00:00:12),eth_type(0x0800),ipv4(frag=no),
packets:139, bytes:8340, used:0.648s, actions:1
recirc_id(0),in_port(2),eth(src=00:50:56:bc:52:5e,dst=ff:ff:ff:ff:ff:ff),eth_type(0x0806),arp(sip=10.54.159.98,tip=10.54.159.100,op=1/0xff,sha=00:50:56:bc:52:5e),
packets:77, bytes:4620, used:0.265s, actions:1
recirc_id(0),in_port(2),eth(src=52:54:00:23:82:5d,dst=ff:ff:ff:ff:ff:ff),eth_type(0x0806),arp(sip=10.52.36.107,tip=10.52.36.102,op=1/0xff,sha=52:54:00:23:82:5d),
packets:95, bytes:5700, used:2.460s, actions:1
recirc_id(0),in_port(2),eth(src=00:0c:29:51:d5:16,dst=01:00:5e:00:00:12),eth_type(0x0800),ipv4(frag=no),
packets:140, bytes:8400, used:0.328s, actions:1
recirc_id(0),in_port(2),eth(src=00:50:56:89:1f:74,dst=ff:ff:ff:ff:ff:ff),eth_type(0x0806),arp(sip=10.53.34.235,tip=10.53.34.230,op=1/0xff,sha=00:50:56:89:1f:74),
packets:99, bytes:5940, used:0.553s, actions:1
recirc_id(0),in_port(2),eth(src=52:54:00:b6:0c:50,dst=ff:ff:ff:ff:ff:ff),eth_type(0x0806),arp(sip=10.52.36.105,tip=10.52.36.102,op=1/0xff,sha=52:54:00:b6:0c:50),
packets:129, bytes:7740, used:4.243s, actions:1
recirc_id(0),in_port(2),eth(src=00:50:56:89:09:6b,dst=ff:ff:ff:ff:ff:ff),eth_type(0x0806),arp(sip=10.53.34.235,tip=10.53.34.230,op=1/0xff,sha=00:50:56:89:09:6b),
packets:99, bytes:5940, used:0.554s, actions:1
recirc_id(0),in_port(2),eth(src=52:54:00:4f:dd:cf,dst=ff:ff:ff:ff:ff:ff),eth_type(0x0806),arp(sip=10.52.36.109,tip=10.52.36.102,op=1/0xff,sha=52:54:00:4f:dd:cf),
packets:99, bytes:5940, used:0.805s, actions:1
recirc_id(0),in_port(2),eth(src=50:57:a8:85:cb:04,dst=50:57:a8:85:cb:04),eth_type(0x9000),
packets:0, bytes:0, used:never, actions:drop
recirc_id(0),in_port(2),eth(src=00:50:56:89:07:77,dst=ff:ff:ff:ff:ff:ff),eth_type(0x0806),arp(sip=10.53.34.235,tip=10.53.34.230,op=1/0xff,sha=00:50:56:89:07:77),
packets:99, bytes:5940, used:0.554s, actions:1
recirc_id(0),in_port(2),eth(src=00:0c:29:1c:ea:54,dst=ff:ff:ff:ff:ff:ff),eth_type(0x0800),ipv4(frag=no),
packets:4, bytes:1368, used:5.620s, actions:1
recirc_id(0),in_port(2),eth(src=00:50:56:89:4b:74,dst=ff:ff:ff:ff:ff:ff),eth_type(0x0806),arp(sip=10.53.34.233,tip=10.53.34.230,op=1/0xff,sha=00:50:56:89:4b:74),
packets:121, bytes:7260, used:0.466s, actions:1
recirc_id(0),in_port(2),eth(src=00:50:56:60:7c:bc,dst=ff:ff:ff:ff:ff:ff),eth_type(0x0806),arp(sip=10.55.147.137,tip=10.55.147.135,op=1/0xff,sha=00:50:56:60:7c:bc),
packets:0, bytes:0, used:never, actions:1
recirc_id(0),in_port(2),eth(src=00:25:90:35:d8:84,dst=ff:ff:ff:ff:ff:ff),eth_type(0x0806),arp(sip=10.52.36.98,tip=10.52.36.102,op=1/0xff,sha=00:25:90:35:d8:84),
packets:64, bytes:3840, used:3.690s, actions:1
[root at juno bin]#

There are many flows about other packet in the link, no flows about my arp
packet (sip=192.168.1.1, dip=192.168.1.2)

Do you know why? Hope you can help me to fix it, thanks.

BR
Juno




2015-09-23 5:52 GMT+08:00 Pravin Shelar <pshelar at nicira.com>:

>
>
> On Mon, Sep 21, 2015 at 10:36 PM, Na Zhu <zhunatuzi at gmail.com> wrote:
>
>> Hi,
>>
>> I am trying to use ovs dpdk, i follow the README-native-tunneling.md, it
>> does not work.
>> my setup is:
>> [image: 内嵌图片 1]
>> The prefix length of br-vxlan is not 24, is 25, after i create br-vxlan,
>> there is no route in ovs, so i add it by command ovs-appctl.
>>
>
> Which OVS version are you using?
>
>
>> [root at juno ovs-build]# ./bin/ovs-appctl ovs/route/show
>> Route Table:
>> Cached: 10.53.87.242/32 dev br-vxlan
>> Cached: 127.0.0.1/32 dev lo
>> Cached: 158.85.164.66/32 dev bond1
>> Cached: 192.168.1.1/32 dev br0
>> Cached: 158.85.164.64/27 dev bond1
>> Cached: 192.168.1.0/24 dev br0
>> Cached: 169.254.0.0/16 dev bond1
>> Cached: 127.0.0.0/8 dev lo
>> Cached: 0.0.0.0/0 dev bond1 GW 158.85.164.65
>> [root at juno ovs-build]#
>> [root at juno ovs-build]# ./bin/ovs-appctl ovs/route/add 10.53.87.242/25
>> br-vxlan
>> OK
>> [root at juno ovs-build]# ./bin/ovs-appctl ovs/route/show
>> Route Table:
>> User: 10.53.87.128/25 dev br-vxlan
>> Cached: 10.53.87.242/32 dev br-vxlan
>> Cached: 127.0.0.1/32 dev lo
>> Cached: 158.85.164.66/32 dev bond1
>> Cached: 192.168.1.1/32 dev br0
>> Cached: 158.85.164.64/27 dev bond1
>> Cached: 192.168.1.0/24 dev br0
>> Cached: 169.254.0.0/16 dev bond1
>> Cached: 127.0.0.0/8 dev lo
>> Cached: 0.0.0.0/0 dev bond1 GW 158.85.164.65
>> [root at juno ovs-build]#
>> Then i ping 192.168.1.2, and i capture vxlan packet on eth0 by tcpdump,
>> there is no vxlan packet, do anyone know why?
>>
>>
>> You can dump-flows from datapath and check what is happening to the
> packets.
> ovs-appctl dpctl/dump-flows
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20150923/4c3c3a2b/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 10395 bytes
Desc: not available
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20150923/4c3c3a2b/attachment-0002.png>


More information about the discuss mailing list