TG582N - Amazing upload QOS! (CLI configuration)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Broadband
- :
- Re: TG582N - Amazing upload QOS! (CLI configuratio...
TG582N - Amazing upload QOS! (CLI configuration)
14-07-2013 3:05 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
In particular where I was saturating the upstream with my online backup service running over port 443, gaming latency went from around 33ms to 500+ (Using kids and League of Legends as a test bed!)
Although things looked OK on the BQM and the ping command it seems that this was because the ICMP protocol was being specifically prioritised in the router proving that something could be done
After doing some searches I found the CLI guide and some info about prioritising based on source IP.
http://help.demon.net/files/2013/03/TG582n-CLI-Guide.pdf
http://npr.me.uk/ipqos.html
Taking the npr notes as a guide (Loads of other useful info on that site), rather than basing QOS on IP I decided to try and de prioritise HTTP/HTTPS traffic and prioritise the default queue. The default queue should catch any traffic not defined with a specific rule so all the many and various game ports. (Warning - But also potentially bulk traffic e.g. Bittorrent upstream!)
Commands made from a telnet session to the TG582N (Using Putty):
label add name=Lopq
label modify name=Lopq classification=overwrite defclass=2 ackclass=2 bidirectional=disabled inheritance=disabled
label rule modify chain=qos_default_labels index=5 label=Lopq
label rule modify chain=qos_default_labels index=7 label=Lopq
label rule modify chain=qos_default_labels index=23 label=Video
saveall
Lopq is the new low priority queue.
Video is an existing higher priority queue.
After making these changes the in game latency now only goes up to 40 when saturating the upstream!
I know this router gets some stick over its wireless capability and GUI but I can’t believe how well it works for QOS, the downside being all this configuration only being available through the CLI.
Really pleased with how well this is now working in combination with Plusnet’s traffic management.
Ideally traffic could be assigned to a queue based on port number to blacklist bulk traffic from the default to a lower priority queue.
May be able to do something with the EXPR commands to define a new signature but couldn’t see an add command in the list.
Will keep playing
Re: TG582N - Amazing upload QOS! (CLI configuration)
14-07-2013 3:32 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
from here http://download.modem-help.co.uk/mfcs-A/Alcatel/Modems/TG582n/v1/Manuals/Application-Notes/
Don't worry that it's for a older firmware, the commands don't change much and the principle remains the same.
Happy playing.
Re: TG582N - Amazing upload QOS! (CLI configuration)
14-07-2013 4:09 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: TG582N - Amazing upload QOS! (CLI configuration)
14-07-2013 4:13 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Shame they took all the config out of the GUI.
Re: TG582N - Amazing upload QOS! (CLI configuration)
15-07-2013 9:02 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: npr Happy playing.
Doh. Just twigged it was your site. I blame the cryptic link between your forum name and your domain
Thanks for getting me started.
I've been surprised that I am getting better results with the Technicolor than I have been with PFsense traffic shaping.
Re: TG582N - Amazing upload QOS! (CLI configuration)
19-07-2013 10:25 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Add a new expression:
expr add name=NNTP type serv proto tcp dstport 563
(There is an existing expression 'nntp' for port 119)
Add new rule:
label rule add chain=qos_user_labels index=1 name=NNTP serv=NNTP label=Lopq
This assigned the NNTP traffic correctly.
I'm assuming this would still help as the NNTP ack uploads will be de-prioritised?
Tried it with a bittorrent port though and the traffic still went to the default queue.
Not such a problem as I don't use torrents much, but it's just nagging at me now as there would be more benefit in controlling torrent uploads.
Re: TG582N - Amazing upload QOS! (CLI configuration)
19-07-2013 12:59 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: TG582N - Amazing upload QOS! (CLI configuration)
19-07-2013 5:15 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Added a line to the expressions for TCP and UDP defining source port and started catching the torrent traffic.
However although all the UDP connections had local port 20000 (The port defined in utorrent) there were some TCP connections with different port numbers
Don't think there is a way around this apart from defining a port range which worked when I tried it. They all seemed to be on port 54xxx although this might not always apply.
Re: TG582N - Amazing upload QOS! (CLI configuration)
19-07-2013 6:21 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: TG582N - Amazing upload QOS! (CLI configuration)
19-07-2013 11:52 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
If your trying to limit the bandwidth of p2p on someone else's machine then I don't think you've got a chance. p2p is far to aggressive with the ports it can use. Disabling UPnP in the router may help a tad but IMO targeting the IP address will give better results. Now where have I seen the cli commands for that
I would be very interested to hear of your results on how QOS affects the download speed of p2p. I doubt it will make a difference but some claim it does allow other traffic more bandwidth.
Re: TG582N - Amazing upload QOS! (CLI configuration)
20-07-2013 9:59 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
This works really well now.
I very rarely use Bittorrent and when I do I use my Synology NAS for which I have used your IP based rules.
Also used IP rules to put my Gigaset VOIP phone into a high priority queue.
It was more about it being a challenge to see if I could make it work and learn a bit more about QOS.
Also my focus was on latency rather than bandwidth limiting as in my experience you have to really clamp down on the upstream to around a 1/3 of the upstream rate to avoid latency problems with gaming. At least on ADSL2.
Maybe that will change with Fibre?
With the OQS rules in place I have found you can run the upstream much 'hotter' and still game OK.
Re: TG582N - Amazing upload QOS! (CLI configuration)
20-07-2013 11:05 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
"Maybe that will change with Fibre?"
Not with my fibre connection, I'm only getting 0.6mbps upstream -- due to aluminium cables
Re: TG582N - Amazing upload QOS! (CLI configuration)
04-09-2013 9:52 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
jelv (a.k.a Spoon Whittler) Why I have left Plusnet (warning: long post!) Broadband: Andrews & Arnold Home::1 (FTTC 80/20) Line rental: Pulse 8 Home Line Rental (£14.40/month) Mobile: iD mobile (£4/month) |
Re: TG582N - Amazing upload QOS! (CLI configuration)
04-09-2013 12:35 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
However it may be easier and just as effective to de-prioritise or black list traffic and raise the priority of the default queue as I did in the first post.
If you enter the commands in that post it will move HTTP/S traffic into a low queue and raise all unidentified traffic into a higher queue.
This should work if it is HTTP/S traffic causing your latency issues when you are making calls.
If it is a traffic over a different port causing problems then you would have to de-prioritise that traffic, again by using my NNTP commands as an example.
Gary
Re: TG582N - Amazing upload QOS! (CLI configuration)
04-09-2013 9:18 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: jelv I'm wondering if it is possible to give VoIP higher upload priority than anything else (even from the same PC) - could someone give me pointers please?
I don't have a plusnet supplied router in ADSL config to check this out, but the O2 router I do have already has qos configured to give VoIP a high priority (queue 4 -- 2nd highest). I assume the plusnet supplied routers will have a similar config.
Looking at the O2 routers user.ini file these are the relevant parts if you wish to have a play:
[ ipqos.ini ]
queue config dest=pvc_Internet queue=4 hold=2000 loprio=12 hiprio=13
queue config dest=pvc_Internet queue=5 maxpackets=30 maxbytes=12 hold=2000 loprio=14 hiprio=15
[ label.ini ]
modify name=VoIP-Signal classification=overwrite defclass=12 ackclass=12 bidirectional=enabled tosmarking=enabled
(could experiment by changing defclass and ackclass to 14 This will move the VoIP traffic from queue 4 to 5)
[ expr.ini ]
add name=sip type=serv proto=udp dstport=sip
add name=sip type=serv proto=tcp dstport=sip
add name=h323 type=serv proto=tcp dstport=h323
add name=h323 type=serv proto=udp dstport=h323
add name=h323 type=serv proto=tcp dstport=1718
add name=h323 type=serv proto=udp dstport=1718
add name=h323 type=serv proto=tcp dstport=1719
add name=h323 type=serv proto=udp dstport=1719
(could add extra port numbers to "sip" or "h323" to cover any missing ports -- don't duplicate ports)
[ labelrule.ini ]
rule add chain=qos_default_labels index=1 serv=h323 log=disabled state=enabled label=VoIP-Signal
rule add chain=qos_default_labels index=2 serv=sip log=disabled state=enabled label=VoIP-Signal
Note:
Use the command "ipqos queue stats" to see which queue's are being used.
HTH
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Broadband
- :
- Re: TG582N - Amazing upload QOS! (CLI configuratio...