IP Quality of Service ( IP QoS )
Experimental

If you need help with telnet commands, see this first telnet.html

Introduction

This is an experiment into configuring IPQoS on a Thomson's TG587nv2 router.
These commands may or may not work on other Thomson's routers.

Internet traffic to and from a specified LAN IP are sent to the designated high or low priority queue.
A PC which uses a lot of p2p traffic may be placed in the low priority queue and hopefully free more bandwidth for others on the network.
A SIP device may benefit from being placed in the high priority queue.

I have not thoroughly tested the practical implications of this but so far it looks to be working better than I expected.

First check that IPQOS is enabled on the router.
Issue the command ipqos list

Check your connection type is enabled and set to "wfq" (Weighted Fair Queueing )



Place a device in the low priority queue
Ensure the target PC is on a static DHCP IP address by setting "always use the same IP address" in the routers GUI
Note the IP address of the device and use it in place of 192.168.1.100 

Commands to place the PC at IP address 192.168.1.100 in a low priority queue
Command Comments
label add name=Lopq Label for the low priority queue
label modify name=Lopq classification=overwrite defclass=2 ackclass=2 bidirectional=disabled inheritance=disabled  Configure Lopq to have a low priority
label list
Optional -- list the labels
label rule add chain=qos_user_labels index=1 name=Loup srcip=192.168.1.100 label=Lopq Rule for upload traffic from the target pc (192.168.1.100)
label rule add chain=qos_user_labels index=2 name=Lodown dstip=192.168.1.100 label=Lopq Rule for download traffic to the target pc (192.168.1.100)
label rule list Optional  -- list the qos rules
Saveall Make it permanent

Note:
This sets the priority for packets to and from the WAN.
It does not change the priority of packets across the LAN.

Queue Stats before the above changes with the router in it's default state.

Queue No 0 has the lowest priority.
Queue No 5 has the highest priority.
After a few hours of web browsing we can see that most packets went through queue No 1 -- The best effort queue.

Queue Stats after the above changes with all IP traffic to/from 192.168.1.100 going to queue No 0

After a few hours of light browsing with only the one PC active on the network.
All IP traffic to/from 192.168.1.100 now goes to low priority queue No 0
The few packets shown in queue 4 is management traffic from the router.

Undo -- delete the low priority qos rules and label
Command Comments
label rule list Optional -- check the rule index numbers
label rule delete chain=qos_user_labels index=2 Delete index 2 before index 1
label rule delete chain=qos_user_labels index=1
label delete name=Lopq
saveall Don't forget this



Place a device in the high priority queue
Ensure the target PC is on a static DHCP IP address by setting "always use the same IP address" in the routers GUI
Note the IP address of the device and use it in place of 192.168.1.110

Commands to place the device at IP address 192.168.1.110 in a high priority queue
Command Comments
label add name=Hipq Lable for the high priority queue
label modify name=Hipq classification=overwrite defclass=14 ackclass=14 bidirectional=disabled inheritance=disabled  Configure Hipq to have a high priority
label list
Optional -- list the labels
label rule add chain=qos_user_labels index=1 name=Hiup srcip=192.168.1.110 label=Hipq Rule for upload traffic from the target pc (192.168.1.110)
label rule add chain=qos_user_labels index=2 name=Hidown dstip=192.168.1.110 label=Hipq Rule for download traffic to the target pc (192.168.1.110)
label rule list Optional  -- list the qos rules
Saveall Make it permanent


Undo -- delete the high priority qos rules and label
Command Comments
label rule list Optional -- check the rule index numbers
label rule delete chain=qos_user_labels index=2 Delete index 2 before index 1
label rule delete chain=qos_user_labels index=1
label delete name=Hipq
saveall Don't forget this



projects
Telnet Project for Thomson / Technicolor Routers

Telnet commands for a Thomson router

Change DNS Settings on a Thomson Router -- (Two methods)

Multiple SSID


Web Access Control Schedule (TOD) 

Web content filter


Telnet scripting


Enable WDS

Connect Two Thomson Routers Together

Basic DMZ on a Thomson Router


Advanced DMZ on a Thomson TG587n

Forward all ports to a specific LAN IP

IP QoS

Wake on LAN from Internet

Xbox and PS3 on a Thomson router

Remote Access to a Thomson Router

Fix a problem with VPN (IPSec) Connections   (Firmware Release 8.4.3 only)

Fix a problem with VPN (PPTP) Connections

Bridge Mode and Create a EWAN Port


Home Page
footer
Copyrightę NPR 2010 - 2016       Disclaimer