__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.21: ~ $
<!DOCTYPE html>

<html lang="en" data-content_root="../">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />

    <title>HOWTO for the linux packet generator &#8212; The Linux Kernel  documentation</title>
    <link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
    <link rel="stylesheet" type="text/css" href="../_static/alabaster.css?v=3918102e" />
    <script src="../_static/documentation_options.js?v=5929fcd5"></script>
    <script src="../_static/doctools.js?v=9bcbadda"></script>
    <script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="PLIP: The Parallel Line Internet Protocol Device" href="plip.html" />
    <link rel="prev" title="PHY link topology" href="phy-link-topology.html" />
   
  <link rel="stylesheet" href="../_static/custom.css" type="text/css" />
  

  
  

  </head><body>
  <div class="document">
    
      <div class="sphinxsidebar" role="navigation" aria-label="Main">
        <div class="sphinxsidebarwrapper">
            <p class="logo"><a href="../index.html">
              <img class="logo" src="../_static/logo.svg" alt="Logo of The Linux Kernel"/>
            </a></p>
<h1 class="logo"><a href="../index.html">The Linux Kernel</a></h1>



<p class="blurb">6.18.50</p>







<search id="searchbox" style="display: none" role="search">
  <h3 id="searchlabel">Quick search</h3>
    <div class="searchformwrapper">
    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>
    </div>
</search>
<script>document.getElementById('searchbox').style.display = "block"</script>


<p>
<h3 class="kernel-toc-contents">Contents</h3>
<input type="checkbox" class="kernel-toc-toggle" id = "kernel-toc-toggle" checked>
<label class="kernel-toc-title" for="kernel-toc-toggle"></label>

<div class="kerneltoc" id="kerneltoc">
<ul>
<li class="toctree-l1"><a class="reference internal" href="../process/development-process.html">Development process</a></li>
<li class="toctree-l1"><a class="reference internal" href="../process/submitting-patches.html">Submitting patches</a></li>
<li class="toctree-l1"><a class="reference internal" href="../process/code-of-conduct.html">Code of conduct</a></li>
<li class="toctree-l1"><a class="reference internal" href="../maintainer/index.html">Maintainer handbook</a></li>
<li class="toctree-l1"><a class="reference internal" href="../process/index.html">All development-process docs</a></li>
</ul>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../core-api/index.html">Core API</a></li>
<li class="toctree-l1"><a class="reference internal" href="../driver-api/index.html">Driver APIs</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="../subsystem-apis.html">Subsystems</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="../subsystem-apis.html#core-subsystems">Core subsystems</a></li>
<li class="toctree-l2"><a class="reference internal" href="../subsystem-apis.html#human-interfaces">Human interfaces</a></li>
<li class="toctree-l2 current"><a class="reference internal" href="../subsystem-apis.html#networking-interfaces">Networking interfaces</a><ul class="current">
<li class="toctree-l3 current"><a class="reference internal" href="index.html">Networking</a></li>
<li class="toctree-l3"><a class="reference internal" href="../netlabel/index.html">NetLabel</a></li>
<li class="toctree-l3"><a class="reference internal" href="../infiniband/index.html">InfiniBand</a></li>
<li class="toctree-l3"><a class="reference internal" href="../isdn/index.html">ISDN</a></li>
<li class="toctree-l3"><a class="reference internal" href="../mhi/index.html">MHI</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../subsystem-apis.html#storage-interfaces">Storage interfaces</a></li>
<li class="toctree-l2"><a class="reference internal" href="../subsystem-apis.html#other-subsystems">Other subsystems</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../locking/index.html">Locking</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../process/license-rules.html">Licensing rules</a></li>
<li class="toctree-l1"><a class="reference internal" href="../doc-guide/index.html">Writing documentation</a></li>
<li class="toctree-l1"><a class="reference internal" href="../dev-tools/index.html">Development tools</a></li>
<li class="toctree-l1"><a class="reference internal" href="../dev-tools/testing-overview.html">Testing guide</a></li>
<li class="toctree-l1"><a class="reference internal" href="../kernel-hacking/index.html">Hacking guide</a></li>
<li class="toctree-l1"><a class="reference internal" href="../trace/index.html">Tracing</a></li>
<li class="toctree-l1"><a class="reference internal" href="../fault-injection/index.html">Fault injection</a></li>
<li class="toctree-l1"><a class="reference internal" href="../livepatch/index.html">Livepatching</a></li>
<li class="toctree-l1"><a class="reference internal" href="../rust/index.html">Rust</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../admin-guide/index.html">Administration</a></li>
<li class="toctree-l1"><a class="reference internal" href="../kbuild/index.html">Build system</a></li>
<li class="toctree-l1"><a class="reference internal" href="../admin-guide/reporting-issues.html">Reporting issues</a></li>
<li class="toctree-l1"><a class="reference internal" href="../tools/index.html">Userspace tools</a></li>
<li class="toctree-l1"><a class="reference internal" href="../userspace-api/index.html">Userspace API</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../firmware-guide/index.html">Firmware</a></li>
<li class="toctree-l1"><a class="reference internal" href="../devicetree/index.html">Firmware and Devicetree</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../arch/index.html">CPU architectures</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../staging/index.html">Unsorted documentation</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../translations/index.html">Translations</a></li>
</ul>

