[AusNOG] Server BW limits

Don Gould don at bowenvale.co.nz
Tue Sep 11 15:21:36 EST 2012


See this really was why I asked for a code sample :)

I'll be on the list to be a code tester... php please? ;)

D


On 11/09/2012 2:58 a.m., Glen Turner wrote:
> [apologies for only now catching up reading ausnog]
>
> On 2012-08-27 Don Gould wrote:
>> Code samples anyone?
>
> It's simple enough on a Linux host (and I can't imagine that it's much
> harder on other operating systems).
>
> Use Quagga to take a full BGP feed. Set up an incoming route-map that
> applies a Linux realm to the incoming routes, one realm per class of
> traffic. You'll need the quagga+realm patch for this.
>
> Use "tc" to configure one outgoing queue per class of traffic, with the
> selection criteria for queue entry being the realm of route covering the
> destination address. For classes where you are trying to control
> throughput then configure traffic shaping (where you are more interested
> in relative performance use queue length and drop preference). If your
> pipe size doesn't match your host's interface speed then you may need to
> configure a hierarchy of queues, and Linux does this fine.
>
> An application can query the Linux forwarding table via the "netlink
> socket" API and use the returned realm value to do something
> application-specific, such as explain that the traffic is being shaped
> and they should go elsewhere for better perfomance. You don't have to
> pull the entire routing table into the application, as the API will
> return the matching route entry for a particular destination address.
> For that matter, if you think about what the realm of the default route
> should be then you don't need to install the entire BGP routing table
> into the kernel's forwarding table.
>
> Best wishes,
> -glen
> _______________________________________________
> AusNOG mailing list
> AusNOG at lists.ausnog.net
> http://lists.ausnog.net/mailman/listinfo/ausnog
>

-- 
Don Gould
31 Acheson Ave
Mairehau
Christchurch, New Zealand
Ph: + 64 3 348 7235
Mobile: + 64 21 114 0699




More information about the AusNOG mailing list