From owner-freebsd-wireless@FreeBSD.ORG Tue Feb 28 15:50:41 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 0B356106564A for ; Tue, 28 Feb 2012 15:50:41 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8EF148FC0C for ; Tue, 28 Feb 2012 15:50:40 +0000 (UTC) Received: by wibhn6 with SMTP id hn6so2208350wib.13 for ; Tue, 28 Feb 2012 07:50:39 -0800 (PST) Received-SPF: pass (google.com: domain of adrian.chadd@gmail.com designates 10.216.133.151 as permitted sender) client-ip=10.216.133.151; Authentication-Results: mr.google.com; spf=pass (google.com: domain of adrian.chadd@gmail.com designates 10.216.133.151 as permitted sender) smtp.mail=adrian.chadd@gmail.com; dkim=pass header.i=adrian.chadd@gmail.com Received: from mr.google.com ([10.216.133.151]) by 10.216.133.151 with SMTP id q23mr5955411wei.14.1330444239791 (num_hops = 1); Tue, 28 Feb 2012 07:50:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=LaZzXcrGtlGtOqu3Ee3ozdsnZJ849uGqKeF27zX+d1Q=; b=BP0jDbZg2Qa/SBNI9Bv+36e5TMaJLXtRDXhx1zgEfVPFBf3E7TWmwO7jdAALWagNbw 3pkAP2gsAvPqN0bfKFgBxKrtjaxmw6vg0KxER6t/2Yp6NDjpCykUpRTQlTCtoFBhPNUg 8/jdghBVdJBytjOEKH+jYkd+yIRjWTy8aN/5A= MIME-Version: 1.0 Received: by 10.216.133.151 with SMTP id q23mr4724317wei.14.1330444239684; Tue, 28 Feb 2012 07:50:39 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.198.81 with HTTP; Tue, 28 Feb 2012 07:50:39 -0800 (PST) In-Reply-To: <201202281639.05140.jhugo@meraka.csir.co.za> References: <201202281639.05140.jhugo@meraka.csir.co.za> Date: Tue, 28 Feb 2012 07:50:39 -0800 X-Google-Sender-Auth: GxsJNKUy1vDiJkphqu0P9nObi04 Message-ID: From: Adrian Chadd To: Johann Hugo Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: 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 15:50:41 -0000 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 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"