More details on purpose is like this:
Normally if I set BGP weight greater than 0 on session ASN02R1 then outgoing connections to ASN400 will be made through ASN02 via ASN200 which is a longer path than via ASN01R1. Nevertheless reply should normally come through ASN01R1 because is the minimal AS path.
But if there's no BGP weight set on ASN02R1 session, then majority of outgoing connections will be made through ASN01R1 because it has a lower ID number considering IP address of peer. This way is not convenient since ASN01 is weaker in terms of bandwidth and reliability.
I need to influence request to be made preferably on different peer if AS path is equal but considering shortest AS Path if there's such variant and I think the only criteria usable would be BGP Origin if it would be available.
BGP Weight is not usable since is higher in priority than AS Path length and if used then switches all connections through a specific peer.
BGP MED is used for comparison between same ASN peers so it's also not usable.
Consider I want to access some oversea website hosted on ASN400.
You do not have the required permissions to view the files attached to this post.