[ns] FW: wimax simulation_nist module: multiple BSs

2011-12-27 Thread sajeeb saha

Hi Nor Affida M.Zin,


I have tried to run a simulation with 2 BS but failed. I didn't find any docs 
regarding this. So if you find let others also to know about this.

If anyone knows about this please replay.

 
, 
Sajeeb Saha
10th Batch,CSEDU
+8801914754181

   



 From: Nor Affida M.Zin insyira...@hotmail.com
To: ns-users@ISI.EDU 
Sent: Tuesday, 27 December 2011, 14:34
Subject: [ns] FW:  wimax simulation_nist module: multiple BSs
 


Hello,

Has anyone do the wimax simulation using the nist module? Can this module 
support the simulation for multiple base stations (BSs)?

Thanks and Regards
Nor Affida M. Zin
Postgraduate Student
Photonic Technology Center
Faculty of Electrical Engineering
Universiti Teknologi Malaysia


[ns] Wiamx Simulation Script Problem

2011-05-13 Thread sajeeb saha
 ON \

 -agentTrace ON \
 -routerTrace ON
 \
 -macTrace ON  \
 
-movementTrace OFF
#puts Configuration of base station

set 
bstation1 [$ns node 0.0.0]  ;# Base station is in cluster 0 (node 0) 
Domain 0
$bstation1 random-motion 0
#puts Base-Station node 
created
#provide some co-ord (fixed) to base station node
$bstation1
 set X_ 400.0
$bstation1 set Y_ 500.0
$bstation1 set Z_ 0.0
[$bstation1
 set mac_(0)] set-channel 0

set bstation2 [$ns node 1.0.0]  ;# 
Base station is in cluster 0 (node 0) Domain 1
$bstation2 
random-motion 0
#puts Base-Station node created
#provide some 
co-ord (fixed) to base station node
$bstation2 set X_ 700.0
$bstation2
 set Y_ 600.0
$bstation2 set Z_ 0.0
[$bstation2 set mac_(0)] 
set-channel 1


#
 creation of the mobile nodes
$ns node-config -macType Mac/802_16/SS \
   
 -wiredRouting OFF \
    -macTrace ON                  ;#
 Mobile nodes cannot do routing.

for {set i 0} {$i  2} {incr 
i} {
    set wl_node_($i) [$ns node 0.0.[expr $i+1]]     ;# create 
the node with given @.    
    $wl_node_($i) random-motion 0        
    ;# disable random motion
    $wl_node_($i) base-station 
[AddrParams addr2id [$bstation1 node-addr]] ;#attach mn to basestation
   
 

    [$wl_node_($i) set mac_(0)] set-channel 0 ;#do i
 need to use diffenet channel for each wireless node ??
    
[$wl_node_($i) set mac_(0)] set-diuc 7   ;# Change the node profile here
 (7=64QAM_3_4)
    
}

for {set i 2} {$i  4} {incr i} {
   
 set wl_node_($i) [$ns node 1.0.[expr $i-1]]     ;# create the node with
 given @.    
    $wl_node_($i) random-motion 0            ;# disable
 random motion
    $wl_node_($i) base-station [AddrParams addr2id 
[$bstation2 node-addr]] ;#attach mn to basestation
    

   
 [$wl_node_($i) set mac_(0)] set-channel 0 ;#do i need to use diffenet 
channel for each wireless node ??
    [$wl_node_($i) set mac_(0)]
 set-diuc 7   ;# Change the node profile here
 (7=64QAM_3_4)
    
}

#compute position of the node
   
 $wl_node_(0) set X_ 300.0
    $wl_node_(0) set Y_ 400.0
    
$wl_node_(0) set Z_ 0.0
    $ns at 0 $wl_node_(0) setdest 300.0 
350.0 1.0
    puts wireless node 0 created ...            ;# 
debug info

    $wl_node_(1) set X_ 250.0
    $wl_node_(1) set 
Y_ 700.0
    $wl_node_(1) set Z_ 0.0
    $ns at 0 
$wl_node_(1) setdest 200.0 650.0 1.0
    puts wireless node 1 
created ...            ;# debug info


#compute position of 
the node
   
 $wl_node_(2) set X_ 800.0
    $wl_node_(2) set Y_ 300.0
     
   $wl_node_(2) set Z_ 0.0
    $ns at 0 $wl_node_(2) setdest 
