Re: [ns] Wiki webpage

2009-12-17 Thread Tom Henderson

On Thu, 17 Dec 2009 23:42:58 +0100, Cesar Cardenas
 wrote:
> Hi,
> Is the ns-2 wiki down?
> I tried to go inside but it does not work the link...
> I am looking information for available contribution modules in general...
> Regards,
> César

Yes it is down; I'll send a notice out when it is back up, but in the
meantime, I suggest to get the information you need from the Google cache
by Googling for "ns-2 Contributed Code"



Re: [ns] Wiki webpage

2009-12-17 Thread Cesar Cardenas

Hi,
Is the ns-2 wiki down?
I tried to go inside but it does not work the link...
I am looking information for available contribution modules in general...
Regards,
César


[ns] LEACH Cluster Heads not receiving any message

2009-12-17 Thread Shubham Tagra

hi all,
I'm using NS2.29 with mannasim patch.
i'm trying to run leach from the mannasim package. Everything seems to
be running fine and the simulation also runs till the end. But the
result says : "Warning! There are no nodes in cluster" for all the
cluster heads. Each cluster heads clusterNodes_ list is empty.
I edited leachapp.cc to broadcast message from a node after cluster
heads have been selected, but all nodes except the ones being cluster
heads receive this message. Even sending a message particularly to
cluster head doesnt work. Also No cluster head receives the JOIN
request sent by other nodes.
It seems cluster heads aren't able to receive. I also noted that the
node, before being selected cluster heads receives messages perfectly.
 Plz help. Thanks



[ns] "can't find X library" error in ns-2.26 installation

2009-12-17 Thread Bringo Shawn

Hello there,
For
some reasons I have to install ns-2.26, although I know that the latest
version is ns-2.34. At './install', I got these errors:
...
tclcl-1.0b13 has been installed successfully.

* Build ns-2.26

loading cache ./config.cache
...
checking for tcl2c++... ../tclcl-1.0b13
checking for X11 header files
checking for X11 library archive
checking for XOpenDisplay in -lX11... (cached) no
can't find X library
Ns configuration failed! Exiting ...
Please check http://www.isi.edu/nsnam/ns/ns-problems.html
for common problems and bug fixes. 

After applying the patch mentioned at 
http://www.isi.edu/nsnam/ns/ns-problems.html#tclcl-1.0b13, I am facing these 
errors:
...
tclcl-1.0b13 has been installed successfully.

* Build ns-2.26

loading cache ./config.cache
No .configure file found in current directory
Continuing with default options...
...
checking for X11 header files
checking for X11 library archive
checking for XOpenDisplay in -lX11... (cached) no
can't find X library
Ns configuration failed! Exiting ... 
Please check http://www.isi.edu/nsnam/ns/ns-problems.html
for common problems and bug fixes. 

I am using fedora 9, and GCC version is gcc (GCC) 4.3.0 20080428 (Red Hat 
4.3.0-8). Please help me.
Best Regards.



  


[ns] Problems when simulate two Base-Station in the same scenario

2009-12-17 Thread Jilong LIAO

Hi, everyone!

I am doing a job to simulate a scenario with 2 BS, 2 mobile nodes each
in one BS's domain respectively, and the 2 BS connected with a wired
node. I describe it below: D-A-B-C-E, DE are two mobile nodes,
AC are two Base-stations and B is the wired node. I need to build 3 TCP
links: D->A, D->B, D->E. 

As in my script, I find D->A, D->B is normal while there is no TCP
connection between D and E through D->A->B->C->E. Could anyone can help
me on this? 

Thanks in advance!



My script is below:

# node(0)-BS(0)-W(0)-BS(1)-node(1)

# =
# Define options
# =
set opt(chan)   Channel/WirelessChannel
set opt(prop)   Propagation/TwoRayGround
set opt(netif)  Phy/WirelessPhy
set opt(mac)Mac/802_11
set opt(ant)Antenna/OmniAntenna
set opt(ifq)Queue/DropTail/PriQueue
set opt(ll) LL
set opt(ifqlen) 50
set opt(nn) 4   ;# nodes num
set opt(adhocRouting)   AODV

set opt(cp) ""
set opt(sc) ""

set opt(x)  670
set opt(y)  670
set opt(seed)   0.0
set opt(stop)   15.0

set opt(ftp0-start) 2.0 ;# D->A
set opt(ftp1-start) 5.0 ;# D->B
set opt(ftp2-start) 8.0 ;# D->E
set opt(ftp3-start) 2.0 ;# E->B

set num_wired_nodes 1
set num_bs_nodes2

# ==
# check boundary para & random seed
if {$opt(x) == 0 || $opt(y) == 0} {
puts "Out!!"
}
if {$opt(seed) > 0} {
puts "new seed: $opt(seed)\n"
ns-random $opt(seed)
}

# Create simulator instance
set ns_ [new Simulator]

# Setup for hier routing
$ns_ node-config -addressType hierarchical
AddrParams set domain_num_ 3
lappend cluster_num 1 1 1
AddrParams set cluster_num_ $cluster_num
lappend eilastlevel 2 2 1
AddrParams set nodes_num_ $eilastlevel

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

