From: "Wiles, Roger Keith" <keith.wiles@windriver.com>
To: "Sharma, RishiX" <rishix.sharma@intel.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] Sending & Receiving Packets
Date: Mon, 20 Jan 2014 19:08:29 +0000 [thread overview]
Message-ID: <85B52E2E-5573-482E-AC52-F09B5CC8113A@windriver.com> (raw)
In-Reply-To: <0EC512B82F68174299CB115EE79F9AFA94ACA1@ORSMSX108.amr.corp.intel.com>
Hi Rishi,
Normally I use 'start <portlist|all>'
pktgen> start 0 # Start port 0 sending
pktgen> start 0,3 # Start port 0 and 3 sending
pktgen> start 0-3 # start port 0, 1, 2 and 3 send packets.
pktgen> start all # start sending on all ports
pktgen> stp # stop sending on all ports
pktgen> str # start sending on all ports
On the main screen is the single packet send configuration for the ports. You need to make sure you set your dst mac to the correct DUT MAC address. If you are fowarding L3 packets then you need to make sure the IP dst/src addresses are correct.
set mac <portlist> etheraddr - Set MAC addresses 00:11:22:33:44:55
You can use 0011:2233:4455 format as well
set ip src|dst <portlist> ipaddr - Set IP addresses
set ip dst 0 192.168.0.10
set ip src 0 192.168.0.1/24
Let me know if that helps.
Thanks
++Keith
Keith Wiles, Principal Technologist for Networking member of the CTO office, Wind River
direct 972.434.4136 mobile 940.213.5533 fax 000.000.0000
[Powering 30 Years of Innovation]<http://www.windriver.com/announces/wr30/>
On Jan 20, 2014, at 12:31 PM, Sharma, RishiX <rishix.sharma@intel.com<mailto:rishix.sharma@intel.com>> wrote:
Hi Keith,
Just to give you the background .I need to test the packet throughput performance of one of my device using DPDK .
The DUT is connected to my Linux host machine with one of the port and I want to run the Pktgen on my host machine to send the packets to the DUT where DPDK (Testpmd app) is running in fwd rx_only mode.I have setup one of the network port as igb_uio port and using it .
I'm able to compile and run the pktgen with start all but I don't know how to configure the pktgen to send packets to DUT.
I want to know the steps and exact commands required to send packets to my DUT .
-Rishi
next prev parent reply other threads:[~2014-01-20 19:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-20 18:31 Sharma, RishiX
2014-01-20 19:08 ` Wiles, Roger Keith [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-06-24 4:52 Peter Chen
2013-06-24 5:03 ` Wiles, Roger Keith
[not found] ` <CAMGYKAfYt3xyZj-Np6bsgydGHW_FKv81ZxODFG0_+U+KohQZig@mail.gmail.com>
2013-06-24 14:12 ` Wiles, Roger Keith
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=85B52E2E-5573-482E-AC52-F09B5CC8113A@windriver.com \
--to=keith.wiles@windriver.com \
--cc=dev@dpdk.org \
--cc=rishix.sharma@intel.com \
/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).