Re: [ns] collisions in 802.11 or interference
Imad Abdeljaouad wrote: > Hi, > I know it's in 802.11 MAC, but where exactly. And how do I know which > packets are colliding and the "period of time" they collide? > Thanks! > Firstly, I recommend you ns manual. It is the document which you can find many fundamantal things inside. the file is ns_dir/mac/mac-802_11.cc and you have to read it in detail to find the way CSMA/CA is simulated. There are also some comments in the code that will help you. Cheers, > On Wed, Nov 12, 2008 at 7:21 PM, Nguyen Lan <[EMAIL PROTECTED]> wrote: > > >> Imad Abdeljaouad wrote: >> >> >>> Hi Helber, >>> Thanks for the prompt response. Actually, I am looking for the code in ns2 >>> (source code) where we can detect collisions. I want to simulate >>> interference, so I need to get the packets that were received at the same >>> time on some node. I know interference happens on the physical layer, but >>> I >>> think it would be much more easier to implement it on the MAC in ns2. So I >>> am actually looking the source code part that says here is another packet >>> being transmitted while receiving another packet ( which is collision if >>> both packets are meant for the same receiver, and interference if both >>> packets belong to the same (or an adjacent) channel. >>> >>> >>> >> I think the implementation of 802.11 MAC is exactly the place you should >> look into. >> >> Cheers, >> Nguyen. >> >> Can you help with that ? >> >>> cheers, >>> >>> On Tue, Nov 11, 2008 at 8:35 PM, Helber Wagner <[EMAIL PROTECTED] >>> >>>> wrote: >>>> >>> >>> >>>> Hi, Imad. >>>> >>>> As far as I understood your question, you should analyze the trace file >>>> generated >>>> by your simulations. >>>> >>>> If the MAC trace is enabled in your .tcl file, it will be a row like "D >>>> ... COL ..." >>>> indicating the time, the node, the packet and other information about a >>>> collision >>>> that has been happened. >>>> >>>> Finally, a simple perl/awk script can retrieve this information from the >>>> trace file. >>>> >>>> You can find more about mac trace in NS2 over the Internet. >>>> >>>> Good luck. >>>> >>>> --- >>>> Helber Wagner da Silva >>>> Federal University of Cear��� - Brazil >>>> URL: www.great.ufc.br/~helberhws <http://www.great.ufc.br/%7Ehelberhws>< >>>> http://www.great.ufc.br/%7Ehelberhws> >>>> >>>> >>>> >>>> -- >>>> *De:* Imad Abdeljaouad <[EMAIL PROTECTED]> >>>> *Para:* "ns-users@isi.edu" >>>> *Enviadas:* Ter���a-feira, 11 de Novembro de 2008 23:17:46 >>>> *Assunto:* [ns] collisions in 802.11 or interference >>>> >>>> >>>> Hello there, >>>> I am looking for the code where collisions in 802.11 occur so that I know >>>> which packet(s) collided and for how long they collided? this is a step >>>> in >>>> trying to implement interference! >>>> thank you! >>>> >>>> -- >>>> best regards, >>>> >>>> Imad Abdeljaouad >>>> >>>> -- >>>> Novos endere���os, o Yahoo! que voc��� conhece. Crie um email novo< >>>> http://br.rd.yahoo.com/mail/taglines/mail/*http://br.new.mail.yahoo.com/addresses>com >>>> a sua cara @ >>>> ymail.com ou @rocketmail.com. >>>> >>>> >>>> >>>> >>> >>> >>> >>> >> > > >
Re: [ns] How to aggregate data in Cluster Head
I think the LEACH itself doesn't consider data aggregation at cluster head. You can find more with the LEACH source code (please ask the authors for it) Cheers, Nguyen Lan. Tuan Nguyen wrote: > Dear all, > > I don't know how to simulate LEACH protocol in WSNs with aggregating data at > Cluster Head. > Detail: The network is divided into many clusters. Every cluster has a > Cluster Head and node members. In every cycle, all node members (n nodes) > send data to CH (suppose packet's length is 2 bytes). After that, CH will > aggregate data from 2n bytes into 2 bytes. > > Rgds, > > Tuan >
[ns] change interference range
Hi all, I'd like to change interference range of nodes by change the value of CPThreshold from 10 to 20. I putted this in my script "Phy/WirelessPhy setCPThresh_ 20.0 ", but it doesn't work. If somebody have successfully set this value, please tell me how to do. Every help is appreciated much. Best regards, Nguyen.
[ns] ns was killed after running for a while
Dear all, After running my simulation for a while, it was killed by ... ?. Here is what I have on the terminal. I don't know what happended. Please help me ! INITIALIZE THE LIST xListHead Starting Simulation... channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 542.5 Killed Best regards, Nguyen.
[ns] dst_ and dst_addr_ problem
Dear all, I got this message and I think I should change from dst_ to dst_addr_. Is it correct or not. How can I set dst_port_ Warning dst_ is no longer being supported in NS. dst_ 0x Use dst_addr_ and dst_port_ instead Any help is appreciated. Nguyen.
[ns] need help with MTE and LEACH
Hello, Did anyone try with LEACH for ns2.27 from (http://www.internetworkflow.com/downloads/ns2leach/mit.tar.gz). I did installed it but now I got problem with MTE. If you did try with this, please drop some lines to me. Thank you. Nguyen
[ns] random in ns
Hello, I put "ns-random 0" to my script in that 2 mobile node send data to a base station but the throughput each node can send doesn't change time ti time. Could anybody help me. Cheers, Nguyen
[ns] how to make multipath manual routing in ns ?
Dear all , Is there anyway allow me to manual routing from source to destination on different paths (let say flow-based). I don't mean a "real" multi-path routing protocol like AOMDV or something like that, just manual routing. Best regards, Nguyen
[ns] LEACH extension for ns2
Hello, Is there anyone here has implemented LEACH in ns2 or where can I find that extension. Million thanks
[ns] AODV-UU vs AODV-ns2.27
Hello, Can anyone tell me what is the difference between AODV used in ns2.27 and AODV-UU. I wonder if they are the same Cheers, Nguyen
[ns] node movement log problem
Hello, I like to trace node movement so I add the following code (in ns-manual guide, chapter 16) proc log-movement {} { global logtimer ns_ ns set ns $ns_ source /usr/local/ns/2.27/ns-allinone-2.27/ns-2.27/tcl/mobility/timer.tcl Class LogTimer -superclass Timer LogTimer instproc timeout {} { global opt node_; for {set i 0} {$i < $opt(nn)} {incr i} { $node_($i) log-movement } $self sched 0.1 } set logtimer [new LogTimer] $logtimer sched 0.1 } if { $opt(lm) == "on" } { log-movement } But I got that error num_nodes is set 30 couldn't read file "../mobility/timer.tcl": no such file or directory while executing "source.orig ../mobility/timer.tcl" ("uplevel" body line 1) invoked from within "uplevel source.orig [list $fileName]" invoked from within "if [$instance_ is_http_url $fileName] { set buffer [$instance_ read_url $fileName] uplevel eval $buffer } else { uplevel source.orig [list $fileName] ..." (procedure "source" line 8) invoked from within "source ../mobility/timer.tcl" (procedure "log-movement" line 5) invoked from within "log-movement" invoked from within "if { $opt(lm) == "on" } { log-movement }" Please help me, it is urgent Cheers, Nguyen
Re: [ns] help !!! NS2 extension package that supports static routing ???
Hello, Try with NOAH http://icapeople.epfl.ch/widmer/uwb/ns-2/noah/index.html Cheers, Nguyen tdinhtoan wrote: > hi, > > I am looking for an NS2 extension package that supports static routing > (i.e. used in tree-based wireless mesh networks). > > Is there anyone extending NS2 to support static routing? If you have, > could you please provide me the package (source code). > > I know one such extension: > http://www.cse.iitk.ac.in/users/braman/tens/#4.3_Configuration_Of_Nodes > it goes with ns-allinone-2.1b9a-gcc32. However I spend several days but > could not install ns-allinone-2.1b9a-gcc32 successfully, for both linux > and Cygwin. Can anyone install succesfully this extension? If it's done, > please tell me how you do. > > thank you very much. > > -toan. > > >
[ns] problem with position of nodes in NAM
Hi all, I have a problem when using NAM. I use these commands to set position of a node $node_(0) set X_ 10.0 $node_(0) set Y_ 50.0 $node_(0) set Z_ 0. But when displaying by NAM, all the nodes are put in the same position (0,0 maybe). If I add the command "$ns_ at 0. "$node_(0) setdest 10.0 50.1 5.470933126741", everything seems be OK but it is strange isn't it. Thank you very much Nguyen
[ns] what is the meaning of random in CBR
Hello, What is the meaning of this line "cbr set random 0" ? Thanks in advance. Nguyen
Re: [ns] Awk Script for Delay/Jitter in Wireless Network
Hello, You can find those here http://mailman.isi.edu/pipermail/ns-users/2004-September/044647.html Cheers, Nguyen. Shaili Desai wrote: > Hello all > > I am trying to analyze VoIP traffic QoS in WImax.Can anyone help me get the > awk script for delay,jitter and throughput for wireless network. I wrote my > own but not sure if thats working fine so want to check with an existing > working awk script if someone already has it written. > > I will be more than glad if someone can help. > > Thanks in advance and looking forward to > >
[ns] dynamic data rate ??
Hello, I like to make a scenario in that a pair of node communicate over UDP and the data rate at source node increase 10Kbps after 1 second. Let say at the beginning it starts at 100Kbps and after 1 sec it change to 110Kbps. How can i do this in scenario file. Any idea is welcome. Regards, Nguyen
Re: [ns] Multi-interface support howto, Ramon Submission
Hello Ramon et al, My problem is that I declared nIfaces, targetlist and ifqueuelist in the aodv.h file but out of the class declaration. Now I can recompile ns but I still had many many warnings like that /usr/local/ns/mulf/ns-allinone-2.27/tclcl-1.15/tracedvar.h:49: warning: ‘class TracedVar’ has virtual functions but non-virtual destructor /usr/local/ns/mulf/ns-allinone-2.27/tclcl-1.15/tracedvar.h:87: warning: ‘class TracedInt’ has virtual functions but non-virtual destructor /usr/local/ns/mulf/ns-allinone-2.27/tclcl-1.15/tracedvar.h:130: warning: ‘class TracedDouble’ has virtual functions but non-virtual destructor common/scheduler.h:71: warning: ‘class Handler’ has virtual functions but non-virtual destructor common/ip.cc: In member function ‘virtual void IPHeaderClass::export_offsets()’: common/ip.cc:53: warning: invalid access to non-static data member ‘hdr_ip::src_’ of NULL object common/ip.cc:53: warning: (perhaps the ‘offsetof’ macro was used incorrectly) common/ip.cc:54: warning: invalid access to non-static data member ‘hdr_ip::dst_’ of NULL object common/ip.cc:54: warning: (perhaps the ‘offsetof’ macro was used incorrectly) common/ip.cc:55: warning: invalid access to non-static data member ‘hdr_ip::ttl_’ of NULL object common/ip.cc:55: warning: (perhaps the ‘offsetof’ macro was used incorrectly) common/ip.cc:56: warning: invalid access to non-static data member ‘hdr_ip::fid_’ of NULL object common/ip.cc:56: warning: (perhaps the ‘offsetof’ macro was used incorrectly) common/ip.cc:57: warning: invalid access to non-static data member ‘hdr_ip::prio_’ of NULL object common/ip.cc:57: warning: (perhaps the ‘offsetof’ macro was used incorrectly) Any idea about this is welcome. Cheers, Nguyen. Nguyen Lan wrote: > Hello, > > I have not declared them in common/packet.h. The only place I put them > in is aodv.h (as in the document). I think this problem came from > other place and I should read the document carefully but now I don't > know yet. > Thank you very much. > > Cheers, > Nguyen > > Ramon Aguero wrote: >> Hello, >> >> Why have you declared nIfaces, targetlist and ifqueuelist in >> common/packet.h? >> >> Cheers, >> Ramón >> >> At 07:34 06/02/2007, Nguyen Lan wrote: >>> Hi Ramon and all, >>> >>> After following the document when I recompile ns I got this error. >>> Maybe I was wrong some where >>> >>> aodv/aodv.o:/usr/local/ns/mulf/ns-allinone-2.27/tclcl-1.15/tclcl.h:60: >>> multiple definition of `nIfaces' >>> aodv/aodv_logs.o:./common/packet.h:413: first defined here >>> aodv/aodv.o:./aodv/aodv_packet.h:161: multiple definition of >>> `targetlist' >>> aodv/aodv_logs.o:./common/packet.h:353: first defined here >>> aodv/aodv.o:aodv/aodv.cc:65: multiple definition of `ifqueuelist' >>> aodv/aodv_logs.o:./common/packet.h:423: first defined here >>> collect2: ld returned 1 exit status >>> make: *** [ns] Error 1 >>> >>> Could anyone help me. >>> >>> Thanks >>> Ramon Aguero wrote: >>>> Hi Anthony, >>>> >>>> thanks for your feedback; I think that your proposal is perfectly >>>> fine. >>>> >>>> I've sent an email previously, about the same changes. I think that >>>> the problem was that in the first version of the document we did >>>> not highlight a couple of lines (the ones that you've modified); in >>>> the original ns-mobilenode.tcl file, these two lines started with >>>> $arptable_ **Note the underscore** >>>> >>>> In the modified procedure, however, it was $arptable **Without the >>>> underscore**, which is, exactly what you propose, since the >>>> $arptable variable is $arptable_($t). >>>> >>>> Cheers, >>>> Ramón >>>> >>>> At 07:29 04/02/2007, Anthony Plummer wrote: >>>> >>>>> Ramon's submission (http://personales.unican.es/aguerocr/) of a >>>>> multiple-channel extension to ns2 works well after a slight >>>>> modification to the code in the pdf. In tcl/lib/ns-mobilenode.tcl the >>>>> arptable modification (pg. 24 & 25 of pdf) needs to change the >>>>> arptable in two additional lines. >>>>> #We also create one ARP table per interface >>>>> set arptable_($t) [new ARPTable $self $mac] >>>>> set arptable $arptable_($t) >>>>> # FOR backward compatibility sake, hack only >>>>> if {$imepflag != ""} { >>>>> set drpT [$self mobility-trace Drop "IFQ"] >>>>> } else { >>>>> set drpT [cmu-trace Drop "IFQ" $self] >>>>> } >>>>> $arptable_($t) drop-target $drpT // Should be changed to this here >>>>> if { $namfp != "" } { >>>>> $drpT namattach $namfp >>>>> } >>>>> >>>>> # >>>>> # Link Layer >>>>> # >>>>> $ll arptable $arptable_($t) // Should be changed to this here >>>>> $ll mac $mac >>>>> $ll down-target $ifq >>>>> >>>> >>>> >>>> >>>> >> >> > >
[ns] 802.11e extension for ns2.27
Dear all, I found some extension for 802.11e, one comes from TKN TU-Berlin and the other from INRIA. Has anyone try those extensions for ns2.27, if you did please share me some experience. If you know others extension please let me know. Thank you very much. Cheers, Nguyen
Re: [ns] Multi-interface support howto, Ramon Submission
Hello, I have not declared them in common/packet.h. The only place I put them in is aodv.h (as in the document). I think this problem came from other place and I should read the document carefully but now I don't know yet. Thank you very much. Cheers, Nguyen Ramon Aguero wrote: > Hello, > > Why have you declared nIfaces, targetlist and ifqueuelist in > common/packet.h? > > Cheers, > Ramón > > At 07:34 06/02/2007, Nguyen Lan wrote: >> Hi Ramon and all, >> >> After following the document when I recompile ns I got this error. >> Maybe I was wrong some where >> >> aodv/aodv.o:/usr/local/ns/mulf/ns-allinone-2.27/tclcl-1.15/tclcl.h:60: >> multiple definition of `nIfaces' >> aodv/aodv_logs.o:./common/packet.h:413: first defined here >> aodv/aodv.o:./aodv/aodv_packet.h:161: multiple definition of >> `targetlist' >> aodv/aodv_logs.o:./common/packet.h:353: first defined here >> aodv/aodv.o:aodv/aodv.cc:65: multiple definition of `ifqueuelist' >> aodv/aodv_logs.o:./common/packet.h:423: first defined here >> collect2: ld returned 1 exit status >> make: *** [ns] Error 1 >> >> Could anyone help me. >> >> Thanks >> Ramon Aguero wrote: >>> Hi Anthony, >>> >>> thanks for your feedback; I think that your proposal is perfectly fine. >>> >>> I've sent an email previously, about the same changes. I think that >>> the problem was that in the first version of the document we did not >>> highlight a couple of lines (the ones that you've modified); in the >>> original ns-mobilenode.tcl file, these two lines started with >>> $arptable_ **Note the underscore** >>> >>> In the modified procedure, however, it was $arptable **Without the >>> underscore**, which is, exactly what you propose, since the >>> $arptable variable is $arptable_($t). >>> >>> Cheers, >>> Ramón >>> >>> At 07:29 04/02/2007, Anthony Plummer wrote: >>> >>>> Ramon's submission (http://personales.unican.es/aguerocr/) of a >>>> multiple-channel extension to ns2 works well after a slight >>>> modification to the code in the pdf. In tcl/lib/ns-mobilenode.tcl the >>>> arptable modification (pg. 24 & 25 of pdf) needs to change the >>>> arptable in two additional lines. >>>> #We also create one ARP table per interface >>>> set arptable_($t) [new ARPTable $self $mac] >>>> set arptable $arptable_($t) >>>> # FOR backward compatibility sake, hack only >>>> if {$imepflag != ""} { >>>> set drpT [$self mobility-trace Drop "IFQ"] >>>> } else { >>>> set drpT [cmu-trace Drop "IFQ" $self] >>>> } >>>> $arptable_($t) drop-target $drpT // Should be changed to >>>> this here >>>> if { $namfp != "" } { >>>> $drpT namattach $namfp >>>> } >>>> >>>> # >>>> # Link Layer >>>> # >>>> $ll arptable $arptable_($t) // Should be changed to this >>>> here >>>> $ll mac $mac >>>> $ll down-target $ifq >>>> >>> >>> >>> >>> > >
[ns] NAM display problem
Hi all, I have a question regarding NAM display. I'd like to make a scenario that contain only fix nodes (no movement). But when I use NAM to display, all the node seem to be in the same place. I have set the position of each node like this $node_(0) set X_ 703.662297539822 $node_(0) set Y_ 450.447506898335 $node_(0) set Z_ 0. $node_(1) set X_ 959.371925459560 $node_(1) set Y_ 564.938365134220 $node_(1) set Z_ 0. $node_(2) set X_ 707.446888123861 $node_(2) set Y_ 667.500873757569 $node_(2) set Z_ 0. $node_(3) set X_ 614.896120945549 $node_(3) set Y_ 877.576693551604 $node_(3) set Z_ 0. Any idea will be appreciated. Thank you very much. Nguyen
Re: [ns] Multi-interface support howto, Ramon Submission
Hi Ramon and all, After following the document when I recompile ns I got this error. Maybe I was wrong some where aodv/aodv.o:/usr/local/ns/mulf/ns-allinone-2.27/tclcl-1.15/tclcl.h:60: multiple definition of `nIfaces' aodv/aodv_logs.o:./common/packet.h:413: first defined here aodv/aodv.o:./aodv/aodv_packet.h:161: multiple definition of `targetlist' aodv/aodv_logs.o:./common/packet.h:353: first defined here aodv/aodv.o:aodv/aodv.cc:65: multiple definition of `ifqueuelist' aodv/aodv_logs.o:./common/packet.h:423: first defined here collect2: ld returned 1 exit status make: *** [ns] Error 1 Could anyone help me. Thanks Ramon Aguero wrote: > Hi Anthony, > > thanks for your feedback; I think that your proposal is perfectly fine. > > I've sent an email previously, about the same changes. I think that the > problem was that in the first version of the document we did not highlight > a couple of lines (the ones that you've modified); in the original > ns-mobilenode.tcl file, these two lines started with $arptable_ **Note the > underscore** > > In the modified procedure, however, it was $arptable **Without the > underscore**, which is, exactly what you propose, since the $arptable > variable is $arptable_($t). > > Cheers, > Ramón > > At 07:29 04/02/2007, Anthony Plummer wrote: > >> Ramon's submission (http://personales.unican.es/aguerocr/) of a >> multiple-channel extension to ns2 works well after a slight >> modification to the code in the pdf. In tcl/lib/ns-mobilenode.tcl the >> arptable modification (pg. 24 & 25 of pdf) needs to change the >> arptable in two additional lines. >> #We also create one ARP table per interface >> set arptable_($t) [new ARPTable $self $mac] >> set arptable $arptable_($t) >> # FOR backward compatibility sake, hack only >> if {$imepflag != ""} { >> set drpT [$self mobility-trace Drop "IFQ"] >> } else { >> set drpT [cmu-trace Drop "IFQ" $self] >> } >> $arptable_($t) drop-target $drpT // Should be changed to this here >> if { $namfp != "" } { >> $drpT namattach $namfp >> } >> >> # >> # Link Layer >> # >> $ll arptable $arptable_($t) // Should be changed to this here >> $ll mac $mac >> $ll down-target $ifq >> > > > >
[ns] Segment fault !
Hi all, I had this error when trying to add new frame to wireless MAC. I check the code carefully but still don't understand why this happen. Any help is welcome. Cheers, Here is out put from gdb #0 0x0805af24 in Packet::access (this=0x8, off=2640) at ./common/packet.h:352 #1 0x0810b447 in Mac802_11::check_pktIND (this=0x97a46f8) at mac/mac-802_11.cc:4429 #2 0x0811393b in Mac802_11::deferHandler (this=0x97a46f8) at mac/mac-802_11.cc:950 #3 0x0813031a in DeferTimer::handle (this=0x97a4954) at mac/mac-timers.cc:141 #4 0x08054312 in Scheduler::dispatch (this=0x978c0b0, p=0x97a4964, t=0.051291439723192681) at common/scheduler.cc:149 #5 0x0805455e in Scheduler::run (this=0x978c0b0) at common/scheduler.cc:128 #6 0x08054851 in Scheduler::command (this=0x978c0b0, argc=2, argv=0xbfbb51f0) at common/scheduler.cc:197 #7 0x0821b1e2 in TclClass::dispatch_cmd () #8 0x0821fd98 in OTclDispatch (cd=Variable "cd" is not available. ) at otcl.c:432 #9 0x082269f1 in TclInvokeStringCommand () #10 0x082281ca in TclEvalObjvInternal () #11 0x0824e371 in TclExecuteByteCode () #12 0x0825372c in TclCompEvalObj () #13 0x0824e469 in TclExecuteByteCode () #14 0x0825372c in TclCompEvalObj () #15 0x0827a8cb in TclObjInterpProc () #16 0x0827ab20 in TclProcInterpProc () #17 0x0821fed0 in OTclDispatch (cd=Variable "cd" is not available. ) at otcl.c:475 #18 0x082269f1 in TclInvokeStringCommand () #19 0x082281ca in TclEvalObjvInternal () #20 0x0824e371 in TclExecuteByteCode () #21 0x0825372c in TclCompEvalObj () #22 0x0827a8cb in TclObjInterpProc () #23 0x0827ab20 in TclProcInterpProc () #24 0x0821fd98 in OTclDispatch (cd=Variable "cd" is not available. ) at otcl.c:432 #25 0x082269f1 in TclInvokeStringCommand () #26 0x082281ca in TclEvalObjvInternal () #27 0x082284fa in Tcl_EvalEx () #28 0x08269f97 in Tcl_FSEvalFile () #29 0x0826d27b in Tcl_Main () #30 0x0804d04c in main (argc=-2082109099, argv=0x458b08ec) at common/tclAppInit.cc:60
Re: [ns] Multi-interface support howto, by Ramon Aguero
Hi Razmon, I have a question related to the multi-interface support in ns2 - In Listing 4.4: hdr->iface() = addr(), addr is index of the interface that received this packet. But how can I get that value (which variant or function) - And in struct hdr_cmn (packet.h) there is a field name iface_ to store received interface index. Can I use it in Listing 4.4 like hdr->iface_ = xxx Best regards, Nguyen Ramon Aguero wrote: > Hi Shahatha, > > As we say in the report we didn't use aodv, so we really appreciate that > you work on this, it would be good trying to extend the report with your > own experience on AODV. > > We have been doing a quick overlook of the aodv code (which we have not > personally used that much) and this is what we can tell for the listings of > chapter 5: > > - Listing 5.3 has to be used whenever the AODV needs to send a broadcast > packet, which happens, as far as we can tell, in the following methods of > the aodv.cc file: sendRequest, sendError, sendHello and forward; in this > latter case only when the destination address is broadcast. In all of this, > you should have the following command: > Scheduler::instance().schedule(target_,pkt,*); --- * means either 0 or JITTER > and you should change it for listing 5.3. > > - Listing 5.4 has to be used instead of the unicast transmissions of > aodv.cc, this time in sendReply and forward methods. In this case, the > Iface variable has to be the appropriate interface index, which needs to be > stored within the corresponding route table entry (see section 5.3 of the > document). > > - Listing 5.5 is the one that allows you to get the correct interface. When > you have to create a route table entry, you need to indicate the > corresponding index for the output interface, which will be used afterwards > to send packets (see previous answer). This means that the corresponding > struct/class for your route table entry needs to be updated, so as to be > able to keep this index. > Thanks to the changes of the mac-802_11.cc file (listing 4.6), the required > value is store on the common header of the packet, that's the cmnh variable > of the listing. Iface will just hold the index that will be used for > creating/updating the route table entry. After a quick overlook of the > code, this seems to be needed in two methods: recvRequest and recvReply. > > Cheers, > Ramón > > At 10:53 18/01/2007, Shahatha wrote: > > >> Hello, >> >> did any one implement the extension of ns-2 for multi-channel >> from Ramon Aguero at: >> >> http://personales.unican.es/aguerocr>http://personales.unican.es/aguerocr >> "many thanks for Ramon Aguero for his Dokument." >> >> >> i have some problems at Chapter 5, where to add the listing 5.3 Listing >> 5.5 and Listing 5.6 >> in routingAgent.cc. (AODV.cc) >> i choice the AODV ad hoc routing agent to change. >> >> i think i can copy the Listing above 1 by 1 to the AODV.cc. >> >> thanks >> >> >> >> >> - >> NEU: Fragen stellen - Wissen, Meinungen und Erfahrungen teilen. Jetzt auf >> Yahoo! Clever. >> > > > >
[ns] how to calculate throughput ???
Dear all, I try to simulate a multichannel MAC protocol for wireless network and in that protocols RTS/CTS sent on channel 0 and data sent on other data channels. My question is how can i calculate throughput on data channels. I only use trace graph at the moment. Thank you and best regards, Nguyen Lan.
[ns] which channel will be use ?
Hi all, Do you know how to point out which channel that physical layer should use to send data. I like to send packet on several channels. Best regards, Nguyen Lan
[ns] debug "Scheduler: Event UID not valid!" error, Help me !!!
Hi all, I apply a new MAC protocol for wireless network and I got this error "Scheduler: Event UID not valid!"and I know that it comes from the event that has uid = 55 (by debugging scheduler.cc file). Now I don't know what to do next, could you help me to solve it. Any suggest is welcome. Thank you. Nguyen Lan
[ns] extension for multichannel simulation ?
Hi all, Does anyone know the extension that allow me to simulate multi-channel MAC protocol like CA, SSCH, MMAC and McMAC. Any help is welcome. Best regards, Nguyen Lan