Flemming Frandsen
2006-Jan-10 13:02 UTC
Shaping traffic bound for the NAT''ed networks whithout imq
I''m trying to set up a shaper that can shape the inbound traffic to around 40 subnets, that hang on 3 different interfaces of the router. As Linux can''t do ingress shaping I''m left with having to set up 3 seperate shapers, one for each internal interface. This is not completely optimal as I''ll have to limit each of the 3 interfaces to 1/3 of the total downstream bandwidth of the ADSL, leaving users unhappy with performance and if a user happens to be on the same segment as a leecher then he gets hit, but not everyone else. I''ve thought about using IMQ, but it''s not available in the standard kernel, and I''d really hate to have to reboot the router as it''s inaccessible and any breakdown would piss off the users. I have two questions: 1) I compiled IMQ as a module and inserted it, but I couldn''t "ifconfig imq0 up" or anything else with it, any idea what I might be doing wrong? 2) Is there any alternative to using IMQ to get all the inbound traffic shaped at once? -- Flemming Frandsen, NrVissing.Net administrator.
Andy Furniss
2006-Jan-11 00:45 UTC
Re: Shaping traffic bound for the NAT''ed networks whithout imq
Flemming Frandsen wrote:> I''m trying to set up a shaper that can shape the inbound traffic to around > 40 subnets, that hang on 3 different interfaces of the router. > > As Linux can''t do ingress shaping I''m left with having to set up 3 > seperate shapers, one for each internal interface. > > This is not completely optimal as I''ll have to limit each of the 3 > interfaces to 1/3 of the total downstream bandwidth of the ADSL, leaving > users unhappy with performance and if a user happens to be on the same > segment as a leecher then he gets hit, but not everyone else. > > I''ve thought about using IMQ, but it''s not available in the standard > kernel, and I''d really hate to have to reboot the router as it''s > inaccessible and any breakdown would piss off the users. > > I have two questions: > 1) I compiled IMQ as a module and inserted it, but I couldn''t "ifconfig > imq0 up" or anything else with it, any idea what I might be doing wrong? > > 2) Is there any alternative to using IMQ to get all the inbound traffic > shaped at once?Yes (depending on exact setup/requirements) - it''s just gone in the latest net tree it''s called ifb. http://www.mail-archive.com/netdev%40vger.kernel.org/msg05208.html AIUI if you have a recent kernel you should be able to build it as a stand alone module. Andy.
Flemming Frandsen
2006-Jan-11 12:21 UTC
Re: Shaping traffic bound for the NAT''ed networks whithoutimq
> Yes (depending on exact setup/requirements) - it''s just gone in the > latest net tree it''s called ifb. > > http://www.mail-archive.com/netdev%40vger.kernel.org/msg05208.htmlHmm, this sounds interesting, although it would mean upgrading the kernel to 2.6 on a router that''s hard to get to physically if something goes wrong. I''ll just keep going with 2.4 and the suboptimal shaper until I have access to the serial console on the machine (which means installing a second soekris at the same location. -- Flemming Frandsen, NrVissing.Net administrator.