[ns] What's the relationship of Pt_ and Pt_consume_

2006-12-14 Thread Daniel Dekst

Hi, all
   
  What's the relationship of Pt_ and Pt_consume_? 
   
  I know when a node receive a packet, it will calculate Pr according to Pt_, 
then decide whether successfully capture this packet. If I calculate txPower 
according to the distance between two nodes, and replace the Pt_ then the 
transmission range will be changed. But how much energy should be decreased 
also should be changed, which is implemented in function 
em()-DecrTxEnergy(actual_txtime, Pt_consume_).
   
  Then should we use (txPower/Pt_)*Pt_consume_ to replace Pt_consume_ or 
some other functon?
   
  Thanks in advance,
  Pei


-
抢注雅虎免费邮箱-3.5G容量,20M附件! 

[ns] compile problem

2006-12-14 Thread sandesh shenoy

Hello,
 Could anyone tell me how to reflect the log statements written 
in file-ns-lib.tcl,Simulator instproc init args body.If i make under ns-2.28,no 
changes are brought about.Is there any additional procedure to be followed?Any 
suggestions will be helpful for me.
   
  Thanks in advance.


-
 Find out what India is talking about on  - Yahoo! Answers India 
 Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it 
NOW


[ns] R: Rate adaptation in ns-2

2006-12-14 Thread Marco Fiore

Hi,

if you refer to rate-based congestion control, the first result
by 
searching Google is:
Source code for RAP in ns2
http://netweb.usc.
edu/reza/RAP/NewRAP/

If you refer to rate adaptation at MAC layer in 
wireless networks,
by looking at the ns mailing list archives, a patch 
is available at:
http://reti.polito.it/fiore

Next time please avoid 
posting to the mailing list without
searching the web and the mailing 
list archives.

bye,

Marco

Messaggio originale
Da: emin.
[EMAIL PROTECTED]
Data: 12-dic-2006 9.05 PM
A: ns-users@ISI.EDU
Ogg: [ns] Rate adaptation in ns-2


Hi all ns-2 users,

Is there 
anyone that implemented rate adaptation over ns-2 before ? We hope
RAP 
to simulate. And end-to-end (IP) network to simulate with rate
adaptation.

Need a help as soon as possible...
Thanks in advance.





Re: [ns] ns-allinone-2.26 installation

2006-12-14 Thread Pedro Vale Estrela

Use older version of your distribution


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
 Of Anjali Arora
 Sent: quinta-feira, 14 de Dezembro de 2006 13:35
 To: ns-users@ISI.EDU
 Subject: [ns] ns-allinone-2.26 installation
 
 
 hello everyone
   i have ns-allinone-2.26 and mns-for-2.26.i want to install it on linux
 red-hat enterprise edition.but its not working,giving error tk 8.3.2 make
 failed.what is the solution or whats another option?
   please help me out
   anjali
 
 
 -
  Find out what India is talking about on  - Yahoo! Answers India
  Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8.
 Get it NOW




Re: [ns] compile problem

2006-12-14 Thread Pedro Vale Estrela

Sems like a bug in the makefile.

Try:

rm ns2/gen/ns_tcl.o  ; make


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
 Of sandesh shenoy
 Sent: quinta-feira, 14 de Dezembro de 2006 14:09
 To: ns-users@ISI.EDU
 Subject: [ns] compile problem
 
 
 Hello,
  Could anyone tell me how to reflect the log statements
 written in file-ns-lib.tcl,Simulator instproc init args body.If i make
 under ns-2.28,no changes are brought about.Is there any additional
 procedure to be followed?Any suggestions will be helpful for me.
 
   Thanks in advance.
 
 
 -
  Find out what India is talking about on  - Yahoo! Answers India
  Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8.
 Get it NOW




Re: [ns] Reg: problems with 802.11 module on ns2

2006-12-14 Thread Balkrishna Gukhool

Hi,

Thanks for replying to my initial post and apologies for replying so late.
I am using the 80211 code by Mathieu Lacage. The problem I am getting is
when I am using the command ns test-80211.tcl to run the tcl script. All the
other scripts in the examples folder work perfectly fine. So, i guess it is
not a problem with the execution paths of ns.

here is actually what i get as error.

$ ns test-80211.tcl
couldn't read file ./node-common/utils.tcl: no such file or directory
while executing
source.orig ./node-common/utils.tcl
(uplevel body line 1)
invoked from within
uplevel source.orig [list $fileName]
invoked from within
if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig [list $fileName]
...
(procedure source line 8)
invoked from within
source ./node-common/utils.tcl
(file test-80211.tcl line 1)

I have checked whether the folder exists and, of course, it does. I have
also tried with the code u told me to download and i get the same error.

Am i doing the right thing here? or is there something i missed?

Thanks for your help.

Regards,
Balkrishna S Gukhool


Re: [ns] Reg: problems with 802.11 module on ns2

2006-12-14 Thread Balkrishna Gukhool

Hi,

Thank you very much with that piece of advice because it helped solve the
error. unfortunately, i seem to get another problem when i run the command ns
test-80211.tcl.

$ ns test-80211.tcl
invalid command name NodeConstructor
while executing
NodeConstructor create _o12 
invoked from within
catch $className create $o $args msg
invoked from within
if [catch $className create $o $args msg] {
if [string match __FAILED_SHADOW_OBJECT_ $msg] {
delete $o
return 
}
global errorInfo
error class $...
(procedure new line 3)
invoked from within
new NodeConstructor
invoked from within
set nodeConstructor [new NodeConstructor]
(file test-80211.tcl line 6)

Help of any sort is welcomed and hugely appreciated.

Regards,
Balkrishna S Gukhool