Traffic management

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3, 4, 5  Next
Author Message
SNR
DD-WRT User


Joined: 27 Apr 2009
Posts: 132

PostPosted: Mon Jun 08, 2009 0:01    Post subject: Reply with quote
phuzi0n wrote:
pbix wrote:
Another interesting fact is that I am using v24pre-SP2 1099 which is circa Nov 2008. Can someone clue me into the location of the QOS script with the incorrect IPTABLES command? I can check this version and see if it has the same script error.

It has existed since the time wshaper.c was added to svn.
http://svn.dd-wrt.com:8000/dd-wrt/browser/src/router/services/networking/wshaper.c?rev=6627#L240

pbix, you can also run this command in a telnet shell:

iptables -t mangle -vnL

and if you see the following at the top of the output (ignoring the packet and byte counts):

Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 IMQ 0 -- br0 * 0.0.0.0/0 0.0.0.0/0 IMQ: todev 0

then you can assume that your build is affected by this issue.
Sponsor
SNR
DD-WRT User


Joined: 27 Apr 2009
Posts: 132

PostPosted: Mon Jun 08, 2009 0:04    Post subject: Reply with quote
phuzi0n wrote:
SNR wrote:

Can this be fixed with an iptables command(s) in a Firewall script?

Yes, the rule can be deleted.

iptables -t mangle -D PREROUTING -i br0 -j IMQ --todev 0

OK, so if I delete that rule via script, will the rest of my PREROUTING chain be in good shape? Here's a copy of that output again:

Code:
Chain PREROUTING (policy ACCEPT 5 packets, 208 bytes)
 pkts bytes target     prot opt in     out     source               destination
    5   208 IMQ        0    --  br0    *       0.0.0.0/0            0.0.0.0/0           IMQ: todev 0
    0     0 SVQOS_IN   0    --  vlan1  *       0.0.0.0/0            0.0.0.0/0
    0     0 MARK       0    --  *      *       0.0.0.0/0            0.0.0.0/0           MAC 00:17:08:XX:XX:XX MARK set 0x14
    5   208 CONNMARK   0    --  *      *       0.0.0.0/0            0.0.0.0/0           CONNMARK save

Also, is this all that has to be done to fix QoS?

:?:
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10141

PostPosted: Mon Jun 08, 2009 0:20    Post subject: Reply with quote
That's all that has to be done for HTB but for HFSC the entire tc structure has to be redone.
_________________
Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
SNR
DD-WRT User


Joined: 27 Apr 2009
Posts: 132

PostPosted: Mon Jun 08, 2009 1:03    Post subject: Reply with quote
phuzi0n wrote:
That's all that has to be done for HTB but for HFSC the entire tc structure has to be redone.

Cool, thanks, already have it added to my startup code.
SNR
DD-WRT User


Joined: 27 Apr 2009
Posts: 132

PostPosted: Mon Jun 08, 2009 1:14    Post subject: Reply with quote
Oops! I stuck this at the end of my firewall script and rebooted my router but the spurious rule is still present. (The command definitely works if I issue it manually in telnet.)

Looks like there's a timing issue involved here. Any suggestions for wrapper code to run this command when DD-WRT is actually ready for it?
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10141

PostPosted: Mon Jun 08, 2009 3:19    Post subject: Reply with quote
A frequent cron job. Laughing
_________________
Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
kwazytazz
DD-WRT Novice


Joined: 11 Oct 2007
Posts: 7

PostPosted: Mon Jun 08, 2009 6:17    Post subject: Reply with quote
the upload shaping does not work, is it just me or for everyone else also?
SNR
DD-WRT User


Joined: 27 Apr 2009
Posts: 132

PostPosted: Tue Jun 09, 2009 6:37    Post subject: Reply with quote
phuzi0n wrote:
A frequent cron job. Laughing

I thought you were just Jokin' but you must be serious...

I tried running sleep before running the command to delete the rule, but that just seems to delay imq initialization by the number of seconds that it sleeps.

Also tried forcing sleep into the background and wait-ing for the job to complete, but that didn't work any better.

Hmm...
SNR
DD-WRT User


Joined: 27 Apr 2009
Posts: 132

PostPosted: Tue Jun 09, 2009 8:31    Post subject: Reply with quote
OK, finally figured this one out... just needed to start another shell and wait there instead ... DOH! :oops:

Code:
 # Delete spurious QoS rule (bug in DD-WRT)
 busybox sleep 5 && iptables -t mangle -D PREROUTING -i br0 -j IMQ --todev 0 &

After testing this with different delays I determined that one second wasn't enough but two seemed to be sufficient. Here's why I upped it all the way to five seconds:

Quote:
root@DD-WRT:~# cat /proc/kmsg
[...]
<6>etherip: Ethernet over IPv4 tunneling driver
<0>ip_conntrack_pptp version 1.9 loaded
<0>ip_nat_pptp version 1.5 loaded
<6>IPP2P v0.8.2 loading
<6>imq driver loaded.
<6>HTB init, kernel part version 3.17
<6>HTB init, kernel part version 3.17
<6>IPP2P v0.8.2 unloaded
<0>ip_nat_pptp version 1.5 unloaded
<0>ip_conntrack_pptp version 1.9 unloaded
<0>ip_conntrack_pptp version 1.9 loaded
<0>ip_nat_pptp version 1.5 loaded
<6>IPP2P v0.8.2 loading
<6>IPP2P v0.8.2 unloaded
<0>ip_nat_pptp version 1.5 unloaded
<0>ip_conntrack_pptp version 1.9 unloaded
<0>ip_conntrack_pptp version 1.9 loaded
<0>ip_nat_pptp version 1.5 loaded
<6>IPP2P v0.8.2 loading
<6>HTB init, kernel part version 3.17
<6>HTB init, kernel part version 3.17

What's going on here???

Exclamation
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10141

PostPosted: Tue Jun 09, 2009 10:04    Post subject: Reply with quote
Those messages are from interface state changes. A common culprit is the firewall blocking dhcp renewal replies that it doesn't like which causes the interface to go down temporarily while it sends out a request for any ip.

http://svn.dd-wrt.com:8000/dd-wrt/ticket/973

_________________
Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
SNR
DD-WRT User


Joined: 27 Apr 2009
Posts: 132

PostPosted: Tue Jun 09, 2009 10:21    Post subject: Reply with quote
I actually use that command from your Trac ticket to allow DHCP requests from clients on my second AP. I wasn't aware that this may need to be added to the default config as well. I will take a look at it after I get some sleep. Thanks...
scottlindner
DD-WRT User


Joined: 13 Mar 2009
Posts: 55

PostPosted: Sat Jun 20, 2009 13:24    Post subject: Reply with quote
Here's another interesting test tool that might help diagnose some problems. I ran it but was a bit mystified how to correct some of the problems it found.

http://netalyzr.icsi.berkeley.edu/

Cheers,
Scott
pbix
DD-WRT User


Joined: 14 Sep 2008
Posts: 148

PostPosted: Sat Jun 20, 2009 15:06    Post subject: Reply with quote
AVAST says that link has a virus so take care.
scottlindner
DD-WRT User


Joined: 13 Mar 2009
Posts: 55

PostPosted: Sat Jun 20, 2009 15:09    Post subject: Reply with quote
pbix wrote:
AVAST says that link has a virus so take care.


Norton AV 2009 doesn't. Which is right/wrong?

Does it state what virus it is? It runs a Java Applet, so that might be what Avast is triggering on.

Scott
SNR
DD-WRT User


Joined: 27 Apr 2009
Posts: 132

PostPosted: Sat Jun 20, 2009 17:46    Post subject: Reply with quote
Pretty slick test, thanks. (AVG doesn't complain...)
Goto page Previous  1, 2, 3, 4, 5  Next Display posts from previous:    Page 4 of 5
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