From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f50.google.com (mail-oi0-f50.google.com [209.85.218.50]) by dpdk.org (Postfix) with ESMTP id 05EAC37B0 for ; Mon, 17 Apr 2017 15:08:00 +0200 (CEST) Received: by mail-oi0-f50.google.com with SMTP id r203so140845891oib.3 for ; Mon, 17 Apr 2017 06:08:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to; bh=jRTdA0CYMvo/0hDOxa72AQdNAGKcVAgnC8qkke9aoVY=; b=fujpGOgLv90ckMxRN7/f2lgY+p3qmWaWVd+wkEi2tzGnEAiDEbM78p7VZuXcNeuEiG oy27R2/hFnc8h3qplxcHzm/ICCGuDRqC5E2TF/79rVP7RNkYOASD7X9lZav+Ys32Vfxu wZ3+KVd8JvrSvakC2EJrXsCxjY+fqitWBA86p311smY7bbvuvGqqwIWHPUD68XJwmie7 AizEyv6vHf41Nv9b9/EOM5HVs/79yd49UHSJRbu51DPrE/kG16Y32kwmL+82EiTURDf6 qA/NA8VUrtlCVIq6V9O1tuFde0/cuEcDjFzCwNO0Hn6CrI1YkRbxTesV8/5LXpgmSyGT wMkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=jRTdA0CYMvo/0hDOxa72AQdNAGKcVAgnC8qkke9aoVY=; b=jTMFWSmWV9UYA86rtSOe5d9QzDcvgkdvccuL2uo2SaVatxpvw4/U3p09HDoPUxD7yt Jhe3uNToZc2nS+z726qzjWkKzGKvJoF2BdsWR88VRBY2jIWDv2MS+cNFRaKYBjo1olLH yaaZamfGNhnkgu6U7V+6fkYgIuIdWn7FDnGEn9SUTZiUuR4MMFXJ59fi/XlhH0k2TJUI Q/gyp5mKDasF5pe0MMeAmaCOJyGQLov87vTZancrb/Tg3IvXnx/xyZWSPMA8DUTb00P6 DYPTv2zcRMXHcosWEZoPf2QAOk7fvGqubw43ObB+Xorj0iyzbLpf6RutNDzBajmzXUJJ qxXw== X-Gm-Message-State: AN3rC/4Jxj9ScLfVbMvXZhepn3XrTTAgGHoNfCXgkmIC5g3643o1Vk5C KrrrXo5aH5bLtvvOLtz2OZSDwS7i+JaruNE= X-Received: by 10.202.80.150 with SMTP id e144mr4962333oib.65.1492434479854; Mon, 17 Apr 2017 06:07:59 -0700 (PDT) MIME-Version: 1.0 Sender: reza.safiyat@gmail.com Received: by 10.74.55.9 with HTTP; Mon, 17 Apr 2017 06:07:59 -0700 (PDT) From: Safiyat Reza Date: Mon, 17 Apr 2017 18:37:59 +0530 X-Google-Sender-Auth: gryrxYZITxmC-M21LpKg2o-4grY Message-ID: To: dev@dpdk.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Unable to send ping requests using pktgen-dpdk X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Apr 2017 13:08:01 -0000 Hi, I am trying to ping a remote machine (within the same network) via port 0 using the command Pktgen> ping4 0 But the packet that is received on the remote machine is not a ping packet. Upon investigation using dpdkcap (https://github.com/dpdkcap/dpdkcap) and tcpdump, the packet dpdkcap output: reading from file output_01.pcap, link-type EN10MB (Ethernet) 12:50:34.870498 IP 50.0.50.14.4660 > 50.0.50.13.22136: tcp 6 0x0000: 4500 002e 1636 0000 0406 d879 3200 320e E....6.....y2.2. 0x0010: 3200 320d 1234 5678 1234 5678 1234 5690 2.2..4Vx.4Vx.4V. 0x0020: 5010 2000 6c72 0000 7778 797a 3031 P...lr..wxyz01 tcpdump output: tcpdump: listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes 12:53:49.828091 IP (tos 0x0, ttl 4, id 5794, offset 0, flags [none], proto TCP (6), length 46) 50-0-50-14.dsl.dynamic.fusionbroadband.com.4660 > 50-0-50-13.dsl.dynamic.fusionbroadband.com.22136: Flags [.], cksum 0x6c72 (correct), seq 305419896:305419902, ack 305419920, win 8192, length 6 The output after turning screen on is: - Ports 0-0 of 1
Copyright (c) <2010-2016>, Intel Corporation Flags:Port : -E----R--------:0 Link State : ----TotalRate---- Pkts/s Max/Rx : 2/0 2/0 Max/Tx : 1/0 1/0 MBits/s Rx/Tx : 0/0 0/0 Broadcast : 0 Multicast : 15 64 Bytes : 0 65-127 : 0 128-255 : 0 256-511 : 3 512-1023 : 0 1024-1518 : 0 Runts/Jumbos : 12/0 Errors Rx/Tx : 0/0 Total Rx Pkts : 15 Tx Pkts : 2 Rx MBs : 0 Tx MBs : 0 ARP/ICMP Pkts : 12/0 : Pattern Type : abcd... Tx Count/% Rate : Forever / 255% PktSize/Tx Burst : 64 / 10 Src/Dest Port : 4660 /22136 Pkt Type:VLAN ID : IPv4 / TCP:0001 Dst IP Address : 50.0.50.13 Src IP Address : 50.0.50.14/24 Dst MAC Address : fa:16:3e:e3:81:68 Src MAC Address : fa:16:3e:62:5e:3c VendID/PCI Addr : 1af4:1000/00:04.0 -- Pktgen Ver: 3.1.2 (DPDK 16.07.2) Powered by Intel=C2=AE DPDK ------------------- On the sender side (using pktgen-dpdk) apart from setting the usual source and destination ip addresses and mac addresses, I am setting pktgen.icmp_echo("all", "on"); pktgen.send_arp("all", "g"); via a lua script file. The burst size is 10. I am trying this on VMs with 'Virtio network device' as the NIC and using igb_uio driver. I have no idea why I am unable to send ping packets. Can anyone guide me as to what I am doing wrong, or why this issue might be coming? Thanks! Regards, *S*afiyat *R*eza Google+ | GitHub | LinkedIn