IPB





Welcome Guest ( Log In | Register )

> Setting up QoS
HarkinFell
post Apr 13 2008, 03:38 PM
Post #1


Peasant
*

Group: Members
Posts: 35
Thank(s): 0
Points: 0
Joined: 29-February 08
From: UK
Member No.: 83




Hey Monkey

Could you please help me setup up my Router with this QoS. So far it works well, I have two pc's connected to the Router and I can play BF2 while the missus is DL'ing on the laptop. But I want to go one step further and make sure that when I play BF2 it prioritizes that connection. But when it comes to setting it up I'm not too sure what to put. I'll put up a screenshot of the setup page and see if you can fathom it out. I even phoned D-Link up in the UK but I eneded up speaking to an Indian lady that hardly understood what i was trying to do.


Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
MonkeyFiend
post Apr 15 2008, 09:31 AM
Post #2


Security and Projects
**********

Group: Clan Dogsbody
Posts: 4,687
Thank(s): 1098
Points: 2,440
Joined: 31-August 07
From: A Magical Place, with toys in the million, all under one roof
Member No.: 1




Was only going to reply to this in worktime, as it took a while to write

To get QoS setup correctly (although there are some limitations*) it's best seeing exactly how the computers are setup. I'll assume 2 pc's into the router. The main pc is yours and is used for gaming etc., the 2nd is your wifes - used for downloading.

My first point is that traffic shaping depends on what the traffic is? is your wife is hitting bandwidth on port 80 (web traffic) and so on or p2p (with incoming connections) like bit-torrent? Whether you want to throttle specific applications (or ports) or whether you generally want to assign higher priority to one computer for everything?

---

General terms in the setup page:

Name - Just a name tag, can be anything

Priority - 1 being highest and 255 being lowest. The priorities are simple 'higher wins' and are not incremental depending on the priority range gap.

Protocol - Define a protocol number and/or type. (e.g. for streaming media/some games you would use UDP and for FTP you would use TCP)


Local IP Range - Assign the local IP address range. (This tells the router what IP addresses on the LAN are to use the given QoS rule) as in the private IP that you'd get if you opened a command prompt and type ipconfig


Local Port Range - Define the ports that you want prioritized. (e.g. Web traffic (http) operates on port 80.)

Remote IP/Ports -You do not need to tinker with these unless you are running specific inbound services on your machine.. like a webserver.

Remote IP range - Assign a remote IP address range. (Unless you are positive of the remote IP address range you want prioritized, leave this at it’s default setting. 0.0.0.0 to 255.255.255.255). Usually you would be instigating duplex connections to the net. Certain things like bit-torrent may allow remote connections to be started, but since the IP's will be different assigning a smaller range isn't appropriate


Destination Port Range - Assign a remote port range. (Unless you are positive of the remote port range you want prioritized, leave this at it’s default setting. 0 to 65535) Some remote applications may send traffic out on ephemeral ports to your inbound one (such as MSN messenger)

---

Sooooo.....

Assuming the following:

Computer #1 is yours. It has an IP address of 192.168.0.2
Computer #2 is your wifes. It has an IP address of 192.168.0.3

If you wanted to shape port 80 (web-traffic) you could create 2 rules that specifiy that your computer has priority over your wifes. (I will assume the remote part is moot as you shouldn't be allowing incoming connections on 80 unless you're running a webserver)

Rule 1:
Local IP; 192.168.0.2-192.168.0.2, priority 1, source port 80-80, protocol 6, << TCP, Remote IP 0-255.255.255.255, Remote port 0-65535

Rule 2:
Local IP; 192.168.0.3-192.168.0.3, priority 100, source port 80-80, protocol 6, << TCP, Remote IP 0-255.255.255.255, Remote port 0-65535

In the above for port 80 using TCP, if you and you and your wife are both vieing for bandwidth on this port then because you have a priority of 1 and she has a priority of 100, you would get the lions share of bandwidth.

