|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--MakePairs
MakePairs.java Jim Gast, jgast@cs.wisc.edu MakePairs takes command-line arguments. See: usage() This program extracts all ASN neighbor pairs from a BGP table The output can be redirected to a file (typically ASNNeighbors.txt). ASNNeighbor Pairs file format: Each line consists of the lower ASN and the higher ASN in any BGP entry AS701 AS7018 The input file is expected to already be sorted by IP address. The output file should be sorted and run through uniq to eliminate duplicates MakePairs is the main class which gets input from BGP routing tables and starts everything out.
Field Summary | |
static java.text.DecimalFormat |
commas
|
static int |
debugLevel
drives debugging output debugLevel = 5 traces actions in methods 4 logs method entry / exit 3 dumps structures 2 displays internal statistics 1 dumps final statistics |
static int |
linesRead
|
static int |
pairsWritten
|
Constructor Summary | |
MakePairs()
|
Method Summary | |
static void |
main(java.lang.String[] args)
main method starts off with empty tables and builds the mapping of IP addresses to AS numbers |
static void |
readRoutingFile(java.io.InputStream sysIn)
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int linesRead
public static int pairsWritten
public static int debugLevel
public static java.text.DecimalFormat commas
Constructor Detail |
public MakePairs()
Method Detail |
public static void main(java.lang.String[] args) throws java.io.IOException
args
- options bgpRoutingTable
java.io.IOException
public static void readRoutingFile(java.io.InputStream sysIn)
public static void readRoutingLine(java.lang.String str)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |