Re: [ns] where is attach-agent ??

2010-07-22 Thread Guray Acar


ns-lib.tcl
Simulator instproc attach-agent


El hadi Cherkaoui wrote:
 
 
 Dear all,
 
 I want to know where I can find the command : 
 attach-agent (in which file of NS)
 
 Same question for  
 attach-vectorbasedforward.
 
 this the tcl code :
 
     set 
 a_($i) [new Agent/UWSink]
     $ns_ attach-agent $node_($i) $a_($i)
    
  $a_($i) attach-vectorbasedforward $opt(width)
 
 Best Regards
 
 
   
 
 

-- 
View this message in context: 
http://old.nabble.com/where-is-attach-agenttp29138862p29226445.html
Sent from the ns-users mailing list archive at Nabble.com.




[ns] some queries

2010-07-22 Thread Maumita Chatterjee

can u tell me what is gaf protocol ? can i use it for sensor network? can u 
tell me is there gear (for sensor network) protocol implemented in ns2 ? pls 
reply me...





[ns] Multihoming In TCP

2010-07-22 Thread vaibhav tayal

Sir,


Can anybody provide me with the patch for multihoming in TCP in ns-2.

Regards
Vaibhav Tayal


Re: [ns] code for encryption algorithm in wsn

2010-07-22 Thread Guray Acar




Maumita Chatterjee wrote:
 
 
 hi a,
   do anyone of you have any code for any kind of
 encryption algorithm? please reply me if u have this...
 
 thank u...
 
 
 
 
 


I think you're fishing in the wrong river. 
ns2 is a packet-level simulator. 
It is possible to carry bit streams in ns2 packet objects. I suggest that
you should search for encryption/decryption code somewhere else.  
It is just not conventional to use ns2 to evaluate encryption-decryption
algorithms. 

-- 
View this message in context: 
http://old.nabble.com/code-for-encryption-algorithm-in-wsn-tp29211967p29239182.html
Sent from the ns-users mailing list archive at Nabble.com.




[ns] Help require for AWK script in NS2

2010-07-22 Thread mobi faizy

HI,

Can anyone help me to calculate through AWK scripts for AODV,DSDV and TORA
routing protocol in NS 2.29

*Average throughput*
*Average End to End Delay*
*Packet delivery Ratio*
*Normalize Routing Overload.*
**
**

Regards,


[ns] DIM:GPSR errors

2010-07-22 Thread Nourideen A

Hi all,

Iam trying to implement GPSR using DIM from this website:
http://enl.usc.edu/projects/dim/ . I have copied all the files into the ns
directory, but I having trouble when I compile index.tcl ,using ns-2 2.29. I
think i have updated the makefile properly but I cant seem to find the
issue. I would appreciate any feedback in solving this issue. Thanks.  I get
the following errors:

 $ index.tcl
load_flatgrid 56 56
num_nodes is set 10

(_o14 cmd line 1)
invoked from within
_o14 cmd addr
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 _o14 line 2)
(SplitObject unknown line 2)
invoked from within
_o14 addr
(eval body line 1)
invoked from within
eval $node addr $args
(default arm line 2)
invoked from within
switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 $node start-dsr
}
AODV {
set ragent [$self cre...
(procedure _o3 line 11)
(Simulator create-wireless-node line 11)
invoked from within
_o3 create-wireless-node
(eval body line 1)
invoked from within
eval $self create-wireless-node $args
(procedure _o3 line 23)
(Simulator node line 23)
invoked from within
$ns node
(for body line 3)
invoked from within
for {set i 0} {$i  $opt(nn)} {incr i} {
# debug 1
set node($i) [$ns node]
  #$ldb register [$node($i) address?] $node($i)
  #[$node($i) set agents_...
(file dim_original.tcl line 98)

Regards,

Nourideen


[ns] any help 4rm u guys plssssss

2010-07-22 Thread ikenna ajere

Pls I get this error anytime I run sudo apt-get upgrade and I dont know how to 
fix it;

Do you want to continue [Y/n]? y
dpkg: cannot scan updates directory `/var/lib/dpkg/updates/': No such file or 
directory
E: Sub-process /usr/bin/dpkg returned an error code (2)

I've been on it since this afternoon but have not gotten anywhere. I refuse to 
get frustrated by Ns2. 

can some1 help me plsss

--- On Thu, 22/7/10, Nourideen A nouride...@gmail.com wrote:

From: Nourideen A nouride...@gmail.com
Subject: [ns] DIM:GPSR errors
To: ns-users@ISI.EDU
Date: Thursday, 22 July, 2010, 18:09


Hi all,

Iam trying to implement GPSR using DIM from this website:
http://enl.usc.edu/projects/dim/ . I have copied all the files into the ns
directory, but I having trouble when I compile index.tcl ,using ns-2 2.29. I
think i have updated the makefile properly but I cant seem to find the
issue. I would appreciate any feedback in solving this issue. Thanks.  I get
the following errors:

 $ index.tcl
load_flatgrid 56 56
num_nodes is set 10

    (_o14 cmd line 1)
    invoked from within
_o14 cmd addr
    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 _o14 line 2)
    (SplitObject unknown line 2)
    invoked from within
_o14 addr
    (eval body line 1)
    invoked from within
eval $node addr $args
    (default arm line 2)
    invoked from within
switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 $node start-dsr
}
AODV {
set ragent [$self cre...
    (procedure _o3 line 11)
    (Simulator create-wireless-node line 11)
    invoked from within
_o3 create-wireless-node
    (eval body line 1)
    invoked from within
eval $self create-wireless-node $args
    (procedure _o3 line 23)
    (Simulator node line 23)
    invoked from within
$ns node
    (for body line 3)
    invoked from within
for {set i 0} {$i  $opt(nn)} {incr i} {
        # debug 1
        set node($i) [$ns node]
  #$ldb register [$node($i) address?] $node($i)
  #[$node($i) set agents_...
    (file dim_original.tcl line 98)

Regards,

Nourideen