Skip to content

carvalhof/udp_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
make

Running

Make sure that LD_LIBRARY_PATH is configured properly.

sudo ./build/udp-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/udp-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

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published