</div>

<script type="text/javascript"> <!--
  var sbar = document.getElementsByClassName("sphinxsidebar")[0];
  let currents = document.getElementsByClassName("current")
  if (currents.length) {
    sbar.scrollTop = currents[currents.length - 1].offsetTop;
  }
  --> </script>
  <div role="note" aria-label="source link">
    <h3>This Page</h3>
    <ul class="this-page-menu">
      <li><a href="../_sources/networking/pktgen.rst.txt"
            rel="nofollow">Show Source</a></li>
    </ul>
   </div>
        </div>
      </div>
      <div class="documentwrapper">
        <div class="bodywrapper">
          

          <div class="body" role="main">
            
  



<section id="howto-for-the-linux-packet-generator">
<h1>HOWTO for the linux packet generator<a class="headerlink" href="#howto-for-the-linux-packet-generator" title="Link to this heading">¶</a></h1>
<p>Enable CONFIG_NET_PKTGEN to compile and build pktgen either in-kernel
or as a module.  A module is preferred; modprobe pktgen if needed.  Once
running, pktgen creates a thread for each CPU with affinity to that CPU.
Monitoring and controlling is done via /proc.  It is easiest to select a
suitable sample script and configure that.</p>
<p>On a dual CPU:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>ps aux | grep pkt
root       129  0.3  0.0     0    0 ?        SW    2003 523:20 [kpktgend_0]
root       130  0.3  0.0     0    0 ?        SW    2003 509:50 [kpktgend_1]
</pre></div>
</div>
<p>For monitoring and control pktgen creates:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>/proc/net/pktgen/pgctrl
/proc/net/pktgen/kpktgend_X
/proc/net/pktgen/ethX
</pre></div>
</div>
<section id="tuning-nic-for-max-performance">
<h2>Tuning NIC for max performance<a class="headerlink" href="#tuning-nic-for-max-performance" title="Link to this heading">¶</a></h2>
<p>The default NIC settings are (likely) not tuned for pktgen’s artificial
overload type of benchmarking, as this could hurt the normal use-case.</p>
<p>Specifically increasing the TX ring buffer in the NIC:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span># ethtool -G ethX tx 1024
</pre></div>
</div>
<p>A larger TX ring can improve pktgen’s performance, while it can hurt
in the general case, 1) because the TX ring buffer might get larger
than the CPU’s L1/L2 cache, 2) because it allows more queueing in the
NIC HW layer (which is bad for bufferbloat).</p>
<p>One should hesitate to conclude that packets/descriptors in the HW
TX ring cause delay.  Drivers usually delay cleaning up the
ring-buffers for various performance reasons, and packets stalling
the TX ring might just be waiting for cleanup.</p>
<p>This cleanup issue is specifically the case for the driver ixgbe
(Intel 82599 chip).  This driver (ixgbe) combines TX+RX ring cleanups,
and the cleanup interval is affected by the ethtool --coalesce setting
of parameter “rx-usecs”.</p>
<p>For ixgbe use e.g. “30” resulting in approx 33K interrupts/sec (1/30*10^6):</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span># ethtool -C ethX rx-usecs 30
</pre></div>
</div>
</section>
<section id="kernel-threads">
<h2>Kernel threads<a class="headerlink" href="#kernel-threads" title="Link to this heading">¶</a></h2>
<p>Pktgen creates a thread for each CPU with affinity to that CPU.
Which is controlled through procfile /proc/net/pktgen/kpktgend_X.</p>
<p>Example: /proc/net/pktgen/kpktgend_0:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>Running:
Stopped: eth4@0
Result: OK: add_device=eth4@0
</pre></div>
</div>
<p>Most important are the devices assigned to the thread.</p>
<p>The two basic thread commands are:</p>
<blockquote>
<div><ul class="simple">
<li><p>add_device <a class="reference external" href="mailto:DEVICE&#37;&#52;&#48;NAME">DEVICE<span>&#64;</span>NAME</a> -- adds a single device</p></li>
<li><p>rem_device_all         -- remove all associated devices</p></li>
</ul>
</div></blockquote>
<p>When adding a device to a thread, a corresponding procfile is created
which is used for configuring this device. Thus, device names need to
be unique.</p>
<p>To support adding the same device to multiple threads, which is useful
with multi queue NICs, the device naming scheme is extended with “&#64;”:
<a class="reference external" href="mailto:device&#37;&#52;&#48;something">device<span>&#64;</span>something</a></p>
<p>The part after “&#64;” can be anything, but it is custom to use the thread
number.</p>
</section>
<section id="viewing-devices">
<h2>Viewing devices<a class="headerlink" href="#viewing-devices" title="Link to this heading">¶</a></h2>
<p>The Params section holds configured information.  The Current section
holds running statistics.  The Result is printed after a run or after
interruption.  Example:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>/proc/net/pktgen/eth4@0

