#5, First Floor, 4th Street , Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 pro@slogix.in

Office Address

  • #5, First Floor, 4th Street Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 Landmark : Samiyar Madam
  • pro@slogix.in
  • +91- 81240 01111

Social List

How to create nodes in ns2?
  • Node can be created using the following command

    set ns [new Simulator] ;# Simulator instanceset node_(0) [$ns node]

  • Multiple nodes can be created as follows

    set ns [new Simulator] ;# Simulator instance
    set totalNodes 50 ;#Total Number of nodes in the network
    for {set i 0} {$i < $totalNodes } { incr i } {
    set node_($i) [$ns node]
    }