riswhois: reporting total number of ris-peers
Andrzej Adam Filip anfi at poczta.onet.pl
Mon Aug 1 15:03:20 CEST 2005
Rene Wilhelm wrote:
>
> On Mon, 1 Aug 2005, Andrzej Adam Filip wrote:
>
>
>>Rene Wilhelm wrote:
>>
>>>It's an interesting suggestion, but the number is not easily extracted
>>>from the internal data structures build by riswhois server today. We have
>>>to think how the riswhois server could get statistics on all rispeers
>>>(total # of peers, number of fullfeed peers, IPv6 peers) automatically
>>>from the collected data. Once this is clear we'll know how much coding
>>>will be involved and how long it will take to implement.
>>
>>What do you think about providing "max ris-peers per IPv4|IPv6 route" hint
>>in riswhois replies? [I think it will be easier to compute]
>
>
> I don't quite understand what you mean with 'max ris-peers per route'
> Could you given an example?
Sorry for lack of necessary precision.
Current format of data in riswhoisdump.IPv4.gz and riswhoisdump.IPv6.gz is
as follows:
% Format: <origin> <tab> <prefix> <tab> <seen by #rispeers>
I would like riswhois report (somewhere in the header comments) maximum
value of "seen by #rispeers" ("num-rispeers:" in riwhois terminology) in
current data set.
It would make client aware about number of rispeers seeing route with the
best "visibility".
Based on todays dumps (2005-08-01T10:03+0000) it is:
89 for IPv4 routes
28 for IPv6 routes
I used the following scriplet:
zcat riswhoisdump.IPv4.gz | perl -nae '
next if /^%/;
$MAX=$F[2] if $F[2]>$MAX;
END {print $MAX}
'
--
Andrzej [en:Andrew] Adam Filip anfi at priv.onet.pl anfi at xl.wp.pl
All that is necessary for the triumph of evil is that good men do nothing
-- Edmund Burke (1729-1797)
