[Coral-dev] Incorrect masklen.

Sharad Chandra sharadc at in.niksun.com
Mon Feb 7 02:35:26 PST 2011


 ,---- [Ryan Koga wrote:]
| On 2/4/11 10:42 PM, Sharad Chandra wrote:
| > I installed coral-3.8.6 and noticed incorrect masklen in generated file
| > from "parse_bgp_dump -g".
| >
| > <skip>
| > 12.120.214.0    24      17224
| > 12.127.255.255  3212    7018<<<-----------------here
| > 12.128.0.0      9       7018
| > <skip>
| >
| > I tried to debug the script and figure out that It is happening because
| > of separator missing between "Network" and "Next Hop" in database
| > http://archive.routeviews.org/oix-route-views/2011.02/oix-full-snapshot-l
| >atest.dat.bz2
| >
| > Note in 2nd row, below
| >
| > *  12.120.214.0/24  95.140.80.254            0      0      0 31500 3549
| > 7018 17224 i
| > *  12.127.255.255/3212.0.1.63                0      0      0 7018
| > i<----here *  12.128.0.0/9     62.72.136.2              0      0      0
| > 5413 1299 7018 i
| >
| > and hence subroutine ParseBGPDump::parse_table_line is not able to
| > successfully extract masklen.
|
| You are absolutely correct; this is a bug we noticed when RouteViews
| made some changes to their output format.  The attached patch to
| ParseBGPDump.pm will hopefully fix the problem.  Let us know if it helps
| (or more importantly, if it doesn't).

Hi Ryan,Coral,

Thanks a lot. Yes it helps.

I am also trying to understand why is there a list of "origin AS" for some 
network instead of just one AS number. eg

8.27.160.0      21      {6298,11588,12989,22773}

I understand it is the last in bgp routing table dump.
*  8.27.160.0/21    85.114.0.217             0      0      0 8492 9002 3356 
13550 {6298,11588,12989,22773} i

'whois' gives another number as AS, appeared before in the above line but not 
the curly bracket.

[~]$ whois -h whois.cymru.com " -w 8.27.160.0/21"
AS      | IP               | AS Name
3356    | 8.27.160.0       | LEVEL3 Level 3 Communications

Thanks,
Sharad Chandra



More information about the Coral-dev mailing list