Giter Club home page Giter Club logo

tcp_generator_2's Introduction

TCP_generator

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

Building

Make sure that PKG_CONFIG_PATH is configured properly.

git clone https://github.com/carvalhof/tcp_generator
cd tcp_generator
make

Running

Make sure that LD_LIBRARY_PATH is configured properly.

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

Example

sudo ./build/tcp-generator -a 41:00.0 -n 4 -c 0xff -- -r 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

addresses 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

[tcp]
dst = 12345

[server]
nr_servers = 1

tcp_generator_2's People

Contributors

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