Re: bandwidth problem

2011-03-17 Thread R0me0 ***
Hello Stuart !

Thank very much !

With iperf , Now i can see what exactly I would want see

I had forgotten the disk write factor. :)

I'm doing some tunning's

Thank to all that help me

Cheers,

Guilherme Hakme

2011/3/17 Stuart Henderson 

> On 2011-03-17, R0me0 ***  wrote:
> > Interesting Rick, I will do tests setting auto on ubiquity,
>
> It doesn't make a difference to speed whether you use auto or
> full-duplex, as long as the ports at both sides of a wire are set
> the same way. Generally I recommend leaving things set to auto
> (note: don't change duplex settings remotely unless you have a
> clear plan of what you're doing, why, and which order to change
> things. :-)
>
> > My doubt ...
> > Why windows vista on both sides have speed up to 10mb/s when a do an
> > download ? ( I put 2 windows boxes with smb )
> > if I set auto on both sides ( on openbsd boxes ) the speed is 1.8mb/s and
> if
> > I set 100baseTX ( Half ) the speed is the same
>
> These are pretty dissimilar tests and it's not clear how you measure
> the speed, there could even just be a confusion between Mb/s and MB/s
> (1.8MB/s = 14.4Mb/s).
>
> How about a simpler test where you change fewer variables (and don't
> involve the speed of disks on the machines)? Maybe run iperf on both
> OpenBSD and Windows, then you're doing the same test on both OS,
> and can test OpenBSD->Windows, Windows->OpenBSD, Windows->Windows,
> OpenBSD->OpenBSD.
>
>
> > 2011/3/16 Rick Ballard 
> >> The Ubiquity is likely an unmanaged device
>
> oh, they're quite smart actually. *like* :)



Re: bandwidth problem

2011-03-17 Thread Stuart Henderson
On 2011-03-17, R0me0 ***  wrote:
> Interesting Rick, I will do tests setting auto on ubiquity,

It doesn't make a difference to speed whether you use auto or
full-duplex, as long as the ports at both sides of a wire are set
the same way. Generally I recommend leaving things set to auto
(note: don't change duplex settings remotely unless you have a
clear plan of what you're doing, why, and which order to change
things. :-)

> My doubt ...
> Why windows vista on both sides have speed up to 10mb/s when a do an
> download ? ( I put 2 windows boxes with smb )
> if I set auto on both sides ( on openbsd boxes ) the speed is 1.8mb/s and if
> I set 100baseTX ( Half ) the speed is the same

These are pretty dissimilar tests and it's not clear how you measure
the speed, there could even just be a confusion between Mb/s and MB/s
(1.8MB/s = 14.4Mb/s).

How about a simpler test where you change fewer variables (and don't
involve the speed of disks on the machines)? Maybe run iperf on both
OpenBSD and Windows, then you're doing the same test on both OS,
and can test OpenBSD->Windows, Windows->OpenBSD, Windows->Windows,
OpenBSD->OpenBSD.


> 2011/3/16 Rick Ballard 
>> The Ubiquity is likely an unmanaged device

oh, they're quite smart actually. *like* :)



Re: bandwidth problem

2011-03-16 Thread R0me0 ***
Interesting Rick, I will do tests setting auto on ubiquity,
My doubt ...
Why windows vista on both sides have speed up to 10mb/s when a do an
download ? ( I put 2 windows boxes with smb )
if I set auto on both sides ( on openbsd boxes ) the speed is 1.8mb/s and if
I set 100baseTX ( Half ) the speed is the same

Regards,




2011/3/16 Rick Ballard 

> The Ubiquity is likely an unmanaged device, it probably does auto only or
> is
> at least configured for auto. When the obsd box is set to full duplex, the
> auto negotiation fails on the Ubiquity box and defaults to half duplex,
> resulting in the poor bandwidth. When the obsd box is set to auto, auto
> negotiation succeeds on both sides, and we get full duplex on both sides.
> This is normal behavior.
>
> On Wed, Mar 16, 2011 at 8:33 PM, Mark Felder  wrote:
>
> > On Wed, 16 Mar 2011 16:29:13 -0500, R0me0 *** 
> > wrote:
> >
> >  The structure is :
> >> OBSD 1-AP-AP___APAP--OBSD2**
> >>  |___ AP 2 and 3 are linked
> >> with Cable  ( Ubiquiti *Rocket M5 ) four AP's
> >>
> >
> > Can you manually set the duplex of the interface on the APs that directly
> > connect to the OBSD boxes? Or do those Ubiquiti devices not let you do
> that?
> >
> >
> >
> > Regards,
> >
> >
> > Mark
> >
> >
>
>
> --
> Rick Ballard
> Dartmouth,Nova Scotia, Canada
> http://www.ideaphore.com