Now more general; a catchall solution - instead of setting the specifics ports as above (port 80 Proto 6, TCP) you could instead use (1-65535 (all ports), proto 0, All) for both rules - this would mean your computer gets priority for all traffic over your wifes tongue.gif

Now limitations:

1. Some applications may form connections on ephemeral ports (next random unused port after 1024) so if you specifiy certain ports and that application uses another port, the bandwidth won't be shaped and you'll still liable to compete for bandwidth with another computer. Only of note if using specific ports.

2. Traffic shaping is not instantaneous, even with higher priority settings for your PC on bf2, you may still see a performance hit when your wife downloads on another pc. Most home routers aren't really geared to process packets in this way and while you may get priority and therefore bandwidth, it may affect lag.

3. Be vary carefeul of QoS and download managers (which are shit anyway) as these reroute queries through multiple ports to 'speed up' your downloads sad.gif (again only of note if using specific ports)

4. If you apply multiple rules to one computer, the QoS will shape your own traffic e.g. If you have a rules that says you IP, port 21 (FTP), priority 1 and another rules saying your IP, port 80, priority 2. Then you are using FTP and trying to get a webpage the QoS will limit your port 80 (web) traffic in favour of your Port 21 (FTP) traffic

BF2 Ports: there's a post on the EA forums showing all bf2 port usage (made by me tongue.gif) - i'll try and dig it out

[Edit: http://forums.electronicarts.co.uk/battlef...eld-2-port.html ]

A software alternative is to install net-limiter on the wifes pc

muhaha,

MonkeyFiend


--------------------

Go to the top of the page
 
+Quote Post

Posts in this topic
- HarkinFell   Setting up QoS   Apr 13 2008, 03:38 PM
- - HarkinFell   See, what do I put in em blocks....Local IP range ...   Apr 13 2008, 03:42 PM
- - HarkinFell   Ok so nobody knows then?   Apr 14 2008, 10:49 PM
- - Lawpf2001   nope no idea   Apr 15 2008, 08:05 AM
- - MonkeyFiend   Was only going to reply to this in worktime, as it...   Apr 15 2008, 09:31 AM
- - Lawpf2001   RE: Setting up QoS   Apr 15 2008, 09:34 AM
- - MonkeyFiend   @lawpf http://tinyurl.com/yt552u   Apr 15 2008, 09:54 AM
- - Lawpf2001   $60 pfft ill read the dictionary   Apr 15 2008, 10:49 AM
- - HarkinFell   Wow, thanx a million for the reply. It was what I ...   Apr 15 2008, 11:44 AM
- - MonkeyFiend   catachall is probably the easiest - providing you ...   Apr 15 2008, 12:25 PM
|- - HarkinFell   QUOTE(MonkeyFiend @ Apr 15 2008, 01:43 PM...   Apr 15 2008, 12:41 PM
- - MonkeyFiend   yep - that'll work fine   Apr 15 2008, 12:45 PM
- - HarkinFell   I have my IP setup through here I found I had to ...   Apr 15 2008, 12:47 PM
- - HarkinFell   Sweet, so I should be alright then? Thanx again Mo...   Apr 15 2008, 12:49 PM
- - MonkeyFiend   crikey, no need for threats!   Apr 15 2008, 12:51 PM
- - HarkinFell   Alright then a simple Fankoo will do then   Apr 15 2008, 12:55 PM
- - HarkinFell   Hey Monkey. sorry to bug you again... yeah I...   Apr 27 2008, 03:37 PM
- - MonkeyFiend   hey - net-limiter is paid for but am sure you coul...   Apr 28 2008, 07:27 AM
- - HarkinFell   Yeah I do set utorrent up like that, I have the up...   Apr 28 2008, 12:19 PM


Reply to this topicStart new topic

 



RSS Lo-Fi Version Time is now: 24th November 2024 - 05:53 PM
Sneaky Monkeys Clan :: MonkeyFiend.com