Networking Forums

Networking Forums > Computer Networking > Linux Networking > Recommended bandwidth measureing tool for 10G

Reply
Thread Tools Display Modes

Recommended bandwidth measureing tool for 10G

 
 
General Schvantzkoph
Guest
Posts: n/a

 
      07-26-2011, 11:38 PM
What's the best tool to measure the bandwidth between NIC cards. I need to
measure the bandwidth between 10G NICs.
 
Reply With Quote
 
 
 
 
Jorgen Grahn
Guest
Posts: n/a

 
      07-27-2011, 08:12 AM
On Tue, 2011-07-26, General Schvantzkoph wrote:
> What's the best tool to measure the bandwidth between NIC cards. I need to
> measure the bandwidth between 10G NICs.


What do you mean? That you have two NICs, and want to measure the
mean bits/s are going from A to B over a certain time period?

/Jorgen

--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
 
Reply With Quote
 
General Schvantzkoph
Guest
Posts: n/a

 
      07-27-2011, 12:02 PM
On Wed, 27 Jul 2011 08:12:47 +0000, Jorgen Grahn wrote:

> On Tue, 2011-07-26, General Schvantzkoph wrote:
>> What's the best tool to measure the bandwidth between NIC cards. I need
>> to measure the bandwidth between 10G NICs.

>
> What do you mean? That you have two NICs, and want to measure the mean
> bits/s are going from A to B over a certain time period?
>
> /Jorgen


Yes that's it exactly. I'm going to try netperf, that looks promising.
 
Reply With Quote
 
Jorgen Grahn
Guest
Posts: n/a

 
      07-27-2011, 03:13 PM
On Wed, 2011-07-27, General Schvantzkoph wrote:
> On Wed, 27 Jul 2011 08:12:47 +0000, Jorgen Grahn wrote:
>
>> On Tue, 2011-07-26, General Schvantzkoph wrote:
>>> What's the best tool to measure the bandwidth between NIC cards. I need
>>> to measure the bandwidth between 10G NICs.

>>
>> What do you mean? That you have two NICs, and want to measure the mean
>> bits/s are going from A to B over a certain time period?
>>
>> /Jorgen

>
> Yes that's it exactly. I'm going to try netperf, that looks promising.


Isn't netperf a traffic generator? If you just want to see what's
happening in terms of bits/s, you can use e.g. ifstat(1), or even
use ifconfig and calculate the average yourself.

/Jorgen

--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
 
Reply With Quote
 
General Schvantzkoph
Guest
Posts: n/a

 
      07-27-2011, 03:36 PM
On Wed, 27 Jul 2011 15:13:05 +0000, Jorgen Grahn wrote:

> On Wed, 2011-07-27, General Schvantzkoph wrote:
>> On Wed, 27 Jul 2011 08:12:47 +0000, Jorgen Grahn wrote:
>>
>>> On Tue, 2011-07-26, General Schvantzkoph wrote:
>>>> What's the best tool to measure the bandwidth between NIC cards. I
>>>> need to measure the bandwidth between 10G NICs.
>>>
>>> What do you mean? That you have two NICs, and want to measure the
>>> mean bits/s are going from A to B over a certain time period?
>>>
>>> /Jorgen

>>
>> Yes that's it exactly. I'm going to try netperf, that looks promising.

>
> Isn't netperf a traffic generator? If you just want to see what's
> happening in terms of bits/s, you can use e.g. ifstat(1), or even use
> ifconfig and calculate the average yourself.
>
> /Jorgen


ifconfig just tells you the configuration it doesn't do any measurements.
ifstat gives you stats but it doesn't generate traffic which is necessary
for measuring the actual bandwidth of the interfaces.
 
Reply With Quote
 
Rick Jones
Guest
Posts: n/a

 
      07-27-2011, 04:33 PM
