LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   how to generate variable length packets in iperf (https://www.linuxquestions.org/questions/linux-networking-3/how-to-generate-variable-length-packets-in-iperf-710264/)

rohit83.ken 03-09-2009 10:11 AM

how to generate variable length packets in iperf
 
Hello frnds

i am running iperf client as

./iperf –c 10.20.9.21 -l 22 –b 100 -i 1 – t 100 -u –p 5001

for UDP packet generation at client side in linux machine

I run iperf server as

./iperf –s –i 1 –u –p 5001 in 10.20.9.21 machine

how can I modify the iperf source code such that it generates different length
packet's at each interval

In the above length of packet must change at each second or interval

For example

if I run iperf with

./iperf –c 10.20.9.21 -l 22 –b 100 -i 1 – t 100 -u –p 5001

the next interval or second it must generate packet with different length

./iperf –c 10.20.9.21 -l 50 –b 100 -i 1 – t 100 -u –p 5001
see the bold charecters above

How can I change the packet length from 22 to 50 at run time only ,so that the packet length increases at each instance from 22 to 50 and then 100 and so on

TB0ne 03-10-2009 08:53 PM

Quote:

Originally Posted by rohit83.ken (Post 3469708)
Hello frnds

i am running iperf client as

./iperf –c 10.20.9.21 -l 22 –b 100 -i 1 – t 100 -u –p 5001

for UDP packet generation at client side in linux machine

I run iperf server as

./iperf –s –i 1 –u –p 5001 in 10.20.9.21 machine

how can I modify the iperf source code such that it generates different length
packet's at each interval

In the above length of packet must change at each second or interval

For example

if I run iperf with

./iperf –c 10.20.9.21 -l 22 –b 100 -i 1 – t 100 -u –p 5001

the next interval or second it must generate packet with different length

./iperf –c 10.20.9.21 -l 50 –b 100 -i 1 – t 100 -u –p 5001
see the bold charecters above

How can I change the packet length from 22 to 50 at run time only ,so that the packet length increases at each instance from 22 to 50 and then 100 and so on

Open the source file(s), and add your own instructions in. Compile and enjoy.

Or are you asking someone to write the code for you???


All times are GMT -5. The time now is 07:26 PM.