Re: bandwidth problem

2011-03-16 Thread R0me0 ***
Hello Mark,

I have selected 100 full on ubiquiti


2011/3/16 Mark Felder 

> On Wed, 16 Mar 2011 16:29:13 -0500, R0me0 *** 
> wrote:
>
>  The structure is :
>> OBSD 1-AP-AP___APAP--OBSD2**
>>  |___ AP 2 and 3 are linked
>> with Cable  ( Ubiquiti *Rocket M5 ) four AP's
>>
>
> Can you manually set the duplex of the interface on the APs that directly
> connect to the OBSD boxes? Or do those Ubiquiti devices not let you do that?
>
>
>
> Regards,
>
>
> Mark



Re: bandwidth problem

2011-03-16 Thread Rick Ballard
The Ubiquity is likely an unmanaged device, it probably does auto only or is
at least configured for auto. When the obsd box is set to full duplex, the
auto negotiation fails on the Ubiquity box and defaults to half duplex,
resulting in the poor bandwidth. When the obsd box is set to auto, auto
negotiation succeeds on both sides, and we get full duplex on both sides.
This is normal behavior.

On Wed, Mar 16, 2011 at 8:33 PM, Mark Felder  wrote:

> On Wed, 16 Mar 2011 16:29:13 -0500, R0me0 *** 
> wrote:
>
>  The structure is :
>> OBSD 1-AP-AP___APAP--OBSD2**
>>  |___ AP 2 and 3 are linked
>> with Cable  ( Ubiquiti *Rocket M5 ) four AP's
>>
>
> Can you manually set the duplex of the interface on the APs that directly
> connect to the OBSD boxes? Or do those Ubiquiti devices not let you do that?
>
>
>
> Regards,
>
>
> Mark
>
>


-- 
Rick Ballard
Dartmouth,Nova Scotia, Canada
http://www.ideaphore.com



Re: bandwidth problem

2011-03-16 Thread Mark Felder

On Wed, 16 Mar 2011 16:29:13 -0500, R0me0 ***  wrote:


The structure is :
OBSD 1-AP-AP___APAP--OBSD2**
  |___ AP 2 and 3 are linked
with Cable  ( Ubiquiti *Rocket M5 ) four AP's


Can you manually set the duplex of the interface on the APs that directly  
connect to the OBSD boxes? Or do those Ubiquiti devices not let you do  
that?




Regards,


Mark



Re: bandwidth problem

2011-03-16 Thread R0me0 ***
Thanks Mark

I checked this on AP's and it are enabled,

The structure is :

OBSD 1-AP-AP___APAP--OBSD2**
  |___ AP 2 and 3 are linked
with Cable  ( Ubiquiti *Rocket M5 ) four AP's

The cable are plugged direct on OpenBSD Boxes, without switches, but as i
said on AP's are enabled
*

2011/3/16 Mark Felder 

> On Wed, 16 Mar 2011 13:30:21 -0500, R0me0 *** 
> wrote:
>
>  Please, someone can indicate the right direction to resove this ?
>>
>
> The first step in troubleshooting this is checking the switch or router
> your OpenBSD machine plugs into. Make sure you set the duplex on both the
> switch/router and OpenBSD to match.
>
>
> Regards,
>
>
>
> Mark



Re: bandwidth problem

2011-03-16 Thread R0me0 ***
With the tests that I do,
I think that is something with full-duplex, because if I set ifconfig media
100baseTX on both side, I have the same speed that media autoselect ( and
this is 100baseTX full-duplex )

But the download speed not is as windows boxes ( 10mb/s ) is 1,8mb/s

Regards,





>
>>  The list is going to ask you for some of these points:
> http://www.openbsd.org/report.html
>
> -luis



Re: bandwidth problem

2011-03-16 Thread Mark Felder

On Wed, 16 Mar 2011 13:30:21 -0500, R0me0 ***  wrote:


Please, someone can indicate the right direction to resove this ?


The first step in troubleshooting this is checking the switch or router  
your OpenBSD machine plugs into. Make sure you set the duplex on both the  
switch/router and OpenBSD to match.



Regards,



Mark



Re: bandwidth problem

2011-03-16 Thread BSD

On 03/16/11 12:30, R0me0 *** wrote:

Hello misc,

I have a network with wireless and bridge mode on AP's.

I put IP address on both sides and ping it normally.

On left side have a notebook with windows vista and smb share and on right
side have other notebook with same configuration. When I try copy the file
on smb, the speed is 10MB/s, it is very fast, I copied files with 50mb size,
500 and 2gb . realy, it is very fast. this test I do on both sides

