Bandwidth Throttling

Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems

Moderator: Qbik Staff

Bandwidth Throttling

Postby asianman » Sep 17 06 4:58 pm

Bandwidth Throttling doesnt seem to work for me!
I have it set by IP address on source, but it seems to take effect for ALL users regardless of IP address set..

eg:

172.31.100.1
255.255.0.0
Restriction: 1024kbps
Source
Priority: Level 1

Not only restricts user 172.31.100.1, but restricts everyone else..
What's happened and how can I fix?
asianman
 
Posts: 32
Joined: Sep 15 06 9:44 am

Postby genie » Sep 17 06 10:25 pm

Sure - because the mask you use filters out all 172.31 subnet - for bandwidth throttling mask is not the network mask but rather a filter to point out which part of the IP address should be used for decision making. If you want to filter out only one particular IP address, you have to use mask 255.255.255.255.
genie
Qbik Staff
 
Posts: 1788
Joined: Sep 30 03 10:29 am

Postby asianman » Sep 17 06 10:29 pm

Oh of courrrsseee!!! Basic networking lol THANKS!
asianman
 
Posts: 32
Joined: Sep 15 06 9:44 am

Postby genie » Sep 17 06 10:31 pm

No worries - as a matter of fact we figured out that this approach might be quite confusing (subnet mask vs. filtering) - we will probably (subject to user comments and usability study) change it to the IP range configuration.
genie
Qbik Staff
 
Posts: 1788
Joined: Sep 30 03 10:29 am

Postby asianman » Sep 17 06 10:33 pm

Well now I know what it was, it makes things a whole lot easier to understand and it seems to be working well!
asianman
 
Posts: 32
Joined: Sep 15 06 9:44 am

Postby asianman » Sep 17 06 10:35 pm

Now I've got the download bandwidth throttling working, how do I do upload throttling? Implementing a reverse restriction doesnt seem to work - the download speed seems to be restricted to what I set as reverse restricted
asianman
 
Posts: 32
Joined: Sep 15 06 9:44 am

Postby genie » Sep 17 06 10:38 pm

If you want to apply reverse restriction, you have to mark rule as bi-directional - so that it will "see" packets coming back. Otherwise, you can create separate rule and set the destination IP to be the one you want to throttle.
genie
Qbik Staff
 
Posts: 1788
Joined: Sep 30 03 10:29 am

Postby asianman » Sep 17 06 10:44 pm

Well I tried both methods, neither seemed to throttle the upload...
download throttling works ok:

Source IP: 172.31.100.1
Mask: 255.255.255.255
Restriction: 1024kbps
Level 1
= OK

Destination IP: 172.31.100.1
Mask: 255.255.255.255
Restriction: 128kbps
Level 1
= NO THROTTLING

??
asianman
 
Posts: 32
Joined: Sep 15 06 9:44 am

Postby genie » Sep 17 06 10:47 pm

Erm... I am lost - .1 client uploads data to some host - meaning that the data traffic would be originated from .1 - right?
genie
Qbik Staff
 
Posts: 1788
Joined: Sep 30 03 10:29 am

Postby asianman » Sep 17 06 10:49 pm

I'm sorry I'm lost too lol...

I have two seperate rules

RULE 1: Soure Throttling of 1Mbps = Works OK
RULE 2 Destination Throttling of 128kbps = No Throttling!

Rules are the same with the exception of Source/Destination
asianman
 
Posts: 32
Joined: Sep 15 06 9:44 am

Postby genie » Sep 17 06 10:50 pm

Ok - are these rules marked as bidirectional?
genie
Qbik Staff
 
Posts: 1788
Joined: Sep 30 03 10:29 am

Postby asianman » Sep 17 06 10:54 pm

No theyre not... Should they be? Download one is working without it switched to bidirectional
asianman
 
Posts: 32
Joined: Sep 15 06 9:44 am

Postby genie » Sep 17 06 10:56 pm

Aye - because if the rule is unidirectional, thorttling through it would depend on the direction of the "heavy" data packets.
genie
Qbik Staff
 
Posts: 1788
Joined: Sep 30 03 10:29 am

Postby asianman » Sep 17 06 10:59 pm

Hmm ok heres how I am testing

I have a 3.5Mbps downstream connection and a 512kbps upstream connection on ADSL...

I have the downstream throttle of 2Mbps working ok with the following setting:

Source IP: 172.31.100.1
Mask: 255.255.255.255
UNIDIRECTIONAL

nzdsl speed test shows 2Mbps as it should

---

