[ns] problem with NAM

2008-09-30 Thread Davide

i've installed the all-in-one package,  but when i try to exec nam i take:
nam: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot
open shared object file: No such file or directory

what can i do to solve the problem?

Davide


[ns] TCP ACKs - change route

2008-09-30 Thread Tatiana Polishchuk

I remember I saw related question in the list, but without answer.
I'm trying to send the ACKs for the TCP packets using specific routes. In
the tcp-sink.cc module there is a function ack() which sends ACK packets
using send(P, 0)  method. Does anybody know where the function is defined
and there the destination for the packed is specified? Please, help.


Re: [ns] problem with NAM

2008-09-30 Thread Nick Zando

On Tue, Sep 30, 2008 at 9:18 AM, Davide [EMAIL PROTECTED] wrote:


 i've installed the all-in-one package,  but when i try to exec nam i take:
 nam: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot
 open shared object file: No such file or directory

 what can i do to solve the problem?

 Davide


You have to install the libstdc++ packet from the packet manager of your
linux distribution ( if it has one).


[ns] modify bitrate of a wired link

2008-09-30 Thread Davide

Hi guys,

how to modify during the simulation the bitrate of a wired link according to
a file?

BR

Davide


[ns] LEACH error

2008-09-30 Thread rupcee kaur

Hello NS- users,

I am getting the following error in leach.out file in the middle of running the 
LEACH protocol.
ns: _o1082 checkAlive: 
(_o12 cmd line 1)
invoked from within
_o12 cmd removeif _o1087
invoked from within
catch $self cmd $args ret
invoked from within
if [catch $self cmd $args ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error error when calling class $cls: $args $...
(procedure _o12 line 2)
(SplitObject unknown line 2)
invoked from within
$chan removeif [[$self node] set netif_(0)]
(procedure _o1082 line 13)
(Application/LEACH checkAlive line 13)
invoked from within
_o1082 checkAlive  

Please suggest me any possible solution why is this occuring?

Thank you in advance.





Re: [ns] modify bitrate of a wired link

2008-09-30 Thread Francesco Zampognaro


On Tue, 2008-09-30 at 23:54 +0200, Davide wrote:
 Hi guys,
 
 how to modify during the simulation the bitrate of a wired link according to
 a file?
Hi there, you can use these lines to obtain a reference of the link
between $N1 and $N2 and change its bitrate:

set link_ref [[$ns link $N1 $N2] link]
$ns at $time $link_ref set bandwidth_ $new_value

All you have to figure out is how to get $time of change and $new_value
kbps from file.

Bye.

-- 
Francesco Zampognaro 



[ns] link bandwidth info from the tcp module

2008-09-30 Thread Tatiana Polishchuk

I'm making adjustments to the tcp.cc module. Is that possible to access the
link information like bandwidth and delay from this module? Of course I mean
the links attached to the node which is connected to the tcp agent../


[ns] range of mobile nodes

2008-09-30 Thread sriram balakrishnan

-- Forwarded message --
From: sriram balakrishnan [EMAIL PROTECTED]
Date: Tue, 30 Sep 2008 17:44:04 +0530
Subject: range of mobile nodes
To: ns-users@isi.edu

hi

i would like to know where is the range of the node/mobile node set, for
example if i want that i should set the range of my node as 200 meters and
anything beyond that is to be sent in multi hops.

-- 
B Sriram
Wing Commander
mob : 09733706981



-- 
B Sriram
Wing Commander
 mob : 09733706981



[ns] Telnet application problem

2008-09-30 Thread kush_2207


Hello All

I am trying to work on simple telnet application. Please help to clarify the
problems i have encountered.

I simulated basic telnet application with wireless nodes. I want to find the
maximum data-rate that can be achieved using 802.11 g. I succeeded in
setting the data-rate to 54 Mbps using statement Mac/802_11 set dataRate_
54Mb

Setting the interval parameter in the following way

# ==
# Define options

# ==
set opt(chan)   Channel/WirelessChannel;# channel type
set opt(prop)   Propagation/TwoRayGround   ;# radio-propagation mode
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) 5  ;# number of mobilenodes
set opt(rp) DSDV   ;# routing protocol

