[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [ns] calcdest doesn't match god
- To: <[email protected]>
- Subject: RE: [ns] calcdest doesn't match god
- From: "Liong Yin-Ling (NRC/Boston)" <[email protected]>
- Date: Tue, 23 Oct 2001 10:51:56 -0400
- Sender: [email protected]
- Thread-Index: AcFbfuZPlxZnZMdjEdWxLwAIx6TWeAAUERRA
- Thread-Topic: [ns] calcdest doesn't match god
I was trying to construct scenario files with ad-hockey instead of
displaying the traces. I didn't know that nam can be used to construct
scenario files. However, the .enam files seem to be different from the
standard scenarios files. It looks more like the tcl file used to start
the ns. Is there any document to explain more on this? For example, can
we change .enam to something like the scenario file?
Also, the cmu/ns points out that the scenario files created by ad-hockey
shall be run by calcdest to get the "god" information. Otherwise, ns
might not perform correctly. However, I run a scenario with and without
calcdest info and the results are the same. So, is the calcdest info
not necessary right now to get correct result? Or, is it just a
coincident?
Thanks,
Venus
-----Original Message-----
From: ext Ya Xu [mailto:[email protected]]
Sent: 23. October 2001 0:55
To: Liong Yin-Ling (NRC/Boston)
Cc: [email protected]
Subject: Re: [ns] calcdest doesn't match god
Vint/ns uses nam instead of ad-hockey.
In Vint/ns, nodes start with id 0 while cmu/ns starts with id 1.
-Ya
On Mon, 22 Oct 2001, Liong Yin-Ling (NRC/Boston) wrote:
> Hi,
>
> I used ad-hockey to create a scenarios and calcdest to get the god
> information. However, the god information created starts from node 1
to
> node N instead of node 0 to node N-1. And this creats a violation in
> god.cc when the file call "set god_ [create-god $val(nn)]"
>
> int God::command(int, const char *const *): Assertion 'j>=0 && j <
> num_nodes' failed.
>
> I know this could be fixed. But I just feel strange that the calcdest
> does not match with the internal range of ns. I would like to know if
I
> am missing anything here.
>
> Also, when I used the scenario file created from ad-hockey (without
> calcdest) directly, the simulation still run and results seem fine.
Can
> ns generate the god information on the fly right now?
>
> Thanks,
> Venus
>
> ----------
> Yin-Ling (Venus) Liong
> Nokia Research Center (NRC-Boston)
> [email protected]
> 781-993-3778(O)
> 781-929-3433(M)
>