Now if I try applying the same principle to the upstream throttle:

Destination IP: 172.31.100.1
Mask: 255.255.255.255
UNIDIRECTIONAL

nzdsl speed test shows 512kbps which is full speed...

Go figure?
asianman
 
Posts: 32
Joined: Sep 15 06 9:44 am

Postby asianman » Sep 17 06 11:00 pm

PS - trying to make upstream 128kbps..
asianman
 
Posts: 32
Joined: Sep 15 06 9:44 am

Postby genie » Sep 17 06 11:06 pm

Right - but what part of traffic is coming from upstream? If the rule is unidirectional and the client sends data _to_ the upstream server, then data packets will trigger the rule and the restriction will be applied - mind you, if the rule is not marked as bidirectional, only one part of the traffic will be throttled - the one that comes to the direction set by the rule.
genie
Qbik Staff
 
Posts: 1788
Joined: Sep 30 03 10:29 am

Postby asianman » Sep 17 06 11:09 pm

Ok, but if I make ONE rule like this

BIDIRECTIONAL
Source: 172.31.100.1
Mask: 255.255.255.255
Apply Restriction: 2Mbps
Reverse: 128kbps

and then run a speed test, it will show the downstream speed of 128kbps and the upstream speed will still be 512kbps..
asianman
 
Posts: 32
Joined: Sep 15 06 9:44 am

Postby genie » Sep 17 06 11:10 pm

How do you test it?
genie
Qbik Staff
 
Posts: 1788
Joined: Sep 30 03 10:29 am

Postby asianman » Sep 17 06 11:12 pm

www.nzdsl.co.nz - speed test shows downstream and upstream speed
asianman
 
Posts: 32
Joined: Sep 15 06 9:44 am

Postby genie » Sep 17 06 11:17 pm

How does it test upstream performance? I will try it tomorrow but if it simply calculates the rate of ACK packets coming back from the client - it is not enough. Try uploading some big file.
genie
Qbik Staff
 
Posts: 1788
Joined: Sep 30 03 10:29 am

Postby asianman » Sep 17 06 11:21 pm

Still no go - tried uploading big file and transfer rate stayed the same. So somethings not configured right..
asianman
 
Posts: 32
Joined: Sep 15 06 9:44 am

Postby asianman » Sep 17 06 11:21 pm

Should I be playing with "control max tcp window" "apply to induced traffic" "apply to traffic to from local machine" settings?
asianman
 
Posts: 32
Joined: Sep 15 06 9:44 am

Postby genie » Sep 17 06 11:22 pm

I'll do the testing tomorrow - meanwhile, can you export and email your Wingate settings to me?
genie
Qbik Staff
 
Posts: 1788
Joined: Sep 30 03 10:29 am

Postby genie » Sep 17 06 11:23 pm

Now, if you tried FTP traffic, then "apply to induced" should be ticked - otherwise FTP data channel will not be throttled. TCP window control helps to "flatten" data throttling, creating less spikes on the way.
genie
Qbik Staff
 
Posts: 1788
Joined: Sep 30 03 10:29 am

Postby asianman » Sep 17 06 11:28 pm

Have emailed you settings - "control max tcp window" seems to screw it all up in regards to testing, puts my downstream speed to 100kbps lol
asianman
 
Posts: 32
Joined: Sep 15 06 9:44 am

Postby genie » Sep 17 06 11:32 pm

:))) See - it works even better after all :) Seriously, though - this is why this settings is configurable - because this is the only way to reduce upstream traffic flow (from upstream I mean).
genie
Qbik Staff
 
Posts: 1788
Joined: Sep 30 03 10:29 am

Postby asianman » Sep 17 06 11:34 pm

Oh well guess I'll just have to live with downstream throttle only! :'(
asianman
 
Posts: 32
Joined: Sep 15 06 9:44 am

Postby genie » Sep 17 06 11:35 pm

Well, we'll see how your configuration looks like.
genie
Qbik Staff
 
Posts: 1788
Joined: Sep 30 03 10:29 am

Postby asianman » Sep 17 06 11:41 pm

anything interesting?
asianman
 
Posts: 32
Joined: Sep 15 06 9:44 am

Postby genie » Sep 18 06 12:47 pm

One quick question - I noticed you had WWW intercept activated in your configuration - did you have the rules marked as "Apply to local connection" as well?
genie
Qbik Staff
 
Posts: 1788
Joined: Sep 30 03 10:29 am

Next

Return to WinGate

Who is online

Users browsing this forum: No registered users and 4 guests

cron