RE: HTB Rate and Prio (continued)

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I had a go with what you posted there over lan and with 2 tcp streams it
> behaves as expected (see below for exact test).
> 
> Can you reproduce the failiure shaping over a lan rather than your
> internet connection?
> 
> If your upstream bandwidth is sold as 2meg then ceil 2000kbit is likely
> to be too high.
> 
> You could also try specifying quantum = 1500 on all the leafs as you get
> it auto calculated from rates otherwise (you can see them with tc -s -d
> class ls ...). It didn't affect my test though.
> 
> If you are looking at htbs rate counters remember that they use a really
> long average (about 100 sec) so they can mislead.
> 
> I tested below with two netperf tcp send tests to ips I added to another
>   PC on my lan.
> 
> # /usr/local/netperf/netperf -H 192.168.0.60 -f k -l 60 &
> /usr/local/netperf/netperf -f k -H 192.168.0.102 -l 60 &
> 
> which gave -
> 
> Recv   Send    Send
> Socket Socket  Message  Elapsed
> Size   Size    Size     Time     Throughput
> bytes  bytes   bytes    secs.    10^3bits/sec
> 
>   43689  16384  16384    60.09    1884.66
> Recv   Send    Send
> Socket Socket  Message  Elapsed
> Size   Size    Size     Time     Throughput
> bytes  bytes   bytes    secs.    10^3bits/sec
> 
>   43689  16384  16384    60.22      51.58


Did the exact same test and it's working (10kbits for the low prio was the
only diff) !!

That's with pfifo ->

TCP STREAM TEST to 10.0.1.228
Recv   Send    Send
Socket Socket  Message  Elapsed
Size   Size    Size     Time     Throughput
bytes  bytes   bytes    secs.    10^3bits/sec

 87380   8192   8192    63.00      35.37


TCP STREAM TEST to 10.0.1.227
Recv   Send    Send
Socket Socket  Message  Elapsed
Size   Size    Size     Time     Throughput
bytes  bytes   bytes    secs.    10^3bits/sec

 87380   8192   8192    60.00    1897.27


That's with sfq ->

TCP STREAM TEST to 10.0.1.227
Recv   Send    Send
Socket Socket  Message  Elapsed
Size   Size    Size     Time     Throughput
bytes  bytes   bytes    secs.    10^3bits/sec

 87380   8192   8192    60.00    1918.02


TCP STREAM TEST to 10.0.1.228
Recv   Send    Send
Socket Socket  Message  Elapsed
Size   Size    Size     Time     Throughput
bytes  bytes   bytes    secs.    10^3bits/sec

 87380   8192   8192    60.00      28.40


10.0.1.228 was the lowprio IP.
So everything worked fine for the test...!!!

After that I tested with my original script, I just changed the netfilter
rules to classify packets with the same rules I used for the netperfs test
and I had the same good results... So it must be something with my 2m line
or with the traffic type I shape.

I quite don't understand the concept of putting the rate of the line lower
than it's true value, can you explain me this and do the excess bandwith is
lost ? What is a good value for a 2m line (SDSL) ?

I'll try tomorrow to have an host outside with netperf so I can test the
line itself.


Again thanks for your time and help Andy.

 


_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux