[ns] calculate the length of interface queue

2006-07-04 Thread Amita Singh

Hi All,
can anyone tell me how to calculate the length of interface queue at a 
particular node using c++.
thanks in advance
Amita  


[ns] R: RTSThreshold in Simulations

2006-07-04 Thread Marco Fiore

Alicia,

RTS/CTS is used when frame size is greater than the RTS 
threshold.
So you should act on the RTS threshold value to set RTS/CTS 
on or off.

Marco

Messaggio originale
Da: [EMAIL PROTECTED]
Data: 3-lug-2006 1.31 PM
A: ns-users@ISI.EDU
Ogg: [ns] 
RTSThreshold in Simulations


Hello guys:

I wonder if you 
activate the RTS/CTS in simulations for MANET. Does it 
depend on the 
packet size or on the number of neighbors?

Thanks in advance,


Alicia Triviño   / Tl. +34-95.213.71.91
Dpto. Tecnologia Electronica
E.T.S. Ing. Telecomunicacion
Universidad de Malaga
Campus Universitario de Teatinos
29071 Malaga, 
Spain







[ns] Security in MANET

2006-07-04 Thread S Kumar Mamillapalli

Hi,
   I am new to ns. I want to implement a protocol in 'ns' that provides
secure route discovery in MANET. It involves Digital signatures and 
encryption. I have studied the tutorials but they all provide 
information on how to simulate normal routing traffic without any 
security. Can anyone give me a suggestion on how to start which file to 
modify and how. What should i do to generate a MAC (Message Authentication 
Code) in NS. please help me.

Thanks in advance
subhash.


|M. Subhash kumar|
|Btech Computer Science  |
| VI sem,|
| Room 018,kapili|
  //) IIT Guwahati. (\\
 // ) mail me at:[EMAIL PROTECTED]( \\
/( (|[EMAIL PROTECTED] ) )\
   (((\ \   / /   \ \   / /)))
   (\\ \ \_/ / \ \_/ )
\   /   \   /
 \_/ \_/
  /   /   \   \



[ns] GPRS simulation by richa...

2006-07-04 Thread indra tyas

Hello Richa,
 
 Would you Help me?I am simulating the wireless network at GSM. I want to try 
GPRS simulation using Network Simulator. I have gotten that source code but I 
can't install it. I have read the Readme but I didn't understand. And would 
you tell me about How to install your GPRS simulation and also the source code 
about GPRS module? Can you send about the information via email.
 
 Thanks for your help,
 Indra,   
 
 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


[ns] Ending the simulation after a transfer is finished

2006-07-04 Thread Prateek Singhal

Hi,

Is there a way to end the simulation just after a transfer is finished and
not by specifying a time on which to end it. For e.g.: my script has a line:

$ns at 5.0 $ftp send 6000

Where ns is a network simulator object and ftp is an ftp application object.
Now, I don't know at what time will this transfer be over. So, I can't have
a line which says:

$ns at 10.0 finish

I also don't want to use a big number for the time over there because that
will mean unnecessary waiting in most cases.

Is there a way to end the simulation when $ftp is over with its transfer? In
other words, is there a way to know the time when a transfer will be over?

Thanks,
Prateek Singhal

-- 
Prateek Singhal | mailto:[EMAIL PROTECTED]


[ns] R: Ending the simulation after a transfer is finished

2006-07-04 Thread Marco Fiore

Prateek,

setting the finish time to a high value should not cause any 
harm, nor should it make you wait more.
Since ns-2 is an event-driven 
simulator, once no event is scheduled the time shall move directly to 
the
'end of simulation' event, in no (user) time.

I don't know if 
other better solutions exist, though.

Marco

Messaggio 
originale
Da: [EMAIL PROTECTED]
Data: 4-lug-2006 12.53 PM
A: ns-users@ISI.EDU
Ogg: [ns] Ending the simulation after a 
transfer is finished


Hi,

Is there a way to end the simulation 
just after a transfer is finished and
not by specifying a time on 
which to end it. For e.g.: my script has a line:

$ns at 5.0 $ftp 
send 6000

Where ns is a network simulator object and ftp is an ftp 
application object.
Now, I don't know at what time will this transfer 
be over. So, I can't have
a line which says:

$ns at 10.0 finish

I also don't want to use a big number for the time over there because 
that
will mean unnecessary waiting in most cases.

Is there a way to 
end the simulation when $ftp is over with its transfer? In
other 
words, is there a way to know the time when a transfer will be over?

Thanks,
Prateek Singhal

-- 
Prateek Singhal | mailto:singhal.
[EMAIL PROTECTED]





Re: [ns] R: Ending the simulation after a transfer is finished

2006-07-04 Thread Prateek Singhal

Hi Marco,

