[ovs-discuss] 答复: For help about ssh between vms through ovs-dkdp

gowrishankar gowrishankar.m at linux.vnet.ibm.com
Thu May 21 05:53:18 UTC 2015


tcpdump from host on guest's vnic could help ? See if 3way handshake 
completes.

Also, check if csum correct on packets from guest (tcpdump -vvv).

Regards,
Gowrishankar

On Thursday 21 May 2015 10:37 AM, 钢锁0310 wrote:
>
> ovs log:
>
> 2015-05-21T04:46:37.941Z|00023|connmgr|INFO|br0<->unix: 1 flow_mods in the last 0 s (1 adds)
> 2015-05-21T04:46:38.604Z|00024|connmgr|INFO|br0<->unix: 1 flow_mods in the last 0 s (1 adds)
> 2015-05-21T04:48:42.692Z|00001|dpdk(cuse_thread3)|INFO|vHost Device 'tap0' (0) has been added
> 2015-05-21T04:48:51.750Z|00002|dpdk(cuse_thread3)|INFO|vHost Device 'tap1' (1) has been added
>
>
> qemu create tap with default name 'tap[id]'       adding port to ovs 
> is ok    ping is work
>
>
> and i add options 
> 'csum=off,gso=off,guest_csum=off,guest_tso4=off,guest_tso6=off,guest_ecn=off'
>
>
> in guset ethtool -k eth0
>
>
> all things is off but
>
>
> ssh is still not work
>
>
> qemu 2.3.0
>
> dpdk 2.0.0
>
> ovs   compiled by git master
>
>
> the OS of host and guest both are 
>  'Linux 25.dpdk 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux'
>
>
> *********************
>
> RTFSC
>
> *********************
>
>
>     ------------------------------------------------------------------
>
>     发件人:Traynor, Kevin <kevin.traynor at intel.com>
>
>     发送时间:2015年5月20日(星期三) 22:21
>
>     收件人:Daniele Di Proietto <diproiettod at vmware.com>,钢锁0310
>     <liw at dtdream.com>
>
>     抄 送:通天晓0280 <dongj at dtdream.com>,discuss
>     <discuss at openvswitch.org>
>
>     主 题:RE: [ovs-discuss] For help about ssh between vms through
>     ovs-dkdp
>
>
>
>     > -----Original Message-----
>
>     > From: Daniele Di Proietto [mailto:diproiettod at vmware.com]
>
>     > Sent: Wednesday, May 20, 2015 1:47 PM
>
>     > To: 钢锁0310
>
>     > Cc: 通天晓 0280; discuss; Traynor, Kevin
>
>     > Subject: Re: [ovs-discuss] For help about ssh between vms through ovs-dkdp
>
>     >
>
>     > This might be related to offloading features.
>
>     >
>
>     > Could you try again with this qemu "-device" option and let us know?
>
>     > -device
>
>     > virtio-net-pci,netdev=net1,csum=off,gso=off,guest_tso4=off,guest_tso6=off,g
>
>     > uest_ecn=off
>
>
>     I checked this previously and the DPDK vhost lib will report those features
>
>     as not available during negotiation so you should be ok with not specifying
>
>     them explicitly in the qemu cmd line. I haven't tested with qemu 2.3.
>
>
>     >
>
>     >
>
>     > Kevin, do you this we should mention this in INSTALL.DPDk.md?
>
>
>     I had changed the original patch to make it optional in 3a based on feedback
>
>     from Michael Tsirkin and testing. So unless we find an issue, I'd prefer to
>
>     leave optional.
>
>     https://github.com/openvswitch/ovs/blob/master/INSTALL.DPDK.md#dpdk-vhost-vm-configuration
>
>
>     >
>
>     >
>
>     > On 20/05 /2015 10:39, "钢锁0310" <liw at dtdream.com> wrote:
>
>     >
>
>     > >i build the vm-ovsdpdk-vm environment by using vhost-cuse
>
>     > >
>
>     > >
>
>     > >the cmd is following
>
>     > >
>
>     > >
>
>     > >ovs-vsctl add-br br0 -- set bridge br0 datapath_type=netdev
>
>     > >ovs-vsctl add-port br0 tap0 -- set Interface tap0 type=dpdkvhost
>
>     > >ovs-vsctl add-port br0 tap1 -- set Interface tap1 type=dpdkvhost
>
>     > >
>
>     > >qemu-system-x86_64 cirros.img -m 2G -vnc :1 -object
>
>     > >memory-backend-file,id=mem,size=2G,mem-path=/dev/hugepages,share=on -numa
>
>     > >node,memdev=mem -mem-prealloc -netdev type=tap,id=net1,script=no,vhost=on
>
>     > >-device virtio-net-pci,netdev=net1
>
>     > >qemu-system-x86_64 cirros.img -m 2G -vnc :2 -object
>
>     > >memory-backend-file,id=mem,size=2G,mem-path=/dev/hugepages,share=on -numa
>
>     > >node,memdev=mem -mem-prealloc -netdev type=tap,id=net1,script=no,vhost=on
>
>     > >-device virtio-net-pci,netdev=net1
>
>
>     You are not specifying the ifname on the command line. What does the
>
>     vswitchd.log say regarding the adding/removing of vhost ports?
>
>     e.g. |INFO|vHost Device 'dpdkvhost1' (1) has been added
>
>
>     > >
>
>     > ># add ovs flow
>
>     > >ovs-ofctl add-flow br0 in_port=1,action:output=2
>
>     > >ovs-ofctl add-flow br0 in_port=2,action:output=1
>
>     > >
>
>     > >
>
>     > >mac of vm1 is 00:00:00:00:00:01   vm2 is 00:00:00:00:00:02
>
>     > >
>
>     > >
>
>     > >ping form vm1 to vm2 is ok, but ssh is not ok
>
>     > >
>
>     > >
>
>     > >On vm1 run ssh to vm2,   Run tcpdump on vm2,  the catching packet as
>
>     > >follow
>
>     > >
>
>     > >
>
>     > >
>
>     > >it seems the packets is all wrong
>
>     > >
>
>     > >
>
>     > >Anyone meet this situation?
>
>
>     What kernel version are you using in the guest? There is a known DPDK issue
>
>     with 3.19.5 in the guest when using the kernel to fwd pkts. The fix for it
>
>     is here: http://dpdk.org/ml/archives/dev/2015-May/017251.html
>
>
>     > >
>
>     > >
>
>     > >*********************
>
>     > >RTFSC
>
>     > >*********************
>
>     > >
>
>     > >
>
>     > >
>
>
>
>
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20150521/fb843c41/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 2277 bytes
Desc: not available
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20150521/fb843c41/attachment-0002.png>


More information about the discuss mailing list