[ns] BIC-TCP and CUBIC-TCP in ns-2.29
Hi all, any of you with BIC-TCP and CUBIC-TCP installed under ns-2.29 ?
[ns] problem in wireless phy layer
Hi everyone, I am simulating 802.11. I dont know why the difference between send and receive events at mac layer is coming 599 micro seconds . The trace I included here. s 1.356629577 _0_ MAC --- 943 cbr 584 [13a 1 0 800] --- [0:0 1:0 32 1] [943] 0 0 r 1.357228855 _1_ MAC --- 943 cbr 532 [13a 1 0 800] --- [0:0 1:0 32 1] [943] 1 0 the difference should be somewhere around 250 microseconds. Because PLCPdatarate and basic data rate is 1mbps and mac data rate is 11mbps. I also dont know why packet size is 584, when sending and 532 at receiving. If I have to anlyse source code, which files should I look. I am including my script also. Please somebody help as I badly require it. sandeep. set val(chan) Channel/WirelessChannel;# channel type set val(prop) Propagation/Shadowing;#radio-propagation model set val(netif) Phy/WirelessPhy;# network interface type set val(mac)Mac/802_11 ;# MAC type set val(ifq)Queue/DropTail/PriQueue ;# interface queue type set val(ll) LL ;# link layer type set val(ant)Antenna/OmniAntenna;# antenna model set val(ifqlen) 5 ;# max packet in ifq set val(nn) 2 ;# number of mobilenodes set val(rp) NOAH ;# routing protocol set val(x) 500 set val(y) 500 Phy/WirelessPhy set bandwidth_ 11e6;#Data Rate Antenna/OmniAntenna set Gt_ 1 ;#Transmit antenna gain ;same for WAVELAN Antenna/OmniAntenna set Gr_ 1 ;#Receive antenna gain ;same for WAVELAN Phy/WirelessPhy set L_ 1.0 ;#System Loss Factor Phy/WirelessPhy set freq_ 2.472e9 ;#channel-13 2.472Ghz Phy/WirelessPhy setPt_ 0.031622777 ;#Transmit power ;0.2818 for WAVELAN Phy/WirelessPhy setCPThresh_ 10.0 ;#Collision threshold ;same for 914MHz WaveLAN Phy/WirelessPhy setCSThresh_ 5.011872e-12 ;#Carrier sense power ;1.559e-11 for 914MHz Phy/WirelessPhy setRxThresh_ 5.82587e-09 ;#Receive power threshold calculated under TwoRay ground model ;#3.652e-10 for WAVELAN Phy/WirelessPhy set Rb_ 2*1e6 ;#What is this parameter for 11b, the value given is for WAVELAN Mac/802_11 set RTSThreshold_ 3000 ;#To suppress RTS/CTS Packets increase the rts threshold Mac/802_11 set SlotTime_ 0.20;# 20us Mac/802_11 set SIFS_ 0.10;# 10us Mac/802_11 set PreambleLength_144 ;# 144 bit Mac/802_11 set PLCPHeaderLength_ 48 ;# 48 bits Mac/802_11 set PLCPDataRate_ 1.0e6 ;# 1Mbps Mac/802_11 set dataRate_ 1.0e6 ;# 11Mbps Mac/802_11 set basicRate_ 1.0e6 ;# 1Mbps Application/Traffic/CBR set rate_ 4e6 set ns_ [new Simulator] set tracefd [open 802.11b-1.tr w] $ns_ trace-all $tracefd set na [open 802.11b-1.nam w] $ns_ namtrace-all-wireless $na $val(x) $val(y) set chan1 [new $val(chan)] # set up topography object set topo [new Topography] $topo load_flatgrid 500 500 # # Create God # create-god $val(nn) # configure node $ns_ node-config -adhocRouting $val(rp) \ -llType $val(ll) \ -macType $val(mac) \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -channel $chan1 \ -topoInstance $topo \ -agentTrace ON \ -routerTrace ON \ -macTrace ON \ -movementTrace OFF for {set i 0} {$i $val(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion } # # Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes # $node_(0) set X_ 0 $node_(0) set Y_ 0 $node_(0) set Z_ 0 $node_(1) set X_ 1 $node_(1) set Y_ 1 $node_(1) set Z_ 0 set udp_(0) [new Agent/UDP] $ns_ attach-agent $node_(0) $udp_(0) set null_(0) [new Agent/Null] $ns_ attach-agent $node_(1) $null_(0) set cbr_(0) [new Application/Traffic/CBR] $cbr_(0) set packetSize_ 512 $cbr_(0) attach-agent $udp_(0) $ns_ connect $udp_(0) $null_(0) $ns_ at 1.0 $cbr_(0) start for {set i 0} {$i $val(nn) } {incr i} { $ns_ at 50.0 $node_($i) reset; } $ns_ at 50.0 stop $ns_ at 50.01 $ns_ halt proc stop {} { global ns_ tracefd $ns_ flush-trace close $tracefd } $ns_ run
[ns] routing in ns-2
Hi all, what is the function and the class in which a node verify whether (1) the destination ip addr node is directly connected to the transmitter node and then do an arp request if necessary or (2) do a routing table request to set the approriate mac adress. thanks
[ns] ns-2 mac addresses
Hi all, I have three questions : 1. When, how and by whoom 802.11 dst mac addresses are set ( in term of class and function if possible)? 2. How could we get a nde macc address. What about the case of multiple interfaces ? 3. What's the difference between node id and mac @ ? thank you Best regards Ramzi Tka
[ns] ns-allinone-2.29 over cygwin. error message tcl.8.3.2 configuration failed
Hi, I have just tried to install ns over cygwin. I have downloaded tcl8.3.2, but the problem still goes on. That is the error message generated by install script. Anyone help me as soon as possible ?.. checking system version (for dynamic loading)... ./configure: line 7624: syntax error near unexpected token `)' ./configure: line 7624: ` OSF*)' tcl8.3.2 configuration failed! Exiting ... Tcl is not part of the ns project. Please see www.Scriptics.comhttp://www.scriptics.com/ to see if they have a fix for your platform. Thanks... Emin
[ns] shell script which can run iterative simulation e.g. with increasing no. of wireless stations
Hi all, Have anybody idea how to write shell script which is able to run iterative simulations with increasing the no. of wireless nodes. My Scenario:one base station and wireless node with three priority flows ,wireless nodes are command line argument so they can be increased in every new simulation. I want to plot the throughput vs wireless nodes increasing. regards wajid Send instant messages to your online friends http://uk.messenger.yahoo.com
[ns] Sending packets one by one
How to send just one packet, and how to include a specific data in the body of this packet, and how to chech that packet has been received by the receiver node?
[ns] Lan Switch Implemenation
How to implement lan switch in ns?
Re: [ns] Examining Packet Type
Dear ns Users, I just had a question with regards to analyzing a packet type. I want to keep a running counter in my C++ code of how many packets are of a certain type are passed to Wireless::sendup. But I wanted to know how I can grab that packet type in that function (ie CBR, RTS, etc). Any assistance would be greatly appreciated. Best Regards, Dan Dechene Email: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]
[ns] ns2.26 installation problem
Hi all, Would like to know if any of you encountered this problem before during installation? /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/vector.tcc:384: error: expected unqualified-id before '(' token make: *** [diffusion3/ns/difftimer.0] Error 1 Ns make failed! My installation is almost done until the above problem appears. =( Thank you. Best regards, Karena _ Receive MSN Hotmail alerts over SMS! http://en-asiasms.mobile.msn.com/ac.aspx?cid=1002
Re: [ns] Xgraph basic question
If using xgraph is not a need, you may try gnuplot for ploting your graphs... Regards, Loreno On 10/17/06, Aco [EMAIL PROTECTED] wrote: I am trying to visualize test results using Xgraph. Everything is OK, but I have problem with something that should not be a problem. I cannot find a way how to output graph I got to JPG file. I can make PS, and OBJ file but I need clear JPG picture witout gray background. Anybody can help ?
Re: [ns] ns-allinone-2.29 over cygwin. error message tcl.8.3.2configuration failed
Hi, Maybe you can take a look at this blog http://ravemz.blogspot.com/2006/04/problem-in-installing-ns-2292-allinone.html Besides the 3 files tcl: file tcl8.x.x/unix/tcl.m4. tk: file tk8.x.x/unix/tcl.m4. otcl: file otcl-1.x/configure.in. as mentioned in the blog, i've actually also modified the configure file in each of 3 folders where the line below can be found system=MP-RAS-`awk ' { print $3 } '/etc/.relid'` Hope it helps. regards, Karena From: Emin Gencpinar [EMAIL PROTECTED] To: ns-users@ISI.EDU Subject: [ns] ns-allinone-2.29 over cygwin. error message tcl.8.3.2configuration failed Date: Tue, 17 Oct 2006 12:54:50 +0300 Hi, I have just tried to install ns over cygwin. I have downloaded tcl8.3.2, but the problem still goes on. That is the error message generated by install script. Anyone help me as soon as possible ?.. checking system version (for dynamic loading)... ./configure: line 7624: syntax error near unexpected token `)' ./configure: line 7624: ` OSF*)' tcl8.3.2 configuration failed! Exiting ... Tcl is not part of the ns project. Please see www.Scriptics.comhttp://www.scriptics.com/ to see if they have a fix for your platform. Thanks... Emin _ Find just what you are after with the more precise, more powerful new MSN Search. http://search.msn.com.sg/ Try it now.
[ns] Searching patch for NAM 1.11 on 64-bit architecture
Hi all, I wonder, if anyone might have the patch available for NAM 1.11 and x86_64 architectures? The old link: http://sdrapisarda.altervista.org/download/namx86_64.patch is unfortunately not longer available :( Thanks in advance! Regards, Matthias -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
[ns] Fwd: Help with WFQ-Scheduler for Wireless networks
Hi I am trying to find the Scheduler based on Weighted Fair Queuing for Wireless Networks especially 802.16, but couldn find. Any advice on WFQ Scheduler in NS2 in the latest version??Cud find one which is for ns2.1b6. So for higher versions it might work but not with the patch command but manually.So how do I do that ,if not with the patch command. I dont understand how manually it is to be done. Basically , can someone guide me in making WFQ work for ns2.29. I am new to NS, so sorry if am asking for too much. I would really appreciate if I get a solution. Thanks in advance.
[ns] Recurring Timer Events
I have the following code: class queue; class queueStats : public TimerHandler { public: inline queueStats(Kqueue *q) : TimerHandler() { q_ = q; } private: virtual void expire(Event *); queue* q_; }; void queueStats::expire(Event*) { q_-collectStats(); resched(q_-restatTime()); } class queue : public Queue { public: queue(); void collectStats(); protected: queueStats *qs_; } queue::queue() : qs_(this) { qs-resched(STATS_COLLECT_TIME); } Now, my problem is two fold. Is this the correct way to setup a recurring timer? When I do it this way, The expire event gets called twice for each event which my code cannot handle at present. Why would the code get called twice? Do I need to set the event to some state prior to rescheduling it?
[ns] Problems compiling ns-2.30 with g++ 4.1
Hi all! I am trying to compile ns-2.30 in an linux Ubuntu box with g++ 4.1 and I am having problems with the linker. All the files are compiled correctly but when linking the following message appears: /usr/bin/ld: ns: hidden symbol `__stack_chk_fail_local' in /usr/lib/libc_nonshared.a(stack_chk_fail_local.oS) is referenced by DSO /usr/bin/ld: final link failed: Nonrepresentable section on output collect2: ld returned 1 exit status I have tried compiling as well with g++ 4.0 without success and now I am a bit out of ideas. Any pointers on where to look? This is my version of g++ (GCC) 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5) Thanks for the help! /Nacho --- ,,, (o o) --ooO--(_)---Ooo--- Quantum Mechanics: The dreams stuff is made of. --oo00oo---
Re: [ns] Help: scheduler going backwards in time...problem
I was having a similar problem. I have a queue that I need to drain but the standard methods of sub-classing the Queue class did not get me all the way there. The other problem was that after I implemented my changes I would always get ns: scheduler going backwards in time which abort the simulation. This is the way I solved it. First I changed the scheduler class at this error point to call dumpq. This show me what was in the scheduler waiting to run. Next I added the same info for the current event that was causing the error. This showed me that the event uid was always zero. Since this seems to be an implementation error placing events in the queue. I decided to throw out all uids = 0 as this is not a valid uid. uids will either be positive or negative. The only time that you will have a uid of zero is prior to the event being place in the queue to be scheduled. void Scheduler::dispatch(Event* p, double t) { if ((t clock_) (p-uid_ != 0)) { fprintf(stderr, ns: scheduler going backwards in time from %f to %f.\n, clock_, t); printf(Current Event:\n); printf(t:%f uid: , p-time_); printf(UID_PRINTF_FORMAT, p-uid_); printf( handler: %p\n, p-handler_); dumpq(); abort(); } if (p-uid_ != 0) { // will this kill the sim by not running a handler? clock_ = t; p-uid_ = -p-uid_; // being dispatched p-handler_-handle(p); // dispatch } else { fprintf(stderr, Warning: discarding Event without an a valid id\n); } } On 8/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello: I made some modification on gpsr routing protocol and trying to do some simulation on cbr traffic. When I run the tcl script, an error occured like this: ns: scheduler going backwards in time from from 20.05 to 0.00 Actually I manipulated the GPSR packet and do triangle routing. Each path use standard gpsr. I was wondering if it is related that the packet is somehow changed(but I didn't change it, all I do is to change the source and destination address)? Does anybody has experience on this error? Thanks robin
[ns] what is the usage of add-ifq-send-trace
Hi everybody, Can anyone please explain me the meaning of the below statement. When i use this statement ns gives error. $node_($i) add-ifq-send-trace Thanks in advance, Semra ## Dikkat: Bu elektronik posta mesaji kisisel ve ozeldir. Eger size gonderilmediyse lutfen gondericiyi bilgilendirip mesaji siliniz. Firmamiza gelen ve giden mesajlar virus taramasindan gecirilmekte, guvenlik nedeni ile kontrol edilerek saklanmaktadir. Mesajdaki gorusler ve bakis acisi gondericiye ait olup Aselsan A.S. resmi gorusu olmak zorunda degildir. ## Attention: This e-mail message is privileged and confidential. If you are not the intended recipient please delete the message and notify the sender. E-mails to and from the company are monitored for operational reasons and in accordance with lawful business practices. Any views or opinions presented are solely those of the author and do not necessarily represent the views of the company. ##
[ns] RSSI measurement
Hi All, does anybody know how do I measure the RSSI between two wireless nodes?? As far as I have seen in the archive, this question has been posted during years in this list without any reply. I will be extremelly thankful if somebody had some hint about it. Regards, Loreno
[ns] need help about generating Topology
Hi all, i need help about how can i generate a mobile network topology based on Geometric Graphs as example RNG graph or Yao Graph. Thanks in advance Ghada