DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] generate ipv6 packets with pktgen
@ 2018-06-15 23:52 Stefano Salsano
  2018-06-16 13:24 ` Wiles, Keith
  0 siblings, 1 reply; 3+ messages in thread
From: Stefano Salsano @ 2018-06-15 23:52 UTC (permalink / raw)
  To: users

Hi all,

I need to generate IPv6 packets with pktgen, but I am NOT able to set 
the IPv6 src and dst address

when I only change the packet type of port 0 to IPv6

Pktgen:/> set 0 type ipv6
Pktgen:/> start 0

pktgen sends IPv6 packets with meaningless IPv6 addresses
here is the tcpdump output:
18:23:37.777126 IP6 ::101:a8c0:0:0.0 > ::101:a8c0:0:0.0: Flags [.], ack 
1, win 8192, length 0

but if I try to set the src and dst addresses:

Pktgen:/> set 0 dst ip 2000::1
Pktgen:/> set 0 src ip 2000::2/64

the IP (v4) addresses in the main page display are zeroed:
Dst  IP Address   :             0.0.0.0
Src  IP Address   :             0.0.0.0

and when I ask to generate packets
Pktgen:/> start 0

pktgen sends IPv6 packets with "zeroed" addresses
18:48:42.475672 IP6 ::.0 > ::.0: Flags [.], ack 1, win 8192, length 0

is it possible to set the IPv6 addresses?

thank you
Stefano

-- 
*******************************************************************
Stefano Salsano
Professore Associato
Dipartimento Ingegneria Elettronica
Universita' di Roma Tor Vergata
Viale Politecnico, 1 - 00133 Roma - ITALY

http://netgroup.uniroma2.it/Stefano_Salsano/

E-mail  : stefano.salsano@uniroma2.it
Cell.   : +39 320 4307310
Office  : (Tel.) +39 06 72597770 (Fax.) +39 06 72597435
*******************************************************************

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-users] generate ipv6 packets with pktgen
  2018-06-15 23:52 [dpdk-users] generate ipv6 packets with pktgen Stefano Salsano
@ 2018-06-16 13:24 ` Wiles, Keith
  2018-06-16 19:06   ` Stefano Salsano
  0 siblings, 1 reply; 3+ messages in thread
From: Wiles, Keith @ 2018-06-16 13:24 UTC (permalink / raw)
  To: Stefano Salsano; +Cc: users



> On Jun 15, 2018, at 6:52 PM, Stefano Salsano <stefano.salsano@uniroma2.it> wrote:
> 
> Hi all,
> 
> I need to generate IPv6 packets with pktgen, but I am NOT able to set the IPv6 src and dst address
> 
> when I only change the packet type of port 0 to IPv6
> 
> Pktgen:/> set 0 type ipv6
> Pktgen:/> start 0
> 
> pktgen sends IPv6 packets with meaningless IPv6 addresses
> here is the tcpdump output:
> 18:23:37.777126 IP6 ::101:a8c0:0:0.0 > ::101:a8c0:0:0.0: Flags [.], ack 1, win 8192, length 0
> 
> but if I try to set the src and dst addresses:
> 
> Pktgen:/> set 0 dst ip 2000::1
> Pktgen:/> set 0 src ip 2000::2/64
> 
> the IP (v4) addresses in the main page display are zeroed:
> Dst  IP Address   :             0.0.0.0
> Src  IP Address   :             0.0.0.0
> 
> and when I ask to generate packets
> Pktgen:/> start 0
> 
> pktgen sends IPv6 packets with "zeroed" addresses
> 18:48:42.475672 IP6 ::.0 > ::.0: Flags [.], ack 1, win 8192, length 0
> 
> is it possible to set the IPv6 addresses?

The IPv6 address is suppose to be constructed using the IPv4 address, but I guess I did not get that right. I will have to look into the problem unless you would like to fix the problem as I can take patches.

> 
> thank you
> Stefano
> 
> -- 
> *******************************************************************
> Stefano Salsano
> Professore Associato
> Dipartimento Ingegneria Elettronica
> Universita' di Roma Tor Vergata
> Viale Politecnico, 1 - 00133 Roma - ITALY
> 
> http://netgroup.uniroma2.it/Stefano_Salsano/
> 
> E-mail  : stefano.salsano@uniroma2.it
> Cell.   : +39 320 4307310
> Office  : (Tel.) +39 06 72597770 (Fax.) +39 06 72597435
> *******************************************************************
> 

Regards,
Keith

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-users] generate ipv6 packets with pktgen
  2018-06-16 13:24 ` Wiles, Keith
