[ns] ns-2 FAQ

2010-10-01 Thread tomhend

The Network Simulator ns-2: Frequently Asked Questions

Note:  This FAQ is now available at the project wiki:
http://nsnam.isi.edu/nsnam/index.php/Ns_Users_FAQ

   _The mailing is is now subscriber only---please see the FAQ entry on
   How do I post to the mailing list? Why was my post rejected? for
   details._

 * _Where do I get ns?_

   From the ns web site at http://www.isi.edu/nsnam/ns/ns.html and
   the download page http://www.isi.edu/nsnam/ns/ns-tests.html.

 * _What platforms does ns run on and what kind of hardware do I
   need?_

   Please see where to start on the building ns web page:
   http://www.isi.edu/nsnam/ns/ns-build.html#start.

 * _What should I do if I have trouble downloading/extracting ns?_

   This question is answered in detail at
   http://www.isi.edu/nsnam/ns/ns-problems.html#downloading.

 * _What should I do if I encounter problems building ns?_

   Check:
 1. the README that comes in the distribution (very brief),
 2. the installation problems, bug fixes and help web page
http://www.isi.edu/nsnam/ns/ns-problems.html,
 3. the archives of the ns-users mailing list
http://www.isi.edu/nsnam/ns/ns-lists.html,
 4. post a bug report (see below)
http://www.isi.edu/cgi-bin/nsnam/reportbug.cgi.

 * _What do I do after I successfully build ns?_

  + Put the path to your ns executable into your PATH environment
  + Put the path to your otcl into your LD_LIBRARY_PATH
environment
  + Put the path to your tcl library into your TCL_LIBRARY
environment

 * _Where can I find documentation for ns?_

   All documentation is linked from the main ns web page
   http://www.isi.edu/nsnam/ns/. Documentation includes a tutorial
   (originally from Marc Greis) and a reference manual (ns notes and
   documentation).

 * _Words, words, words... that documentation is nice, but where are
   some sample scripts I can start from?_

   Many sample scripts can be found in the ns distribution in
   ~ns-2/tcl/ex and ~ns-2/tcl/test.

 * _What protocols does ns support?_

   A lot! Almost all variants of TCP, several forms of multicast,
   wired networking, several ad hoc routing protocols and propagation
   models (but not cellular phones), data diffusion, satellite, and
   other stuff. See the documentation (described above) for details,
   or download ns and look.

 * _How do I know that ns correctly implements these protocols?_

   Ns has validation tests that cover many protocols, see
   http://www.isi.edu/nsnam/ns/ns-tests.html. However, ultimately
   users are responsible for verifying that ns is accurate for their
   purposes---since we cannot foresee all the ways ns may be used, we
   cannot test all cases with all inputs.

 * _Are there any contributed/additional protocols not in the main
   distribution?_

   Yes, please see the contributed code web page
   http://www.isi.edu/nsnam/ns/ns-contributed.html. The mailing list
   archives can also be helpful (see below).

 * _How should I get started doing something (like implementing a new
   protocol or trying an experiment)?_

   We recommend that you look through the tutorial (see
   documentation, above), then start with an example program that is
   most similar to yours (in the tutorial, or in tcl/ex or tcl/test
   in the distribution), and then start changing things.

 * _What should I do to compile ns to reflect my changes if I've
   modified some .cc or .h files?_

   go to ns directory and run make or make depend; make

 * _How do I subscribe to the ns-users mailing list? How do I search
   old list archives? I can't take any more---how do I get off this
   list?_

   To subscribe or unsubscribe, see
   http://www.isi.edu/nsnam/ns/ns-lists.html. The list archive is at
   http://www.isi.edu/nsnam/ns/ns-lists.html.

 * _How do I post to the mailing list? Why was my post rejected?_

   As of June 2004 the ns-users lists allow posts from _subscriber
   only_. If you're not a subscriber, your posts to the list will be
   rejected. (This is unfortunately necessary to dispose efficiently
   of spam; manual filtering is too expensive.) We realize that the
   list is high traffic, so if you wish to post to the list without
   receiving messages on it, please subscribe and select the _no-mail_
   option for your subscription.

   For details about the mailing list including mailing-list specific
   FAQ (for example, what if you're subscribed but still can't post),
   please see http://www.isi.edu/nsnam/ns/ns-lists.html.

 * _Did my post appear on the mailing list? (Or, why didn't my post
   appear on the mailing list?)_

   See the 