But now, begin my problems.

On both sides I have a OpenBSD 4.8 i386.
If I set on both side
ifconfig  media 100baseTX mediaopt full-duplex , my speed down
dramatical, +/- the download of same file is 25kb/s , but if set
ifconfig  media autoselect

The speed is 1,8mb/s

The problem is the speedy, I'm rebelled ! As the fu* of windows is 10x more
fast that my OpenBSD box! I cannot believe in this !

what are occur ? I replaced my ethernet on both sides, but I cannot have the
same speed as in test.
I tried many configuration with IFCONFIG media  , with and without pf
enabled and the same thing.

BOX 1 ; ( offboard ethernet )

# dmesg | grep ste0

ste0 at pci3 dev 1 function 0 "Sundance ST201" rev 0x31: apic 2 int 16 (irq
10), address aa:bb:cc:dd:ee:ff
ukphy0 at ste0 phy 0: Generic IEEE 802.3u media interface, rev. 0: OUI
0x0090c3, model 0x0018

BOX 2 : ( offboard ethernet )

# dmesg | greo ste1

ste1 at pci0 dev 9 function 0 "Sundance ST201" rev 0x31: irq 11, address
gg:hh:ii:jj:ll:kk
ukphy1 at ste1 phy 0: Generic IEEE 802.3u media interface, rev. 0: OUI
0x0090c3, model 0x0018


The test that i do with OpenBSD was:

Box 1:
apachectl start

Box 2:
wget http://ip_address/instal48-i386.iso

Tried too: scp ... on both sides, the speed is the same

Please, someone can indicate the right direction to resove this ?



Regards,,


Guilherme Hakme


The list is going to ask you for some of these points: 
http://www.openbsd.org/report.html


-luis



bandwidth problem

2011-03-16 Thread R0me0 ***
Hello misc,

I have a network with wireless and bridge mode on AP's.

I put IP address on both sides and ping it normally.

On left side have a notebook with windows vista and smb share and on right
side have other notebook with same configuration. When I try copy the file
on smb, the speed is 10MB/s, it is very fast, I copied files with 50mb size,
500 and 2gb . realy, it is very fast. this test I do on both sides

But now, begin my problems.

On both sides I have a OpenBSD 4.8 i386.
If I set on both side
ifconfig  media 100baseTX mediaopt full-duplex , my speed down
dramatical, +/- the download of same file is 25kb/s , but if set
ifconfig  media autoselect

The speed is 1,8mb/s

The problem is the speedy, I'm rebelled ! As the fu* of windows is 10x more
fast that my OpenBSD box! I cannot believe in this !

what are occur ? I replaced my ethernet on both sides, but I cannot have the
same speed as in test.
I tried many configuration with IFCONFIG media  , with and without pf
enabled and the same thing.

BOX 1 ; ( offboard ethernet )

# dmesg | grep ste0

ste0 at pci3 dev 1 function 0 "Sundance ST201" rev 0x31: apic 2 int 16 (irq
10), address aa:bb:cc:dd:ee:ff
ukphy0 at ste0 phy 0: Generic IEEE 802.3u media interface, rev. 0: OUI
0x0090c3, model 0x0018

BOX 2 : ( offboard ethernet )

# dmesg | greo ste1

ste1 at pci0 dev 9 function 0 "Sundance ST201" rev 0x31: irq 11, address
gg:hh:ii:jj:ll:kk
ukphy1 at ste1 phy 0: Generic IEEE 802.3u media interface, rev. 0: OUI
0x0090c3, model 0x0018


The test that i do with OpenBSD was:

Box 1:
apachectl start

Box 2:
wget http://ip_address/instal48-i386.iso

Tried too: scp ... on both sides, the speed is the same

Please, someone can indicate the right direction to resove this ?



Regards,,


Guilherme Hakme



Re: network traffic monitoring - bandwidth problem

