|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--MakeBBASTree
MakeBBASTree.java Jim Gast, jgast@cs.wisc.edu MakeBBASTree constructs a tree of Autonomous Systems based on assigning a set of BackBone nodes. The array bbNodes contains the list of ASNs that can see 90% of the Internet within 3 hops. See MakeBBASTree.loadBBNodes(). (AUGMENTED LIST added Mar 15, 2002 based on traceroutes - jgast) This program computes the distance to the backbone for all ASNs The output can be redirected to a file (typically BBDist.txt) MakeBBASTree is the main class which gets input from BGP routing tables and starts everything out. USAGE: java MakeBBASTree bgpTable
Field Summary | |
static ASN[] |
asnList
|
static int[] |
asnSeen
|
static int[] |
bbDist
|
static java.lang.String |
bgpFile
|
static int |
CLUSTERING_PASSES
|
static java.util.TreeMap |
hash
|
static int[] |
latitude
|
static int[] |
longitude
|
static java.lang.String[] |
name
|
static int |
NOT_REACHED
|
Constructor Summary | |
MakeBBASTree()
|
Method Summary | |
static void |
computeBBDist()
|
static void |
findParents()
|
static void |
findUphillParents()
choose the uphill node that has the most neighbors in common to be the parent of each node. |
static void |
incrCount(int from,
int to)
|
static void |
loadBBNodes()
|
static void |
loadNamesFromOld(java.lang.String filename)
fill in the names and longitudes of the ASTree from an old ASTree.txt file. |
static void |
main(java.lang.String[] args)
main method reads BGP table and counts distance to BB from every AS |
static void |
printPairCounts()
|
static void |
printPairDistances()
|
static void |
printUniCounts()
|
static void |
readRoutingFile(BGPReader bReader)
readRoutingFile reads lines of a BGP routing file until EOF. |
static void |
readRoutingLine(java.lang.String str,
IPRange dest)
readRoutingLine finds all pairs of ASNumbers whether on best paths or worst. |
static void |
showAncestries()
|
static void |
showClustering()
|
static void |
showClustering(int oneAS)
|
static void |
sortNeighbors()
|
static void |
writeASTree()
|
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
public static java.lang.String[] name
public static int[] longitude
public static int[] latitude
public static int[] bbDist
public static java.lang.String bgpFile
public static final int NOT_REACHED
public static final int CLUSTERING_PASSES
Constructor Detail |
public MakeBBASTree()
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, IPRange dest)
public static void printPairCounts()
public static void printPairDistances()
public static void findParents()
public static void findUphillParents()
public static void showClustering()
public static void showClustering(int oneAS)
public static void showAncestries()
public static void sortNeighbors()
public static void printUniCounts()
public static void incrCount(int from, int to)
public static void loadNamesFromOld(java.lang.String filename)
public static void loadBBNodes()
public static void computeBBDist()
public static void writeASTree()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |