Networking Forums

Networking Forums > Computer Networking > Linux Networking > rate shaping with cbq

Reply
Thread Tools Display Modes

rate shaping with cbq

 
 
Damir Galič
Guest
Posts: n/a

 
      08-31-2005, 05:17 PM
Hi. I would like to shape my adsl connection in a way, so the connections to
port 80 would work with no delay and with the highest speeds. So if I have
for example bittorrent open with 100+ connections, I'd like to open web
pages intantly without delay. I managed to make it work somehow, but web
pages with a lot of contents are opening slow - the pictures on it. Pictures
are opened instatnly but there is some delay. Now what would be the best
way, for example I am using mark and I have ppp0 interface for the internet.


 
Reply With Quote
 
 
 
 
David Schwartz
Guest
Posts: n/a

 
      09-01-2005, 02:38 AM

"Damir Galič" <(E-Mail Removed)> wrote in message
news:fBlRe.29$(E-Mail Removed)...

> Hi. I would like to shape my adsl connection in a way, so the connections
> to port 80 would work with no delay and with the highest speeds. So if I
> have for example bittorrent open with 100+ connections, I'd like to open
> web pages intantly without delay. I managed to make it work somehow, but
> web pages with a lot of contents are opening slow - the pictures on it.
> Pictures are opened instatnly but there is some delay. Now what would be
> the best way, for example I am using mark and I have ppp0 interface for
> the internet.


Talk to your Internet provider. You only have control over the packets
you are sending out, and trying to clear space for inbound packets by
restricting outbound packets doesn't work very well.

The problem is that the packets that contain pieces of those images have
to fight with all the packets being sent to you from bittorrent peers.
There's no easy way to make the peers automatically stop sending packets.

Some bittorrent clients have the ability to gradually restrict their
bandwidth usage if they sense load over the connection, but I doubt this
will really help you very much. Fundamentally, either your provider supports
things like QoS or priority queuing, or they don't. Almost always, they
don't.

DS


 
Reply With Quote
 
Andy Furniss
Guest
Posts: n/a

 
      09-01-2005, 02:11 PM
David Schwartz wrote:
> "Damir Galič" <(E-Mail Removed)> wrote in message
> news:fBlRe.29$(E-Mail Removed)...
>
>
>>Hi. I would like to shape my adsl connection in a way, so the connections
>>to port 80 would work with no delay and with the highest speeds. So if I
>>have for example bittorrent open with 100+ connections, I'd like to open
>>web pages intantly without delay. I managed to make it work somehow, but
>>web pages with a lot of contents are opening slow - the pictures on it.
>>Pictures are opened instatnly but there is some delay. Now what would be
>>the best way, for example I am using mark and I have ppp0 interface for
>>the internet.

>
>
> Talk to your Internet provider. You only have control over the packets
> you are sending out, and trying to clear space for inbound packets by
> restricting outbound packets doesn't work very well.


Even that wouldn't work for me - UK dsl would need the teleco to do it
on the VC that feeds "my" dslam at the exchange.

>
> The problem is that the packets that contain pieces of those images have
> to fight with all the packets being sent to you from bittorrent peers.
> There's no easy way to make the peers automatically stop sending packets.


Shaping from the wrong end of the bottleneck is not easy or perfect, but
you can still do alot better than doing nothing - at the expense of
sacrificing some of your bandwidth.

>
> Some bittorrent clients have the ability to gradually restrict their
> bandwidth usage if they sense load over the connection, but I doubt this
> will really help you very much. Fundamentally, either your provider supports
> things like QoS or priority queuing, or they don't. Almost always, they
> don't.
>
> DS
>
>

 
Reply With Quote
 
Andy Furniss
Guest
Posts: n/a

 
      09-01-2005, 02:21 PM
Damir Galič wrote:
> Hi. I would like to shape my adsl connection in a way, so the connections to
> port 80 would work with no delay and with the highest speeds. So if I have
> for example bittorrent open with 100+ connections, I'd like to open web
> pages intantly without delay. I managed to make it work somehow, but web
> pages with a lot of contents are opening slow - the pictures on it. Pictures
> are opened instatnly but there is some delay. Now what would be the best
> way, for example I am using mark and I have ppp0 interface for the internet.
>
>


You may be too close to link rate on upstream shaping - classify icmp to
highest class and test latency with ping.

Try shaping ingress traffic aswell - if your shaper just forwards for a
lan then you could set up queues on the lan facing interface. Back off
from link speed about 20% or you will never have queues to shape with
and keep them short so you drop packets and the other end gets to know
sooner rather than later.

Ingress policers are another possibility - depends on your setup -
bandwidth etc and what you want to do.

Andy.
 
Reply With Quote
 
tony.p.lee@gmail.com
Guest
Posts: n/a

 
      09-01-2005, 05:03 PM
azureus is an (java) open source bt client to give you
great deal of control over how much bandwidth it uses for
both upload and download.

There is an addon module that lets you control the bandwidth
base on time of the day.

I use it to download linux FC4. It works pretty good,
if you don't mind Java nomally sucks up 10 times of CPU cycles
vs. samething written with C/C++. I have spare system to do this,
so it is a non-issue.

-Tony

 
Reply With Quote
 
Steve Horsley
Guest
Posts: n/a

 
      09-01-2005, 10:34 PM
