Networking Forums

Networking Forums > Computer Networking > Linux Networking > How can I calculate the throughput of a TCP server having many connections?

Reply
Thread Tools Display Modes

How can I calculate the throughput of a TCP server having many connections?

 
 
Patrick Lam
Guest
Posts: n/a

 
      04-05-2006, 03:53 PM
Dear all,

I need to calculate the throughput of a TCP server having multiple
connections running concurrently. I tried to add the number of bytes
received per connection to a global variable to keep track of the total
number of bytes received by the server. However, a printout of the global
variable eventually only shows the number of bytes received per connection
(because the number seems to be inversely proportional to the number of
connections). I did use mutex to guard the global variable when I need to
write things to it.

What is happening here?

How is this (i.e., calculating the throughput of a TCP server) usually done?

Thanks very much in advance.

Regards,

Patrick


 
Reply With Quote
 
 
 
 
Rick Jones
Guest
Posts: n/a

 
      04-05-2006, 06:23 PM
Patrick Lam <yahoo_mail@nospam_tom.com> wrote:

> I need to calculate the throughput of a TCP server having multiple
> connections running concurrently. I tried to add the number of
> bytes received per connection to a global variable to keep track of
> the total number of bytes received by the server. However, a
> printout of the global variable eventually only shows the number of
> bytes received per connection (because the number seems to be
> inversely proportional to the number of connections). I did use
> mutex to guard the global variable when I need to write things to
> it.


I presume you mean an application server being accessed via TCP
connections?

Can you expand a bit on the "eventually only shows" bit? Are you
ramping the number of TCP connections and comparing each time?

How do your rates compare with "link-rate" for your setup?

> What is happening here?


> How is this (i.e., calculating the throughput of a TCP server)
> usually done?


Summing the octets (bytes) as you assert you are doing. Some may look
at bytes received, some may look at bytes sent, some may look at both.

rick jones
--
firebug n, the idiot who tosses a lit cigarette out his car window
these opinions are mine, all mine; HP might not want them anyway...
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
 
Reply With Quote
 
ynotssor
Guest
Posts: n/a

 
      04-06-2006, 12:05 AM
"Patrick Lam" <yahoo_mail@nospam_tom.com> wrote in message
news:e10r53$1qkn$(E-Mail Removed)

> I need to calculate the throughput of a TCP server having multiple
> connections running concurrently.

....
> How is this (i.e., calculating the throughput of a TCP server)
> usually done?


I build web pages using http://people.ee.ethz.ch/~oetiker/webtools/mrtg/ so
that administrators can monitor the throughput of all the critical network
interfaces.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows 2003 Server Slow Network Throughput drew.flint@gmail.com Windows Networking 3 05-06-2008 03:01 PM
How Can I calculate EIRP? ConceptZone Wireless Internet 11 09-23-2007 06:31 AM
Calculate if an IP belongs to a subnet Sashi Linux Networking 4 04-16-2007 11:22 AM
Odd TCP client/server throughput problem Richard Eich Linux Networking 26 12-12-2006 07:24 AM
Equations to calculate range? Eric Wireless Internet 8 03-28-2006 01:13 PM



1 2 3 4 5 6 7 8 9 10 11