Jorgen Grahn <grahn+(E-Mail Removed)> wrote:
> On Wed, 2011-07-27, General Schvantzkoph wrote:
> > On Wed, 27 Jul 2011 08:12:47 +0000, Jorgen Grahn wrote:
> >
> >> On Tue, 2011-07-26, General Schvantzkoph wrote:
> >>> What's the best tool to measure the bandwidth between NIC
> >>> cards. I need to measure the bandwidth between 10G NICs.
> >>
> >> What do you mean? That you have two NICs, and want to measure
> >> the mean bits/s are going from A to B over a certain time period?
> >>

> >
> > Yes that's it exactly. I'm going to try netperf, that looks
> > promising.


> Isn't netperf a traffic generator? If you just want to see what's
> happening in terms of bits/s, you can use e.g. ifstat(1), or even
> use ifconfig and calculate the average yourself.


That is correct, netperf is a traffic generator not a traffic monitor.
It will generate traffic between A and B and tell you about the
result.

As there is more to networking than just bandwidth, I'll suggest
TCP_RR tests in addition to TCP_STREAM.

happy benchmarking,

rick jones
--
It is not a question of half full or empty - the glass has a leak.
The real question is "Can it be patched?"
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
 
Jorgen Grahn
Guest
Posts: n/a

 
      07-27-2011, 08:42 PM
On Wed, 2011-07-27, General Schvantzkoph wrote:
> On Wed, 27 Jul 2011 15:13:05 +0000, Jorgen Grahn wrote:
>
>> On Wed, 2011-07-27, General Schvantzkoph wrote:
>>> On Wed, 27 Jul 2011 08:12:47 +0000, Jorgen Grahn wrote:
>>>
>>>> On Tue, 2011-07-26, General Schvantzkoph wrote:
>>>>> What's the best tool to measure the bandwidth between NIC cards. I
>>>>> need to measure the bandwidth between 10G NICs.
>>>>
>>>> What do you mean? That you have two NICs, and want to measure the
>>>> mean bits/s are going from A to B over a certain time period?
>>>>
>>>> /Jorgen
>>>
>>> Yes that's it exactly. I'm going to try netperf, that looks promising.

>>
>> Isn't netperf a traffic generator? If you just want to see what's
>> happening in terms of bits/s, you can use e.g. ifstat(1), or even use
>> ifconfig and calculate the average yourself.
>>
>> /Jorgen

>
> ifconfig just tells you the configuration it doesn't do any measurements.


The one I use on Linux does.

> ifstat gives you stats but it doesn't generate traffic which is necessary
> for measuring the actual bandwidth of the interfaces.


I interpreted your earlier answer as "I have traffic going and just
want to find out how much there already is".

I also think that with 10Gbit interfaces, you'll hit a limit not in
the /interfaces/ but in the system bus/IP stack/userspace of the
machines themselves. (Not that it's not interesting to find out.)

/Jorgen

--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
 
Reply With Quote
 
Rick Jones
Guest
Posts: n/a

 
      07-27-2011, 11:01 PM
General Schvantzkoph <(E-Mail Removed)> wrote:
> What I want to do is be able to generate traffic at wire speed. I'm
> designing a piece of hardware that has a couple of 10G ports on it
> and we need to be able to test it under maximum load.


Assuming your piece of hardware has sufficient CPU "oomph" (I'm
assuming it runs Linux given the news group) then netperf should be
able to generate traffic at wire speed.

Some, but probably not all the factors involved:

*) CPU "oomph"
*) NIC driver model efficiency/driver path length
*) Stateless offloads in the NIC - both on transmit and receive side
*) Width of path to the NIC (PCIe Gen1/Gen2 x4/x8 etc)
*) Use of a 9000 byte (JumboFrame) vs 1500 byte MTU

When you get to the point of running, joining netperf-(E-Mail Removed)
might be a good idea.

rick jones

Some boiler-plate I trot-out from time to time:

Looking from the standpoint of the defining IEEE specifications, there
is nothing in 10 Gigabit Ethernet that makes data transmission any
easier on the host than it was for 1 Gigabit Ethernet, or for that
matter 100 or 10 Megabit Ethernet. It takes just as many CPU cycles
to send a frame through the interface for all of those.