Params: count 100000  min_pkt_size: 60  max_pkt_size: 60
    frags: 0  delay: 0  clone_skb: 64  ifname: eth4@0
    flows: 0 flowlen: 0
    queue_map_min: 0  queue_map_max: 0
    dst_min: 192.168.81.2  dst_max:
    src_min:   src_max:
    src_mac: 90:e2:ba:0a:56:b4 dst_mac: 00:1b:21:3c:9d:f8
    udp_src_min: 9  udp_src_max: 109  udp_dst_min: 9  udp_dst_max: 9
    src_mac_count: 0  dst_mac_count: 0
    Flags: UDPSRC_RND  NO_TIMESTAMP  QUEUE_MAP_CPU
Current:
    pkts-sofar: 100000  errors: 0
    started: 623913381008us  stopped: 623913396439us idle: 25us
    seq_num: 100001  cur_dst_mac_offset: 0  cur_src_mac_offset: 0
    cur_saddr: 192.168.8.3  cur_daddr: 192.168.81.2
    cur_udp_dst: 9  cur_udp_src: 42
    cur_queue_map: 0
    flows: 0
Result: OK: 15430(c15405+d25) usec, 100000 (60byte,0frags)
6480562pps 3110Mb/sec (3110669760bps) errors: 0
</pre></div>
</div>
</section>
<section id="configuring-devices">
<h2>Configuring devices<a class="headerlink" href="#configuring-devices" title="Link to this heading">¶</a></h2>
<p>This is done via the /proc interface, and most easily done via pgset
as defined in the sample scripts.
You need to specify PGDEV environment variable to use functions from sample
scripts, i.e.:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>export PGDEV=/proc/net/pktgen/eth4@0
source samples/pktgen/functions.sh
</pre></div>
</div>
<p>Examples:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>pg_ctrl start           starts injection.
pg_ctrl stop            aborts injection. Also, ^C aborts generator.

pgset &quot;clone_skb 1&quot;     sets the number of copies of the same packet
pgset &quot;clone_skb 0&quot;     use single SKB for all transmits
pgset &quot;burst 8&quot;         uses xmit_more API to queue 8 copies of the same
                        packet and update HW tx queue tail pointer once.
                        &quot;burst 1&quot; is the default
pgset &quot;pkt_size 9014&quot;   sets packet size to 9014
pgset &quot;frags 5&quot;         packet will consist of 5 fragments
pgset &quot;count 200000&quot;    sets number of packets to send, set to zero
                        for continuous sends until explicitly stopped.

pgset &quot;delay 5000&quot;      adds delay to hard_start_xmit(). nanoseconds

pgset &quot;dst 10.0.0.1&quot;    sets IP destination address
                        (BEWARE! This generator is very aggressive!)