I think this does not hold if the Scheduler type is Realtime, right? I
should have mentioned that earlier :(

Prateek

On 7/4/06, Marco Fiore [EMAIL PROTECTED] wrote:

 Prateek,

 setting the finish time to a high value should not cause any
 harm, nor should it make you wait more.
 Since ns-2 is an event-driven
 simulator, once no event is scheduled the time shall move directly to
 the
 'end of simulation' event, in no (user) time.

 I don't know if
 other better solutions exist, though.

 Marco

 Messaggio
 originale
 Da: [EMAIL PROTECTED]
 Data: 4-lug-2006 12.53 PM
 A: ns-users@ISI.EDU
 Ogg: [ns] Ending the simulation after a
 transfer is finished
 
 
 Hi,
 
 Is there a way to end the simulation
 just after a transfer is finished and
 not by specifying a time on
 which to end it. For e.g.: my script has a line:
 
 $ns at 5.0 $ftp
 send 6000
 
 Where ns is a network simulator object and ftp is an ftp
 application object.
 Now, I don't know at what time will this transfer
 be over. So, I can't have
 a line which says:
 
 $ns at 10.0 finish
 
 I also don't want to use a big number for the time over there because
 that
 will mean unnecessary waiting in most cases.
 
 Is there a way to
 end the simulation when $ftp is over with its transfer? In
 other
 words, is there a way to know the time when a transfer will be over?
 
 Thanks,
 Prateek Singhal
 
 --
 Prateek Singhal | mailto:singhal.
 [EMAIL PROTECTED]
 





-- 
Prateek Singhal | mailto:[EMAIL PROTECTED]


[ns] R: Re: R: Ending the simulation after a transfer is finished

2006-07-04 Thread Marco Fiore

Prateek,

unfortunately, I think you are right...

Marco


Messaggio originale
Da: [EMAIL PROTECTED]
Data: 4-lug-
2006 1.27 PM
A: ns-users@isi.edu
Cc: Marco Fiore[EMAIL PROTECTED]
it
Ogg: Re: R: [ns] Ending the simulation after a transfer is 
finished

Hi Marco,

I think this does not hold if the Scheduler 
type is Realtime, right? I
should have mentioned that earlier :(

Prateek

On 7/4/06, Marco Fiore [EMAIL PROTECTED] wrote:

 
Prateek,

 setting the finish time to a high value should not cause 
any
 harm, nor should it make you wait more.
 Since ns-2 is an 
event-driven
 simulator, once no event is scheduled the time shall 
move directly to
 the
 'end of simulation' event, in no (user) 
time.

 I don't know if
 other better solutions exist, though.

 Marco

 Messaggio
 originale
 Da: singhal.
[EMAIL PROTECTED]
 Data: 4-lug-2006 12.53 PM
 A: [EMAIL PROTECTED]
EDU
 Ogg: [ns] Ending the simulation after a
 transfer is 
finished
 
 
 Hi,
 
 Is there a way to end the 
simulation
 just after a transfer is finished and
 not by 
specifying a time on
 which to end it. For e.g.: my script has a 
line:
 
 $ns at 5.0 $ftp
 send 6000
 
 Where ns is a 
network simulator object and ftp is an ftp
 application object.
 
Now, I don't know at what time will this transfer
 be over. So, I 
can't have
 a line which says:
 
 $ns at 10.0 finish
 
 
I also don't want to use a big number for the time over there because
 that
 will mean unnecessary waiting in most cases.
 
 Is 
there a way to
 end the simulation when $ftp is over with its 
transfer? In
 other
 words, is there a way to know the time when a 
transfer will be over?
 
 Thanks,
 Prateek Singhal
 
 --
 Prateek Singhal | mailto:singhal.
 [EMAIL PROTECTED]
 





-- 
Prateek Singhal | mailto:[EMAIL PROTECTED]





[ns] Keep track of nodes a packet passes through

2006-07-04 Thread Nicholas Loulloudes

Hello,

is there a way in NS2 to keep track all the nodes a packet passes through
en-route to destination?

Regards,

-- 
Nicholas Loulloudes

Postgraduate at Communication Networks and Software.

BSc in Computer Science.


[ns] Fw: route assignment code

2006-07-04 Thread Christos Antonopoulos


- Original Message - 
From: Christos Antonopoulos 
To: ns-users@ISI.EDU 
Sent: Monday, July 03, 2006 3:17 PM
Subject: route assignment code


Hello everybody,

 

I want to make a very specific question if someone knows it. I want the 
specific point in the code where a route is assigned to a specific packet. 

 

Could someone direct me to that point or to some relevant information?

 

Thanks a lot

 

Chris



Re: [ns] Keep track of nodes a packet passes through

2006-07-04 Thread Brad Montgomery


Nicholas,

I think you can find this information in a trace file, which should include
a pkt id as the last field in the trace.

Take a look at the tutorial here:
http://nile.wpi.edu/NS/analysis.html

Brad

On 7/4/06 12:17 PM, Nicholas Loulloudes [EMAIL PROTECTED]
wrote:

 Hello,
 
 is there a way in NS2 to keep track all the nodes a packet passes through
 en-route to destination?
 
 Regards,
 
 -- 
 Nicholas Loulloudes
 
 Postgraduate at Communication Networks and Software.
 
 BSc in Computer Science.



[ns] Exponential traffic generation

2006-07-04 Thread B. A. Hirantha Sithira Abeysekera

Hi all,
 I want to generate a poisson traffic with average rate of 64kbps. So I 
wrote a script like follows and I just want to know whether it is 
correct or no. idle_time_ is set to 0.01 (=80*8/64000 pkt/sec). If 
anyone has an idea let me know. Thank you.
 
set app0 [new Application/Traffic/Exponential]
$app0 set packetSize_ 80
$app0 set rate_ 1000G 
$app0 set burst_time_ 0 
$app0 set idle_time_ 0.01 

Hirantha