Git Product home page Git Product logo

udp_generator's Introduction

UDP_generator

Follow these instructions to build the udp generator using DPDK 22.11 and CloudLab nodes

Building

Make sure that PKG_CONFIG_PATH is configured properly.

git clone https://github.com/carvalhof/udp_generator
cd udp_generator
./install_prerequisites.sh
./install_dpdk.sh
make

Running

Make sure that LD_LIBRARY_PATH is configured properly.

sudo ./build/udp-generator -a 41:00.0 -n 4 -c 0xff -- -d $DISTRIBUTION -r $RATE -f $FLOWS -s $SIZE -t $DURATION -q $QUEUES -c $ADDR_FILE -o $OUTPUT_FILE

Example

sudo ./build/udp-generator -a 41:00.0 -n 4 -c 0xff -- -d exponential -r 100000 -f 1 -s 128 -t 10 -q 1 -c addr.cfg -o output.dat

Parameters

  • $DISTRIBUTION : interarrival distribution (e.g., uniform or exponential)
  • $RATE : packet rate in pps
  • $FLOWS : number of flows
  • $SIZE : packet size in bytes
  • $DURATION : duration of execution in seconds (we double for warming up)
  • $QUEUES : number of RX/TX queues
  • $ADDR_FILE : name of address file (e.g., 'addr.cfg')
  • $OUTPUT_FILE : name of output file containg the latency for each packet

address file structure

[ethernet]
src = 0c:42:a1:8c:db:1c
dst = 0c:42:a1:8c:dc:54

[ipv4]
src = 192.168.1.2
dst = 192.168.1.1

[udp]
dst = 12345

[server]
nr_servers = 1

udp_generator's People

Contributors

berghetti avatar carvalhof 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.