[90019] in North American Network Operators' Group

home help back first fref pref prev next nref lref last post

Re: Determine difference between 2 BGP feeds

daemon@ATHENA.MIT.EDU (Bill Nash)
Tue Apr 18 17:02:43 2006

Date: Tue, 18 Apr 2006 17:01:29 -0400 (EDT)
From: Bill Nash <billn@odyssey.billn.net>
To: "Marco d'Itri" <md@Linux.IT>
Cc: Scott Tuc Ellentuch at T-B-O-H <ml@t-b-o-h.net>, nanog@merit.edu
In-Reply-To: <20060418204448.GA21511@wonderland.linux.it>
Errors-To: owner-nanog@merit.edu




Were I faced with this reporting equirement on an on-going basis, I'd 
suggest establishing a read-only BGP peer with both devices and comparing 
directly. I've got a perl BGP peering daemon that feeds and maintains a 
mirror of the BGP routing table into SQL, applying updates and withdrawals 
as they come in. Setting up something similar, and adding some additional 
metrics to keep entries unique by peer source would facilitate your end 
goal with simple SQL grouping mechanics.

- billn

On Tue, 18 Apr 2006, Marco d'Itri wrote:

>
> On Apr 18, Scott Tuc Ellentuch at T-B-O-H <ml@t-b-o-h.net> wrote:
>
>> 	Is there a utility that I can use that will pull the
>> routes off each router (Foundry preferred), and then compare
>> them as best it can to see why there is such a difference?
> I have one, but it's cisco-specific:
>
> http://www.bofh.it/~md/software/cisco-tools-0.2.tgz (the dumppeers script)
>
> Then you can easily find the missing routes with commands like:
>
> awk '{print $1}' < ../routes/1.2.3.4 | sort > ROUTER1
> awk '{print $1}' < ../routes/1.2.3.5 | sort > ROUTER2
> comm -23 ROUTER1 ROUTER2 > MISSING2
>
> -- 
> ciao,
> Marco
>

home help back first fref pref prev next nref lref last post