Re: [ns] Parameters for 802.11b on NS 2.33/802.11Ext
Forwarded to the authors of new 802.11Ext. Please reply on the ns user mailing list. From: [EMAIL PROTECTED] on behalf of PeterCh Sent: Wed 26/11/2008 12:17 PM To: ns-users@ISI.EDU Subject: Re: [ns] Parameters for 802.11b on NS 2.33/802.11Ext Hello! I have the same question, maybe someone could help? Thanks rvannier wrote: > > Does anyone have good parameters to simulate a 802.11b interface card with > the new 802.11Ext layer ? > > I tried to use the parameters I used in NS-2.31, but the results now are > very different (mainly because there is no more RXTresh_). With these > parameters, nodes can communicate even at carrier sensing range (although > the carrier sensing range should be 2 to 3 times the communication range). > So I tried with the default Phy/WirelessPhyExt parameters and the results > are similar (but for the communication range, since the transmission power > changes) > > These are the parameters I use. They were taken from the specifications of > an Avaya card : > > set val(chan) Channel/WirelessChannel;#Channel Type > set val(prop) Propagation/TwoRayGround ;# radio-propagation > model > set val(netif) Phy/WirelessPhyExt;# network interface > type > set val(mac)Mac/802_11Ext;# 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) 50 ;# max packet in ifq > > Phy/WirelessPhyExt set CSThresh_ 6.309573444801943e-12 > Phy/WirelessPhyExt set Pt_ 0.031 > Phy/WirelessPhyExt set freq_ 2.457e9 > Phy/WirelessPhyExt set L_1.0 > Phy/WirelessPhyExt set bandwidth_11e6 > Phy/WirelessPhyExt set trace_dist 400; > Phy/WirelessPhyExt set BasicModulationScheme_ 0;# BPSK > > Mac/802_11Ext set dataRate_ 11Mb > Mac/802_11Ext set CWMin_ 31 > Mac/802_11Ext set CWMax_ 1023 > Mac/802_11Ext set SlotTime_ 0.20 > Mac/802_11Ext set SIFS_ 0.10 > Mac/802_11Ext set PreambleLength_144 > Mac/802_11Ext set PLCPHeaderLength_ 48 > Mac/802_11Ext set PLCPDataRate_ 1.0e6 > Mac/802_11Ext set RTSThreshold_ 2000 > Mac/802_11Ext set ShortRetryLimit_ 7 > Mac/802_11Ext set LongRetryLimit_4 > > > Thanks for your help ! > -- View this message in context: http://www.nabble.com/Parameters-for-802.11b-on-NS-2.33-802.11Ext-tp18010313p20699501.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] VBR Traffic Generator
Hi all Please if anybody have or know where I can obtain the VBR traffic generator code. Thanks in advance. Cheers Haseeb
Re: [ns] Jitter Calculation
Hi Further to my previous email, anyone who has awk or perl code to calculate jitter. I would really appreciate your help in this regard. Cheers Haseeb From: Mohammad Haseeb Zafar Sent: Mon 16/06/2008 2:57 PM To: ns-users@ISI.EDU Subject: Jitter Calculation Hello all I wanted to know if anyone has used below awk script to calculate jitter. We have 2 different values of jitter, and the calculations in the script dont explain me fully which jitter you would look for finding out whats the jitter for that particular communication. Can someone please help me for this? Cheers Haseeb # == jitter.awk BEGIN { num_recv=0 } { # Trace line format: normal if ($2 != "-t") { event = $1 time = $2 if (event == "+" || event == "-") node_id = $3 if (event == "r" || event == "d") node_id = $4 flow_id = $8 pkt_id = $12 pkt_size = $6 flow_t = $5 level = "AGT" } # Trace line format: new if ($2 == "-t") { event = $1 time = $3 node_id = $5 flow_id = $39 pkt_id = $41 pkt_size = $37 flow_t = $45 level = $19 } # Store packets send time if (level == "AGT" && sendTime[pkt_id] == 0 && (event == "+" || event == "s") && pkt_size >= 512) { sendTime[pkt_id] = time } # Store packets arrival time if (level == "AGT" && event == "r" && pkt_size >= 512) { recvTime[pkt_id] = time num_recv++ } } END { # Compute average jitter jitter1 = jitter2 = tmp_recv = 0 prev_time = delay = prev_delay = processed = 0 prev_delay = -1 for (i=0; processed
[ns] Jitter Calculation
Hello all I wanted to know if anyone has used below awk script to calculate jitter. We have 2 different values of jitter, and the calculations in the script dont explain me fully which jitter you would look for finding out whats the jitter for that particular communication. Can someone please help me for this? Cheers Haseeb # == jitter.awk BEGIN { num_recv=0 } { # Trace line format: normal if ($2 != "-t") { event = $1 time = $2 if (event == "+" || event == "-") node_id = $3 if (event == "r" || event == "d") node_id = $4 flow_id = $8 pkt_id = $12 pkt_size = $6 flow_t = $5 level = "AGT" } # Trace line format: new if ($2 == "-t") { event = $1 time = $3 node_id = $5 flow_id = $39 pkt_id = $41 pkt_size = $37 flow_t = $45 level = $19 } # Store packets send time if (level == "AGT" && sendTime[pkt_id] == 0 && (event == "+" || event == "s") && pkt_size >= 512) { sendTime[pkt_id] = time } # Store packets arrival time if (level == "AGT" && event == "r" && pkt_size >= 512) { recvTime[pkt_id] = time num_recv++ } } END { # Compute average jitter jitter1 = jitter2 = tmp_recv = 0 prev_time = delay = prev_delay = processed = 0 prev_delay = -1 for (i=0; processed
[ns] Diffserv for MANETs
Any implementation of Diffserv for MANETs in ns2? Cheers
[ns] Diffserv for wireless
I want to simulate diffserv in wireless network. Any implementation in ns2? Cheers
Re: [ns] cbr packet loss & or packet count scripts in perl>>>>
just add following in your tcl script to generate new trace format # use new trace file format $ns_ use-newtrace -Original Message- From: uknown noname [mailto:[EMAIL PROTECTED] Sent: Thu 06/09/2007 1:15 PM To: uknown noname; Mohammad Haseeb Zafar; Sayeed Ahmed; JEHD MAHDI; ns2 mailing Subject: Re: [ns] cbr packet loss & or packet count scripts in perl>>>> Hi.. probably i have using a wrong out.tr file where currently im using /tcl/ex/wireless.tcl. i'm notice this will generated out.tr with old trace format. is there any out.tr with new trace format for dsr that i can used with this cript? many thanks.. uknown noname <[EMAIL PROTECTED]> wrote: hello... i try to implement this script but i've got an error (FILENAME=../out.tr FNR=24960) fatal: division by zero attempted looks like this line delay=sum/recvnum give an error when 'recvnum' is 0, where recvnum++ are not functioning. any idea? Mohammad Haseeb Zafar wrote: Plz see the following awk scripts that calcualate the following Performance Metrics Used Routing Overhead Normalize Routing Load Packet Delivery Fraction Average End to End delay Jitter Drop Packets Drop Bytes Throughput These scripts work with new trace format and DSR protocol. Make changes for other protocols. As an example, if you want to calculate throughput, awk -f throughput.awk output.tr # ==throughput.awk BEGIN { recvdSize = 0 startTime = 1e6 stopTime = 0 } { # Trace line format: normal if ($2 != "-t") { event = $1 time = $2 if (event == "+" || event == "-") node_id = $3 if (event == "r" || event == "d") node_id = $4 flow_id = $8 pkt_id = $12 pkt_size = $6 flow_t = $5 level = "AGT" } # Trace line format: new if ($2 == "-t") { event = $1 time = $3 node_id = $5 flow_id = $39 pkt_id = $41 pkt_size = $37 flow_t = $45 level = $19 } # Store start time if (level == "AGT" && (event == "+" || event == "s") && pkt_size >= 512) { if (time < startTime) { startTime = time } } # Update total received packets' size and store packets arrival time if (level == "AGT" && event == "r" && pkt_size >= 512) { if (time > stopTime) { stopTime = time } # Rip off the header hdr_size = pkt_size % 512 pkt_size -= hdr_size # Store received packet's size recvdSize += pkt_size } } END { printf("Average Throughput[kbps] = %.2f\t\t StartTime=%.2f\tStopTime=%.2f\n",(recvdSize/(stopTime-startTime))*(8/1000),startTime,stopTime) } # = parameters.awk BEGIN { sends=0; recvs=0; routing_packets=0.0; droppedBytes=0; droppedPackets=0; highest_packet_id =0; sum=0; recvnum=0; } { time = $3; packet_id = $41; #= CALCULATE PACKET DELIVERY FRACTION= if (( $1 == "s") && ( $35 == "cbr" ) && ( $19=="AGT" )) { sends++; } if (( $1 == "r") && ( $35 == "cbr" ) && ( $19=="AGT" )) { recvs++; } #= CALCULATE DELAY if ( start_time[packet_id] == 0 ) start_time[packet_id] = time; if (( $1 == "r") && ( $35 == "cbr" ) && ( $19=="AGT" )) { end_time[packet_id] = time; } else { end_time[packet_id] = -1; } #= TOTAL DSR OVERHEAD if (($1 == "s" || $1 == "f") && $19 == "RTR" && $35 =="DSR") routing_packets++; #= DROPPED DSR PACKETS if (( $1 == "d" ) && ( $35 == "cbr" ) && ( $3 > 0 )) { droppedBytes=droppedBytes+$37; droppedPackets=droppedPackets+1; } #find the number of packets in the simulation if (packet_id > highest_packet_id) highest_packet_id = packet_id; } 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; NRL = routing_packets/recvs; #normalized routing load = routing load but it differ from routing overhead 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("NRL = %.2f\n",NRL); printf("Average e-e delay(ms)= %.2f\n",delay*1000); printf("No. of dropped data (packets) = %d\n",droppedPackets); printf(&q
Re: [ns] cbr packet loss & or packet count scripts in perl>>>>
Plz see the following awk scripts that calcualate the following Performance Metrics Used Routing Overhead Normalize Routing Load Packet Delivery Fraction Average End to End delay Jitter Drop Packets Drop Bytes Throughput These scripts work with new trace format and DSR protocol. Make changes for other protocols. As an example, if you want to calculate throughput, awk -f throughput.awk output.tr # ==throughput.awk BEGIN { recvdSize = 0 startTime = 1e6 stopTime = 0 } { # Trace line format: normal if ($2 != "-t") { event = $1 time = $2 if (event == "+" || event == "-") node_id = $3 if (event == "r" || event == "d") node_id = $4 flow_id = $8 pkt_id = $12 pkt_size = $6 flow_t = $5 level = "AGT" } # Trace line format: new if ($2 == "-t") { event = $1 time = $3 node_id = $5 flow_id = $39 pkt_id = $41 pkt_size = $37 flow_t = $45 level = $19 } # Store start time if (level == "AGT" && (event == "+" || event == "s") && pkt_size >= 512) { if (time < startTime) { startTime = time } } # Update total received packets' size and store packets arrival time if (level == "AGT" && event == "r" && pkt_size >= 512) { if (time > stopTime) { stopTime = time } # Rip off the header hdr_size = pkt_size % 512 pkt_size -= hdr_size # Store received packet's size recvdSize += pkt_size } } END { printf("Average Throughput[kbps] = %.2f\t\t StartTime=%.2f\tStopTime=%.2f\n",(recvdSize/(stopTime-startTime))*(8/1000),startTime,stopTime) } # = parameters.awk BEGIN { sends=0; recvs=0; routing_packets=0.0; droppedBytes=0; droppedPackets=0; highest_packet_id =0; sum=0; recvnum=0; } { time = $3; packet_id = $41; #= CALCULATE PACKET DELIVERY FRACTION= if (( $1 == "s") && ( $35 == "cbr" ) && ( $19=="AGT" )) { sends++; } if (( $1 == "r") && ( $35 == "cbr" ) && ( $19=="AGT" )) { recvs++; } #= CALCULATE DELAY if ( start_time[packet_id] == 0 ) start_time[packet_id] = time; if (( $1 == "r") && ( $35 == "cbr" ) && ( $19=="AGT" )) { end_time[packet_id] = time; } else { end_time[packet_id] = -1; } #= TOTAL DSR OVERHEAD if (($1 == "s" || $1 == "f") && $19 == "RTR" && $35 =="DSR") routing_packets++; #= DROPPED DSR PACKETS if (( $1 == "d" ) && ( $35 == "cbr" ) && ( $3 > 0 )) { droppedBytes=droppedBytes+$37; droppedPackets=droppedPackets+1; } #find the number of packets in the simulation if (packet_id > highest_packet_id) highest_packet_id = packet_id; } 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; NRL = routing_packets/recvs; #normalized routing load = routing load but it differ from routing overhead 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("NRL = %.2f\n",NRL); printf("Average e-e delay(ms)= %.2f\n",delay*1000); printf("No. of dropped data (packets) = %d\n",droppedPackets); printf("No. of dropped data (bytes) = %d\n",droppedBytes); printf("Packet Loss [%]= %.2f \n", (droppedPackets/(highest_packet_id+1))*100); } # == jitter.awk BEGIN { num_recv=0 } { # Trace line format: normal if ($2 != "-t") { event = $1 time = $2 if (event == "+" || event == "-") node_id = $3 if (event == "r" || event == "d") node_id = $4 flow_id = $8 pkt_id = $12 pkt_size = $6 flow_t = $5 level = "AGT" } # Trace line format: new if ($2 == "-t") { event = $1 time = $3 node_id = $5 flow_id = $39 pkt_id = $41 pkt_size = $37 flow_t = $45 level = $19 } # Store packets send time if (level == "AGT" && sendTime[pkt_id] == 0 && (event == "+" || event == "s") && pkt_size >= 512) { sendTime[pkt_id] = time } # Store packets arrival time if (level == "AGT" && event == "r" && pkt_size >= 512) { recvTime[pkt_id] = time num_recv++ } } END { # Compute average jitter jitter1 = jitter2 = tmp_recv = 0 prev_time = delay = prev_delay = processed = 0 prev_delay = -1 for (i=0; processed>>> Hi, >Hi there I've got a script to analyse packets awk file>>> Can you please tell from where you get the awk script example I will help me a lot. Thanking you, Sayeed. JEHD MAHDI <[EMAIL PROTECTED]> wrote: J Mahdi Newcastle Upon Tyne ** My favourite sites: www.al-islam.com www.islamspirit.com www.troid.org
[ns] MDSR or SMR Implementation in ns-2
Anyone who has the source code of Multipath DSR or MSR protocol implementation in ns-2.
[ns] How to calculate Mean Path Length?
Hi How we can compute Mean Path Length from source to destination? Cheers Haseeb
Re: [ns] [manet] Simulation Error
Hi Further to my previous email. I have made following changes in ns-lib.tcl to check whether its working: switch -exact $routingAgent_ { MPDSR { $self at 0.0 "$node start-mpdsr" } default { puts "Wrong node routing agent:$routingAgent_" exit } } after remake, I again receive following message: num_nodes is set 50 Wrong node routing agent! It should have given following error: Wrong node routing agent: MPDSR This mean that after remake, changes have not been incorporated in ns-lib.tcl. When I source ns-lib.tcl, I get the following: -bash: ./ns-lib.tcl: line 50: syntax error near unexpected token `(' -bash: ./ns-lib.tcl: line 50: `set slinks_(0:0) 0' How I can incorporate changes in ns-lib.tcl? Your help will be hihhly appreciated. Cheers Haseeb -Original Message- From: Ash Mohammad Abbas [mailto:[EMAIL PROTECTED] Sent: Fri 01/12/2006 2:12 AM To: Mohammad Haseeb Zafar Subject: Re: [manet] Simulation Error You need to check the routing protocol you are using in your tcl script. If you have written the code of smr afresh, you need to make changes at several places like config, routing agent, etc. Check whether you have made all those updates. Hope this helps, Abbas --- Mohammad Haseeb Zafar <[EMAIL PROTECTED]> wrote: > Hi all, > > I have run split multipath routing over ns-2.1b8a > and the make process was successful. When I tried > to run the simulation script, it bails out with an > error > > num_nodes is set 50 > Wrong node routing agent! > > Can anyone please help to tell me how to solve this > problem? > > Thanks. > > Haseeb > > ___ > manet mailing list > manet@ietf.org > https://www1.ietf.org/mailman/listinfo/manet > Ash Mohammad Abbas http://www.cse.iitd.ernet.in/~abbas __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [ns] [manet] Simulation Error
Hi Further to previous email. I have made following changes in ns-lib.tcl to check whether its working: switch -exact $routingAgent_ { MPDSR { $self at 0.0 "$node start-mpdsr" } default { puts "Wrong node routing agent:$routingAgent_" exit } } after remake, I again receive following message: num_nodes is set 50 Wrong node routing agent! It should have given following error: Wrong node routing agent: MPDSR This mean that after remake, changes have not been incorporated in ns-lib.tcl. When I source ns-lib.tcl, I get the following: -bash: ./ns-lib.tcl: line 50: syntax error near unexpected token `(' -bash: ./ns-lib.tcl: line 50: `set slinks_(0:0) 0' How I can incorporate changes in ns-lib.tcl? Your help will be hihhly appreciated. Cheers Haseeb -Original Message- From: Ash Mohammad Abbas [mailto:[EMAIL PROTECTED] Sent: Fri 01/12/2006 2:12 AM To: Mohammad Haseeb Zafar Subject: Re: [manet] Simulation Error You need to check the routing protocol you are using in your tcl script. If you have written the code of smr afresh, you need to make changes at several places like config, routing agent, etc. Check whether you have made all those updates. Hope this helps, Abbas --- Mohammad Haseeb Zafar <[EMAIL PROTECTED]> wrote: > Hi all, > > I have run split multipath routing over ns-2.1b8a > and the make process was successful. When I tried > to run the simulation script, it bails out with an > error > > num_nodes is set 50 > Wrong node routing agent! > > Can anyone please help to tell me how to solve this > problem? > > Thanks. > > Haseeb > > ___ > manet mailing list > manet@ietf.org > https://www1.ietf.org/mailman/listinfo/manet > Ash Mohammad Abbas http://www.cse.iitd.ernet.in/~abbas __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
[ns] Simulation Error
Hi all, I have run split multipath routing over ns-2.1b8a and the make process was successful. When I tried to run the simulation script, it bails out with an error num_nodes is set 50 Wrong node routing agent! Can anyone please help to tell me how to solve this problem? Thanks. Haseeb
Re: [ns] Compilation Error ns2.1b8a
Got answer from http://www.jlsnet.co.uk/index.php?tab=4&page=ns2_comperror Cheers Haseeb -Original Message- From: [EMAIL PROTECTED] on behalf of Mohammad Haseeb Zafar Sent: Wed 15/11/2006 11:06 AM To: ns-users@ISI.EDU Subject: [ns] Compilation Error ns2.1b8a Hi I got following error while compiling ns2.1b8a. Please help. Haseeb c++ -c -DTCP_DELAY_BIND_ALL -DNO_TK -DNIXVECTOR -DTCLCL_CLASSINSTVAR -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A7 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H -DHAVE_CONFIG_H -I. -I/bonhome/haseeb/work/ns-allinone-2.1b8a/tclcl-1.0b11 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/otcl-1.0a7 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -o route.o route.cc c++ -c -DTCP_DELAY_BIND_ALL -DNO_TK -DNIXVECTOR -DTCLCL_CLASSINSTVAR -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A7 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H -DHAVE_CONFIG_H -I. -I/bonhome/haseeb/work/ns-allinone-2.1b8a/tclcl-1.0b11 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/otcl-1.0a7 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -o connector.o connector.cc c++ -c -DTCP_DELAY_BIND_ALL -DNO_TK -DNIXVECTOR -DTCLCL_CLASSINSTVAR -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A7 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H -DHAVE_CONFIG_H -I. -I/bonhome/haseeb/work/ns-allinone-2.1b8a/tclcl-1.0b11 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/otcl-1.0a7 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -o ttl.o ttl.cc c++ -c -DTCP_DELAY_BIND_ALL -DNO_TK -DNIXVECTOR -DTCLCL_CLASSINSTVAR -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A7 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H -DHAVE_CONFIG_H -I. -I/bonhome/haseeb/work/ns-allinone-2.1b8a/tclcl-1.0b11 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/otcl-1.0a7 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -o trace.o trace.cc In file included from trace.cc:44: tfrc.h:116: friend declaration requires class-key, i.e. `friend class TfrcSendTimer' tfrc.h:117: friend declaration requires class-key, i.e. `friend class TfrcNoFeedbackTimer' make: *** [trace.o] Error 1 Ns make failed! See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
[ns] Compilation Error ns2.1b8a
Hi I got following error while compiling ns2.1b8a. Please help. Haseeb c++ -c -DTCP_DELAY_BIND_ALL -DNO_TK -DNIXVECTOR -DTCLCL_CLASSINSTVAR -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A7 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H -DHAVE_CONFIG_H -I. -I/bonhome/haseeb/work/ns-allinone-2.1b8a/tclcl-1.0b11 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/otcl-1.0a7 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -o route.o route.cc c++ -c -DTCP_DELAY_BIND_ALL -DNO_TK -DNIXVECTOR -DTCLCL_CLASSINSTVAR -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A7 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H -DHAVE_CONFIG_H -I. -I/bonhome/haseeb/work/ns-allinone-2.1b8a/tclcl-1.0b11 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/otcl-1.0a7 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -o connector.o connector.cc c++ -c -DTCP_DELAY_BIND_ALL -DNO_TK -DNIXVECTOR -DTCLCL_CLASSINSTVAR -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A7 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H -DHAVE_CONFIG_H -I. -I/bonhome/haseeb/work/ns-allinone-2.1b8a/tclcl-1.0b11 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/otcl-1.0a7 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -o ttl.o ttl.cc c++ -c -DTCP_DELAY_BIND_ALL -DNO_TK -DNIXVECTOR -DTCLCL_CLASSINSTVAR -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A7 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H -DHAVE_CONFIG_H -I. -I/bonhome/haseeb/work/ns-allinone-2.1b8a/tclcl-1.0b11 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/otcl-1.0a7 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -o trace.o trace.cc In file included from trace.cc:44: tfrc.h:116: friend declaration requires class-key, i.e. `friend class TfrcSendTimer' tfrc.h:117: friend declaration requires class-key, i.e. `friend class TfrcNoFeedbackTimer' make: *** [trace.o] Error 1 Ns make failed! See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
[ns] Compilation Error ns2.1b8a
Hi I got following error while compiling ns2.1b8a. Please help. Haseeb c++ -c -DTCP_DELAY_BIND_ALL -DNO_TK -DNIXVECTOR -DTCLCL_CLASSINSTVAR -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A7 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H -DHAVE_CONFIG_H -I. -I/bonhome/haseeb/work/ns-allinone-2.1b8a/tclcl-1.0b11 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/otcl-1.0a7 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -o route.o route.cc c++ -c -DTCP_DELAY_BIND_ALL -DNO_TK -DNIXVECTOR -DTCLCL_CLASSINSTVAR -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A7 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H -DHAVE_CONFIG_H -I. -I/bonhome/haseeb/work/ns-allinone-2.1b8a/tclcl-1.0b11 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/otcl-1.0a7 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -o connector.o connector.cc c++ -c -DTCP_DELAY_BIND_ALL -DNO_TK -DNIXVECTOR -DTCLCL_CLASSINSTVAR -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A7 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H -DHAVE_CONFIG_H -I. -I/bonhome/haseeb/work/ns-allinone-2.1b8a/tclcl-1.0b11 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/otcl-1.0a7 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -o ttl.o ttl.cc c++ -c -DTCP_DELAY_BIND_ALL -DNO_TK -DNIXVECTOR -DTCLCL_CLASSINSTVAR -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A7 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H -DHAVE_CONFIG_H -I. -I/bonhome/haseeb/work/ns-allinone-2.1b8a/tclcl-1.0b11 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/otcl-1.0a7 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -o trace.o trace.cc In file included from trace.cc:44: tfrc.h:116: friend declaration requires class-key, i.e. `friend class TfrcSendTimer' tfrc.h:117: friend declaration requires class-key, i.e. `friend class TfrcNoFeedbackTimer' make: *** [trace.o] Error 1 Ns make failed! See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Re: [ns] SWAN implementation
http://comet.columbia.edu/swan/simulation.html -Original Message- From: [EMAIL PROTECTED] on behalf of Bilel Romdhani Sent: Wed 15/11/2006 8:55 AM To: Ns-users@ISI.EDU Subject: [ns] SWAN implementation Hi all, I'm implementing a qos routing protocol QPART on ns2.27 and I want to make simulation with QPART and with another MANET routing protocol such SWAN. So plz if any one have the SWAN implementation on ns2, I will be very grateful if you send it to me!!! thanks for any help!
[ns] Scenario File
Hello How I can set scenario file with random velocities for the following parameters: traffic type: cbr total nodes: 50 source nodes: 20 seed 1.0 rate 10 packets/sec dimensions: 1000m x 1000m pause time: 30 sec random velocity: 0-20m/s simulation time: 800s Cheers Haseeb
[ns] Scenario File
Hello How I can set scenario file with random velocities for the following parameters: traffic type: cbr total nodes: 50 source nodes: 20 seed 1.0 rate 10 packets/sec dimensions: 1000m x 1000m pause time: 30 sec random velocity: 0-20m/s simulation time: 800s Cheers Haseeb
[ns] Connection Pattern
Hi I want to set a connection pattern using cbrgen with following parameters: traffic type: cbr total nodes: 50 source nodes: 30 seed 1.0 rate 10 packets/sec Am I doing the right way or please rectify. "ns cbrgen.tcl -type cbr -nn 50 -seed 1.0 -mc 30 -rate 10.0" Cheers Haseeb
[ns] Scenario Files
Hi 1. I want to set constant speeds of 0, 1, 5, 10 and 20 m/s for set of experiments that varies the velocity for 20 sources of 50 nodes network. The packet sending rate is fixed at 10 packets / sec. I am setting the scenario file for speed of 1 m/s as ./setdest -v 1 -n 50 -p 30.0 -M 1.0 -t 800 -x 1000 -y 1000. Please confirm. 2. How I can set random velocity of 0-20 m/s for 50 nodes. The network load is varied by changing the number of sources. The packet sending rate is still fixed at 10 packets / second. The number of sources is varied from 10 to 50 in intervals of 10. Cheers Haseeb
[ns] packet rate in cbrgen
Hi To create CBR connecions, run ns cbrgen.tcl [-type cbr|tcp] [-nn nodes] [-seed seed] [-mc connections] [-rate rate] For example , ns cbrgen.tcl -type cbr -nn 50 -seed 1.0 -mc 20 -rate ? If I want to set rate at 10 packets/sec, what should I mention in rate 10 or 1/10 as rate=1/interval. README file for cbrgen as well as connection pattern files (/mobility/scene...)seem confusing. Please clarify. Cheers Haseeb
[ns] SWAN Implementation
Please help me in answering following qiuestions regarding implementation of SWAN code in ns2.1b9a: 1. I didnt get following files from SWANs website: http://comet.columbia.edu/swan/simulation.html set opt(cp) "../Scene/S1/cbr-50-50-1-512.tcl" set opt(sc) "../Scene/S1/mobility.tcl" 2. When I run, I get the following error: AODV simulation # 1 run ... num_nodes is set 5 invalid command name "//_o14" while executing "//$self instvar arptable_ nifs_ netif_ mac_ ifq_ ll_ imep_ inerr_ outerr_ fec_"(procedure "_o14" line 2) (Node/MobileNode add-interface line 2) invoked from within "$node add-interface $chan $propInstance_ $llType_ $macType_ $ifqType_ $ifqlen_ $phyType_ $antType_ $inerrProc_ $outerrProc_ $FECProc_" (procedure "_o3" line 64) (Simulator create-wireless-node line 64) invoked from within "_o3 create-wireless-node" ("eval" body line 1) invoked from within "eval $self create-wireless-node $args" (procedure "_o3" line 14) (Simulator node line 14) invoked from within "$ns_ node" ("for" body line 2) invoked from within "for {set i 0} {$i < $opt(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion }" (file "swan.tcl" line 208) Cheers Haseeb
[ns] Implementation of DiffServ for MANETs
Is their any Implementation of DiffServ for MANETs?
[ns] Implementation of DiffServ for MANETs
Is their any Implementation of DiffServ for MANETs?
[ns] normalized routing load, normalized mac load and average hop count
Anyone who know the formula to calculate normalized routing load, normalized mac load and average hop count. Cheers Haseeb
[ns] How to calculate Normalized Routing Load?
Hi I have written the perl script to calculate the normalized routing load but my results are very strange.Can anybody tell me is it right formula for my calculation which is given below? Note: i am using old format of tracing 1. I am getting the receives like: if the flags are "r" and "AGT" and "cbr" then recieves++. 2.I am getting routing packets like: if the flags are ("s" or "f") and "RTR" and ( "aodv" or "dsr" or "message") then routing++; 3. And i am getting nrload=routing/receives -------- Please help me to clear this doubt Thank you in advance ... Mohammad Haseeb Zafar