pgset &quot;dst_min 10.0.0.1&quot;            Same as dst
pgset &quot;dst_max 10.0.0.254&quot;          Set the maximum destination IP.
pgset &quot;src_min 10.0.0.1&quot;            Set the minimum (or only) source IP.
pgset &quot;src_max 10.0.0.254&quot;          Set the maximum source IP.
pgset &quot;dst6 fec0::1&quot;     IPV6 destination address
pgset &quot;src6 fec0::2&quot;     IPV6 source address
pgset &quot;dstmac 00:00:00:00:00:00&quot;    sets MAC destination address
pgset &quot;srcmac 00:00:00:00:00:00&quot;    sets MAC source address

pgset &quot;queue_map_min 0&quot; Sets the min value of tx queue interval
pgset &quot;queue_map_max 7&quot; Sets the max value of tx queue interval, for multiqueue devices
                        To select queue 1 of a given device,
                        use queue_map_min=1 and queue_map_max=1

pgset &quot;src_mac_count 1&quot; Sets the number of MACs we&#39;ll range through.
                        The &#39;minimum&#39; MAC is what you set with srcmac.

pgset &quot;dst_mac_count 1&quot; Sets the number of MACs we&#39;ll range through.
                        The &#39;minimum&#39; MAC is what you set with dstmac.

pgset &quot;flag [name]&quot;     Set a flag to determine behaviour.  Current flags
                        are: IPSRC_RND # IP source is random (between min/max)
                             IPDST_RND # IP destination is random
                             UDPSRC_RND, UDPDST_RND,
                             MACSRC_RND, MACDST_RND
                             TXSIZE_RND, IPV6,
                             MPLS_RND, VID_RND, SVID_RND
                             FLOW_SEQ,
                             QUEUE_MAP_RND # queue map random
                             QUEUE_MAP_CPU # queue map mirrors smp_processor_id()
                             UDPCSUM,
                             IPSEC # IPsec encapsulation (needs CONFIG_XFRM)
                             NODE_ALLOC # node specific memory allocation
                             NO_TIMESTAMP # disable timestamping
                             SHARED # enable shared SKB
pgset &#39;flag ![name]&#39;    Clear a flag to determine behaviour.
                        Note that you might need to use single quote in
                        interactive mode, so that your shell wouldn&#39;t expand
                        the specified flag as a history command.

pgset &quot;spi [SPI_VALUE]&quot; Set specific SA used to transform packet.

pgset &quot;udp_src_min 9&quot;   set UDP source port min, If &lt; udp_src_max, then
                        cycle through the port range.

pgset &quot;udp_src_max 9&quot;   set UDP source port max.
pgset &quot;udp_dst_min 9&quot;   set UDP destination port min, If &lt; udp_dst_max, then
                        cycle through the port range.
pgset &quot;udp_dst_max 9&quot;   set UDP destination port max.

pgset &quot;mpls 0001000a,0002000a,0000000a&quot; set MPLS labels (in this example
                                        outer label=16,middle label=32,
                                        inner label=0 (IPv4 NULL)) Note that
                                        there must be no spaces between the
                                        arguments. Leading zeros are required.
                                        Do not set the bottom of stack bit,
                                        that&#39;s done automatically. If you do
                                        set the bottom of stack bit, that
                                        indicates that you want to randomly
                                        generate that address and the flag
                                        MPLS_RND will be turned on. You
                                        can have any mix of random and fixed
                                        labels in the label stack.

pgset &quot;mpls 0&quot;           turn off mpls (or any invalid argument works too!)

pgset &quot;vlan_id 77&quot;       set VLAN ID 0-4095
pgset &quot;vlan_p 3&quot;         set priority bit 0-7 (default 0)
pgset &quot;vlan_cfi 0&quot;       set canonical format identifier 0-1 (default 0)

pgset &quot;svlan_id 22&quot;      set SVLAN ID 0-4095
pgset &quot;svlan_p 3&quot;        set priority bit 0-7 (default 0)
pgset &quot;svlan_cfi 0&quot;      set canonical format identifier 0-1 (default 0)

pgset &quot;vlan_id 9999&quot;     &gt; 4095 remove vlan and svlan tags
pgset &quot;svlan 9999&quot;       &gt; 4095 remove svlan tag


pgset &quot;tos XX&quot;           set former IPv4 TOS field (e.g. &quot;tos 28&quot; for AF11 no ECN, default 00)
pgset &quot;traffic_class XX&quot; set former IPv6 TRAFFIC CLASS (e.g. &quot;traffic_class B8&quot; for EF no ECN, default 00)

pgset &quot;rate 300M&quot;        set rate to 300 Mb/s
pgset &quot;ratep 1000000&quot;    set rate to 1Mpps

