Using AS-Path attribute to influence routing over multiple regions

0

We have standard approach to influence routing using AS-Path. I could see we are unable to do on AWS and when we have connection homed in different regions. Is there a way we can use AS-Path to influence traffic instead of any other best path selection algorithm?

Imran
已提問 7 個月前檢視次數 363 次
4 個答案
0
已接受的答案

From AWS Doc: When you have multiple virtual interfaces in the same associated Region, you can set the AS_PATH attribute to prioritize which interface AWS uses to route traffic. However, AS_PATH prepending doesn’t work when the Direct Connect connections are in different associated AWS Regions than the VPC. https://docs.aws.amazon.com/directconnect/latest/UserGuide/routing-and-bgp.html#private-routing-policies

However you can use AS-Path as your primary best path selection algorithm firstly by setting equal preference with Local preference BGP communities values e.g. (7200:100) on all the connections(VIFs). Which leads to tie in path selection hence AS-Path can be evaluated as a tie breaker. By also advertising your prefixes with different AS-Path length will influence traffic flow from AWS based on AS-Path.

AWS
已回答 7 個月前
profile picture
專家
已審閱 2 個月前
0

Hi khanakee, So if I correctly understood this is that if I set the same BGP local preference community across all the VIFs, then I can use AS-Path to influence how routing takes place from AWS side. Is that correct?

Imran
已回答 7 個月前
  • Hello Imran, yes that is correct

0

The best practice from AWS when it comes to multi-region traffic engineering is to use communities. This article goes into the same scenario you described https://repost.aws/knowledge-center/direct-connect-bgp-communities also look at https://docs.aws.amazon.com/directconnect/latest/UserGuide/routing-and-bgp.html#local-pref-bgp-communities

AWS
TonyG
已回答 7 個月前
profile picture
專家
已審閱 2 個月前
0

On the multi region with direct connect usage u need to use :

  • Local preference ,
  • bgp communities to influence routing
已回答 5 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南