Skip to contentSkip to conversation

adding ingress and egress

LARTC Arvid Stuewe 2 participants 2 messages Apr 12, 2002 – Apr 13, 2002

lore
Share & tools
lore
#0 lore raw

Hi!

I'm trying to shape my traffic based on the sum of in- and outgoing traffic, but haven't been able to find any hints in the HOWTO.

What I want is, that the sum of in- and outgoing traffic does not exceed a given limit, but that both can borrow traffic. For example when there is no incoming traffic, outgoing traffic may use all bandwidth, but when when there is more incoming traffic, outgoing should stay below a limit. (just like the webserver and smtp example from the CBQ-Chapter, but either with to interfaces or with ingress and egress bounded together)

I was already considering writing a script that checks the current traffic total and then adjusts the numbers in the qdiscs accordingly, but I think it would be better if I could do it with iproute2 alone, but I just can't figure out how.

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

#1 lore raw

If you use IMQ you can should be able to send all incoming/outgoing packets to the same egress qdisc.You can use HTB with two classes below root qdisc, one for incoming packets and one for outgoing packets. Just a thought but well worth trying.

There will surly be problems though and some finetuning.
Can he use iptables to separate the incoming/outgoing packets from the IMQ device?

I don't even know if all steps are solvable with routing and filtering... anyone?

/Torgil

Quoted 3 lines

Hi!

I'm trying to shape my traffic based on the sum of in- and outgoing

traffic,

Quoted 4 lines

but haven't been able to find any hints in the HOWTO.

What I want is, that the sum of in- and outgoing traffic does not exceed a given limit, but that both can borrow traffic. For example when there is

no

Quoted 3 lines

incoming traffic, outgoing traffic may use all bandwidth, but when when there is more incoming traffic, outgoing should stay below a limit. (just like the webserver and smtp example from the CBQ-Chapter, but either with

to

Quoted 4 lines

interfaces or with ingress and egress bounded together)

I was already considering writing a script that checks the current traffic total and then adjusts the numbers in the qdiscs accordingly, but I think

it

Quoted 9 lines

would be better if I could do it with iproute2 alone, but I just can't figure out how.

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

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