|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.ac.ulg.montefiore.run.totem.trafficMatrix.generation.POPPOPTrafficMatrixGeneration
public class POPPOPTrafficMatrixGeneration
This class generates a POP-POP XML intra-domain traffic matrix from an XML interdomain traffic matrix. In an XML inter-domain traffic matrix, we have for each node some destinations prefixes for which we need to know the corresponding egress node. For this, we replay BGP dumps in C-BGP.
Creation date: 04-03-2005
| Field Summary | |
|---|---|
double |
notRoutedTraffic
|
| Constructor Summary | |
|---|---|
POPPOPTrafficMatrixGeneration(Domain domain)
|
|
| Method Summary | |
|---|---|
TrafficMatrix |
generatePOPPOPTrafficMatrix(java.lang.String trafficMatrixFileName)
This method can be used to generate an XML traffic matrix from a text-file traffic matrix. |
TrafficMatrix |
generateTrafficMatrix(TrafficMatrix tm,
java.util.HashMap<java.lang.String,java.lang.String> clusters,
java.lang.String netflowXMLTrafficMatrixFileName)
This methods takes a CBGP instance to which all messages (dumps & updates) have been passed and generates an intra-domain traffic matrix from an interdomain XML traffic matrix. |
TrafficMatrix |
generateTrafficMatrix(TrafficMatrix tm,
java.util.HashMap<java.lang.String,java.lang.String> clusters,
TrafficMatrixFileType interTm)
This methods takes a CBGP instance to which all messages (dumps & updates) have been passed and generates an intra-domain traffic matrix from an interdomain XML traffic matrix. |
Domain |
getDomain()
|
void |
loadDump(java.lang.String BGPbaseDirectory,
java.lang.String BGPdirFileName,
java.util.Collection<java.lang.String> prefixes)
This method loads prefixes from BGP dumps into an existing CBGP instance. |
void |
loadUpdates(java.lang.String updatesBaseDirectory,
java.lang.String YYYYMMDDHHMM)
This methods loads all the updates corresponding to a certain time interval into a specified CBGP instance. |
java.util.HashMap<java.lang.String,java.lang.String> |
readCluster(java.lang.String clusterFileName,
java.lang.String BGPbaseDirectory,
java.lang.String BGPdirFileName)
This method reads a cluster file resulting from bgp- sum2.pl and loads all cluster prefixes in an existing C-BGP instance. |
void |
simRun()
Run cbgp. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public double notRoutedTraffic
| Constructor Detail |
|---|
public POPPOPTrafficMatrixGeneration(Domain domain)
| Method Detail |
|---|
public void simRun()
throws RoutingException
RoutingException
public void loadDump(java.lang.String BGPbaseDirectory,
java.lang.String BGPdirFileName,
java.util.Collection<java.lang.String> prefixes)
throws InvalidFileException
BGPbaseDirectory - the directories containing dumpsBGPdirFileName - the directory and filename of the dumps found in BGPbaseDirectory/id/ or BGPbaseDirectory/rid/prefixes - the list of prefixes that must be loaded. If null, all prefixes will be loaded.
InvalidFileException - If the directories are not named by id or by rid
public TrafficMatrix generatePOPPOPTrafficMatrix(java.lang.String trafficMatrixFileName)
throws java.io.IOException
Typical format:
src_node dst_node flow_size
where src_node and dst_node must be IP addresses corresponding to RIDs in the XML topology format.
trafficMatrixFileName -
java.io.IOException
public java.util.HashMap<java.lang.String,java.lang.String> readCluster(java.lang.String clusterFileName,
java.lang.String BGPbaseDirectory,
java.lang.String BGPdirFileName)
throws java.io.IOException,
InvalidFileException
clusterFileName - The name of the clustering file resulting from the perl script.BGPbaseDirectory - BGPdirFileName -
java.io.IOException - If an IOException occurs when reading the cluster file.
InvalidFileException - If the directories are not named by id or by rid
public TrafficMatrix generateTrafficMatrix(TrafficMatrix tm,
java.util.HashMap<java.lang.String,java.lang.String> clusters,
TrafficMatrixFileType interTm)
throws InvalidDomainException,
InvalidTrafficMatrixException
tm - this parameter can be an existing traffic matrix to which you want to add new traffic (for example to generate a traffic matrix for two hours...)clusters - an hashMap mapping a prefix to a cluster (which has been advertised in C-BGP)interTm - the inter-domain traffic matrix
InvalidDomainException
InvalidTrafficMatrixException
public TrafficMatrix generateTrafficMatrix(TrafficMatrix tm,
java.util.HashMap<java.lang.String,java.lang.String> clusters,
java.lang.String netflowXMLTrafficMatrixFileName)
throws InvalidDomainException,
InvalidTrafficMatrixException
tm - this parameter can be an existing traffic matrix to which you want to add new traffic (for example to generate a traffic matrix for two hours...)clusters - an hashMap mapping a prefix to a cluster (which has been advertised in C-BGP)netflowXMLTrafficMatrixFileName - the inter-domain XML traffic matrix generated using NetFlow
InvalidDomainException
InvalidTrafficMatrixException
public void loadUpdates(java.lang.String updatesBaseDirectory,
java.lang.String YYYYMMDDHHMM)
throws java.lang.Exception
updatesBaseDirectory - the base directory containing updates, then stored in subdirectories according routers namesYYYYMMDDHHMM - updates should be stored in files updatesYYYYMMDDHHMM
java.lang.Exceptionpublic Domain getDomain()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||