Skip to contentSkip to conversation

Shaping per type/size of connection

LARTC Arvid Stüwe 2 participants 4 messages Jul 11, 2002 – Jul 14, 2002

lore
Share & tools
lore
#0 lore raw

Hi!
Currently I'm controlling 4 Mbit Connection based on the source and destination ports, so that ftp traffic doesn't clog the line and udp packets and other time critical things (ssh, irc, etc...) get priority.

Normally that works just fine, but two problems remain:

- How do I recognize traffic from non-standard ports? (like a ftp-server on port 1337)

- Big http-transfers still clog the line
I want my users to be able to surf fast. But when they download big files from a webserver this transfer should be slowed down.

Perhaps a way to slow down any connection that exceeds a certain size would solve both problems. Any suggestions, pointers or ideas for a better policy are welcome!

Arvid

Signature · 6 lines
in bunten Bildern wenig Klarheit,
viel Irrtum und ein Fünkchen Wahrheit
	(Johann Wolfgang v. Goethe)
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#1 lore raw
Quoted 2 lines

Hi!
Currently I'm controlling 4 Mbit Connection based on

the source and

Quoted 1 line

destination ports, so that ftp traffic doesn't clog

the line and udp packets

Quoted 1 line

and other time critical things (ssh, irc, etc...) get

priority.

Quoted 2 lines

Normally that works just fine, but two problems

remain:

Quoted 6 lines

- How do I recognize traffic from non-standard ports? (like a ftp-server on port 1337)

- Big http-transfers still clog the line
I want my users to be able to surf fast. But when

they download

Quoted 1 line

big files from a webserver this transfer should be

slowed down.

Quoted 2 lines

Perhaps a way to slow down any connection that

exceeds a certain size would

Quoted 1 line

solve both problems. Any suggestions, pointers or

ideas for a better policy

Quoted 1 line

are welcome!

WFQ seems to do just this, but in lack of any real implementation there is wrr:

http://wipl-wrr.sourceforge.net/

It has the ability to automatically lower the weights of streams with high bandwidth-usage.

---
John Bäckstrand

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#2 lore raw
In reply to Arvid Stüwe
Quoted 6 lines · John Bäckstrand
Quoted 3 lines

Perhaps a way to slow down any connection that exceeds a certain size would solve both problems. Any suggestions, pointers or ideas for a better policy are welcome!

WFQ seems to do just this, but in lack of any real implementation there is wrr:

I just tried it, but it didn't seem to work. At least I could not make out any difference between with or without shaping (same lousy behaviour when one host started too much traffic). The clases DID receive traffic, as far as I can tell from a 'tc -s qdisc'. Perhaps I missed something with the parameters and misconfigured it. :-(

But I managed to crash my router several times (kernel panik) when using the wrr-module.

cu
Arvid

Signature · 6 lines
in bunten Bildern wenig Klarheit,
viel Irrtum und ein Fünkchen Wahrheit
	(Johann Wolfgang v. Goethe)
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#3 lore raw
In reply to Arvid Stüwe
Quoted 2 lines · John Bäckstrand
Quoted 1 line
Quoted 1 line

Perhaps a way to slow down any connection that

exceeds a certain size

Quoted 1 line
Quoted 1 line
Quoted 1 line

would solve both problems. Any suggestions,

pointers or ideas for a

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

better policy are welcome!

WFQ seems to do just this, but in lack of any real implementation there is wrr:

I just tried it, but it didn't seem to work. At least

I could not make out

Quoted 1 line

any difference between with or without shaping (same

lousy behaviour when

Quoted 1 line

one host started too much traffic). The clases DID

receive traffic, as far

Quoted 1 line

as I can tell from a 'tc -s qdisc'. Perhaps I missed

something with the

Quoted 3 lines

parameters and misconfigured it. :-(

But I managed to crash my router several times

(kernel panik) when using the

Quoted 1 line

wrr-module.

Hmm, Ive been using it a day or so with 2 boxes, no problems at all, though I havent been able to test with different amount of traffic if the weighing really works. Which kernel are you using? Did you ask about your problems on the wrr mailinglist?

---
John Bäckstrand

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/