[Ns-developers] Internal Time Keeping Question

Hagen Paul Pfeifer hagen at jauu.net
Tue Jul 22 11:59:02 PDT 2008


* Mathieu Lacage | 2008-07-22 11:20:54 [-0700]:

>Are you suggesting that you plan to run the whole simulation in each
>node if you do not use ghost nodes ? 

No, of course not. The question concerns a concept to reduce the overhead
involved with partly required infrastructure at every node. See
"Space-parallel network simulations using ghosts"

>i.e., let's say I have 2 federates, A and B and two nodes, C and D.
>Let's say that C is assigned to A and D assigned to B. Let's say that A
>has a traffic generating application. What does the user script look
>like to do this ? If it looks like a normal script, how do you plan to
>selectively enable the traffic generation on only federate C ?

Exactly how it is implemented in a Channel to differ if a Packet should be
processed local or on another node:

if (NodeFederate::Instance ()->isLocalNode(node->GetId())) { }

>The key is that the piece of code which sends the MPI message must have
>a unique id to identify the destination of the MPI message. In your
>context, you must have a unique ID per PointToPointNetDevice to allow
>the receiving mpi code to forward the received message to the correct
>PointToPointNetDevice. A simple global unique ID would be the nodeid
>+deviceid pair.

OK, fine. Thank you Mathieu!

Hagen



More information about the Ns-developers mailing list