networking-forum.com
Community BlogCommunity Wiki * Register  * Search  * Login
View unanswered postsView active topics

All times are UTC - 6 hours [ DST ]



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: iPerf/jPerf UDP vs TCP
PostPosted: Thu May 20, 2010 9:11 am 
Offline
New Member
New Member

Joined: Thu May 20, 2010 8:47 am
Posts: 2
Certs: None
Hi,

We just upgraded one of our WAN links and we're trying to get an accurate measurement of the new throughput. We've been playing around with jPerf and we've been getting totally different results depending on whether we use TCP or UDP. For example, running a TCP test we get less than 1 Mbps throughput. Running a UDP test (with which we're able to set the amount of data we push) we're able to get throughput as high as 300 Mbps. I should point out that I was running this test to a server across the country with a round-trip latency of about 80 ms.

So which is the more accurate reflection of our throughput, TCP or UDP? I suspect the TCP is getting bogged down because of the high latency. Maybe TCP is sending packets up to its window size, then because of the latency it doesn't receive an ACK right away, so it's shrinking its window, and jPerf interprets this as window resizing due to a lack of available bandwidth.

UDP, on the other hand, will just pump out UDP packets and depending on the replies it gets from the server end, it will determine how many of those UDP packets were received. Based on that, it will determine bandwidth. So if that's the case, I would think UDP would be a purer reflection of your available bandwidth.

Any thoughts on this? Hopefully someone out there is an iPerf/jPerf expert (and also a TCP/UDP expert).

Thanks.


Top
 Profile  
 
PostPosted: Thu May 20, 2010 10:08 am 
Offline
Post Whore
Post Whore
User avatar

Joined: Fri Apr 25, 2008 2:16 pm
Posts: 1363
Location: Jacksonville, FL
Certs: CCNP, CCNA:Sec, MCSE
I've never found the iperf UDP results to be accurate.

Definitely test with TCP; however, because of the high latency, you'll need to increase your TCP Window size in iperf (the -w option).

There are formulas out there that will tell you the ideal window size, given the bandwidth and delay (you listed the delay, but not the total bandwidth; I'm doubting 300 Megabyte/sec is how fast your link is!!).

_________________
"A problem well stated is a problem half solved". (Charles Kettering)


Top
 Profile  
 
PostPosted: Thu May 20, 2010 10:36 am 
Online
CCIE #38070
CCIE #38070
User avatar

Joined: Wed Jun 18, 2008 7:49 am
Posts: 12430
Location: London, UK
Certs: CCIE ,CC-NP/IP, JNCIP-SP, JNCIS-ENT, BC-/SPNE/NP
We test using UDP

but we don't use iperf

_________________
www.mellowd.co.uk/ccie/


Top
 Profile  
 
PostPosted: Thu May 20, 2010 11:08 am 
Offline
New Member
New Member

Joined: Thu May 20, 2010 8:47 am
Posts: 2
Certs: None
Thanks for the input. I ratcheted up the TCP window size and was able to get up to about 6 Mbps throughput, according to jPerf.

Any suggestions for other tools, free or otherwise? We run SolarWinds Network Performance Monitor, but as far as I've seen they don't offer a throughput tester.


Top
 Profile  
 
PostPosted: Thu May 20, 2010 11:10 am 
Online
CCIE #38070
CCIE #38070
User avatar

Joined: Wed Jun 18, 2008 7:49 am
Posts: 12430
Location: London, UK
Certs: CCIE ,CC-NP/IP, JNCIP-SP, JNCIS-ENT, BC-/SPNE/NP
We use this: http://www.pds-test.co.uk/products/ip_test_measure.html

It's not free though

_________________
www.mellowd.co.uk/ccie/


Top
 Profile  
 
PostPosted: Sat May 22, 2010 5:38 pm 
Offline
New Member
New Member

Joined: Fri May 21, 2010 4:28 pm
Posts: 6
Certs: BSc in Electronics and Comms Eng.
I have also used iPerf... and the results were very weird ... for UDP the bandwidth was 1 Mb/s and for TCP around 1 kb/s !
any ideas what may went wrong ?


Top
 Profile  
 
PostPosted: Mon May 24, 2010 7:43 pm 
Offline
Cisco Inferno
Cisco Inferno
User avatar

Joined: Mon Jul 10, 2006 12:58 am
Posts: 10201
Location: Seattle
Dinger wrote:
I'm doubting 300 Megabyte/sec is how fast your link is!!).


/byte/bit/

_________________
Reasonably un-nerdy blog:
americanwerewolfinbelgrade.wordpress.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group