@ 2018-06-16 19:06   ` Stefano Salsano
  0 siblings, 0 replies; 3+ messages in thread
From: Stefano Salsano @ 2018-06-16 19:06 UTC (permalink / raw)
  To: Wiles, Keith, Alessandro Ordine; +Cc: users

Ok thank you we will have a look to the code

Il 16 Giugno 2018 15:24:55 CEST, "Wiles, Keith" <keith.wiles@intel.com> ha scritto:
>
>
>> On Jun 15, 2018, at 6:52 PM, Stefano Salsano
><stefano.salsano@uniroma2.it> wrote:
>> 
>> Hi all,
>> 
>> I need to generate IPv6 packets with pktgen, but I am NOT able to set
>the IPv6 src and dst address
>> 
>> when I only change the packet type of port 0 to IPv6
>> 
>> Pktgen:/> set 0 type ipv6
>> Pktgen:/> start 0
>> 
>> pktgen sends IPv6 packets with meaningless IPv6 addresses
>> here is the tcpdump output:
>> 18:23:37.777126 IP6 ::101:a8c0:0:0.0 > ::101:a8c0:0:0.0: Flags [.],
>ack 1, win 8192, length 0
>> 
>> but if I try to set the src and dst addresses:
>> 
>> Pktgen:/> set 0 dst ip 2000::1
>> Pktgen:/> set 0 src ip 2000::2/64
>> 
>> the IP (v4) addresses in the main page display are zeroed:
>> Dst  IP Address   :             0.0.0.0
>> Src  IP Address   :             0.0.0.0
>> 
>> and when I ask to generate packets
>> Pktgen:/> start 0
>> 
>> pktgen sends IPv6 packets with "zeroed" addresses
>> 18:48:42.475672 IP6 ::.0 > ::.0: Flags [.], ack 1, win 8192, length 0
>> 
>> is it possible to set the IPv6 addresses?
>
>The IPv6 address is suppose to be constructed using the IPv4 address,
>but I guess I did not get that right. I will have to look into the
>problem unless you would like to fix the problem as I can take patches.
>
>> 
>> thank you
>> Stefano
>> 
>> -- 
>> *******************************************************************
>> Stefano Salsano
>> Professore Associato
>> Dipartimento Ingegneria Elettronica
>> Universita' di Roma Tor Vergata
>> Viale Politecnico, 1 - 00133 Roma - ITALY
>> 
>> http://netgroup.uniroma2.it/Stefano_Salsano/
>> 
>> E-mail  : stefano.salsano@uniroma2.it
>> Cell.   : +39 320 4307310
>> Office  : (Tel.) +39 06 72597770 (Fax.) +39 06 72597435
>> *******************************************************************
>> 
>
>Regards,
>Keith

-- 
Inviato dal mio dispositivo Android con K-9 Mail. Perdonate la brevità.
From keith.wiles@intel.com  Sat Jun 16 23:27:35 2018
Return-Path: <keith.wiles@intel.com>
Received: from mga03.intel.com (mga03.intel.com [134.134.136.65])
 by dpdk.org (Postfix) with ESMTP id 7B0451B42E
 for <users@dpdk.org>; Sat, 16 Jun 2018 23:27:35 +0200 (CEST)
X-Amp-Result: SKIPPED(no attachment in message)
X-Amp-File-Uploaded: False
Received: from orsmga002.jf.intel.com ([10.7.209.21])
 by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;
 16 Jun 2018 14:27:34 -0700
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.51,232,1526367600"; d="scan'208";a="67571154"
Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201])
 by orsmga002.jf.intel.com with ESMTP; 16 Jun 2018 14:27:33 -0700
Received: from fmsmsx157.amr.corp.intel.com (10.18.116.73) by
 FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS)
 id 14.3.319.2; Sat, 16 Jun 2018 14:27:33 -0700
Received: from fmsmsx117.amr.corp.intel.com ([169.254.3.220]) by
 FMSMSX157.amr.corp.intel.com ([169.254.14.71]) with mapi id 14.03.0319.002;
 Sat, 16 Jun 2018 14:27:33 -0700
From: "Wiles, Keith" <keith.wiles@intel.com>
To: Kevin Wilson <wkevils@gmail.com>
CC: "users@dpdk.org" <users@dpdk.org>
Thread-Topic: [dpdk-users] MIA and Keep Alive
Thread-Index: AQHUBZVgJ8xbfuDhJUegyKyFqMRjS6Rj29iA
Date: Sat, 16 Jun 2018 21:27:32 +0000
Message-ID: <17863995-D924-4251-9ED2-2B6CEB0A4224@intel.com>
References: <CAGXs5wX4Sv4xM0xcPY_vNO3bnCK_cZL-Xw6tFmP-NLcN006y2A@mail.gmail.com>
In-Reply-To: <CAGXs5wX4Sv4xM0xcPY_vNO3bnCK_cZL-Xw6tFmP-NLcN006y2A@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.252.137.112]
Content-Type: text/plain; charset="utf-8"
Content-ID: <CB85B53F1057F940BC6A2AA125B6C253@intel.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Subject: Re: [dpdk-users] MIA and Keep Alive
X-BeenThere: users@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK usage discussions <users.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/users>,
 <mailto:users-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/users/>
List-Post: <mailto:users@dpdk.org>
List-Help: <mailto:users-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/users>,
 <mailto:users-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Sat, 16 Jun 2018 21:27:35 -0000

DQoNCj4gT24gSnVuIDE2LCAyMDE4LCBhdCAxMjoxMyBQTSwgS2V2aW4gV2lsc29uIDx3a2V2aWxz
QGdtYWlsLmNvbT4gd3JvdGU6DQo+IA0KPiBIaSBhbGwsDQo+IA0KPiBBIHNob3J0IHF1ZXN0aW9u
IGFib3V0IEtlZXAgQWxpdmU6IGFjY29yZGluZyB0byB0aGUNCj4gIlNhbXBsZSBBcHBsaWNhdGlv
biBVc2VyIEd1aWRlIjoNCj4gLi4uDQo+IENvcmVzIHN0YXRlcyBhcmU6IEFsaXZlLCBNSUEsIERl
YWQgb3IgQnVyaWVkLiBNSUEgaW5kaWNhdGVzIGEgbWlzc2VkDQo+IHBpbmcsIGFuZCBEZWFkIGlu
ZGljYXRlcyB0d28gbWlzc2VkIHBpbmdzIHdpdGhpbiB0aGUgc3BlY2lmaWVkIHRpbWUgaW50ZXJ2
YWwuDQo+IC4uLg0KPiANCj4gRG9lcyBhbnlib2R5IGtub3cgLSB3aGF0IGRvZXMgdGhlIE1JQSBh
Y3JvbnltIHN0YW5kcyBmb3IgPw0KDQrigJxNaXNzaW5nIGluIEFjdGlvbuKAnSBJIHRoaW5rDQoN
Cj4gDQo+IFJlZ2FyZHMsDQo+IEtldmluDQoNClJlZ2FyZHMsDQpLZWl0aA0KDQo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-06-16 19:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-15 23:52 [dpdk-users] generate ipv6 packets with pktgen Stefano Salsano
2018-06-16 13:24 ` Wiles, Keith
2018-06-16 19:06   ` Stefano Salsano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).