From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sonic307-11.consmr.mail.gq1.yahoo.com (sonic307-11.consmr.mail.gq1.yahoo.com [98.137.64.35]) by dpdk.org (Postfix) with ESMTP id 035BE9B7F for ; Fri, 26 May 2017 11:49:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1495792168; bh=Aa3277/PkT3inRAm34d5DBxRRYd5UrH1AWufJ/S1WbM=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=MzRBnGFJrTRfHph5+dveXAft8FsLK24eYsFMlt16N+/XSAo2fu8xhuHw8CcS5gwOo2QVByKASzxQeIF0dMvQJMxxsX8hZcIHnKoD55zOSRwSX9uVALcN7++nKMu7qAEaHxdObna9ehL03LROCtVTyi4Ekuc6tH9GnsCnHfzMcoNWxiz5/oA/S8WJIqKoRtlcEmIAEWLtugfKMGvi2uoyWu6quWkkW6pLJkxAvq045AkDnX7Bav8T5/fOJvGTjScuhatwwMik11pw7XKJJI2SviZGzkUkHgMCbVFLVa8GtPfLoeEhRBU8jIMNnjUg+z+NMZV0SuJWyk/f2VY8gsEHuw== X-YMail-OSG: nr6LoogVM1mW2MEAc8xFsTDJRYiyI29qSbvDv0F_vE72PeAN8fdLCjJ__wLVgY4 s6aMIowqyDd.ArVWUGORATrGAMe0yyp34Y4loO6HncNCMG.weY6Hl0fjeJH3YHtXrP_VedtQtTlX x7JUm7Grcyjge6c7xclBGjaTGsJ8w5ORQga0YlC7GwnawAiXp1VrN3y1CBnlAbSiQEvDNhDLmS6g yg8xHqqF6xcqUJkZoQIckqoRGJMaQ40hWfXChhGKlqm.DEHNBdohkvPG5fyFKA.Wth.fuTNtk47p 1yzsUNWgh0EmhkgcktbAh8iw9Hqzy5ZRAB6ckemrl7gbqq54D.6yCmshrqVwcn6KC8sIIHYCmrad TeY632f_NuAb8tvE.nezWqslenaEAzT564KizgTfmd.Y7SQ.Y3npJ1u6um9jJDhE8bCgx9QOYPI6 XsEj3wqoH2YXx7RtEkp3Ke6QfrRgDAjlWSoTLK1upYYrXQYoGHWiGAN96s7_xBipzeMTk0ogwZ5Z NZvI_.M167MNfL7o1ktRKXK8- Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.gq1.yahoo.com with HTTP; Fri, 26 May 2017 09:49:28 +0000 Date: Fri, 26 May 2017 09:49:27 +0000 (UTC) From: Manoj Mallawaarachchi To: , LOAN TON Message-ID: <657316633.418770.1495792167450@mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable References: <657316633.418770.1495792167450.ref@mail.yahoo.com> X-Mailer: WebService/1.1.9726 YahooMailBasic Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0 Subject: Re: [dpdk-users] Can not forward the message in DPDK X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Manoj Mallawaarachchi List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 May 2017 09:49:29 -0000 Hi Loan, Thanks for the message to group and sharing the information. I also doing s= mall scale project similar to this using DPDK forwarder app and as below s= cenario. Client PC ----> DPDK forwarder ----> Internet All connect via home router. I face same issue with client forwarding to DP= DK app and to INTERNET and back. Still my objective not work, however I fou= nd below discussion will help to your scenario also. http://dpdk.org/ml/archives/dev/2013-June/000237.html May be you need to integrate user space TCP/IP stack like ANS. https://github.com/ansyun/dpdk-ans I'm also exploring possibilities to my requirement discussed below: http://www.dpdk.org/ml/archives/users/2017-May/001922.html Hope my comments useful to get some idea. Thank you, Manoj M -------------------------------------------- On Wed, 5/24/17, LOAN TON wrote: Subject: [dpdk-users] Can not forward the message in DPDK To: users@dpdk.org Date: Wednesday, May 24, 2017, 7:50 PM =20 Hi all, =20 I am a newbie with DPDK. I am doing a small project as following. =20 I have three components such as client (one or many), one transporter and one server. The transporter and server are in DPDK. I use switch to connect=C2=A0 three components together and add rule to forward the message between them. The message passing from client and transfer to transporter and then to server. The server receives the message , opens it and reads some information and responds to client and repeats again. One client sends a message to transporter and server. At the transporter, it only increases the id of message and then pass the message to the server. Only when receiving message from server, client just sends another one message. Besides, after one second, the client have not received the message from the server. It will send a new message to the transporter and server. The life cycle runs forever until i terminate the application. =20 Model:=C2=A0 =C2=A0 Client -> Transporter (DPDK) -> Server (DPDK)=C2=A0=20 =20 My problem here is the client (for example 30 clients) sends a message to transporter. The transporter forwards message to server. But the server does not receive any message from the transporter. I checked some information in my transporter, the server and also the switch device (port 30 is belong to the transporter, port 28 is belong to the server). I discovered that when the switch showed err =3D 2, over =3D2 in the port 30 of the transporter, the server have not received any message from the transporter (just my thinking, not sure). (You can see some below photos)=C2=A0 Or I guessed that I did something wrong in the transporter=E2=80=99s code. Besides, I also run some experiments with different the amount of clients in 15 seconds, sometimes the system works, sometimes not.=20 =20 Have anyone met such case? Please help me to figure out where the error come from. I would be grateful for any help =20 I attach some photos of transporter, server, switch info and=C2=A0 the transporter's code because maybe I was doing wrong about txbuffer or rte_mbuf. =20 Best Regards, Loan Ton =20 Here are photo links Transporter with 30 clients: http://imgur.com/a/dQ5ss =20 Server with 30 clients: http://imgur.com/a/WkhBR =20 Switch with 30 clients: http://imgur.com/a/MEPPA =20 =20 I tested the case with 15 clients, one transporter, one server.=20 Transporter with 15 clients: http://imgur.com/a/VXHZb =20 Server with 15 clients: http://imgur.com/a/ed4Pj =20 =20 Transporter=E2=80=99s code: http://codepad.org/I4eDSll3