Re: [ns] ns/nam: respresentation problem when definingposition-fixed nodes (NEW question)
Hi, Thank your very much for your reply. It is a good idea, but in my case all the links must have the same delay, so that is not a possibility. It is a pity that NAM does not support this facility. Best regards, Javier - Mensaje original De: Pedro Vale Estrela [EMAIL PROTECTED] Para: Javier Chicote [EMAIL PROTECTED]; ns-users@ISI.EDU Enviado: miércoles, 21 de marzo, 2007 19:02:16 Asunto: RE: [ns] ns/nam: respresentation problem when definingposition-fixed nodes (NEW question) I' tried to add XY coordinates for wired nodes, but nam doesn't support this facility. Instead, I achieve the same result by setting the length of the wired links via their delay Pedro Vale Estrela http://tagus.inesc-id.pt/~pestrela/ns2 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Javier Chicote Sent: quarta-feira, 21 de Março de 2007 17:00 To: ns-users@ISI.EDU Subject: Re: [ns] ns/nam: respresentation problem when definingposition- fixed nodes (NEW question) Hi ns-users, I learnt that the previous problem can be solved by using 'orient' method at the link definition. However, this solution is not enough when defining more complex structures. The next figure shows 4 nodes standing in the imaginary vertexes of a square, which are all of them connected to a master node like it is shown in the next picture: node(1,0)node(1,1) (0,100) (100,100)__ \___\__ \___ \_ \___ master _/(200,50) _/ _/ / / (0,0) (0,100) node(0,0) node(100,0) --- What I would like to know is if it is possible (or not) to define the geographic position of the nodes when the coordinates of them are known in a wired scenario, or other ideas to solve the problem. This is the code of the file: # Network configuration (x,y):## node(1,0)node(1,1)# (0,100) (100,100)__# \___\__ # \___ \_# \___ master# _/(200,50)# _/ _/#/ / #(0,0) (0,100)# node(0,0) node(100,0)# # Create a simulator instanceset ns [new Simulator] # Open the NAM trace fileset namfile [open position-out.nam w]$ns namtrace-all $namfile set rows2 ;# number of rowsset cols2 ;# number of nodes per row # Define nodesfor {set i 0} {$i $rows} {incr i} {for {set j 0} {$j $cols} { incr j } {set node($i,$j) [$ns node] }}set master [$ns node] # Provide initial (X,Y,Z) co-ordinates for nodesfor {set i 0} {$i $rows} {incr i} {set xj 0.0for {set j 0} {$j $cols} { incr j } {$node($i,$j) set X_ $xjif {$i == 0} then { $node($i,$j) set Y_ 0.0} elseif {$i == 1} then { $node($i,$j) set Y_ 100.0 } $node($i,$j) set Z_ 0.0 set xj [expr $xj + 200]}}$master set X_ 200.0$master set Y_ 50.0$master set Z_ 0.0 # Define links between nodes$ns duplex-link $node(0,0) $master 1Mb 100ms DropTail$ns duplex-link $node(0,1) $master 1Mb 100ms DropTail$ns duplex- link $node(1,0) $master 1Mb 100ms DropTail$ns duplex-link $node(1,1) $master 1Mb 100ms DropTail # Define link orientation$ns duplex-link-op $node(0,0) $master orient rigth-up$ns duplex-link-op $node(0,1) $master orient rigth$ns duplex-link- op $node(1,0) $master orient rigth$ns duplex-link-op $node(1,1) $master orient rigth-down # Define a 'finish' procedureproc finish {} {global ns tracefile namfile$ns flush-traceclose $namfile exec nam position-out.nam exit 0} # Stop the simulation$ns at [expr 5.0 - 0.01] puts \Stopping Simulation...\ $ns at 5.0 finish ; $ns halt # Start the simulationputs Starting Simulation...$ns run - Mensaje original De: Javier Chicote [EMAIL PROTECTED] Para: ns-users@isi.edu Enviado: miércoles, 21 de marzo, 2007 11:36:06 Asunto: ns/nam: respresentation problem when defining position-fixed nodes Hi ns-users, I would like to simulate a position-fixed wired network with 2 lines and 3 nodes per line, like it is shown above. The distance between the nodes should be 100 units (for example), so the first node of the matrix will be in (x=0,y=0) and the last node in (x=100, y=200). node(1,1) node(1,2)node(1,3) (100,0)__(100,100)(100,200) ||| ||| ||| ||| (0,0)(0,100)__(0,200) node(0,1) node(0,2)node(0,3) When I do not define the links, the nodes are shown correctly in NAM (without lines between them), but when I make some of the link definitions (lines
[ns] Is it possible to add a processing delay at the NODES??
Hi ns-users, I know that I can define a delay in the links of a wired network. Additionally, I would like to add a processing delay at the nodes. Is that possible? How can it be defined? Many thanks in advance. Regards, Javier __ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com
[ns] installation problem with ns-2.1b8a
Hi friends , While installing ns-2.1b8a I am getting this problem 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 please give me the solution Thank you, sachin
[ns] problem in delay and throughput script
Hi all, I have worked for TRACE format .I have used delay.awk,throughput.awk for my tcl progrm It runs successfully for delay but not for thrpughput. for throughput error : awk: thrput.awk:44: (FILENAME=hybrid.tr FNR=122048) fatal: division by zero attempted while executing awk -f thrput.awk hybrid.tr result.tr for delay it runs successfully.But the problem is that the new file generated (.tr) is empty.The new file has not any data. # throughput.awk BEGIN { 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 } # Trace line format: new if ($2 == -t) { event = $1 time = $3 node_id = $5 flow_id = $39 pkt_id = $41 pkt_size = $37 } # Calculate total received packets' size if (flow_id == flow event == r node_id == dst) { if (flow_t != sctp) { recv += pkt_size - hdr_size #printf(recv[%g] = %g %g\n,node_id,pkt_size -hdr_size,recv) } else { # Rip off SCTP header, whose size depends # on the number of chunks in each packet if (pkt_size != 448 pkt_size != 864 pkt_size != 1280) pkt_size = 0 if (pkt_size == 448) pkt_size = 400 if (pkt_size == 864) pkt_size = 800 if (pkt_size == 1280) pkt_size = 1200 recv += pkt_size #printf(recv[%g] = %g -- tot: % g\n,node_id,pkt_size,recv) } } } END { printf(%10g %10s %10g\n,flow,flow_t,(recv/simtime)*(8/1000)) } #Delay.awk BEGIN { for (i in send) { send[i] = 0 } for (i in recv) { recv[i] = 0 } delay = avg_delay = 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 } # Trace line format: new if ($2 == -t) { event = $1 time = $3 node_id = $5 flow_id = $39 pkt_id = $41 } # Store packets send time if (flow_id == flow node_id == src send[pkt_id] == 0 (event == + || event ==s)) { send[pkt_id] = time } # Store packets arrival time if (flow_id == flow node_id == dst event == r) { recv[pkt_id] = time } } END { # Compute average delay for (i in recv) { if (send[i] == 0) { printf(\nError %g\n,i) } delay += recv[i] - send[i] num ++ } printf(%10g ,flow) if (num != 0) { avg_delay = delay / num } else { avg_delay = 0 } printf(%10g\n,avg_delay*1000) } thanks ibrahim - Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center.
[ns] problem in delay and throughput script
Hi all, I have worked for TRACE format .I have used delay.awk,throughput.awk for my tcl progrm It runs successfully for delay but not for thrpughput. for throughput error : awk: thrput.awk:44: (FILENAME=hybrid.tr FNR=122048) fatal: division by zero attempted while executing awk -f thrput.awk hybrid.tr result.tr for delay it runs successfully.But the problem is that the new file generated (.tr) is empty.The new file has not any data. # throughput.awk BEGIN { 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 } # Trace line format: new if ($2 == -t) { event = $1 time = $3 node_id = $5 flow_id = $39 pkt_id = $41 pkt_size = $37 } # Calculate total received packets' size if (flow_id == flow event == r node_id == dst) { if (flow_t != sctp) { recv += pkt_size - hdr_size #printf(recv[%g] = %g %g\n,node_id,pkt_size -hdr_size,recv) } else { # Rip off SCTP header, whose size depends # on the number of chunks in each packet if (pkt_size != 448 pkt_size != 864 pkt_size != 1280) pkt_size = 0 if (pkt_size == 448) pkt_size = 400 if (pkt_size == 864) pkt_size = 800 if (pkt_size == 1280) pkt_size = 1200 recv += pkt_size #printf(recv[%g] = %g -- tot: % g\n,node_id,pkt_size,recv) } } } END { printf(%10g %10s %10g\n,flow,flow_t,(recv/simtime)*(8/1000)) } #Delay.awk BEGIN { for (i in send) { send[i] = 0 } for (i in recv) { recv[i] = 0 } delay = avg_delay = 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 } # Trace line format: new if ($2 == -t) { event = $1 time = $3 node_id = $5 flow_id = $39 pkt_id = $41 } # Store packets send time if (flow_id == flow node_id == src send[pkt_id] == 0 (event == + || event ==s)) { send[pkt_id] = time } # Store packets arrival time if (flow_id == flow node_id == dst event == r) { recv[pkt_id] = time } } END { # Compute average delay for (i in recv) { if (send[i] == 0) { printf(\nError %g\n,i) } delay += recv[i] - send[i] num ++ } printf(%10g ,flow) if (num != 0) { avg_delay = delay / num } else { avg_delay = 0 } printf(%10g\n,avg_delay*1000) } thanks ibrahim - Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends.
[ns] Problem setting BO,SO pair in 802.15.4
Hi all, I'm using ns-allinone-2.31 package, that includes 802.15.4 implementation made by Zheng subsequently patched by Iyappan. If I set to 14 both Beacon Order (BO) and Superframe Order (SO) values of a generic device (not coordinator), ns returns this error message: ![0.30](node 1) unable to start as a device: active channel scan failed - This happens using scss methods and independently from the values assumed by others flags, like assoPermit or isFFD. Instead if I set BO=14 and SO=13, all works well. Am i making some mistakes or the legal pair (BO=14,SO=14) is not admitted in current implementation of 802.15.4? I'm looking forward to receive your prompt reply. Best regards Busanelli Stefano
[ns] my configuration 802.11a 802.11b
Hi ns-users, In my script I would want set up the Access Point with 2 interfaces in 2 different channels (chan_a,chan_b), one with the standard 802.11a and the other second standard 802.11b. Please, I have need help in order to understand if my configuration is correct! If isn't, can you give a suggestion to me? (in my script the configuration of the nodes follows mw-node) My script: global val_ set val_(channel) Channel/Wireless;# channel set val_(propagation) Propagation/TwoRayGround ;# radio-propagation model set val_(phy) Phy/WirelessPhy ;# physical layer set val_(mac) Mac/802_11 ;# mac layer set val_(ifq) Queue/DropTail/PriQueue ;# interface queue type set val_(ll) LL ;# link layer type set val_(antenna) Antenna/OmniAntenna ;# antenna model set val_(ifqlen) 50 ;# max packet in ifq set val_(routing) None;# routing set val_(nMn) 2 set val_(nAP) 2 set val_(x) 150 set val_(y) 150 set val_(tr) esercizi/out5.tr;# trace file set val_(namtr) esercizi/out5.nam;# nam trace file set val_(stopTime)15 set chan_a [new $val_(channel)] set chan_b [new $val_(channel)] $ns_ wireless-config -routing$val_(routing) \ -mac$val_(mac) \ -phy$val_(phy) \ -propagation[new $val_(propagation)] \ -topography $topography_ \ -ll $val_(ll) \ -ifq$val_(ifq) \ -ifq-length $val_(ifqlen) \ -antenna$val_(antenna) \ -xyz-trace on \ -ifq-trace on \ -mac-trace on \ -rtm-trace on \ -eot-trace off #---portal node $ns_ node-config -wireless +Portal ;# enable Portal support for {set i 0} {$i$val_(nAP)} {incr i} { ;#ACCESS POINT $ns_ wireless-config -channel $chan_a set node_AP($i) [$ns_ node 1.[expr $i+1].0] $node_AP($i) set-position [expr 100.0*$i*$i] 100.0 0.0 set netif_a($i) [$node_AP($i) add-interface Wireless] ;# add wireless interface ##802.11a set mac_a($i) [new $val_(mac)] $mac_a($i) set SlotTime_ 0.50;# 50us $mac_a($i) set SIFS_ 0.28;# 28us $mac_a($i) set PreambleLength_0;# no preamble_ $mac_a($i) set PLCPHeaderLength_ 128 ;# 128 bits $mac_a($i) set PLCPDataRate_ 1.0e6 ;# 1Mbps $mac_a($i) set dataRate_ 54.0e6 ;# 54Mbps $mac_a($i) set basicRate_ 1.0e6 ;# 1Mbps $netif_a($i) set Pr_ 8.9175e-10 $netif_a($i) set Pt_ 0.2818 $netif_a($i) set freq_ 5.0e+9 $netif_a($i) set RXThresh_ 1.60607e-10 $netif_a($i) set CSThresh_ [expr 0.9*[$netif_a($i) set RXThresh_]] $mac_a($i) netif $netif_a($i) $ns_ wireless-config -channel $chan_b set netif_b($i) [$node_AP($i) add-interface Wireless] ;# add wireless interface ##802.11b/g $netif_b($i) set Pr_ 8.9175e-10 $netif_b($i) set Pt_ 0.007214 $netif_b($i) set freq_ 2.4e+9 $netif_b($i) set RXThresh_ 7.138e-11 $netif_b($i) set CSThresh_ [expr 0.9*[$netif_b($i) set RXThresh_]] $netif_b($i) set DSSS_CWMin 15 $netif_b($i) set DSSS_CWMax 1023 $netif_b($i) set DSSS_SlotTime 0.09 $netif_b($i) set DSSS_CCATime 0.03 $netif_b($i) set DSSS_RxTxTurnaroundTime 0.02 $netif_b($i) set DSSS_SIFSTime 0.16 $netif_b($i) set DSSS_PreambleLength 96 $netif_b($i) set DSSS_PLCPHeaderLength 40 $netif_b($i) set DSSS_PLCPDataRate 6.0e6;#// 6Mbps $netif_b($i) set DSSS_MaxPropagationDelay0.005 ;# // 0.5us set mac_b($i) [new $val_(mac)] $mac_b($i) set SlotTime_ 0.20;# 20us $mac_b($i) set SIFS_ 0.10;# 10us $mac_b($i) set PreambleLength_144;# 144 bits preamble $mac_b($i) set PLCPHeaderLength_ 48 ;# 48 bits $mac_b($i) set PLCPDataRate_ 1.0e6 ;# 1Mbps $mac_b($i) set dataRate_ 11.0e6 ;# 11Mbps oppure 54Mbps(802.11g) $mac_b($i) set basicRate_ 1.0e6 ;# 1Mbps $mac_b($i) netif $netif_b($i) } .. . thanks thanks thanks Elena
[ns] scenario with static and mobile node
hi all how to in NS have scenario with static and mobile node for example 20% mobile and 80% static -- Amin Irandoost
[ns] Need source code for Stratified Round Robin
Dear all, I studied a new packet algorithm named stratified round robin : a low complexity packet scheduler with bandwidth fairness and bounded delay recently,who have researched it or have some idea about it .I need your help If you know something about it ,Please help me ! I am very sincerely grateful to you ! Thank you very much! chenmaoxiang --- 大小单双 机会多多,10分钟就开奖,立即返奖( http://ad4.sina.com.cn/sina/limeng3/mail_zhuiyu/2007/mail_zhuiyu_20070319.html ) === 注册新浪2G免费邮箱( http://mail.sina.com.cn/chooseMode.html )
[ns] Defining diferent multicast groups
Hi ns-users, I have two groups of nodes in my network, and I would like to define two multicast groups, one for each of them. The problem is that the traffic sources send the packets to ALL the nodes, and not only to the nodes within its group. For example, when source 'a' is transmitting to the group 'a' nodes, nodes of the group 'b' also receive the packets and reply with a 'prune' packet. After some time, nodes of the group 'b' do not receive packets from the source 'a', long time passes and they start receiving again. Anyone could give me a explanation of this, or knows the solution to the problem?? Many thanks in advance, Javier P.D. I have defined the multicast groups: set mproto DM set mrthandle [$ns_ mrtproto $mproto] set group_a [Node allocaddr] set group_b [Node allocaddr] I have defined each udp agent to its corresponding group: set udp_a [new Agent/UDP] $udp_a set dst_addr_ $group_a $udp_a set dst_port_ 0 $ns attach-agent $node(0) $udp_a I have attached each node to its corresponding group: $node($i) join-group $sink($i) $group_a __ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com
[ns] number of packets
I would like to know if it is posible in ns2 to fix the number of packets that a mobile node send in a moment.
[ns] [ns2] Drop packets in ns and nam
I am working with DSR and I am droping packets in mobile nodes using dropSendBuff() in trace file I can file that the mobile node drop the packet bun in nam simulation I don't watch it. I dont know if drop SendBuff is corrected for dropping packets or I need another sentence.
Re: [ns] ns/nam: respresentation problem when definingposition-fixed nodes (NEW question)
I have the same situation. I solve it by using the same delay in the real simualtion, and use different delays just for debugging. Pedro Estrela On 3/22/07, Javier Chicote [EMAIL PROTECTED] wrote: Hi, Thank your very much for your reply. It is a good idea, but in my case all the links must have the same delay, so that is not a possibility. It is a pity that NAM does not support this facility. Best regards, Javier - Mensaje original De: Pedro Vale Estrela [EMAIL PROTECTED] Para: Javier Chicote [EMAIL PROTECTED]; ns-users@ISI.EDU Enviado: miércoles, 21 de marzo, 2007 19:02:16 Asunto: RE: [ns] ns/nam: respresentation problem when definingposition-fixed nodes (NEW question) I' tried to add XY coordinates for wired nodes, but nam doesn't support this facility. Instead, I achieve the same result by setting the length of the wired links via their delay Pedro Vale Estrela http://tagus.inesc-id.pt/~pestrela/ns2 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Javier Chicote Sent: quarta-feira, 21 de Março de 2007 17:00 To: ns-users@ISI.EDU Subject: Re: [ns] ns/nam: respresentation problem when definingposition- fixed nodes (NEW question) Hi ns-users, I learnt that the previous problem can be solved by using 'orient' method at the link definition. However, this solution is not enough when defining more complex structures. The next figure shows 4 nodes standing in the imaginary vertexes of a square, which are all of them connected to a master node like it is shown in the next picture: node(1,0)node(1,1) (0,100) (100,100)__ \___\__ \___ \_ \___ master _/(200,50) _/ _/ / / (0,0) (0,100) node(0,0) node(100,0) --- What I would like to know is if it is possible (or not) to define the geographic position of the nodes when the coordinates of them are known in a wired scenario, or other ideas to solve the problem. This is the code of the file: # Network configuration (x,y):## node(1,0)node(1,1)# (0,100) (100,100)__# \___\__ # \___ \_# \___ master# _/(200,50)# _/ _/#/ / #(0,0) (0,100)# node(0,0) node(100,0)# # Create a simulator instanceset ns [new Simulator] # Open the NAM trace fileset namfile [open position-out.nam w]$ns namtrace-all $namfile set rows2 ;# number of rowsset cols2 ;# number of nodes per row # Define nodesfor {set i 0} {$i $rows} {incr i} {for {set j 0} {$j $cols} { incr j } {set node($i,$j) [$ns node] }}set master [$ns node] # Provide initial (X,Y,Z) co-ordinates for nodesfor {set i 0} {$i $rows} {incr i} {set xj 0.0for {set j 0} {$j $cols} { incr j } {$node($i,$j) set X_ $xjif {$i == 0} then { $node($i,$j) set Y_ 0.0} elseif {$i == 1} then { $node($i,$j) set Y_ 100.0 } $node($i,$j) set Z_ 0.0 set xj [expr $xj + 200]}}$master set X_ 200.0$master set Y_ 50.0$master set Z_ 0.0 # Define links between nodes$ns duplex-link $node(0,0) $master 1Mb 100ms DropTail$ns duplex-link $node(0,1) $master 1Mb 100ms DropTail$ns duplex- link $node(1,0) $master 1Mb 100ms DropTail$ns duplex-link $node(1,1) $master 1Mb 100ms DropTail # Define link orientation$ns duplex-link-op $node(0,0) $master orient rigth-up$ns duplex-link-op $node(0,1) $master orient rigth$ns duplex-link- op $node(1,0) $master orient rigth$ns duplex-link-op $node(1,1) $master orient rigth-down # Define a 'finish' procedureproc finish {} {global ns tracefile namfile$ns flush-traceclose $namfile exec nam position-out.nam exit 0} # Stop the simulation$ns at [expr 5.0 - 0.01] puts \Stopping Simulation...\ $ns at 5.0 finish ; $ns halt # Start the simulationputs Starting Simulation...$ns run - Mensaje original De: Javier Chicote [EMAIL PROTECTED] Para: ns-users@isi.edu Enviado: miércoles, 21 de marzo, 2007 11:36:06 Asunto: ns/nam: respresentation problem when defining position-fixed nodes Hi ns-users, I would like to simulate a position-fixed wired network with 2 lines and 3 nodes per line, like it is shown above. The distance between the nodes should be 100 units (for example), so the first node of the matrix will be in (x=0,y=0) and the last node in (x=100, y=200). node(1,1) node(1,2)node(1,3) (100,0)__(100,100)(100,200) ||| ||| |
Re: [ns] Problem setting BO,SO pair in 802.15.4
This reminds me about a bug in the original wpan implementation. Not sure if it is fixed in Iyappan patch as I am using ns-2.29. In the method: bool CsmaCA802_15_4::canProceed(double wtime, bool afterCCA) The following declaration exists: UINT_16 t_bPeriods,t_CAP; For large BO/SO values, UINT_16 is insufficient. I replaced it with UINT_32 and many problems with large BO/SO values were resolved. I used to get poor delivery ratio but now it is reasonable. I have no idea whether this has anything to do with your problem, but you might want to give it a try. There is a good chance it does. Make sure you update the type casts related to these two variables in this method, too. - Ahmad On Thu, 22 Mar 2007 10:47:37 +0100 Stefano Busanelli [EMAIL PROTECTED] wrote: Hi all, I'm using ns-allinone-2.31 package, that includes 802.15.4 implementation made by Zheng subsequently patched by Iyappan. If I set to 14 both Beacon Order (BO) and Superframe Order (SO) values of a generic device (not coordinator), ns returns this error message: ![0.30](node 1) unable to start as a device: active channel scan failed - This happens using scss methods and independently from the values assumed by others flags, like assoPermit or isFFD. Instead if I set BO=14 and SO=13, all works well. Am i making some mistakes or the legal pair (BO=14,SO=14) is not admitted in current implementation of 802.15.4? I'm looking forward to receive your prompt reply. Best regards Busanelli Stefano
[ns] help:Can anyone send me a wireless script which uses Node Movement and Topology Generation Traffic Pattern Generation
Hi ns users, Can anyone send me a wireless script which uses Node Movement and Topology Generation Traffic Pattern Generation which uses the setdest tool and cbrgen traffic there are some errors when i run Marc Greis tutorial script * wireless1.tcl* can anybody send any other script other than wireless1.tcl by which i can include the Node Movement and Topology Generation Traffic Pattern Generation file so that i can run the script in my PC. Plz try to attach or paste the tcl script in your e-mail Plz help me your valuble suggesstions and comments are always welcome. Thanks and Reg: Vijay
Re: [ns] installation problem with ns-2.1b8a
google is your friend http://www.chipweb.de/knoll/NS2/Installing_old_NS2_version_ns-allinone-2_1b6a_on_RedHat_8_0.php On 3/22/07, sachin dahiya [EMAIL PROTECTED] wrote: Hi friends , While installing ns-2.1b8a I am getting this problem 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 please give me the solution Thank you, sachin
[ns] problems about installing NIST WIMAX module. Help me!!!
HI, I installed NIST WIMAX module in NS2 2.29. It occur error massage during complier The error massage as below. diffusion3/filter_core/filter_core.o(.text$_ZN13NeighborEntryC1Ei+0x0):filte r_co re.cc: multiple definition of `NeighborEntry::NeighborEntry[in-charge](int)' wimax/neighborentry.o(.text+0x5e):neighborentry.cc: first defined here collect2: ld returned 1 exit status make: *** [ns] Error 1 Could you help me to solve it? Best regard,
[ns] I have need help in order to understand if my configuration is correct!
Hi ns-users, In my script I would want set up the Access Point with 2 interfaces in 2 different channels (chan_a,chan_b), one with the standard 802.11a and the other second standard 802.11b. Please, I have need help in order to understand if my configuration is correct! If isn't, can you give a suggestion to me? (in my script the configuration of the nodes follows mw-node) My script: global val_ set val_(channel) Channel/Wireless;# channel set val_(propagation) Propagation/TwoRayGround ;# radio-propagation model set val_(phy) Phy/WirelessPhy ;# physical layer set val_(mac) Mac/802_11 ;# mac layer set val_(ifq) Queue/DropTail/PriQueue ;# interface queue type set val_(ll) LL ;# link layer type set val_(antenna) Antenna/OmniAntenna ;# antenna model set val_(ifqlen) 50 ;# max packet in ifq set val_(routing) None;# routing set val_(nMn) 2 set val_(nAP) 2 set val_(x) 150 set val_(y) 150 set val_(tr) esercizi/out5.tr;# trace file set val_(namtr) esercizi/out5.nam;# nam trace file set val_(stopTime)15 set chan_a [new $val_(channel)] set chan_b [new $val_(channel)] $ns_ wireless-config -routing$val_(routing) \ -mac$val_(mac) \ -phy$val_(phy) \ -propagation[new $val_(propagation)] \ -topography $topography_ \ -ll $val_(ll) \ -ifq$val_(ifq) \ -ifq-length $val_(ifqlen) \ -antenna$val_(antenna) \ -xyz-trace on \ -ifq-trace on \ -mac-trace on \ -rtm-trace on \ -eot-trace off #---portal node $ns_ node-config -wireless +Portal ;# enable Portal support for {set i 0} {$i$val_(nAP)} {incr i} { ;#ACCESS POINT $ns_ wireless-config -channel $chan_a set node_AP($i) [$ns_ node 1.[expr $i+1].0] $node_AP($i) set-position [expr 100.0*$i*$i] 100.0 0.0 set netif_a($i) [$node_AP($i) add-interface Wireless] ;# add wireless interface ##802.11a set mac_a($i) [new $val_(mac)] $mac_a($i) set SlotTime_ 0.50;# 50us $mac_a($i) set SIFS_ 0.28;# 28us $mac_a($i) set PreambleLength_0;# no preamble_ $mac_a($i) set PLCPHeaderLength_ 128 ;# 128 bits $mac_a($i) set PLCPDataRate_ 1.0e6 ;# 1Mbps $mac_a($i) set dataRate_ 54.0e6 ;# 54Mbps $mac_a($i) set basicRate_ 1.0e6 ;# 1Mbps $netif_a($i) set Pr_ 8.9175e-10 $netif_a($i) set Pt_ 0.2818 $netif_a($i) set freq_ 5.0e+9 $netif_a($i) set RXThresh_ 1.60607e-10 $netif_a($i) set CSThresh_ [expr 0.9*[$netif_a($i) set RXThresh_]] $mac_a($i) netif $netif_a($i) $ns_ wireless-config -channel $chan_b set netif_b($i) [$node_AP($i) add-interface Wireless] ;# add wireless interface ##802.11b/g $netif_b($i) set Pr_ 8.9175e-10 $netif_b($i) set Pt_ 0.007214 $netif_b($i) set freq_ 2.4e+9 $netif_b($i) set RXThresh_ 7.138e-11 $netif_b($i) set CSThresh_ [expr 0.9*[$netif_b($i) set RXThresh_]] $netif_b($i) set DSSS_CWMin 15 $netif_b($i) set DSSS_CWMax 1023 $netif_b($i) set DSSS_SlotTime 0.09 $netif_b($i) set DSSS_CCATime 0.03 $netif_b($i) set DSSS_RxTxTurnaroundTime 0.02 $netif_b($i) set DSSS_SIFSTime 0.16 $netif_b($i) set DSSS_PreambleLength 96 $netif_b($i) set DSSS_PLCPHeaderLength 40 $netif_b($i) set DSSS_PLCPDataRate 6.0e6;#// 6Mbps $netif_b($i) set DSSS_MaxPropagationDelay0.005 ;# // 0.5us set mac_b($i) [new $val_(mac)] $mac_b($i) set SlotTime_ 0.20;# 20us $mac_b($i) set SIFS_ 0.10;# 10us $mac_b($i) set PreambleLength_144;# 144 bits preamble $mac_b($i) set PLCPHeaderLength_ 48 ;# 48 bits $mac_b($i) set PLCPDataRate_ 1.0e6 ;# 1Mbps $mac_b($i) set dataRate_ 11.0e6 ;# 11Mbps oppure 54Mbps(802.11g) $mac_b($i) set basicRate_ 1.0e6 ;# 1Mbps $mac_b($i) netif $netif_b($i) } .. . thanks thanks thanks Elena
[ns] problem with Scheduler(please see this code and tell me mistake)
hi all what is problem this code? set k 0 $ns at 0.2 set k 4 $ns at 0.3 puts \k=$k\print 0 lieu 4 on screen !!! Thanks in advance -- Amin Irandoost
[ns] Xcast (Explicit Multicast) implementation
Hi, Did anyone got xcast for MANET implementation . Please I need it . Thanks
Re: [ns] problem with Scheduler(please see this code and tell memistake)
$ns at 0.2 global k; set k 4 $ns at 0.3 glonal k; puts \k=$k\ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Amin Irandoost Sent: quinta-feira, 22 de Março de 2007 15:18 To: ns-users@ISI.EDU Subject: [ns] problem with Scheduler(please see this code and tell memistake) hi all what is problem this code? set k 0 $ns at 0.2 set k 4 $ns at 0.3 puts \k=$k\print 0 lieu 4 on screen !!! Thanks in advance -- Amin Irandoost
[ns] Multiple Radios on One Node
Hello, I'd like to simulate 2 radios on 1 node.. basically concurrent transmission on 2 channels. It would be of great help if someone can suggest a reference tutorial/code/example .. Regards, -- Goutham B
[ns] trace file
hi how i can read read the trace file. thanks _ MSN Messenger : discutez en direct avec vos amis ! http://www.msn.fr/msger/default.asp
Re: [ns] Multiple Radios on One Node
If you are talking about using multiple channels on one node, the following link gives some hints. However, I have not tried it myself. Please let me know how it works. http://www.cse.msu.edu/~wangbo1/ns2/nshowto8.html --- Song Luo Research Scientist Intelligent Automation, Inc. (301)294-4633 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Goutham B Sent: Thursday, March 22, 2007 1:07 PM To: ns-users@ISI.EDU Subject: [ns] Multiple Radios on One Node Hello, I'd like to simulate 2 radios on 1 node.. basically concurrent transmission on 2 channels. It would be of great help if someone can suggest a reference tutorial/code/example .. Regards, -- Goutham B __ This message and all attachments are PRIVATE, and contain information that is PROPRIETARY to Intelligent Automation, Inc. You are not authorized to transmit or otherwise disclose this message or any attachments to any third party whatsoever without the express written consent of Intelligent Automation, Inc. If you received this message in error or you are not willing to view this message or any attachments on a confidential basis, please immediately delete this email and any attachments and notify Intelligent Automation, Inc.
[ns] olsr performance
hi what i should modify to find good results of the perfomances of the protocol olsr. thanks _ MSN Messenger : discutez en direct avec vos amis ! http://www.msn.fr/msger/default.asp
Re: [ns] trace file
open it in notepad On 3/22/07, badii louati [EMAIL PROTECTED] wrote: hi how i can read read the trace file. thanks _ MSN Messenger : discutez en direct avec vos amis ! http://www.msn.fr/msger/default.asp
[ns] The Exact Value Between Two Subseqent RTS Packets
Dear All, Can You Bring me The Exact Value Between Two Subseqent RTS Packets when The CTS of the First Packet Cant Return To Sender ? I cant find it in IEEE 802.11 Documentation. Best Regards Hamid Reza It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. http://tools.search.yahoo.com/toolbar/features/mail/
Re: [ns] FHMIP - anyone got the FHMIP extension to work? (coded by Robert Hsieh)
Im not sure, but I think this error can be corrected by applying this patch that Ive described here: http://mailman.isi.edu/pipermail/ns-users/2004-September/044531.html (also see my nest post about FHMIP for ns2.31) Pedro Vale Estrela -Original Message- From: shayma sinan [mailto:[EMAIL PROTECTED] Sent: quinta-feira, 22 de Março de 2007 2:05 To: [EMAIL PROTECTED] Subject: Re: FHMIP - anyone got the FHMIP extension to work? (coded by Robert Hsieh) Hi, I am also facing a problem in running FHMIP package under ns2.28 i got the same error mentioned here http://mailman.isi.edu/pipermail/ns-users/2005-August/051595.html without modifying (simula.tcl) hope you can find somebody to help... good luck! regards, Shayma Pedro Vale Estrela [EMAIL PROTECTED] wrote: Hi all, Previously, I've asked in the NS2 list if anyone had a copy of Robert Hsieh's FHMIP NS2 extension for NS2.1b7; with the reply, I've updated my NS2 mobility page with the available source code: http://tagus.inesc-id.pt/~pestrela/ns2/mobility.html#_Toc147660119 Currently, I'm trying to upgrade and put this extension to work. I've already got it compiling in NS2.31, but when I run the __unmodified__ example (simula.tcl), I got this failed assertion: BS Setting up encapsulate mechanism [1.0.1]-[2.0.0] 7.093759 HA 1.0.0 updated (FA 2.0.0), packet 32 7.150404 BS 3.1.0 received reply from BS 1.0.0, packet 32 mipmh-coa_ 2.0.0 nodeaddr 3.1.0 ns: mobile/mip-reg.cc:261: virtual void MIPBSAgent::recv(Packet*, Handler*): Assertion `miph-coa_ == nodeaddr' failed. Aborted (core dumped) This happens in this part of the code: case MIPT_REG_REPLY: { #ifndef MIP_QUIET printf(%f BS %s received reply from BS %s, packet %i\n, Scheduler::instance().clock(), Address::instance().print_nodeaddr(addr()), Address::instance().print_nodeaddr(iph-saddr()), ch-uid()); // JCW #endif assert(miph-coa_ == nodeaddr); // crashes here tcl.evalf(%s get-link %d %d, name_, nodeaddr, miph-haddr_); // // XXX hacking mobileip. all this should go away // when mobileIP for sun-wired model is no longer reqd. // ... Thus, my questions are: a) has somebody got an working FHMIP extension? b) Is it necessary to modify simula.tcl or mip-reg.cc use another simulation scenario, as to avoid this bug? If yes, please send me the modified code and I'll upgrade it to ns2.31, and give credit to the person in my NS2 mobility page. Pedro Vale Estrela _ Web email has come of age. Don't settle for less than the All http://us.rd.yahoo.com/mail/uk/taglines/gmail_com/nowyoucan/web_mail/*http: /us.rd.yahoo.com/evt=40566/*http:/uk.docs.yahoo.com/nowyoucan.html New Yahoo! Mail.
Re: [ns] Protocol
Have you asked of for the BCMP NS2 code to the authors of this paper? http://comet.columbia.edu/~zoltan/ist_brain.pdf one of them is from the same university as you... Pedro Estrela -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kok-Seng A. Hew Sent: quarta-feira, 21 de Março de 2007 19:28 To: ns-users@ISI.EDU Subject: Re: [ns] Protocol Hi All, I was wondering if anyone had the simulation code for the BCMP protocol or similar protocol of sorts. Network Domain 1 Domain 2 Access Network 1 AN2 AN3 AN4 Each access network has two access points (AP) The mobile host moves fro AP1 to AP2 to AP3 and so forth. Kok-Seng A. Hew Undergraduate B.Eng Electrical Engineering King's College London Strand, London WC2R 2LS England United Kingdom Mobile: +44(0) 7775 755232 E-mail: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]
[ns] PRELIMINARY FHMIP upgraded for ns2.31
PRELIMINARY FHMIP upgraded for ns2.31 I've upgraded the Robert Hsieh's FHMIP code in order to compile in latest ns2.31. I've also added to it the modifications detailed in appendix B of this report (Handover Blackout Duration of Layer 3 Mobility Management Schemes, http://www.tkn.tu-berlin.de/publications/papers/Handover_Blackout_Duration_o f_L3_Mobility_Management_Schemes1.pdf) However, when I've tried the HMIP part of the extension (the MAP), the simulation continues to crash in a failed assert; however, I've tried the FMIP part alone, and it seems to run OK. __Please note that I did not test this extension any further__ To install: first, install NS-allinone-2.31; then, uncompress and apply the patch (http://tagus.inesc-id.pt/~pestrela/ns2/files/ns2.31_fhmip.patch.gz) , then reconfigure and recompile ns2 again. The original FHMIP example is located in /tcl/ex/fhmip ns2.31 cat ns2.31_fhmip.patch | patch -p1 ns2.31 ./configure --enable-debug ns2.31 make ns2.31/tcl/ex/fhmip ../../../ns fhmip_simula.tcl __again, Please note that I did not test this extension any further__ Pedro Vale Estrela http://tagus.inesc-id.pt/~pestrela/ns2/mobility.html#_Toc147660119 Pedro Vale Estrela schrieb: Hi all, Previously, I've asked in the NS2 list if anyone had a copy of Robert Hsieh's FHMIP NS2 extension for NS2.1b7; with the reply, I've updated my NS2 mobility page with the available source code: http://tagus.inesc-id.pt/~pestrela/ns2/mobility.html#_Toc147660119 Currently, I'm trying to upgrade and put this extension to work. I've already got it compiling in NS2.31, but when I run the __unmodified__ example (simula.tcl), I got this failed assertion: BS Setting up encapsulate mechanism [1.0.1]-[2.0.0] 7.093759 HA 1.0.0 updated (FA 2.0.0), packet 32 7.150404 BS 3.1.0 received reply from BS 1.0.0, packet 32 mipmh-coa_ 2.0.0 nodeaddr 3.1.0 ns: mobile/mip-reg.cc:261: virtual void MIPBSAgent::recv(Packet*, Handler*): Assertion `miph-coa_ == nodeaddr' failed. Aborted (core dumped) This happens in this part of the code: case MIPT_REG_REPLY: { #ifndef MIP_QUIET printf(%f BS %s received reply from BS %s, packet %i\n, Scheduler::instance().clock(), Address::instance().print_nodeaddr(addr()), Address::instance().print_nodeaddr(iph-saddr()), ch-uid()); // JCW #endif assert(miph-coa_ == nodeaddr); // crashes here tcl.evalf(%s get-link %d %d, name_, nodeaddr, miph-haddr_); // // XXX hacking mobileip. all this should go away // when mobileIP for sun-wired model is no longer reqd. // ... Thus, my questions are: a) has somebody got an working FHMIP extension? b) Is it necessary to modify simula.tcl or mip-reg.cc use another simulation scenario, as to avoid this bug? If yes, please send me the modified code and I'll upgrade it to ns2.31, and give credit to the person in my NS2 mobility page. Pedro Vale Estrela
Re: [ns] The Exact Value Between Two Subseqent RTS Packets
Hamid, I assume by value you are talking about time between two packets. There is no specific time that is between two packets. Once the first packet is sent, the receiver waits for a timeout period. If it does not receive a CTS it increments a backoff counter and selects a random time frame to wait to try sending another RTS. This value is not fixed. The boundaries for which the random backoff time is chosen are dependant on the minimum contention window and how many times a node has failed accessing the channel. Dan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of hamid reza Sent: Thursday, March 22, 2007 4:08 PM To: manet@ietf.org; ns-users@ISI.EDU Subject: [ns] The Exact Value Between Two Subseqent RTS Packets Dear All, Can You Bring me The Exact Value Between Two Subseqent RTS Packets when The CTS of the First Packet Cant Return To Sender ? I cant find it in IEEE 802.11 Documentation. Best Regards Hamid Reza It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. http://tools.search.yahoo.com/toolbar/features/mail/
[ns] performance of olsr
Hi, what i should modify to have a good results and interpretaions of the protocol olsr _ MSN Hotmail : créez votre adresse e-mail gratuite à vie ! http://www.msn.fr/newhotmail/Default.asp?Ath=f
[ns] how to compile agent.cc of ns
On 3/23/07, smita vishwakarma [EMAIL PROTECTED] wrote: Hi, I am facing problem in ns-2.30 all the .cc program file gives me compilaton error then How could I include all that files in my program ? Kindly, give me any suggestion. Thanks Regards, Smita Vishwakarma C-DAC
[ns] Please help me debug the error in wireless1.tcl and wireless.tcl (Error messages Attached)
Hi ns users, I am facing problems when i try to exceute wireless.tcl,wireless1.tcl and wireless2.tcl can anyone tell what the problem may be and provide a solution. I got the error message when i tried to excecute wireless.tcl found in ns-2.30/tcl/ex/wireless.tcl directory can anyone help debug or suggest a solution for the below problem [EMAIL PROTECTED] hai]$ ns wireless.tcl* *couldn't read file ../lib/ns-bsnode.tcl: no such file or directory* *while executing* *source.orig ../lib/ns-bsnode.tcl* *(uplevel body line 1)* *invoked from within* *uplevel source.orig [list $fileName]* *invoked from within* *if [$instance_ is_http_url $fileName] {* *set buffer [$instance_ read_url $fileName]* *uplevel eval $buffer* *} else {* *uplevel source.orig [list $fileName]* *...* *(procedure source line 8)* *invoked from within* *source ../lib/ns-bsnode.tcl* *(file wireless.tcl line 191)* Plz refer the attachment so that u can go through the error messages and suggest some solution as to how to debug the problem . Your Comments and suggestions are most welome Thanks and Reg: Vijay I got the error message when i tried to excecute wireless.tcl found in ns-2.30/tcl/ex/wireless.tcl directory can anyone help debug or suggest a solution for the below problem [EMAIL PROTECTED] hai]$ ns wireless.tcl couldn't read file ../lib/ns-bsnode.tcl: no such file or directory while executing source.orig ../lib/ns-bsnode.tcl (uplevel body line 1) invoked from within uplevel source.orig [list $fileName] invoked from within if [$instance_ is_http_url $fileName] { set buffer [$instance_ read_url $fileName] uplevel eval $buffer } else { uplevel source.orig [list $fileName] ... (procedure source line 8) invoked from within source ../lib/ns-bsnode.tcl (file wireless.tcl line 191) I got the error message when i tried to excecute wireless1.tcl found in wireless1.tcl from Marc Greis' tutorial can anyone help debug or suggest a solution for the below problem [EMAIL PROTECTED] ns-2.30]$ ns wireless1.tcl num_nodes is set 3 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead Loading connection pattern... couldn't read file ../mobility/scene/cbr-3-test: no such file or directory while executing source.orig ../mobility/scene/cbr-3-test (uplevel body line 1) invoked from within uplevel source.orig [list $fileName] invoked from within if [$instance_ is_http_url $fileName] { set buffer [$instance_ read_url $fileName] uplevel eval $buffer } else { uplevel source.orig [list $fileName] ... (procedure source line 8) invoked from within source $val(cp) (file wireless1.tcl line 121) I got the error message when i tried to excecute wireless2.tcl found in wireless2.tcl from Marc Greis' tutorial can anyone help debug or suggest a solution for the below problem [EMAIL PROTECTED] ns-2.30]$ ns wireless2.tcl num_nodes is set 4 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead *** NOTE: no connection pattern specified. Loading scenario file... couldn't read file ../mobility/scene/scen-3-test: no such file or directory while executing source.orig ../mobility/scene/scen-3-test (uplevel body line 1) invoked from within uplevel source.orig [list $fileName] invoked from within if [$instance_ is_http_url $fileName] { set buffer [$instance_ read_url $fileName] uplevel eval $buffer } else { uplevel source.orig [list $fileName] ... (procedure source line 8) invoked from within source $opt(sc) invoked from within if { $opt(sc) == } { puts *** NOTE: no scenario file specified. set opt(sc) none } else { puts Loading scenario file... source $op... (file wireless2.tcl line 183)
[ns] queue block and unblock help (can anyone summarize a correct step to do this?)
Hello ns users, From the past few years, there are a lot of questions regarding to make block and unblock queue dynamically by set blocked_ variable at queue.cc. I wonder if there is anyone who can make this work? If yes, could you please draw the step to do? If not, I wonder if anyone can come up with some trick to simulate a block and unblock queue? One thing I am curious is that if it's because NS2 is a event driven so the queue can't be drained if there is no packet coming in to that queue to activate deque(). Thank you Chakchai SO-IN _ Watch free concerts with Pink, Rod Stewart, Oasis and more. Visit MSN Presents today. http://music.msn.com/presents?icid=ncmsnpresentstaglineocid=T002MSN03A07001