What's new

Padavan's Custom Firmware

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Ok thanks, I think I may know what to do now. I think it was at 755 or something. If it works, i'll do a simple guide as most people will come here by google search, etc and won't know this stuff.

edit: ok nothing I do works. I have zero prior knowledge of unix. Just do a simple guide. I got the latest padavan firmware, enabled SSH, downloaded putty SFTP client, typed open 192.168.1.1 and entered admin/admin, typed cd /etc/storage, typed put simple_shaper.sh, typed chmod 766 simple_shaper.sh and received 0666->0766. Typed dir which shows it is there, then I have tried all sorts of commands to run simple_shaper.sh but it says it is not found. I the console, Putty and Putty SFTP.

Try:

Code:
cd /etc/storage
./simple_shaper.sh

In Linux, for root user, "." (current directory) is not included in the path ($PATH), so you have to use "./simple_shaper.sh" to run a shell script in the current directory.
 
First off, having the channel on AUTO isn't such a great idea. I'd get a nice wireless client app like inSSIDer or WiFi Analyzer and see what the clearest channel is in your area, and use that one. The channel width that I'd use is 20MHz. (I think that you're talking about 2.4GHz.?), and make sure that you're using WPA2/AES. That might get you started, but Padavan's firmware has a lot of settings that it's worthwhile to go through. If you see a WMM-related setting, make sure that's enabled, too. I haven't had much trouble with Padavan's firmware, it usually just works, IPv6 and all, if you get the settings right. For me, not using the dlna functionality, a lot of the defaults are fine, with a few exceptions.

I'm also not sure why you've picked a mode like B/G/N? Do you have any wireless-b or wireless-g clients? If not just use it on wireless-n only.

If you're talking about 5GHz. band, that's a whole different ball game. The 5GHz. on the RT-N56U isn't very good at my house on the best of days, so unless I'm in the same room with the router I use 2.4GHz. The 2.4GHz. wireless band does cover my whole house decently.

Thx a lot , it work finally. I modify the wireless mode from b/g/n to n only.
 
can someone tell me if and how it is possible to enable

"Explicit Congestion Notification" on the Router?

(RT-N56U)

Connect with SSH and run as admin:
# sysctl net.ipv4.tcp_ecn
net.ipv4.tcp_ecn = 2

As you can see on my router (N65) it is set to 2.

The values mean:
0 = No ECN
1 = Use ECN
2 = "Support ECN"/"Server Mode", i.e. only advertise ECN support when asked for

Change with sysctl -w net.ipv4.tcp_ecn=2
 
edit: ok nothing I do works. I have zero prior knowledge of unix. Just do a simple guide. I got the latest padavan firmware, enabled SSH, downloaded putty SFTP client, typed open 192.168.1.1 and entered admin/admin, typed cd /etc/storage, typed put simple_shaper.sh, typed chmod 766 simple_shaper.sh and received 0666->0766. Typed dir which shows it is there, then I have tried all sorts of commands to run simple_shaper.sh but it says it is not found. I the console, Putty and Putty SFTP.

Ok when you're connected to your router over SSH (with putty) you can only execute commands that will be run on the router.

Step by step guide is following, comments start with #

Code:
# change directory
cd /etc/storage

# remove (rm) or rename (mv) old script if needed
rm simple_shaper.sh
mv simple_shaper.sh simple_shaper.backup.sh

# directly download the shaper script into the current directory
wget "http://xserv.mooo.com/xnor/linux/rt-nxxu/qos/simple_shaper.sh"

# list the file with permissions
ls -l simple_shaper.sh

# add executable permission
chmod +x simple_shaper.sh

# run it
./simple_shaper.sh on
# disable with
./simple_shaper.sh off


If you have an FTP client like filezilla or winscp you can browse to /etc/storage and edit the script with your favorite editor.

You can also download the script on your computer, edit it there, upload it with an FTP client to your router (/etc/storage).
Just make sure the FTP client supports SFTP (file transmission protocol over SSH).
 
