As I see it, RRCs collect best path views from each of its peers. (TBH, I didn't check if BGP sessions from RRC to its peers are multipath enabled, but a quick check on several data points showed only one as path per peer). So all entries that you receive with that RIPEstat resource query are best paths. Just that they are best paths for the RRC's peer ASN in that location. You shouldn't care what would be the RRC's best path algorithm result since it is not forwarding and no customers behind it's ASN. Hope the thoughts help :) -- -- -- BR, Vainius Dangovas On Sun, Mar 19, 2023 at 6:53 PM Ehsan Ghazizadeh <ehsan.ccsp@gmail.com> wrote:
Yeah exactly, ripe stat returns all paths to that specific prefix not the best path, (its multipath in bgp perspective). I need to know which as-path is being chosen from different location of Europe and America to my asn, it's for tshoot purposes. We are a cloud provider and sometimes bgp changes cause performance issues (it can happen only to some of prefixes and can't be easily discovered by our monitoring system), I want to be informed about bgp path changes before customers sense its affect. I currently have bgpalerter.
On Sun, Mar 19, 2023, 7:01 PM Vainius Dangovas <Vainius.Dangovas@smn.lt> wrote:
Hi, Ehsan,
Have You tried RIPEstat?
I guess this data would be useful for Your use: https://stat.ripe.net/data/looking-glass/data.json?resource=1.1.1.0/24
As I understand RRCs get updates only about the best path (from the RRC peer’s point of view) about the prefix in question.
This call is also used in https://stat.ripe.net/app/launchpad/
Pagarbiai / Best regards,
*Vainius Dangovas*
Mobile: +370 680 80876
vainius.dangovas@smn.lt
*From: *routing-wg <routing-wg-bounces@ripe.net> on behalf of Ehsan Ghazizadeh <ehsan.ccsp@gmail.com> *Date: *2023 March 19, Sunday 09:20 *To: *routing-wg <routing-wg@ripe.net> *Subject: *[routing-wg] BGP Best Path data from different RIS
Hi everyone
I'm trying to write a python script to fetch bgp best path data for my prefixes from different locations. Apparently ripe stat only returns the full routing table not the best path, also connecting via telnet to routeviews routers and parsing bgp commands output is not an ideal method, so I was wondering is there any other method to achieve this (preferably using api)?
Šiame laiške ir bet kokiuose jo prieduose pateikiama informacija yra konfidenciali ir skirta tik tam asmeniui, kuriam ji adresuota. Jei Jūs nesate adresatas, Jūs neturite teisės gautos informacijos bet kokiu būdu naudoti. Jei Jūs per klaidą gavote šį laišką, prašome nedelsiant pranešti jo siuntėjui bei iškart ištrinti šį laišką ir bet kokius jos priedus iš Jūsų sistemų. Informaciją apie asmens duomenų tvarkymą galite perskaityti https://www.smn.lt/duomenu-apsauga-2/. || The information contained in this e-mail and its attachments is confidential and intended only for a person to whom it is addressed. If you are not the intended addressee you may not use this information in any way. If you have received this e-mail in error, please notify the sender and delete all copies of the e-mail and its attachments form your systems immediately. Information about processing of personal data can be found at https://www.smn.lt/duomenu-apsauga-2/.
--
To unsubscribe from this mailing list, get a password reminder, or change your subscription options, please visit: https://lists.ripe.net/mailman/listinfo/routing-wg