
how-to block ads
|
  paule
@co.uk
| [Help Me] dsl-2640b firmware ver 4.00 setting up qos
hi, i am looking to setup qos for my dsl-2640b router and really need some help, since the new firmware update the qos section has now been completly changed and i cannot for the life of me get it to work, previously in ver 3.06 it was easy, just set it to low/med/high priority and away you go, but the new firmware version now included dscp 802.1p settings and other such settings. so can anybody show me a couple of examples of setting up qos for the router?.
many thanks for any replies!!.
paul. | |   Seph Getting jigggggy wit it Premium join:2003-01-23 Mars clubs:
| Hi Paul,
I was about to reply you in the other post.
I haven't configured QoS yet in my router. However, unless you need to apply QoS to devices inside the LAN (i.e. if you have a media server in your network) you don't need to specify 802.1p settings, since the additional data it uses for traffic prioritization and QoS is lost when it passes the router (Internet data).
For IP QoS, you just need to edit SET 1 of settings and assign it's queue priority in the Assign Classification Queue field (1 has the most priority).
Anyway, I'm going to try some settings later, to confirm it really works and give you some examples and screenshots. I'll keep you posted.
Regards, | |   paule
@co.uk
| hi seph, many many thanks for your reply!, i am getting a little desperate for help on this one, ive tried pretty much everything to try and get this working, including contacting dlink technical support who were just rubbish!!.
ok just so you know what im trying to do is priorise outbound traffic for two different port numbers, i have tried assigning different classification queue numbers but it just doesnt seem to work, i have also been playing around with dscp check/mark but that also seems to make no difference and to be honest im a little out of my depth with dscp, not too sure how it works to be honest.
so basically your my only hope right now, hope you manage to get something working, screenshots would be very useful!!.
oh yeah just so you know i was running firmware 3.06 and i had qos working just fine, you may ask why i dont go back to the earlier revision then, reason is simply for mac filtering for wireless and also you can restrict connecting ip's for port forwarding which is a must!! .
hope to hear from you soon.
paul.
| |   Seph Getting jigggggy wit it Premium join:2003-01-23 Mars clubs:
| Hi Paul,
Still trying it on this end. I discovered that QoS in this firmware version is totally implemented using Differentiated Services Code Point (DSCP) instead of the old way. I know how DSCP works and filled the settings form with what I was supposed to know... however, I haven't made any success, since it is not working at all. Also, when checking one of the pre-defined settings (MSN Messenger) gives me an error in engrish (You must configure a wan settings first). I'm a bit lost here...
I also tried using the CLI, but I can't find any mention or command to configure QoS... I'm going to try again and keep you posted, but I'm starting to believe that it would be really nice if someone can give us a hint about it...  | |   paule
@co.uk
| yes it is completely different to the old firmware which just gave you the low/med/high priority levels, and dscp just blows my brain out, ive found a few articles about it and from what ive worked out AF13 is class 1 high drop and cs7 is class 4 low drop, thus cs7 is high priority and af13 is the lowest priority, best article ive found is this one:-
»en.wikipedia.org/wiki/Differenti···services
i too had the engrish error , managed to work out it was due to not running the "setup wizard" (setup tab), if you don't run this it doesn't correctly create the wan ports for qos, so the trick is to run the wizard. once you've run the wizard you should then see an additional 3 classification rule types when creating a qos rule.
i think your thinking along the same lines as me, tick one of the pre-created rules and see how it's setup in advanced qos, thing is it doesnt actually create a new entry in advanced qos so you cant see how the rule is defined :-(.
as you may be able to tell ive been looking into this quite a lot hehe, it's become a mission for me to get this working, but i have a sneaky feeling the qos is actually broken in this firmware revision :-(.
if you do get it working Seph then PLEASE post your working rules, im a desperate man .
paul. | |   Seph Getting jigggggy wit it Premium join:2003-01-23 Mars clubs:
edit: July 4th, @09:35PM
| Hi Paul,
Thanks for the tip! Running the damn setup wizard made my day. And yes, we were thinking in the same lines... "tick one of the pre-created rules and see how it's setup..." however, I was aware from the beginning that that info would not be available from the Advanced QoS settings page...
So, once I have it working thanks to you, I was left with 2 options:
- Run a network analyzer to catch the packets and see what QoS information the router is appending to the IP Header - Or, dump the actual configuration of the router into a XML file
Option 2 was easier 
I'm currently reading the section on the file that defines QoS and as soon as I can understand it I'm going to try to configure it. In the case it can't be configured accordingly via the web interface, we still have the option of modifying the settings file and upload it back to the router. I really hope to have some good news for you soon...
Regards,
-- The net is indeed, vast and infinite... | |   paule
@co.uk
| ahh yes of course, good thinking!! i didnt consider comparing the two xml dumps, well if i get enough time tonight i will do the same and compare results .
i just hope it works, cos qos is the only thing that isnt working well on my router now. | |   paule
@co.uk
| i THINK i got it sussed!!, ok looks like its all to do with the "queueInstId" value in the config file, this can be set through the gui by setting the "Assign Classification Queue" value, worked out a value of 9=high priority, 10=medium, and 11=low, the other values 1-8 are im assuming are to do with qos within the lan only and do not support inbound/outbound traffic to the internet.
the dscp marks dont seem to make any difference as far as i can tell, perhaps this works only if you have a switch and/or client that supports dscp?
paul. | |   Seph Getting jigggggy wit it Premium join:2003-01-23 Mars clubs:
edit: July 7th, @03:22PM
| Hi Paul,
You got the homework in less time than me, eh? 
Currently I have a QoS rule for WoW (yes, didn't think of anything else ) that has port 3724 as the destination port and assigned to queue 9. I have been running it while doing other "network-intensive" activities (BitTorrent, YouTubing, working with a VPN) and it maintained low latency and throughput. A big HOWEVER though... my modem choked after a few hours and I had to power cycle it. So maybe it was just me, but I would recommend to be careful in the kind of strain you put in the network, since DLink implementation of QoS in this firmware is a bit flimsy IMHO.
What I don't know yet is how QoS in this router really works. How much bandwith it uses? How it calculates how much it should use? Also, while I've seen more queues in other routers for a little more of "fine-tuning" here we have only 3 (and totally undocumented). If anyone has any idea, please, don't leave us in dark 
About the other queues, they are mainly for Wireless QoS and are to be used just inside the LAN. I tried making a rule to have more fluid video streaming from my media server to my XBOX but I didn't notice any performance increase.
DSCP marks actually work, but just as 802.1p, only for inside the network. For internet traffic, DSCP supposedly works only if your ISP has implemented DiffServ based QoS on the network. As far as I learned, only ISP's who also offer IPTV had implemented QoS network-wide. I'm still investigating about this since I think that DSCP, with all its problems, its a bit more flexible than the normal queue-based QoS.
I'm also still analyzing the settings file, since I noticed some options that are not available via the UI. I'll post any findings here.
Paul, please let me know how things are working on your side and any other findings I may have passed by.
-- The net is indeed, vast and infinite... | |   paule
@co.uk
| hi seph, thats really interesting about the dscp marks and explains why ive seen no difference when trying to implement them. i havent had any issues regards the router dying on me, its been extremely stable so far to be honest, i have around 10 qos rules too so im not giving it too much of an easy time either .
i too agree that there must be more to it than just the 3 qos priority levels, so i would love to hear from a dlink expert who can tell us any more about qos for this firmware revision.
i would love to know what additional settings you've found in the xml file and also what your findings are regards what they actually do, keep me posted .
p.s just fyi i have created an automatic rebooting script which runs via telnet and reboots the router on ping drops (batch file), works a treat!, dunno if your interested, if so let me know and i will send you the config file and instructions. | |   Seph Getting jigggggy wit it Premium join:2003-01-23 Mars clubs:
| Hi Paul,
I'm more than interested on your reboot script!!! 
Not that this router is unreliable... but I think it still has its glitches here and there... I would really appreciate if you can give some insight on it.
I've been thinking to have a look at the code of the firmware... I'm not a programmer per se, but I think I can get some info reading thru some important parts of the code. I'm going to download later the open-source version of the last firmware and see what can we get. It will be interesting if at least the UI can be modded for more power and consistency...
I've tried yesterday a rule to give all traffic from and to a specific device on the network special priority using 802.1p. This is done by only putting your device MAC address on the destination or source address, and then selecting a 802.1p priority. Apparently it works, since I noticed a more smooth stream when streaming music and video from my media server. I'm going to confirm it using a network analyzer later. Too bad it only works inside the LAN...
About DSCP I'm still looking around the net and the library for any info that can help us understand it. Any findings you will be the first to know  -- The net is indeed, vast and infinite... | |   paule
@co.uk
| hi seph, sounds like a good plan to look through the source code, i too am def no programmer, system admin only :-). thats interesting that you got 802.1p to work correctly within the lan, its good to know, not sure i will really use it but you never know :-).
ok onto the auto reboot script, i generally find this is useful when there is a glitch from my isp which requires a reboot on my router, and it works a treat :-). im basically using autohotkey in order to automate a telnet connection and then run a series of commands to reboot the router.
step 1. copy and paste the following code into notepad and save the file with a ahk extension, making sure to change "youradminusername" and "youradminpassword" to your login details for your router.
step 2. download and install autohotkey from here »www.autohotkey.com/download/
step 3. once installed you can then either execute the script by double clicking it, or you can compile it and turn it into a self contained exe, which is what ive done, if you want you can then remove autohotkey, but personally i find it very useful :-).
step 4. create yourself a batch file that checks for a ping response, code example of the batch file i use:-
step 5. create a windows scheduled task to run the batch file every 30 mins.
i hope you find this useful seph, and def keep me posted on any developments regarding qos :-).
paul. | |   Seph Getting jigggggy wit it Premium join:2003-01-23 Mars clubs:
| Thanks a lot for the script Paul!!!
Also thanks a lot for suggesting AutoHotKey, it is a really nice program and a fast alternative to Windows Scripting Host for basic task automation.
I'm still doing my research about DSCP and how Windows and other OSes implement QoS. It could be interesting if we can create port-less and ip-less QoS rules on the router that are triggered by the OS and its applications themselves, just like uPnP NAT traversal works. I know that this is possible since I've seen it implemented on some higher-end systems and corp. networks... just don't know how to do it.. yet... 
Again thanks for the script and the great thread you have made.
Regards, -- The net is indeed, vast and infinite... | |   paule
@co.uk
| hi seph, glad autohotkey is working well for you, it is a pretty powerful app and free too, can't beat free eh .
i too would like more granular control over qos than the 3 priorities (9, 10, 11) but im not exactly sure how you would set qos at an OS level, if you do find out how to set it then let me know.
paul. | |   DFG
@verizon.net | reply to paule I just got this router also and I am totally confused by the QOS. I don't see any settings for queues with a 9,10 or 11 as a choice. The 802.1p priorities are 0-7 as are the IP precedence. Where are you seeing these queue numbers? | |   paule
@co.uk
| the answer is in the thread 
".....if you don't run this it doesn't correctly create the wan ports for qos, so the trick is to run the wizard. once you've run the wizard you should then see an additional 3 classification rule types when creating a qos rule." i.e. 9/10/11 hope this helps.
paul. | |   DFG
@verizon.net
| reply to paule I found I had to reflash the router with the UK version of the code. This version is much cleaner and has more capabilities. The QOS now shows me the 3 other queues after running the wizard. It also has the easy QOS options that the US version didn't have.
Dave | |
|