Last edited:
Thank you it worked but I get errors saying that the traffic control is not found. Padavan's firmware removed all the QoS stuff so what firmware would work?
 
Last edited:
Thank you it worked. I get the errors Line 79-85 or something, /bin/tc not found. Netalyzer gives 600ms buffer instead of 1200-2500. The router that came with the ISP has zero problems with excessive buffer on netalyzer.

what type of Router is it?
 
Thank you it worked but I get errors saying that the traffic control is not found. Padavan's firmware removed all the QoS stuff so what firmware would work?

I can compile a N56 firmware too and it should work but I don't have a N56 so cannot test it.

Will update my rt-nxxu page in an hour or two with download links.

Btw, are you using xupnpd or minidlna? transmission? In my current builds there's only minidlna.
Btw2, on the first run there may be some errors when it is trying to cleanup. Those are safe to ignore. Just run the shaper again and it shouldn't output any errors!
 
Last edited:
I can compile a N56 firmware too and it should work but I don't have a N56 so cannot test it.

Will update my rt-nxxu page in an hour or two with download links.

Btw, are you using xupnpd or minidlna? transmission? In my current builds there's only minidlna.
Btw2, on the first run there may be some errors when it is trying to cleanup. Those are safe to ignore. Just run the shaper again and it shouldn't output any errors!

I'm not using anything. Just got it hooked up to a Draytek Vigor 120 modem in PPOA -> PPOE bridge mode and then a few computers wired and laptops/phones/ipods on the wireless. Don't use any media servers etc.

Thanks a lot, I really hope this works. I was going to sell this modem and router and just use the ISP modem/router even though it's wireless is a lot worse and has no QoS, because I like to upload youtube videos but whenever I do the whole internet pretty much dies with the RT-N56U. Plus gaming ping is seriously affected by anyone else on the network instead of being prioritized.
 
Last edited:
Well I hope it works for you too on the N56.

Modem or router, both have queues that fill up if you send data faster than your uplink can handle.
That's why tuning the UPMAX is so important. If you set it a bit lower than your uplink there cannot build up a queue in the modem.
Secondly, setting the PRIO ports so that interactive stuff always will be sent before bulk transfers (youtube uploads as you mentioned).
 
Well I hope it works for you too on the N56.

Modem or router, both have queues that fill up if you send data faster than your uplink can handle.
That's why tuning the UPMAX is so important. If you set it a bit lower than your uplink there cannot build up a queue in the modem.
Secondly, setting the PRIO ports so that interactive stuff always will be sent before bulk transfers (youtube uploads as you mentioned).

Yeah I changed the ports, I'm guessing i just add them with spaces inbetween? I did 27000:27030 and 3074 UDP for Steam and Xbox Live/Call of Duty.

Downloading now, hope it works. This sort of thing should be in every router!

edit: Used it, got no errors.

/etc/storage # ./simple_shaper.sh on
Simple Shaper
UP MAX: 800, MIN: 266, MTU: 1492
cleaning up ...
done.
setting up ...
done.