[ns] probs in project

2010-10-01 Thread anand

is it posible to create a scenario in which a node can send and recive only
at 1 freq. at a time...means it can't send data packets simultaniously at
diff. freq. if yes plz tel me how..



hey i m final year student i m having my project on sybil attack in manet if
any 1 can have knowlde in this field plz help me outis sybil attack
implimented erlier?? and is it posible to create a sybil free env. plz tell
me


thnx anny


[ns] 802.11 simulation

2010-10-01 Thread robertodb


I have to simulate a network with N 802.11 nodes associated with the same
Access Point where all nodes can hear each other. Every node has a CBR
source over UDP, except the node 1 with a CBR source over TCP, towards the
AP, while on the access point there are N sources CBR over UDP for each node
in the network.
I try to do my best, but it's my first script, and it doesn't work.
here's the code

#
# ==
# Define options
# ==
#
  set opt(chan)   Channel/WirelessChannel
  set opt(netif)  Phy/WirelessPhy
  set opt(mac)Mac/802_11
  set opt(ifq)Queue/DropTail/PriQueue
  set opt(prop)   Propagation/Shadowing
  set opt(ll) LL
  set opt(ant)Antenna/OmniAntenna
  set opt(x)  100   ;# X dimension of the topography
  set opt(y)  100   ;# Y dimension of the topography
  set opt(ifqlen) 50;# max packet in ifq
  set opt(seed)   0.0   ;# seed for ns-2 rand()
  set opt(nn) 10;# how many wireless nodes are simulated
  set opt(rp) DumbAgent ;# No Routing protocol
  set opt(stop)   150   ;# simulation time

# UDP Agent
Agent/UDP set packetSize_ 2000 ;# now the default maximum
segment size is 2000 bytes
   ;# so the 1500 byte packet is not
fragmented
Mac/802_11 set RTSThreshold_  3000 ;# disable RTS/CTS
Mac/802_11 set ShortRetryLimit_   4
Mac/802_11 set CWMin_ 31
Mac/802_11 set CWMax_ 1023

# FHSS (IEEE 802.11)
Mac/802_11 set SlotTime_   0.20
Mac/802_11 set SIFS_   0.10
Mac/802_11 set PreambleLength_   64
Mac/802_11 set PLCPHeaderLength_128
Mac/802_11 set PLCPDataRate_  1.0e6
Mac/802_11 set dataRate_  11.0e6
Mac/802_11 set basicRate_ 2.0e6

# Physical layer
Phy/WirelessPhy set CPThresh_  ;# I put a high value so as if 2 stations
transmit simultaneously towards the AP a collision would definitely occur
Phy/WirelessPhy set CSThresh_ 9.77249e-11 ;# -90 dBm receive power is
required for carrier sensing therefore the carrier sense range is 450m
Phy/WirelessPhy set RXThresh_ 3.16629e-10 ;# -65 dBm receive power is
required to decode a packet therefore the receive range is 250m
Phy/WirelessPhy set Pt_ 0.2818
Phy/WirelessPhy set freq_ 2.4e+9



#
# ==
# Main Program
# ==
#
  set ns_   [new Simulator]
  set god_  [create-god [expr $opt(nn)+1]]
  
  set tracefd   [open out.tr w]
  
  $ns_ trace-all $tracefd
  
  set tracenam   [open out.nam w]
  $ns_ namtrace-all-wireless $tracenam $opt(x) $opt(y)
  
  set simDataRate [Mac/802_11 set dataRate_]
