[ns] can someone help me solve the error?

2011-03-16 Thread wee liang


Starting Simulation...
ns: _o17 start-dsdv: 
(_o17 cmd line 1)
invoked from within
"_o17 cmd start-dsdv"
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 "_o17" line 2)
(SplitObject unknown line 2)
invoked from within
"_o17 start-dsdv"

where should i start looking for the problem source?
please advice, very urgent.
  

[ns] Syn flooding attack

2011-03-16 Thread godwin sam

Dear friends,
Can we do syn flooding attack in ns2. pls help.
Godwin


[ns] location or position of nodes

2011-03-16 Thread Suman paul choudhury

dear all

how is it possible to know the position of a node at any instant of a time
if the node is  in constant motion. can any one provide with the tcl code of
the following?

regards
Suman


[ns] IP router

2011-03-16 Thread Souzan Asadollahi

hi
could u plz tell me how can we assign the IP like  (10.1.1.65) to the nodes
in NS2?

-- 
 Souzan  Asadollahi
Msc Student of Information Security
Faculty of Computer Science (CASE)
Universiti Teknologi Malaysia-International Campus-Malaysia


Re: [ns] location or position of nodes

2011-03-16 Thread Manoj_Kumar



Suman paul choudhury wrote:
> 
> how is it possible to know the position of a node at any instant of a time
> if the node is  in constant motion. can any one provide with the tcl code
> of
> the following?
> 

This might help you:  http://wp.me/piGUb-IE http://wp.me/piGUb-IE 


-
---
ManojKumar.A
---
Blog: http://getch.wordpress,com
Mailing list guidelines: http://goo.gl/xC874
-- 
View this message in context: 
http://old.nabble.com/location-or-position-of-nodes-tp31164555p31165527.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] Debugging ns code (.cc files) with print statements

2011-03-16 Thread Manoj_Kumar



Ns Learner wrote:
> 
> With cout, I get this error message:
> error: ISO C++ forbids declaration of ‘cout’ with no type
> error: expected ‘;’ before ‘<<’ token
> 

Do not use cout. Use printf instead.


-
---
ManojKumar.A
---
Blog: http://getch.wordpress,com
Mailing list guidelines: http://goo.gl/xC874
-- 
View this message in context: 
http://old.nabble.com/Debugging-ns-code-%28.cc-files%29-with-print-statements-tp31140445p31165658.html
Sent from the ns-users mailing list archive at Nabble.com.




Re: [ns] problem sybil attack

2011-03-16 Thread Manoj_Kumar



anand-29 wrote:
> 
> ...but i want
> make the node to drop only specified packets...like evry 3rd packet or
> half of the packets... :) :) :D
> 

See the ns-2 manual chapter on Error Models.

-
---
ManojKumar.A
---
Blog: http://getch.wordpress,com
Mailing list guidelines: http://goo.gl/xC874
-- 
View this message in context: 
http://old.nabble.com/problem-sybil-attack-tp31141445p31165670.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] [code omitted because of length] error

2011-03-16 Thread wee liang


why do i have a error when i run
$./configure
$./make clean
$./make
$make install
 
[code omitted because of length]
: invalid command name "Agent/UDP/PDP"
while executing
"Agent/UDP/PDP set best_server_  0"
 
can any1 help?

[ns] Number of neighbours

2011-03-16 Thread salahedin rehan

Hi all,

How can I know the number of neighbours a node has before sending a packet. I 
am 
using the Agent below. When recieving, the node brodcast the packet with a 
probability. I need to know the number of neighbours to make that probability 
dynamic. In other words, when recieving a packet, the probability of 
rebroadcasting will be higher if there will be fewer neighbours. 


Thanks a lot.


#Probabilistic Broadcast Agent 
#V.B., 2005 
 
Class Agent/MessagePassing/MyPBCast -superclass { Agent/MessagePassing } 
 
Agent/MessagePassing/MyPBCast instproc init {} { 
$self instvar prob_  
$self instvar seqno_  
$self instvar flag_ 
$self next 
set seqno_ 0 
set flag_ 0 
$self instvar agent_addr_ 
set prob_ 1  
$self set_pkttype 13 
$self set packetSize_ 400  
} 
 
 
Agent/MessagePassing/MyPBCast instproc setprob {prob} { 
$self instvar prob_  
set prob_ $prob 
} 
 
Agent/MessagePassing/MyPBCast instproc setseed {seed} { 
$self instvar seed_  
set seed_ $seed 
expr srand($seed_) 
} 
 
Agent/MessagePassing/MyPBCast instproc send {} { 
$self instvar seqno_  
$self instvar agent_addr_ 
set msg "pbcast:$agent_addr_:$agent_addr_:$seqno_:" 
set flag_ 1 
$self sendto 400 $msg -1 90 
} 
 
Agent/MessagePassing/MyPBCast instproc recv { flg port len p } { 
  # receiver function
 
  $self instvar agent_addr_ 
  $self instvar flag_ 
  $self instvar prob_  
  set L [split $p :] 
  set src_ [lindex $L 2] 
  set seqno_ [lindex $L 3] 
  if {$flag_ == 1} {  return } 
  set flag_ 1 
  #here toss a coin and make probabilistic decision 
  set coin [expr rand()] 
#puts $coin 
#puts $prob_#here I need to make this probability dependable on the no. 
neighbours...?
  if {$coin > $prob_} { return } 
  set msg "pbcast:$agent_addr_:$src_:$seqno_:" 
  $self sendto 400 $msg -1 90  
 
}


  


