|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--FindCentroid
FindCentroid.java Jim Gast, jgast@cs.wisc.edu FindCentroid finds the Internet AS numbers that can reach 90% of the AS numbers in use in 3 hops or less. It reads the BGP Table to discover which ASNs connect to which other ASNs. (This is not entirely an accurate way to tell if two ASNs are connected, but it is easy and public BGP tables are easy to get from Oregon Route-Views.) FindCentroid is the main class which gets input from BGP routing tables and starts everything out. USAGE: java FindCentroid bgpTableFile hopLimit densityPct
Field Summary | |
static ASN[] |
asnList
|
static int[] |
asnSeen
|
static java.util.TreeMap |
hash
|
Constructor Summary | |
FindCentroid()
|
Method Summary | |
static int |
calcDensityWithinNHops(int base,
int hopLimit)
prints the number of ASes in the cloud within hopLimit hops of AS base. |
static int |
countASNumbersSeen()
|
static void |
incrCount(int from,
int to)
|
static void |
main(java.lang.String[] args)
main method reads BGP table and counts distance to BB from every AS |
static void |
readRoutingFile(BGPReader bReader)
readRoutingFile reads lines of a BGP routing file until EOF. |
static void |
readRoutingLine(java.lang.String str)
readRoutingLine finds all pairs of ASNumbers whether on best paths or worst. |
static void |
showDensitiesWithinNHops(int hopLimit,
int densityThreshold)
|
static void |
sortNeighbors()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.util.TreeMap hash
public static int[] asnSeen
public static ASN[] asnList
Constructor Detail |
public FindCentroid()
Method Detail |
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
public static void readRoutingFile(BGPReader bReader)
public static void readRoutingLine(java.lang.String str)
public static void showDensitiesWithinNHops(int hopLimit, int densityThreshold)
public static int calcDensityWithinNHops(int base, int hopLimit)
public static void sortNeighbors()
public static void incrCount(int from, int to)
public static int countASNumbersSeen()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |