--- On Mon, 2/8/10, Mohit Tahiliani <mohit.ni...@yahoo.com> wrote: From: Mohit Tahiliani <mohit.ni...@yahoo.com> Subject: Few AWK scripts are available here To: ns-users@ISI.EDU Date: Monday, February 8, 2010, 10:00 AM Hello Maimoon, You can find AWK scripts on the following link: http://mohittahiliani.blogspot.com/2009/12/awk-script-for-ns2.html and few more will be uploaded soon. Hope it helps. Regards, Mohit P. Tahiliani --- On Sat, 2/6/10, 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 74, Issue 5 To: ns-users@ISI.EDU Date: Saturday, February 6, 2010, 6:30 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. need of awk scripts (maimoon begum) 2. syntax error in awk scripts (maimoon begum) 3. NS2/VanetMobiSim traffic generation using TIGER data sets (Mustafa Kamal) 4. Leach implementation in NS2 (Aakash) 5. Delay in the wifi (Gabriel Novy) 6. 802.11s patch in ns2.29 (meriem bouzouita) 7. error on installing ns-2.33 after patched with Ns2mesh80216(IEEE 802.16d Wireless Mesh Networks simulation) (rpavan) 8. how to simulate wireless mesh networks using ns-2.34 (rpavan) 9. Directed broadcast (waqar haq) 10. regarding performance measures (gayathri devi) ---------------------------------------------------------------------- Message: 1 Date: Fri, 5 Feb 2010 13:56:52 +0530 (IST) From: maimoon begum <maimoonnim...@yahoo.co.in> Subject: [ns] need of awk scripts To: ns-users@ISI.EDU Message-ID: <938321.7251...@web95408.mail.in2.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Hi all, I need the awk scripts for calculating packet delivery ratio, average end to end delay, and energy consumption in AODV simulation scenario using new trace file format.... As I am short of time schedule... any one help little faster kindly...... thank u ...... With Regards, ???????? H.Maimoon Begum The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/ ------------------------------ Message: 2 Date: Fri, 5 Feb 2010 14:56:19 +0530 (IST) From: maimoon begum <maimoonnim...@yahoo.co.in> Subject: [ns] syntax error in awk scripts To: ns-users@ISI.EDU Message-ID: <124655.29053...@web95406.mail.in2.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 I?tried this script........... Its coming that syntax error... ? anyone can help this... ? ? BEGIN??? { ???????????? sends=0; ???????????? recvs=0; ???????????? routing_packets=0.0; ???????????? droppedPackets=0; ???????????? highest_packet_id =0; ???????????? sum=0; ???????????? recvnum=0; ?????????? } ??????? { ??????? time = $3; ??????? packet_id = $41; ????????? ??????? # CALCULATE PACKET DELIVERY FRACTION ??????? if (( $1 == "s") &&? ( $35 == "tcp" ) && ( $19=="AGT" )) { sends++; } ????????? ??????? else if (( $1 == "r") &&? ( $35 == "tcp" ) && ( $19=="AGT" ))?? { recvs++; } ????????? ??????? # CALCULATE DELAY ??????? if ( start_time[packet_id] == 0 ){? ??start_time[packet_id] = time; ?} ??????? else if (( $1 == "r") &&? ( $35 == "tcp" ) && ( $19=="AGT" )) { ???end_time[packet_id] = time;? } ???????????? else {? end_time[packet_id] = -1;? } ?END {??? ?for(i in end_time ) ? ??????? { ??????? start = start_time[i]; ??????? end = end_time[i]; ??????? packet_duration = end - start; ??????? if ( packet_duration > 0 )?? ??????? {??? sum += packet_duration; ???????????? recvnum++; ??????? } ??????? } ????????? ?????????? delay=sum/recvnum; ?????????? PDF = (recvs/sends)*100;? #packet delivery ratio[fraction] ?????????? printf("send = %.2f\n",sends); ?????????? printf("recv = %.2f\n",recvs); ?????????? printf("routingpkts = %.2f\n",routing_packets++); ?????????? printf("PDF = %.2f\n",PDF);? ?????????? printf("Average e-e delay(ms)= %.2f\n",delay*1000); ?????????? printf("No. of dropped data (packets) =? %d\n",droppedPackets); ?? } With Regards, ???????? H.Maimoon Begum Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! http://downloads.yahoo.com/in/internetexplorer/ ------------------------------ Message: 3 Date: Fri, 5 Feb 2010 03:17:31 -0800 (PST) From: Mustafa Kamal <contact.joar...@yahoo.com> Subject: [ns] NS2/VanetMobiSim traffic generation using TIGER data sets To: NS2 Users <ns-users@ISI.EDU> Message-ID: <84096.13105...@web45615.mail.sp1.yahoo.com> Content-Type: text/plain; charset=us-ascii Hi, I am working with VanetMobiSim. Can anyone specify any guide/example/tutorial where I can able to find how to use TIGER data set files in VanetMobiSim to generate traffic movement files for NS2? Regards, Mustafa Kamal Stafffordshire University, UK ------------------------------ Message: 4 Date: Fri, 5 Feb 2010 20:43:58 +0530 From: Aakash <aakashdav...@gmail.com> Subject: [ns] Leach implementation in NS2 To: ns-users@ISI.EDU Message-ID: <a0671e481002050713x143becb3i284bb65c044ce...@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 Dear NS2 users, This is my first mail to all the users. I have chosen programming in NS2 as my final year project.I have been using NS for only a few months.After reading the basic tutorials and implementing some scenarios.I want to implement various protocols such as LEACH etc. After trying from the pdf and the material provided i am not able to "*Implement Leach protocol in NS2.33"*. *The specific error where i am stuck is when after following all the steps of implementing leach one has to rebuild NS.When i give the command sudo make install(to rebuild) an error occurs and the process stops.The error is in the different c++ files and even after correcting some of the errors(by commenting them) the problem persists.* * * I would be glad if anyone can help me out with the problem. To those who have implemented leach plz help me out. ------------------------------ Message: 5 Date: Fri, 5 Feb 2010 07:37:44 -0800 (PST) From: Gabriel Novy <gabrieln...@yahoo.com.br> Subject: [ns] Delay in the wifi To: ns-users@ISI.EDU Message-ID: <95006.20166...@web65614.mail.ac4.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 I'm sorry by my english but i'm not speak english. I'm simulate a scenario wifi in th NS2 but when I insert many users the delay continues low. Whats the problem? This is my script: set val(chan)?????????? Channel/WirelessChannel??? ;# Tipo do canal set val(prop)?????????? Propagation/TwoRayGround?? ;# Modelo de propaga??o de r?dio set val(netif)????????? Phy/WirelessPhy??????????? ;# Tipo de interface da rede set val(mac)??????????? Mac/802_11???????????????? ;# Tipo de camada MAC set val(ifq)??????????? Queue/DropTail???????????? ;# Tipo da interface da pilha set val(ll)???????????? LL???????????????????????? ;# Tipo da camada de enlace set val(ant)??????????? Antenna/OmniAntenna??????? ;# Modelo da antena set val(ifqlen)???????? 50??????????????????????? ;# M?ximo valor de pacotes na pilha set val(nn)???????????? 4????????????????????????? ;# N?mero de n?s na rede set val(rp)???????????? DumbAgent????????????????? ;# Protocolo de roteamneto set val(x)????????????? 600 set val(y)????????????? 600 Mac/802_11 set dataRate_ 1Mb # Initialize Global Variables set ns_???????? [new Simulator] set tracefd???? [open infra.tr w] $ns_ trace-all $tracefd # set up topography object set topo?????? [new Topography] $topo load_flatgrid $val(x) $val(y) # Create God create-god $val(nn) # Create channel set chan_1_ [new $val(chan)] $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) \ ??????????????? -topoInstance $topo \ ??????????????? -agentTrace OFF \ ??????????????? -routerTrace OFF \ ??????????????? -macTrace ON \ ??????????????? -movementTrace ON \ ??????????????? -channel $chan_1_ ???? for {set i 0} {$i < [expr $val(nn)]} {incr i} { ??????????????? set node_($i) [$ns_ node] ??????????????? $node_($i) random-motion 0????????????? ;# disable random motion ??????????????? set mac_($i) [$node_($i) getMac 0] ??????????????? $mac_($i) set RTSThreshold_ 3000 ??????????????? $node_($i) set X_ [expr $i * 0.01] ??????????????? $node_($i) set Y_ 0?????? ;# Horizontal arrangement of nodes ??????????????? $node_($i) set Z_ 0.0 ??????? } #Set Node 0 and Node $val(nn) as the APs. Thus the APs are the ends of the horizontal line. Each STA receives different power levels. set AP_ADDR1 [$mac_(0) id] $mac_(0) ap $AP_ADDR1 #$mac_(1) ScanType ACTIVE for {set i 2} {$i < [expr $val(nn)]} {incr i} { ?????? #cria um agente UDP para o cliente ??????? set udp_c($i) [new Agent/UDP] ??????? $udp_c($i) set packetSize_ 77 ??????? #$udp_c($i) set interval_ 11ms ??????? $udp_c($i) set rate_ 100Kbps ??????? $ns_ attach-agent $node_($i) $udp_c($i) ??????? #cria um reposit?rio NULL no servidor ??????? set null_s($i) [new Agent/Null] ??????? $ns_ attach-agent $node_(1) $null_s($i) ??????? $ns_ connect $udp_c($i) $null_s($i) ??????? #cria uma aplica??o CBR para o cliente ??????? set cbr_c($i) [new Application/Traffic/CBR] ??????? $cbr_c($i) set packetSize_ 77 ??????? #$cbr_c($i) set interval_ 11ms ??????? $cbr_c($i) set rate_ 100Kbps ??????? $cbr_c($i) attach-agent $udp_c($i) ??????? $ns_ at 0.0 "$cbr_c($i) start" } ??????? #cria um agente UDP para o servidor ??????? set udp_s [new Agent/UDP] ?????? $udp_s set packetSize_ 140 ??????? #$udp_s set interval_ 10ms ??????? $udp_s set rate_ 10Kbps ??????? $ns_ attach-agent $node_(1) $udp_s ??????? #cria um reposit?rio NULL no cliente 2 ??????? set null_c(2) [new Agent/Null] ??????? $ns_ attach-agent $node_(2) $null_c(2) ??????? $ns_ connect $udp_s $null_c(2) ??????? #cria uma aplica??o CBR para o servidor ??????? set cbr_s [new Application/Traffic/CBR] ??????? $cbr_s set packetSize_ 140 ??????? #$cbr_s set interval_ 10ms ??????? $cbr_s set rate_ 100Kbps ??????? $cbr_s attach-agent $udp_s ??????? $ns_ at 0.0 "$cbr_s start" $ns_ at 1200.0 "stop" $ns_ at 1200.0 "puts \"NS EXITING...\" ; $ns_ halt" proc stop {} { ??? global ns_ tracefd ?? $ns_ flush-trace ??? close $tracefd ??? exit 0 } puts "Starting Simulation..." $ns_ run ____________________________________________________________________________________ Veja quais s?o os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com ------------------------------ Message: 6 Date: Fri, 5 Feb 2010 09:26:45 -0800 (PST) From: meriem bouzouita <bouzouita_mer...@yahoo.fr> Subject: [ns] 802.11s patch in ns2.29 To: ns-users@ISI.EDU Message-ID: <189903.55720...@web28005.mail.ukl.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Hi, I'm working on vertical handover between a 802.11s mesh network and a 802.16 network using MIH mechanism, so I'm looking for?the?802.11s part that can be added on ns2.29 under Windows: I need to implement HWMP protocol and the 802.11s composants (MP, MAP, MPP).. Please how can I get it? Thanks? a lot for help. ------------------------------ Message: 7 Date: Fri, 5 Feb 2010 10:36:26 -0800 (PST) From: rpavan <nitw.pa...@gmail.com> Subject: [ns] error on installing ns-2.33 after patched with Ns2mesh80216(IEEE 802.16d Wireless Mesh Networks simulation) To: ns-users@ISI.EDU Message-ID: <27472185.p...@talk.nabble.com> Content-Type: text/plain; charset=UTF-8 hi, i am getting error on installing ns-2.33 after patched with Ns2mesh80216 which had created directory names 'wimax' in ns-2.33/ [code] In file included from wimax/common/wimax_debug.cc:22: ../wimax/mesh/wimsh_packet.h: In static member function ?static unsigned int WimshMshDsch::pers2frames(WimshMshDsch::Persistence)?: ../wimax/mesh/wimsh_packet.h:234: error: ?UINT_MAX? was not declared in this scope make: *** [wimax/common/wimax_debug.o] Error 1 Ns make failed! See http://www.isi.edu/nsnam/ns/ns-problems.html for problems[code#] pls help me to solve problem ..or is there any other way to simulate wireless mesh networks... thanks in advance -- View this message in context: http://old.nabble.com/error-on-installing-ns-2.33-after-patched-with-Ns2mesh80216%28IEEE-802.16d-Wireless-Mesh-Networks-simulation%29-tp27472185p27472185.html Sent from the ns-users mailing list archive at Nabble.com. ------------------------------ Message: 8 Date: Fri, 5 Feb 2010 10:46:04 -0800 (PST) From: rpavan <nitw.pa...@gmail.com> Subject: [ns] how to simulate wireless mesh networks using ns-2.34 To: ns-users@ISI.EDU Message-ID: <27472306.p...@talk.nabble.com> Content-Type: text/plain; charset=us-ascii hi, i want to simulate wireless mesh networks using ns-2 for my final yr project iam a newbie so please help me to simulate WMN using ns-2.34(or prev versions) if possible suggest some tutorials,Tcl scripts to simulate WMN thanks in advance.. -- View this message in context: http://old.nabble.com/how-to-simulate-wireless-mesh-networks-using-ns-2.34-tp27472306p27472306.html Sent from the ns-users mailing list archive at Nabble.com. ------------------------------ Message: 9 Date: Sat, 6 Feb 2010 01:35:24 +0500 From: waqar haq <warin...@gmail.com> Subject: [ns] Directed broadcast To: ns-users@ISI.EDU Message-ID: <f18f95fe1002051235u7ee908d7jea5ee2e33af1c...@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 hi can any one tell me how to send a directed broadcast actually i want to send the packet to all interface except the one from which i receive i tried a loop but it gives me Event scheduler error with wrong event id plz help me thnks ------------------------------ Message: 10 Date: Sat, 6 Feb 2010 06:11:32 +0530 (IST) From: gayathri devi <k.gayathrid...@yahoo.co.in> Subject: [ns] regarding performance measures To: ns-users@ISI.EDU Message-ID: <369282.13403...@web94602.mail.in2.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Hai..... ??????????can anyone suggest me some guidelines regarding in measuring the performance of the base station while nodes attached to it increases. Also, suggest me some guidelines for creating base station. The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/ ------------------------------ _______________________________________________ Ns-users mailing list Ns-users@isi.edu http://mailman.isi.edu/mailman/listinfo/ns-users End of Ns-users Digest, Vol 74, Issue 5 ***************************************