How to Automate Measuring of Bandwidth Usage Between Two Hosts

Adaptive bandwidth allocation?

If you just throw it at the TCP session with no control, it will transfer at full speed.

You could also compact the file as you transfer. It will not accelerate the transfer, but will optmize the use of the network, at CPU coast.

If it is not enough, the only [software] way to improve that even more is by using multiple TCP sessions so you will reduce the speed delimitating effects of the latency over the TCP flow control. I beleave 5 concurrent transfers from different offsets of the same file will do the job, faster impossible.

Is there a command line tool for all the incoming traffic in different protocol?

Why don't you use netstat and grep the output to filter only the ports that you need?

The output is similar to this:

Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)    
tcp4 0 0 192.168.1.7.63364 64.34.119.101.80 ESTABLISHED
tcp4 0 0 192.168.1.7.63357 64.34.119.13.80 ESTABLISHED

and it is very simple to grep results by protocol, port, address and state.

How can i get the maximum transfer rate of any given network interface

Reading out /proc/net/dev on a regular base will give you transfer rates.

Update (to clarify what I wanted to denote using the wording: "Reading ... on a regular base ..."):

/proc/bnet/dev gives you the amount of data transfered. To get the transfer rate you need to read this twice and divide the difference by the time elapsed between the two reads.

View same statistics as Local Area Connection Status gui from command line

Have you try to use get-Counter.

Here is the line that gives my network card bandwith usage :

get-counter "\\jpbhpp2\interface réseau(intel[r] 82567lm gigabit network connection)\total des octets/s"

But be careful you CAN'T use it like that because counters names are specific to the language of your system.

So you have to adapt it to your computer try :

get-counter

then

get-counter Get-counter -ListSet *


Related Topics



Leave a reply



Submit