From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sonic309-23.consmr.mail.gq1.yahoo.com (sonic309-23.consmr.mail.gq1.yahoo.com [98.137.65.149]) by dpdk.org (Postfix) with ESMTP id C80462BBD for ; Wed, 7 Jun 2017 18:27:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1496852866; bh=ImtLZGSXM6VOwbTsgBQXYGxtAGXuAaVBAaetEB09Bto=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From:Subject; b=lFGkLcuHlA9EUgeFOJwqHLbWVESVl1mcmOA45URsNCysu4nslecqRdI2v5PKS1ROJsW6OeDml9GVRSqTod10UHhgzlAyEiq0Qo04UW9/uFGW++/jAJJyoXRV7KMOj2vm/QdnQebrTNbhn5HBr4iY8/pOq7qJN79FFy/DRvTOyHzavJpWPoqgAy2Yy0IpkNmX/I432DPS79JzbLp9CLiSWAfdCQIW4SUwJNgFA54U6CHptAW+wBwGag30sEkojUphvtEicZ2lQet3KCh+Yirf5oK31QEQmkMyqau/XtkxQwSmumROvKQVD5cDYdgoZR0FTIfCO+Sk6LNcTgKQE7BOjQ== X-YMail-OSG: GbnFuakVM1khaQOcp01GqfcXB4JwxRmzAt9vVaMW4SK3MAlcbGHMBdaMRTFk49Z 6osZTU_Cyx5zu6j4OPd0EPtPhYKc_4bAxreJHypMBaU57qCLHBogntRSh6CC3BqRdm2j9Xg6FlBR E.j0d0yqI.dJwTtUKt3qHSSgHb5lzHAvRhQdbqxTTeASMcVHJ8lHvTdjoSkLPFYUtp32pwp0tgOV 7Ic9UDHx9WAQa4Fl4hbRm16I6NfbuSGah5nInuGfn7tLf8ZNA.GLiRzK_h.nEOAYFVvIqGDwyqd3 oUbT6RZLB0Fy0T6SsZ9LFtsRooc6jBV8FgwQ3YM5cDbguEoPmQwQq96LKUKj_kfyuoyMF2vnjb.V FbIzqE2MjYVbxFq2Fi_1gijhNLzX11Vo8ArB2oEy5ssxl6xgPc77WZYiujwK0wL2lD88ZVxEl_or ardp1YhfDN.q9_2CWwuemj020hWT5QbfY7.TTBEtumMZVOAntejRb1JPTgm1m3QgkW9aik9u7Hpx t2WAi27BqSw1yt6x1Ujc- Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.gq1.yahoo.com with HTTP; Wed, 7 Jun 2017 16:27:46 +0000 Date: Wed, 7 Jun 2017 16:27:33 +0000 (UTC) From: Manoj Mallawaarachchi To: LOAN TON Cc: Message-ID: <1499774824.5244552.1496852853652@mail.yahoo.com> In-Reply-To: <2123468B-6447-4BC3-8BBE-FFF5DE0A8F33@usi.ch> References: <657316633.418770.1495792167450.ref@mail.yahoo.com> <657316633.418770.1495792167450@mail.yahoo.com> <2123468B-6447-4BC3-8BBE-FFF5DE0A8F33@usi.ch> MIME-Version: 1.0 X-Mailer: WebService/1.1.9778 YahooMailIosMobile Raven/35916 CFNetwork/711.3.18 Darwin/14.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 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 16:27:48 -0000 blockquote, div.yahoo_quoted { margin-left: 0 !important; border-left:1px = #715FFA solid !important; padding-left:1ex !important; background-color:wh= ite !important; } Hi Loan, Yes, I manage my work with basic forwarder setup as bump in the wire. Now m= y forwarding working from pc to net and back. Working on multi core support= and RSS now. If it help I can discribe more detail to you. Thank you,Manoj M Sent from Yahoo Mail for iPad On Wednesday, June 7, 2017, 5:34 pm, LOAN TON wrote: 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 w= rote: >=20 > Hi Loan, >=20 > Thanks for the message to group and sharing the information. I also doing= small scale project similar=C2=A0 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 f= ound 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=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)=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=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 =20