[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

help



Dear every one ,

i have a problem in ns , i hope i can find an answer.

i have successfully installed ns-allinone-2.1b5a.tar.gz .
the i also sucessfully installed ns-src-wireless-ver.tar.gz .
when i tried to run a perl script files totals.pl i have a problem .
when i reviewed the ad-hockey ans ns FAQ at cmu page , the problem was listed
as follows:
********************
Is there any difference in the trace files produced by ns2.1b6 and the CMU
extensions? When I run totals.pl I am getting a error message for every line
in my trace file of the form: 

Error, 1: 'f 135.56 _1_ RTR --- 6 cbr 544 [a2 1 0 800] ------- [0:0 2:0 32 2]
[2] 1 0' 

Well, the problem is that somebody changed the format logged by the CMUTrace
object. Your trace file contains lines of the form 

f 135.56 _1_ RTR  --- 6 cbr 544 [a2 1 0 800] ------- [0:0 2:0 32 2] [2] 1 0
whereas our CMUTrace object makes lines of the form 
f 23.95 _23_ RTR  --- 8 cbr 556 [20 a2 17 10 800] ------- [16:0 17:0 32 39]
[0] 1 4
Note that the number of fields printed for both MAC and IP headers is
different. I don't know why the tracing objects would have been changed. I
think Ya Xu posted something about this on the ns-users mailing list, and I'm
afraid I'll have to send you back there for more information. 

Here are the relevant lines from our version of cmu-trace.cc::CMUTrace 

	sprintf(wrk_ + offset, "------- [%d:%d %d:%d %d %d] ",
		ih->src_, ih->sport_,
		ih->dst_, ih->dport_,
		ih->ttl_, (ch->next_hop_ < 0) ? 0 : ch->next_hop_);

	sprintf(wrk_ + offset,
		"%c %.9f _%d_ %3s %4s %d %s %d [%x %x %x %x %x] ",
		op,
		Scheduler::instance().clock(),
                src_,                           // this node

		tracename,
		why,

                ch->uid(),                      // identifier for this event
		pt_names[ch->ptype()],
		ch->size(),

		GET2BYTE(&mh->dh_fc),
		mh->dh_duration,
		ETHER_ADDR(mh->dh_da),
		ETHER_ADDR(mh->dh_sa),
		GET_ETHER_TYPE(mh->dh_body));
*****************
so as above it suggest to back to ns to I think Ya Xu posted something about
this on the ns-users mailing list, and I'm afraid I'll have to send you back
there for more information. 

i donr how reach the Ya Xu .

plz help me .

hoping to hear from you soon .

best regards ,

aiman

____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1