Rude

From NDWiFiTestebed
Jump to: navigation, search

Rude/Crude is an application to generate udp traffic streams from a simple configuration file

Contents

Usage

Server

To start the server, use the following command

# rude -s example.cfg

Client

To start the client, use the following command

# crude

Statistics

Configuration

This example configuration will create two streams, one starting at 0ms from when you launch rude, and running for 10,000ms (10sec). The first stream will have ID 0030 and send a CONSTANT stream of 50 packets per second with 1355 Bytes in each packet. The second stream will start after 10,000ms (10sec) and run until 20,000ms (20sec) from the launch. This stream will get the ID of 0031 and send a constand stream of 250 packets per second with 1355 Bytes per packet. Both streams will be sent to the ip 192.168.0.1 on port 10001.

# rude_example1.cfg
START NOW

0000  0030 ON 3002 192.168.0.1:10001 CONSTANT 50 1355
10000 0030 OFF

10000  0031 ON 3003 192.168.0.1:10001 CONSTANT 250 1355
20000 0031 OFF

Example

PC01

  • IP: 10.0.0.30/24
  • Using the example file from the above section
# rude -s rude_example1.cfg
rude version 0.62, Copyright (C) 1999 Juha Laine and Sampo Saaristo
rude comes with ABSOLUTELY NO WARRANTY!
This is free software, and you are welcome to redistribute it
under GNU GENERAL PUBLIC LICENSE Version 2.

F_ID: F_START: F_STOP: F_SPORT: F_DADD: F_DPORT: F_err: F_suc: F_seq: F_TYPE: [+ type params]
31 1302043701.801674 1302043711.801674 3003 10.0.0.40 10001 0 2500 2500 CBR [r:250 s:1355]
30 1302043701.801674 1302043711.801674 3002 10.0.0.40 10001 0 501 501 CBR [r:50 s:1355]

PC02

  • IP: 10.0.0.40/24
# crude -s 0030,0031
crude version 0.62, Copyright (C) 1999 Juha Laine and Sampo Saaristo
crude comes with ABSOLUTELY NO WARRANTY!
This is free software, and you are welcome to redistribute it
under GNU GENERAL PUBLIC LICENSE Version 2.
^C
Runtime statistics results: 
--------------------------- 

Flow_ID=30 
Packets: received=501   out-of-seq=0   lost(est)=0 
Total bytes received=678855 
Sequence numbers: first=0   last=500 
Delay: average = 36.455138   jitter=0.000002   seconds 
Absolute maximum jitter=0.000018   seconds 
Throughput=67880.9   Bps  (from first to last packet received) 

Flow_ID=31 
Packets: received=2500   out-of-seq=0   lost(est)=0 
Total bytes received=3387500 
Sequence numbers: first=0   last=2499 
Delay: average = 36.513456   jitter=0.000041   seconds 
Absolute maximum jitter=0.000113   seconds 
Throughput=338866   Bps  (from first to last packet received)

Resources

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox