Giter Club home page Giter Club logo

dpdk-iperf's Introduction

dpdk-iperf


Fork from official iperf-3.1.3, and run on the dpdk user space TCP/IP stack(ANS).

Build and Install


  • Download latest dpdk version from dpdk website, and build dpdk
$ make config T=x86_64-native-linuxapp-gcc
$ make install T=x86_64-native-linuxapp-gcc
$ export RTE_SDK=/home/mytest/dpdk
$ export RTE_TARGET=x86_64-native-linuxapp-gcc
  • Download ANS following the ANS wiki, buld ans and startup ans
$ git clone https://github.com/ansyun/dpdk-ans.git
$ export RTE_ANS=/home/mytest/dpdk-ans
$ ./install_deps.sh
$ cd ans
$ make
$ sudo ./build/ans -c 0x2 -n 1  -- -p 0x1 --config="(0,0,1)"
EAL: Detected lcore 0 as core 0 on socket 0
EAL: Detected lcore 1 as core 1 on socket 0
EAL: Support maximum 128 logical core(s) by configuration.
EAL: Detected 2 lcore(s)
EAL: VFIO modules not all loaded, skip VFIO support...
EAL: Setting up physically contiguous memory...
EAL: Ask a virtual area of 0x400000 bytes
EAL: Virtual area found at 0x7fdf90c00000 (size = 0x400000)
EAL: Ask a virtual area of 0x15400000 bytes
  • Download dpdk-iperf and build dpdk-iperf3/iperf3
$ git clone https://github.com/ansyun/dpdk-iperf.git
dpdk-iperf3 process run on ANS tcp/ip stack.
iperf3 process run on linux kernel tcp/ip stack.

You may one of below command to compile dpdk-iperf
$ make all // make dpdk-iperf3 and iperf3
$ make dpdk-iperf // make dpdk-iperf3 
$ make iperf // make iperf3

  • Startup dpdk-iperf3/iperf3
# ./dpdk_iperf3  -s --bind 10.0.0.2
...
USER8: LCORE[0] anssock app lcoreId: 0
skip linux fd 5
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
...
[2020]   7.00-8.00   sec   113 MBytes   949 Mbits/sec
iperf3: getsockopt - Success
[2020]   8.00-9.00   sec   113 MBytes   949 Mbits/sec
iperf3: getsockopt - Success
[2020]   9.00-10.00  sec   113 MBytes   949 Mbits/sec
iperf3: getsockopt - Success
[2020]  10.00-10.00  sec   163 KBytes   942 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[2020]   0.00-10.00  sec  0.00 Bytes  0.00 bits/sec                  sender
[2020]   0.00-10.00  sec  1.11 GBytes   949 Mbits/sec                receiver
An unknown state was sent by the client, ignoring it.
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------

# ./iperf3 -c 10.0.0.2
Connecting to host 10.0.0.2, port 5201
[  5] local 10.0.0.10 port 40550 connected to 10.0.0.2 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  5]   0.00-1.00   sec   114 MBytes   953 Mbits/sec    0   94.1 KBytes
[  5]   1.00-2.00   sec   113 MBytes   949 Mbits/sec    0   94.1 KBytes
[  5]   2.00-3.00   sec   113 MBytes   949 Mbits/sec    0   94.1 KBytes
[  5]   3.00-4.00   sec   113 MBytes   949 Mbits/sec    0   94.1 KBytes
[  5]   4.00-5.00   sec   113 MBytes   949 Mbits/sec    0   94.1 KBytes
[  5]   5.00-6.00   sec   113 MBytes   949 Mbits/sec    0   94.1 KBytes
[  5]   6.00-7.00   sec   113 MBytes   949 Mbits/sec    0   94.1 KBytes
[  5]   7.00-8.00   sec   113 MBytes   949 Mbits/sec    0   94.1 KBytes
[  5]   8.00-9.00   sec   113 MBytes   949 Mbits/sec    0   94.1 KBytes
An unknown state was sent by the client, ignoring it.
[  5]   9.00-10.00  sec   113 MBytes   949 Mbits/sec    0   94.1 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  5]   0.00-10.00  sec  1.11 GBytes   950 Mbits/sec    0             sender
[  5]   0.00-10.00  sec  1.11 GBytes   949 Mbits/sec                  receiver

iperf Done.

Notes


  • If you want to use linux iperf3 connect to dpdk-iperf3, the linux iperf3 shall be complied from dpdk-iperf project, not the open source on other website.

Support


For free support, please use ans team mail list at [email protected], or QQ Group:86883521, or https://dpdk-ans.slack.com.

dpdk-iperf's People

Contributors

bluenet13 avatar mjasny avatar mainboy avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.