From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 49DE0A0096 for ; Wed, 8 May 2019 16:27:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A78923772; Wed, 8 May 2019 16:27:08 +0200 (CEST) Received: from mail-io1-f68.google.com (mail-io1-f68.google.com [209.85.166.68]) by dpdk.org (Postfix) with ESMTP id E20EA2C2B for ; Wed, 8 May 2019 16:27:07 +0200 (CEST) Received: by mail-io1-f68.google.com with SMTP id v9so13386670ion.11 for ; Wed, 08 May 2019 07:27:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0oFwWb9+bMpUSefOZ0+1jccPZg/acL0pXEuBqvlv2Cg=; b=NOBUjQveceP7uBitUZFfAe5eonhm9ivDkww+fFfahogYFn+joBkblTxfq3Z2g9c9Tt 7NgZJJTFhjk4vUBZ/Lu8gKecjfSNggiq+VbN4/gZmD6Um5cI1YZ19IdZeeUujoHxEWLB VUrWi19N3OtT1teC6mFedo62kE1GuFDeQGcfGQ9ZrxU9F3C0JysQk1gJh+hCjs0PoFFd 1gEpHFpjMTmH25d7HFbGyIwaEg8djlgF7rZNbN4EJAsAPPsWY31maG+D95/Aq+PQsfsO jJRH0fWbENRD3OMh5u8B96PmhiHUBv9m/C5URmqIV/KT4qwlGibaGhoFpYP7ZKLOJF6l PNtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0oFwWb9+bMpUSefOZ0+1jccPZg/acL0pXEuBqvlv2Cg=; b=s3/sN95AjPOsb66sA/ltBHAkelD3xBEeCm3xNVyJdVhB5RALxHEQ6dO5L6QMEwC5S0 qPlnp3Ik+mRSr16Z/qhTGqHWs3vG3r8hixCDs1hTiBNNP7m3ATLLslH8bMT0HIhYf/Fc Ijlnv8+xQx6yY3VrV7ymzMlqUFgYG7/sjxl8uWPj8M+Rd4lHiQKXlonhOBArs6L8fVlt nNeb1PGLLMArXmZi8hZQqyo6bldow2+5lMpFXFc6+HOCredkwQzoOnbKW6ItGWjsTBZy botEokmvNqrlsBuks4m+WxqCKSe718SJEQdqGBqDI5JX9SIkykSZwhGJiO0OLgcqmAnx +OZQ== X-Gm-Message-State: APjAAAUM6KmDAiTAQtKKm8/orz8e6RUD7tK1o1FP9RE1T98qj2AvgIRb 4SgpzzcrvMzpZg0HiWewLnohRpn96dSOhOjE84c= X-Google-Smtp-Source: APXvYqxRa1ev8cXWOeeyhj2VMcQgr0Wir/oAwuSp4sQ0pNk8Uro5Ej7DXdTUTaWOIquWLN3EbPxWQUjoRg5xuft0sfk= X-Received: by 2002:a6b:760d:: with SMTP id g13mr25112361iom.114.1557325627148; Wed, 08 May 2019 07:27:07 -0700 (PDT) MIME-Version: 1.0 References: <95C022B5-CB05-4C30-A57A-A9B183548107@intel.com> In-Reply-To: <95C022B5-CB05-4C30-A57A-A9B183548107@intel.com> From: hirok borah Date: Wed, 8 May 2019 19:58:17 +0530 Message-ID: To: "Wiles, Keith" Cc: Anupama Laxmi , users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] UDP packet transmission issue - DPDK 18.08 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Thanks Keith for sharing the info. But as also stated by Anupama, the problem here is with KNI. When UDP packet of certain length, say 730, is written to kni, it is getting dropped. Whereas UDP of length say 60, does not have any issues, it goes to kernel. And this issue was not seen with previous versions, only seen when we upgraded to v18.08 Regards -Hirok On Wed, May 8, 2019, 7:28 PM Wiles, Keith wrote: > > > > On May 8, 2019, at 1:41 AM, hirok borah wrote: > > > > Hi All, > > > > Do we have any resolution for this issue yet ? > > This looks like a defect in DPDK 18.08. > > DPDK does not understand UDP/TCP or any L4 Packet per say, it only sends > the packets constructed in the application. It will send the packets as > defined and the only place DPDK tries to determine the packet type is when > it receives the packet which in this case is the kernel. > > I do not use testpmd much, but use pktgen-dpdk for my work. Please try > with testpmd or pktgen or TRex or moongen and see if the problem still > exists. > > > > Plz share if anyone have any inputs on this issue. > > > > Regards > > Hirok > > > > On Sat, Apr 20, 2019 at 9:41 AM Anupama Laxmi > > wrote: > > > >> We have recently upgraded to DPDK 18.08 version. After upgrading to the > >> latest version observing issue with UDP packets transmission errors for > few > >> packets ( UDP size 736 bytes) .With older version of DPDK we never > faced > >> this issue. > >> > >> Attaching the filtered tcpdump which shows "Bad UDP length > IP payload > >> length" for one such packet. > >> > >> No issue observed while transferring UDP packets with size 28 bytes and > 48 > >> bytes. I tried to print the packet length calculation in my program just > >> before sending it out to the Kernel using rte_kni_tx_burst. The packet > >> length calculation seems correct to me. > >> > >> 1.) > >> size_udp:48 > >> sizeof(struct udp_hdr):8 > >> size_ApplMsg:40 > >> udphdr->dgram_len:12288 > >> m->data_len:82 > >> size_ip:68 > >> l2_data_shift:14 > >> > >> 2.) > >> size_udp:28 > >> sizeof(struct udp_hdr):8 > >> size_ApplMsg:20 > >> udphdr->dgram_len:7168 > >> m->data_len:62 > >> ip->total_length:12288 > >> size_ip:48 > >> l2_data_shift:14 > >> > >> *** Packets with UDP size 736 are not getting transmitted to the > >> receiving end and getting dropped. > >> > >> 3.) > >> size_udp:736 > >> sizeof(struct udp_hdr):8 > >> size_ApplMsg:728 > >> udphdr->dgram_len:57346 > >> m->data_len:770 > >> size_ip:756 > >> l2_data_shift:14 > >> > >> Also MTU is set to 1500 in my program. So it shouldn't be an issue to > >> transfer 736 bytes UDP data which is less than 1500 bytes MTU. > >> > >> Looks like the kernel is dropping this packet. > >> > >> So I tried to increase the kernel buffer size but that didn't help. > >> > >> netstat -su -> output shows 0 send/receive buffer errors. > >> > >> > >> What has changed in DPDK 18.08 with respect to UDP packets? Please > suggest > >> if I need to consider tuning udp ( using new API ) , offloading udp > >> traffic(new offload flags) to resolve this issue. > >> > >> Thanks, > >> -------------- next part -------------- > >> A non-text attachment was scrubbed... > >> Name: bad_udp_length.png > >> Type: image/png > >> Size: 56015 bytes > >> Desc: not available > >> URL: < > >> > http://mails.dpdk.org/archives/users/attachments/20190420/f5dd6779/attachment.png > >>> > >> > > > > > > -- > > Regards, > > -Hirok > > Regards, > Keith > >