From: Alex Alexander (alex.alexander_at_nonexisting.hamakor.org.il)
Date: Tue 24 Jan 2006 - 01:35:46 IST
Something must be seriously ****ed up with my linux box.
I DL'ed wondershaper. Set it up for DL=350 (384), UL=96 (128) on eth1 (dsl).
Values in parentheses are adsl true bandwidth.
Pinged www.forthnet.gr (my provider)...
PING www.forthnet.gr (193.92.150.50) 56(84) bytes of data.
64 bytes from www.forthnet.gr (193.92.150.50): icmp_seq=1 ttl=250 time=62.0ms
64 bytes from www.forthnet.gr (193.92.150.50): icmp_seq=2 ttl=250 time=55.0ms
Started big download in my Windows Box with FlashGet... waited about 5
seconds to get 38kb/s
Pinged www.forthnet.gr again...
PING www.forthnet.gr (193.92.150.50) 56(84) bytes of data.
64 bytes from www.forthnet.gr (193.92.150.50): icmp_seq=1 ttl=250 time=1421
ms
64 bytes from www.forthnet.gr (193.92.150.50): icmp_seq=2 ttl=250 time=1436
ms
64 bytes from www.forthnet.gr (193.92.150.50): icmp_seq=3 ttl=250 time=1792
ms
64 bytes from www.forthnet.gr (193.92.150.50): icmp_seq=4 ttl=250 time=1801
ms
/wshaper status
gives me:
qdisc cbq 1: rate 10000Kbit (bounded,isolated) prio no-transmit
Sent 34278 bytes 601 pkts (dropped 0, overlimits 9)
borrowed 0 overactions 0 avgidle 819 undertime 0
qdisc sfq 10: parent 1:10 limit 128p quantum 1514b perturb 10sec
Sent 32161 bytes 584 pkts (dropped 0, overlimits 0)
qdisc sfq 20: parent 1:20 limit 128p quantum 1514b perturb 10sec
Sent 2117 bytes 17 pkts (dropped 0, overlimits 0)
qdisc sfq 30: parent 1:30 limit 128p quantum 1514b perturb 10sec
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
qdisc ingress ffff: ----------------
Sent 1269155 bytes 944 pkts (dropped 0, overlimits 0)
class cbq 1: root rate 10000Kbit (bounded,isolated) prio no-transmit
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 819 undertime 0
class cbq 1:10 parent 1:1 leaf 10: rate 96000bit prio 1
Sent 32161 bytes 584 pkts (dropped 0, overlimits 9)
borrowed 0 overactions 8 avgidle 819 undertime 0
class cbq 1:1 parent 1: rate 96000bit (bounded,isolated) prio 5
Sent 34278 bytes 601 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 819 undertime 0
class cbq 1:20 parent 1:1 leaf 20: rate 86000bit prio 2
Sent 2117 bytes 17 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 819 undertime 0
class cbq 1:30 parent 1:1 leaf 30: rate 76000bit prio 2
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 819 undertime 0
NOTE that wshaper.htb gives me the exact same results...
Why is dropped and overlimits ALWAYS 0?
Alex
On 1/23/06, David Randelman <davidr_at_qlusters.com> wrote:
>
> Alex,
> From my experience the main problem is believe it or not your download
> speed as well, the ISP creates huge buffers of data being sent to you.
> If you want low latency you will have to disable the ISP downlink buffer
> or at least reduce it, normally from my experience a 1.5Mbit line needs
> to be reduced by half at least. Once you have done this you will have
> much lower latency.
>
> If you are wondering why this happens it is because while your uplink
> is not saturated any more, believe it or not a saturated downlink will
> cause the same effect. The problem is while you have control over your
> uplink buffer, you can not control what the ISP sends you. The only true
> method is use of TCP window manipulation or use of the MRQ module which
> does the same as HTB, tries to define priorities on accepting packets
> and droping others so the ISP will "understand" you are not able to
> accept and reduct the TCP window size.
>
> To make a long story short, you will not be able to obtain a fast
> download stream AND hope to obtain minimum latency for gaming unless you
> use tc to cut your bandwidth by half or more and at the same time it
> will help to place the MRQ module.
>
> Another important thing, using all the HTB/MRQ modules can create packet
> buffer problems with pptp which already has its own buffering, if you
> see errors in your /var/log/messages or dmesg coming from pptp then make
> sure to disable the buffer (pptp --nobuffer)
>
> Cheers,
> -David
>
> Alex Alexander wrote:
>
> >On Monday 23 January 2006 13:42, you wrote:
> >
> >
> >>Alex Alexander wrote:
> >>
> >>
> >>>Greetings everyone,
> >>>
> >>>I'll try to keep it short. I have a linux routing machine connecting my
> >>>384kbps adsl line (eth1) with my local network (eth0). Its running
> Debian
> >>>unstable, w/ kernel 2.6.15 and the usual services (proxy, dns, dhcp,
> etc
> >>>etc).
> >>>
> >>>I am trying to shape traffic, both incoming and outgoing, to avoid high
> >>>latency in games like Battlefield 2 and Star Wars Galaxies whenever
> >>>someone on the network decides to do anything internet-related.
> >>>
> >>>
> >>I don't know the solution to your exact problem, but how about just
> >>trying an existing script that is known to work? I used wondershaper and
> >>it worked perfectly for me, it is simple to setup and known to do the
> >>work properly.
> >>
> >>You can tweak it after you get it working to do anything special you
> want.
> >>
> >>Baruch
> >>
> >>
> >
> >Thanks, I will try wondershaper ( http://lartc.org/wondershaper/ ).
> >
> >However I forgot to mention that I have already tried to use Shorewall's
> >built-in tc support with no luck...
> >
> >I'll get back to you with my results :)
> >
> >Alex
> >
> >=================================================================
> >To unsubscribe, send mail to linux-il-request_at_linux.org.il with
> >the word "unsubscribe" in the message body, e.g., run the command
> >echo unsubscribe | mail linux-il-request_at_linux.org.il
> >
> >
> >
> >
>
>
> =================================================================
> To unsubscribe, send mail to linux-il-request_at_linux.org.il with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail linux-il-request_at_linux.org.il
>
>
-- | | Alex Alexander | | alex.alexander_at_gmail.com | | Linux :: Debian :: 2.6.15 :: Ion3 \ ================================================================= To unsubscribe, send mail to linux-il-request_at_linux.org.il with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail linux-il-request_at_linux.org.il
This archive was generated by hypermail 2.1.7 : Tue 24 Jan 2006 - 01:48:15 IST