[ns] Qos Routing Problem

2006-03-28 Thread Xlarge

Dear all:
I am now simulating AODV with QOS constraint, so i need the channel quality 
provided by the MAC layer(802.11), is anyone have experience on this? Please 
tell me how to start. Thanks in advance 

[ns] AODV trace file problem

2006-03-22 Thread Xlarge

Dear All: 
I am simulating the AODV, but when i write the AWK to analyze the trace file,i 
do the following thing : 
==Trace format
s 49.08275 _4_ RTR  --- 18045 cbr 230 [0 0 0 0 0] --- [4:1 8:3 35 8] 
[5797] 0 1
r 49.08275 _4_ RTR  --- 18045 cbr 210 [0 0 0 0 0] --- [4:1 8:3 32 0] 
[5797] 0 1
===

I filter the packets as amount of sending data packet in routing layer  :  send 
 RTR  cbr
 amount of receiving data packet in routing 
layer : receive  RTR  cbr
but i got the amount of receiving data packet is larger than amount  of sending 
data packet 

And can anyone tell me what's the different between those two lines
===
D 49.086536466 _4_ IFQ   IFQ 18049 cbr 230 [0 0 8 4 800] --- [4:1 8:3 35 8] 
[5798] 0 1
D 49.086536466 _4_ RTR  IFQ 18049 cbr 230 [0 0 8 4 800] --- [4:1 8:3 35 8] 
[5798] 0 1
===
Thanks in advance 

[ns] AODV trace problem~~

2006-03-17 Thread Xlarge

Dear All:
I am porting the AOMDV from ns2.1b4a to ns2.29, it almost done.
But the trace file shows that all packet are dropped because NRTE(no route)
--
D 59.668074669 _8_ RTR NRTE 1939 cbr 512 [0 0 0 0] --- [8:2 10:0 31 0] 
[312] 0 2

--
Is ther any way to find out the solution?  Is this because the routing protocol 
or  the link layer?
My complilation is successful, and my tcl is correct,too~
The functions such as  sendRequest, sendReply,forward... are all runs well in 
older NS2 version.
Any suggestion will do me a lot of favor, thanks in advance.

[ns] Compiling error :abort( ) in tclAppInit.cc

2006-02-20 Thread Xlarge

Dear all: 
I am trying to install the ns2.1b4a, but when i compile the file ,the error 
shown as below occur:

tclAppInit.cc: In function `void _ABORT ()':
tclAppInit.cc:152: `abort' undeclared (first use this function)
tclAppInit.cc:152: (Each undeclared identifier is reported only once
for each function it appears in.)
make: *** [tclAppInit.o] Error 1

I compare the abort( ) function of NS 2.1b4a ,NS 2.1b7a,NS 2.29, they are all 
the same : 

void abort( )
{
 Tcl tcl = Tcl::instance();
 tcl.evalc([Simulator instance] flush-trace);
#ifdef abort
#undef abort
 abort( );
#else
 exit(1);
#endif /*abort*/
 /*NOTREACHED*/
}
Can anybody  tell me how what the abort( ) do and howto solve the problem?? 

Thanks in advance~~ Best regards to all, Xlarge