This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ASG 7.2 - Don't understand QoS - Limit Torrent Uplink

Hi Astaro users and professionals :-)

If you find errors in this written text please ignore ... I'm not a native speaker.

I seem to be unable to configure QoS in a way that limits outgoing Torrent traffic.

Here's the situation:
uTorrent, configured to use...
Port 16617:16880 (64 ports) for outgoing connections
Bandwith for outgoing connections set to 30 kB/s ~ 240 kBit/s

Astaro SG 7.2
Service Definition "Def_TorrentOUT" TCP/UDP 16617:16880 -> 1:65535

Network Definition "TorrentPC" as host with fixed IP on > interface

Packet Filter on Position 1 "Flt_TorrentOUT" with TorrentPC -> Def_TorrentOUT -> Any, Allow always
...Logging enabled so that I can actually see, that this filter is in use and working in the live log...

QoS
External (WAN) on status tab enabled with
"Total available downlink bandwidth: 8704 kbits/sec"
"Total available uplink bandwidth: 1024 kbits/sec"

Traffic Selector
Name: Sel_TorrentOUT
Source: TorrentPC
Service: Def_TorrentOUT
Destination: Any
TOS/DSCP: Off

Bandwith Pool on External (WAN)
Name: Pool_TorrentOUT
Position: 1
Bandwith (kbit/s): 1
Specify upper bandwith limit - Limit (kbit/s): 16 ... to put a really noticeable limit here :-)
Traffic Selector: Sel_TorrentOUT

So, in theory, I would expect that the upload from uTorrent would be about 2 kB/s (16/8) as specified via QoS ... but it isn't - it's running with the configured 30 kB/s and doesn't bother to slow down.

uTorrent is actually using ports 16617:16680 for outgoing connections - I've checked this with TCPView 2.53 from SysInternals.

In the Dashboard I can see that about 40 kB/s are being transferred to the Internet on the External (WAN) interface ... with nothing else running but uTorrent that would be an indication that QoS as configured doesn't work.

What am I missing here [:S]

Thanks in advance for your help !

Greetinx,
Udo


This thread was automatically locked due to age.
Parents Reply
  • Thanks for your reply.

    Wireshark on the machine tells me just about the same as TCPView ... outgoing traffic for Torrent uses ports 16617 ff ... I'd have to switch to a shared medium hub or get hold of a wire tap to confirm this from the outside.

    This'll be sth. for the weekend :-)

    Are you otherwise implying that the configuration for QoS as outlined should indeed work?
Children
  • It works OK for me, using Azureus (another bittorrent client).

    I didn't compare your config in detail with mine, but it seems OK.

    Try searching these forums for bittorrent and/or QOS if you haven't already.

    Barry
  • A good test is to try the bandwidth tests on DSLReports.com with and without torrents running.

    Barry
  • your uplink and downlink bandwidth are backwards (if you are indeed speaking of the WAN port).  Your uplink on your WAN port should be set the maximum guaranteed speed by your ISP.  Your downlink should be set to your maximum upstream speed.  I know this seems strange, but it IS the case on your WAN port.
  • Hello coscraze,
    I think I understand what you're trying to tell me but if I reverse the original values from...

    QoS
    External (WAN) on status tab enabled with
    "Total available downlink bandwidth: 8704 kbits/sec"
    "Total available uplink bandwidth: 1024 kbits/sec"

    ...to...

    QoS
    External (WAN) on status tab enabled with
    "Total available downlink bandwidth: 1024 kbits/sec"
    "Total available uplink bandwidth: 8704 kbits/sec"

    ...without enabling any bandwith pools, however defined, the only thing that happens right away is that the download speed as shown in the Torrent client immediately drops to about 100~120 kB/s. The upload speed (again, reported by the Torrent client) stays happily at 30 kB/s ... untouched by that reversed values.

    On the other hand, if I set the values as follows...
    QoS
    External (WAN) on status tab enabled with
    "Total available downlink bandwidth: 8704 kbits/sec"
    "Total available uplink bandwidth: 128 kbits/sec"
    ...again with no specific bandwith pool the whole outgoing traffic, including Torrent upload as shown by the Torrent client, slows to a crawl.

    Put together this would be an indication that the values are not reversed, wouldn't it?

    Additionally, for me, it means that controlling the bandwith on a total basis does indeed work BUT probably the traffic selector needs to be redefined.

    Greetings,
    Udo
  • i might not be correctly understanding which interface you are referring to WAN.  from something I have read on here... and from my own experience, whichever interface is attached directly to your cable modem and/or other ISP device, should be the interface that has its settings in reverse.  What you are describing does actually sound like you are proving that my information is wrong.  But, from my own experience (what i have heard and what I have myself tested) is the following:

    ISP advertises 12Mbit down / 2Mbit up.

    Interface A (attached to cable modem) is successful with QoS settings of the following:

    Upstream bandwidth: 12288
    Downstream bandwidth: 2048

    If you were running QoS on any other internal interface, the opposite settings of this would be what you would want.  In other words, on internals, the values are set where you think they would be... downstream to downstream and upstream to upstream.

    Maybe one of the pros can give better insight.
  • Hello coscraze,
    With "External (WAN)" I'm indeed referring to the interface which is connected to the DSL modem (PPPoE).

    Well, with 12288 as advertised by your ISP you should be able to reach download speeds of about 1.2 to 1.5 MByte/s ... If you can confirm this download speed with QoS enabled for your "External (WAN)" interface only with the values reversed, as you say, well then I guess in some cases that is what one has to configure ... anyway, I think you'd need a really good source or a Torrent client to max. out your download, otherwise you probably wouldn't notice a difference with 2 MBit/s upload from your ISP.

    Do you have any idea if I'm missing something with the traffic selector?

    Thanks in advance,
    Udo