700.0 300.0 1.0
    puts wireless node 2 created ...        
    ;# debug info

    $wl_node_(3) set X_ 800.0
    
$wl_node_(3) set Y_ 800.0
        $wl_node_(3) set Z_ 0.0
    
$ns at 0 $wl_node_(3) setdest 860.0 650.0 1.0
    puts 
wireless node 3 created ...            ;# debug info

#Create 
TCP Traffic MN0 --  MN3

    set tcp(0) [new
 Agent/TCP]
    $ns attach-agent $wl_node_(0) $tcp(0)

    #set
 up receiver side
    set sink(0) [new Agent/TCPSink/Sack1]
    
#$sink(0) set ts_echo_rfc1323_ true
    $ns attach-agent $wl_node_(3)
 $sink(0)

    #logical connection
      $ns connect $tcp(0) 
$sink(0)

    #Setup a FTP over TCP connection
    set ftp(0) 
[new Application/FTP]
    $ftp(0) attach-agent $tcp(0)
    $ftp(0)
 set type_ FTP

      $ns at 50 $ftp(0) start
       $ns at 
150 $ftp(0) stop


#
 Plot Congestion Window       
    #

proc
 plotWindow {tcpSource file} {
global ns
set time 0.1
set now 
[$ns now]
set cwnd [$tcpSource set cwnd_]
puts $file $now $cwnd
$ns
 at [expr $now+$time] plotWindow $tcpSource $file
}

$ns at 
0.1 plotWindow $tcp(0) $winfile1
#$ns at 0.1 plotWindow $tcp(1) 
$winfile2

$ns at $simulation_stop finish
#$ns at 
$simulation_stop $ns halt
# Run the simulation
puts Running 
simulation for $nb_mn mobile nodes...
$ns run
puts Simulation 
done.


, Sajeeb Saha
10th
 Batch,CSEDU
+8801914754181


Re: [ns] wimax module for ns 2.31/2.34

2010-12-31 Thread sajeeb saha

Hello,
 I am having the same problem. It would be great relief for me
 (like a new year gift :) ) if anyone respond to this problem with a 
solution.

Please response which version of NS 2 can be used with 
which module. I have tried to install NS 2.28 but failed. I already have
 mailed but no one responded.

Thanks in advance  

, Sajeeb Saha
10th Batch,CSEDU
+8801914754181
     

--- On Fri, 31/12/10, Prabhat . anastomosis.j...@gmail.com wrote:

From: Prabhat . anastomosis.j...@gmail.com
Subject: Re: [ns] wimax module for ns 2.31/2.34
To: Shahid Khan shahid...@yahoo.com, ns-users@ISI.EDU
Date: Friday, 31 December, 2010, 12:53 PM


Thanks for the reply.

I have been trying to install ns2.28 since a week. Can ns 2.28 be installed
on any release of ubuntu ??  I tried with 8.04, 9.01 and 10.04 with futile
results.

Regards.

