27.03.2014 Views

Moby Dick Consolidated System Integration Plan

Moby Dick Consolidated System Integration Plan

Moby Dick Consolidated System Integration Plan

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

D0103v1.doc Version 1 6.7.2003<br />

4.2.2.6.1 Metering<br />

The core component of the metering software is the IETF RTFM NeTraMet implementation as<br />

documented in RFC 2063, RFC 2064 and its successor RFCs.<br />

The NeTraMet implementation was enhanced with the following new features:<br />

A Meter was modifies in the sense that dynamically CoAs can be assigned to User_Class_IDs. This user<br />

class Ids will be used to link CoAs with a predefined user group reflecting a certain SLA.<br />

A Meter Manager and Meter reader was modified in the sense that the flow data is stored into a mySQL<br />

database. The communication between the Meter Reader and the database is done via ODBC.<br />

Figure 44 depicts the components of the meter block located at the Access Router. NeTraMet meters the<br />

data according the above mentioned RFCs. NeMaCDB reads the data from the meter, opens at each<br />

reading cycle the database and stores the raw data into this database. All this modules are installed at the<br />

same machine. The interval between two consecutive meter reading cycles is expected to be in the rage 1<br />

s – 5 s.<br />

NeTraMet<br />

SNMP<br />

NeMaCDB<br />

SNMP<br />

ODBC<br />

Metering<br />

Attendant<br />

Accounting<br />

Interface<br />

AAA Attendant<br />

Figure 44: Metering Module Architecture<br />

The metering attendant can read out the data from the Accounting database on request coming from the<br />

AAAC Attendant. It is expected that data of the accounting database is red out in permanent intervals<br />

(about 3 minutes). The data red out will be deleted at the accounting database in order to keep the size of<br />

this database small and the whole system scalable. This reading intervals will be triggered by the AAAC<br />

Attendant via a C API which is described in the following:<br />

AAAC client can get accounting data through a function call (Get_Meter_Data). Additionally, the C Lib<br />

can also give AAAC client two functions as required in [1]: Meter_Start() and Meter_Stop().<br />

struct st_accdata<br />

{<br />

char *date;<br />

char *time;<br />

char *sourcepeeraddress;<br />

char *destpeeraddress;<br />

unsigned int inputOctets; //fromoctets<br />

unsigned int outputOctets; //tooctets<br />

unsigned int inputPackets; //frompdus<br />

unsigned int outputPackets; //fromoctets<br />

unsigned int destPort;<br />

unsigned int dscp;<br />

struct st_acctdata *next<br />

}<br />

Figure 45: Meter Attendant API – data format<br />

D0103v1.doc 57 / 168

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!