DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Wiles, Keith" <keith.wiles@intel.com>
To: Safiyat Reza <reza.safiyat@acm.org>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] Unable to send ping requests using pktgen-dpdk
Date: Mon, 17 Apr 2017 15:55:24 +0000	[thread overview]
Message-ID: <E8228CB2-EB6D-4D7E-889C-05CA299A9F8B@intel.com> (raw)
In-Reply-To: <CAJC8Y-T8wC=P22TuJtw+s1QrQxkwGQR3TYafZccM4-NEbrSfzw@mail.gmail.com>

Comments below:

> On Apr 17, 2017, at 8:07 AM, Safiyat Reza <reza.safiyat@acm.org> wrote:
> 
> 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   <Main Page>  Copyright (c) <2010-2016>, Intel
> Corporation
>      Flags:Port      :   -E----R--------:0
>    Link State        :       <UP-10000-FD>     ----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® 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”);

This command only enables processing incoming ICMP echo packets. This is the ‘E’ flags value above.

>    pktgen.send_arp("all", "g”);

This one only sends a single ARP packet.

If you are trying to send multiple ping or ICMP echo request packets then you need to construct a packet in the sequence page ‘page seq’. What is being sent is the single mode packets you see on the first page.

It also looks like you have Range packets enabled, did you configure the range packets via ‘page range’?

> 
> 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+ <https://plus.google.com/110916808580428369956/posts> | GitHub
> <https://github.com/safiyat/> | LinkedIn
> <https://in.linkedin.com/in/safiyat-reza-74329765>

Regards,
Keith


  reply	other threads:[~2017-04-17 15:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-17 13:07 Safiyat Reza
2017-04-17 15:55 ` Wiles, Keith [this message]
2017-04-17 16:35   ` Safiyat Reza
2017-04-18  6:31     ` Wiles, Keith
2017-04-21 17:52       ` Safiyat Reza

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E8228CB2-EB6D-4D7E-889C-05CA299A9F8B@intel.com \
    --to=keith.wiles@intel.com \
    --cc=dev@dpdk.org \
    --cc=reza.safiyat@acm.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).