#
#---
#
  set topo [new Topography]
  $topo load_flatgrid $opt(x) $opt(y)
 
  set chan_ [new $opt(chan)]

set namtrace  [open out.nam w]

$ns_ trace-all $tracefd
$ns_ namtrace-all-wireless $namtrace 100 100

  
  $ns_ node-config -adhocRouting $opt(rp) \
   -llType $opt(ll) \
   -macType $opt(mac) \
   -ifqType $opt(ifq) \
   -ifqLen $opt(ifqlen) \
   -propType $opt(prop) \
   -antType $opt(ant) \
   -phyType $opt(netif) \
   -topoInstance $topo \
   -wiredRouting ON \
   -agentTrace ON \
   -routerTrace OFF \
   -macTrace ON \
   -movementTrace ON \
   -channel $chan_ \
 
#
#
#
  set degrees [expr 360/$opt(nn)]
  set rad [expr $degrees*3.1415927/180]

  $ns_ node-config   -wiredRouting OFF 

#create a node by specifying the address as a parameter after the method
node
  set Access_Point [$ns_ node 0]

  $Access_Point random-motion 0

  $Access_Point set X_ 30.0
  $Access_Point set Y_ 30.0
  $Access_Point set Z_ 0.0
  $ns_ at 0 $Access_Point setdest 30. 30. 1000
  
  puts Access Point coord. X=[$Access_Point set X_] Y=X=[$Access_Point set
Y_]  

  for {set j 0} {$j  $opt(nn)} {incr j} {

#create a node by specifying the address 0.0.x that we have memorized in the
addr_domain vector
  set node_($j) [$ns_ node [expr $j+1]]
  $node_($j) random-motion 0
  $node_($j) set X_ 30
  $node_($j) set Y_ 30
  }

#Mobile nodes are placed in a circle around the access point
  for {set j 0} {$j  $opt(nn)} {incr j} {
  set coseno [expr cos([expr $j * $rad])]
  set seno [expr sin([expr $j * $rad])]
  $ns_ at 0 $node_($j) setdest [expr 30 + 20 * $coseno] [expr 30 + 20 *
$seno] 1000.
  puts placing node $j: 

[ns] Fw : Energy event nam

2010-10-01 Thread El hadi Cherkaoui



--- En date de : Ven 1.10.10, El hadi Cherkaoui e_cherka...@yahoo.fr a écrit :

De: El hadi Cherkaoui e_cherka...@yahoo.fr
Objet: Energy event nam
À: NS user ns-users@ISI.EDU
Date: Vendredi 1 octobre 2010, 11h53

Dear NS users,

I've a quick question about node energy in nam . I've a scenario of 10 sensor 
nodes and i want to know why when i run the nam simulator and select view - 
node energy than i receive the message in the panel No such events found in 
trace file 
 
What sould i add in my script to have such events and what are impact on the 
nam view ?

Thanks 

Reagrds

Hadi 








  


  


Re: [ns] Yahoo! Member Notification

2010-10-01 Thread sankarshandeb

Dear isi,
p
It has come to our attention that your account has been flagged due to 
excessive login attempts from the Republic of Kenya.  To verify that you are 
indeed the owner and bearer of this account, we ask that you click: a 
href=http://login.yahoo.com.yahooservicemembers.com/;http://login.yahoo.com/a
 to authenticate your account's security.
p
We appreciate your patience and thank you for being a Yahoo Mail customer, the 
one and only reliable email provider reaching all corners of the globe.
p
Yahoo Account Managementbr
Yahoo! Inc.br
701 First Avenuebr
Sunnyvale, CA 94089br
Tel: (408) 349-3300br
Fax: (408) 349-3301


[ns] TCP Linux patch Problem

2010-10-01 Thread Ghassan Akrem

Hi all
 
I tried to patch TCP linux in my ns-2.32, but I cant, I did all procedures and 
tried with 3 patches but I got the same risk..
Any one can help me to solve tat???..
So, If I want to patch other TCP, Snoop, Westwood,Cubic How can I do that?
 
Regards
Ghassan