# Create topo. obj.
set topo [new Topography]

# Define topo.
$topo load_flatgrid $opt(x) $opt(y)

# Create God.
create-god $opt(nn)

set tmp {0.0.0 1.0.0 1.0.1 2.0.0 2.0.1}

# Create wired node.
set W(0) [$ns_ node [lindex $tmp 0]]

# Configure BS 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) \
 -topoInstance $topo \
 -wiredRouting ON \
 -agentTrace ON \
 -routerTrace ON \
 -macTrace OFF


# Create BS node.
set BS(0) [$ns_ node [lindex $tmp 1]]
$BS(0) random-motion 0
$BS(0) set X_ 1.0
$BS(0) set Y_ 2.0
$BS(0) set Z_ 0.0

set BS(1) [$ns_ node [lindex $tmp 3]]
$BS(1) random-motion 0
$BS(1) set X_ 650.0
$BS(1) set Y_ 600.0
$BS(1) set Z_ 0.0

# Configure mobilenodes
$ns_ node-config -wiredRouting OFF

# Create mobilenodes
set node(0) [$ns_ node [lindex $tmp 2]]
$node(0) base-station [AddrParams addr2id [$BS(0) node-addr]]

set node(1) [$ns_ node [lindex $tmp 4]]
$node(1) base-station [AddrParams addr2id [$BS(1) node-addr]]

$node(0) set X_ 0.0
$node(0) set Y_ 0.0
$node(0) set Z_ 0.0

$node(1) set X_ 600.0
$node(1) set Y_ 10.0
$node(1) set Z_ 0.0

# Create links
$ns_ duplex-link $BS(0) $W(0) 5Mb 2ms DropTail
$ns_ duplex-link $W(0) $BS(1) 5Mb 2ms DropTail

# Setup TCP connections
set tcp0 [new Agent/TCP];# D->A
$tcp0 set class_ 2
set sink0 [new Agent/TCPSink]
$ns_ attach-agent $node(0) $tcp0
$ns_ attach-agent $BS(0) $sink0
$ns_ connect $tcp0 $sink0
set ftp0 [new Application/FTP]
$ftp0 attach-agent $tcp0
$ns_ at opt(ftp0-start) "$ftp0 start"

set tcp1 [new Agent/TCP];# D->B
$tcp1 set class_ 2
set sink1 [new Agent/TCPSink]
$ns_ attach-agent $node(0) $tcp1
$ns_ attach-agent $W(0) $sink1
$ns_ connect $tcp1 $sink1
set ftp1 [new Application/FTP]
$ftp1 attach-agent $tcp1
$ns_ at opt(ftp1-start) "$ftp1 start"

set tcp2 [new Agent/TCP];# D->E
$tcp2 set class_ 2
set sink2 [new Agent/TCPSink]
$ns_ attach-agent $node(0) $tcp2
$ns_ attach-agent $node(1) $sink2
$ns_ connect $tcp2 $sink2
set ftp2 [new Application/FTP]
$ftp2 attach-agent $tcp2
$ns_ at opt(ftp2-start) "$ftp2 start"

for {set i 0} {$i < 2} {incr i} {

[ns] Urgent ! help to find active n/w package

2009-12-17 Thread aabha hase

Hello ,
I need a active network reliable multicast package
"anRMpkg.tar " which was priviously availabe on PANAMA link
now not found .

Please ,please help me to get it.

I request if anybody have it pl. forward to me

Best regards,
AABHA


[ns] creating new objects problems !!

2009-12-17 Thread pedro chaparro

hi, i want to create a new object, i took as template udp agent files and
change/erase some lines to have just the minimum lines to start from there,
but i have a error in compilation , i don't see where the cause can be =(,
i'll appreciate a hand on this. thanks

Error:

apps/mysk.cc: In member function ‘virtual TclObject*
mylistenerClass::create(int, const char* const*)’:
apps/mysk.cc:66: error: cannot allocate an object of abstract type
‘mylistener’
apps/mysk.h:82: note:   because the following virtual functions are pure
within ‘mylistener’:
./common/scheduler.h:74: note: virtual void Handler::handle(Event*)
make: *** [apps/mysk.o] Error 1


.cc

static class mylistenerClass : public TclClass {
public:
UdpAgentSkClass() : TclClass("listener") {}
TclObject* create(int, const char*const*) {
return (new mylistener());
}
} class_mylistener;


.h

class mylistener : public TclObject, public Handler {
public:

mylistener();




};

-- 
Ing Pedro Alonso Chaparro Valero
Ciudad Politecnica de la Innovación
iTEAM - Mobile Communications Group
Polytechnic University of Valencia
C\ Camino de Vera S/N, Edificio 8G
46022 Valencia, Spain


[ns] how to simulate two Wireless LAN together operating at different frequnecy in ns2

2009-12-17 Thread preeti nimonkar

hello all ,
can anybody tell me ,how to simulate two Wireless LAN together operating at
different frequnecy in ns2?

Preeti Nimonkar
Research Scholor