Re: [ns] installing ns2.29
hi all i finally installed ns2.29 on FC6. i just used from ns2.29.3 instead of ns2.29 :-) and it installed without any error. in ns2.29 i received this error: "checking system version (for dynamic loading)... ./configure: line 7624: syntax error near unexpected token ')' ./configure: line 7624: ' OSF*)' regards, elahe - Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.
Re: [ns] Marck Grei's Tutorial
hi Mukul, There is also another useful tutorial for beginners (it helped me alot). it is : "ns simulator for beginners" (2003). regards, elahe - Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out.
[ns] Need help coming up with script for scenario
Hi everyone... Pls I'm working on a project which involves carrying out experiments on a VoIP core network...based on QoS performance metrics...jitter, latency, bandwidth consumption, e.t.c I wanna connect 3-4 WAN models to the core network... The core network consists of routers which routes packets amongst the different WANs... Pls can someone give me or suggest a tcl script depicting VoIP traffic in such a scenario? I'm carrying out a perfomance evaluation between ATM core network and Gigabit Ethernet core network...using QoS parameters as performance metrics Thanks. regards, Brenda
[ns] Noob wants to view trace files
can someone tell me how to view trace files after a simulation has run? Thanks
[ns] URGENT: Problem using Rayleigh/Ricean Model
Dear NS Users: In my simulation, there are two wireless nodes MR and MH. The sender (FH) is connected to the Base Station (BS). The BS is connected to MR via wireless link. MR in turn connected with MH via wireless link. So, any packet transmitted from BS must go through MR and MR will forward the packet to MH. I am using Rayleigh fading model (or Ricean model) for the wireless channels. Unfortunately, the packets from BS are directly received by MH without needing to go through MR. If i use tworay/shadowing models then there is no problem. But I have to use Rayleigh fading model (or Ricean model). I am attaching the code here. Please help. Thanks in advance Regards Bhaskar Sardar set opt(chan) Channel/WirelessChannel ;# channel type set opt(prop) Propagation/Ricean ;# Ricean fading 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) 5000 ;# max packet in ifq set opt(nn) 2 ;# number of mobilenodes set opt(adhocRouting) DSDV ;# routing protocol set opt(cp) "" ;# cp file not used set opt(sc) "" ;# node movement file. set opt(x) 500 ;# x coordinate of topology set opt(y) 500 ;# y coordinate of topology set opt(seed) 0.0 ;# random seed set opt(stop) 400 ;# time to stop simulation set opt(ftp1-start) 100.0 set num_wired_nodes 1 set newMHChannel Channel/WirelessChannel $newMHChannel set delay_ 5ms $newMHChannel set bandwidth_ 11Mb set newMRChannel Channel/WirelessChannel $newMRChannel set delay_ 20ms $newMRChannel set bandwidth_ 2Mb Antenna/OmniAntenna set Gt_ 1 ;# transmitter antenna gain Antenna/OmniAntenna set Gr_ 1 ;# receiver antenna gain Phy/WirelessPhy set CPThresh_ 10.0 ;# capture threshold Phy/WirelessPhy set CSThresh_ 3.1622777e-12 ;# Carrier Sensing threshold Phy/WirelessPhy set RXThresh_ 3.1622777e-11 ;# receiver signal threshold #Phy/WirelessPhy set bandwidth_ 11Mb ;# channel bandwidth (UNUSED!) Phy/WirelessPhy set Pt_ 0.01 ;# transmitter signal power (Watt) Phy/WirelessPhy set freq_ 2.4e9 ;# channel frequency (Hz) 1.0 Phy/WirelessPhy set L_ 1.0 # == # check for boundary parameters and random seed if { $opt(x) == 0 || $opt(y) == 0 } { puts "No X-Y boundary values given for wireless topology\n" } if {$opt(seed) > 0} { puts "Seeding Random number generator with $opt(seed)\n" ns-random $opt(seed) } # create simulator instance set ns_ [new Simulator] # set up for hierarchical routing $ns_ node-config -addressType hierarchical AddrParams set domain_num_ 2 ;# number of domains lappend cluster_num 1 2 ;# number of clusters in each domain AddrParams set cluster_num_ $cluster_num lappend eilastlevel 1 2 1 ;# number of nodes in each cluster AddrParams set nodes_num_ $eilastlevel ;# of each domain set tracefd [open abc.tr w] set namtrace [open abc.nam w] $ns_ trace-all $tracefd $ns_ namtrace-all-wireless $namtrace $opt(x) $opt(y) # Create topography object set topo [new Topography] # define topology $topo load_flatgrid $opt(x) $opt(y) # create God # 2 for HA and FA create-god [expr $opt(nn) + 1] #create wired nodes set temp {0.0.0} ;# hierarchical addresses for {set i 0} {$i < $num_wired_nodes} {incr i} { set W($i) [$ns_ node [lindex $temp $i]] } # Configure for HomeAgent node $ns_ node-config -mobileIP ON \ -adhocRouting $opt(adhocRouting) \ -llType $opt(ll) \ -macType $opt(mac) \ -ifqType $opt(ifq) \ -ifqLen $opt(ifqlen) \ -antType $opt(ant) \ -propInstance [new $opt(prop)] \ -phyType $opt(netif) \ -channelType $newMRChannel \ -topoInstance $topo \ -wiredRouting ON \ -agentTrace ON \ -routerTrace ON \ -macTrace OFF # only for Ricean propagation set prop_inst [$ns_ set propInstance_] $prop_inst MaxVelocity 34; $prop_inst RiceanK 0; $prop_inst LoadRiceFile "rice_table.txt"; # Create HA set HA [$ns_ node 1.0.0] $HA random-motion 0 # Position (fixed) for base-station nodes (HA & FA). $HA set X_ 300. $HA set Y_ 400. $HA set Z_ 0. $ns_ node-config -wiredRouting OFF $ns_ node-config -channelType $newMRChannel $ns_ node-config -llType $mropt(ll) set MR [$ns_ node 1.0.1] set node_(0) $MR set HAaddress [AddrParams addr2id [$HA node-addr]] [$MR set regagent_] set home_agent_ $HAaddress $ns_ node-config -channelType $newMHChannel $ns_ node-config -llType $newopt(ll) set MH [$ns_ node 1.1.1] set node_(1) $MH set HAaddress [AddrParams addr2id [$HA node-addr]] [$MH set regagent_] set home_agent_ $HAaddress # position of the MR $MR set Z_ 0. $MR set Y_ 300.00 $MR set X_ 300.00 $MR random-motion 0 # position of the MH $MH set Z_ 0. $MH set Y_ 175.000 $MH set X_ 300.000 $MH random-motion 0 # create links between wired and BaseSta
[ns] Creation of new Network Stack in NS2
Hi I am trying to simulate a network in which the network stack is significantly different from the OSI stack. Can this be done using NS-2 ? Mohit
[ns] Need help executing tcl scripts
Hi there..Please I need your helpI installed ns perfectly and following all PATH instructions well and validated perfectlyhowever when I try to run a tcl script, I get the following error... [EMAIL PROTECTED]:~/Network-Simulator/ns-allinone-2.32-rc2/ns-2.32/tcl/ex> ns % ns example.tcl warning: using backward compatibility mode error when calling class OldSim: example.tcl % Can you pls help... I use a 64-bit processor on a 64-bit version of OpenSuse 10.2 when I try to configure nam, I get the following error; when I type ./configure, I get the following; [EMAIL PROTECTED]:~/Network-Simulator/ns-allinone-2.32-rc2/nam-1.13> su Password: Victor:/home/mavor/Network-Simulator/ns-allinone-2.32-rc2/nam-1.13 # make clean rm -f nam tkcompat.o tkUnixInit.o xwd.o netview.o netmodel.o edge.o packet.o node.o main.o trace.o queue.o drop.o animation.o agent.o feature.o route.o transform.o paint.o state.o monitor.o anetmodel.o random.o rng.o view.o graphview.o netgraph.o tracehook.o lan.o psview.o group.o editview.o tag.o address.o animator.o wnetmodel.o nam_stream.o enetmodel.o testview.o parser.o trafficsource.o lossmodel.o queuehandle.o gen/version.o gen/nam_tcl.o gen/version.c gen/nam_tcl.cc core core.nam Victor:/home/mavor/Network-Simulator/ns-allinone-2.32-rc2/nam-1.13 # ./configure checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes No .configure file found in current directory Continuing with default options... checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ANSI C... (cached) none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ANSI C header files... (cached) yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for string.h... (cached) yes checking for main in -lXbsd... no checking for socket in -lsocket... no checking for gethostbyname in -lnsl... yes checking for dcgettext in -lintl... no checking for getnodebyname in -ldnet_stub... no checking that g++ can handle -O2... no checking for zlib.h... -I/usr/include checking for libz1.1.4... -L/usr/lib -lz checking for X11 header files checking for X11 library archive checking for XOpenDisplay in -lX11... yes checking for XShmAttach in -lXext... yes checking for tcl.h... -I../include checking for libtcl8.4... -L../lib -ltcl8.4 checking for init.tcl... ../lib/tcl8.4 checking for tclsh8.4.14... no checking for tclsh8.4... ../bin/tclsh8.4 checking for tk.h... -I../include checking for libtk8.4... -L../lib -ltk8.4 checking for tk.tcl... ../lib/tk8.4 checking for libtcldbg... no checking for otcl.h... -I../otcl checking for libotcl1.13... -L../otcl -lotcl checking for tclcl.h... -I../tclcl-1.19 checking for libtclcl... -L../tclcl-1.19 -ltclcl checking for tcl2c++... ../tclcl-1.19 checking return type of random... long checking for int8_t... yes checking for int16_t... yes checking for int32_t... yes checking for u_int8_t... yes checking for u_int16_t... yes checking for u_int32_t... yes checking for strtoq... yes checking for strtoll... yes checking for long... yes checking size of long... 8 checking for strtol... yes checking for __int64_t... no checking for long long... yes checking for int64_t... yes checking which kind of 64-bit int to use... int64_t checking for snprintf... yes No explicit static compilation flag; setting V_STATIC to "" checking for dlopen in -ldl... yes checking for a BSD-compatible install... /usr/bin/install -c configure: creating ./config.status config.status: creating Makefile config.status: creating autoconf.h config.status: autoconf.h is unchanged Victor:/home/mavor/Network-Simulator/ns-allinone-2.32-rc2/nam-1.13 # make rm -f tkcompat.o; gcc -o tkcompat.o -c -Wall -DTCL_TK -DNO_VOID -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H -DHAVE_LIBZ1_1_4 -DHAVE_ZLIB_H -I. -I/home/mavor/Network-Simulator/ns-allinone-2.32-rc2 /tclcl-1.19 -I/home/mavor/Network-Simulator/ns-allin
[ns] Error Message: warning: using backward compatibility mode error when calling class OldSim: example1b.tcl
Hi there, I'm trying to run a tcl script called example1b.tcl, and everytime I tr to un it I get the following error below. [EMAIL PROTECTED]:~/Network-Simulator/ns-allinone-2.32-rc2/ns-2.32/tcl/ex> ns % ns example1b.tcl warning: using backward compatibility mode error when calling class OldSim: example1b.tcl Can someone pls help? I've been googling for a solution for over one hour but no luck Thanks. regards, Brenda
[ns] calculate packet S/R/D/F, delay, etc
hi.. does anybody have a sample script that can calculate packet S/R/D/F, delay, throughput, jitter and etc for each node for ..tcl/ex/wireless.tcl. All of the sample script just calculate the sum of the packet, not for each node. many thanks.. My system : FC 6 2.6.18-1.2869.fc6 ns2.30 - Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.
[ns] How can I make communicated between 802.11 and 802.15.4
Dear All I set a one node is 802.15.4 node and another one is 802.11 which I config a difference Mac and PHY . But they can not receive any packet , Why? May I have some suggestion. Best regard