Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Code to measure throughput of Gigabit Ethernet (UDP)

Posted on 2011-09-15
6
593 Views
Last Modified: 2013-11-13
Hi!

I am not sure what is the best zone for this question.

I want to measure throughput of Gigabit Ethernet (UDP).  I do not want to use an external tool.

1) If I connect 2 Windows PCs directly, and try to transmit "tons of data in one direction", what is maximal expected throuput (Using Fullduplex gigabit Ethernet) ?
2) If I connect 2 Windows PCs through a "good gigabit Ethernet switch", and try to transmit "tons of data in one directions", what is maximal expected throuput (Using Fullduplex gigabit Ethernet) ?
3) If I connect 2 Windows PCs directly, and try to transmit "tons of data in both directions", what is maximal expected throuput (Using Fullduplex gigabit Ethernet) ?
4) If I connect 2 Windows PCs through a "good gigabit Ethernet switch", and try to transmit "tons of data in both directions", what is maximal expected throuput (Using Fullduplex gigabit Ethernet) ?

Is there some where a C/C++ code which gives the answer for the above questions ?
Later I would like to run the same code on 100 Mbit Fullduplex Ethernet, and 10 Gbit Fullduplex Ethernet.
Later I want to compare the results to Infiniband.

I am not interested in precise result, just Tipical throuput.


This question is continuing a previous question. See Prev_Question  for more details..


Thanks
zmau
0
Comment
Question by:zmau
  • 3
  • 3
6 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 36544852
You might want to take a look at http://www.totusoft.com/lanspeed1.html before you write your own.  I had seen this before and forgot about it.  I just downloaded it and I'm going to try it myself.  I'll let you know if there are problems.
0
 
LVL 1

Author Comment

by:zmau
ID: 36544861
I am "on the door". I'll test it after the weekend.

zmau
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 36544994
http://www.totusoft.com/lanspeed1.html is a very interesting program.  It doesn't require installation, just runs from the EXE.  It writes a file to a destination and then reads it back while measuring the throughput both directions.  That's probably what you want because that will include the file system and anti-virus and any other system overhead in the process.  I noticed that sometimes it would slow way down.  Also that it makes a difference which computer initiates the test.  On one computer I got 5MBytes p/s upload and 10MBytes p/s download.  If I measured from the other computer (reversed the path), I got 9MBytes p/s upload and 10MBytes p/s download.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 1

Author Comment

by:zmau
ID: 36556430
Hi,

I had not tested the program yet (I am soon going to do it).
I wonder if there is a code which I can read/change ?


Maurice
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 36556968
I don't think they offer code because they have a commercial version also.  I'd try the program first since it takes less than 5 minutes to download it and use it.  Could save you a lot of time.
0
 
LVL 1

Author Comment

by:zmau
ID: 36939022
Unfortunatley I could not test the answer yet.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

829 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