Re: [ns] Tracefile example of GPSR
Hi Zakia Iam pradeep doing masters in networking and doing my project in NS2 can you please help with tcl script till now i generated UDP traffic and created setdest but while executing i got error in "creating god" can you please send me your script so that it will be help full in my project. Iam very much thankful to you thanks pradeep (07501001287) (pradeepsecx...@yahoo.com) Zakia Khalfallah wrote: > > > > Hi, > anyone has an exemple of the trace file result for a GPSR protocol > simulation ? > thanks, > > > -- View this message in context: http://old.nabble.com/Tracefile-example-of-GPSR-tp31397142p31408317.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] RTP over wireless connection between two nodes
Hello to everyone, I'm a complete noob at NS but I've checked some tutorials, run a couple of tcl examples but I still can't combine all these so as to do what I want. That is to create an RTP session between 2 nodes. The connection between them has to be wireless. I'm trying to do the same things as shown in 2 examples of /ns-2.34/tcl/ex, simple-wireless.tcl and simple-rtp.tcl. I get this weird error but I haven't found anything on the web: num_nodes is set 2 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead Starting Simulation... channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 550.0 SORTING LISTS ...DONE! ns: _o19 new-group 0 -2147483648 -1 cache-miss: can't read "protocols_(-1)": no such variable while executing "$protocols_($iface) upcall $code $source $group $iface" (procedure "_o20" line 9) (mrtObject upcall line 9) invoked from within "$mrtObject_ upcall $code $src $group $iface" (procedure "_o14" line 3) (Node new-group line 3) invoked from within "$node_ new-group $src $group $iface $code" (procedure "_o19" line 3) (Classifier/Multicast new-group line 3) invoked from within "_o19 new-group 0 -2147483648 -1 cache-miss" I think it has to do with the function mrtObject instproc upcall in the file /ns-2.34/tcl/mcast/McastProto.tcl but I'd like to know what I've got to do about it. I saw that RTP stuff is still undocumented (http://www.isi.edu/nsnam/ns/doc/ns_doc.pdf). I would really appreciate any help/hint/suggestion. Thank you :-) http://old.nabble.com/file/p31407109/rtpwi.tcl rtpwi.tcl -- View this message in context: http://old.nabble.com/RTP-over-wireless-connection-between-two-nodes-tp31407109p31407109.html Sent from the ns-users mailing list archive at Nabble.com.
Re: [ns] xgraph (urgent)
On Fri, Apr 15, 2011 at 7:58 PM, anand wrote: > hey do any one knows what is the strucure of u_int32_t... is it clas > like int or a data structure?? > > i have to make a scenario where i wil made sybil attack...after this i > have prevent the network... > if any 1 can tel me how i can chose the path in aodv..that is if i > want then the a node in the will select some other path not the 1 > selected by aodv...plzzz tell me > > e.g if accordin to aodv 1,3,4,6...then if i cud do it like 1,3,5,6 > regards anand! >
Re: [ns] CBRP implementation problem
Hi everybody, I’m trying to add CBRP to ns2.34. But when I run scripts to test it, if the session is more than 30 sessions (in case of 100 nodes), segmentation fault happens. I use GDB to trace the error and usually get one of 2 kinds of following errors: 1. Program received signal SIGSEGV, Segmentation fault. 0x081c2427 in Scheduler::dispatch(Event*, double) () #0 0x081c2427 in Scheduler::dispatch(Event*, double) () #1 0x081c2374 in Scheduler::run() () #2 0x081c2521 in Scheduler::command(int, char const* const*) () #3 0x083c4a1a in TclClass::dispatch_cmd(void*, Tcl_Interp*, int, char const**) () #4 0x083c8412 in OTclDispatch (cd=0x87f03e8, in=0x8625960, argc=3, argv=0xbfffd920) at otcl.c:434 #5 0x083cee4e in TclInvokeStringCommand () #6 0x083d136b in TclEvalObjvInternal () #7 0x083fba3e in TclExecuteByteCode () #8 0x083ffbcd in TclCompEvalObj () #9 0x083fbf90 in TclExecuteByteCode () #10 0x083ffbcd in TclCompEvalObj () #11 0x0842a2ab in TclObjInterpProc () #12 0x0842a6e0 in TclProcInterpProc () #13 0x083c859a in OTclDispatch (cd=0x87f03e8, in=0x8625960, argc=2, argv=0xbfffe420) at otcl.c:477 2. Program received signal SIGSEGV, Segmentation fault. _int_malloc (av=0x5863a0, bytes=16) at malloc.c:4298 4298while ((pp = catomic_compare_and_exchange_val_acq (fb, victim->fd, victim)) #0 _int_malloc (av=0x5863a0, bytes=16) at malloc.c:4298 #1 0x0046a7a0 in __libc_malloc (bytes=16) at malloc.c:3660 #2 0x04e1a21a in operator new (sz=16) at ../../../../libstdc++-v3/libsupc++/new_op.cc:52 #3 0x081dcb74 in PacketData::copy() () #4 0x081d0b5c in Packet::copy() const () #5 0x082714fd in WirelessChannel::sendUp(Packet*, Phy*) () #6 0x08270c90 in Channel::recv(Packet*, Handler*) () #7 0x0829a0b8 in WirelessPhy::sendDown(Packet*) () #8 0x08299078 in Phy::recv(Packet*, Handler*) () #9 0x0827cff5 in Mac802_11::transmit(Packet*, double) () #10 0x08276844 in Mac802_11::check_pktTx() () #11 0x08275a0d in Mac802_11::backoffHandler() () #12 0x0829db58 in BackoffTimer::handle(Event*) () #13 0x081c2440 in Scheduler::dispatch(Event*, double) () #14 0x081c2374 in Scheduler::run() () #15 0x081c2521 in Scheduler::command(int, char const* const*) () #16 0x083c4bf6 in TclClass::dispatch_cmd(void*, Tcl_Interp*, int, char const**) () #17 0x083c85e2 in OTclDispatch (cd=0x87f03d8, in=0x8625960, argc=3, argv=0xbfffd910) at otcl.c:434 ……….. I have tried to fix the errors but I haven’t succeeded until now. I hope you can give advices to me. Thanks you very much -- View this message in context: http://old.nabble.com/CBRP-implementation-problem-tp29491164p31405587.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] urgent
hi Ns users hi friends ,i am doing a project on "cooperative caching in wireless network". for this i craete a network with 5 nodes. i want to cache the data, i am new to NS2. how can i do it and i have some more doughts. My doughts are 1. during the runtime (simulation) i need to select source and destination ,so that the data is transfered between that two nodes. 2. can i transfer the data between two nodes (by taking from real system i.e file.txt like that) please respond me as early as possible. -- *Thanks & Regards* ** Thrilok India
[ns] About WRED
Hi All: Would need to enquire, how do we implement WRED into NS-2? Is there any websites that would help me if i want to implement WRED into NS-2? I can't seem to find any relevant ones. Thanks!