R7000 poor USB 3.0 nas streaming and file transfer

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
imaginal
DD-WRT Novice


Joined: 09 Jul 2014
Posts: 6

PostPosted: Wed Jul 09, 2014 2:43    Post subject: R7000 poor USB 3.0 nas streaming and file transfer Reply with quote
Hi All,

I've recently flashed DD-WRT v24-sp2 (06/13/14) kongac - build 24345M. I have a 1TB my passport connected to the USB 3.0 port on the front and have DD-WRT configured to stream via Samba. I have XBMC (raspberry pi) plugged into the router via CAT5E for streaming capabilities. I have 2 symptoms I'm looking to resolve, and need some help tracking down the problem.

Streaming media from the NAS results in buffering, with 15 second pauses followed by 20 seconds of play time. This is painful.

Also, when I try to transfer files from my laptop to the NAS via 2.4ghz, it plateaus at 487ish kB/s. Oddly, when it is plugged directly into the router, I get the same excruciating transfer speeds.

I imagine this is a configuration issue somewhere, because all of the hardware components should be doing MUCH better than this. I have the r7000 overclocked to 1400/800. I am running QoS on WAN only, HTB/SFQ with 5000 up and 12000 down. Only services restricted are usenet and torrents, with the MAC of the XBMC set at maximum. I am also running the following script for VPN.

Code:
#!/bin/sh

USERNAME="xxxxxx"
PASSWORD="xxxxxxxxxxx"
PROTOCOL="udp"
# Add - delete - edit servers between ##BB## and ##EE##
REMOTE_SERVERS="
##BB##
# US - WEST
remote xxxxxxxxxxx.xxx.xxx 1194
##EE##
"

#### DO NOT CHANGE below this line unless you know exactly what you're doing ####

CA_CRT='-----BEGIN CERTIFICATE-----
MIID2jCCA0OgAwIBAgIJAOtqMkR2JSXrMA0GCSqGSIb3DQEBBQUAMIGlMQswCQYD
VQQGEwJVUzELMAkGA1UECBMCT0gxETAPBgNVBAcTCENvbHVtYnVzMSAwHgYDVQQK
ExdQcml2YXRlIEludGVybmV0IEFjY2VzczEjMCEGA1UEAxMaUHJpdmF0ZSBJbnRl
cm5ldCBBY2Nlc3MgQ0ExLzAtBgkqhkiG9w0BCQEWIHNlY3VyZUBwcml2YXRlaW50
ZXJuZXRh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ATE-----'

OPVPNENABLE=`nvram get openvpncl_enable | awk '$1 == "0" {print $1}'`

if [ "$OPVPNENABLE" != 0 ]; then
   nvram set openvpncl_enable=0
   nvram commit
fi

sleep 10
mkdir /tmp/pia; cd /tmp/pia
echo -e "$USERNAME\n$PASSWORD" > userpass.conf
echo "$CA_CRT" > ca.crt
echo "#!/bin/sh
iptables -t nat -I POSTROUTING -o tun0 -j MASQUERADE" > route-up.sh
echo "#!/bin/sh
iptables -t nat -D POSTROUTING -o tun0 -j MASQUERADE" > route-down.sh
chmod 644 ca.crt; chmod 600 userpass.conf; chmod 700 route-up.sh route-down.sh
sleep 10
echo "client
auth-user-pass /tmp/pia/userpass.conf
management 127.0.0.1 5001
management-log-cache 50
dev tun0
proto $PROTOCOL
comp-lzo adaptive
fast-io
script-security 2
mtu-disc yes
verb 4
mute 5
cipher bf-cbc
auth sha1
tun-mtu 1500
resolv-retry infinite
nobind
persist-key
persist-tun
tls-client
remote-cert-tls server
log-append piavpn.log
ca ca.crt
status-version 3
status status
daemon
$REMOTE_SERVERS" > pia.conf
ln -s /tmp/pia/piavpn.log /tmp/piavpn.log
ln -s /tmp/pia/status /tmp/status
(killall openvpn; openvpn --config /tmp/pia/pia.conf --route-up /tmp/pia/route-up.sh --down /tmp/pia/route-down.sh) &
exit 0


That is everything I've changed. Where do I go from here to troubleshoot this issue?
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum