* [LARTC] noprioportsrc
@ 2004-03-29 12:08 Richard
2004-03-29 21:31 ` Richard
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Richard @ 2004-03-29 12:08 UTC (permalink / raw)
To: lartc
I've been trying to get wondershaper 1.1a to let me set NOPRIOPORTSRC, but I
cannot get it to work properly.
If I leave NOPRIOPORTSRC blank, the uplink is limited to what I set it to.
But if I put
NOPRIOPORTSRC="80 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892
6893 6894 6895 6896 6897 6898 6899 6900"
to make my bitorrents and my http server not effect my traffic for gaming and
other stuff, the traffic is no longer limited! I have it set at 400uplink
(on a 600kbps upload) and instead of it locking at ~400kbps upload like it
does when I leave NOPRIOPORTSRC blank, it acts as if there is no traffic
shaping on the line.
To make things more interesting, after running the wondershaper script
(without anything in NOPRIOPORTSRC) I manually tried to issue the command:
tc filter add dev eth0 parent 1: protocol ip prio 15 u32 match ip sport 6881
0xffff flowid 1:30
to try and make port 6881 have lower priority. Before issuing this command,
my upload remains a constant 50kb/s up, and once I hit enter, my upload jumps
up as if the wondershaper is not even there.
Am I doing something wrong? On a side note, Is there an easy way to span
ports instead of manually typing them all out (like 6881-6900)?
Thanks for your time.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LARTC] noprioportsrc
2004-03-29 12:08 [LARTC] noprioportsrc Richard
@ 2004-03-29 21:31 ` Richard
2004-03-29 23:15 ` Damion de Soto
2004-04-11 22:31 ` Andy Furniss
2 siblings, 0 replies; 4+ messages in thread
From: Richard @ 2004-03-29 21:31 UTC (permalink / raw)
To: lartc
On Monday 29 March 2004 11:15 pm, Damion de Soto wrote:
>I've fonud trying to make
> bittorrent behave itself is quite difficult.
> The 3 classes have rates specified as UPLINK, 9*$UPLINK/10 and 8*$UPLINK/10
> This means the sum of the 3 classes is greater than the parent.
> You may want to specify the rates as something lower that add up to UPLINK,
> and then specify the ceil value for each class.
I tried what you had suggested and I was able to get great pings while
uploading using the script!
Now this is the really things get strange. Without doing anything to my
connection or with wondershaper, about after 1 hour of running the script
(and having my bandwith limited to 50kb/s) something changes and I start
uploading at my max again.
Why is this happening?
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LARTC] noprioportsrc
2004-03-29 12:08 [LARTC] noprioportsrc Richard
2004-03-29 21:31 ` Richard
@ 2004-03-29 23:15 ` Damion de Soto
2004-04-11 22:31 ` Andy Furniss
2 siblings, 0 replies; 4+ messages in thread
From: Damion de Soto @ 2004-03-29 23:15 UTC (permalink / raw)
To: lartc
Hi Richard,
> I've been trying to get wondershaper 1.1a to let me set NOPRIOPORTSRC, but I
> cannot get it to work properly.
This may be the same problem i discovered a while ago when I used the wondershaper as
a base for my own rules. I've fonud trying to make bittorrent behave itself is quite
difficult.
The 3 classes have rates specified as UPLINK, 9*$UPLINK/10 and 8*$UPLINK/10
This means the sum of the 3 classes is greater than the parent.
You may want to specify the rates as something lower that add up to UPLINK, and then
specify the ceil value for each class.
> Am I doing something wrong? On a side note, Is there an easy way to span
> ports instead of manually typing them all out (like 6881-6900)?
I use iptables to change the TOS bit of any packets in that range, then make a u32
filter for those TOS bits.
regards,
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Damion de Soto - Software Engineer email: damion@snapgear.com
SnapGear - A CyberGuard Company --- ph: +61 7 3435 2809
| Custom Embedded Solutions fax: +61 7 3891 3630
| and Security Appliances web: http://www.snapgear.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- Free Embedded Linux Distro at http://www.snapgear.org ---
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LARTC] noprioportsrc
2004-03-29 12:08 [LARTC] noprioportsrc Richard
2004-03-29 21:31 ` Richard
2004-03-29 23:15 ` Damion de Soto
@ 2004-04-11 22:31 ` Andy Furniss
2 siblings, 0 replies; 4+ messages in thread
From: Andy Furniss @ 2004-04-11 22:31 UTC (permalink / raw)
To: lartc
Richard wrote:
> On Monday 29 March 2004 11:15 pm, Damion de Soto wrote:
>
>
>>I've fonud trying to make
>>bittorrent behave itself is quite difficult.
>>The 3 classes have rates specified as UPLINK, 9*$UPLINK/10 and 8*$UPLINK/10
>>This means the sum of the 3 classes is greater than the parent.
>>You may want to specify the rates as something lower that add up to UPLINK,
>>and then specify the ceil value for each class.
>
>
> I tried what you had suggested and I was able to get great pings while
> uploading using the script!
>
> Now this is the really things get strange. Without doing anything to my
> connection or with wondershaper, about after 1 hour of running the script
> (and having my bandwith limited to 50kb/s) something changes and I start
> uploading at my max again.
>
> Why is this happening?
I don't think marking those BT ports will catch all BT connections - BT
will work without opening ports. I think you can mark with one of the
P2P marking projects on sf.net.
Andy.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-04-11 22:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-29 12:08 [LARTC] noprioportsrc Richard
2004-03-29 21:31 ` Richard
2004-03-29 23:15 ` Damion de Soto
2004-04-11 22:31 ` Andy Furniss
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox