Skip to contentSkip to conversation

Is there a way to divide one link in to two ?

LARTC Indunil Jayasooriya 2 participants 2 messages Sep 21, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

I want to know is there a way to divide a link in to two?

Below is what I need?

I have a 64 k link. I want to reserve 32 k for mail and 32 k for web .

That means dividing 64 k link in to two for mail and web.

Is it possible in Linux?

Can iproute or iptables haddle this situation ?

or can any other pkg do it?

Signature · 2 lines
Thank you
Indunil Jayasooriya

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#1 lore raw
Quoted 13 lines · Indunil Jayasooriya

Hi,

I want to know is there a way to divide a link in to two?

Below is what I need?

I have a 64 k link. I want to reserve 32 k for mail and 32 k for web .

That means dividing 64 k link in to two for mail and web.

Is it possible in Linux?

Quoted 7 lines

Can iproute or iptables haddle this situation ?

or can any other pkg do it?

--
Thank you
Indunil Jayasooriya

Yes. I'd use HTB and "filter match" port 80 and port 25. You can't divide exactly half because there will be unshaped ICMP, UDP and ARP, but those don't usually require a lot of bandwidth so just create a default class for those that has a small rate and ceil, then subtract the default rate from your 64 k and allocate the remainder between mail and web. Don't forget that the sum of rates cannot exceed (about) 95 % of 64 k.

Also look for "policy routing" because it discusses alternatives. There is lots of good information.
--
gypsy
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc