<div dir="ltr">Hi Ondrej,<div><br></div><div><br><div> as.path.len = 2 as.path.len = 1</div><div>Upstream1 ---- Node1 ---(10ms) Node2 --(20ms)-- Upstream2</div><div> |</div><div> Node3</div><div><br></div><div><br></div><div>For this network situation, I need to have node 3 go to node 2 and connect to the internet through upstream 1. Even if its as.path is longer. Therefore, a parameter with a priority greater than as.path.len is required to achieve this.<br></div><div><br></div><div>Best,<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><b>Brandon Zhi</b><br></div><div>HUIZE LTD</div><div><a href="https://huize.asia/" target="_blank"><span>www.huize.asia</span> </a><span style="color:rgb(0,0,0);font-family:Helvetica,sans-serif;font-size:10.6667px">| </span><a href="https://www.ixp.su/" target="_blank"><span>www.ixp.su</span></a><span style="color:rgb(0,0,0);font-family:Helvetica,sans-serif;font-size:10.6667px"> | Twitter</span></div><div><img src="https://ci3.googleusercontent.com/mail-sig/AIorK4w5mVhfW4gNpNNG4wjzSr6YXLPGstLI3_79RkgqnXaG2nuFEB1nkGeXOqUOO3ma96TcEVR3iaA" width="200" height="43"><br></div><div>This e-mail and any attachments or any reproduction of this e-mail in whatever manner are confidential and for the use of the addressee(s) only. HUIZE LTD can’t take any liability and guarantee of the text of the email message and virus.</div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 10 Oct 2023 at 21:43, Ondrej Zajicek <<a href="mailto:santiago@crfreenet.org">santiago@crfreenet.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Oct 09, 2023 at 11:29:33PM +0800, Brandon Zhi wrote:<br>
> Hi all,<br>
> <br>
> I plan to use bgp_aigp instead of bgp_med to find the optimal route based<br>
> on incremental pings per node. For example, if the delay between one node<br>
> and another node is 40, then bgp_aigp increases by 40 after passing this<br>
> ibgp.<br>
> <br>
> void bgp_aigp [O]<br>
> This attribute contains accumulated IGP metric, which is a total<br>
> distance to the destination through multiple autonomous systems.<br>
> Currently, the attribute is not accessible from filters.<br>
> <br>
> But it seems I can't modify this value?<br>
<br>
Hi<br>
<br>
You cannot modify bgp_aigp - total distance, but you can modify per-hop<br>
distance, which is added to it automatically in each (inter-AS) step.<br>
<br>
It is either regular IGP metric (e.g. the attribute 'ospf_metric1' in<br>
case of OSPF), or manually configured one (the attribute 'igp_metric'),<br>
or configured cost of inter-AS link [0].<br>
<br>
[0] <a href="https://bird.network.cz/?get_doc&v=20&f=bird-6.html#bgp-cost" rel="noreferrer" target="_blank">https://bird.network.cz/?get_doc&v=20&f=bird-6.html#bgp-cost</a><br>
<br>
I think that using bgp_aigp is the right tool for your use case, but<br>
details depend on specific topology of your confederation - whether each<br>
internal AS in the confederation is nontrivial network with IGP, flat<br>
network, or just one router.<br>
<br>
-- <br>
Elen sila lumenn' omentielvo<br>
<br>
Ondrej 'Santiago' Zajicek (email: <a href="mailto:santiago@crfreenet.org" target="_blank">santiago@crfreenet.org</a>)<br>
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, <a href="http://wwwkeys.pgp.net" rel="noreferrer" target="_blank">wwwkeys.pgp.net</a>)<br>
"To err is human -- to blame it on a computer is even more so."<br>
</blockquote></div>