[ns] How to use cmu-trace
Hi all, I my project i want to trace/count the no of pkts etc. I am working with wireless ad hoc network simulation.=0A In that i couldn't understand how to use the following instruction... set T [cmu-trace Send RTR $node] from this how i am going to know the RTR pkts sent by the node? Pl. help. I am trying very hard but couldn't understand. Regards Vijay
Re: [ns] help on random FTP connections
As far as the random behaviour is concerned there is a quite good Random number generator implemented in NS, that can also generate random numbers from various distributions. You can check the NS-2 manual in the chapter Mathematical Support for further information. -Fk On 7/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: -- Forwarded message -- From: sorin pasa [EMAIL PROTECTED] To: ns-users@ISI.EDU Date: Wed, 12 Jul 2006 05:51:06 -0700 (PDT) Subject: [ns] help on random FTP connections Hello ns users, if I create 100 nodes attached to one central node , can anyone tell me how to create FTP connections of every node with the central one and start them in a random way (presuming I have to download from the central node a 5 Mb file for every node in an interval of 5 minutes). I hope you can help me.Thanks, Sorin - Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better. -- Filippos N 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] --
[ns] example sensor network application which actually has run on ns2
Please someone, Send me some sensor network application which have actually run on ns2.2X Srirupa
[ns] how can i get the CTS, RTS and packet range of 802.11 net
hi ns users; i want to know how can i get the CTS, RTS and packet range in 802.11 simulation ? i'm doing some analysis and it is primordial to know this informaion thanks in advance.
Re: [ns] how can i get the CTS, RTS and packet range of 802.11 net
Hi there from my simulations and keeping it simple The default range for the packet delivery is 250m and that of Carrier sense Threshold is 550m, so from Node A ---B if the distance is less than or equal to 250 , then , the packet will be recieved successfully. If the distace is greater than 250m and less than 550, the packet will be recieved/sensed by node B, but will be dropped as an error, but if the distance is greater than 550m , then the packet will never reach nor will be sensed by Node B. This applies to all the packets either RTS/CTS/DATA/Ack and so on I hope this helps regards hi ns users; i want to know how can i get the CTS, RTS and packet range in 802.11 simulation ? i'm doing some analysis and it is primordial to know this informaion thanks in advance. Kind regards Qasim Raza Iqbal PhD Candidate, ACNRG Lab N504, Office N505 Adaptive Communications Networks Research Group, School of Engineering And Applied Science Aston University Birmingham B4 7ET United Kingdom http://www.ee.aston.ac.uk/research/acrg/index.html
Re: [ns] Transmission and Interference Range
Hi , I didnot know about these three transmit power levels. Thanks Iqbal for that. I wanted to have Interference Range(Carrier Sense Range) to be twice the Communication Range. So I achieved by calculating CSThresh_ value by following formula Pt * Gt * Gr * (hr * hr * ht * ht) / {(Required interference range) ^ 4} --Ashish On 7/13/06, Q.R.Iqbal [EMAIL PROTECTED] wrote: Hi there I think there is no other cleaner or easiar way to do that unless you modify the code. One thing you have to be aware of is that by modifying the transmission range, you are only changing the receiver threshold, A distance from which a receiver can receive. Again there are three different transmit power levels that are given for the wavelan Modem 40m 8.5872e-4 100m 7.214e-3 250m 02818 Maybe you need to use one of these parameters, the closest to your required transmission range and then calculate the RXthreshold values, to get a better result. Also you need to be aware of CSthreshold,. If you are limiting the node's transmission range to 40m or 100m or any value, the CSthreshold value, will still be very large, about 550m by default, you might also want to tweak that parameter to see if this improves your results I hope this helps Hi, Can you tell me a clean way to change transmission and interference ranges in ns-2? I tried the threshold program given ~ns/indep-utils/propagation/ but that somehow is not giving correct values. Regards, -- Ashish Sangwan B.Tech, Computer Science Engineering IIT Delhi -- I do know everything, just not all at once. It's a virtual memory problem. Kind regards Qasim Raza Iqbal PhD Candidate, ACNRG Lab N504, Office N505 Adaptive Communications Networks Research Group, School of Engineering And Applied Science Aston University Birmingham B4 7ET United Kingdom http://www.ee.aston.ac.uk/research/acrg/index.html
[ns] Simulating IP v4/IPv6 network with 2 nodes and a router
Hello, I am very new to ns, so any pointers will be very much appreciated. I have been assigned to come up with the following 2 simulations using ns: [IPv4 host] [IPv4 router]-[IPv4 host] [IPv4 host] [IPv4 router with header translation]-[IPv6 host] I have gone through the ns documentations, but have not been able to locate sample codes where $ns node specifies an IP address. Has anyone implemented a model along these lines? Thank you __ William Ampeh
Re: [ns] How to use cmu-trace
you can learn it from the trace file after completion of your simulation. you can search the field whose value is RTR and node ID is what you want with some shell programming experiment. Hi all, I my project i want to trace/count the no of pkts etc. I am working with wireless ad hoc network simulation.=0A In that i couldn't understand how to use the following instruction... set T [cmu-trace Send RTR $node] from this how i am going to know the RTR pkts sent by the node? Pl. help. I am trying very hard but couldn't understand. Regards Vijay
[ns] Packet Loss Rates vs Data Rates
Hi, I am trying to build a simple two node transmission set up in ns-2. I want to change the packet loss rates (say 0.1, 0.2, 0.3 ..0.9 etc.) and data rates (1, 2, 5.5, 11 Mbps etc.) and want to see the corresponding data rate throughput of the two node system. Later I want to tabulate these accordingly in order to see the throughput variations. I was just wondering if anyone could help me regarding such a set up as to how I can vary both packet loss rates and data rates... Thanks in advance Manish Ph.D.c Electrical Engg. ODU, Norfolk, VA - Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta.
Re: [ns] Transmission and Interference Range
Check this code that I'm using to set the power based on the circular distance in meters: Usage: set coverage [CellCoverage 1 1 $MAX_X $MAX_Y $OVERLAP] set power [SetPt $coverage] Phy/WirelessPhy set Pt_ $power $ns node-config -rxPower $power -txPower $power - ### ### ### generic POWER functions # # Given overlaping area, calculate the desired coverage # expects a BOUNDING BOX for the cell, with the mobile in the center # proc CellCoverage { x1 y1 x2 y2 overlap} { set d2 [expr ($x2-$x1)*($x2-$x1) + ($y2-$y1)*($y2-$y1)] set d [expr sqrt($d2)] ;# Hipotenusa set ret [expr ($overlap + $d) / 2] puts D2: $d2 D: $d RET: $ret return $ret } # # Given overlaping area, calculate the desired coverage # expects a QUARTER BOUNDING BOX for the cell, with the mobile in the 0,0 position (lower left corner) # proc HalfCellCoverage { x1 y1 x2 y2 overlap } { return [expr [CellCoverage $x1 $y1 $x2 $y2 $overlap] * 2] } # # Calculate Necessary Transmission Power Pt for given coverage # # See /mobile/tworayground.cc # proc SetPt { coverage } { set Gt [Antenna/OmniAntenna set Gt_] set Gr [Antenna/OmniAntenna set Gr_] set ht [Antenna/OmniAntenna set Z_] set hr [Antenna/OmniAntenna set Z_] set RXThresh [Phy/WirelessPhy set RXThresh_] set L [Phy/WirelessPhy set L_] set Pt_ [Phy/WirelessPhy set Pt_] set freq_ [Phy/WirelessPhy set freq_] set lambda [expr 3 / $freq_] set crossover_dist [expr (4 * 3.1415926535897 * $ht * $hr) / $lambda ]; puts old pt: $Pt_ RXThresh: $RXThresh lambda: $lambda \t\t crosshover: $crossover_dist coverage: $coverage if { [expr $coverage $crossover_dist] } { puts Using Friis formula set M [expr $lambda / (4.0 * 3.1415926535897 * $coverage)] set Pt [expr $RXThresh * ($L / ($Gt*$Gr*$M*$M))] puts RET: $Pt } else { puts Using TwoRay formula #Calculate input power necessary to have, at dist $coverage, output power = $RXThresh set d4 [expr pow($coverage,4)] set Pt [expr $RXThresh * (($L*$d4) / ($Gt*$Gr*$ht*$ht*$hr*$hr))] puts D4: $d4 RET: $Pt } #debug 1 return $Pt } #/* # * Friis free space equation: # * # * Pt * Gt * Gr * (lambda^2) # * P = -- # * (4 * pi * d)^2 * L # */ # from /mobile/tworayground.cc: # # TwoRayGround formula # power = Pt * Gt * Gr * (hr * hr * ht * ht) / (d * d * d * d * L); # # -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ashish Sangwan Sent: quinta-feira, 13 de Julho de 2006 14:59 To: Q. R. Iqbal Cc: ns-users@ISI.EDU Subject: Re: [ns] Transmission and Interference Range Hi , I didnot know about these three transmit power levels. Thanks Iqbal for that. I wanted to have Interference Range(Carrier Sense Range) to be twice the Communication Range. So I achieved by calculating CSThresh_ value by following formula Pt * Gt * Gr * (hr * hr * ht * ht) / {(Required interference range) ^ 4} --Ashish On 7/13/06, Q.R.Iqbal [EMAIL PROTECTED] wrote: Hi there I think there is no other cleaner or easiar way to do that unless you modify the code. One thing you have to be aware of is that by modifying the transmission range, you are only changing the receiver threshold, A distance from which a receiver can receive. Again there are three different transmit power levels that are given for the wavelan Modem 40m 8.5872e-4 100m 7.214e-3 250m 02818 Maybe you need to use one of these parameters, the closest to your required transmission range and then calculate the RXthreshold values, to get a better result. Also you need to be aware of CSthreshold,. If you are limiting the node's transmission range to 40m or 100m or any value, the CSthreshold value, will still be very large, about 550m by default, you might also want to tweak that parameter to see if this improves your results I hope this helps Hi, Can you tell me a clean way to change transmission and interference ranges in ns-2? I tried the threshold program given ~ns/indep-utils/propagation/ but that somehow is not giving correct values. Regards, -- Ashish Sangwan B.Tech, Computer Science Engineering IIT Delhi -- I do know everything, just not all at once. It's a virtual memory problem. Kind regards Qasim Raza Iqbal PhD Candidate, ACNRG