[ns] Ns-users Digest, Vol 87, Issue 14

2011-03-16 Thread marllus lustosa

Hi!
Yes, i'm from Brasil!


---
Hello,

Are you also from Brasil?

Érico V. Porto


On Tue, Mar 15, 2011 at 9:01 AM, marllus lustosa
wrote:

>
> An example for the Sinalgo simulator exists. You can adptar the code of
> Java
> for TCL.
>
> page: www.ufpi.br/subsiteFiles/ercemapi/arquivos/files/minicurso/mc3.pdf
>
>
>
> --
>
> Message: 2
> Date: Mon, 14 Mar 2011 02:43:20 +
> From: Angel Lopez 
> Subject: [ns] Geocast code NS2
> To: 
> Message-ID:  w653f3790e73a317d6e71489b...@phx.gbl>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
> Hi,
>
> I'm implementing a geocast protocol for manet's, and i'll need to compare
> it. So, do you know about an available geocast code for manets in NS2?
>
> Thanks in advance.
> Angel Lopez.
>
>
> --
> att,
>
> Marllus de Melo Lustosa - lattes -> http://bit.ly/dlm86f / HomePage ->
> http://www.marllus.com
> Bacharelando em Ciência da Computação - UFPI
> Departamento de Informática e Estatística - DIE
> Grupo de Pesquisa e Estudos em Redes de computadores - GoPER -
> http://die.ufpi.br/goper/
>


--
att,

Marllus de Melo Lustosa - lattes -> http://bit.ly/dlm86f / HomePage ->
http://www.marllus.com
Bacharelando em Ciência da Computação - UFPI
Departamento de Informática e Estatística - DIE
Grupo de Pesquisa e Estudos em Redes de computadores - GoPER -
http://die.ufpi.br/goper/



Re: [ns] Debugging ns code (.cc files) with print statements

2011-03-16 Thread Ns Learner


Thanks, Pedro. I used printf in tcp.cc file inside the methods that are usually 
called. But, I don't get any statements printed on the console.

What could be the mistake?

Thanks.


--- On Thu, 17/3/11, pedro chaparro  wrote:

From: pedro chaparro 
Subject: Re: [ns] Debugging ns code (.cc files) with print statements
To: "Ns Learner" 
Received: Thursday, 17 March, 2011, 4:42 AM

u can use printf, bu cout should works too!!!

2011/3/14 Ns Learner 



Hello,



I am trying to debug ns code (.cc files) with print or cout statements.



With cout, I get this error message:



error: ISO C++ forbids declaration of ‘cout’ with no type

error: expected ‘;’ before ‘<<’ token





I tried inserting using namespace std and it still gives me an error message.

Print or printf statements simply do not print message on to my console.



Can somebody help?



Thanks :D





      


-- 
Pedro Alonso Chaparro Valero R&D Engineer
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




  

Re: [ns] Debugging ns code (.cc files) with print statements

2011-03-16 Thread Ns Learner

Thanks, Manoj. I used printf in tcp.cc file inside the methods that are
usually called. But, I don't get any statements printed on the console.

What could be the mistake?

Thanks.

--- On Thu, 17/3/11, Manoj_Kumar  wrote:

From: Manoj_Kumar 
Subject: Re: [ns] Debugging ns code (.cc files) with print statements
To: ns-users@ISI.EDU
Received: Thursday, 17 March, 2011, 4:28 AM




Ns Learner wrote:
> 
> With cout, I get this error message:
> error: ISO C++ forbids declaration of ‘cout’ with no type
> error: expected ‘;’ before ‘<<’ token
> 

Do not use cout. Use printf instead.


-
---
ManojKumar.A
---
Blog: http://getch.wordpress,com
Mailing list guidelines: http://goo.gl/xC874
-- 
View this message in context: 
http://old.nabble.com/Debugging-ns-code-%28.cc-files%29-with-print-statements-tp31140445p31165658.html
Sent from the ns-users mailing list archive at Nabble.com.





  

[ns] port of agent in multicast

2011-03-16 Thread shixm421

Hi all:
I have a problem about the port of Agent. I have two Agent,one is a sender,
another is a receiver. I set dst_port_ of sender=x. I get the value of
agent_port_ of receiver is 2. Whatever the x is,the simulation will go on
all the same in the multicast.
Why does it happen? How can I fix it?
Thank you very much!

Balbo.




[ns] How to congest a node to make delay packets forwarding?

2011-03-16 Thread Ahmad

Hi Guys
I really need help in this one.
I am unable to simulated a congested network. I keep increasing the packets 
sent 
from node A to node B but I see always my packets that are going from source to 
a destination (who sits on path A-->B) to arrive at the same time. I expect 
them 
to arrive later as node is being congested with packets but no luck
Any help/ideas how to solve this? Can I increase the packet processing time at 
a 
node? or how can I get around this
please help, I just need to prove that packets are delayed as we are congesting 
a node sitting on the path.