Shaping and squid question
List
Out of interest, I use transparent squid proxies for caching websites, and I shape the clients that browse the net, this all works perfectly so no questions in this regard...
CLIENT <--- eth0 ----> SQUID <----- ppp0 -----> NET
What I just realised was that all egress traffic on eth0 gets shaped, squid gets data from ppp0 and hence is not shaped. Does this mean that squid recieves the data at full speed and then struggles to pass the data to the client who is shaped, thus becoming the bottle neck?
Just wondering if I should apply some ingress shaping specifically for squid, to prevent squid from hogging all the bandwidth while downloading a large file...
Thanks in advance
Signature · 7 lines
Kenneth Kalmer [email protected] http://opensourcery.blogspot.com _______________________________________________ LARTC mailing list [email protected] http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 3 lines · Kenneth Kalmer
Does this mean that squid recieves the data at full speed and then struggles to pass the data to the client who is shaped, thus becoming the bottle neck?
If you shape everything on eth0 down to dialup speeds, including pure LAN traffic, then the answer is yes, you have an unnecessary bottleneck there, because the traffic caused by squid on ppp0 is not shaped at all.
I'm assuming that squid traffic looks like locally generated traffic to iptables/QoS. I don't really use squid, so I can't check.
HTH
Andreas
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 11 lines · Andreas Klauer
Quoted 3 lines · Kenneth Kalmer
Does this mean that squid recieves the data at full speed and then struggles to pass the data to the client who is shaped, thus becoming the bottle neck?
If you shape everything on eth0 down to dialup speeds, including pure LAN traffic, then the answer is yes, you have an unnecessary bottleneck there, because the traffic caused by squid on ppp0 is not shaped at all.
I'm assuming that squid traffic looks like locally generated traffic to iptables/QoS. I don't really use squid, so I can't check.
Though so. squid traffic does look like locally generated traffic for the shaping, but I shape by marking packets so squid's return data to the client is also properly marked and shaped together with the other protocols not handled by the transparent squid...
Here comes my first experiences with IMQ...
Thanks for the confirmation!
Quoted 8 lines
HTH
Andreas
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Signature · 7 lines
Kenneth Kalmer [email protected] http://opensourcery.blogspot.com _______________________________________________ LARTC mailing list [email protected] http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc