01.07.2013 Views

Th`ese de Doctorat de l'université Paris VI Pierre et Marie Curie Mlle ...

Th`ese de Doctorat de l'université Paris VI Pierre et Marie Curie Mlle ...

Th`ese de Doctorat de l'université Paris VI Pierre et Marie Curie Mlle ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

A.2.1 Extensions to existing J-Sim classes<br />

The basic package for n<strong>et</strong>work simulation in J-Sim is the drcl.in<strong>et</strong> package. This package<br />

contains the basic classes <strong>de</strong>fined in the abstract n<strong>et</strong>work mo<strong>de</strong>l, as well as a s<strong>et</strong> of utility<br />

functions and classes that facilitate creation of simulation scenarios.<br />

To implement our dynamic bandwidth allocation algorithms, we exten<strong>de</strong>d the J-Sim<br />

package both <strong>de</strong>fining a broad s<strong>et</strong> of Java classes and modifying a large number of al-<br />

ready existing ones. In this Chapter, we will simply <strong>de</strong>scribe the Connections’ State Table<br />

implementation.<br />

Note that the Java class No<strong>de</strong>.java (in the drcl.in<strong>et</strong> package) is exten<strong>de</strong>d to implement<br />

our ingress routers by including a s<strong>et</strong> of Java fields and m<strong>et</strong>hods. Among these fields, the<br />

most important is the CST table and its implementation is <strong>de</strong>scribed in the following.<br />

A.2.2 Implementation of Connections’ State Table (CST)<br />

The CST table allows to maintain the state information regarding all connections estab-<br />

lished in the n<strong>et</strong>work.<br />

We implemented the CST table in a vector named CSTtable, where each element corre-<br />

sponds to one connection and maintains the state information regarding such connection.<br />

Each element of the CST table is implemented in the Java class ConnectionState.java and<br />

it contains the following fields:<br />

• long SourceAddress: the connection source no<strong>de</strong>;<br />

• long DestinationAddress: the connection <strong>de</strong>stination no<strong>de</strong>;<br />

• No<strong>de</strong>[] ConnectionPath: the connection path;<br />

• double SLARate: the connection subscribed rate;<br />

• double Weight: the connection weight;<br />

96

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

Saved successfully!

Ooh no, something went wrong!