be.ac.ulg.montefiore.run.totem.trafficMatrix.generation
Class InterDomainTrafficMatrixGeneration

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.trafficMatrix.generation.InterDomainTrafficMatrixGeneration

public class InterDomainTrafficMatrixGeneration
extends java.lang.Object

This class provides inter-domain traffic matrix generation from NetFlow data

Creation date: 02/03/2005

Author:
Olivier Delcourt (delcourt@run.montefiore.ulg.ac.be), Simon Balon (balon@run.montefiore.ulg.ac.be)

Constructor Summary
InterDomainTrafficMatrixGeneration(Domain domain)
           
InterDomainTrafficMatrixGeneration(Domain domain, int minutes, int samplingRate)
           
 
Method Summary
 TrafficMatrixFile generateXMLTrafficMatrixfromNetFlow(java.lang.String NETFLOWbaseDirectory, java.lang.String NETFLOWdirFileName, java.lang.String[] suffixes)
          This function reads NetFlow aggregated data and stores them in one XML inter-domain traffic matrix file.
 TrafficMatrixFile generateXMLTrafficMatrixfromNetFlow(java.lang.String NETFLOWbaseDirectory, java.lang.String NETFLOWdirFileName, java.lang.String[] suffixes, java.lang.String XMLTrafficMatrixFileName)
          This function reads NetFlow aggregated data and stores them in one XML inter-domain traffic matrix file.
 Domain getDomain()
           
 void setSamplingParams(int minutes, int samplingRate)
          Use samping rate and minutes to convert the data from netflow.
 void useRaw()
          If raw is true, sampling rate and minutes won't be used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterDomainTrafficMatrixGeneration

public InterDomainTrafficMatrixGeneration(Domain domain)

InterDomainTrafficMatrixGeneration

public InterDomainTrafficMatrixGeneration(Domain domain,
                                          int minutes,
                                          int samplingRate)
Method Detail

useRaw

public void useRaw()
If raw is true, sampling rate and minutes won't be used. Data will be in bytes per period. see setSamplingParams(int, int) if you want to use sampling rate and minutes.


setSamplingParams

public void setSamplingParams(int minutes,
                              int samplingRate)
Use samping rate and minutes to convert the data from netflow.

Parameters:
minutes -
samplingRate -

getDomain

public Domain getDomain()

generateXMLTrafficMatrixfromNetFlow

public TrafficMatrixFile generateXMLTrafficMatrixfromNetFlow(java.lang.String NETFLOWbaseDirectory,
                                                             java.lang.String NETFLOWdirFileName,
                                                             java.lang.String[] suffixes,
                                                             java.lang.String XMLTrafficMatrixFileName)
                                                      throws java.lang.Exception
This function reads NetFlow aggregated data and stores them in one XML inter-domain traffic matrix file. If raw is true, the data will be represented in bytes per period. Otherwise, it will be converted in the units of the domain. The generated traffic matrix will be saved in the file XMLTrafficMatrixFileName.

Parameters:
NETFLOWbaseDirectory - the base directory containing aggregated NetFlow data
NETFLOWdirFileName - directory and filename of the NetFlow aggregated data (found in NETFLOWbaseDirectory/id/ or NETFLOWbaseDirectory/rid/)
suffixes - an array of potential suffixes for filenames
XMLTrafficMatrixFileName - the name of the generated inter-domain XML traffic matrix
Returns:
the inter domain traffic matrix
Throws:
java.lang.Exception

generateXMLTrafficMatrixfromNetFlow

public TrafficMatrixFile generateXMLTrafficMatrixfromNetFlow(java.lang.String NETFLOWbaseDirectory,
                                                             java.lang.String NETFLOWdirFileName,
                                                             java.lang.String[] suffixes)
                                                      throws java.lang.Exception
This function reads NetFlow aggregated data and stores them in one XML inter-domain traffic matrix file. If raw is true, the data will be represented in bytes per period. Otherwise, it will be converted in the units of the domain.

Parameters:
NETFLOWbaseDirectory - the base directory containing aggregated NetFlow data
NETFLOWdirFileName - directory and filename of the NetFlow aggregated data (found in NETFLOWbaseDirectory/id/ or NETFLOWbaseDirectory/rid/)
suffixes - an array of potential suffixes for filenames
Returns:
the inter domain traffic matrix
Throws:
java.lang.Exception


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.