[ns] TCP attaching problem

2006-11-12 Thread otcl

Hello, can someone help with TCP problem? I'm trying to run following tcl code: 
  or {set i 1} {$i=$NetNb1} { incr i } { for {set j 1} {$j=$NumFlows} 
{ incr j } { set tcpsrc($i,$j) [new Agent/TCP/Newreno]  
   set tcp_snk($i,$j) [new Agent/TCPSink/DelAck]
 $tcpsrc($i,$j) set packetsize_ 1000 $ns attach-agent 
$N1($i) tcpsrc($i,$j) $ns attach-agent $Server tcp_snk($i,$j)   
  $ns connect $tcpsrc($i,$j) $tcp_snk($i,$j) set 
ftp($i,$j) [$tcpsrc($i,$j) attach-source FTP] } }a so on, but instead 
proper function I get the error output like this:   invalid command name 
tcpsrc(1,1) while executing $agent set node_ $self (procedure 
_o58 line 4) (Node attach line 4) invoked from within $node attach 
$agent (procedure _o3 line 2) (Simulator attach-agent line 2) 
invoked from within $ns attach-agent $N1($i) tcpsrc($i,$j!
 )  (for body line 8) invoked from within for {set i 1} 
{$i=$NetNb1} { incr i } { for {set j 1} {$j=$NumFlows} { incr j } {   
  set tcpsrc($i,$j) [new Agent/TCP/Newreno] # 
setting tcpsink w... (file mojepareto.tcl line 54)   This part of code 
is from 'NS2 for beginners' (Chapter 4 - TCP/IP), is it possible, that it's 
wrong? Thank You for help. 


[ns] TCP problem

2006-11-12 Thread otcl

Hello, can someone help with TCP problem? I'm trying to run following tcl code: 
  or {set i 1} {$i=$NetNb1} { incr i } { for {set j 1} {$j=$NumFlows} 
{ incr j } { set tcpsrc($i,$j) [new Agent/TCP/Newreno]  
   set tcp_snk($i,$j) [new Agent/TCPSink/DelAck]
 $tcpsrc($i,$j) set packetsize_ 1000 $ns attach-agent 
$N1($i) tcpsrc($i,$j) $ns attach-agent $Server tcp_snk($i,$j)   
  $ns connect $tcpsrc($i,$j) $tcp_snk($i,$j) set 
ftp($i,$j) [$tcpsrc($i,$j) attach-source FTP] } }a so on, but instead 
proper function I get the error output like this:   invalid command name 
tcpsrc(1,1) while executing $agent set node_ $self (procedure 
_o58 line 4) (Node attach line 4) invoked from within $node attach 
$agent (procedure _o3 line 2) (Simulator attach-agent line 2) 
invoked from within $ns attach-agent $N1($i) tcpsrc($i,$j!
 )  (for body line 8) invoked from within for {set i 1} 
{$i=$NetNb1} { incr i } { for {set j 1} {$j=$NumFlows} { incr j } {   
  set tcpsrc($i,$j) [new Agent/TCP/Newreno] # 
setting tcpsink w... (file mojepareto.tcl line 54)   The whole part of 
code is similar to  'NS2 for beginners' (Chapter 4-TCP/IP description and 
simulation), is it possible, that it's wrong? Thank You for help. 


[ns] urgent help

2006-11-12 Thread Albalas F \(AT\)

Hi all,

 

i run the setdest command to get a node scenario for mobile nodes, I
noticed that the nodes is not moving.

 

I used the following values for the setdest command.

 

Setdest -n 50 -p 0 -s 20 -t 10 -x 1500 -y 300  output file

 

Any idea.

Thanks

 



[ns] debug Scheduler: Event UID not valid! error, Help me !!!

2006-11-12 Thread Nguyen Lan

Hi all,

I apply a new MAC protocol for wireless network and I got this error 
Scheduler: Event UID not valid!and I know that it comes from the event 
that has uid = 55 (by debugging scheduler.cc file). Now I don't know 
what to do next, could you help me to solve it. Any suggest is welcome.

Thank you.
Nguyen Lan



[ns] Re : urgent help

2006-11-12 Thread molo badji

Hi,

You use this file in a script tcl which runs a mobile network and you noticed 
that there is non mobility. When Nam is executing, did you click on the next 
button?

Molo.


- Message d'origine 
De : Albalas F (AT) [EMAIL PROTECTED]
À : ns-users@ISI.EDU
Envoyé le : Dimanche, 12 Novembre 2006, 13h14mn 10s
Objet : [ns] urgent help


Hi all,



i run the setdest command to get a node scenario for mobile nodes, I
noticed that the nodes is not moving.



I used the following values for the setdest command.



Setdest -n 50 -p 0 -s 20 -t 10 -x 1500 -y 300  output file



Any idea.

Thanks






___ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com


[ns] Urgent-Aggregation of packets!!!

2006-11-12 Thread g_fnoor

Hello everybody!
  I had sent the message below , but received no replies, I desperately
need any ideas or guidance that i can get to solve this issue. If not
can any one of you tell me how to alter the queue limits of a particular
outgoing link? how do i make only one packet to leave a particular link
and all the others are dropped.

Please please do reply back.Need you help urgently!

Thanking u lots

Fatema.


Hi everybody!
  I'm working with the DSDV routing algo and i need to implement
aggragation in my network as my master's project. Its a hierarchical
network with 4 layers, the bottomost being of mobile nodes and above that
layer all of them are wired Base station nodes. I need to
receive all the packets from the lowermost layer that is the mobile nodes
and then the cluster head which receives the data from these mobile nodes
needs to perform an aggregation fucntion and instead of sending 'n' values
to the cluster head on the layer above it, it
aggregates all the data and just sends 'one' value. So i need to
drop all the packets after i receive them [calculate the loss and
all the other calculations before i proceed to drop the packets].
This is just the base of my project.
 I do not know which C++ files i'll need to change to implement this nor
do i know if i need to write a separate 'tcl' code for implementing this.
 Please do help me with this, any suggestions are welcome or if
anybody has any ideas about how to atleast start or what I should be
looking out for? Please please do reply back. Thank you so much in
advance!!

Thanking you,

Yours Sincerely,
Fatema.





[ns] I need installation guide of MNS v2.0 for ns-allinone-2.26.

2006-11-12 Thread rafienejhad

Hi everyone
I have mns-for ns-2.26 from
http://heim.ifi.vio.no/~johanmp/ns-2/mns-for-ns2.26.tar.gz but I don’t
have any guide to install it on ns-allinone2.26 and use it.
So I need installation guide of MNS v2.0 for ns-allinone-2.26.
Can anyone help me?
Please help me.
Thanks for your help.
Rafieenezhad