pgset &quot;xmit_mode netif_receive&quot;  RX inject into stack netif_receive_skb()
                                 Works with &quot;burst&quot; but not with &quot;clone_skb&quot;.
                                 Default xmit_mode is &quot;start_xmit&quot;.
</pre></div>
</div>
</section>
<section id="sample-scripts">
<h2>Sample scripts<a class="headerlink" href="#sample-scripts" title="Link to this heading">¶</a></h2>
<p>A collection of tutorial scripts and helpers for pktgen is in the
samples/pktgen directory. The helper parameters.sh file support easy
and consistent parameter parsing across the sample scripts.</p>
<p>Usage example and help:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>./pktgen_sample01_simple.sh -i eth4 -m 00:1B:21:3C:9D:F8 -d 192.168.8.2
</pre></div>
</div>
<p>Usage::</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>./pktgen_sample01_simple.sh [-vx] -i ethX

-i : ($DEV)       output interface/device (required)
-s : ($PKT_SIZE)  packet size
-d : ($DEST_IP)   destination IP. CIDR (e.g. 198.18.0.0/15) is also allowed
-m : ($DST_MAC)   destination MAC-addr
-p : ($DST_PORT)  destination PORT range (e.g. 433-444) is also allowed
-t : ($THREADS)   threads to start
-f : ($F_THREAD)  index of first thread (zero indexed CPU number)
-c : ($SKB_CLONE) SKB clones send before alloc new SKB
-n : ($COUNT)     num messages to send per thread, 0 means indefinitely
-b : ($BURST)     HW level bursting of SKBs
-v : ($VERBOSE)   verbose
-x : ($DEBUG)     debug
-6 : ($IP6)       IPv6
-w : ($DELAY)     Tx Delay value (ns)
-a : ($APPEND)    Script will not reset generator&#39;s state, but will append its config
</pre></div>
</div>
<p>The global variables being set are also listed.  E.g. the required
interface/device parameter “-i” sets variable $DEV.  Copy the
pktgen_sampleXX scripts and modify them to fit your own needs.</p>
</section>
<section id="interrupt-affinity">
<h2>Interrupt affinity<a class="headerlink" href="#interrupt-affinity" title="Link to this heading">¶</a></h2>
<p>Note that when adding devices to a specific CPU it is a good idea to
also assign /proc/irq/XX/smp_affinity so that the TX interrupts are bound
to the same CPU.  This reduces cache bouncing when freeing skbs.</p>
<p>Plus using the device flag QUEUE_MAP_CPU, which maps the SKBs TX queue
to the running threads CPU (directly from <code class="xref c c-func broken_xref docutils literal notranslate"><span class="pre">smp_processor_id()</span></code>).</p>
</section>
<section id="enable-ipsec">
<h2>Enable IPsec<a class="headerlink" href="#enable-ipsec" title="Link to this heading">¶</a></h2>
<p>Default IPsec transformation with ESP encapsulation plus transport mode
can be enabled by simply setting:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>pgset &quot;flag IPSEC&quot;
pgset &quot;flows 1&quot;
</pre></div>
</div>
<p>To avoid breaking existing testbed scripts for using AH type and tunnel mode,
you can use “pgset spi SPI_VALUE” to specify which transformation mode
to employ.</p>
</section>
<section id="disable-shared-skb">
<h2>Disable shared SKB<a class="headerlink" href="#disable-shared-skb" title="Link to this heading">¶</a></h2>
<p>By default, SKBs sent by pktgen are shared (user count &gt; 1).
To test with non-shared SKBs, remove the “SHARED” flag by simply setting:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>pg_set &quot;flag !SHARED&quot;
</pre></div>
</div>
<p>However, if the “clone_skb” or “burst” parameters are configured, the skb
still needs to be held by pktgen for further access. Hence the skb must be
shared.</p>
</section>
<section id="current-commands-and-configuration-options">
<h2>Current commands and configuration options<a class="headerlink" href="#current-commands-and-configuration-options" title="Link to this heading">¶</a></h2>
<p><strong>Pgcontrol commands</strong>:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>start
stop
reset
</pre></div>
</div>
<p><strong>Thread commands</strong>:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>add_device
rem_device_all
</pre></div>
</div>
<p><strong>Device commands</strong>:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>count
clone_skb
burst
debug

frags
delay

