From owner-freebsd-net@FreeBSD.ORG Tue Oct 4 12:38:31 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4544F16A41F for ; Tue, 4 Oct 2005 12:38:31 +0000 (GMT) (envelope-from samspeedu@mail.ru) Received: from mx1.mail.ru (mx1.mail.ru [194.67.23.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id A984343D49 for ; Tue, 4 Oct 2005 12:38:30 +0000 (GMT) (envelope-from samspeedu@mail.ru) Received: from [80.82.44.194] (port=2638 helo=192.168.168.7) by mx1.mail.ru with esmtp id 1EMm3w-000Exo-00; Tue, 04 Oct 2005 16:38:28 +0400 Date: Tue, 4 Oct 2005 16:37:21 +0400 From: Andrey Smagin X-Mailer: The Bat! (v1.62r) Organization: DiP X-Priority: 3 (Normal) Message-ID: <1721705859.20051004163721@mail.ru> To: Marcin Jessa In-Reply-To: <20051004093517.15e368f2.lists@yazzy.org> References: <20050926195807.GD95971@sandvine.com> <17208.30606.117170.36398@khavrinen.csail.mit.edu> <20050927001650.GA9994@sandvine.com> <20050927180021.GB9994@sandvine.com> <433A2882.4030003@freebsd.org> <433A2D6E.7020205@freebsd.org> <20050928152112.GC9994@sandvine.com> <2262110.20050928194326@mail.ru> <584642479.20050930101019@mail.ru> <20050930095743.402e56cd.lists@yazzy.org> <372828116.20051004102540@mail.ru> <20051004093517.15e368f2.lists@yazzy.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: How connect 2 PC with ath in hostap mode ? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: SAMU List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Oct 2005 12:38:31 -0000 Hello Marcin, Tuesday, October 4, 2005, 11:35:17 AM, you wrote: MJ> How are you bridging the interfaces? What kind of bridging mechanism MJ> are you using? In FreeBSD: kldload ath, ath_hal, bridge, fxp On both host: ifconfig_ath0="inet ssid 1234 channel 6 mode 11g mediaopt adhoc" in sysctl.conf hw....bridge.config=ath0:1,fxp0:1 hw....bridge.enable=1 ipfw allow ip from any to any in this mode speed about 8KBy/s ifconfig_ath0="inet ssid 1234 channel 6 media OFDM54 mode 11g mediaopt adhoc" increase speed up to 45-50 KBy/s Bridging work fine and uptime for both host more wheek under full load :) (40KBy/s over wireless) Some strange - ping report low average delay about 0.700ms for any host in another net segment. MJ> Anyway, the difference in speed is indeed strange. MJ> Try to set following: MJ> sysctl dev.ath.0.tpscale=1 MJ> sysctl dev.ath.0.tpc=1 MJ> sysctl dev.ath.0.diversity=0 MJ> ifconfig ath0 protmode off MJ> ifconfig ath0 mtu 2290 MJ> You could also use device tap (virtual ethernet) and connect two lan's MJ> that way running one link in hostap and the other bss mode. Check out MJ> the vtun port. Thanks i will try it. MJ> I am not sure why you have such a speed loss running in adhoc mode. MJ> What I noticed on NetBSD (where the ath driver is not yet fully ported) MJ> was I got pretty decent speed with the same setup as yours (2xath in MJ> adhoc bridged with wired nics) but my embedded devices allways crashed MJ> when I sent over many small packets. I think this is a driver problem, two ap sucessfully connect with each other, why hostap can't do this ? I tested D-Link 624 WiFi router, D-Link 2100AP, DWL-520+, DWL-G520. On DWL-520+ - acx chipset, it speed not more 8KBy/s with adhoc<=>adhoc connection(but under W2K it have fullspeed 800KBy/s in this mode). I bought DWL-G520 on ath chipset, upgraded hosts hardware up 850MHz processor, new MB, more RAM, but it not resolve the problem, with 54MBit/s connection, speed is too small. D-Link AP, with WiFi router have good connection and speed 38MBit/s(2MBy/s). -- Best regards, Andrey mailto:samspeedu@mail.ru