Solved

iperf -b bandwidth option for UDP

Posted on 2014-01-28
4
1,234 Views
Last Modified: 2014-04-10
I am simulating VoIP traffic with iperf and I am struggling to understand the -b option for bandwidth for UDP traffic (http://crok-linkblog.homelinux.com/links-cisco/how-to-use-iperf-properly-additions-to-the-tcp-throughput-post/).

It says that it is the bandwidth to send at in bits/sec. So I have a 3mbps MPLS link and when I use -b 3000000 -f k, I got a lot of packets being dropped for just one conversation. But when I use -b as 65000, I have no problem with 5 conversations.

Can somebody help me to understand the -b bandwidth option?
0
Comment
Question by:leblanc
  • 2
  • 2
4 Comments
 
LVL 8

Accepted Solution

by:
N-W earned 500 total points
ID: 39816605
The -b option is exactly as described, it sends UDP packets at the specified bandwidth.

If you're sending 5 x 65000 conversations, that's only 0.32Mbits/sec which is well under your 3Mbits/sec connection.

If you're sending 1 x 3000000 conversations, that's pushing your connection to it's limit. If there's other traffic currently on this connection, then it's probably being over utilized and as a result, dropping packets.

Try reducing the UDP stream bandwidth to 2500000 or 2000000 and see there's less dropped packets.
0
 
LVL 1

Author Comment

by:leblanc
ID: 39816797
I think you just help to understand. So the bandwidth is actually not my actual 3 mbps MPLS connection. It is the bandwidth that I think is required for a conversation. So if I am simulating VoIP g729 codec that requires 65000 kbps per conversation. I will just keep incrementing the number of conversations until I see the packets dropped. That is my limits (roughly) for the number of conversations I can have on my 3mbps MPLS link. Does it make sense?
0
 
LVL 8

Assisted Solution

by:N-W
N-W earned 500 total points
ID: 39816822
Yes, that makes sense.

I think you're getting a little confused with your data rates though. G.729 generally runs at either 6.4kbit/s (6400bit/s), 8kbit/s (8000bit/s) or 11.8kbit/s (11800bit/s).

Specifying 65000 when running iperf with run the UDP test at roughly 64kbit/s.

On a 3Mbit/s connection, theoretically you should be able to achieve the following:

467 conversations @ 6.4kbit/s
375 conversations @ 8kbit/s
254 conversations @ 11.8kbit/s

If you're truly running at 64kbit/s, then you'll only achieve 46 conversations.

Note: you're actual results will vary depending on the other traffic running through your connection.
0
 
LVL 1

Author Comment

by:leblanc
ID: 39816853
You are right. I meant g711 with 64Kbps and g729 is 8Kbps. Thank you
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
Skype is a P2P (Peer to Peer) instant messaging and VOIP (Voice over IP) service – as well as a whole lot more.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now