2005-08-23 Thread Kevin
>> This application looks great but I can't still compile it. I tryed it on 
>> OpenBSD 3.7 and 3.5 but without success. There is problem with libpng. 
>> configure says that I have no libpng but I've compiled libpng 1.2.8.
>> 
>> configure: error: Bandwidthd requires but cannot libpng
>> 
>> config.log
>> --
>> configure:2858: gcc -o 
>> onftest -g -O2  -I/usr/local/include  -L/usr/local/lib c 
>> onftest.c -lpng  -liconv -lm -lresolv  >&5
>> /usr/local/lib/libpng.so.4.0: undefined reference to `deflate'
>> /usr/local/lib/libpng.so.4.0: undefined reference to `inflate'
>> /usr/local/lib/libpng.so.4.0: undefined reference to `inflateInit_'
>> /usr/local/lib/libpng.so.4.0: undefined reference to `crc32'
>> /usr/local/lib/libpng.so.4.0: undefined reference to `deflateInit2_'
>> /usr/local/lib/libpng.so.4.0: undefined reference to `inflateReset'
>> /usr/local/lib/libpng.so.4.0: undefined reference to `deflateReset'
>> /usr/local/lib/libpng.so.4.0: undefined reference to `inflateEnd'
>> /usr/local/lib/libpng.so.4.0: undefined reference to `deflateEnd'
>> 
>> Could you please help me?
>> MK
> 
> -lz.

doing this:

./configure  CFLAGS=-lz

gets me (on my i386/3.7 GENERIC) past the error Miroslav has, but now
it's bailing with:

   checking for gdImageCreate in -lgd... no
   configure: error: Bandwidthd requires but cannot find libgd

Given that I have both p5-GD and gd-1.8.3 installed from ports for
other needs, I think I have all the requisite libs.

Now the pertinent part of my config.log:

configure:2923: $? = 1
configure: failed program was:
#line 2901 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gdImageCreate ();
int
main ()
{
gdImageCreate ();
  ;
  return 0;
}
configure:2940: result: no
configure:2950: error: Bandwidthd requires but cannot find libgd



Lastly, even though this is really a bandwidthd issue and not an
OpenBSD issue, I was hoping another hint or two from misc@ and we'd be
off to the races with this app


Thanks much,
Kevin




-- 
http://www.ebiinc.com  
EBI - employee background screening professionals
Corporate background checks, globally.



Re: network traffic monitoring - bandwidth problem

2005-08-23 Thread Marc Espie
On Tue, Aug 23, 2005 at 11:30:48AM +0200, Miroslav Kubik wrote:
> Hi
> 
> This application looks great but I can't still compile it. I tryed it on 
> OpenBSD 3.7 and 3.5 but without success. There is problem with libpng. 
> configure says that I have no libpng but I've compiled libpng 1.2.8.
> 
> configure: error: Bandwidthd requires but cannot libpng
> 
> config.log
> --
> configure:2858: gcc -o 
> onftest -g -O2  -I/usr/local/include  -L/usr/local/lib c 
> onftest.c -lpng  -liconv -lm -lresolv  >&5
> /usr/local/lib/libpng.so.4.0: undefined reference to `deflate'
> /usr/local/lib/libpng.so.4.0: undefined reference to `inflate'
> /usr/local/lib/libpng.so.4.0: undefined reference to `inflateInit_'
> /usr/local/lib/libpng.so.4.0: undefined reference to `crc32'
> /usr/local/lib/libpng.so.4.0: undefined reference to `deflateInit2_'
> /usr/local/lib/libpng.so.4.0: undefined reference to `inflateReset'
> /usr/local/lib/libpng.so.4.0: undefined reference to `deflateReset'
> /usr/local/lib/libpng.so.4.0: undefined reference to `inflateEnd'
> /usr/local/lib/libpng.so.4.0: undefined reference to `deflateEnd'
> 
> Could you please help me?
> MK

-lz.



Re: network traffic monitoring - bandwidth problem

2005-08-23 Thread Miroslav Kubik
Hi

This application looks great but I can't still compile it. I tryed it on 
OpenBSD 3.7 and 3.5 but without success. There is problem with libpng. 
configure says that I have no libpng but I've compiled libpng 1.2.8.

configure: error: Bandwidthd requires but cannot libpng

config.log
--
configure:2858: gcc -o 
onftest -g -O2  -I/usr/local/include  -L/usr/local/lib c 
onftest.c -lpng  -liconv -lm -lresolv  >&5
/usr/local/lib/libpng.so.4.0: undefined reference to `deflate'
/usr/local/lib/libpng.so.4.0: undefined reference to `inflate'
/usr/local/lib/libpng.so.4.0: undefined reference to `inflateInit_'
/usr/local/lib/libpng.so.4.0: undefined reference to `crc32'
/usr/local/lib/libpng.so.4.0: undefined reference to `deflateInit2_'
/usr/local/lib/libpng.so.4.0: undefined reference to `inflateReset'
/usr/local/lib/libpng.so.4.0: undefined reference to `deflateReset'
/usr/local/lib/libpng.so.4.0: undefined reference to `inflateEnd'
/usr/local/lib/libpng.so.4.0: undefined reference to `deflateEnd'

Could you please help me?
MK


- Original Message - 
From: "Fabien Germain" <[EMAIL PROTECTED]>
To: 
Sent: Monday, August 22, 2005 2:48 PM
Subject: Re: network traffic monitoring


Maybe you can try BandwithD : http://bandwidthd.sourceforge.net/

Fabien