# Phy/WirelessPhy set bandwidth_ 54Mb;# 54 Mbps bandwidth
Mac/802_11 set dataRate_ 54Mb
Mac/802_11 set RTSThreshold_ 0;# It will send RTS for a packet 
RTSThreshold value, O will turn on RTS/CTS

# ==
# Main Program
# ==

# Initialize Global Variables

#

set ns_ [new Simulator]


$ns_ use-newtrace

set tracefd [open out.tr w]
$ns_ trace-all $tracefd
set nf [open out.nam w]
$ns_ namtrace-all $nf

proc finish {} {
global ns_ nf
$ns_ flush-trace
#Close the trace file
close $nf
#Execute nam on the trace file
exec nam out.nam 
#exec xgraph out.tr -geometry 800*400 
exit 0
}

$ns_ node-config -llType $opt(ll) \
 -macType $opt(mac) \
 -ifqType $opt(ifq) \
 -ifqLen $opt(ifqlen) \
 -antType $opt(ant) \
 -propType $opt(prop) \
 -phyType $opt(netif) \
 -channelType $opt(chan) \
 -agentTrace ON \
 -routerTrace ON \
 -macTrace ON 

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

set node_($i) [$ns_ node]   



}


$ns_ duplex-link $node_(0) $node_(1) 54mb 2ms DropTail
$ns_ duplex-link $node_(1) $node_(2) 54mb 2ms DropTail
$ns_ duplex-link $node_(3) $node_(1) 54mb 2ms DropTail
$ns_ duplex-link $node_(1) $node_(4) 54mb 2ms DropTail

set tcp [new Agent/TCP]
$ns_ attach-agent $node_(0) $tcp
set tel [new Application/Telnet]
$tel attach-agent $tcp

set sink [new Agent/TCPSink]
$sink listen

$ns_ attach-agent $node_(2) $sink

set tcp1 [new Agent/TCP]
$ns_ attach-agent $node_(3) $tcp1
set tel1 [new Application/Telnet]
$tel1 attach-agent $tcp1

set sink1 [new Agent/TCPSink]
$sink1 listen
$ns_ attach-agent $node_(4) $sink1

$ns_ connect $tcp $sink
$ns_ connect $tcp1 $sink1

$tel set interval_ 0.02
$tel1 set interval_ 0.02

$ns_ at 1.0 $tel start
$ns_ at 1.0 $tel1 start

$ns_ at 100.0 $tel stop
$ns_ at 100.0 $tel1 stop

$ns_ at 100.0 finish


puts Starting Simulation...

$ns_ run

Simulating application with above statements leads to a scenario in which
two packets are sent one after other even though the Acknowledgement for the
first packet us not received which is not the way Telnet works. 

Telnet works in fashion that after getting Acknowledgement for the first
packet only it starts sending the second packet. Please help me know how
interval variable works for telnet protocol. I also looked into its
source-code and found out that there's no mechanism for application for wait
until an Acknowledgement arrives and then start the further communication.
Please correct me if i am wrong.

Also i would like to know how can i set the push flag of packet which i am
sending from one node to another ?

Any comments and help would be really helpful and appreciated.

Thank you.
Kushal Shroff
[EMAIL PROTECTED]
-- 
View this message in context: 
http://www.nabble.com/Telnet-application-problem-tp19752533p19752533.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] need help with MTE and LEACH

2008-09-30 Thread Youngmin Kim

Hi. Nguyen Lan
I think you already solved this problem.
But.. just short comment..

1. In Application/MTE instproc send_now {}, change the following.
[$self agent] set dst_ $mac_dst == [$self agent] set dst_addr_ $mac_dst

2. To prevent collisions around BS, change the following in file mte.tcl.
set opt(ra_mte)   0.01 == set opt(ra_mte)   1.01

Thanks..

2007/6/27 Nguyen Lan [EMAIL PROTECTED]


 Hello,

 Did anyone try with  LEACH for ns2.27 from
 (http://www.internetworkflow.com/downloads/ns2leach/mit.tar.gz). I did
 installed it but now I got problem with MTE. If you did try with this,
 please drop some lines to me.

 Thank you.
 Nguyen