Re: [ns] nam: command not found
Hi everybody, Thanks for the e-mails. ./make is not working. make is giving me the following error. I would appreciate any advice on fixing this. /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXext.so when searching for -lXext /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXext.a when searching for -lXext /usr/bin/ld: cannot find -lXext collect2: ld returned 1 exit status make: *** [nam] Error 1 Arvind On Dec 18, 2007 1:19 AM, Jonathan Guerin <[EMAIL PROTECTED]> wrote: > You will need to go into the nam directory and then type: > ./configure > then > make depend > then > make clean > > If you see any error messages, that will be why nam isn't working. > > > On Dec 18, 2007 5:02 PM, Arvind Swaminathan <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > Thanks for your replies. I was able to find the nam directory but > > not the nam executable. These are the only files with the word nam in > > it in that directory. None of them are executable. > > > > -rw-r--r-- 1 a0866510 drp 23537 Feb 23 1998 nam.1 > > -rw-r--r-- 1 a0866510 drp 1022 Nov 7 1998 nam.h > > -rw-r--r-- 1 a0866510 drp 21814 Jun 16 1997 nam.tcl.tk > > -rw-r--r-- 1 a0866510 drp 14646 Jul 12 2002 nam_stream.cc > > -rw-r--r-- 1 a0866510 drp 4181 May 14 2001 nam_stream.h > > -rw-rw-r-- 1 a0866510 drp 36416 Dec 5 12:10 nam_stream.o > > > > Could some of you check to see if you have an executable called nam in > > your directories? If yes, where is it? > > > > Thanks, > > Arvind > > > > > > On Dec 17, 2007 9:48 PM, Md. Atiur Rahman Siddique <[EMAIL PROTECTED]> > > wrote: > > > > > > the all in one pack contains nam. > > > it is located at ns/bin/nam > > > > > > -Atiur > > > > > > --- Arvind Swaminathan <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > Hi, > > > > > > > > Do I have to install nam separately? Or does the ns-allinone install > > > > install nam also? > > > > > > > > When I type in nam from any directory, I always get a nam: command not > > > > found error. > > > > > > > > I would appreciate any help in this matter. > > > > > > > > Thanks, > > > > Arvind > > > > > > > > > > > > > > > > > > > > > > > > > > Be a better friend, newshound, and > > > know-it-all with Yahoo! Mobile. Try it now. > > > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > > > > > > > > > > > > > > -- > Jonathan Guerin > [EMAIL PROTECTED] >
Re: [ns] nam: command not found
- Yes, You have to go in the nam directory (inside the ns-allinone) and in there issue ./configure and make -Fk On Dec 18, 2007 3:00 AM, < [EMAIL PROTECTED]> wrote: > > -- Forwarded message -- > From: "Arvind Swaminathan" < [EMAIL PROTECTED]> > To: ns-users@ISI.EDU > Date: Mon, 17 Dec 2007 12:14:03 -0600 > Subject: [ns] nam: command not found > Hi, > > Do I have to install nam separately? Or does the ns-allinone install > install nam also? > > When I type in nam from any directory, I always get a nam: command not > found error. > > I would appreciate any help in this matter. > > Thanks, > Arvind > > -- Filippos Kolovos Software Systems Analyst & Engineer M.Sc. (Eng.) in Data Communications Automation & Networking Department University of Macedonia Library Egnatia 156, P.O.Box 1591 540 06 Thessaloniki, Greece E-Mail: [EMAIL PROTECTED], [EMAIL PROTECTED] Profile: http://www.linkedin.com/in/filipposkolovos ---
[ns] wireless trace
Hi everybody, I have several questions about the 802.11 model. I would really appreciate any help. I want to run the wireless simulations in infrastructure mode. That is, all the packets should go through AP. Is it enough if I turn Routing to dumbAgent? Also, is there any way to get information about the type of MAC packet (RTS, CTS, DATA, ACK) etc. printed in the trace? Also, what does it mean to have a -Hd value of -1 (as seen in the line below) s -t 0.036705082 -Hs 2 -Hd -1 -Ni 2 -Nx 6.00 -Ny 6.00 -Nz 0.00 -Ne -1.00 -Nl MAC -Nw --- -Ma 65 -Md 0 -Ms 2 -Mt 800 -Is 2.255 -Id -1.255 -It message -Il 70 -If 0 -Ii 1 -Iv 32 Thanks, Arvind
Re: [ns] set: Variable name must begin with a letter.
Hi Atiur, It was my mistake. I made some mistake while copying it to linux. Arvind On Dec 17, 2007 9:47 PM, Md. Atiur Rahman Siddique <[EMAIL PROTECTED]> wrote: > > I ran your tcl file without any problem. Which line is it complaining about? > > > --- Arvind Swaminathan <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > When I run the first example in the NS by example (hosted by Worcester > > Polytechnic Inst.), I get the following error message > > > > set: Variable name must begin with a letter. > > > > How do I make tcl give me a more detailed error message (line number etc.)? > > > > The tcl script is below. I would really appreciate it if someone could > > tell me what the problem is. > > > > > > #Create a simulator object > > set ns [new Simulator] > > > > #Define different colors for data flows (for NAM) > > $ns color 1 Blue > > $ns color 2 Red > > > > #Open the NAM trace file > > set nf [open out.nam w] > > $ns namtrace-all $nf > > > > #Define a 'finish' procedure > > proc finish {} { > > global ns nf > > $ns flush-trace > > #Close the NAM trace file > > close $nf > > #Execute NAM on the trace file > > exec nam out.nam & > > exit 0 > > } > > > > #Create four nodes > > set n0 [$ns node] > > set n1 [$ns node] > > set n2 [$ns node] > > set n3 [$ns node] > > > > #Create links between the nodes > > $ns duplex-link $n0 $n2 2Mb 10ms DropTail > > $ns duplex-link $n1 $n2 2Mb 10ms DropTail > > $ns duplex-link $n2 $n3 1.7Mb 20ms DropTail > > > > #Set Queue Size of link (n2-n3) to 10 > > $ns queue-limit $n2 $n3 10 > > > > #Give node position (for NAM) > > $ns duplex-link-op $n0 $n2 orient right-down > > $ns duplex-link-op $n1 $n2 orient right-up > > $ns duplex-link-op $n2 $n3 orient right > > > > #Monitor the queue for link (n2-n3). (for NAM) > > $ns duplex-link-op $n2 $n3 queuePos 0.5 > > > > > > #Setup a TCP connection > > set tcp [new Agent/TCP] > > $tcp set class_ 2 > > $ns attach-agent $n0 $tcp > > set sink [new Agent/TCPSink] > > $ns attach-agent $n3 $sink > > $ns connect $tcp $sink > > $tcp set fid_ 1 > > > > #Setup a FTP over TCP connection > > set ftp [new Application/FTP] > > $ftp attach-agent $tcp > > $ftp set type_ FTP > > > > > > #Setup a UDP connection > > set udp [new Agent/UDP] > > $ns attach-agent $n1 $udp > > set null [new Agent/Null] > > $ns attach-agent $n3 $null > > $ns connect $udp $null > > $udp set fid_ 2 > > > > #Setup a CBR over UDP connection > > set cbr [new Application/Traffic/CBR] > > $cbr attach-agent $udp > > $cbr set type_ CBR > > $cbr set packet_size_ 1000 > > $cbr set rate_ 1mb > > $cbr set random_ false > > > > > > #Schedule events for the CBR and FTP agents > > $ns at 0.1 "$cbr start" > > $ns at 1.0 "$ftp start" > > $ns at 4.0 "$ftp stop" > > $ns at 4.5 "$cbr stop" > > > > #Detach tcp and sink agents (not really necessary) > > $ns at 4.5 "$ns detach-agent $n0 $tcp ; $ns detach-agent $n3 $sink" > > > > #Call the finish procedure after 5 seconds of simulation time > > $ns at 5.0 "finish" > > > > #Print CBR packet size and interval > > puts "CBR packet size = [$cbr set packet_size_]" > > puts "CBR interval = [$cbr set interval_]" > > > > #Run the simulation > > $ns run > > > > > > Thanks, > > Arvind > > > > > > > > > > Looking for last minute shopping deals? > Find them fast with Yahoo! Search. > http://tools.search.yahoo.com/newsearch/category.php?category=shopping > >
Re: [ns] nam: command not found
Hi, Thanks for your replies. I was able to find the nam directory but not the nam executable. These are the only files with the word nam in it in that directory. None of them are executable. -rw-r--r-- 1 a0866510 drp 23537 Feb 23 1998 nam.1 -rw-r--r-- 1 a0866510 drp 1022 Nov 7 1998 nam.h -rw-r--r-- 1 a0866510 drp 21814 Jun 16 1997 nam.tcl.tk -rw-r--r-- 1 a0866510 drp 14646 Jul 12 2002 nam_stream.cc -rw-r--r-- 1 a0866510 drp 4181 May 14 2001 nam_stream.h -rw-rw-r-- 1 a0866510 drp 36416 Dec 5 12:10 nam_stream.o Could some of you check to see if you have an executable called nam in your directories? If yes, where is it? Thanks, Arvind On Dec 17, 2007 9:48 PM, Md. Atiur Rahman Siddique <[EMAIL PROTECTED]> wrote: > > the all in one pack contains nam. > it is located at ns/bin/nam > > -Atiur > > --- Arvind Swaminathan <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > Do I have to install nam separately? Or does the ns-allinone install > > install nam also? > > > > When I type in nam from any directory, I always get a nam: command not > > found error. > > > > I would appreciate any help in this matter. > > > > Thanks, > > Arvind > > > > > > > > > > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > >
Re: [ns] transmit power - does it really control transmission range?
The transmission range depends on the transmitted power, propagation model and recv thershold. So, yes, I think all the nodes are not connnect with these values. -Atiur --- "Sita S. Krishnakumar" <[EMAIL PROTECTED]> wrote: > > > > Hi, > > I am working with a sparsely connected network in a 200m by 200m field. > > The default transmit power of 0.281838 corresponds to a 250m transmission > > range. I have a node in the center with this Pt_ and when it sends out > > packets, all the nodes in the network do not seem to receive it. Why? > > > > On a separate note, setting CsThresh_ and RxThresh_ does limit the the > > sensing range and receiving range of the nodes (which I have at 20m). Does > > this in any way cause the impediment? > > > > Thanks, > > Sita > > > > > > > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Re: [ns] nam: command not found
the all in one pack contains nam. it is located at ns/bin/nam -Atiur --- Arvind Swaminathan <[EMAIL PROTECTED]> wrote: > > Hi, > > Do I have to install nam separately? Or does the ns-allinone install > install nam also? > > When I type in nam from any directory, I always get a nam: command not > found error. > > I would appreciate any help in this matter. > > Thanks, > Arvind > > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Re: [ns] set: Variable name must begin with a letter.
I ran your tcl file without any problem. Which line is it complaining about? --- Arvind Swaminathan <[EMAIL PROTECTED]> wrote: > > Hi, > > When I run the first example in the NS by example (hosted by Worcester > Polytechnic Inst.), I get the following error message > > set: Variable name must begin with a letter. > > How do I make tcl give me a more detailed error message (line number etc.)? > > The tcl script is below. I would really appreciate it if someone could > tell me what the problem is. > > > #Create a simulator object > set ns [new Simulator] > > #Define different colors for data flows (for NAM) > $ns color 1 Blue > $ns color 2 Red > > #Open the NAM trace file > set nf [open out.nam w] > $ns namtrace-all $nf > > #Define a 'finish' procedure > proc finish {} { > global ns nf > $ns flush-trace > #Close the NAM trace file > close $nf > #Execute NAM on the trace file > exec nam out.nam & > exit 0 > } > > #Create four nodes > set n0 [$ns node] > set n1 [$ns node] > set n2 [$ns node] > set n3 [$ns node] > > #Create links between the nodes > $ns duplex-link $n0 $n2 2Mb 10ms DropTail > $ns duplex-link $n1 $n2 2Mb 10ms DropTail > $ns duplex-link $n2 $n3 1.7Mb 20ms DropTail > > #Set Queue Size of link (n2-n3) to 10 > $ns queue-limit $n2 $n3 10 > > #Give node position (for NAM) > $ns duplex-link-op $n0 $n2 orient right-down > $ns duplex-link-op $n1 $n2 orient right-up > $ns duplex-link-op $n2 $n3 orient right > > #Monitor the queue for link (n2-n3). (for NAM) > $ns duplex-link-op $n2 $n3 queuePos 0.5 > > > #Setup a TCP connection > set tcp [new Agent/TCP] > $tcp set class_ 2 > $ns attach-agent $n0 $tcp > set sink [new Agent/TCPSink] > $ns attach-agent $n3 $sink > $ns connect $tcp $sink > $tcp set fid_ 1 > > #Setup a FTP over TCP connection > set ftp [new Application/FTP] > $ftp attach-agent $tcp > $ftp set type_ FTP > > > #Setup a UDP connection > set udp [new Agent/UDP] > $ns attach-agent $n1 $udp > set null [new Agent/Null] > $ns attach-agent $n3 $null > $ns connect $udp $null > $udp set fid_ 2 > > #Setup a CBR over UDP connection > set cbr [new Application/Traffic/CBR] > $cbr attach-agent $udp > $cbr set type_ CBR > $cbr set packet_size_ 1000 > $cbr set rate_ 1mb > $cbr set random_ false > > > #Schedule events for the CBR and FTP agents > $ns at 0.1 "$cbr start" > $ns at 1.0 "$ftp start" > $ns at 4.0 "$ftp stop" > $ns at 4.5 "$cbr stop" > > #Detach tcp and sink agents (not really necessary) > $ns at 4.5 "$ns detach-agent $n0 $tcp ; $ns detach-agent $n3 $sink" > > #Call the finish procedure after 5 seconds of simulation time > $ns at 5.0 "finish" > > #Print CBR packet size and interval > puts "CBR packet size = [$cbr set packet_size_]" > puts "CBR interval = [$cbr set interval_]" > > #Run the simulation > $ns run > > > Thanks, > Arvind > > Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
[ns] transmit power - does it really control transmission range?
> Hi, > I am working with a sparsely connected network in a 200m by 200m field. > The default transmit power of 0.281838 corresponds to a 250m transmission > range. I have a node in the center with this Pt_ and when it sends out > packets, all the nodes in the network do not seem to receive it. Why? > > On a separate note, setting CsThresh_ and RxThresh_ does limit the the > sensing range and receiving range of the nodes (which I have at 20m). Does > this in any way cause the impediment? > > Thanks, > Sita > >
[ns] nam: command not found
Hi, Do I have to install nam separately? Or does the ns-allinone install install nam also? When I type in nam from any directory, I always get a nam: command not found error. I would appreciate any help in this matter. Thanks, Arvind
[ns] set: Variable name must begin with a letter.
Hi, When I run the first example in the NS by example (hosted by Worcester Polytechnic Inst.), I get the following error message set: Variable name must begin with a letter. How do I make tcl give me a more detailed error message (line number etc.)? The tcl script is below. I would really appreciate it if someone could tell me what the problem is. #Create a simulator object set ns [new Simulator] #Define different colors for data flows (for NAM) $ns color 1 Blue $ns color 2 Red #Open the NAM trace file set nf [open out.nam w] $ns namtrace-all $nf #Define a 'finish' procedure proc finish {} { global ns nf $ns flush-trace #Close the NAM trace file close $nf #Execute NAM on the trace file exec nam out.nam & exit 0 } #Create four nodes set n0 [$ns node] set n1 [$ns node] set n2 [$ns node] set n3 [$ns node] #Create links between the nodes $ns duplex-link $n0 $n2 2Mb 10ms DropTail $ns duplex-link $n1 $n2 2Mb 10ms DropTail $ns duplex-link $n2 $n3 1.7Mb 20ms DropTail #Set Queue Size of link (n2-n3) to 10 $ns queue-limit $n2 $n3 10 #Give node position (for NAM) $ns duplex-link-op $n0 $n2 orient right-down $ns duplex-link-op $n1 $n2 orient right-up $ns duplex-link-op $n2 $n3 orient right #Monitor the queue for link (n2-n3). (for NAM) $ns duplex-link-op $n2 $n3 queuePos 0.5 #Setup a TCP connection set tcp [new Agent/TCP] $tcp set class_ 2 $ns attach-agent $n0 $tcp set sink [new Agent/TCPSink] $ns attach-agent $n3 $sink $ns connect $tcp $sink $tcp set fid_ 1 #Setup a FTP over TCP connection set ftp [new Application/FTP] $ftp attach-agent $tcp $ftp set type_ FTP #Setup a UDP connection set udp [new Agent/UDP] $ns attach-agent $n1 $udp set null [new Agent/Null] $ns attach-agent $n3 $null $ns connect $udp $null $udp set fid_ 2 #Setup a CBR over UDP connection set cbr [new Application/Traffic/CBR] $cbr attach-agent $udp $cbr set type_ CBR $cbr set packet_size_ 1000 $cbr set rate_ 1mb $cbr set random_ false #Schedule events for the CBR and FTP agents $ns at 0.1 "$cbr start" $ns at 1.0 "$ftp start" $ns at 4.0 "$ftp stop" $ns at 4.5 "$cbr stop" #Detach tcp and sink agents (not really necessary) $ns at 4.5 "$ns detach-agent $n0 $tcp ; $ns detach-agent $n3 $sink" #Call the finish procedure after 5 seconds of simulation time $ns at 5.0 "finish" #Print CBR packet size and interval puts "CBR packet size = [$cbr set packet_size_]" puts "CBR interval = [$cbr set interval_]" #Run the simulation $ns run Thanks, Arvind
[ns] meaning about seed????
1. I have simple question What is definition about seed, and what different effect if we use seed =0.25 / seed =1.0 2. if we have 2 wired destination, 2 router how to calcullate the receives number if we send packets from wireless node to wired node. I was calcullate this value with set ($4=="0" || $4=="1"|| $=="2" || $4=="3") but give me PDF/delivery ratio over 100% what can I do suppose me please. I am very glad with your suggestion STTTELKOM - Bergabunglah dengan orang-orang yang berwawasan, di bidang Anda di Yahoo! Answers