Netalyzer gave me 3500ms uplink buffer afterwards :( My netalyzer upload speed is 890kb/s, so I try 800 upmax, router mtu is 1492, connection is ppp0, queue is 127, NAT offload is Disable (slow). I tried different upmaxes, netalyzer upload speed is always 20kb/s lower than what upmax is. Tried lowering queue to 10, and still 2400ms buffer. Set upmax all the way down to 300, got 5800ms buffer.

Pingtest normal:
no packet loss, 30ms, 1ms jitter, A grade

pingtest while uploading to youtube:
no packet loss, 40ms, 10ms jitter, B grade

Don't think it's working on the RT-N56U. Or maybe it's the modem.
 
Last edited:
A simple check to see if it is working at all or if there is some configuration problem is to lower UPMAX and check if upload speed is now slower.

I wouldn't use netalyzr to measure uplink speed, but the tc command as described in the QoS guide.


What is your ping during upload with the shaper disabled?


edit: Yes, separate ports or port ranges (from:to) by a space. Afaik XBOX also requires 3074 TCP.
 
Last edited:
A simple check to see if it is working at all or if there is some configuration problem is to lower UPMAX and check if upload speed is now slower.

I wouldn't use netalyzr to measure uplink speed, but the tc command as described in the QoS guide.


What is your ping during upload with the shaper disabled?


edit: Yes, separate ports or port ranges (from:to) by a space. Afaik XBOX also requires 3074 TCP.

With official asus firmware, I have around 600ms buffering. QoS enabled with 890kbit upload and 95% max. Youtube upload + pingtest = 53ping + 11ms jitter.
 
Well, on my system a queue size of 127 results in about 1100 ms, 60 in about 260 ms, 8 in about 70 ms and so on.
But as I said before, no interactive application will flood the modem like netalyzr does, and for applications that do (like file uploads) delay doesn't matter (in fact some buffer is needed to achieve high transfer speeds!) and due to prioritization will always come after the interactive stuff.
So even with a 1100 ms buffer the interactive stuff is sent without delay.

Have you checked if
Code:
watch tc -s class show dev ppp0 classid 1:1
does show the correct rate during a long upload?
 
Last edited:
Well, on my system a queue size of 127 results in about 1100 ms, 60 in about 260 ms, 8 in about 70 ms and so on.
But as I said before, no interactive application will flood the modem like netalyzr does, and for applications that do (like file uploads) delay doesn't matter (in fact some buffer is needed to achieve high transfer speeds!) and due to prioritization will always come after the interactive stuff.
So even with a 1100 ms buffer the interactive stuff is sent without delay.

Have you checked if
Code:
watch tc -s class show dev ppp0 classid 1:1
does show the correct rate during a long upload?

watch tc -s class show dev ppp0 classid 1:1 was giving around 890kbit, peaking at 895.
 
I'm having problems after upgrading from the previous version of padavan's firmware to the latest RT-N56U_3.4.3.7-071_dlna. I have a 2.4GHz g network for older clients and a 5GHz N-only one for most of the devices in my house. Since upgrading 071, my 3G iPad is getting repeatedly disconnected from the 5GHz N network. The iPad is assigned an IP through DHCP, while the 3 other Macs on the same network, which haven't had any connection drops, have manually assigned IPs outside of the standard DHCP pool. Any thoughts on what may be causing this? I have checked the router logs but am unable to spot the source of the problem.
 
Hate to say it, but you might have to look at Apple. They have been having issues with their network stack on various devices, as of late.
 
If you're referring to the previous issues with mDNSresponder/Bonjour, AirPort Utility, etc., I've troubleshooted them in the past. That's not what's at issue this time. The problem is coming from the router, it started immediately after the firmware upgrade. It only affects devices on the 5GHz network, and only devices whose LAN IP's are assigned by DHCP. This includes the 3G iPad I mentioned (which has had no recent firmware upgrades), and also my Samsung Smart TV.
 
new Version is out:

3.4.3.7-072

changelog:

[RT-N56U]
- Updated kernel-3.4.x to 3.4.68 from www.kernel.org.
[RT-N65U]
- Updated kernel-3.0.x to 3.0.101+ from www.kernel.org.
[Common changes]
- Fixed GreenAP bug in 5GHz Wireless driver v2.7.1.6.
- Disabled IPv6 routes offload for RT3883/3662 (1-Tap hardware is buggy).
- Improved performance of wired Ethernet driver (raeth).
- Updated dnsmasq to v2.67+.
- Added DHCP server verbose mode control to WebUI.
- Added hardware watchdog timer control to WebUI.
- Added dropdown menu for fast select DLNA media path,
fixed output national resources from NVRAM to WebUI
 
Similar threads
Thread starter Title Forum Replies Date
T BN750DB - Padavan FW ASUS N Routers & Adapters 5

Similar threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top