On Fri, Dec 31, 2010 at 4:54 PM, Shahid Khan shahid...@yahoo.com wrote:

 This module should not be patched with any other version of ns except
 ns2.28.

 --
 *From:* Prabhat . anastomosis.j...@gmail.com
 *To:* ns-users@ISI.EDU
 *Sent:* Fri, December 31, 2010 2:08:13 PM
 *Subject:* [ns] wimax module for ns 2.31/2.34


 Can this wimax module ( http://www.lrc.ic.unicamp.br/wimax_ns2/ ) be
 patched
 with ns 2.31 / ns 2.34 ? I have these versions of ns on my system but just
 couldn't install ns 2.28 for this.

 Please respond.





[ns] TCP variants in NS

2010-10-28 Thread sajeeb saha

Hello everyone,

I need to know which of the TCP variants have been implemented in NS. If yo=
u know how to find them or where to find them please let me know. I need th=
is information badly.

Thanks in advance...

, Sajeeb Saha
10th Batch,CSEDU
+8801914754181
  




[ns] Base station creation problem

2009-07-04 Thread sajeeb saha

Hello everyone,

I want to simulate a program which have three base stations.
Nine mobile modes are connected to these Base stations such that: 

node 1,2,3--- BS 1
node 4,5,6--- BS 2
node 7,8,9--- BS 3

Please give a an example code or some sort of help.

Thanks in advance

, Sajeeb Saha
10th Batch,CSEDU
+8801914754181
     


  Get your preferred Email name!
Now you can @ymail..com and @rocketmail.com. 
http://mail.promotions.yahoo.com/newdomains/aa/


[ns] Wireless mesh Simulation

2009-07-01 Thread sajeeb saha

Hello Everyone,

I am doing a simulation on wireless mesh
network. I have created a scenario. But  i have few problems. Hope you
will help me.My problems are...

1. In case of wireless to wireless transmission my code is not using
any base stations. So I want to change the transmission range of the
mobile nodes (so that they use the base station for wireless to
wireless transmission.)

2. why my nodes are overlapped. Though i have set the node position??

3. Is the Base station creation have any problem??

4.Finally what is the function of 

Phy/WirelessPhy set CSThresh_ 
Phy/WirelessPhy set RXThresh_
Phy/WirelessPhy set Pt_
 
Phy/WirelessPhy set Pt_ 

these variables?? From where I can change the value of these  variables?

Please answer my questions. I have 10 days left for submitting my project.

My code is given below...


# wireless simulation related parameters   #

set opt(chan)   Channel/WirelessChannel    ;# channel type
set opt(prop)   Propagation/TwoRayGround   ;# radio-propagation model
set opt(netif) 
 Phy/WirelessPhy    ;# network interface type
set opt(mac)    Mac/802_11 ;# MAC type
set opt(ifq)    Queue/DropTail/PriQueue    ;# interface queue type
set opt(ll) LL ;# link layer type
set opt(ant)    Antenna/OmniAntenna    ;# antenna model
set opt(ifqlen)
 50 ;# max packet in ifq
set opt(nn) 9  ;# number of mobilenodes
set opt(adhocRouting)   DSDV   ;# routing protocol
set opt(x)         670    ;# x coordinate of topology
set opt(y)     
 670    ;# y coordinate of topology

set opt(cp)  ;# connection pattern file
set opt(sc)                        ;# node movement file. 

set opt(seed)   0.0    ;# seed for random number gen.
set opt(stop)  
 5    ;# time to stop simulation

set opt(ftp1-start)  1.7
set opt(ftp2-start)  3.0
set opt(ftp3-start)  2.0
set opt(ftp4-start)  2.5

set num_wired_nodes  3
set num_bs_nodes 3


# Initialization   #
# 1. create
 simulator  #
# 2. tracing   #
# 3. define topography #

set ns_        [new
 Simulator]

set tracefd [open mesh.tr w]
$ns_ trace-all   $tracefd
set namtracefd    [open mesh.nam w]
$ns_ namtrace-all-wireless $namtracefd $opt(x) $opt(y)

set topo   [new Topography]
$topo load_flatgrid $opt(x) $opt(y)

create-god [expr $opt(nn) + $num_bs_nodes]

# check for boundary parameters and random seed
if { $opt(x) == 0 || $opt(y) == 0 } {
    puts No X-Y boundary values given for wireless topology\n
}
if {$opt(seed)  0} {
    puts Seeding Random number generator with $opt(seed)\n
    ns-random $opt(seed)
}


# Define/create/initialize
 nodes   #
# 1. define nodes  #
# 2. create nodes  #
# 3. disable random
 motion #
# 4. coordinates of wilress nodes  #
# 5. nam setting, size and position    #


# set up for hierarchical routing
$ns_ node-config -addressType hierarchical
AddrParams set domain_num_ 4   ;# number of domains
lappend cluster_num 3 1 1
 1    ;# number of clusters in each domain
AddrParams set cluster_num_ $cluster_num
lappend eilastlevel 1 1 1 4 4 4    ;# number of nodes in each cluster 
AddrParams set nodes_num_ $eilastlevel ;# of each domain


#create wired nodes
set temp {0.0.0 0.1.0 0.2.0}    ;# hierarchical addresses for wired domain
for {set i 0} {$i  $num_wired_nodes} {incr i} {
    set W($i) [$ns_ node [lindex $temp $i]] 
}

$W(0) set X_ 95.0
$W(0) set Y_ 146.0
$W(0) set Z_ 0.0

$W(1) set X_ 36.0
$W(1) set Y_ 113.0
$W(1) set Z_ 0.0

$W(2) set X_ 24.0
$W(2) set Y_ 62.0
$W(2) set Z_ 0.0

# configure for base-station node
$ns_ node-config -adhocRouting $opt(adhocRouting)
 \
 -llType $opt(ll) \
 -macType $opt(mac) \
 -ifqType $opt(ifq) \
 -ifqLen $opt(ifqlen) \
 -antType $opt(ant) \
 -propType $opt(prop) \
 -phyType $opt(netif) \
 -channelType
 $opt(chan) \
         

[ns] Wireless mesh Simulation

2009-07-01 Thread sajeeb saha
  #

#$ns_ at 0.5
 $node_(1) setdest 250.0 250.0 400.0
#$ns_ at 2.0 $node_(0) setdest 130.0 30.0  400.0
#$ns_ at 1.0 $node_(2) setdest 30.0  130.0 400.0

for {set i } {$i  $opt(nn) } {incr i} {
    $ns_ at $opt(stop).0 $node_($i) reset;
}
$ns_ at $opt(stop).0 $BS(0) reset;
$ns_ at $opt(stop).0 $BS(1) reset;
$ns_ at $opt(stop).0 $BS(2) reset;

$ns_ at $opt(stop).0002 puts \NS EXITING...\ ; $ns_ halt
$ns_ at $opt(stop).0001 stop


# 'stop' procedure #

proc stop {} {
   
 global ns_ tracefd namtracefd
    $ns_ flush-trace
    close $tracefd
    close $namtracefd
    exec nam mesh.nam 
    exit 0
}

# informative headers for CMUTracefile
puts $tracefd M 0.0 nn $opt(nn) x $opt(x) y $opt(y) rp \
    $opt(adhocRouting)
puts $tracefd M 0.0 sc $opt(sc) cp $opt(cp) seed $opt(seed)
puts $tracefd M 0.0 prop $opt(prop) ant $opt(ant)



# start the simulation #

puts Starting Simulation...
$ns_
 run

#

Thanks in advance

, Sajeeb Saha
10th Batch,CSEDU
+8801914754181



  New Email addresses available on Yahoo!
Get the Email name you#39;ve always wanted on the new @ymail and @rocketmail. 
Hurry before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/


[ns] Wireless Mesh in NS 2

2009-02-20 Thread sajeeb saha

Hello,

I want to analyze the performance of transport control protocol of wireless 
mesh network in NS 2. But i do not know how to start the process as i know that 
no transport control protocol has been developed for wireless mesh network yet.

Hope the experts will give me a good guideline..

thanks in advance

, Sajeeb Saha
10th Batch,CSEDU
+8801914754181
     


  New Email names for you! 
Get the Email name you#39;ve always wanted on the new @ymail and @rocketmail. 
Hurry before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/


[ns] wireless mesh simulation in NS 2

2009-02-15 Thread sajeeb saha

Hi,



I am a student of University of Dhaka,Bangladesh, majoring in CSE.

I
am currently in my final year of graduation. My final year project is
the performance analysis of various routing algorithms on wireless mesh
network and calculating the bandwidth,delay,throughput etc.


I am using NS 2 Simulator for this purpose.



For this
I need some sample programs on wireless mesh network. I searched the
internet  but  didn't find any sample Tcl
script.

So it will be very helpful for me if anyone kindly
provide me some Tcl Scripts on wireless  mesh network simulation so
that I could run and test them.



Thanks in advance..

, Sajeeb Saha
10th Batch,CSEDU
+8801914754181
     


  New Email addresses available on Yahoo!
Get the Email name you#39;ve always wanted on the new @ymail and @rocketmail. 
Hurry before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/


[ns] NS 2.29 installation problem

2009-02-13 Thread sajeeb saha

Hello everyone,

I am trying to install the NS 2.29 package but i am getting the following error:
Can anyone tell me the solution:

//*
g++ -c -Wall  -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG 
-DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_11 
-DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H  
-DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std 
-DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/home/ns-allinone-2.29/tclcl-1.17 
-I/home/ns-allinone-2.29/otcl-1.11 -I/home/ns-allinone-2.29/include 
-I/home/ns-allinone-2.29/include -I/usr/include/pcap -I./tcp -I./sctp 
-I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace 
-I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main 
-I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns 
-I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan 
-o trace/trace..o trace/trace.cc
../sctp/sctp.h:705: error: extra qualification ‘SctpAgent::’ on member 
‘DumpSendBuffer’
make: *** [trace/trace.o] Error 1
Ns make failed!
*//

Thanks in advance...

, Sajeeb Saha
10th Batch,CSEDU
+8801914754181
     


  New Email addresses available on Yahoo!
Get the Email name you#39;ve always wanted on the new @ymail and @rocketmail. 
Hurry before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/

[ns] wimax module for NS 2.31 or 2.31

2009-02-12 Thread sajeeb saha

Hello everyone,

Can anyone tell me how can i add the wimax module in NS 2 (version 2.31 or 
2.33).

when i extract the wimax module i got three folder common, MAC and queue.
and they are told to add in the ns 2.xx folder.
But a found that common and queue folder are already in the NS 2.xx folder.

My question is should i replace the existing folder or replace them or anything 
else ???

OR is there any patch for wimax module for NS 2.31 or NS 2.33 

Please help me .i need this badly.

, Sajeeb Saha
10th Batch,CSEDU
+8801914754181


  Get your new Email address!
Grab the Email name you#39;ve always wanted before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/


[ns] Ns 2 installation problem

2009-01-03 Thread sajeeb saha

Hello,

I am trying to install the NS 2 (version 2.29) in fedora 8. Then i got the 
following error:
/*
g++ -c -Wall  -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG 
-DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_11 
-DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H  
-DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std 
-DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/home/ns-allinone-2.29/tclcl-1.17 
-I/home/ns-allinone-2.29/otcl-1.11 -I/home/ns-allinone-2.29/include 
-I/home/ns-allinone-2.29/include -I/usr/include/pcap -I./tcp -I./sctp 
-I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace 
-I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main 
-I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns 
-I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan 
-o trace/trace..o trace/trace.cc
../sctp/sctp.h:705: error: extra qualification ‘SctpAgent::’ on member 
‘DumpSendBuffer’
make: *** [trace/trace.o] Error 1
Ns make failed!

*/

Please help me to find out the bug.

, Sajeeb Saha
10th Batch,CSEDU
+8801914754181
     


  Get your new Email address!
Grab the Email name you#39;ve always wanted before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/

[ns] Error in runnig wireless script

2008-12-31 Thread sajeeb saha

Hello everyone,

Please help me.

i am running the NS 2 with the NIST wimax module. Whenever i try to run a 
wireless program i got the following Error(This one is for example) :

% ./ns wrls-dsr.tcl
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 550.0
SORTING LISTS ...DONE!
child killed: segmentation violation
% 


Please anyone response..I need this badly.


, Sajeeb Saha
10th Batch,CSEDU
+8801914754181
     


  Get your preferred Email name!
Now you can @ymail.com and @rocketmail.com. 
http://mail.promotions.yahoo.com/newdomains/aa/

[ns] Wimax module installation problem in NS 2

2008-12-13 Thread sajeeb saha

Hello,

I am trying add the wimax module in NS 2. I have followed the instructions  
given in the wimax Patch(From both the sites).

http://www.lrc.ic.unicamp.br/wimax_ns2/

http://ndsl.csie.cgu.edu.tw/wimax_ns2.php

But when i add the files and 'make; the ns-2.33 directory i got he following 
Error: 
(I
have tried by replacing the files one time  and skipping  the files one
time that are in common and queue directory of ns-2.33).


/*
common/packet.h:303: warning: deprecated conversion from string constant to 
‘char*’
common/packet.h:304: warning: deprecated conversion from string constant to 
‘char*’
common/packet.h:305: warning: deprecated conversion from string constant to 
‘char*’
common/packet.h:307: warning: deprecated conversion from string constant to
 ‘char*’
common/packet.cc: At global scope:
common/packet.cc:44: error: conflicting declaration ‘char** p_info::name_’
common/packet.h:326: error: ‘p_info::name_’ has a previous declaration as 
‘char* p_info::name_ [76]’
common/packet.cc:44: error: declaration of ‘char* p_info::name_ [76]’ outside 
of class is not definition
common/packet.cc:45: error: ‘unsigned int p_info::nPkt_’ is not a static member 
of ‘class p_info’
common/packet.cc:46: error: expected constructor, destructor, or type 
conversion before ‘*’ token
common/packet.cc:48: error: no ‘int p_info::addPacket(char*)’ member function 
declared in class ‘p_info’
make: *** [common/packet.o] Error 1
*/

Someone please help me regarding this.I am using fedora core 9 and 
ns-allinone-2.33 package and wimax 2.03 version.

, Sajeeb Saha
10th Batch,CSEDU
+8801914754181



  Get your new Email address!
Grab the Email name you#39;ve always wanted before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/