Now, as time has passed, NIC vendors have learned, or been taught by
system vendors how to do things *beyond* the IEEE
specifications.

In the time of 100 Megabit Ethernet, it became possible to have fewer
than one interrupt per packet.

In the time of 1 Gigabit Ethernet, various interrupt coalescing
schemes took things farther than they went with 100 Megabit Ethernet.
Also, the mass-market NICs started to support ChecKsum Offload (CKO -
something first done by the then major systems vendors with their FDDI
NICs in the early 1990's) and some started supporting maximum frame
sizes of 9000 bytes - what Alteon dubbed "Jumbo Frames" - a name that
has stuck to this day.

Any 10 Gigabit Ethernet NIC worth its silicon will have all those
features, plus support for directing interrupts to multiple cores and
using multiple packet queues. This can spread the work across
multiple cores - but only when there are multiple "flows" (eg TCP
connections). The 10 Gigabit Ethernet NICs also provide support for
TCP Segmentation Offload (TSO) and newer ones also include Large
Receive Offload (LRO - sometimes called Transparant Packet
Aggregation).

Those stateless offloads can very dramatically lower the CPU overhead
of data transfer. However...

Stateless offloads such as CKO, TSO and LRO really only come into play
when the traffic is a "bulk transfer" - when the application(s)
involved send rather more than an MSS's worth of data at one time.
There are many applications which do so, but not all applications do.
CKO, TSO, and LRO do little or nothing for applications making
discrete, small sends - those applications are basically back to 10
Megabit Ethenet days when it comes to how much CPU will be consumed
sending/receiving their traffic through the NIC.


--
denial, anger, bargaining, depression, acceptance, rebirth...
where do you want to be today?
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
 
General Schvantzkoph
Guest
Posts: n/a

 
      07-27-2011, 11:31 PM
On Wed, 27 Jul 2011 16:33:46 +0000, Rick Jones wrote:

> Jorgen Grahn <grahn+(E-Mail Removed)> wrote:
>> On Wed, 2011-07-27, General Schvantzkoph wrote:
>> > On Wed, 27 Jul 2011 08:12:47 +0000, Jorgen Grahn wrote:
>> >
>> >> On Tue, 2011-07-26, General Schvantzkoph wrote:
>> >>> What's the best tool to measure the bandwidth between NIC cards. I
>> >>> need to measure the bandwidth between 10G NICs.
>> >>
>> >> What do you mean? That you have two NICs, and want to measure the
>> >> mean bits/s are going from A to B over a certain time period?
>> >>
>> >>
>> > Yes that's it exactly. I'm going to try netperf, that looks
>> > promising.

>
>> Isn't netperf a traffic generator? If you just want to see what's
>> happening in terms of bits/s, you can use e.g. ifstat(1), or even use
>> ifconfig and calculate the average yourself.

>
> That is correct, netperf is a traffic generator not a traffic monitor.
> It will generate traffic between A and B and tell you about the result.
>
> As there is more to networking than just bandwidth, I'll suggest TCP_RR
> tests in addition to TCP_STREAM.
>
> happy benchmarking,
>
> rick jones


What I want to do is be able to generate traffic at wire speed. I'm
designing a piece of hardware that has a couple of 10G ports on it and we
need to be able to test it under maximum load.
 
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
Recommended manufacturer juju Windows Networking 0 07-29-2007 04:54 PM
Any tool to trace incoming and outgoing packets in Kernel, also loking for tool to debug application struck in infinite loops? GS Linux Networking 0 06-18-2006 04:24 AM
bandwidth measurement tool John A Grandy Windows Networking 2 04-19-2006 05:47 PM
recommended recursor Home Networking 13 01-02-2005 10:43 AM
Recommended ISPs James Broadband 33 11-05-2004 12:53 AM



1 2 3 4 5 6 7 8 9 10 11