After seeing that post about directing traffic to various upstream links based, basically, on the next-hop from an ISP's router I was wondering: Is it possible to queue packets via realm? As I seem to recall, it should be possible to configure GATED as an import only BGP peer with your provider, then create a filter which causes GATED to export all the prefixes which do not pass through the ASN on the 'international' side of your provider. You would make sure all these prefixes are tagged with a specific realm number. If it's possible to queue via realm (and my assumptions about GATED are not incorrect), then this would make a more robust solution then figuring out what prefixes are on the national network and creating rules for each one of them.