From owner-freebsd-wireless@FreeBSD.ORG Tue Feb 28 14:39:10 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7862F1065676 for ; Tue, 28 Feb 2012 14:39:10 +0000 (UTC) (envelope-from jhugo@meraka.csir.co.za) Received: from marge.meraka.csir.co.za (marge.meraka.csir.co.za [IPv6:2001:4200:7000:3::1]) by mx1.freebsd.org (Postfix) with ESMTP id B42018FC17 for ; Tue, 28 Feb 2012 14:39:08 +0000 (UTC) Received: from jeep.localnet (unknown [IPv6:2001:4200:7000:3:223:aeff:fea7:a3c2]) by marge.meraka.csir.co.za (Postfix) with ESMTP id C2EA8D0CC3C for ; Tue, 28 Feb 2012 16:39:05 +0200 (SAST) From: Johann Hugo Date: Tue, 28 Feb 2012 16:39:05 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.0-RELEASE; KDE/4.7.3; amd64; ; ) X-KMail-Markup: true MIME-Version: 1.0 To: freebsd-wireless@freebsd.org Message-Id: <201202281639.05140.jhugo@meraka.csir.co.za> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: performance in adhoc mode X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2012 14:39:10 -0000 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 iperf 27.2 MBytes 28.8 Mbits/sec adhoc -> adhoc iperf 12.1 MBytes 21.3 Mbits/sec The two devices are directly next to each other in the LAB HW platform = Gateworks Avila GW2348-4 Wifi adapters = Compex WLM54AGP23 Atheros driver from +- 10 Jan 2012 OS = FreeBSD 9.0-STABLE ------------------------------------------------------------------------------------------ Adhoc mode: ------------------------------------------------------------------------------------------ Device A - rc.conf: hostname="mesh-2893" wlans_ath0="wlan0" create_args_wlan0="wlanmode adhoc country ZA" ifconfig_wlan0="192.168.1.1/24 mode 11a ssid mesh channel 136 bssid 00:80:48:4f:28:90" Device B - rc.conf: hostname="mesh-2870" wlans_ath0="wlan0" create_args_wlan0="wlanmode adhoc country ZA" ifconfig_wlan0="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) ------------------------------------------------------------ [ 4] local 192.168.1.1 port 5001 connected with 192.168.1.2 port 40262 [ ID] Interval Transfer Bandwidth [ 4] 0.0-10.2 sec 26.0 MBytes 21.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) ------------------------------------------------------------ [ 3] local 192.168.1.2 port 40262 connected with 192.168.1.1 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.0 sec 26.0 MBytes 21.7 Mbits/sec ------------------------------------------------------------------------------------------- AP/client mode: ------------------------------------------------------------------------------------------- Device A - rc.conf: hostname="mesh-2893" wlans_ath0="wlan0" create_args_wlan0="wlanmode hostap country ZA" ifconfig_wlan0="192.168.1.1/24 mode 11a ssid testAP channel 136" Device B - rc.conf: hostname="mesh-2870" wlans_ath0="wlan0" create_args_wlan0="wlanmode sta country ZA" ifconfig_wlan0="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) ------------------------------------------------------------ [ 4] local 192.168.1.1 port 5001 connected with 192.168.1.2 port 45379 [ ID] Interval Transfer Bandwidth [ 4] 0.0-10.1 sec 34.8 MBytes 28.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) ------------------------------------------------------------ [ 3] local 192.168.1.2 port 45379 connected with 192.168.1.1 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.1 sec 34.8 MBytes 29.0 Mbits/sec Regards Johann