Last week someone in my localnetwork "abused" from our link, making everything slow... So I want to put the current Linux router as a traffic shaper. The setup is: +--- 128Kbit | "International" Local net --- [Linux router with ] -- ISP -- [magic routers] [transparent www proxy] | +--- 10MBit "National" It happens that 99.99% of the traffic is download of www, so the squid proxy serves it automagically. The problem is that the ISP link is a "dual" contract. 10MBit for "National" traffic (By law in my country, all ISPs must be inter-connected so the national traffic is not so bad). But there is only 128KBit for "International" traffic, and that is managed by the "magic routers" out of my access and control. So I want to distribute the poor "International" traffic fairly in my local network without slowing down the "National" traffic and having no idea of which packet goes through national or International, a priori (maybe I can ask my ISP); and everything pass between the squid proxy. Any ideas? (Besides education). Is just impossible? If I get the "magic routers" tables, can I do something useful ? Aldrin. "So many links, so little time!"
On Wed, Nov 01, 2000 at 02:34:33AM -0300, Aldrin Martoq A. wrote:> The problem is that the ISP link is a "dual" contract. 10MBit for > "National" traffic (By law in my country, all ISPs must be inter-connected > so the national traffic is not so bad). But there is only 128KBit for > "International" traffic, and that is managed by the "magic routers" out of > my access and control.The magic routers are running BGP - see rfc1771, routing traffic to different ASses in different ways, see below.> Any ideas? (Besides education). Is just impossible? > If I get the "magic routers" tables, can I do something useful ?Yes, you can work this out, but it is some work, but it is fun. IP blocks are assigned to Autonomous System numbers. I suspect that chile only has very few ASs - you should be able to work this out. Your mailserver lives in AS11340 (Red Universitaria Nacional), and is connected to the world via AS7004 (CTC Transmisiones Regionales S.A.) and AS1 (BBN Planet), and the BGP configuration makes it very clear that the link to BBN is expensive. In order to shape different kinds of traffic, you need to know what can be routed via AS7004, and what via AS1. I suspect that you can find out which ASses ''peer'' at AS7004 - from then on it is easy to figure out which IP addresses are in those ASses. With those netmasks, you will be able to mark packets, and shape on that mark. Regards, bert hubert -- PowerDNS Versatile DNS Services Trilab The Technology People ''SYN! .. SYN|ACK! .. ACK!'' - the mating call of the internet
On Wed, 1 Nov 2000, bert hubert wrote: [...]> Your mailserver lives in AS11340 (Red Universitaria Nacional), and is > connected to the world via AS7004 (CTC Transmisiones Regionales S.A.) and > AS1 (BBN Planet), and the BGP configuration makes it very clear that the > link to BBN is expensive.Ok, thanks a lot because this setup will be funny. How did you get all that BGP and ASses data? Because the network I''m talking is not .cec.uchile.cl . I''ll interrupt in 1 or 2 weeks, once I learn BGP ;-) Aldrin. "So many links, so little time!"