src_mac_count
dst_mac_count

pkt_size
min_pkt_size
max_pkt_size

queue_map_min
queue_map_max
skb_priority

tos           (ipv4)
traffic_class (ipv6)

mpls

udp_src_min
udp_src_max

udp_dst_min
udp_dst_max

node

flag
IPSRC_RND
IPDST_RND
UDPSRC_RND
UDPDST_RND
MACSRC_RND
MACDST_RND
TXSIZE_RND
IPV6
MPLS_RND
VID_RND
SVID_RND
FLOW_SEQ
QUEUE_MAP_RND
QUEUE_MAP_CPU
UDPCSUM
IPSEC
NODE_ALLOC
NO_TIMESTAMP
SHARED

spi (ipsec)

dst_min
dst_max

src_min
src_max

dst_mac
src_mac

clear_counters

src6
dst6
dst6_max
dst6_min

flows
flowlen

rate
ratep

xmit_mode &lt;start_xmit|netif_receive&gt;

vlan_cfi
vlan_id
vlan_p

svlan_cfi
svlan_id
svlan_p
</pre></div>
</div>
<p>References:</p>
<ul class="simple">
<li><p><a class="reference external" href="ftp://robur.slu.se/pub/Linux/net-development/pktgen-testing/">ftp://robur.slu.se/pub/Linux/net-development/pktgen-testing/</a></p></li>
<li><p><a class="reference external" href="ftp://robur.slu.se/pub/Linux/net-development/pktgen-testing/examples/">ftp://robur.slu.se/pub/Linux/net-development/pktgen-testing/examples/</a></p></li>
</ul>
<p>Paper from Linux-Kongress in Erlangen 2004.
- <a class="reference external" href="ftp://robur.slu.se/pub/Linux/net-development/pktgen-testing/pktgen_paper.pdf">ftp://robur.slu.se/pub/Linux/net-development/pktgen-testing/pktgen_paper.pdf</a></p>
<p>Thanks to:</p>
<p>Grant Grundler for testing on IA-64 and parisc, Harald Welte,  Lennert Buytenhek
Stephen Hemminger, Andi Kleen, Dave Miller and many others.</p>
<p>Good luck with the linux net-development.</p>
</section>
</section>


          </div>
          
        </div>
      </div>
    <div class="clearer"></div>
  </div>
    <div class="footer">
      &#169;The kernel development community.
      
      |
      Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.1.3</a>
      &amp; <a href="https://alabaster.readthedocs.io">Alabaster 0.7.16</a>
      
      |
      <a href="../_sources/networking/pktgen.rst.txt"
          rel="nofollow">Page source</a>
    </div>

    

    
  </body>
</html>

Filemanager

