[ns] help with assigning cbr connections

Mathiew Moussa mmm59 at aub.edu.lb
Mon Jun 1 07:26:32 PDT 2009


Hi All,

I am implementing a clustering algorithm for WSNs and I'm constructing
the clusters in C++.

The clustering phase is done in the beginning of the simulation for
about 3seconds after which i need to assign connections between the
cluster members and cluster heads based on the results of the cluster
algorithm, therefore assign the necessary cbr connections only.

How can i do this dynamically, therefore how can i tell the nodes in a
cluster to open a cbr connection with only their cluster head
(considering the nodes already know the cluster head they need to bind
too in C++).

Can this be done in TCL.

Your Help is greatly appreciated.
Thanks.

Mathiew



More information about the Ns-users mailing list