[ns] Please help me to implement Multipath Source Routing (MSR)Protocol in NS2
hello, I want to implement a new protocol Multipath Source Routing (MSR) is an extension of DSR (Dynamic Source Routing) that incorporates the multipath mechanism into DSR. MSR is an adaptive routing for ad hoc networks. It considers the two fundamental issues in its design. MSR may adapt to topology changes by retaining the route discovery and route maintenance mechanism of DSR. In addition, MSR employs a probing-based load-balancing mechanism. Kindly send me the C++ source code of MSR protocol and the procedure to add this protocol in NS2 for implementation. Thank You
[ns] Please help me
Dear All, I am using ns-2.34 and have written some c++ codes and added them under the ns-2.34 sub-directory. I did make clear, but when I did make to re-compile, the following error (see below) occur. Can anyone help me. Thanks alot. M.A. ./common/ptypes2tcl gen/ptypes.cc /bin/sh cannot create gen/ptypes.cc permission denied make: *** [gen/ptypes.cc] Error 2
[ns] Please help me (Most urgent)
Hi all WSN user Please tell me how different queues are implemented for heterogeneous traffic in sensor nodes, so that each data send to his proper queue. Bundle of thanks Best reguards Moazzam
[ns] Please help me about mannasim patch
Hi I am using mannasim framework. I wants that some node generate carbon data generator and some node generate temperature data. How to implement this in create common node procedure. Thanks in advance Best regards Moazzam
[ns] Please help me with this error
Hi all, I have an agent implemented in ns which used to work properly before, but now when I am trying to run different tcl files I m getting the same error as below: ns: [code omitted because of length] : invalid command name Agent/hoperaa while executing Agent/hoperaa set packetSize_ 40 Does anyone have an idea about this error? Thanks in advance, /Negin
Re: [ns] Please help me with this error
Hi, After adding a new protocol, you should type make than you should type make install as a root. If you do so, you won't have this error. From: N_F negin1...@gmail.com To: ns-users@ISI.EDU Sent: Friday, June 3, 2011 10:24 AM Subject: [ns] Please help me with this error Hi all, I have an agent implemented in ns which used to work properly before, but now when I am trying to run different tcl files I m getting the same error as below: ns: [code omitted because of length] : invalid command name Agent/hoperaa while executing Agent/hoperaa set packetSize_ 40 Does anyone have an idea about this error? Thanks in advance, /Negin
[ns] please help me in FSK Modulation (NRZ)
Dear all I can't find the related files to FSK Modulation (NRZ) in NS2.34. How can I find (or probably implement) this propagation model. i found bpsk in Modulation.h but i can't find fsk. I am looking forward to receiving your comments related codes for NS2. Thanks in advance, Kind regards, Ali Balador Homepage: WWW.BALADOR.ORG ***
[ns] please.. help me to simulate Wireless mesh Networks using ns-2 ..only few days left over for my finalyr proj
Hi, Iam doing proj on WMN's For Simulation of WMNs after googled i got patch Ns2mesh80216(Wimax),it patched successfully but on re-installing of ns-2.33 it failed wimax.Please help me to Simulate WMNs..Sample Tcl scripts Tutorial for Simulation. this my 3rd post till know i didn't get one postive replay... thanks in advance
Re: [ns] please help me | OK
Dear Mr. Wei, I think yes. This awk script for DSR routing protocol mainly. For other protocols like AODV, Tora you need to do some modification like changing ( $35 ==DSR) to the destination protocol like AODV if you simulate AODV ). To do the correct changes and modifications, I advise you to study the new trace file format, after that try to apply simple sinarios to insure everything is ok. If you face problem try do some searching in the internet, may you got a solution. My Regards, Mohammed AbuHajar. --- On Tue, 12/1/09, Wei Zhang weizhang...@yahoo.com wrote: From: Wei Zhang weizhang...@yahoo.com Subject: please help me To: mcs...@yahoo.com Date: Tuesday, December 1, 2009, 11:19 PM Dear Mohammed Abu Hajar, Awk files of Packet delivery ratio, routing overhead, normalize routing load, average end to end delay(I attached this file) you did that can use to all routing protocols AODV,DRS,TORA...? Thanks you very much. Wei
Re: [ns] please help me
Its very easy. just learn how to draw graph in MatLab. It's will take 15 minutes only, try to learn how to plot more than graph in the same graph. http://web.cecs.pdx.edu/~gerry/MATLAB/plotting/linePlots.html http://www.mathworks.com/access/helpdesk/help/techdoc/ref/plot.html http://www.caspur.it/risorse/softappl/doc/matlab_help/techdoc/ref/plot.html All The best!. Mohammed AbuHajar --- On Tue, 12/1/09, Wei Zhang weizhang...@yahoo.com wrote: From: Wei Zhang weizhang...@yahoo.com Subject: please help me To: Mohammed AbuHajar mcs...@yahoo.com Date: Tuesday, December 1, 2009, 1:29 AM Dear Mohammed AbuHajar, I would like to ask you if use MatLab I must code much or not and use easily? Thank so much. Wei --- En date de : Dim 29.11.09, Mohammed AbuHajar mcs...@yahoo.com a écrit : De: Mohammed AbuHajar mcs...@yahoo.com Objet: OK À: Wei Zhang weizhang...@yahoo.com Date: Dimanche 29 Novembre 2009, 13h57 Dear Wei, To plot your results after you get them, I advise you to use MatLab software just for plotting. It gives nice and accurate draws. I attached the function that I used it in plotting. Regards, Mohammed AbuHajar --- On Sun, 11/29/09, Wei Zhang weizhang...@yahoo.com wrote: From: Wei Zhang weizhang...@yahoo.com Subject: please help me To: mcs...@yahoo.com Date: Sunday, November 29, 2009, 12:09 AM Dear Mohammed Abu Hajar, I know you are author of the awk files of Packet delivery ratio, routing overhead, normalize routing load, average end to end delay(I attached this file). I am new in Ns2. I would like to ask you: - How to plot these awk files? - to make these awk files i what i must perform trace file? I need your help much. Thanks you very much. Wei
[ns] please help me
I have some problem with my NS Can you tell me about zrp.path in NS,,, I very need your help Thanks
[ns] please help me fo installing 802.11etkn
mr.ali.balador homepage:www.balador.org - Forwarded Message From: ali bala mrbala...@yahoo.com To: Maggi. chandra.ma...@gmail.com Sent: Wednesday, August 12, 2009 12:47:22 PM Subject: Re: please help me fo installing 802.11etkn hi i have a same problem i installed ns-2.33 and when i modify my makefile and follow the instruction in the readme file of 802.11e tkn i see the error when i run make and after that i cleen the new modification but i still the error i confused. please help me mr.ali.balador homepage:www.balador.org From: Maggi. chandra.ma...@gmail.com To: ali bala mrbala...@yahoo.com Sent: Monday, August 10, 2009 4:44:22 PM Subject: Re: please help me fo installing 802.11etkn ya..i also encountered same problem. dont change the existing Makefile.in(if u have already installed nsallinone) if you do so then u'l encounter problem when running make command. so what i did is, i replaced the current Makefile.in with a new Makefile.in and modified the new Makefile. then run the make comand. i think it'l work fine.else let me knw. mahinthan 2009/8/10 ali bala mrbala...@yahoo..com hi i download 802.11e from tkn and flow the instruction but after ./configure when i run make i see this error whats the reason and way?for solving? pleaes help for installing 802.11e tkn mr.ali.balador homepage:www.balador.org -- B.C.Mahinthan School of Computer Engineering Nanyang Technological University Singapore
[ns] Please help me, how to access C++ variable using tcl.
Hi, I have a variable in Trace class (trace.h). That named ntcCount_ I want to access this variable using tcl: I use bind(ntcCount_, ntcCount_); and in tcl file: set mytrace [new Trace] and get value of this variable: puts value = [$mytrace set ntcCount_] But I Can't. Some error occur. Please help me. thanks === Nguyen Tan Cam 0909.33.25.47 HCMUS === --- On Thu, 7/16/09, ns-users-requ...@isi.edu ns-users-requ...@isi.edu wrote: From: ns-users-requ...@isi.edu ns-users-requ...@isi.edu Subject: Ns-users Digest, Vol 67, Issue 15 To: ns-users@ISI.EDU Date: Thursday, July 16, 2009, 7:00 AM Send Ns-users mailing list submissions to ns-users@isi.edu To subscribe or unsubscribe via the World Wide Web, visit http://mailman.isi.edu/mailman/listinfo/ns-users or, via email, send a message with subject or body 'help' to ns-users-requ...@isi.edu You can reach the person managing the list at ns-users-ow...@isi.edu When replying, please edit your Subject line so it is more specific than Re: Contents of Ns-users digest... Today's Topics: 1. Droptail queue per-flow rate limiting using TokenBucket (or other mechanism?) (Prajjwal Devkota) 2. Fw: security enhancement in AODV (S.M.Mehdi Feiz) 3. Calculate Delay (Thavouth Khoun) 4. problems with monitor-queue (Tom G) 5. define PAN Co-ordinator in star topology for WSN (Ravit Sachasiri) 6. fyi - rough multiagents + ns2 code (kanishka azimi) -- Message: 1 Date: Tue, 14 Jul 2009 20:05:28 -0500 From: Prajjwal Devkota prajj...@gmail.com Subject: [ns] Droptail queue per-flow rate limiting using TokenBucket (or other mechanism?) To: ns-users@ISI.EDU Message-ID: 71561c940907141805u4cb4b649i6df90def67f8...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 Hi list, I am currently doing some ethernet level rate limiting simulations using ns-2. I had been doing my simulations with a simple DropTail queue (by physically changing the link rate), but now, I am trying to see if I can apply a Token Bucket implementation to support multiple flows in a simple manner. I have been searching the mailing list to I can find pointers on getting started, as well as some of the ns-2 code (using a source browser), but I have generally only found references to Diffserv. I did notice that ns-2 does have a TokenBucket class implemented though. However, as far as I can see, diffserv seems to be the only one referencing this class. I came across this discussion on the ns users mailing list at http://mailman.isi.edu/pipermail/ns-users/2005-June/050699.html and the conclusion seems to be that using Diffserv with the queue mode being specified as DropTail was what a solution. My rate limiting simply requires token bucket mechanism: once I know the flow-id, I will have to do token bucket rate limiting myself. As per my understanding, diffserv is a class based qos mechanism, not a flow based one. Is looking into diffserv a good choice, or is there a better solution, or one that might be more appropriate for my requirements? I would appreciate any pointers that you could offer on this. Thank you very much for your help! -- Message: 2 Date: Wed, 15 Jul 2009 00:00:23 -0700 (PDT) From: S.M.Mehdi Feiz smmf...@yahoo.com Subject: [ns] Fw: security enhancement in AODV To: ns2-mailing list ns-users@ISI.EDU Message-ID: 766676.6917...@web62102.mail.re1.yahoo.com Content-Type: text/plain; charset=us-ascii --- On Wed, 7/15/09, S.M.Mehdi Feiz smmf...@yahoo.com wrote: From: S.M.Mehdi Feiz smmf...@yahoo.com Subject: To: ns2-mailing list ns-users@ISI.EDU Date: Wednesday, July 15, 2009, 11:25 AM hi all I want to add security enhancement for aodv routing in ns2. how can i add security in AODV? please, help me. Thanks Mehdi Feiz -- Message: 3 Date: Wed, 15 Jul 2009 01:36:40 -0700 (PDT) From: Thavouth Khoun thavouth.nsu...@yahoo.com Subject: [ns] Calculate Delay To: nsusers ns-users@ISI.EDU Message-ID: 490892.49419...@web111602.mail.gq1.yahoo.com Content-Type: text/plain; charset=us-ascii Hi all, I want to calculate the delay from the following trace file and print it. Please help me! The first line is the start time and last line is end time. s 40.045779727 _3_ MAC --- 0 PRRQ 54 [0 3 0] r 40.046211758 _1_ MAC --- 0 PRRQ 54 [0 3 0] s 40.046421758 _1_ MAC --- 0 PRRP 76 [0 3 1 f105] r 40.047029789 _3_ MAC --- 0 PRRP 76 [0 3 1 f105] s 40.047039789 _3_ MAC --- 0 ACK 40 [0 1 0 0] r 40.047359819 _1_ MAC --- 0 ACK 40 [0 1 0 0] s 40.048309789 _3_ MAC --- 752 cbr 270 [14a 0 3 800] --- [3:0 5:0 32 0] [752] 0 0 s 40.049444698 _3_ MAC --- 752 cbr 270 [14a 0 3
Re: [ns] Please help me I want tio monitor queue size on lan
Hi all, I am trying to measure the average queue delays over all the nodes in an ethernet setup under ns. Since the ethernet setup is not a typical link to link setup but a shared medium one, how should I be measuring the queue delays ? thanks for any help, Prince
[ns] Please help me, I want to count the number of packet, that the intermediate node recieved.
Hello Ubaid, Hello everyone, I want to count the number of packet that is received (forwarded) on the intermediate node. Node0_Node3___Node4 / / / / Node2_/ I want to count on node3, when I sent some packet from node0 and node1 to node 4. I try modify udp.cc with recv(). But I don't know, what function to get node ID of the packet pkt, that function recv() received. I try used pkt-txinfo_.getNode().nodeid(), but occur a error. It note that, this is not mobile structure. Please help me, I use a normal node. Thank you very much. === Nguyen Tan Cam HCMUS ===
[ns] Please help me print the path that packet go through.
Hello everyone, I have a topology: Node2___Node3 / \ / \ node0Node1 Node5__Node6 \ / \_Node4___/ (Node0 link to node1, node1 link to node2, node1 link to node4, node2 link to node3, node3 link to node5, node4 link to node5, node5 link to node6 ) I sent some packet from Node0 to Node6, When I received any packet on node6, I want to print the path that this packet go through. (example: Packet1:Node0-Node1-Node4-Node5-Node6) Thank you so much. === Nguyen Tan Cam HCMUS ===
[ns] Please help me, I want to count the number of packet, that the intermediate node recieved.
Hi everyone, I have the problem when I try to count the number of packet, that the intermediate node received. I have a topology, that have 4 nodes (following figure): node1_Node3___Node4 / / / / node2__/ That mean, Node1 link to Node3 Node2 link to Node3 Node3 link to Node4 I have two agent that send packet from Node1 to Node4 and Node2 to node4. (example Node1 ping node4 and Node2 ping Node4). Of course, all of packet through Node3 before arrive node4. My problem is: I want to count the number of packet, that Node3 (intermediate node) received during Node1 sent packet to node4 and node2 sent packet to node4. I use NS2 version 2.33 for Redhat Linux 4.0 Thank you so much. === Nguyen Tan Cam HCMUS ===
[ns] Please help me: initial energy of a node
Hello all, I have tried to collect the information of initial energy of a node using the trace information s 0.000665000 _19_ MAC --- 0 AODV 55 [0 13 800] [energy *0.04*ei 0.000 es 0.000 et 0.000 er 0.000] --- [19:255 -1:255 30 0] [0x2 1 1 [6 0] [19 4]] (REQUEST) or N -t 0.000665 -n 23 -e 0.999414 I set in the tcl file initial energy as 1. Anybody knows why the initial energy is *0.04* or 0.999414 It is better to use initial energy as hard code (= 1) in the awk file to get this information??? Anybody has an reliable example? Please help me! Thanks!
[ns] please help me with this problem
i'm new user to NS2, i have installed the NS2 ns-allinone-2.31 package under the shell of Cygwin over windows xp and there is no problem appeared in the installation but when i try to run a ns program this error appear $ nam: [code omitted because of length] no event type or button # or keysym while executing bind Listbox MouseWheel { %W yview scroll [expr {- (%D / 120) * 4}] units } invoked from within if {[tk windowingsystem] eq classic || [tk windowingsystem] eq aqua} { bind Listbox MouseWheel { %W yview scroll [expr {- (%D)}] units } bind Li... where is the problem? is the problem from the source of ns-allinone-2.31 or the problem in the installation of the NS ns-allinone-2.31 package or the package is not complete and how can i solve this problem I have installed the Cygwin and NS2 3 times and it took along time :'( so please help me thanx for your help pavan
Re: [ns] Please help me to solve my issue in ns2
Hi, I don't think you want to classify packets in mac layer. Instead, you want your packets to be submitted to aodv. Thus, in aodv.cc, you need to identify your packets in AODV::recv(Packet *p). In fact, as you know, all packets first arrive at such a recv function in any layer. So if you want to do anything about your packets, it should be in this function. Then how to identify your packets you need to register your packet header in common/packet.h then you can set hdr_cmn and use it to identify your packets and do something. hdr_cmn *ch = HDR_CMN(p) when you send a packet, set the packet type as yours, when you recv it in aodv if(ch-ptype() == PT_YOUR_TYPE) { recvMYPACKT(p); //change to execute your code instead of recvAODV(p) return; } Detailed how to register your header can be referred to Implementing a New Manet Unicast Routing Protocol in NS2 see the needed changes part. BTW, how to suppress duplicate packets I have sent. I do not want to read aodv code if you already know. Best, Pei Mubashir Rehmani [EMAIL PROTECTED] wrote: Hello Daniel I hope that you are fine. I need your help to resolve my problem in ns2. Basically i am using AODV.cc and as you know that AODV has many types of packets like HELLO, RREQ etc. I have declared my own packet header in AODV.cc and i used it for unicasting. Now the problem is that when i send my own packet from source to destination in AODV.cc then first this packet is received in MAC 802.11.cc file in the recv_timer() function and then in this recv_timer() function all the packets are classified. For instance if the packet is Control like RTS/CTS/ACK then recv_timer() call functions like recvRTS() etc etc. and if the packet is data packet, as Hello or my own packet then it just check whether it is data packet or not and just call the recvDATA() packet in mac-802.11.cc and then this function send packet to upword layer to recv() function that is present in AODV.cc file. Then further action is taken place and packets are being dropped there. Now my problem is that when i send my own packet from particular source to destination then at the mac layer all the nodes that are in the communication range will listen this packet and discard them at the mac layer (control packets) but if the packet is data packet, in the mac layer it will not classify the data packet, instead it will just check whether it is a data packet or not and then forward it to upper layer. What i want to do is that at the mac layer, in the recv_timer() function, the mac layer should classify the data packet and if it found that at the mac layer that this is a data packet and of type HELLO or RREQ then discard them or if it is my own data packet type then forward it to upper layer. I hope you understand my question. Thanks in advance. Regards -- Mubashir Husain Rehmani Mobile : 00 33 (0)6 32 00 89 35 __ 赶快注册雅虎超大容量免费邮箱? http://cn.mail.yahoo.com
[ns] please help me multi-channel multi-interface [ns-2.29]
Hello respect NS-users, when I simulated followed this website: http://www.cse.msu.edu/~wangbo1/ns2/ (Bo Wang's website), But, I got the error messages since implemented $ns twoflows-1channel.tcl: invalid command name if{0}{ while executing if{[info exists channel2_]}{ (procedure _o3 line 45) (Simulator node-config line 45) invoked from within $ns_ node-config -channel $chan_6_ \ -channel2 $chan_1_ \ - - please advice for me!!! Thank you so much in advance. Best regards, ByungJoon Oh,
[ns] Please help me emergency!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Hi all In wireless scenario that picture of this show at below Node 0 is sender and node 24 is receiver I want to use UDP agent for this nodes I use follow code for this purpose Please tell me is the following file correct and suitable? Why the CBR interval has not effect on time when the nodes' energy is finished? picture of nam file that show my topology is : http://rapidshare.com/files/70500344/Screenshot.png I'm waiting for your reply very thanks -- Amin Irandoost # == # Define options # == #set val(lifetime) 4000; set opt(chan) Channel/WirelessChannel set opt(prop) Propagation/TwoRayGround set opt(netif) Phy/WirelessPhy set opt(mac)Mac/SMAC set opt(ifq)Queue/DropTail/PriQueue set opt(ll) LL set opt(ant)Antenna/OmniAntenna set opt(x) 200.0 ;# X dimension of the topography set opt(y) 200.0 ;# Y dimension of the topography set opt(ifqlen) 50 ;# max packet in ifq set opt(seed) 0.0 set opt(tr) 2.tr ;# trace file set opt(nam)2.nam set opt(adhocRouting) AODV set opt(nn) 25 ;# how many nodes are simulated set opt(energymodel)EnergyModel set opt(stop) 4000.0;# simulation time set val(initialenergy) 300.0 set val(receivepower) 0.395 ;# Receiving Power set val(transmitpower) 0.660 ;# Transmitting Power set val(idlepower) 0.350 ;# Idle Power set val(sleeppower) 0.001 ;# sleep Power LL set bandwidth_ 20kb # = # unity gain, omni-directional antennas # set up the antennas to be centered in the node and 1.5 meters above it Antenna/OmniAntenna set X_ 0 Antenna/OmniAntenna set Y_ 0 Antenna/OmniAntenna set Z_ 1.5 Antenna/OmniAntenna set Gt_ 1.0 Antenna/OmniAntenna set Gr_ 1.0 # Initialize the SharedMedia interface with parameters to make # it work like the 914MHz Lucent WaveLAN DSSS radio interface Phy/WirelessPhy set CPThresh_ 10.0 Phy/WirelessPhy set CSThresh_ 1.559e-11 Phy/WirelessPhy set RXThresh_ 2.13643e-07 Phy/WirelessPhy set Rb_ 2*1e6 Phy/WirelessPhy set Pt_ 0.281838 Phy/WirelessPhy set freq_ 9.14e+8 Phy/WirelessPhy set L_ 1.0 proc finish {} { global ns_ tracefd namtrace $ns_ flush-trace close $namtrace close $tracefd puts \n running nam...\n # exec nam 1.nam exit 0 } # AMAC settings Mac/SMAC set syncFlag_ 1; # sleep wakeup cycles Mac/SMAC set dutyCycle_ 60 set ns_[new Simulator] $ns_ use-scheduler Heap $ns_ set WirelessNewTrace_ ON set topo[new Topography] set tracefd[open $opt(tr) w] set namtrace[open $opt(nam) w] $ns_ trace-all $tracefd $topo load_flatgrid $opt(x) $opt(y) $ns_ namtrace-all-wireless $namtrace 200.0 200.0 set cha [new $opt(chan)] # # Create god # create-god $opt(nn) $ns_ node-config -adhocRouting $opt(adhocRouting) \ -llType $opt(ll) \ -macType $opt(mac) \ -ifqType $opt(ifq) \ -ifqLen $opt(ifqlen) \ -antType $opt(ant) \ -propType $opt(prop) \ -phyType $opt(netif) \ -channel $cha \ -topoInstance $topo \ -WiredRouting OFF \ -energyModel $opt(energymodel) \ -idlePower $val(idlepower) \ -rxPower $val(receivepower) \ -txPower $val(transmitpower) \ -sleepPower $val(sleeppower) \ -initialEnergy $val(initialenergy) \ -agentTrace ON \ -routerTrace OFF \ -macTrace OFF set j 0 set k 0 for {set i 0} {$i $opt(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0;# disable random motion if {$i%5==0} { set j [expr $j+20] if {$i!=0} { set k 0} } $node_($i) set X_ [set k [expr $k+20]] $node_($i) set Y_ $j $node_($i) set Z_ 0.0 } for { set j 0} { $j $opt(nn)} {incr j} { $ns_ initial_node_pos $node_($j) 2 $node_($j) color blue $node_($j) log-energy } *for { set j 0} { $j $opt(nn)} {incr j} { set udp_($j) [new Agent/UDP] $ns_ attach-agent $node_($j) $udp_($j) } set null_(0) [new Agent/Null] $ns_ attach-agent $node_([expr $opt(nn)-1]) $null_(0)* *set cbr [new Application/Traffic/CBR] $cbr set packetSize_ 50 $cbr set interval_ 3.0 $cbr attach-agent $udp_(0) $ns_ connect $udp_(0) $null_(0) $ns_ at 50.0 $cbr star*t # # Tell all the nodes when the simulation ends # for {set i 0} {$i $opt(nn) } {incr i} { $ns_ at $opt(stop) $node_($i)
Re: [ns] please help me to install IEEE 802.11e HCCA.
Hi BJ To make the number 4 of process you should make the following: you should save the patch in a file archive for example into the /home and then you go to the terminal and executing the following command: cd /home/ns-allinone-2.29/ns-2.29 when you make this, you enter to working directory of ns-2.29, then, from this working directory you should search the patch that you saved in /home and apply it by executing the following command: gzip -dc /home/ns2hcca-2.29-060823.patch.gz | patch -Np1 then, from the working directory of ns-2.29 you should execute the following commands: ./configue make clean make best regards Jorge Bustos ByungJoon Oh wrote: Dear All NS-users, I try to install ns2hcca source code decribed with website: http://info.iet.unipi.it/~cng/ns2hcca/ However, I can't install about that. As described this website, I have followed the precedure of installation. But, I can't make sense of Number 4 of process. (attached by pic file). please advice me to get a clue. Thank you in advance. Best regards, BJ, -- View this message in context: http://www.nabble.com/please-help-me-to-install-IEEE-802.11e-HCCA.-tf4250733.html#a12171329 Sent from the ns-users mailing list archive at Nabble.com.
[ns] please help me to install IEEE 802.11e HCCA.
Dear All NS-users, I try to install ns2hcca source code decribed with website: http://info.iet.unipi.it/~cng/ns2hcca/ However, I can't install about that. As described this website, I have followed the precedure of installation. But, I can't make sense of Number 4 of process. (attached by pic file). please advice me to get a clue. Thank you in advance. Best regards, BJ,
[ns] Please help me about H.264 video transmission over IEEE 802.11e.
Dear All users, I like to test H.264 video transmission over IEEE 802.11e EDCA. However, I have got some error that is segmentation dump error. I don't know what is happening. If someone know where the performing test tcl file is, please teach me about that. otherwise, one who figure out this problem help me to solve out this transmission fault. let me learn about that. Thank you eveyone in advance. Best regards, BJ,
[ns] please help me about hierarchical routing
Hello everyone, I am a student doing my project about routing with different address scheme. Now I have encountered some problems when I try to implement DV routing protocol in a network with hierarchical addresses: 1. The protocol can only be implemented on some nodes, rather than the whole network. If implemented to all nodes, it will report the following error info: --- Classfier::no-slot{} default handler (tcl/lib/ns-lib .tcl) --- _o19: no target for slot 0 _o19 type: Classifier/Addr content dump: classifier _o19 0 offset 11 shift 2047 mask 1 slots slot 0: _o20 (Classifier/Addr) -- Finished standard no-slot{} default handler – 2. When implement the protocol on some nodes, the routing table size of these nodes did change. However, there’s no trace of the type “rtprotoDV” in the trace file. So I am really confused. If there’s no rtprotoDV packet, how could the table size changes? 3.The chapter of hierarchical routing in the ns2 manual says the table size would be smaller when hierarchical addresses are used, but the results seem to be the same. Since I am running out of time, it is very urgent. So I hope someone could help me a little. Thank you all in advance. Below is my ns2 script. Thank you very much for spending your time on my problems. set ns [new Simulator] $ns set-address-format hierarchical $ns namtrace-all [open ./ownegs/dkh/nHIER.nam w] $ns trace-all [open ./ownegs/dkh/tHIER.tr w] #topology # AddrParams set domain_num_ 2 lappend cluster_num 3 3 AddrParams set cluster_num_ $cluster_num lappend eilastlevel 1 3 3 1 3 3 AddrParams set nodes_num_ $eilastlevel set naddr { 0.0.0 0.1.0 0.1.1 0.1.2 0.2.0 0.2.1 0.2.2 1.0.0 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 } for {set i 0} {$i 14} {incr i} { set n($i) [$ns node [lindex $naddr $i]] #lappend nodelist $n($i) } lappend nodelist $n(0) $n(8) ### $ns rtproto DV $nodelist ### $ns duplex-link $n(0) $n(1) 5Mb 2ms DropTail $ns duplex-link $n(0) $n(4) 5Mb 2ms DropTail $ns duplex-link $n(1) $n(2) 5Mb 2ms DropTail $ns duplex-link $n(1) $n(3) 5Mb 2ms DropTail #$ns duplex-link $n(3) $n(4) 5Mb 2ms DropTail $ns duplex-link $n(4) $n(5) 5Mb 2ms DropTail $ns duplex-link $n(4) $n(6) 5Mb 2ms DropTail $ns duplex-link $n(0) $n(7) 5Mb 2ms DropTail # $ns duplex-link $n(7) $n(8) 5Mb 2ms DropTail $ns duplex-link $n(7) $n(11) 5Mb 2ms DropTail $ns duplex-link $n(8) $n(9) 5Mb 2ms DropTail $ns duplex-link $n(8) $n(10) 5Mb 2ms DropTail $ns duplex-link $n(11) $n(12) 5Mb 2ms DropTail $ns duplex-link $n(11) $n(13) 5Mb 2ms DropTail ### #label routing table size in the nam ## $ns at 1.0 {$n(0) label [$n(0) set rtsize_]} $ns at 1.0 {$n(1) label [$n(1) set rtsize_]} $ns at 1.0 {$n(2) label [$n(2) set rtsize_]} $ns at 1.0 {$n(3) label [$n(3) set rtsize_]} $ns at 1.0 {$n(4) label [$n(4) set rtsize_]} $ns at 1.0 {$n(5) label [$n(5) set rtsize_]} $ns at 1.0 {$n(6) label [$n(6) set rtsize_]} $ns at 1.0 {$n(7) label [$n(7) set rtsize_]} $ns at 1.0 {$n(8) label [$n(8) set rtsize_]} $ns at 1.0 {$n(9) label [$n(9) set rtsize_]} $ns at 1.0 {$n(10) label [$n(10) set rtsize_]} $ns at 1.0 {$n(11) label [$n(11) set rtsize_]} $ns at 1.0 {$n(12) label [$n(12) set rtsize_]} $ns at 1.0 {$n(13) label [$n(13) set rtsize_]} ## $ns at 3.5 finish proc finish {} { global ns n $ns flush-trace ##puts running nam... #exec nam ./ownegs/dkh/nHIER.nam exit 0 } $ns run -- View this message in context: http://www.nabble.com/please-help-me-about-hierarchical-routing-tf4075384.html#a11582603 Sent from the ns-users mailing list archive at Nabble.com.
[ns] Please help me: A problem when I get Instance of Routing Agent AODV????
HELLO, I want to reach a memeber variable in aodv to modify in Mac. For this reason I get instance of Routing Agent AODV as explain in website Veiled how I recovered this variable: In file mac_802-11.h I added: #include aodv/aodv.h In file mac_802-11.cc I added: void Mac802_11::recvDATA(Packet *p) { . AODV* aodvagent; int i= index_; char command[256]; sprintf(command, foreach aodvagent [Agent/AODV info instances]\ {\nif { [$aodvagent id] == %d} {\nset i $aodvagent}}\nset t $i\n, i); Tcl tcl = Tcl::instance(); tcl.eval(command); const char* ref = tcl.result(); aodvagent = (AODV*)tcl.lookup(ref); . } but when I execute the script tcl, I found ns: foreach aodvagent [Agent/AODV info instances]{ if { [$aodvagent id] == 5} { set i $aodvagent}} set t $i : wrong # args: should be foreach varList list ?varList list ...? command while executing foreach aodvagent [Agent/AODV info instances]{ and the execution stopped. Please Where is the problem. Thank you in advance _ Découvrez le Blog heroic Fantaisy d'Eragon! http://eragon-heroic-fantasy.spaces.live.com/
[ns] Please help me: A problem when I get Instance of Routing Agent AODV????
HELLO, I want to reach a member variable of the class AODV and to modify it in MAC_802-11. For this reason I get instance of Routing Agent AODV as explain in website Veiled how I recovered this variable: In file mac_802-11.h I added: #include aodv/aodv.h In file mac_802-11.cc I added: void Mac802_11::recvDATA(Packet *p) { . AODV* aodvagent; int i= index_; char command[256]; sprintf(command, foreach aodvagent [Agent/AODV info instances]\ {\nif { [$aodvagent id] == %d} {\nset i $aodvagent}}\nset t $i\n, i); Tcl tcl = Tcl::instance(); tcl.eval(command); const char* ref = tcl.result(); aodvagent = (AODV*)tcl.lookup(ref); . } but when I execute the script tcl, I found ns: foreach aodvagent [Agent/AODV info instances]{ if { [$aodvagent id] == 5} { set i $aodvagent}} set t $i : wrong # args: should be foreach varList list ?varList list ...? command while executing foreach aodvagent [Agent/AODV info instances]{ and the execution stopped. Please Where is the problem. Thank you in advance _ Personnalisez votre Messenger avec Live.com http://www.windowslive.fr/livecom/
Re: [ns] please help me , i m getting error when i introduce new packet, have tried all possibilities
modify cmutrace.cc mahi kapoor wrote: hello everyone i have introduced a new packet checkloop in maodv but when i run a tcl script regarding maodv getting error format_aodv:invalid AODV packet type also i have done a little change in mact pkt. format. i m attaching two files related to it. please help me regards mahi - Check out what you're missing if you're not on Yahoo! Messenger /* Copyright (c) 1997, 1998 Carnegie Mellon University. All Rights Reserved. Permission to use, copy, modify, and distribute this software and its documentation is hereby granted (including for commercial or for-profit use), provided that both the copyright notice and this permission notice appear in all copies of the software, derivative works, or modified versions, and any portions thereof, and that both notices appear in supporting documentation, and that credit is given to Carnegie Mellon University in all publications reporting on direct or indirect use of this code or its derivatives. ALL CODE, SOFTWARE, PROTOCOLS, AND ARCHITECTURES DEVELOPED BY THE CMU MONARCH PROJECT ARE EXPERIMENTAL AND ARE KNOWN TO HAVE BUGS, SOME OF WHICH MAY HAVE SERIOUS CONSEQUENCES. CARNEGIE MELLON PROVIDES THIS SOFTWARE OR OTHER INTELLECTUAL PROPERTY IN ITS ``AS IS'' CONDITION, AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE OR INTELLECTUAL PROPERTY, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Carnegie Mellon encourages (but does not require) users of this software or intellectual property to return any improvements or extensions that they make, and to grant Carnegie Mellon the rights to redistribute these changes without encumbrance. The AODV code developed by the CMU/MONARCH group was optimized and tuned by Samir Das and Mahesh Marina, University of Cincinnati. The work was partially done in Sun Microsystems. */ #ifndef __aodv_packet_h__ #define __aodv_packet_h__ //#include config.h //#include aodv.h #define AODV_MAX_ERRORS 100 /* = Packet Formats... = */ #define AODVTYPE_HELLO0x01 #define AODVTYPE_RREQ 0x02 #define AODVTYPE_RREP 0x04 #define AODVTYPE_RERR 0x08 #define AODVTYPE_RREP_ACK 0x10 /*** added for multicast ***/ #define AODVTYPE_GRPH 0x06 #define AODVTYPE_MACT 0x05 //done by me /// #define AODVTYPE_CHECKLOOP0x12 /***/ /*** added for prediction in multicast***/ #define AODVTYPE_WARN 0x07 #define AODVTYPE_LPW0x09 #define AODVTYPE_RPE0x03 #define AODVTYPE_LINK_RREQ 0x11 // /* * AODV Routing Protocol Header Macros */ #define HDR_AODV(p) ((struct hdr_aodv*)hdr_aodv::access(p)) #define HDR_AODV_REQUEST(p) ((struct hdr_aodv_request*)hdr_aodv::access(p)) #define HDR_AODV_REPLY(p) ((struct hdr_aodv_reply*)hdr_aodv::access(p)) #define HDR_AODV_ERROR(p) ((struct hdr_aodv_error*)hdr_aodv::access(p)) #define HDR_AODV_RREP_ACK(p) ((struct hdr_aodv_rrep_ack*)hdr_aodv::access(p)) /*** added for multicast ***/ #define HDR_AODV_GRPH(p) ((struct hdr_aodv_grph*)hdr_aodv::access(p)) #define HDR_AODV_MACT(p) ((struct hdr_aodv_mact*)hdr_aodv::access(p)) #define HDR_AODV_CHECKLOOP(p) ((struct hdr_aodv_checkloop*)hdr_aodv::access(p)) /***/ /*** added for prediction***/ #define HDR_AODV_WARN(p)((struct hdr_aodv_warn*)hdr_aodv::access(p)) #define HDR_AODV_REQUEST_LINK(p) ((struct hdr_aodv_request_link *)hdr_aodv::access(p)) #define HDR_AODV_RPE(p) ((struct hdr_aodv_rpe *)hdr_aodv::access(p)) #define HDR_AODV_LPW(p) ((struct hdr_aodv_lpw *)hdr_aodv::access(p)) /**/ /* * General AODV Header - shared by all formats */ struct hdr_aodv { u_int8_tah_type; /* u_int8_tah_reserved[2]; u_int8_tah_hopcount; */ // Header access methods static int offset_; // required by PacketHeaderManager inline
[ns] please help me , i m getting error when i introduce new packet, have tried all possibilities
hello everyone i have introduced a new packet checkloop in maodv but when i run a tcl script regarding maodv getting error format_aodv:invalid AODV packet type also i have done a little change in mact pkt. format. i m attaching two files related to it. please help me regards mahi - Check out what you're missing if you're not on Yahoo! Messenger /* Copyright (c) 1997, 1998 Carnegie Mellon University. All Rights Reserved. Permission to use, copy, modify, and distribute this software and its documentation is hereby granted (including for commercial or for-profit use), provided that both the copyright notice and this permission notice appear in all copies of the software, derivative works, or modified versions, and any portions thereof, and that both notices appear in supporting documentation, and that credit is given to Carnegie Mellon University in all publications reporting on direct or indirect use of this code or its derivatives. ALL CODE, SOFTWARE, PROTOCOLS, AND ARCHITECTURES DEVELOPED BY THE CMU MONARCH PROJECT ARE EXPERIMENTAL AND ARE KNOWN TO HAVE BUGS, SOME OF WHICH MAY HAVE SERIOUS CONSEQUENCES. CARNEGIE MELLON PROVIDES THIS SOFTWARE OR OTHER INTELLECTUAL PROPERTY IN ITS ``AS IS'' CONDITION, AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE OR INTELLECTUAL PROPERTY, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Carnegie Mellon encourages (but does not require) users of this software or intellectual property to return any improvements or extensions that they make, and to grant Carnegie Mellon the rights to redistribute these changes without encumbrance. The AODV code developed by the CMU/MONARCH group was optimized and tuned by Samir Das and Mahesh Marina, University of Cincinnati. The work was partially done in Sun Microsystems. */ #ifndef __aodv_packet_h__ #define __aodv_packet_h__ //#include config.h //#include aodv.h #define AODV_MAX_ERRORS 100 /* = Packet Formats... = */ #define AODVTYPE_HELLO 0x01 #define AODVTYPE_RREQ 0x02 #define AODVTYPE_RREP 0x04 #define AODVTYPE_RERR 0x08 #define AODVTYPE_RREP_ACK 0x10 /*** added for multicast ***/ #define AODVTYPE_GRPH 0x06 #define AODVTYPE_MACT 0x05 //done by me /// #define AODVTYPE_CHECKLOOP 0x12 /***/ /*** added for prediction in multicast***/ #define AODVTYPE_WARN 0x07 #define AODVTYPE_LPW0x09 #define AODVTYPE_RPE0x03 #define AODVTYPE_LINK_RREQ 0x11 // /* * AODV Routing Protocol Header Macros */ #define HDR_AODV(p) ((struct hdr_aodv*)hdr_aodv::access(p)) #define HDR_AODV_REQUEST(p) ((struct hdr_aodv_request*)hdr_aodv::access(p)) #define HDR_AODV_REPLY(p) ((struct hdr_aodv_reply*)hdr_aodv::access(p)) #define HDR_AODV_ERROR(p) ((struct hdr_aodv_error*)hdr_aodv::access(p)) #define HDR_AODV_RREP_ACK(p)((struct hdr_aodv_rrep_ack*)hdr_aodv::access(p)) /*** added for multicast ***/ #define HDR_AODV_GRPH(p)((struct hdr_aodv_grph*)hdr_aodv::access(p)) #define HDR_AODV_MACT(p)((struct hdr_aodv_mact*)hdr_aodv::access(p)) #define HDR_AODV_CHECKLOOP(p) ((struct hdr_aodv_checkloop*)hdr_aodv::access(p)) /***/ /*** added for prediction***/ #define HDR_AODV_WARN(p)((struct hdr_aodv_warn*)hdr_aodv::access(p)) #define HDR_AODV_REQUEST_LINK(p) ((struct hdr_aodv_request_link *)hdr_aodv::access(p)) #define HDR_AODV_RPE(p) ((struct hdr_aodv_rpe *)hdr_aodv::access(p)) #define HDR_AODV_LPW(p) ((struct hdr_aodv_lpw *)hdr_aodv::access(p)) /**/ /* * General AODV Header - shared by all formats */ struct hdr_aodv { u_int8_tah_type; /* u_int8_tah_reserved[2]; u_int8_tah_hopcount; */ // Header access methods static int offset_; // required by PacketHeaderManager inline static int offset() { return offset_; } inline static hdr_aodv* access(const Packet* p) { return
[ns] Please help me debug the error in wireless1.tcl and wireless.tcl (Error messages Attached)
Hi ns users, I am facing problems when i try to exceute wireless.tcl,wireless1.tcl and wireless2.tcl can anyone tell what the problem may be and provide a solution. I got the error message when i tried to excecute wireless.tcl found in ns-2.30/tcl/ex/wireless.tcl directory can anyone help debug or suggest a solution for the below problem [EMAIL PROTECTED] hai]$ ns wireless.tcl* *couldn't read file ../lib/ns-bsnode.tcl: no such file or directory* *while executing* *source.orig ../lib/ns-bsnode.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 ../lib/ns-bsnode.tcl* *(file wireless.tcl line 191)* Plz refer the attachment so that u can go through the error messages and suggest some solution as to how to debug the problem . Your Comments and suggestions are most welome Thanks and Reg: Vijay I got the error message when i tried to excecute wireless.tcl found in ns-2.30/tcl/ex/wireless.tcl directory can anyone help debug or suggest a solution for the below problem [EMAIL PROTECTED] hai]$ ns wireless.tcl couldn't read file ../lib/ns-bsnode.tcl: no such file or directory while executing source.orig ../lib/ns-bsnode.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 ../lib/ns-bsnode.tcl (file wireless.tcl line 191) I got the error message when i tried to excecute wireless1.tcl found in wireless1.tcl from Marc Greis' tutorial can anyone help debug or suggest a solution for the below problem [EMAIL PROTECTED] ns-2.30]$ ns wireless1.tcl num_nodes is set 3 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead Loading connection pattern... couldn't read file ../mobility/scene/cbr-3-test: no such file or directory while executing source.orig ../mobility/scene/cbr-3-test (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 $val(cp) (file wireless1.tcl line 121) I got the error message when i tried to excecute wireless2.tcl found in wireless2.tcl from Marc Greis' tutorial can anyone help debug or suggest a solution for the below problem [EMAIL PROTECTED] ns-2.30]$ ns wireless2.tcl num_nodes is set 4 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead *** NOTE: no connection pattern specified. Loading scenario file... couldn't read file ../mobility/scene/scen-3-test: no such file or directory while executing source.orig ../mobility/scene/scen-3-test (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 $opt(sc) invoked from within if { $opt(sc) == } { puts *** NOTE: no scenario file specified. set opt(sc) none } else { puts Loading scenario file... source $op... (file wireless2.tcl line 183)
[ns] Please help me (emergency) (emergency)
hi dear friends when i run my tcl code i get Following error. what is your idea about this error? I'm waiting for your reply Thanks in advance ns: MobileDeployment 5 5 10 20: can't schedule command in past (_o5 cmd line 1) invoked from within _o5 cmd at 0.0 {_o135 start-dsdv} invoked from within catch $self cmd $args ret invoked from within if [catch $self cmd $args ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error error when calling class $cls: $args $... (procedure _o5 line 2) (SplitObject unknown line 2) invoked from within _o5 at 0.0 {_o135 start-dsdv} (eval body line 1) invoked from within eval $scheduler_ at $args (procedure _o3 line 3) (Simulator at line 3) invoked from within $self at 0.0 $ragent start-dsdv (procedure _o3 line 11) (Simulator create-dsdv-agent line 11) invoked from within $self create-dsdv-agent $node (DSDV arm line 2) invoked from within switch -exact $routingAgent_ { DSDV { set ragent [$self create-dsdv-agent $node] } DSR { $self at 0.0 $node start-dsr } AODV { set ragent [$self cre... (procedure _o3 line 11) (Simulator create-wireless-node line 11) invoked from within _o3 create-wireless-node 5 (eval body line 1) invoked from within eval $self create-wireless-node $args (procedure _o3 line 23) (Simulator node line 23) invoked from within $ns_ node $i (procedure MobileDeployment line 7) invoked from within MobileDeployment 5 5 10 20 -- Amin Irandoost
[ns] Please help me (emergency) about reading variable value
hi dear friends how to read variable value of C++ in OTCL?? for example a partial of code are class test:public TclObject{ public: int i; test(); . . .}; test::test(){ bind(i_,i); } in Tcl write this: set te [new test] set x [$te $i???] ?? -- Amin Irandoost
Re: [ns] Please help me
Normally you want to do the opposite: cal otcl in c++ and get the returned string. For that you should use the macros in my file ns_utils.cc http://tagus.inesc-id.pt/~pestrela/ns2/contributed_code.html#_Toc147652229 eg: TCL_EVALF(%s some_instproc %d, name(), MH_iaddr); assert( *TCL_RESULT ); etimip_RO_id = atoi(TCL_RESULT); -- for your particular problem, you should use the Command() interface that all c++ objects have -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Amin Irandoost Sent: terça-feira, 20 de Março de 2007 22:14 To: ns-users@ISI.EDU Subject: [ns] Please help me hi all in general how to capture return value of c++ function in tcl? -- Amin Irandoost
[ns] Please help me to use the PCF NS2 code given by Anders Lindgren
Hi sir/madam, I have to simulate NS2 code for 802.11 MAC PCF . I downloaded code from this site http://www.sm.luth.se/%7Edugdale/index/software.shtml and tried to patch it to ns-2.1b8 .But its not at all patching to NS .I have followed the same procedure given in the READ file. Could you please explain how to simulate that code given by Anders Lindgren.Please help me. Thanking you sir/madam, Thanks in advance, Regards, Tarakapraveen Uppalapati Goud - Heres a new way to find what you're looking for - Yahoo! Answers
Re: [ns] Please help me with IDE
On 7/5/06, Antonella Santovito [EMAIL PROTECTED] wrote: Hello, I'm new to use ns2, so I'm using Eclipse IDE with CDT plugin in order to have a graphical support for writing the code(I have find another faq about this topic), but I'm not able to create a project because I don't know which files I have to include about ns2. I give you some details: I have to develop another Zigbee layer, so I have to include files in wpan_zbr folder which are MAC 802.15.4,and thus my question: which other files I have to include in my project in order to develop another layer in ns? Please if someone can help me I'll appreciate very much. Thanks and sorry for my bad english!! Antonella, I suppose that you put your wpan_zbr folder in ns-allinone-2.29/ns-2.29 folder (so your folder is at the same level with other folders such as mac, routing, tcp, dsdv...). Then you can follow those steps http://mailman.isi.edu/pipermail/ns-users/2006-June/055973.html Good luck, -- Hai-Nam NGUYEN Elève 3A SLR, ENST Bretagne 2 rue de la Châtaigneraie 35576 Cesson Sévigné Site web: http://www.jcisio.com
[ns] please help me
hi, guys I need to know the way for computing pause time, since i read many publication using it, i guess some one of you know about it your help very appreciated saleh
[ns] Please help me!About sctp multihoming on wireless
Hi I tried to simulate sctp on ns-2.28. I have readed the paper on http://www.lib.ncsu.edu/theses/available/etd-05162005-094333/. According to The FAQS of the paper , I modified two parts. 1.$ns_ node-config -wiredRouting OFF 2.commented out the line //Tcl::instance().evalf(\%s no-slot \%ld, name(), cl) in classifier.cc I created multihoming nodes(mobile node) in WLAN . while i execute ... it can not work. Then I configure the mobilenode using $ns_ node-config -multihome-core \ and $MH addif $MH_if0 $MH addif $MH_if1 instead of #$ns_ multihome-add-interface $MH $MH_if0 #$ns_ multihome-add-interface $MH $MH_if1 But Segmentation fault(core dump) occur. Before I have successed ... when use mobilenode without multihoming . But when add multihoming,the data can't be transfer. Please help me. Thank you very much. My script is as following. # Mac/802_11 set dataRate_ 11Mb ;# 802.11b data rate == # Define options # == set opt(chan) Channel/WirelessChannel ;# channel type set opt(prop) Propagation/TwoRayGround ;# radio-propagation model set opt(netif) Phy/WirelessPhy ;# network interface type set opt(mac) Mac/802_11 ;# MAC type set opt(ifq) Queue/DropTail/PriQueue ;# interface queue type set opt(ll) LL ;# link layer type set opt(ant) Antenna/OmniAntenna ;# antenna model set opt(ifqlen) 50 ;# max packet in ifq set opt(nn) 1 ;# number of mobilenodes set opt(adhocRouting) DSDV ;# routing protocol set opt(x) 670 ;# x coordinate of topology set opt(y) 670 ;# y coordinate of topology set opt(seed) 0.0 ;# random seed set opt(ftp-start) 100.0 set opt(cbr-start) 150.0 set opt(stop) 250 ;# time to stop simulation # create simulator instance set ns_ [new Simulator] # set up for hierarchical routing $ns_ node-config -addressType hierarchical AddrParams set domain_num_ 3 lappend cluster_num 2 1 1 AddrParams set cluster_num_ $cluster_num lappend eilastlevel 1 1 2 1 AddrParams set nodes_num_ $eilastlevel set tracefd [open msctp-out.tr w] set namtrace [open msctp-out.nam w] $ns_ use-newtrace $ns_ trace-all $tracefd $ns_ namtrace-all-wireless $namtrace $opt(x) $opt(y) # Here the topography object define set topo [new Topography] $topo load_flatgrid $opt(x) $opt(y) create-god [expr $opt(nn) + 2] #Here wired nodes set temp {0.0.0 0.1.0} for {set i 0} {$i $num_wired_nodes} {incr i} { set W($i) [$ns_ node [lindex $temp $i]] } # Configure for ForeignAgent and HomeAgent nodes $ns_ node-config -mobileIP ON \ -adhocRouting $opt(adhocRouting) \ -llType $opt(ll) \ -macType $opt(mac) \ -ifqType $opt(ifq) \ -ifqLen $opt(ifqlen) \ -antType $opt(ant) \ -propType $opt(prop) \ -phyType $opt(netif) \ -channelType $opt(chan) \ -topoInstance $topo \ -wiredRouting ON \ -agentTrace ON \ -routerTrace OFF \ -macTrace ON set HA [$ns_ node 1.0.0] $HA random-motion 0 # Position (fixed) for base-station nodes (HA FA). $HA set X_ 1. $HA set Y_ 2. $HA set Z_ 0. # Configure a mobilenode $ns_ node-config -multihome-core \ -wiredRouting OFF \ -mobileIP OFF \ -macTrace ON set MH [$ns_ node 0.0.0] set MH_if0 [$ns_ node 1.0.1] $MH addif $MH_if0 #$ns_ multihome-add-interface $MH $MH_if0 set fid_ 2 set HAaddress [AddrParams addr2id [$HA node-addr]] [$MH_if0 set regagent_] set home_agent_ $HAaddress # movement of the Mobile Node $MH set Z_ 0. $MH set Y_ 2. $MH set X_ 2. # links between wired and BaseStation nodes $ns_ duplex-link $W(0) $W(1) 10Mb 5ms DropTail $ns_ duplex-link $W(1) $HA 5Mb 2ms DropTail $ns_ duplex-link-op $W(0) $W(1) orient down $ns_ duplex-link-op $W(1) $HA orient left-down # setup SCTP connections between a wired node and the MobileHost $ns_ node-config -mobileIP OFF set sctp1 [new Agent/SCTP] $sctp1 set class_ 2 $ns_ multihome-attach-agent $MH_if0 $sctp1 set sink1 [new Agent/SCTP] $ns_ attach-agent $W(0) $sink1 $ns_ connect $sctp1 $sink1 $sctp1 force-source $MH_if0 $ns_ at 200.0 $sctp1 force-source $MH_if0 $sctp1 set fid_ 1 set ftp [new Application/FTP] $ftp attach-agent $sctp1 $ftp set packet_size_ 1000 $ftp set rate_ 1mb $ns_ at $opt(ftp-start) $ftp start $ns_ at $opt(stop).0 $HA reset; $ns_ at $opt(stop).0002 puts \NS EXITING...\ ; $ns_ halt $ns_ at $opt(stop).0001 stop $ns_ run -- 電腦與通訊網路實驗室 網路郵局 Open WebMail --- End of Forwarded Message ---
[ns] please help me to simulate attacks on the Ad-hoc networks
Note: forwarded message attached. Send instant messages to your online friends http://in.messenger.yahoo.com
[ns] please help me to simulate attacks on the Ad-hoc networks
Note: forwarded message attached. Send instant messages to your online friends http://in.messenger.yahoo.com
[ns] please help me to simulate attacks on the Ad-hoc networks
Note: forwarded message attached. Send instant messages to your online friends http://in.messenger.yahoo.com
[ns] please help me to simulate attacks on the Ad-hoc networks
Dear all , For a project I need immediate help . Actually I have to simulate some attacks(on ns-2 )possible in the Ad-hoc networks: 1) sink-hole 2) worm-hole 3) Sybil attack 4) Rushing attack 5) Denial-of-Service and Flooding 6) Black Hole What these terms mean , for this purpose I am attaching a document containing basic terms and definitions .Please , it would be very kind of you if you can send me the simulation scripts for any of these (on ns-2) and also the method to run them .Also , let me know if there is any software to run ns-2 on Windows XP I am unable to simulate these attacks because I don't know how to use ns-2(rightnow I am running out of time). I shall be very obliged if you will help me out .Also , I am attaching a document regarding the way I want the output statistics , this paper contains information about the Denial of Service attacks but nowhere the scripts have been provided for simulation. Desperately awaiting your kind reply. With best regards. Ashutosh Srivstava Send instant messages to your online friends http://in.messenger.yahoo.com