Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Feb 2012 07:50:39 -0800
From:      Adrian Chadd <adrian@freebsd.org>
To:        Johann Hugo <jhugo@meraka.csir.co.za>
Cc:        freebsd-wireless@freebsd.org
Subject:   Re: performance in adhoc mode
Message-ID:  <CAJ-Vmo=5-jwHGa7wRVFU6dgdGdG6Fu3K12WC82Y-yHfP1=3iDA@mail.gmail.com>
In-Reply-To: <201202281639.05140.jhugo@meraka.csir.co.za>
References:  <201202281639.05140.jhugo@meraka.csir.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
I've not looked into adhoc _at all_.

I'd start by looking at the behaviour of the rate control code - do
'sysctl dev.ath.X sample_stats=3D1' after you've done some traffic and
check dmesg.

Just ensure that the same rates are being used and the error rate is low.


Adrian

On 28 February 2012 06:39, Johann Hugo <jhugo@meraka.csir.co.za> wrote:
> Hi
>
> I get lower throuputs in adhoc mode, compared to AP/client mode for
> the same two devices. Is there anything special that I need to configure =
in
> adhoc mode to get the same throughput.
>
> AP -> client =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0iperf =A0 27.2 MBytes=
 =A028.8 Mbits/sec
> adhoc -> adhoc =A0 =A0 =A0 =A0 =A0iperf =A0 12.1 MBytes =A021.3 Mbits/sec
>
> The two devices are directly next to each other in the LAB
> HW platform =3D Gateworks Avila GW2348-4
> Wifi adapters =3D Compex WLM54AGP23
> Atheros driver from +- 10 Jan 2012
> OS =3D FreeBSD 9.0-STABLE
>
> -------------------------------------------------------------------------=
-----------------
> Adhoc mode:
> -------------------------------------------------------------------------=
-----------------
> Device A - rc.conf:
> hostname=3D"mesh-2893"
> wlans_ath0=3D"wlan0"
> create_args_wlan0=3D"wlanmode adhoc country ZA"
> ifconfig_wlan0=3D"192.168.1.1/24 mode 11a ssid mesh channel 136 bssid
> 00:80:48:4f:28:90"
>
> Device B - rc.conf:
> hostname=3D"mesh-2870"
> wlans_ath0=3D"wlan0"
> create_args_wlan0=3D"wlanmode adhoc country ZA"
> ifconfig_wlan0=3D"192.168.1.2/24 mode 11a ssid mesh channel 136 bssid
> 00:80:48:4f:28:90"
>
> mesh-2893:~ # iperf -s
> ------------------------------------------------------------
> Server listening on TCP port 5001
> TCP window size: 64.0 KByte (default)
> ------------------------------------------------------------
> [ =A04] local 192.168.1.1 port 5001 connected with 192.168.1.2 port 40262
> [ ID] Interval =A0 =A0 =A0 Transfer =A0 =A0 Bandwidth
> [ =A04] =A00.0-10.2 sec =A026.0 MBytes =A021.3 Mbits/sec
>
> mesh-2870:~ # iperf -c 192.168.1.1
> ------------------------------------------------------------
> Client connecting to 192.168.1.1, TCP port 5001
> TCP window size: 32.5 KByte (default)
> ------------------------------------------------------------
> [ =A03] local 192.168.1.2 port 40262 connected with 192.168.1.1 port 5001
> [ ID] Interval =A0 =A0 =A0 Transfer =A0 =A0 Bandwidth
> [ =A03] =A00.0-10.0 sec =A026.0 MBytes =A021.7 Mbits/sec
>
>
>
> -------------------------------------------------------------------------=
------------------
> AP/client mode:
> -------------------------------------------------------------------------=
------------------
> Device A - rc.conf:
> hostname=3D"mesh-2893"
> wlans_ath0=3D"wlan0"
> create_args_wlan0=3D"wlanmode hostap country ZA"
> ifconfig_wlan0=3D"192.168.1.1/24 mode 11a ssid testAP channel 136"
>
> Device B - rc.conf:
> hostname=3D"mesh-2870"
> wlans_ath0=3D"wlan0"
> create_args_wlan0=3D"wlanmode sta country ZA"
> ifconfig_wlan0=3D"192.168.1.2/24 mode 11a ssid testAP"
>
>
> mesh-2893:~ # iperf -s
> ------------------------------------------------------------
> Server listening on TCP port 5001
> TCP window size: 64.0 KByte (default)
> ------------------------------------------------------------
> [ =A04] local 192.168.1.1 port 5001 connected with 192.168.1.2 port 45379
> [ ID] Interval =A0 =A0 =A0 Transfer =A0 =A0 Bandwidth
> [ =A04] =A00.0-10.1 sec =A034.8 MBytes =A028.8 Mbits/sec
>
> mesh-2870:~ # iperf -c 192.168.1.1
> ------------------------------------------------------------
> Client connecting to 192.168.1.1, TCP port 5001
> TCP window size: 32.5 KByte (default)
> ------------------------------------------------------------
> [ =A03] local 192.168.1.2 port 45379 connected with 192.168.1.1 port 5001
> [ ID] Interval =A0 =A0 =A0 Transfer =A0 =A0 Bandwidth
> [ =A03] =A00.0-10.1 sec =A034.8 MBytes =A029.0 Mbits/sec
>
> Regards
> Johann
> _______________________________________________
> freebsd-wireless@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.or=
g"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmo=5-jwHGa7wRVFU6dgdGdG6Fu3K12WC82Y-yHfP1=3iDA>