From owner-freebsd-questions@FreeBSD.ORG Sun Mar 8 16:42:25 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8E175D33 for ; Sun, 8 Mar 2015 16:42:25 +0000 (UTC) Received: from mail-we0-x22d.google.com (mail-we0-x22d.google.com [IPv6:2a00:1450:400c:c03::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 218EC23C for ; Sun, 8 Mar 2015 16:42:25 +0000 (UTC) Received: by wevl61 with SMTP id l61so4267212wev.6 for ; Sun, 08 Mar 2015 09:42:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; bh=s+wX5AGtsCrxBOAadbHXRv3Bri4YioF0un6Zdjk/F+M=; b=mvs0KzyTXKRIzQt+WPCnl51IoBcJToISBPACRRmMDSCkeqxGrVlbGjRPfhG86xYDo0 tZHRRU2sbKMIfLSLaaQorM6E9AHAKE/yv69OlzLHZWtyTP7KRAMjb5GgQALkS4PvMA+C z4FRD5QKTAv4YUyDJBuDHma5TO1TEzdr0QzUMGlO9d8lBdoZEKUPTRTnVbnYfCKnu9MT IVMK5PBMRvQIhHxdldQpsId7SewwrG7j+/g9LhJrgiFSFmfwqd1q8Xkw/BX61aq9oinI pL6odg9vct42YjFlRA1VGXAqX6Bl49ks06Birm3wc4SaMinJIoUZOwS0e/h80jJNS6WF pAIQ== X-Received: by 10.194.192.167 with SMTP id hh7mr49973497wjc.151.1425832943485; Sun, 08 Mar 2015 09:42:23 -0700 (PDT) Received: from localhost ([2a01:7e00::f03c:91ff:fe70:2696]) by mx.google.com with ESMTPSA id m10sm10628989wij.5.2015.03.08.09.42.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Mar 2015 09:42:21 -0700 (PDT) From: Malcolm Matalka To: freebsd-questions@freebsd.org Subject: Raspberry Pi Network Performance Date: Sun, 08 Mar 2015 16:42:19 +0000 Message-ID: <871tkzl9uc.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Mar 2015 16:42:25 -0000 Hello, I'm having fun playing with FreeBSD running a Raspberry Pi. I've set mine up as a WiFi access point routing over a VPN. I am experiencing a slow network connection through the entire chain, but each individual component functions at a reasonable speed. I am wondering what I can do, if anything, to help improve the performance. Details: My setup is: Laptop (WiFi) -> USB Dongle -> Raspberry Pi (OpenVPN) -> Ethernet -> Router -> Internet I have done the following experiments, transferring 150meg ISO around: End-to-end - ~60 KB/s - Downloading the ISO on my laptop from a website. Laptop (WiFi) -> Router -> Ethernet -> Raspberry Pi - ~1.5MB/s - Scping a file to /dev/null on the RPi Laptop (WiFi) -> USB Dongle -> Raspberry Pi - ~1MB/s - Scping a file to /dev/null on RPi Raspberry Pi (OpenVPN) -> Ethernet -> Router -> Internet - ~1MB/s - Downloading the ISO from the end-to-end experiment Raspberry Pi (OpenVPN) -> Ethernet -> Router -> Internet - ~1MB/s AND Laptop (WiFi) -> USB Dongle -> Raspberry Pi - ~1MB/s In this experiment I tested hitting both interfaces with traffic at the same time. There was little noticeable degradation in the individual performances. $ uname -a FreeBSD gizmo 10.1-RELEASE-p6 FreeBSD 10.1-RELEASE-p6 #1 r279698: Sat Mar 7 16:07:29 CET 2015 mmatalka@bsd-junkyard:/usr/home/mmatalka/projects/freebsd/obj/arm.armv6/usr/home/mmatalka/projects/freebsd/src/sys/RPI-B-GIZMO arm # ipfw list 00100 nat 1 ip from any to any via tun0 09999 allow ip from any to any 65535 deny ip from any to any While each individual piece operates about as fast as I would expect, the end-to-end performance is an order of magnitude slower. If there are any other experiments I should do, let me know. What can I do to determine what is going on? Thank you, /Malcolm