From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.usi.ch (mail.usi.ch [195.176.178.11]) by dpdk.org (Postfix) with ESMTP id 3ADAA23B for ; Wed, 7 Jun 2017 15:34:27 +0200 (CEST) Received: from loans-mbp.mobile.usilu.net (10.10.1.253) by USIMAIL1.usilu.net (10.10.0.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.845.34; Wed, 7 Jun 2017 15:34:26 +0200 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) From: LOAN TON In-Reply-To: <657316633.418770.1495792167450@mail.yahoo.com> Date: Wed, 7 Jun 2017 15:34:16 +0200 CC: Content-Transfer-Encoding: quoted-printable Message-ID: <2123468B-6447-4BC3-8BBE-FFF5DE0A8F33@usi.ch> References: <657316633.418770.1495792167450.ref@mail.yahoo.com> <657316633.418770.1495792167450@mail.yahoo.com> To: Manoj Mallawaarachchi X-Mailer: Apple Mail (2.3273) X-Originating-IP: [10.10.1.253] X-ClientProxiedBy: USIMAIL1.usilu.net (10.10.0.81) To USIMAIL1.usilu.net (10.10.0.81) Subject: Re: [dpdk-users] Can not forward the message in DPDK 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: , X-List-Received-Date: Wed, 07 Jun 2017 13:34:27 -0000 Hi Manoj M, Have you solved your problem? I still stick on my case. Loan Ton > On 26 May 2017, at 11:49 AM, Manoj Mallawaarachchi = wrote: >=20 > Hi Loan, >=20 > Thanks for the message to group and sharing the information. I also = doing small scale project similar to this using DPDK forwarder app and = as below scenario. >=20 > Client PC ----> DPDK forwarder ----> Internet >=20 > All connect via home router. I face same issue with client forwarding = to DPDK app and to INTERNET and back. Still my objective not work, = however I found below discussion will help to your scenario also. >=20 > http://dpdk.org/ml/archives/dev/2013-June/000237.html >=20 > May be you need to integrate user space TCP/IP stack like ANS. >=20 > https://github.com/ansyun/dpdk-ans >=20 > I'm also exploring possibilities to my requirement discussed below: >=20 > http://www.dpdk.org/ml/archives/users/2017-May/001922.html >=20 > Hope my comments useful to get some idea. >=20 > Thank you, > Manoj M > -------------------------------------------- > On Wed, 5/24/17, LOAN TON wrote: >=20 > 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 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: Client -> > Transporter (DPDK) -> Server (DPDK) =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)=20 > 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 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 =