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 A983523B for ; Wed, 7 Jun 2017 18:32:01 +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 18:32:01 +0200 From: LOAN TON Message-ID: <27DD63D3-A221-41FA-ACD0-E651A0DEC566@usi.ch> MIME-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Date: Wed, 7 Jun 2017 18:31:50 +0200 In-Reply-To: <1499774824.5244552.1496852853652@mail.yahoo.com> CC: To: Manoj Mallawaarachchi References: <657316633.418770.1495792167450.ref@mail.yahoo.com> <657316633.418770.1495792167450@mail.yahoo.com> <2123468B-6447-4BC3-8BBE-FFF5DE0A8F33@usi.ch> <1499774824.5244552.1496852853652@mail.yahoo.com> X-Mailer: Apple Mail (2.3273) X-Originating-IP: [10.10.1.253] X-ClientProxiedBy: USIMAIL2.usilu.net (10.10.0.82) To USIMAIL1.usilu.net (10.10.0.81) 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:32:02 -0000 Hi Manoj, Yes, please describe them to me. Thank you Best Regards, Loan Ton > On 7 Jun 2017, at 6:27 PM, Manoj Mallawaarachchi = wrote: >=20 > Hi Loan, >=20 > Yes, I manage my work with basic forwarder setup as bump in the wire. = Now my forwarding working from pc to net and back. Working on multi core = support and RSS now. >=20 > If it help I can describe more detail to you. >=20 > Thank you, > Manoj M >=20 > Sent from Yahoo Mail for iPad >=20 > On Wednesday, June 7, 2017, 5:34 pm, LOAN TON wrote: >=20 > Hi Manoj M, >=20 > Have you solved your problem? I still stick on my case. >=20 > Loan Ton >=20 > > 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.dpd= k.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=C2=A0 = < = http://imgur.com/a/dQ5ss = >=20 > > Server with 30 clients: = http://imgur.com/a/WkhBR=C2=A0 = < = http://imgur.com/a/WkhBR = >=20 > > Switch with 30 clients: = http://imgur.com/a/MEPPA=C2=A0 = < = 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=C2=A0 = < = http://imgur.com/a/VXHZb = >=20 > > Server with 15 clients: = http://imgur.com/a/ed4Pj=C2=A0 = < = http://imgur.com/a/ed4Pj = >=20 > >=20 > > Transporter=E2=80=99s code: = http://codepad.org/I4eDSll3=C2=A0 = < = http://codepad.org/I4eDSll3 = >