Name Type Size Permission Actions
caif Folder 0755
device_drivers Folder 0755
devlink Folder 0755
diagnostic Folder 0755
dsa Folder 0755
mac80211_hwsim Folder 0755
net_cachelines Folder 0755
pse-pd Folder 0755
6lowpan.html File 9.97 KB 0644
6pack.html File 18.06 KB 0644
af_xdp.html File 71.08 KB 0644
alias.html File 9.71 KB 0644
arcnet-hardware.html File 153.3 KB 0644
arcnet.html File 37.48 KB 0644
atm.html File 8.24 KB 0644
ax25.html File 8.75 KB 0644
bareudp.html File 10.56 KB 0644
batman-adv.html File 16.81 KB 0644
bonding.html File 140.89 KB 0644
bridge.html File 53.36 KB 0644
can.html File 120.11 KB 0644
can_ucan_protocol.html File 25.27 KB 0644
cdc_mbim.html File 25.28 KB 0644
checksum-offloads.html File 16.15 KB 0644
dctcp.html File 10.32 KB 0644
devmem.html File 24.33 KB 0644
dns_resolver.html File 15.11 KB 0644
driver.html File 20.41 KB 0644
eql.html File 31.48 KB 0644
ethtool-netlink.html File 274 KB 0644
failover.html File 8.43 KB 0644
fib_trie.html File 16.04 KB 0644
filter.html File 42.43 KB 0644
gen_stats.html File 14.2 KB 0644
generic-hdlc.html File 14.67 KB 0644
generic_netlink.html File 8.11 KB 0644
gtp.html File 20.55 KB 0644
ieee802154.html File 25.03 KB 0644
ila.html File 21.79 KB 0644
index.html File 108.18 KB 0644
ioam6-sysctl.html File 8.48 KB 0644
iou-zcrx.html File 16.63 KB 0644
ip-sysctl.html File 154.81 KB 0644
ip_dynaddr.html File 9.97 KB 0644
ipsec.html File 9.71 KB 0644
ipv6.html File 9.87 KB 0644
ipvlan.html File 16.87 KB 0644
ipvs-sysctl.html File 20.73 KB 0644
iso15765-2.html File 39.91 KB 0644
j1939.html File 99.33 KB 0644
kapi.html File 1.78 MB 0644
kcm.html File 21.67 KB 0644
l2tp.html File 47.74 KB 0644
lapb-module.html File 22.56 KB 0644
mac80211-injection.html File 12.37 KB 0644
mctp.html File 35.16 KB 0644
mpls-sysctl.html File 9.64 KB 0644
mptcp-sysctl.html File 13.33 KB 0644
mptcp.html File 19.74 KB 0644
msg_zerocopy.html File 19.72 KB 0644
multi-pf-netdev.html File 17.48 KB 0644
multiqueue.html File 13.21 KB 0644
napi.html File 43.36 KB 0644
net_dim.html File 76.45 KB 0644
net_failover.html File 16.3 KB 0644
netconsole.html File 31.44 KB 0644
netdev-features.html File 17.75 KB 0644
netdevices.html File 43.33 KB 0644
netfilter-sysctl.html File 8.43 KB 0644
netif-msg.html File 12.93 KB 0644
netmem.html File 14.84 KB 0644
nexthop-group-resilient.html File 24.56 KB 0644
nf_conntrack-sysctl.html File 15.77 KB 0644
nf_flowtable.html File 21.24 KB 0644
nfc.html File 13.73 KB 0644
oa-tc6-framework.html File 39.07 KB 0644
openvswitch.html File 21.15 KB 0644
operstates.html File 18.28 KB 0644
packet_mmap.html File 55.34 KB 0644
page_pool.html File 59.25 KB 0644
phonet.html File 16.92 KB 0644
phy-link-topology.html File 15.77 KB 0644
phy.html File 40.5 KB 0644
pktgen.html File 24.97 KB 0644
plip.html File 18.56 KB 0644
ppp_generic.html File 37.23 KB 0644
proc_net_tcp.html File 11.13 KB 0644
psp.html File 18.66 KB 0644
radiotap-headers.html File 14.73 KB 0644
rds.html File 29.39 KB 0644
regulatory.html File 18.44 KB 0644
representors.html File 25.79 KB 0644
rxrpc.html File 130.88 KB 0644
scaling.html File 40.25 KB 0644
sctp.html File 9.73 KB 0644
secid.html File 8.42 KB 0644
seg6-sysctl.html File 9.53 KB 0644
segmentation-offloads.html File 17.81 KB 0644
sfp-phylink.html File 41.09 KB 0644
skbuff.html File 29.22 KB 0644
smc-sysctl.html File 10.42 KB 0644
snmp_counter.html File 91.51 KB 0644
sriov.html File 9.46 KB 0644
statistics.html File 31.78 KB 0644
strparser.html File 19.15 KB 0644
switchdev.html File 39.55 KB 0644
sysfs-tagging.html File 10.95 KB 0644
tc-actions-env-rules.html File 8.87 KB 0644
tc-queue-filters.html File 9.33 KB 0644
tcp-thin.html File 10.33 KB 0644
tcp_ao.html File 35.85 KB 0644
team.html File 7.93 KB 0644
timestamping.html File 59.83 KB 0644
tipc.html File 384.61 KB 0644
tls-handshake.html File 21.18 KB 0644
tls-offload.html File 42.72 KB 0644
tls.html File 39.38 KB 0644
tproxy.html File 13.18 KB 0644
tuntap.html File 19 KB 0644
udplite.html File 23.04 KB 0644
vrf.html File 28.46 KB 0644
vxlan.html File 11.95 KB 0644
x25-iface.html File 10.9 KB 0644
x25.html File 10.07 KB 0644
xdp-rx-metadata.html File 27.46 KB 0644
xfrm_device.html File 19.14 KB 0644
xfrm_proc.html File 11.37 KB 0644
xfrm_sync.html File 15.85 KB 0644
xfrm_sysctl.html File 8.07 KB 0644
xsk-tx-metadata.html File 18.64 KB 0644
Filemanager