Damir Galič wrote:
> Hi. I would like to shape my adsl connection in a way, so the connections to
> port 80 would work with no delay and with the highest speeds. So if I have
> for example bittorrent open with 100+ connections, I'd like to open web
> pages intantly without delay. I managed to make it work somehow, but web
> pages with a lot of contents are opening slow - the pictures on it. Pictures
> are opened instatnly but there is some delay. Now what would be the best
> way, for example I am using mark and I have ppp0 interface for the internet.
>
>


I haven't played with CBQ so can't help you there. But CBQ can
only control your outgoing traffic, and certainly for myself, the
killer for web browsing is the incoming BT traffic.

The solution I found was to use Azureus for my BT transfers,
where you can control both the outgoing and incoming rates. I
don't know _how_ it controls the incoming rate, but it does it
accurately. I tend to set both rates to around 3/4 of my
available bandwidth (or drop the incoming proportion a little if
I'm browsing heavily), which gives me very acceptable performance.

Steve
 
Reply With Quote
 
Damir Galic
Guest
Posts: n/a

 
      09-01-2005, 11:47 PM
I am using this linux pc only as a router, so I am controlling outgoing
traffic on both interfaces. but still, is there a way to use 100% of your
internet connection and still have good icmp pings by doing some priority
management and stuff?

"Steve Horsley" <(E-Mail Removed)> wrote in message
news:df7vjv$gf8$(E-Mail Removed)...
> Damir Galič wrote:
>> Hi. I would like to shape my adsl connection in a way, so the connections
>> to port 80 would work with no delay and with the highest speeds. So if I
>> have for example bittorrent open with 100+ connections, I'd like to open
>> web pages intantly without delay. I managed to make it work somehow, but
>> web pages with a lot of contents are opening slow - the pictures on it.
>> Pictures are opened instatnly but there is some delay. Now what would be
>> the best way, for example I am using mark and I have ppp0 interface for
>> the internet.

>
> I haven't played with CBQ so can't help you there. But CBQ can only
> control your outgoing traffic, and certainly for myself, the killer for
> web browsing is the incoming BT traffic.
>
> The solution I found was to use Azureus for my BT transfers, where you can
> control both the outgoing and incoming rates. I don't know _how_ it
> controls the incoming rate, but it does it accurately. I tend to set both
> rates to around 3/4 of my available bandwidth (or drop the incoming
> proportion a little if I'm browsing heavily), which gives me very
> acceptable performance.
>
> Steve



 
Reply With Quote
 
Steve Horsley
Guest
Posts: n/a

 
      09-02-2005, 07:49 PM
Damir Galic wrote:
> I am using this linux pc only as a router, so I am controlling outgoing
> traffic on both interfaces. but still, is there a way to use 100% of your
> internet connection and still have good icmp pings by doing some priority
> management and stuff?
>


You will be able to control the outgoing stuff nicely. I'm sure
you can prioritise outgoing traffic by type, as I say, I haven't
tinkered with Linux and queueing.

But you will have no control over the incoming traffic, and this
is most likely where the problems will lie. An overloaded
downlink will knacker your performance whatever you do with the
router.

These might help you:
http://www.knowplace.org/shaper/
http://www.linuxguruz.com/

Steve
 
Reply With Quote
 
Martin Mleczko
Guest
Posts: n/a

 
      09-19-2005, 02:26 PM
On Wed, 31 Aug 2005 19:38:58 -0700, David Schwartz wrote:

>
> "Damir Galič" <(E-Mail Removed)> wrote in message
> news:fBlRe.29$(E-Mail Removed)...
>
>> Hi. I would like to shape my adsl connection in a way, so the connections
>> to port 80 would work with no delay and with the highest speeds. So if I
>> have for example bittorrent open with 100+ connections, I'd like to open
>> web pages intantly without delay. I managed to make it work somehow, but
>> web pages with a lot of contents are opening slow - the pictures on it.
>> Pictures are opened instatnly but there is some delay. Now what would be
>> the best way, for example I am using mark and I have ppp0 interface for
>> the internet.

>
> Talk to your Internet provider. You only have control over the packets
> you are sending out, and trying to clear space for inbound packets by
> restricting outbound packets doesn't work very well.
>
> The problem is that the packets that contain pieces of those images have
> to fight with all the packets being sent to you from bittorrent peers.
> There's no easy way to make the peers automatically stop sending packets.
>
> Some bittorrent clients have the ability to gradually restrict their
> bandwidth usage if they sense load over the connection, but I doubt this
> will really help you very much. Fundamentally, either your provider supports
> things like QoS or priority queuing, or they don't. Almost always, they
> don't.
>
> DS

Hi

How about using the Congestion protection shemes coming with tcp?

Martin
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Jeff Liebermann -- "BIT-rate" and "SAMPLE-rate" are two totally different things. Radium Wireless Internet 8 07-23-2007 10:33 AM
traffic-shaping? peter pilsl Linux Networking 0 04-15-2007 08:20 PM
QoS and shaping Kevin Brown Linux Networking 2 01-02-2006 01:08 PM
Bandwidth shaping with CBQ Graeme Hinchliffe Linux Networking 1 05-15-2004 03:36 PM
Traffic Shaping Leonardo H. Machado Linux Networking 0 10-12-2003 03:26 AM



1 2 3 4 5 6 7 8 9 10 11