LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-09-2009, 10:11 AM   #1
rohit83.ken
LQ Newbie
 
Registered: Dec 2007
Posts: 18

Rep: Reputation: 0
Smile 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
 
Old 03-10-2009, 08:53 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by rohit83.ken View Post
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???
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New Year's gift for you: A variable-length bash prompt David the H. Linux - General 9 03-21-2014 06:04 AM
Generate Graph from iperf Statistics tassadaque Linux - Networking 1 08-20-2008 12:04 PM
Bash read in variable length text records lynx81191 Programming 4 11-17-2007 08:53 PM
trivia: extracting length from UDP packets thelordmule Programming 2 01-23-2007 10:46 PM
Variable length objects kamransoomro84 Programming 4 10-28-2004 12:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration