[ns] R: 802.11 a/b/g status

2006-09-24 Thread Marco Fiore

Hi Stephen,

the current ns-2 implementation of 802.11 can be
considered representative of all b/g/a versions of
the protocol. As a 
matter of fact, only the MAC sub-
layer is considered in ns-2. PHY 
support is scarce in
ns-2, and the different b/g/a versions are usually
simulated by changing channel parameters, such
as the bandwidth and 
error model.

I recently worked on a patch which tries to add some
realism to ns-2 channel modeling, available at
http://www.reti.polito.
it/fiore, but PHY layer modeling
is still poor in ns-2.

I'm not aware 
of any group working on such issue.
However, people working on ns-3 may 
be interested
in such issue. You could try to post a message to the
developers list.

Regards,

Marco


>Messaggio originale
>Da: 
[EMAIL PROTECTED]
>Data: 23-set-2006 12.16 AM
>A: 
>Ogg: [ns] 802.11 a/b/g status
>
>
>The research group I am a member of 
is investigating 802.11 g/n and
>802.16 for a wireless project. Our 
focus is to find a correct
>implementation of these protocols or have 
the ability to provide them
>and test them using various scenarios.
>
>Since we are new to NS-2 we will read the beginner guide to 
familiarize
>ourselves with how to use it. So I will not bug you with 
beginner
>questions right now.
>
>I looked over the FAQ and the list of 
supported protocols but I did not
>find the status of these protocols. 
Is it posted in the documentation
>and I missed it? Is there a link to 
someone working on it?
>
>Stephen
>-- 
>PhD. Student
>Auburn University
>Department of Computer Science and Software Engineering
>107 Dunstan 
Hall
>Auburn, AL 36849-5347  U.S.A.
>(334) 844-4330 (O)
>[EMAIL PROTECTED]
edu
>
>




[ns] R: How to plot jitter, throughput and end to end delay of a eurane simulation

2006-10-16 Thread Marco Fiore

Hi Diego,

you may have a look at trace2stats, at http://www.reti.
polito.it/fiore

bye,

Marco

>Messaggio originale
>Da: 
[EMAIL PROTECTED]
>Data: 13-ott-2006 10.41 PM
>A: <[EMAIL PROTECTED]
wmc.nl>
>Cc: 
>Ogg: [ns] How to plot jitter,  
throughput and end to end delay of a eurane simulation
>
>
>Hi all, 
>
>I am using ns2 with eurane. How to plot jitter,throughput and end to 
end 
>delay using xgraph or gnuplot. 
>
>Thanks. 
>
>Diego Passos 
>
>
>




[ns] R: RSSI measurement

2006-10-18 Thread Marco Fiore

Loreno,

in common/packet-stamp.h you can find the PacketStamp 
structure, which is
included in any ns packet. It stores information on 
the transmitted and received
power. You can access this information 
with, for example,  p->txInfo_.RxPr,
which returns the received power 
of packet p. Note that the original implementation
of ns does not 
include interference: if you want to add this feature, you can install
the patch for wireless support you can find at http://www.reti.polito.
it/fiore

bye,

Marco

>Messaggio originale
>Da: 
[EMAIL PROTECTED]
>Data: 18-ott-2006 12.38 AM
>A: <[EMAIL PROTECTED]
EDU>
>Ogg: [ns] RSSI measurement
>
>
>Hi All,
>
>does anybody know how 
do I measure the RSSI between two wireless nodes?? As
>far as I have 
seen in the archive, this question has been posted during
>years in 
this list without any reply. I will be extremelly thankful if
>somebody 
had some hint about it.
>
>Regards,
>
>Loreno
>




[ns] R: Re: R: RSSI measurement

2006-10-19 Thread Marco Fiore

Loreno,

you may want to have a look at the following paper:
Naumov et 
al., "The Study of Inter-Vehicle Ad Hoc Networks on Realistic Vehicular 
Traces", MOBIHOC 2006.
It's about 802.11 and vehicular networks, but it 
exploits the RSSI information to estimate the distance between
nodes.

Regards,

Marco

>Messaggio originale
>Da: [EMAIL PROTECTED]
com
>Data: 18-ott-2006 7.58 PM
>A: "Marco Fiore"<[EMAIL PROTECTED]>
>Cc: 
>Ogg: Re: R: [ns] RSSI measurement
>
>Hi Marco, 
very thanks to your reply!
>
>I will take a look at the structure you 
said and doing some tests. Based in
>what you said, probably this 
solves my problem. A priori I am only
>considering simpler scenarios 
where I do not need to deal with
>interferences. My actual concern is 
only finding a way of estimating the
>distance between two bluetooth 
devices, and I thought RSSI was the
>straingforward solution...
>
>Regards,
>
>Loreno
>
>On 10/18/06, Marco Fiore <[EMAIL PROTECTED]> 
wrote:
>>
>> Loreno,
>>
>> in common/packet-stamp.h you can find the 
PacketStamp
>> structure, which is
>> included in any ns packet. It 
stores information on
>> the transmitted and received
>> power. You can 
access this information
>> with, for example,  p->txInfo_.RxPr,
>> 
which returns the received power
>> of packet p. Note that the original 
implementation
>> of ns does not
>> include interference: if you want 
to add this feature, you can install
>> the patch for wireless support 
you can find at http://www.reti.polito.
>> it/fiore
>>
>> bye,
>>
>> 
Marco
>>
>> >Messaggio originale
>> >Da:
>> 
[EMAIL PROTECTED]
>> >Data: 18-ott-2006 12.38 AM
>> >A: > EDU>
>> >Ogg: [ns] RSSI measurement
>> >
>> >
>> >Hi All,
>> >
>> >does anybody know how
>> do I measure the RSSI between two 
wireless nodes?? As
>> >far as I have
>> seen in the archive, this 
question has been posted during
>> >years in
>> this list without any 
reply. I will be extremelly thankful if
>> >somebody
>> had some hint 
about it.
>> >
>> >Regards,
>> >
>> >Loreno
>> >
>>
>>
>>
>




[ns] R: Plotting throughput end-to-end delay and jitter

2006-11-02 Thread Marco Fiore

Diego,

have a look at trace2stats at http://www.reti.polito.it/fiore.

bye,

Marco

>Messaggio originale
>Da: [EMAIL PROTECTED]
>Data: 3-nov-2006 12.22 AM
>A: 
>Ogg: [ns] Plotting 
throughput end-to-end delay and jitter
>
>
>Hi, 
>
>Has anynone  a tcl 
code (or another language) to plot  throughput end-to-end 
>delay and 
jitter from a Revised format for wireless traces ($ns 
>use-newtrace) 
or wireless tracefile. 
>
>Regards, 
>
>Diego Passos 
>
>
>




[ns] R: TCP fixed data transfer

2006-11-06 Thread Marco Fiore

Andrea,

if you want to transmit 1 Mbps every 10 mins,
simply use a 
recursive function like:

proc sendData {} {
global ns_

puts "time : [$ns_ now]"
$ns at [$ns_ now] "$ftp send 1e6" 
$ns_ at [expr [$ns_ now] + 600.0] "sendData"
}
$ns_ at 600.0 
"sendData"

which every 600 sec send 1MB and reschedules itself.
$ftp 
is the FTP instance attached to TCP.

bye,

Marco


>Messaggio 
originale
>Da: [EMAIL PROTECTED]
>Data: 5-nov-2006 6.56 PM
>A: "ns-
users"
>Ogg: [ns]  TCP fixed data transfer
>
>
>Hi. I 
need to transfer 1MB every 10 minutes on wireless lan with TCP. How
>can I stop tcp after 1MB is sent?
>
>Thx for help and sorry for my 
poor english
>Andrea M
>




[ns] R: how to calculate end to end delay in wireless scenario

2006-11-15 Thread Marco Fiore

Hi,

have a look at trace2stats, at http://www.reti.polito.it/fiore

bye,

Marco

>Messaggio originale
>Da: [EMAIL PROTECTED]
>Data: 15-nov-2006 10.38 AM
>A: "ns users"
>Ogg: [ns] 
how to calculate end to end delay in wireless scenario
>
>
>
> hi all,
>  
> can any one tell me, how to calculate end to end delay in 
wireless scenario from the trace output or in any other way.
> 
> its 
urgent please.
> 
> thanks in advance
> venkat.
>  
>
>-
>  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
>
>   
>-
> 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: wimax and Wifi TxPower default value

2006-11-23 Thread Marco Fiore

Ramzi,

you can use the Tcl command

Phy/WirelessPhy set Pt_ 

Look in tcl/lib/ns-default.tcl for default value and
other wireless phy 
parameters.

bye,

Marco

>Messaggio originale
>Da: ramzi.
[EMAIL PROTECTED]
>Data: 22-nov-2006 4.06 PM
>A: 
>Ogg: 
[ns] wimax and Wifi TxPower default value
>
>
>Hi all,
>Could someone 
tell me what is the default Tx Power for 802.11 ns
>implementation and 
what could be a 802.16 default Tx Power.
>How do we set Tx Power values 
from C++ code and TCL script ?
>Best regards,
> Ramzi TKA
>




[ns] R: Phy/WirelessPhy set Pt_ ?

2006-11-27 Thread Marco Fiore

Hi,

"Array" should be "array"...

bye,

Marco

>Messaggio 
originale
>Da: [EMAIL PROTECTED]
>Data: 26-nov-2006 5.42 
PM
>A: 
>Ogg: [ns]  Phy/WirelessPhy set Pt_ ?
>
>
>I 
am attemped to use the code line [[lindex [$node_ (0) Array get  
>netif_] 1] set Pt_ 0,5] and you giving the error ?invalid command 
name  
>?0,5??. somebody knows to say me why?
>
>http://decision.csl.
uiuc.edu/~kawadia/SOFTWARE/ns2-txpower-describe.txt
>
>
>Thank you!
>
>
>This 
message was sent using IMP, the Internet Messaging Program.
>
>
>




[ns] R: installazione ns 2.29.3 su Cygwin

2006-12-05 Thread Marco Fiore


Elena,

if I understood your problem, you cannot run ns from any 
location of
your file system. If that's right, check that the ns 
executable, or a link
to it is present in any of the folders listed in 
your PATH. To visualize
the list of folders in the PATH, type 'echo 
$PATH'.

If you need further help, remember to provide more information
(commands run, error messages received, etc.).

bye,

Marco

>
Messaggio originale
>Da: [EMAIL PROTECTED]
>Data: 5-dic-2006 
12.12 PM
>A: "mail to NS"
>Ogg: [ns] installazione ns 
2.29.3 su Cygwin
>
>
> I am trying again  to install ns-2.29 on cygwin 
but after to have given the ./install command and created rows  .
bash_profile (PATH=. LD_LIBRARY_PATH=.. TCL_PATH=..), logout, 
unfortunately to the ns command it does not work, it does not appear 
prompt %.
> according to you I have forgotten something?
>Elena
>




[ns] R: send off packet on different link

2006-12-05 Thread Marco Fiore

Luca,

the routing of multiple flows generated by the
same source node 
is determined by:
1. destination node of flow
2. routing algorithm 
employed

In your case, if the two flows are directed to two
different 
nodes, they will probably choose different
(not necessarily disjoint) 
routes. If the flows are
directed to the same desitnation they will 
select
the same route, and you'll have to play with
routing to avoid 
that.

bye,

Marco

>Messaggio originale
>Da: 
[EMAIL PROTECTED]
>Data: 5-dic-2006 6.29 PM
>A: "ns-users"
>Ogg: [ns] send off packet on different link
>
>
>Hi,
>
>if I have a node from that issue themselves different link, is 
possible to send off the packet on different link in base to the flowid
>
>Thanks
>Regards
>Luca
>
>
>--
>Francesco ha 
perso ben 45 Kg! Scopri come! Clicca qui
>http://click.libero.
it/webnation05dic06
>
>
>
>




[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: 
>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.
>




[ns] R: disable RTS/CTS mode

2006-12-14 Thread Marco Fiore

Dear ?

it's difficult to tell without any information,
you should at 
least post your tcl script and
a portion of the tracefile showing 
RTS/CTS...

bye,

Marco

>Messaggio originale
>Da: ns2.
[EMAIL PROTECTED]
>Data: 14-dic-2006 10.40 AM
>A: 
>Ogg: [ns] disable RTS/CTS mode
>
>
>dear NS users;
>
>i'm simulating a 
ad hoc network under ns 2.29. to study  some parameters , i'm using 
OLSR  routing protocol and i've disabled RTS/CTS mode using the 
following command :
>Mac/802_11 set RTSThreshold_ 3000.but at the end 
of my simulation, the trace file shows rows containing info about 
RTS/CTS packet.
>
>i would understand why this.
>
>
>
>
>   
>
>   
>   
>___ 
>Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et 
son interface révolutionnaire.
>http://fr.mail.yahoo.com
>





[ns] R: obstacle mobility model

2007-03-03 Thread Marco Fiore


Ibrahim,

have a look at: Amit Jardosh, Elizabeth M. Belding-Royer, 
Kevin C. Almeroth, and Subhash Suri. "Towards Realistic Mobility Models 
for Mobile Ad hoc Networks." In the Proceedings of MOBICOM, San Diego, 
CA, September 2003.

bye,

Marco


>Messaggio originale
>Da: 
[EMAIL PROTECTED]
>Data: 27-feb-2007 2.21 AM
>A: <[EMAIL PROTECTED]
EDU>
>Ogg: [ns] obstacle mobility model
>
>
>Hi ALL
>i have 
simulated (DSR,AODV,DSDV) using Manhattan and  Random Waypoint.I want 
to check the performance of these adhoc   protocols in real environment.
i looked  for added obstacle mobility model for  more realistic work. 
>thanks for any suggestion with regards
>ibrahim khider
>
> 
>-
>Finding fabulous fares is fun.
>Let 
Yahoo! FareChase search your favorite travel sites to find flight and 
hotel bargains.
>




[ns] R: SINR and NS-2 802.11 simulations

2007-03-08 Thread Marco Fiore


Hi,

ns-2 physical layer modeling is notoriously weak.
A patch solving 
some of the issues you mentioned
is avaialble at http://www.reti.polito.
it/fiore

bye,

Marco


>Messaggio originale
>Da: [EMAIL PROTECTED]
cmu.edu
>Data: 8-mar-2007 3.21 AM
>A: 
>Ogg: [ns] 
SINR and NS-2 802.11 simulations
>
>
>Hi,
>
>I have a question about NS-
2's 802.11 modeling (or lack there off) of
>SINR/SNR. I've been going 
through wireless-phy.cc and as far as I can
>tell,there's no SINR 
modeling at all. To receive a packet successfully,
>the receiving side 
checks if the received signal power strength is
>greater than both 
CSThreshold and RXThreshold. 
>There's some mention of a capture 
threshold where if another packet is
>received at the same time, the 
first packet will be received
>successfully if its signal strength is 
CPThresh* the other signal.
>However, I don't see it being implemented 
any where.
>Am I reading this right? Is there no SNR or SINR modeling 
at all?
>
>And are there any patches that implement a more accurate 
physical layer
>and are good for MANET simulations? 
>
>Thank you.
>
>Chun Ming Lee
>
>




[ns] R: Re: Awk script for Jitter in NS2

2007-03-12 Thread Marco Fiore


For the question on the jitter, you can find the formulae
in the read.
me. There's no "right" formula, I used to
employ the first, which is 
defined in RTP's RFC.
I added the other three upon request of other 
users,
who usually employed them for jitter calculation.

Regards,

Marco


>Messaggio originale
>Da: [EMAIL PROTECTED]
>Data: 11-mar-2007 11.13 PM
>A: 
>Ogg: Re: [ns] Awk 
script for Jitter in NS2
>
>
>Regarding your second question, my 
understanding is that -Hs is the
>node at which the event is observed, 
and not necessarily the source.
>In receive events, -Hs is the node 
receiving the packet and hence
>Hs = Hd (the receiver is the observer 
of the event) and other
>subsequent fields will report the actual 
source.
>
>
>On Sun, 11 Mar 2007 18:01:43 -0400
>"Shaili Desai" 
<[EMAIL PROTECTED]> wrote:
>
>> 
>> Hello all
>> 
>> I wanted to 
know if anyone has used trace2stats v0.5b awk scripts for
>> wireless 
formats, and if you can explain me the jitter file in it. I
>> mean we 
have 4 different values of jitter, and the calculations in
>> the 
script dont explain me fully which jitter you would look for
>> finding 
out whats the jitter for that particular communication.
>> Can someone 
please help me for this?
>> It would be a great help.
>> Also, I had 
asked this que before,  I wanted to know during post
>> analysis 
generally we look at the AGT level right? But in my
>> simulations, I 
am getting AGT in 's' but if that AGT in 's' is for
>> lets say Hs-2 to 
Hd-0 then at receiving I m not getting r with Hs-2
>> and Hd-0, then 
does it mean ther is a flaw? Also I am getting r with
>> Hs and Hd both 
0.
>> 
>> Can anyone please help me with this.
>> 
>> Thanks in 
advance.
>
>




Re: [ns] Question about wireless testing ?

2007-03-19 Thread Marco Fiore


The output is correct. It's just some control messages
ns-2 gives at 
the beginning and end of simulation.
If you see "NS EXITING..." 
everything went fine and
you can find the results in your tracefile :)

bye,

Marco

>Original Message
>From: [EMAIL PROTECTED]
>Date: Mar 17, 2007 5:31 PM
>To: 
>Subj: [ns] 
Question about wireless testing ?
>
>
>Hi,
>I've a question about NS-
2.30:
>When I run some example about wireless (or wireless sensor) like 
: diffusion (in ns-2.30\tcl\ex or ns-2.30\tcl\ex\diffusion...)...I 
received the same result like this :
>  num_nodes is set 3
>warning: Please use -channel as shown in tcl/ex/wireless-
mitf.tcl
>INITIALIZE THE LIST xListHead
>
Loading connection pattern...
>Loading scenario file...
>Starting Simulation...
>channel.cc:sendUp - 
Calc highestAntennaZ_ and distCST_
>  highestAntennaZ_ = 1.5,  
distCST_ = 550.0
>SORTING LISTS ...DONE!
>NS 
EXITING...
>  I don't know this is right or wrong ?If wrong,can you 
help me to correct it ...?
>Thanks so much...!
>
>
>
> 
>-
>Be a PS3 game guru.
>Get your game 
face on with the latest PS3 news and previews at Yahoo! Games.
>




[ns] R: help about dataRate_ in Wlan needed!

2007-03-20 Thread Marco Fiore


Hi,

I can tell you that once I tried and could send data at 1Gbps 
over
wireless (just as a test) and the transmission rate was set 
accordingly.
Notice that by changing that you only affect the 
transmission time,
but still have all the overhead and contention due 
to 802.11.

bye,

Marco


>Messaggio originale
>Da: 
[EMAIL PROTECTED]
>Data: 20-mar-2007 2.28 PM
>A: 
>Ogg: [ns] help about dataRate_ in Wlan needed!
>
>
>Dear all,
>
>I change the dataRate_ to 100Mb to check whether the PHY 
data rate can be seted just by this.
>And the node is attached with an 
UDP agent with CBR traffic.
>And the results show that the throughput 
improved just 0.2Mbps,with the CBR rate 448Kb.
>Then I increased the 
CBR rate to 2Mb,the throughput didn't change.
>
>So is there anyone who 
has worked on this can tell me that how to make the IEEE802.11 PHY
>data rate supporting high speed.
>
>In my own opinion,it can be 
changed by this.Because I think this just affect the receiving time of 
packet!
>Any help would be appreciated!
>
>
>
>sincerely,
>
>wenping 
zhang
>07.03.20




[ns] R: problem in delay and throughput script

2007-03-23 Thread Marco Fiore


Ibrahim,

download the latest version from
http://reti.polito.it/fiore
and follow the read.me for instructions on how to run the scripts.

bye,

Marco


>Messaggio originale
>Da: [EMAIL PROTECTED]
com
>Data: 22-mar-2007 10.19 AM
>A: 
>Ogg: [ns] 
problem in delay and throughput script
>
>
>Hi all,
>  I have worked 
for  TRACE format .I have used  delay.awk,throughput.awk for my tcl 
progrm 
>It runs successfully for delay but not for thrpughput.
>for 
throughput error :
> awk: thrput.awk:44: (FILENAME=hybrid.tr 
FNR=122048) fatal: division by zero attempted
>while executing
> 
awk -f thrput.awk hybrid.tr > result.tr
>
>for delay
>  it runs 
successfully.But the problem is that the new file generated (.tr) is 
empty.The new file has not any data.
>   
>  # throughput.awk
>   BEGIN 
{
> recv = 0
> }
> {
> # Trace line format: normal
> if ($2 != "-t") {
> event = $1
> time = $2
> if (event == "+" || event 
== "-") node_id = $3
> if (event == "r" || event == 
"d") node_id = $4
> flow_id = $8
> 
pkt_id = $12
> pkt_size = $6
> }
> # 
Trace line format: new
> if ($2 == "-t") {
> 
event = $1
> time = $3
> node_id = $5
> flow_id = $39
> pkt_id = $41
> pkt_size = $37
> }
> # Calculate 
total received packets' size
> if (flow_id == flow && event == 
"r" && node_id == dst) {
> if (flow_t != "sctp") {
> recv += pkt_size - hdr_size
> #printf("recv[%g] = %g %g\n",node_id,pkt_size
>  -hdr_size,recv)
> } else {
> 
# Rip off SCTP header, whose size depends
> # 
on the number of chunks in each packet
>if 
(pkt_size != 448 && pkt_size != 864 && 
>  pkt_size != 1280) pkt_size = 
0
> if (pkt_size == 448) pkt_size = 400
> if (pkt_size == 864) pkt_size = 800
> if (pkt_size == 1280) pkt_size = 1200
> recv += pkt_size
> 
#printf("recv[%g] = %g --> tot: %
>  g\n",node_id,pkt_size,recv)
> }
> }
> }
> END {
> printf("%10g %10s 
%10g\n",flow,flow_t,(recv/simtime)*(8/1000))
> }
>
>  #Delay.awk
>BEGIN 
{
> for (i in send) {
> send[i] = 0
> }
> for (i in recv) {
> recv[i] = 0
> }
> delay = avg_delay = 0
> }
> {
> # Trace line format: 
normal
> if ($2 != "-t") {
> event = $1
> time = $2
> if (event == "+" || event 
== "-") node_id = $3
> if (event == "r" || event == 
"d") node_id = $4
> flow_id = $8
> 
pkt_id = $12
> }
> # Trace line format: new
> 
if ($2 == "-t") {
> event = $1
> time = 
$3
> node_id = $5
> flow_id = $39
> pkt_id = $41
> }
> # Store packets 
send time
> if (flow_id == flow && node_id == src && send
[pkt_id] == 0 && (event == "+" || event 
>  =="s")) {
> 
send[pkt_id] = time  
> }
> # Store packets 
arrival time
> if (flow_id == flow && node_id == dst && event 
== "r") {
> recv[pkt_id] = time
>}
> }
> END {
> # Compute average delay
> for (i in recv) {
> if (send[i] == 0) {
> printf
("\nError %g\n",i)
> }
> delay += recv
[i] - send[i]
> num ++
> }
> printf("%
10g ",flow)
> if (num != 0) {
> avg_delay = 
delay / num
> } else {
> avg_delay = 0
> }
> printf("%10g\n",avg_delay*1000)
>}
>   
>  thanks
>   
>  ibrahim
>
> 
>-
>Don't be 
flakey. Get Yahoo! Mail for Mobile and 
>always stay connected to 
friends.
>




[ns] R: analyse trace files

2007-04-06 Thread Marco Fiore


Hi Stephan,

have a look at tracegraph or trace2stats.

bye,

Marco


>Messaggio originale
>Da: [EMAIL PROTECTED]
>Data: 6-apr-
2007 7.37 AM
>A: 
>Ogg: [ns] analyse trace files
>
>
>Hello again!
>Think my last Mail was lost :-(
>I'm using ns-2.29 and 
do some wireless simulations.
>Now i'm looking for some scripts to 
analyse the .tr Files. Need some
>scripts that give me throughput, 
Number of lost/received packets and so
>on.
>Thanks in advance
>Stephan
>
>
>
>
>




[ns] R: why RTP header in UDP's sendmsg() ?

2007-04-06 Thread Marco Fiore


Hi Timo,

my guess is that those infos can be useful for
statistics 
collection. Is the RTP header considered
in the UDP header size? If 
not, it is an "invisible"
header, put there just for informational 
purposes
and not affecting the simulation outcome.

bye,

Marco


>
Messaggio originale
>Da: [EMAIL PROTECTED]
>Data: 4-apr-
2007 4.37 PM
>A: 
>Ogg: [ns] why RTP header in 
UDP's sendmsg() ?
>
>
>Hiya,
>
>I'm not sure if this issue rather 
belongs to the dev-mailinglist instead
>of the users' one but since 
it's just a question and not some sort of
>contribution I'll try here 
first:
>
>I've looked at the UDP code (in apps/udp.cc) and came to 
realize that
>everytime the sendmsg() function is called a RTP header 
is put on top of
>the packet, including (talk burst) flags, sequence 
number, and a time
>stamp.
>
>Just wondering: What's the rationale 
behind this?
>
>
>Cheers,
>
>--Timo
>
>




[ns] R: how can I graphically show ad hoc mobile nodes using nam?

2007-04-06 Thread Marco Fiore


Ciao,

other than nam, you can try with Huginn:
http://www.informatik.
uni-mannheim.de/pi4.data/content/projects/huginn/
or iNSpect:
http:
//toilers.mines.edu/Public/NsInspect

bye,

Marco


>Messaggio 
originale
>Da: [EMAIL PROTECTED]
>Data: 6-apr-2007 7.12 PM
>A: "ns-
users"
>Ogg: [ns] how can I graphically show ad hoc 
mobile nodes using nam?
>
>
>Hi All,
>I am new in NS world. I am 
running same tlc sample scripts and showing nodes and links using nam.
>Can anybody tell me, after having defined a topology of a mobile ad 
hoc network and having defined the node movement, how can I graphically 
show the network topology.
>Is it possible to see the node movement and 
the trasmission range?
>Thanks in advance for any reply,
>Seba
>
>
>--
>Leggi GRATIS 
le tue mail con il telefonino i-mode™ di Wind
>http://i-mode.wind.it/
>
>
>
>





[ns] R: analyse trace file- packet delay

2007-04-06 Thread Marco Fiore


Hi,

you can use Perl/awk to parse the tracefile,
or have a look at 
tracegraph or trace2stats
(google for them).

Also, you find a ton of 
mails on the topic in
the mailing list archives...

bye,

Marco


>
Messaggio originale
>Da: [EMAIL PROTECTED]
>Data: 6-apr-2007 6.18 PM
>A: 
>Ogg: [ns] analyse trace file- packet delay
>
>
>Hello,
>
>I am new to NS2.
>
>I want to find packet delay from node 2 
to node 3. Topology is like
>
>2-
0--1---3
>
>0-1 is a 
bottleneck link
>
>I got the output trace file of format (sample)
>
>r 
4.030256 10 1 ack 40 --- 5 10.0 5.0 74 579
>+ 4.030256 1 0 ack 40 
--- 5 10.0 5.0 74 579
>- 4.030256 1 0 ack 40 --- 5 10.0 5.0 74 
579
>r 4.031008 4 0 tcp 1040 --- 4 4.0 9.0 69 578
>+ 4.031008 0 1 
tcp 1040 --- 4 4.0 9.0 69 578
>- 4.031008 0 1 tcp 1040 --- 4 
4.0 9.0 69 578
>r 4.031824 0 4 ack 40 --- 4 9.0 4.0 66 560
>+ 
4.031824 4 0 tcp 1040 --- 4 4.0 9.0 77 593
>- 4.031824 4 0 tcp 1040 
--- 4 4.0 9.0 77 593
>r 4.031872 1 11 tcp 1040 --- 6 6.0 11.0 
41 552
>
>now I have to find minimum/maximum/average Packet delay from 
node 2 to node3?
>Please tell me the idea.
>
>Thanks
>Rinky
>
>
>




[ns] R: Help in simulating Bianchi's results

2007-04-12 Thread Marco Fiore


Hi Riz,

>1. I am not sure about how to generate a scenario where all 
the
>nodes are contending as in my case of 10 nodes only 0 2 4 6 8 are
>contending and the other 1 3 5 7 9 are the sink or them so how can I
>come with a scenario where all nodes are coteding as in Bianchi's 
paper

attach one traffic source and one traffic sink to each node.

>2. whether cbr interval 0.005 can meet the saturation requirement

you 
are in saturation conditions when each node generates
more traffic than 
it can send. Broadly, it depends on the bandwidth
you are using and one 
the number of contending nodes, but you
can choose a very high value, 
so that even a single source would
saturate the channel (e.g. if you 
are using 11Mbps as MAC datarate,
you can set the CBR rate to 11Mbps, 
and you're sure your nodes
are backlogged).

>3. I cannot see any RTS 
and CTS in the trace file why?

because they are off. RTSthreshold_ 
controls the RTS/CTS
(frames smaller than this value go without 
RTS/CTS, frames
bigger require RTS/CTS, defualt is 3000 - i.e. never 
use it),
so the try adding the line
$val(mac) set RTSthreshold_ 0

bye,

Marco


>Messaggio originale
>Da: [EMAIL PROTECTED]
>Data: 11-apr-2007 10.27 AM
>A: "isi"<[EMAIL PROTECTED]>
>Ogg: [ns] Help 
in simulating Bianchi's results
>
>
>Hi,
> 
>I am new to Ns and am 
trying to simulate the results for the paper:
> 
>G. Bianchi, 
"Performance Analysis of the IEEE 802.11 Distributed
>Coordination 
Function,"IEEE JSAC, vol. 18, no. 3, March 2000 
> 
>My script is given 
below when I am running it with DumbAgent as the
>routing protocol I 
don't see any activity in the trace file and the
>throughput is zero 
but with a routing protocol I can get some throughput
>and I understand 
why this is happening but I don't get why my script
>with dumbagent is 
not working. I am using the parameters from Bainchi's
>paper
> 
>I have 
a few questions:
> 
>1. I am not sure about how to generate a scenario 
where all the
>nodes are contending as in my case of 10 nodes only 0 2 
4 6 8 are
>contending and the other 1 3 5 7 9 are the sink or them so 
how can I
>come with a scenario where all nodes are coteding as in 
Bianchi's paper
>2. whether cbr interval 0.005 can meet the saturation 
requirement
>3. I cannot see any RTS and CTS in the trace file why?
> 
> 
># Script to reproduce the results of Bianchi's paper
># 
==
># Define options
># 
==
>set val(chan)   Channel/WirelessChannel;# channel type
>set val(prop)Propagation/FreeSpace  ;# radio-
propagation
>model
>set val(netif)
Phy/WirelessPhy;# network
>interface type
>set val
(mac)Mac/802_11 ;# MAC type
>set val
(ifq)  Queue/DropTail/PriQueue;# interface queue
>type
>set val(ll)LL ;# link layer 
type
>set val(ant) Antenna/OmniAntenna;# antenna 
model
>set val(ifqlen)  50 ;# max 
packet in ifq
>set val(nn)  10  ;# 
default number
>of mobilenodes
>set val(rp)   
DumbAgent ;# routing protocol
>DumbAgent
>set val
(x)   100.0   ;
>set val
(y)   100.0   ;
>set val
(simtime)  30.0; #sim time 600
> 
># 
==
># Main Program
># 
==
>set ns_ [new Simulator]
>set tracefd [open bianchi.tr 
w]
>$ns_ trace-all $tracefd
> 
>set namtrace [open bianchi.nam 
w]   ;# for nam tracing
>$ns_ namtrace-all-wireless $namtrace 
$val(x) $val(y)
>#$ns_ use-newtrace
> 
>#
># set up topography object
>#
> 
>set topo   [new Topography]
>$topo load_flatgrid $val(x) $val
(y)
> 
>#
># Create God
>#
> 
>set god_ [ create-god $val(nn) ]
> 
># 
Parameters for 802.11
>$val(mac) set SlotTime_ 0.50
>$val(mac) set 
SIFS_ 0.28
>$val(mac) set PreambleLength_ 0
>$val(mac) set 
PLCPHeaderLength_ 128
>$val(mac) set PLCPDataRate_ 1.0e6
>$val(mac) set 
DIFS_ 0.000128
>$val(mac) set dataRate_ 1.0e6
>$val(mac) set basicRate_ 
1.0e6
>$val(mac) set CWMin_ 31
>$val(mac) set CWMax_ 255
>#$val(mac) 
set RTShreshold_ 3000
> 
>set chan_1_ [new $val(chan)]
> 
>set rng [new 
RNG]
>$rng seed 1
>set rand1 [new 
RandomVariable/Uniform]
>$rand1 use-rng $rng
>$rand1 
set min_ -50.0
>$rand1 set max_ 50.0
> 
>#
>#  Create the 
specified number of nodes 
>#  configure node
> 
> 
>$ns_ node-
config -adhocRouting $val(rp) \
> -
llType $val(ll) \
> -macType $val
(mac) \
>  

[ns] R: Simulation with real payload

2007-04-14 Thread Marco Fiore


Anand,

there's a traffictrace agent somewhere in the ns distribution.
Look for traffictrace.cc/h in the source tree to get the actual
Tcl 
class name.

Marco


>Messaggio originale
>Da: [EMAIL PROTECTED]
>Data: 12-apr-2007 3.54 AM
>A: <[EMAIL PROTECTED]>
>Ogg: [ns] Simulation 
with real payload
>
>
>Hi,
>
>Can anyone please tell me if it is 
possible with NS2 to give an input file as
>real payload for the 
simulation traffic like video files?
>
>Thanks,
>Anand
>
>




[ns] R: Scheduler error in 802.11

2007-05-07 Thread Marco Fiore


Bahman,

ususally the "Event UID not valid!" error means that an event
in the event list has a time that is lower than the current time,
or 
that the handler (the timer in your case) was deleted before
the event 
was extracted from the list.

So I suggest you to look for strange 
behaviors of your code,
which may cause the event to be scheduled with 
a negative
time.

hope this helps,

Marco


>Messaggio 
originale
>Da: [EMAIL PROTECTED]
>Data: 4-mag-2007 5.30 PM
>A: 

>Ogg: [ns] Scheduler error in 802.11
>
>
>Hi,
>
>I'm 
simulating a simple wireless (802.11b Basic Mode) experiment.  At the 
>end of the
>simulation, I get this error:
>
>   "Scheduler: Event UID 
not valid!"
>
>I understand that the message is being initiated from 
>/ns/common/scheduler.cc file line 93 only because the UID of an event 
is 
>positive. In other words, an event with positive UID cannot be 
scheduled 
>again.
>
>Now, I'm using a timer to introduce a fixed delay 
for each packet -either 
>control or data packet- passing through the 
interface layer.  When I 
>introduce 1 to 39us of delay to my system, 
the simulation works perfectly 
>and as expected (i.e. there is a fixed 
delay for the transmission of each 
>packet reflected into my trace 
file).  However, when I increase this delay 
>to 40us and above, then  
run the simulation I get the above error.  I have 
>adjusted the 
timeouts in the ns/mac/mac-802_11.cc as well so that my packets 
>are 
not all dropped.
>
>Please let me know if you have any ideas or 
thoughts about this.  Where do 
>you think I should look at first?  
What could the problem be?
>
>Thanks,
>
>Bahman
>
>_
>Txt 
a lot? Get Messenger FREE on your mobile.  
>https://livemessenger.
mobile.uk.msn.com/
>
>




[ns] R: Re: About random mobility of wireless nodes

2007-09-28 Thread Marco Fiore


Hi,

it happened to me to use nam to visualize nodes movement,
and I 
had no problems in doing that. These are the settings
I used:

set file
(nam) [open "out.nam" w]
$ns_ namtrace-all $file(nam)
$ns_ namtrace-all-
wireless $file(nam) $opt(x) $opt(y)
$ns_ nam-end-wireless $opt(stop)

Hope it helps.

bye,

Marco


>Messaggio originale
>Da: 
[EMAIL PROTECTED]
>Data: 27-set-2007 3.13 PM
>A: 
>Ogg: 
Re: [ns] About random mobility of wireless nodes
>
>
>HI Gabrial,
>
>I 
am not sure if nam is the perfect way to look at your wireless
>scenario. As far as I know, nam is not really supporting motion...
>
>Also, do you have the following line in you node-config?
>
>$ns_ node-
config -movementTrace ON
>
>Hope that helps.
>
>Claus
>
>Gabrial Monty 
wrote:
>> Hi all,
>>
>>   I am trying to simulate the an ad hoc 
network using the random mobility model for the wireless nodes. I have 
enabled the random motion as follows:
>>
>>   $node_($i) random-
motion 1
>>   $node_($i) start
>>
>>   It works and give me results 
(eagrding the aggregate throughput) but the mobility of nodes and the 
generated traffic are not captured or recorded in the nam trace, where 
the nodes are appear static and no traffic is shown. I have added the 
following line:
>>
>>   $node_($i) namattach $namtrace
>> 
>>
>>   but nothing change, How can I make nam display the exact scenario 
with the mobility of nodes? 
>>
>>   thanx in advance for your 
help.
>> 
>>
>> -
>> Take the 
Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos & more. 
>
>-- 
>Claus Christmann
>Graduate Research Assistant
>
>Georgia Institute of Technology
>270 Ferst Drive
>Atlanta, GA 30332-
0150
>
>http://uav.ae.gatech.edu
>
>




[ns] R: R: Re: About random mobility of wireless nodes

2007-09-29 Thread Marco Fiore


Hi,

I never used the "built-in" random mobility, but movement
traces 
generated outside ns-2. You could have a look at
tools like iNSpect and 
Huginn to visualize nodes movement
from ns-2 traces.

bye,

Marco


>Messaggio originale
>Da: [EMAIL PROTECTED]
>Data: 29-set-
2007 8.53 AM
>A: "ns-users"
>Cc: "Marco Fiore"
<[EMAIL PROTECTED]>
>Ogg: [ns] R: Re:  About random mobility of 
wireless nodes
>
>Hi,
>   
>  This method works and it is fine, however 
in my case when I set the random mobility to 1 for the wireless nodes 
nothing is displayed in nam. Although when I log the nodes movements 
the trace file show me that the nodes locations is changing with time, 
but I cannot see that on nam for this case only.
>   
>  Regards,
>   
>  Gaby
>   
>   
>  
==
>  Marco 
Fiore <[EMAIL PROTECTED]> wrote:
>   
>  Hi,
>
>it happened to me to 
use nam to visualize nodes movement,
>and I 
>had no problems in doing 
that. These are the settings
>I used:
>
>set file
>(nam) [open "out.
nam" w]
>$ns_ namtrace-all $file(nam)
>$ns_ namtrace-all-
>wireless 
$file(nam) $opt(x) $opt(y)
>$ns_ nam-end-wireless $opt(stop)
>
>Hope it 
helps.
>
>bye,
>
>Marco
>
>
>>Messaggio originale
>>Da: 
>[EMAIL PROTECTED]
>>Data: 27-set-2007 3.13 PM
>>A: 
>>Ogg: 
>Re: [ns] About random mobility of wireless nodes
>>
>>
>>HI 
Gabrial,
>>
>>I 
>am not sure if nam is the perfect way to look at your 
wireless
>>scenario. As far as I know, nam is not really supporting 
motion...
>>
>>Also, do you have the following line in you node-config?
>>
>>$ns_ node-
>config -movementTrace ON
>>
>>Hope that helps.
>>
>>Claus
>>
>>Gabrial Monty 
>wrote:
>>> Hi all,
>>>
>>>   I am 
trying to simulate the an ad hoc 
>network using the random mobility 
model for the wireless nodes. I have 
>enabled the random motion as 
follows:
>>>
>>>   $node_($i) random-
>motion 1
>>>   $node_($i) 
start
>>>
>>>   It works and give me results 
>(eagrding the 
aggregate throughput) but the mobility of nodes and the 
>generated 
traffic are not captured or recorded in the nam trace, where 
>the 
nodes are appear static and no traffic is shown. I have added the 
>following line:
>>>
>>>   $node_($i) namattach $namtrace
>>> 
>>>
>>>   but nothing change, How can I make nam display the exact 
scenario 
>with the mobility of nodes? 
>>>
>>>   thanx in advance 
for your 
>help.
>>> 
>>>
>>> -
>>> Take the 
>Internet to Go: Yahoo!Go puts the Internet in your 
pocket: mail, news, 
>photos & more. 
>>
>>-- 
>>Claus Christmann
>>Graduate Research Assistant
>>
>>Georgia Institute of Technology
>>270 Ferst Drive
>>Atlanta, GA 30332-
>0150
>>
>>http://uav.ae.gatech.
edu
>>
>>
>
>
>
>   
>-
>Boardwalk 
for $500? In 2007? Ha! 
>Play Monopoly Here and Now (it's updated for 
today's economy) at Yahoo! Games.




[ns] R: Re: "Ask Google" is not a polished answer, isn't it?

2008-04-28 Thread Marco Fiore


Dear Sidney and Hagen,

actually there's a way to include "real" 
application-level data in an ns-2 packet.
The manual has one section on 
this: http://www.isi.edu/nsnam/ns/doc/node516.html
Basically, it's all 
about defining an Application Data Unit (ADU) containing all the
desired data, to be attached to the basic packet.

bye,

Marco




[ns] R: throughput of 802.11b

2008-05-12 Thread Marco Fiore


You might find the following link interesting:

http://www.ece.rice.
edu/~jpr/ns/docs/ns-802_11b.html

bye,

Marco


>Messaggio 
originale
>Da: [EMAIL PROTECTED]
>Data: 11-mag-2008 10.46 AM
>A: 

>Ogg: [ns] throughput of 802.11b
>
>
>Hi all,
>I 
have tried to run 802.11b in ns2, and I use the following setting:
>
Mac/802_11 setSlotTime_0.20;# 20us
>
Mac/802_11 setSIFS_0.10;# 10us
>
Mac/802_11 setPreambleLength_  144 ;# 144 bits
>
Mac/802_11 setPLCPHeaderLength_48  ;# 48 bits
>
Mac/802_11 setPLCPDataRate_1.0e6   ;# 1 Mbps
>
Mac/802_11 setdataRate_11.0e6  ;# 11 Mbps
>
Mac/802_11 setbasicRate_   1.0e6   ;# 1 Mbps
> 
>However, it turns out that the actually achieved throughput of a 
tcp connection and a cbr connection is around 1.34Mbps and 3Mbps 
respectively, can anyone tell me why?
>
>Thanks in advance!
> 
> 




[ns] Loading a large movement trace file

2005-12-22 Thread Marco Fiore

Hi all,

I am experienceing the following problem:
I have a large 
movement trace file (around
200 nodes whose speed is updated every 0.5s
for 2000s of simulation), which is 40Mb in size
(evry line of the file 
is a setdest command).

When I run the simulation, it takes a very
long 
time (I do not know how much, I stopped
it after 30 mins)  after the 
"INITIALIZE THE
LISTHEAD xListHead" message is displayed
and before the 
actual start of simulation
(i.e. simulatied time 0 is not reached).

I 
think this is due to the large movement trace
file, but I am not sure, 
and I do not know what
to do to avoid that.

Does anyone have any idea 
about how to get
rid of such a problem, or any experience with
similar 
issues?

Thanks,

Marco Fiore



[ns] R: Delay anomaly

2006-01-05 Thread Marco Fiore

Teena,

please provide more details when posting to the mailing list.
Information about the topology and traffic sources are needed
in order 
to help you.

Regards,

Marco Fiore

Messaggio originale
Da: 
[EMAIL PROTECTED]
Data: 5-gen-2006 6.48 AM
A: 
Ogg: 
[ns] Delay anomaly


Hello all,
   I was trying to find out the 
delay distribution (MAC layer).I am
doing the experiment for different 
data rates.The delay with
200kbps datarate is found to be more than 
that with 400kbps.ie.
When u repeat the same experiment,the delay is 
concentrated on a
higher value for 200kbps. What can be the problem? Is 
there any
explanation for that?
Thanks in advance.
Teena.









[ns] R: TCP for wirelessTcp for

2006-01-16 Thread Marco Fiore

Mime-Version: 1.0
Content-Type: text/plain;charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Originating-IP: 130.192.3.16

Dario,

TCP (in all of its versions) has well
known flaws when employed
in wireless environment, which is
usually characterized by high
error 
rates.
This is due to the way TCP
reacts to packet losses, which
it 
assumes due to congestion
and not medium unreliability.

Thus, there is 
no particolar
version of TCP which is more
suitable for wireless 
networks,
unless you
 - consider some ad-hoc
   modifications which 
have
   been proposed by several
   researchers, but which
   are not 
standard and probably
   not implemented in ns-2.
 - use an error free 
channel,
   which is not realistic, but
   makes TCP works a lot 
better.

Regards,

Marco Fiore

Messaggio originale
Da: 
[EMAIL PROTECTED]
Data: 15-gen-2006 3.48 PM
A: 
Ogg: [ns] Tcp for
wireless simulation


Hi,

can someone suggest me 
which Agent Tcp is
the more suitable for wireless
simulation?

Thanks.



[ns] R: 802.11 simulating

2006-01-20 Thread Marco Fiore

The number of transmissions is not sufficient to determine
the cause of 
such a high number of collisions. Several
other parameters are 
necessary: simulation time,
transmission range of nodes, use of 
RTS/CTS,
802.11 CWND min and max sizes, etc.

Regards,

Marco Fiore

Messaggio originale
Da: [EMAIL PROTECTED]
Data: 19-gen-2006 4.25 
PM
A: 
Ogg: [ns] 802.11 simulating


Hi all!
I´m 
simulating a sensor network, with 100 nodes in a 1000x1000 scenario,
but I´ve a terrible number of collisions:
47935 in 19905 messages 
sent...
The packet is 52 byte long.
I use the 802.11 with ns2.28
Someone have some tricks?
Or someone can help me to understand the 
reason?
Maybe I have to configure better some parameters?

Many 
thanks!!






Re: [ns] 802.11g - doubt in ns-2.29

2006-01-23 Thread Marco Fiore

Tamara,

what do you mean by "did not work"?
Did you get error 
messages, or unexpected
results?

Regards,

Marco Fiore


Original 
Message
From: [EMAIL PROTECTED]
Date: Jan 23, 2006 2:36 AM
To: 

Subj: [ns] 802.11g - doubt in ns-2.29


Hi all!

*
  
I'm doing a kind of project in ns-2.29 wired cum wireless with 802.11g.
Everything is working fine, but i couldn't make it work with a datarate 
of
54mb and a cbr of 54mb. Do you have any idea what is happening? May 
I change
something in C++ code to make it work? Or just configure some 
parameters in
tcl code?
I would be really glad if you help me.

there 
are some things that i tried, but didn't work out.*

Mac/802_11 *set* 
CWMin15
Mac/802_11 *set* CWMax
1023
Mac/802_11 *set* SlotTime_0.09
Mac/802_11 
*set* CCATime_ 0.03
Mac/802_11 *set* 
RxTxTurnaroundTime_  0.02
Mac/802_11 *set* 
SIFS_0.16
Mac/802_11 *set* 
PreambleLength_  96
Mac/802_11 *set* PLCPHeaderLength_
40
Mac/802_11 *set* PLCPDataRate_6.0e6
*#define 
DSSS_MaxPropagationDelay0.005   // 0.5us*

*this is the 
topology of my network *
*# w(0)   w(1)  *
*#  \  | *
*#   
\ |  *
*# \   |  *
*#  \  |  *
*#   \ |   *
*#
\|  *
*#w(2)*
*# |*
*# |*
*# BS*
*#/|*
*#   / |   *
*#  /  | *
*# /   | *
*#/
| *
*#  /  |  *
*# n(0)   n(1) *
*#*
*# w(i): Wired nodes*
*# BS: 
base station*
*# n(i): Wireless nodes

Thank's in advance
Tamara Rosini
*





[ns] R: Re: 802.11g - doubt in ns-2.29

2006-01-23 Thread Marco Fiore

Tamara,

it seems strange to me that changing only datarate and 802.11 
parameters can cause
the simulation to stop. Does your code works with 
standard 802.11 configuration?
Did you change anything else?

Regards,

Marco Fiore

Messaggio originale
Da: [EMAIL PROTECTED]
Data: 23-gen-2006 12.16 PM
A: "Marco Fiore"<[EMAIL PROTECTED]>
Cc: 
Ogg: Re: [ns] 802.11g - doubt in ns-2.29

Hi,

 Actually 
i had two problems, at first appeared this message "Scheduler::
Event 
UID not valid!", I found an answer about this error in this website
http://web.syr.edu/~dchen02/FAQ.txt
<http://web.syr.edu/%7Edchen02/FAQ.
txt>and the tcl configuration for
802.11g. Later the changes in tcl 
code my computer just stopped ( I had
close the shell) , i tried to 
process the code in another machine but the
same result was seen.

ps: 
my cbr protocol is UDP

Thank's in  advance
Tamara Rosini


2006/1/23, 
Marco Fiore <[EMAIL PROTECTED]>:
>
> Tamara,
>
> what do you mean by 
"did not work"?
> Did you get error
> messages, or unexpected
> 
results?
>
> Regards,
>
> Marco Fiore
>
>
> Original
> Message
> From: [EMAIL PROTECTED]
> Date: Jan 23, 2006 2:36 AM
> To:
> 
> Subj: [ns] 802.11g - doubt in ns-2.29
>
>
> Hi all!
>
> *
>
> I'm doing a kind of project in ns-2.29 wired cum wireless with 
802.11g.
> Everything is working fine, but i couldn't make it work with 
a datarate
> of
> 54mb and a cbr of 54mb. Do you have any idea what is 
happening? May
> I change
> something in C++ code to make it work? Or 
just configure some
> parameters in
> tcl code?
> I would be really 
glad if you help me.
>
> there
> are some things that i tried, but 
didn't work out.*
>
> Mac/802_11 *set*
> CWMin15
> 
Mac/802_11 *set* CWMax
> 1023
> Mac/802_11 *set* 
SlotTime_0.09
> Mac/802_11
> *set* 
CCATime_ 0.03
> Mac/802_11 *set*
> 
RxTxTurnaroundTime_  0.02
> Mac/802_11 *set*
> 
SIFS_0.16
> Mac/802_11 *set*
> 
PreambleLength_  96
> Mac/802_11 *set* PLCPHeaderLength_
> 40
> 
Mac/802_11 *set* PLCPDataRate_6.0e6
> *#define
> 
DSSS_MaxPropagationDelay0.005   // 0.5us*
>
> *this is 
the
> topology of my network *
> *# w(0)   w(1)  *
> *#  \  | *
> *#
> \ |  *
> *# \   |  *
> *#  \  |  *
> *#   \ |   
*
> *#
> \|  *
> *#w(2)*
> *# |*
> *# |*
> 
*# BS*
> *#/|*
> *#   / |   *
> *#  /  | *
> 
*# /   | *
> *#/
> | *
> *#  /  |  *
> *# n(0)   n(1) *
> 
*#*
> *# w(i): Wired nodes*
> *# BS:
> base station*
> *# n(i): 
Wireless nodes
>
> Thank's in advance
> Tamara Rosini
> *
>
>
>
>





[ns] R: lower RTS/CTS saturation throughput

2006-01-30 Thread Marco Fiore

Michael,

it may be that increasing the data rate to 5,5 or 11 Mbps
the 
number of collisions is reduced a lot. As a consequence,
the RTS/CTS 
mechanism only introduces overhead.
This depend on the offered load (i.
e. how much traffic
is present) in the network.

Regards,

Marco Fiore

Messaggio originale
Da: [EMAIL PROTECTED]
Data: 30-gen-2006 
11.55 AM
A: 
Ogg: [ns] lower RTS/CTS saturation 
throughput


 Hello ns users,
  I have a question regarding 
saturation throughput in a  wireless lan.
  I am examining both 
basic access and rts/cts mechanisms and measure the
  saturation 
throughput as the number of nodes participating in the network 
increases. 
  
  I noticed that for 1Mbps channel rate the 
rts/cts access  scheme gives better throughput results compared with 
the basic access scheme.I think that  this behavior is expected as the 
rts/cts mechanism reduces the number of  collisions.
  However when 
I assume 5.5Mbps and 11 Mbps channel rate the  throughput results that 
I am getting   from the ns-2 simulation are a lot lower than  the 
corresponding ones from the basic access scheme( for   5.5Mbps  and 11 
Mbps )
  Is this behavior normal?
   To change the channel 
data rate I have put in my tcl script:
   Mac/802_11 set 
dataRate_ 11.0e6   ;#  11Mbps or 5,5 Mbps
  Mac/802_11 set  
basicRate_ 1.0e6  ;# 1 Mbps
   Is the basicRate correct?
   Has anyone else experienced something similar?
  I am 
waiting for your opinions,
  Thank you for your attention,
  Regards,
   Michael



-
 Χρησιμοποιείτε Yahoo!
 Βαρεθήκατε τα 
ενοχλητικά μηνύ ματα (spam); Το Yahoo! Mail διαθέτει την καλύτερη 
δυνατή προστασία κατά των ενοχλητικών μηνυμάτων 
 http://login.yahoo.
com/config/mail?.intl=gr 




[ns] R: HELP - I am stuck on MAC queue length

2006-01-31 Thread Marco Fiore

This happens because the 'target_' attribute is a NsObject (superclass 
of many
ns-2 classes), to guarantee maximum code flexibility. You 
should:
1. cast the 'target_' to the desired class, e.g.

targetActualClass *targetPointer =  (targetActualClass *) this-
>target_;
2. access 'target_' downtarget_ attribute. I am not sure you 
can
do this directly, since 'downtarget_' is probably a protected 
mamber.
Thus, you should code an accessor function (if not present) 
or
 define the aodv class as a friend of the 'target_' class.

Regards,

Marco Fiore

Messaggio originale
Da: 
[EMAIL PROTECTED]
Data: 30-gen-2006 5.52 PM
A: 
Ogg: [ns] HELP - I am stuck on MAC queue length


Dear ns2 users,

I 
really need your help. I'm completely stuck on the following:

I need 
to access the IFq length from my Routing Agent. Since the routing I 
adopted is the AODV one, I have no more layers (e.g. IMEP) to consider. 
So, 
FROM THE AODV.CC code, according to the structure of the mobile 
node as 
depicted in the ns2 manual, I should achieve my target by 
inserting the 
following line... Given this the pointer to the aodv 
agent,

int queued_packets = this->target_->downtarget_->length().

Well, it doesn't work. The compilation doesn't give positive results 
and the 
error it gives is the following:
aodv/aodv.cc:1033: error: 
'class NsObject' has no member named 'downtarget_'

??

Any replay 
with suggestion is really welcome.

Thank you in advance. I hope you 
can help me.

_
Charla con tus amigos en línea mediante MSN Messenger: 
http:
//messenger.latam.msn.com/






[ns] R: Re: R: lower RTS/CTS saturation throughput

2006-01-31 Thread Marco Fiore

Zubair,

this is what I meant when considering
the offered load.

However, I am not completely sure
about the TCP behavior you described, 
since
the random backoff of 802.11 should prevent
one station (even 
with a lot more traffic to send)
from having higher access than others.
If all stations behave identically, having FTP/TCP
or CBR/UDP 
saturating traffic should not change
things much.

Of course, things 
could change in presence of
high channel error rates, which are known 
to lead
to TCP low performance.

Regards,

Marco Fiore

Messaggio 
originale
Da: [EMAIL PROTECTED]
Data: 31-gen-2006 3.29 AM
A: 
"Marco Fiore"<[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>, 
Ogg: Re: [ns] R:  lower RTS/CTS saturation throughput

Marco,

Won't the traffic type also be of significance in such a case. 
While CBR/UDP will be constantly sending packets at a fixed rate, 
FTP/TCP will be aggressively trying to send in as many packets as 
possible for every round trip time. As you said, the offered load is 
thus certainly a factor.
If TCP is used, then we observe that fairness 
becomes an issue as a particular flow almost captures the whole channel 
- specially if there are exposed nodes in the network. This flow does 
not allow the net throughput of the network to increase. With the RTS-
CTS turned on, the exposed node continually senses the neighboring node 
to be sending Data packets and more often than not is not able to 
transmit its own RTS/CTS pkt. In such a scenario the basic access 
scheme does give a greater throughput. 

Your point of RTS-CTS packets 
generating extra overhead is also certainly very relevant in this 
scenario.   

Zubair

On Mon, 30 Jan 2006 Marco Fiore wrote :
>
>Michael,
>
>it may be that increasing the data rate to 5,5 or 11 Mbps
>the
>number of collisions is reduced a lot. As a consequence,
>the 
RTS/CTS
>mechanism only introduces overhead.
>This depend on the 
offered load (i.
>e. how much traffic
>is present) in the network.
>
>Regards,
>
>Marco Fiore
>
>Messaggio originale
>Da: 
[EMAIL PROTECTED]
>Data: 30-gen-2006
>11.55 AM
>A: 
>Ogg: [ns] lower RTS/CTS saturation
>throughput
>
>
>  Hello ns 
users,
>   I have a question regarding
>saturation throughput in a  
wireless lan.
>   I am examining both
>basic access and rts/cts 
mechanisms and measure the
>   saturation
>throughput as the number of 
nodes participating in the network
>increases.
>
>   I noticed 
that for 1Mbps channel rate the
>rts/cts access  scheme gives better 
throughput results compared with
>the basic access scheme.I think that  
this behavior is expected as the
>rts/cts mechanism reduces the number 
of  collisions.
>   However when
>I assume 5.5Mbps and 11 Mbps 
channel rate the  throughput results that
>I am getting   from the ns-2 
simulation are a lot lower than  the
>corresponding ones from the basic 
access scheme( for   5.5Mbps  and 11
>Mbps )
>   Is this behavior 
normal?
>To change the channel
>data rate I have put in my 
tcl script:
>Mac/802_11 set
>dataRate_ 11.0e6   ;#  
11Mbps or 5,5 Mbps
>   Mac/802_11 set
>basicRate_ 1.0e6  ;# 1 
Mbps
>Is the basicRate correct?
>Has anyone 
else experienced something similar?
>   I am
>waiting for your 
opinions,
>   Thank you for your attention,
>   Regards,
>Michael
>
>
>
>-
>  Χρησιμοποιείτε Yahoo!
>  Βαρεθήκατε τα
>ενοχλητικά μηνύ ματα (spam); Το Yahoo! Mail 
διαθέτει την καλύτερη
>δυνατή προστασ
ία κατά των ενοχλητικών μηνυμάτων
>  http:
//login.yahoo.
>com/config/mail?.intl=gr
>
>


Mohammad Zubair Ahmad
PhD Student, Computer Engineering
University of Central Florida,
Orlando, FL 32826




[ns] R: help with trace file

2006-02-03 Thread Marco Fiore

Sita,

have a look to the ns-manual, and you'll find all infos on 
tracefiles format.

Regards,

Marco Fiore

>Messaggio originale
>Da: [EMAIL PROTECTED]
>Data: 3-feb-2006 4.45 AM
>A: "ns list"
>Ogg: [ns] help with trace file
>
>
>Hello,
>I am trying 
to collect some data from the ns-2 trace file to tabulate
>results. I 
am using the new wireless trace format. I have agent, router
>and mac 
trace set to ON in my tcl file. I am using AODV as my routing
>protocol.
>However, I do not see any MAC address information or packet 
ID or unique
>ID that I can use to calculate throughput, delay etc. 
Sample trace is as
>follows:
>
>s -t 46.0 -Hs 50 -Hd -2 -Ni 50 -
Nx 0.00 -Ny 50.00 -Nz 0.00 -Ne
>198.231428 -Nl AGT -Nw ---  [0.00 0 0] -
Is 50.0 -Id 51.0 -It tcp -Il 40
>-If 2 -Ii 1 -Iv 32 -Pn tcp -Ps 0 -Pa 0 
-Pf 0 -Po 0
>r -t 46.0 -Hs 50 -Hd -2 -Ni 50 -Nx 0.00 -Ny 50.00 -
Nz 0.00 -Ne
>198.231428 -Nl RTR -Nw ---  [0.00 0 0] -Is 50.0 -Id 51.0 -
It tcp -Il 40
>-If 2 -Ii 1 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 0 -Po 0
>s -t 
46.0 -Hs 50 -Hd -2 -Ni 50 -Nx 0.00 -Ny 50.00 -Nz 0.00 -Ne
>198.
231428 -Nl RTR -Nw ---  [0.00 0 0] -Is 50.255 -Id -1.255 -It AODV -Il
>48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 3 -Pd 51 -Pds 0 -Ps 50
>-Pss 8 -Pc REQUEST
>s -t 46.04532 -Hs 7 -Hd -2 -Ni 7 -Nx 1.00 -Ny 
100.00 -Nz 0.00 -Ne
>198.137611 -Nl MAC -Nw ---  [0.12 7 50]
>
>Any 
help appreciated.
>Thanks,
>Sita
>
>




[ns] R: Can we get rid of TCP in wireless?

2006-02-05 Thread Marco Fiore


> It seems that all the wireless network simulation examples in ns 
tutorials
>adopt such a format: "app->TCP/UDP->routing->MAC->PHY". 
However, there
>is no transport protocol in real wireless 
implementations. Is it possible 
>to get rid of TCP/UDP and connect 
application directly to the routing?

Actually, a transport protocol 
*is* present in real wireless implementations.
Moreover that protocol 
is often TCP, without which you could not perform
any task requiring 
reliable data transfer (e.g. internet browsing, file sharing).
Maybe 
you mean that in your simulation you do not need reliability at
transport layer: in that case it is sufficient to use the UDP 
protocol... you
can do that simply changing the level 4 protocol from 
TCP to UDP...

Regards,

Marco Fiore



[ns] R: MAC protocol

2006-02-05 Thread Marco Fiore


>I'd like also to check, and maybe to change the size of the  
>contention window in 802_11,
>but I can't find it.

Check tcl/lib/ns-
default.tcl, where all the default values for tcl-configurable
parameters are listed. You can find there the default settings for 
CWmin
and CWmax, and you can override them in your tcl script using the 
same
commands.

Regards,

Marco Fiore



[ns] R: IP_BROADCAST problem

2006-02-07 Thread Marco Fiore

Dan,

which command did you use to send the message to the IP layer?
An 
through which transport level protocol?

Marco Fiore

>Messaggio 
originale
>Da: [EMAIL PROTECTED]
>Data: 6-feb-2006 7.27 PM
>A: 
>Ogg: [ns] IP_BROADCAST problem
>
>
>Hello,
> 
>I am 
trying to implement some route-discovery mechanism in ns2, at the
>application layer. This requires me to send some broadcast packets. I 
set
>the IP destination address to IP_BROADCAST and I get the following 
error:
> 
>__
>
>--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
>
> _o15: no target for slot -1
>
> _o15 type: Classifier/Hash/Dest 
content dump:
>
> classifier _o15
>
> 0 offset
>
> 0 shift
>
> 
2147483647 mask
>
> 1 slots
>
> slot 1: _o106 (Classifier/Port)
>
> -1 
default
>
> -- Finished standard no-slot{} default handler 
--
>
>
>
> 
>
>Is there something I am missing? Thank you for your help,
>
>Dan
>
>




[ns] R: large-scale p2p simulation

2006-02-09 Thread Marco Fiore

I really doubt that *any* existing network simulator could be a good 
one
if you need to simulate millions nodes... that's why analytical 
approaches
to the p2p evaluation problem are so popular.

Regards,

Marco Fiore

>Messaggio originale
>Da: [EMAIL PROTECTED]
>Data: 9-feb-2006 12.41 AM
>A: 
>Ogg: [ns] large-
scale p2p simulation
>
>
>Hi, 
>
>I need to simulate and study 
applications performance over large-scale (e.g. million nodes) p2p 
networks (e.g. chord ). Could any NS2 expert please provides some 
suggestions on whether NS2 is a good simulator for this purpose? I 
mainly concern about NS2 scalability. 
>
>Thanks in advance!
>
>G.
>




[ns] R: User data over UDP

2006-02-09 Thread Marco Fiore

Application Data Units (ADUs) containing real data can be used in ns-2.
You can look for the "AppData" class structure and functioning in the
ns-maunal (see chapter 37 'eb cache as an application' for an example).

Regards,

Marco Fiore

>Messaggio originale
>Da: 
[EMAIL PROTECTED]
>Data: 9-feb-2006 7.16 AM
>A: 
>Ogg: [ns] User data over UDP
>
>
>Dear all,
>
>I need to transmit user-
defined packet over UDP.
>
>If any body has a template-code that I can 
use that would really help.
>
>Please help if you can.
>
>Thanks
>
>_
>FREE pop-up blocking with the new MSN Toolbar - get it now! 
>http:
//toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
>
>




[ns] R: in 802.11, ShortRetryLimit_ and LongRetryLimit_ "0" is same effect on simulation result as "1"?

2006-02-09 Thread Marco Fiore

Sangho,

this is the correct behavior.

According to the standard:
"The 
short retry count for an MSDU or MMPDU and the STA short retry count 
shall be incremented
every time transmission of a MAC frame of length 
less than or equal to dot11RTSThreshold fails for that
MSDU or MMPDU. 
This short retry count and the STA short retry count shall be reset 
when a MAC frame of
length less than or equal to dot11RTSThreshold 
succeeds for that MSDU or MMPDU. The long retry count for
an MSDU or 
MMPDU and the STA long retry count shall be incremented every time 
transmission of a MAC
frame of length greater than dot11RTSThreshold 
fails for that MSDU or MMPDU. This long retry count and
the STA long 
retry count shall be reset when a MAC frame of length greater than 
dot11RTSThreshold succeeds
for that MSDU or MMPDU."

Regards,

Marco 
Fiore

>Messaggio originale
>Da: [EMAIL PROTECTED]
>Data: 8-feb-2006 7.48 PM
>A: 
>Ogg: [ns] in 802.11, 
ShortRetryLimit_ and LongRetryLimit_ "0" is same effect on 
simulation result as "1"?
>
>
>
>I experiment on 802.11 wired-
cum-wireless (wirelessLAN) with chanaging MAC
>retransmission from 0 to 
5 in NS-2.29.
>
>The trace file of MAX retransmission "0" and "1" are 
completely same.
>
>I change the value of MAX retransmission like 
below,
>
>  set par(rtxMax)   0
>   <...>
>  
Mac/802_11 set ShortRetryLimit_   $par(rtxMax);# retransmittions
>  Mac/802_11 set LongRetryLimit_$par(rtxMax);# 
retransmissions
>   <...>
>
>
>ns-2.29/mac/mac-802_11.cc
>...
>if((u_int32_t) ch->size() <= macmib_.getRTSThreshold()) {
>rcount = &ssrc_;
>   thresh = macmib_.
getShortRetryLimit();
>} else {
>rcount = 
&slrc_;
>   thresh = macmib_.getLongRetryLimit();
>
}
>
>(*rcount)++;
>
>if(*rcount >= thresh) {
>/* IEEE Spec section 9.2.3.5 says this should be 
greater than
>   or equal */
>macmib_.
FailedCount++;
>
>
>if this pacekts try to send at first time,
>rcount = 0 and increases to 1 by (*rocunt)++
>then, "if (*rcount >= 
thresh)" check MAX retransmission threshold.
>whenever thresh is 0 or 
1, it can't try to retransmission more, right?
>
>Is it normal results
(IEEE 802.11 standard)? or not? (ns-2 implementation problem?)
>
>
>please help me!
>
>
>sincerely,
>Sangho Lee
>
>




[ns] R: propagation model

2006-03-03 Thread Marco Fiore

Comments are inline.

Regards,

Marco Fiore

>Messaggio 
originale
>Da: [EMAIL PROTECTED]
>Data: 3-mar-2006 2.52 AM
>A: 

>Ogg: [ns] propagation model
>
>
>All,
>
>Is it 
possible to support multiple propagation model?

as far as I know, no.

> is this a good
>design choice as if the d become > or < cross-over 
distance , it would
>make a possibillity of more packet processing by 
MAC layer?

that would be a correct design choice, as different 
propagation
models fit better different distances. However, as said 
before,
I do not think you can use multiple propagation models in a Tcl
script.

>If so, how could it be done when configuring a node in Tcl?

I think that the only solution you have is to design your
own 
propagation model...




[ns] R: "Check_pktCTRL: Invalid MAC Control subtype".

2006-03-04 Thread Marco Fiore

That error message is generated by 802.11.
See mac/mac-802_11.cc for 
details.

Regards,

Marco Fiore

>Messaggio originale
>Da: 
[EMAIL PROTECTED]
>Data: 4-mar-2006 6.23 AM
>A: 
>Ogg: [ns] "Check_pktCTRL: Invalid MAC Control subtype".
>
>
>Hi,
>
>
>I have written a routing algorithm (modification of AODV). 
when i run the 
>program, i get the error as
>
>"Check_pktCTRL: Invalid 
MAC Control subtype".
>
>Where could be the possible location of the 
error?. I checked the packet 
>formats of send routines, they are fine.
>
>I actually included the Hello packets . It gave me an error as 
"segmentation 
>fault".
>When i removed the hello packets, i get the 
error as "Check_pktCTRL".
>
>If the error is with regards to the packet 
format, then whats the correct 
>format? i have used the same one as in 
AODV.
>
>Can someone please help me.
>
>Subashini.
>
>
>




[ns] R: Help: Setdest Command

2006-03-13 Thread Marco Fiore

Norlida,

try "./configure" instead of "configure" and after 
configure&make, check
that a binary (executable) file "setdest" is 
created in the folder.

Regards,

Marco Fiore

>Messaggio 
originale
>Da: [EMAIL PROTECTED]
>Data: 13-mar-2006 7.07 AM
>A: 
>Ogg: [ns] Help:  Setdest Command
>
>
>Hi,
>   
> I would like to ask regarding "setdest" command.  In the tutorial it 
says that:
>   
> In order to compile the revised setdest.cc do the 
following: 
>  1. Go to ns directory and run "configure" (you probably 
have done that already while building ns). This creates a makefile for 
setdest. 
>2.Go to indep-utils/cmu-scen-gen/setdest. Run "make" , which 
first creates a stand-alone object file for ~ns/rng.cc (the stand-alone 
version doesnot use Tclcl libs) and then creates the executable 
setdest. 
>3. Run setdest with arguments as shown below: 
>   
>  So, I 
have do the first command as below:
>  [EMAIL PROTECTED] ns]# configure
>  then the error would be:
>  bash: configure: command not found
>   
>  When I run the second command:
>  [EMAIL PROTECTED] setdest]# make
>  
then the error would be:
>  make: Nothing to be done for 'all"
>   
>  
When I run the third command:
>  ./setdest -n 50 -p 0 -s 20.0 -t 100 -x 
500 -y 500 > scen-50-test
>  then the error would be:
>  bash: .
/setdest: No such file or directory
>   
>   
> File setdest.cc is in 
setdest folder.  Inside the folder there is also Makefile, Makefile.in 
& rng.o file & others.
>   
> I did not sure whether for command 1 & 2, 
that is the correct way to do so.  
>   
> I am using ns 2.26.  I use 
command ./ns  to run tcl script.
>   
> Hope anybody can 
help me.
>   
> Thank you & regards,
>   
> norlida
>
>  
>
>
>   
>-
>Brings words and photos together 
(easily) with
> PhotoMail  - it's free and works with Yahoo! Mail.
>




[ns] R: regarding promiscuous mode

2006-03-13 Thread Marco Fiore

Krithiga,

answers are inline.

Regards,

Marco Fiore

>Messaggio 
originale
>Da: [EMAIL PROTECTED]
>Data: 12-mar-2006 1.24 PM
>A: 
, <[EMAIL PROTECTED]>, 
>Ogg: [ns] regarding promiscuous mode
>
>
>hi all,
> i am doing proj in mobile adhoc networks. i 
need to know some
>clarifications regarding mobile adhoc networks.
>
>1. we need to make use of promiscuous mode for our proj. (i.e) a node 
need
>to overhear the other  transmissions that are happening in its 
transmission
>range.. is it already implemented in NS2?
>If so, kindly 
let me know the inbuilt function that can be used for
>overhearing. 
Otherwise, how this overhearing concept can be implemented in
>NS2?

There's no promiscuous mode implementation in ns-2.
However, you can 
easily add such feature in 802.11.
In the file mac/mac-802_11.cc, look 
for the recv_timer()
function, look for the "Address Filtering" 
section: there
you can decide to pass the frame to the upper LL agent,
instead of discarding it.

>2. how can we determine the 2-hop 
neighbours of the node and maintain the
>list of the same??

Two ways: 
the easy, "bad" one is to make it via tcl (e.g. at each time step,
compute all inter-node distances and comunicate to each node the list
of neighbors), the more complex, "good" one is to do that implementing 
in
C++ some layer-3 mechanism which propagates the information on
neighbor nodes using actual packets (many examples of that in 
literature).
This second solution is preferable since it is more 
realistic (in the first case
you have a no-error, no-cost information 
exchange!). I think you could
loo for some existing C++ implementation 
and start your changes from there...



[ns] R: sending packets from objects within agent

2006-03-27 Thread Marco Fiore

Elise,

you could have a look at the website:

http://masimum.dif.um.
es/?Documents

where Francisco Ros and other researchers
present their 
work on implementing a new
routing protocol for ad-hoc networks.

Regards,

Marco Fiore

>Messaggio originale
>Da: 
[EMAIL PROTECTED]
>Data: 27-mar-2006 9.29 PM
>A: 
>Ogg: [ns] sending packets from objects within agent
>
>
>Hi,
>
>i have 
implemented a routing agent for ad-hoc routing, but i have a problem: 
>the agent attached to a node has several 'roles', so the agent has a 
central 
>subclass of agent, and contains several objects which take 
care of different 
>behaviours.
>Now i need to send packets from those 
objects - how should i transmit the 
>Scheduler used in the central 
agent ?  Or should i just transmit target_ ?
>(or should i use another 
way to get those packets sent ?) (i use ns-2.29)
>Masters of ns ;-) , i 
hope you can help me !
>thanks,
>
>Elise
>
>_
>Free blogging with MSN Spaces  http://spaces.msn.com/?mkt=nl-be
>
>




Re: [ns] Trace file

2006-03-31 Thread Marco Fiore

Sara,

the simplest way is probably to post-process your tracefile
using awk or perl. Modifying the C++ code which generates
the tracefile 
could be very time-consuming, as it is spread
among all the implemented 
agents...

Using awk or perl on the ns-2 tracefile you can print only
some particular lines. Many references/tutorials/examples
of both 
languages are available on the web.

Regards,

Marco Fiore

>
Original Message
>From: [EMAIL PROTECTED]
>Date: Mar 31, 2006 
12:52 PM
>To: "ns-users"
>Subj: [ns] Trace file
>
>
>Hi all,
>Is there a simple mode to modify the trace file? 
>For 
example I wouldn't print the lines  about beacon frames.
>Thanks in 
advance ,
>
>Sara.  
>
>




[ns] R: why setdest so slow?

2006-04-03 Thread Marco Fiore

Guanhua,

are you referring to the generation of the mobility traces or 
to the simulation
of the network itself? In the first case that's very 
strange, in the second case
it could be due to the fact that the 
default ns-2 scheduler is very slow in
allocating events far in time. 
My advice is to patch the scheduler with
the following code:

  http:
//netlab.caltech.edu/~weixl/technical/ns2patch/ns2patch.htm

Hope this 
helps,

Marco Fiore

>Messaggio originale
>Da: [EMAIL PROTECTED]
com
>Data: 1-apr-2006 7.39 PM
>A: 
>Ogg: [ns] why 
setdest so slow?
>
>
>Hi, I am using the setdest tool in ns-2 to 
generate a mobility scenario that 
>has 200 users and lasts 1 hour. I 
used version 2. It took seven to eight 
>hours to generate only 800 
seconds. Is this normal? I hope some people more 
>experienced with 
this can give me help.
>
>thanks,
>Guanhua
>
>
>




[ns] R: looking for"hcf" implementation

2006-04-03 Thread Marco Fiore

If you are referring to 802.11e HCF, you
can find a couple of 
implementations  at:

http://info.iet.unipi.it/~cng/ns2hcca/
http://www-
sop.inria.fr/planete/qni/Research.html

Next time be more specific in 
your question
and search the web or the ns-2 site for the
information 
you are looking for, before mailing
to the list (the above links are 
the first results
of a Google query...)

Regards,

Marco Fiore

>
Messaggio originale
>Da: [EMAIL PROTECTED]
>Data: 1-apr-
2006 3.31 PM
>A: 
>Ogg: [ns] looking for"
hcf" implementation
>
>
>Hello ,everybody!
>I am looking for hcf 
implementation,can anyone help me please?
>
>_
>Express yourself instantly with MSN Messenger! Download today - it's 
FREE! 
>http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
>




[ns] DataRate in Header

2006-04-03 Thread Marco Fiore

Hi everyone,

does anybody know if and where the DataRate at which 
packets
are transmitted on a wireless channel is recorded in some 
header?

Thanks,

Marco Fiore



[ns] R: make: *** No rule to make target `tcl/lib/noah.tcl', needed by `gen/ns_tcl.cc'. Stop.

2006-04-05 Thread Marco Fiore

Qasim,

the error messages you get informs you that the
file 
tcl/lib/noah.tcl could not be find. Check that
the path is correct and 
the file exists.

Regards,

Marco Fiore

>Messaggio originale
>Da: [EMAIL PROTECTED]
>Data: 4-apr-2006 3.27 PM
>A: <[EMAIL PROTECTED]
EDU>
>Ogg: [ns] make: *** No rule to make target `tcl/lib/noah.
tcl', needed by `gen/ns_tcl.cc'.  Stop.
>
>
>Dear All
>
>I am 
trying to implement the Noah protocol. After following the
>instructions below
>##
>Makefile.in add noah/noah.o 
\ to OBJ_CC and tcl/mobility/noah.tcl \ to
>NS_TCL_LIB
>noah/noah.{h,
cc} add noah.h and noah.cc to a new subdirectory noah/
>tcl/mobility/noah.tcl  add noah.tcl to tcl/mobility/
>tcl/lib/ns-lib.
tcl.h   line 191: add source ../mobility/noah.tcl
>line 603ff: add
>
>   
NOAH {
>   set ragent [$self create-noah-agent $node]
>   }
>
>line 768ff: add
>
>Simulator instproc create-noah-agent { node } {
># Create a noah routing agent for this node
>set ragent [new 
Agent/NOAH]
>
>## setup address (supports hier-addr) for noah agent
>## and mobilenode
>set addr [$node node-addr]
>
>$ragent 
addr $addr
>$ragent node $node
>
>if [Simulator set mobile_ip_] 
{
>$ragent port-dmux [$node demux]
>}
>$node addr $addr
>$node set ragent_ $ragent
>return $ragent
>}
>##
>
>I get the following problem
>first I was told to run config
>I ran ./config
>than I ran "make 
clean"
>and then I ran "make
>
>but after a while it has given me this 
error
>
>make: *** No rule to make target `tcl/lib/noah.tcl', needed by
>`gen/ns_tcl.cc'.  Stop.
>
>please help
>
>your help is very much 
appreciated
>
>regards
>
>Qasim UK
>
>
>




[ns] R: Re: Set address to ns node

2006-04-13 Thread Marco Fiore

If I got it right, what you are trying to do is to
perform a per-packet 
distributed queue
managament between two nodes which are
not directly 
linked.
I think there could be a way to do that in ns-2
(you could use 
the getNodeById() function to
obtain access to the node, and then look 
into
its queue - do not remember the way, but
there is one).
However, 
in my opinion, this would definitely
be unfeasible in a real network, 
making
simulation somehow useless...

Regards,

Marco Fiore

>
Messaggio originale
>Da: [EMAIL PROTECTED]
>Data: 12-apr-2006 
11.10 AM
>A: 
>Ogg: Re: [ns] Set address to ns node
>
>
>Hello all
>
>I have a topology like this
>
>  
__n2
> / \
>Src---
n1/ \n4__Dst
>
\___ /
>   n3
>
>>From the src the packets are send both to n2 and n3 in a 
probabilistic
>manner. My problem is for every iteration n4 should 
receive one packet
>either from n2 or n3 depending on minimum packet 
sequence number. For e.g.
>if n2 has packet 2 at the head of the queue 
and n3 has packet 1 at the head
>of its queue. n4 should receive packet 
from n3. How can i do that comparing
>two queues in different links and 
dequeing that packet to n4.
>
>Cordialement
>Sandoche BALAKRICHENAN.
>




[ns] R: how to install random-waypoint model in ns-2.27

2006-04-14 Thread Marco Fiore

You cannot "install" mobility models in ns-2.
Nodes mobility is defined 
using the "setdest"
command in your tcl script (you can find a simple
example in tcl/ex/simple-wireless.tcl).
When a complex mobility model 
is needed
"setdest" commands can be generated from a
mobility 
generator, and can then be provided as
a trace file to ns-2.
Several 
mobility generators are capable of producing
ns-2 mobility traces. If 
you are interested in RWM,
you can have a look at BonnMotion, 
IMPORTANT,
or even to the simple tool which is provided with
the 
official ns-2 distribution (in indep-utils/cmu-scen-gen).

Regards,

Marco Fiore

>Messaggio originale
>Da: [EMAIL PROTECTED]
>Data: 14-apr-2006 12.54 AM
>A: 
>Ogg: [ns] how to 
install random-waypoint model in ns-2.27
>
>
>Hello everybody
>  I want 
to installing random-waypoint model in ns-2.27 or ns-2.29,how can i do 
to install it?
>  please help me,thanks
>
>   
>-
> Faites de Yahoo! votre page 
d'accueil sur le web pour retrouver directement vos services préférés : 
vérifiez vos nouveaux mails, lancez vos recherches et suivez 
l'actualité en temps réel. Cliquez ici.
>




[ns] R: which trace format is more accurate?

2006-04-15 Thread Marco Fiore

Sasan,

both versions of tracefile report the same information.
The 
difference only lies in the format (actually, the
new trace format is 
somehow more complete).
So they are accurate in the same way, but the 
point
is that you can't use the same awk script on both!
You have to 
write two versions of you awk script,
and then you'll get the same 
results.

Regards,

Marco Fiore

>Messaggio originale
>Da: 
[EMAIL PROTECTED]
>Data: 15-apr-2006 8.06 AM
>A: 
>Ogg: [ns] which trace format is more accurate?
>
>
>Hi All,
>
>I am 
generating both trace formats (old and new) for the "exact" same
>simulation, and for instance I count total number of messages sent as
>below (in my awk file)
>
>$1~/s/ && /AGT/  { sent ++; }
>
>but I get 
two different results
>
>now I wonder, which one of the trace files are 
accurate? which one should
>I pick? the version is 2.29.
>
>I'll 
appreciate your advice.
>
>Thanks,
>Sasan
>
>
>
>




[ns] R: Re: R: which trace format is more accurate?

2006-04-18 Thread Marco Fiore

Sasan,

I see your point.
How much do differ results you got in the two 
cases?
By exact same simulation you mean that you simply
changed the 
trace format and nothing else (included
the machine you working on)? 

Regards,

Marco Fiore

>Messaggio originale
>Da: [EMAIL PROTECTED]
ucc.ie
>Data: 15-apr-2006 9.33 PM
>A: "Marco Fiore"<[EMAIL PROTECTED]>
>Cc: <[EMAIL PROTECTED]>, 
>Ogg: Re: R: [ns] 
which trace format is more accurate?
>
>Marco,
>
>I agree that I need 
separate awk scripts for different trace formats but
>the particular 
example that I gave below is straight forward
>
>$1~/s/ && /AGT/  { 
sent ++; }
>
>and should return total number of sents message in a 
simulation and that
>still returns different values (unless this is not 
the correct way to
>calculate the total sent messages)
>
>what do you 
think?
>
>Thanks,
>Sasan
>
>
>
>> Sasan,
>>
>> both versions of 
tracefile report the same information.
>> The
>> difference only lies 
in the format (actually, the
>> new trace format is
>> somehow more 
complete).
>> So they are accurate in the same way, but the
>> point
>> 
is that you can't use the same awk script on both!
>> You have to
>> 
write two versions of you awk script,
>> and then you'll get the same
>> results.
>>
>> Regards,
>>
>> Marco Fiore
>>
>>>Messaggio 
originale
>>>Da:
>> [EMAIL PROTECTED]
>>>Data: 15-apr-2006 8.06 
AM
>>>A: 
>>>Ogg: [ns] which trace format is more 
accurate?
>>>
>>>
>>>Hi All,
>>>
>>>I am
>> generating both trace 
formats (old and new) for the "exact" same
>>>simulation, and for 
instance I count total number of messages sent as
>>>below (in my awk 
file)
>>>
>>>$1~/s/ && /AGT/  { sent ++; }
>>>
>>>but I get
>> two 
different results
>>>
>>>now I wonder, which one of the trace files are
>> accurate? which one should
>>>I pick? the version is 2.29.
>>>
>>>I'll
>> appreciate your advice.
>>>
>>>Thanks,
>>>Sasan
>>>
>>>
>>>
>>>
>>
>>
>>
>
>
>




[ns] R: help regarding trace file

2006-04-19 Thread Marco Fiore

Please have a look to ns manual, ns mailing list history
and relative 
FAQ before posting to the mailing list itself!
This is the third or 
fourth mail about trace file format
this month!

Regards,

Marco Fiore

>Messaggio originale
>Da: [EMAIL PROTECTED]
>Data: 19-
apr-2006 9.36 AM
>A: , <[EMAIL PROTECTED]>, 

>Ogg: [ns] help regarding trace file
>
>
>  i m 
working on simualtion of AD-Hoc routing algorithms DSDV, DSR, AODV. i 
unable to extract data form trace files. So please send me how to read 
trace file , which coloum of trace file show packet id? &  how to 
calculate Throughput and  Delay. i have attached  trace file of DSDV 
algorithm.
> please help me.  
>
>
>s 0.032821055 _1_ RTR  --- 
0 message 32 [0 0 0 0] --- [1:255 -1:255 
>32 0] 
>s 0.178591360 
_2_ RTR  --- 1 message 32 [0 0 0 0] --- [2:255 -1:255 
>32 0] 
>s 
1.113402886 _0_ RTR  --- 2 message 32 [0 0 0 0] --- [0:255 -1:255 
>32 0] 
>M 10.0 0 (5.00, 5.00, 0.00), (45.00, 285.00), 5.00
>s 
10.0 _0_ AGT  --- 3 tcp 40 [0 0 0 0] --- [0:0 1:0 32 0] 
>
[0 0] 0 0
>r 10.0 _0_ RTR  --- 3 tcp 40 [0 0 0 0] --- [0:0 
1:0 32 0] 
>[0 0] 0 0
>s 12.530838300 _0_ RTR  --- 4 message 32 [0 0 0 
0] --- [0:255 
>-1:255 32 0] 
>s 13.830059915 _2_ RTR  --- 5 
message 32 [0 0 0 0] --- [2:255 
>-1:255 32 0] 
>s 14.280428760 _1_ 
RTR  --- 6 message 32 [0 0 0 0] --- [1:255 
>-1:255 32 0] 
>M 
15.0 1 (390.00, 385.00, 0.00), (250.00, 250.00), 3.00
>s 
16.0 _0_ AGT  --- 7 tcp 40 [0 0 0 0] --- [0:0 1:0 32 0] 
>
[0 0] 0 0
>r 16.0 _0_ RTR  --- 7 tcp 40 [0 0 0 0] --- [0:0 
1:0 32 0] 
>[0 0] 0 0
>s 25.369352037 _0_ RTR  --- 8 message 32 [0 0 0 
0] --- [0:255 
>-1:255 32 0] 
>r 25.370484730 _2_ RTR  --- 8 
message 32 [0  0 800] --- 
>[0:255 -1:255 32 0] 
>s 
26.386541965 _2_ RTR  --- 9 message 32 [0 0 0 0] --- [2:255 
>-1:
255 32 0] 
>r 26.387454644 _0_ RTR  --- 9 message 32 [0  2 800] 
--- 
>[2:255 -1:255 32 0] 
>r 26.387454789 _1_ RTR  --- 9 message 
32 [0  2 800] --- 
>[2:255 -1:255 32 0] 
>s 27.274269018 
_1_ RTR  --- 10 message 32 [0 0 0 0] --- [1:255 
>-1:255 32 0] 
>r 
27.275141834 _2_ RTR  --- 10 message 32 [0  1 800] --- 
>[1:
255 -1:255 32 0] 
>s 28.0 _0_ AGT  --- 11 tcp 40 [0 0 0 0] 
--- [0:0 1:0 32 0] 
>[0 0] 0 0
>r 28.0 _0_ RTR  --- 11 tcp 
40 [0 0 0 0] --- [0:0 1:0 32 0] 
>[0 0] 0 0
>s 37.379947379 _2_ 
RTR  --- 12 message 32 [0 0 0 0] --- [2:255 
>-1:255 32 0] 
>r 
37.380919914 _0_ RTR  --- 12 message 32 [0  2 800] --- 
>[2:
255 -1:255 32 0] 
>r 37.380920097 _1_ RTR  --- 12 message 32 [0 
 2 800] --- 
>[2:255 -1:255 32 0] 
>s 37.425885784 _0_ RTR  
--- 13 message 32 [0 0 0 0] --- [0:255 
>-1:255 32 0] 
>r 
37.426998317 _2_ RTR  --- 13 message 32 [0  0 800] --- 
>[0:
255 -1:255 32 0] 
>s 38.388685824 _1_ RTR  --- 14 message 32 [0 0 0 0] 
--- [1:255 
>-1:255 32 0] 
>r 38.389638533 _2_ RTR  --- 14 message 
32 [0  1 800] --- 
>[1:255 -1:255 32 0] 
>s 38.432288490 
_0_ RTR  --- 15 message 32 [0 0 0 0] --- [0:255 
>-1:255 32 0] 
>r 
38.433061011 _2_ RTR  --- 15 message 32 [0  0 800] --- 
>[0:
255 -1:255 32 0] 
>s 39.277760075 _2_ RTR  --- 16 message 32 [0 0 0 0] 
--- [2:255 
>-1:255 32 0] 
>r 39.278692587 _0_ RTR  --- 16 message 
32 [0  2 800] --- 
>[2:255 -1:255 32 0] 
>s 39.278692587 
_0_ RTR  --- 3 tcp 80 [0 0 0 0] --- [0:0 1:0 32 2] 
>[0 0] 0 0
>s 
39.278692587 _0_ RTR  --- 7 tcp 80 [0 0 0 0] --- [0:0 1:0 32 2] 
>
[0 0] 0 0
>D 39.278692587 _0_ IFQ  ARP 3 tcp 80 [0 0 0 800] --- [0:
0 1:0 32 2] 
>[0 0] 0 0
>s 39.278692587 _0_ RTR  --- 11 tcp 80 [0 0 0 
0] --- [0:0 1:0 32 2] 
>[0 0] 0 0
>D 39.278692587 _0_ IFQ  ARP 7 
tcp 80 [0 0 0 800] --- [0:0 1:0 32 2] 
>[0 0] 0 0
>r 39.278692775 
_1_ RTR  --- 16 message 32 [0  2 800] --- 
>[2:255 -1:255 
32 0] 
>r 39.284898168 _2_ RTR  --- 11 tcp 80 [13a 2 0 800] --- [0:
0 1:0 32 
>2] [0 0] 1 0
>f 39.284898168 _2_ RTR  --- 11 tcp 80 [13a 2 0 
800] --- [0:0 1:0 31 
>1] [0 0] 1 0
>r 39.293478160 _1_ AGT  --- 11 
tcp 80 [13a 1 2 800] --- [0:0 1:0 31 
>1] [0 0] 2 0
>s 39.293478160 
_1_ AGT  --- 17 ack 40 [0 0 0 0] --- [1:0 0:0 32 0] 
>[0 0] 0 0
>r 
39.293478160 _1_ RTR  --- 17 ack 40 [0 0 0 0] --- [1:0 0:0 32 0] 
>
[0 0] 0 0
>s 39.293478160 _1_ RTR  --- 17 ack 60 [0 0 0 0] --- [1:0 
0:0 32 2] 
>[0 0] 0 0
>r 39.295636260 _2_ RTR  --- 17 ack 60 [13a 2 1 
800] --- [1:0 0:0 32 
>2] [0 0] 1 0
>f 39.295636260 _2_ RTR  --- 17 
ack 60 [13a 2 1 800] --- [1:0 0:0 31 
>0] [0 0] 1 0
>r 39.297773794 

[ns] R: Re: R: which trace format is more accurate?

2006-04-19 Thread Marco Fiore

Sasan,

don't have a clue on that.
I fear the only way is to analyze 
the trace files
by hand to spot the differences. Maybe printing
the 
sending times (using an awk script) can
speed up the process.

Let us 
know if you can solve the problem.

Regards,

Marco Fiore

>
Messaggio originale
>Da: [EMAIL PROTECTED]
>Data: 19-apr-2006 
12.47 PM
>A: "Marco Fiore"<[EMAIL PROTECTED]>
>Cc: <[EMAIL PROTECTED]
ie>, 
>Ogg: Re: R: [ns] which trace format is more 
accurate?
>
>Marco,
>
>This is the exact point,
>
>the difference is 
about 300 to 400 for 100 sec sim time
>
>I reran the same simulation 
and all I did was to change the trace format,
>but I see such a 
difference in number of sent
>
>$1~/s/ && /AGT/  { sent ++; }
>
>any 
comments?
>
>both running on the same machine. all the equipment and 
environment
>settings are the same. you might be able to reproduce it 
easily.
>
>Thanks,
>Sasan
>
>
>> Sasan,
>>
>> I see your point.
>> How 
much do differ results you got in the two
>> cases?
>> By exact same 
simulation you mean that you simply
>> changed the
>> trace format and 
nothing else (included
>> the machine you working on)?
>>
>> Regards,
>>
>> Marco Fiore
>>
>>>Messaggio originale
>>>Da: [EMAIL PROTECTED]
cs.
>> ucc.ie
>>>Data: 15-apr-2006 9.33 PM
>>>A: "Marco Fiore"
<[EMAIL PROTECTED]>
>>>Cc: <[EMAIL PROTECTED]>, 
>>>Ogg: Re: R: [ns]
>> which trace format is more accurate?
>>>
>>>Marco,
>>>
>>>I agree that I need
>> separate awk scripts for 
different trace formats but
>>>the particular
>> example that I gave 
below is straight forward
>>>
>>>$1~/s/ && /AGT/  {
>> sent ++; }
>>>
>>>and should return total number of sents message in a
>> simulation 
and that
>>>still returns different values (unless this is not
>> the 
correct way to
>>>calculate the total sent messages)
>>>
>>>what do you
>> think?
>>>
>>>Thanks,
>>>Sasan
>>>
>>>
>>>
>>>> Sasan,
>>>>
>>>> 
both versions of
>> tracefile report the same information.
>>>> The
>>>> difference only lies
>> in the format (actually, the
>>>> new 
trace format is
>>>> somehow more
>> complete).
>>>> So they are 
accurate in the same way, but the
>>>> point
>>>>
>> is that you can't 
use the same awk script on both!
>>>> You have to
>>>>
>> write two 
versions of you awk script,
>>>> and then you'll get the same
>>>> 
results.
>>>>
>>>> Regards,
>>>>
>>>> Marco Fiore
>>>>
>>>>>
Messaggio
>> originale
>>>>>Da:
>>>> [EMAIL PROTECTED]
>>>>>Data: 15-apr-2006 8.06
>> AM
>>>>>A: 
>>>>>Ogg: 
[ns] which trace format is more
>> accurate?
>>>>>
>>>>>
>>>>>Hi All,
>>>>>
>>>>>I am
>>>> generating both trace
>> formats (old and new) for 
the "exact" same
>>>>>simulation, and for
>> instance I count total 
number of messages sent as
>>>>>below (in my awk
>> file)
>>>>>
>>>>>$1~/s/ && /AGT/  { sent ++; }
>>>>>
>>>>>but I get
>>>> two
>> 
different results
>>>>>
>>>>>now I wonder, which one of the trace files 
are
>>>> accurate? which one should
>>>>>I pick? the version is 2.29.
>>>>>
>>>>>I'll
>>>> appreciate your advice.
>>>>>
>>>>>Thanks,
>>>>>Sasan
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>
>
>




[ns] R: help regarding for awk file

2006-04-27 Thread Marco Fiore

For simple topologies/statistics, you may
give a look at trace2stats:

http://www.reti.polito.it/fiore

Regards,

Marco Fiore

>Messaggio 
originale
>Da: [EMAIL PROTECTED]
>Data: 26-apr-2006 1.25 
PM
>A: "ns_users_request"<[EMAIL PROTECTED]>, "ns_users"
>Ogg: [ns] help regarding for awk file
>
>
>
>i m 
working on simulation of adhoc networks. i want  throughput & Delay 
calculation awk program for trace file analysis.
>thanks
>




[ns] R: Which ad hoc routing protocol is used in 802.11?

2006-04-27 Thread Marco Fiore

Jeevesh,

802.11 is a MAC level protocol, thus it can be used
with 
*any* routing protocol you want. I think the
default one in ns-2 
wireless simulations is DSDV.
You can verify that (and possibile change 
the routing
protocol) by looking at mobile node configuration
in your 
tcl script.

Regards,

Marco Fiore

>Messaggio originale
>Da: 
[EMAIL PROTECTED]
>Data: 26-apr-2006 12.46 PM
>A: "NS USERS"

>Ogg: [ns] Which ad hoc routing protocol is used in 
802.11?
>
>
>Hi All,
>   Which ad hoc routing protocol is used 
in 802.11? I can't find any information about this. Can any one help 
me?
> Thanks a lot.
> Best regards.
>
>  jeevesh kumar
>
>   
>-
> Jiyo cricket on Yahoo! 
India cricket
>Yahoo! Messenger Mobile Stay in touch with your buddies 
all the time.
>




[ns] R: Adhoc Rounting Overhead

2006-04-27 Thread Marco Fiore

Diego,

you are looking at MAC level frames (lower layer
with respect 
to routing one). If you do not need
them (and you should not, if you 
are evaluating
the routing protocol overhead), you can turn
MAC level 
tracing OFF in mobile node configuration
in your tcl script (refer to 
the ns manual for that).

Regards,

Marco Fiore

>Messaggio 
originale
>Da: [EMAIL PROTECTED]
>Data: 25-apr-2006 6.33 PM
>A: "ns_users"
>Ogg: [ns] Adhoc Rounting Overhead
>
>
>Hello NS users,
>
>I am working on some Adhoc simulations for my 
graduation project, and I am
>trying to describe this protocols 
behavior and performance, for some
>different environment. One metric 
that I am analysing is Rounting Overhead.
>During my analysis I 
realised that in my trace file I have some AODV
>packets, some CBR 
packets, and some packets that I don't know that they are,
>and if I 
should count them for this metric.
>Can any one tell me that are this 
packets? Should I count them as Routing
>packets or data packets? 
Should I ignore them?
>I attached below this packets.
>Thanks in 
advance.
>
>
>s -t 41.07456 -Hs 8 -Hd -2 -Ni 8 -Nx 791.27 -Ny 
793.35 -Nz 0.00 -Ne -
>1.00 -Nl MAC -Nw --- -Ma 0 -Md  -Ms 
8 -Mt 806 -P arp -Po REQUEST
>-Pms 8 -Ps 8 -Pmd 0 -Pd 1
>
>s -t 
41.023318192 -Hs 1 -Hd -2 -Ni 1 -Nx 612.03 -Ny 664.36 -Nz 0.00 -Ne -
>1.
00 -Nl MAC -Nw --- -Ma 41e -Md 8 -Ms 1 -Mt 0
>
>s -t 41.023680928 -
Hs 8 -Hd -2 -Ni 8 -Nx 791.27 -Ny 793.34 -Nz 0.00 -Ne -
>1.00 -Nl 
MAC -Nw --- -Ma 2e4 -Md 1 -Ms 0 -Mt 0
>
>s -t 41.023995664 -Hs 1 -Hd -2 
-Ni 1 -Nx 612.04 -Ny 664.36 -Nz 0.00 -Ne -
>1.00 -Nl MAC -Nw --- -
Ma 13a -Md 8 -Ms 1 -Mt 806 -P arp -Po REPLY -Pms 1
>-Ps 1 -Pmd 8 -Pd 8
>
>s -t 41.024422400 -Hs 8 -Hd -2 -Ni 8 -Nx 791.27 -Ny 793.33 -Nz 0.00 -
Ne -
>1.00 -Nl MAC -Nw --- -Ma 0 -Md 1 -Ms 0 -Mt 0
>
>s -t 
41.024836400 -Hs 8 -Hd -2 -Ni 8 -Nx 791.27 -Ny 793.33 -Nz 0.00 -Ne -
>1.
00 -Nl MAC -Nw --- -Ma 45e -Md 1 -Ms 8 -Mt 0
>
>s -t 41.025199136 -
Hs 1 -Hd -2 -Ni 1 -Nx 612.05 -Ny 664.36 -Nz 0.00 -Ne -
>1.00 -Nl 
MAC -Nw --- -Ma 324 -Md 8 -Ms 0 -Mt 0
>
>s -t 41.026004608 -Hs 1 -Hd -2 
-Ni 1 -Nx 612.06 -Ny 664.36 -Nz 0.00 -Ne -
>1.00 -Nl MAC -Nw --- -
Ma 0 -Md 8 -Ms 0 -Mt 0
>
>s -t 41.026598608 -Hs 1 -Hd -2 -Ni 1 -Nx 
612.06 -Ny 664.36 -Nz 0.00 -Ne -
>1.00 -Nl MAC -Nw --- -Ma 0 -Md 
 -Ms 1 -Mt 806 -P arp -Po REQUEST
>-Pms 1 -Ps 1 -Pmd 0 -Pd 6
>
>s -t 41.027354427 -Hs 6 -Hd -2 -Ni 6 -Nx 370.36 -Ny 620.18 -Nz 0.00 -
Ne -
>1.00 -Nl MAC -Nw --- -Ma 41e -Md 1 -Ms 6 -Mt 0
>
>s -t 
41.027717246 -Hs 1 -Hd -2 -Ni 1 -Nx 612.07 -Ny 664.36 -Nz 0.00 -Ne -
>1.
00 -Nl MAC -Nw --- -Ma 2e4 -Md 6 -Ms 0 -Mt 0
>
>s -t 41.028032065 -
Hs 6 -Hd -2 -Ni 6 -Nx 370.35 -Ny 620.18 -Nz 0.00 -Ne -
>1.00 -Nl 
MAC -Nw --- -Ma 13a -Md 1 -Ms 6 -Mt 806 -P arp -Po REPLY -Pms 6
>-Ps 6 -
Pmd 1 -Pd 1
>
>s -t 41.028458884 -Hs 1 -Hd -2 -Ni 1 -Nx 612.08 -Ny 
664.36 -Nz 0.00 -Ne -
>1.00 -Nl MAC -Nw --- -Ma 0 -Md 6 -Ms 0 -Mt 0
>
>s -t 41.029272884 -Hs 1 -Hd -2 -Ni 1 -Nx 612.09 -Ny 664.37 -Nz 0.00 -
Ne -
>1.00 -Nl MAC -Nw --- -Ma 45e -Md 6 -Ms 1 -Mt 0
>
>s -t 
41.029635704 -Hs 6 -Hd -2 -Ni 6 -Nx 370.34 -Ny 620.19 -Nz 0.00 -Ne -
>1.
00 -Nl MAC -Nw --- -Ma 324 -Md 1 -Ms 0 -Mt 0
>
>s -t 41.030441342 -
Hs 6 -Hd -2 -Ni 6 -Nx 370.34 -Ny 620.20 -Nz 0.00 -Ne -
>1.00 -Nl 
MAC -Nw --- -Ma 0 -Md 1 -Ms 0 -Mt 0
>
>s -t 41.030935342 -Hs 6 -Hd -2 -
Ni 6 -Nx 370.33 -Ny 620.20 -Nz 0.00 -Ne -
>1.00 -Nl MAC -Nw --- -Ma 
0 -Md  -Ms 6 -Mt 806 -P arp -Po REQUEST
>-Pms 6 -Ps 6 -Pmd 0 -
Pd 7
>
>s -t 41.032030786 -Hs 7 -Hd -2 -Ni 7 -Nx 237.60 -Ny 632.41 -Nz 
0.00 -Ne -
>1.00 -Nl MAC -Nw --- -Ma 41e -Md 6 -Ms 7 -Mt 0
>
>s -t 
41.032393231 -Hs 6 -Hd -2 -Ni 6 -Nx 370.32 -Ny 620.21 -Nz 0.00 -Ne -
>1.
00 -Nl MAC -Nw --- -Ma 2e4 -Md 7 -Ms 0 -Mt 0
>
>s -t 41.032707675 -
Hs 7 -Hd -2 -Ni 7 -Nx 237.60 -Ny 632.41 -Nz 0.00 -Ne -
>1.00 -Nl 
MAC -Nw --- -Ma 13a -Md 6 -Ms 7 -Mt 806 -P arp -Po REPLY -Pms 7
>-Ps 7 -
Pmd 6 -Pd 6
>
>s -t 41.033134119 -Hs 6 -Hd -2 -Ni 6 -Nx 370.32 -Ny 
620.21 -Nz 0.00 -Ne -
>1.00 -Nl MAC -Nw --- -Ma 0 -Md 7 -Ms 0 -Mt 0
>
>s -t 41.034048119 -Hs 6 -Hd -2 -Ni 6 -Nx 370.31 -Ny 620.22 -Nz 0.00 -
Ne -
>1.00 -Nl MAC -Nw --- -Ma 45e -Md 7 -Ms 6 -Mt 0
>
>s -t 
41.034410563 -Hs 7 -Hd -2 -Ni 7 -Nx 237.60 -Ny 632.41 -Nz 0.00 -Ne -
>1.
00 -Nl MAC -Nw --- -Ma 324 -Md 6 -Ms 0 -Mt 0
>
>s -t 41.035215452 -
Hs 7 -Hd -2 -Ni 7 -Nx 237.60 -Ny 632.41 -Nz 0.00 -Ne -
>1.00 -Nl 
MAC -Nw --- -Ma 0 -Md 6 -Ms 0 -Mt 0
>
>s -t 41.035689452 -Hs 7 -Hd -2 -
Ni 7 -Nx 237.60 -Ny 632.41 -Nz 0.00 -Ne -
>1.00 -Nl MAC -Nw --- -Ma 
bfe -Md 6 -Ms 7 -Mt 0
>
>s -t 41.036051896 -Hs 6 -Hd

[ns] R: codes of mobility models in adhoc.

2006-04-27 Thread Marco Fiore

Look for projects such as IMPORTANT,
BonnMotion, CanuMobiSim.

Regards,

Marco Fiore

>Messaggio originale
>Da: [EMAIL PROTECTED]
com
>Data: 25-apr-2006 12.23 PM
>A: 
>Ogg: [ns] codes 
of mobility models in adhoc.
>
>
>hi every body
>im interested in a 
project dealing with mobility models (especially group 
>mobility 
models) in adhoc, i can't find the source codes of mobility models, 
>i 
just found the one of RWMM.
>please if any one has an idea on this 
topic i would really be grateful if 
>you help me.
>thanks alot in 
advance.
>
>_
>Testez Windows Live Mail Beta ! http://www.ideas.live.com/
>
>




[ns] R: Modifying 802.11 wireless Channel Propagation Delay

2006-05-05 Thread Marco Fiore

Look for the define line commanding
the propagation delay of the 
wireless
channel in mac/mac-802_11.h.

Regards,

Marco Fiore

>
Messaggio originale
>Da: [EMAIL PROTECTED]
>Data: 5-mag-2006 9.49 
AM
>A: 
>Ogg: [ns] Modifying 802.11 wireless Channel 
Propagation Delay
>
>
>
>Hi,
>
>Does anyone know how I can change the 
wireless channel propagation delay.
>
>I have two mobile nodes, use FTP 
over TCP, with RTS-CTS mechanism.
>
>I want to increase the delay, so 
that every packet (including the control 
>packets) passing the channel 
goes though this delay.  Then I want to 
>increase this delay, until 
there wouldn't be any throughput because the 
>CTS_Timeout expires and 
the transmitter keeps retransmitting the RTS packet 
>until it stops.
>
>Any ideas, please let me know.
>
>Regards,
>
>Bahman
>
>
>




[ns] R: calculate >> jitter,delay,throughput !!

2006-05-17 Thread Marco Fiore

You can try with tracegraph (http://www.tracegraph.com) or, for simple 
statistics, with trace2stats (http://www.reti.polito.it/fiore).

Regards,

Marco Fiore

>Messaggio originale
>Da: m.
[EMAIL PROTECTED]
>Data: 17-mag-2006 12.45 AM
>A: 
>Ogg: [ns] calculate >> jitter,delay,throughput !!
>
>
>hi all,
>
> am 
doing a multimedia experiment .. and i need to compute the JITTER,
>DELAY, & THROUGHPUT !! then i would like to PLOT them ?!! how do i do 
that
>?! is it all in the trace file ?
>
>anyways .. am using windowsXP 
sp2/CYGWIN .. ns-2.29-allinone ...
>
>thanx in advance
>




[ns] R: Underwater acoustic channel model?

2006-05-20 Thread Marco Fiore

Christian,

ns-2 does not support any of the models/protocols you 
mentioned.
I think you will have to code and add to the simulator them 
if you
want to use them within ns.

Regards,

Marco Fiore

>
Messaggio originale
>Da: [EMAIL PROTECTED]
>Data: 19-mag-
2006 4.09 PM
>A: 
>Ogg: [ns] Underwater acoustic 
channel model?
>
>
>Hi guys,
>
>I'm very new to ns, and I'm trying to 
figure out whether or not I'll
>need to develop some new models for 
what I need to do.  If found no
>documentation on what I'm looking 
for.  Can anyone tell me if ns has
>support for any of the following?
>
>- Underwater acoustic channels in which the noise level isn't 
uniformly
>dispersed?  (I.e., where there are point-sources of acoustic 
noise that
>interfere with communication.)
>
>- Underwater acoustic 
channels where certain propagation paths simply
>don't exist?  (The 
varied sound speed of water in a given environment
>can lead to some 
really wacky propagation paths.)
>
>- Directionally-transmitting 
modems.  (The beam pattern can be somewhat
>complex, because the 
directionality can be accomplished using a
>multi-transducer array.  
This leads to a main lobe of sound in the
>intended direction, and some 
weaker lobes of sound in directions
>adjacent to the intended direction 
of transmission.)
>
>- MAC protocols for any commercially available 
underwater acoustic
>modems (such as WHOI MicroModems).
>
>I'm very 
grateful for any suggestions.
>
>Thanks,
>Christian
>
>




[ns] R: WLAN and SCTP?

2006-05-22 Thread Marco Fiore

Hi,

unfortunately, ns-2 SCTP implementation
does not currently support 
wireless links.

Regards,

Marco Fiore

>Messaggio originale
>Da: [EMAIL PROTECTED]
>Data: 22-mag-2006 3.09 AM
>A: 
>Ogg: [ns] WLAN and SCTP?
>
>
>Hi,
>
>I am a posgraduate 
in Beijing University of Posts and Communications(BUPT)
>in China.I am 
working on handover,nowadays,I plan to do some research on
>WLAN with 
SCTP,but I have not found some useful resources and modules,I am a
>beginner in NS,if anyone have or had done the same research,I hope you 
can
>give me some advice,modules are appreciated,thanks a lot.
>
>best 
regards,
>-- 
>jiangren
>[EMAIL PROTECTED]
>




[ns] R: About the multihome in SCTP!

2006-06-07 Thread Marco Fiore

SCTP is not designed to work with wireless links.
You should add 
wireless support yourself, by extending
the multihome-attach-agent and 
multihome-add-destination
methods in tcl/lib/ns-lib.tcl. If you look 
there, you will see that
only wired liks are supported, and you should 
add wireless
links support as well.

Regards,

Marco Fiore

> 
Messaggio originale
>Da: [EMAIL PROTECTED]
>Data: 7-giu-2006 
11.07 AM
>A: 
>Ogg: [ns] About the multihome in SCTP!
>
>
>Hi,
>
>I want to know how to configure a SCTP node in NS2.29,the 
type of address is
>hierachical.I simulate the code in WLAN,there are 
some other
>nodes:CN,Router,BS.The MN node in my simulation is made up 
of three nodes,
>they are configured the same attribute.Please give me 
some advice 



[ns] R: two equal UDP CBR flows in droptail queue get different bandwidths?

2006-06-07 Thread Marco Fiore

Eduardo,

it could be a synchronization issue.
Try to avoid 
synchronization between flows
by setting the random flag of the cbr 
flows
to true: "$cbr_name set random_ 1".

Regards,

Marco Fiore

>
Messaggio originale
>Da: [EMAIL PROTECTED]
>Data: 7-giu-2006 
3.00 PM
>A: 
>Ogg: [ns] two equal UDP CBR flows in 
droptail queue get differentbandwidths?
>
>
>Hi there:
>
>I've set up 
this experiment. I have two source nodes S1 and S2 directly 
>connected 
to a node R1 and two destination nodes D1 and D2 also directly 
>connected to a node R2. Nodes R1 and R2 are connected. All links are 1 
Mb/s 
>Full duplex with DropTail. Now, here's the thing. I set up two 
flows, one 
>going from S1 to D1 and the other one form S2 to D2. Both 
flows are UDP CBR 1 
>Mb/s. Flow 1 starts at t=0 and finishes at t=20.  
flow 2 starts at t=10 and 
>stops at t=15. Sim runs from t=0 to t=25.
>
>I'd expect that at t=10 (when flow 2 starts), both flows would 
experience the 
>same amount of packet losses, so that each one would 
use about 0.5Mb/s of the 
>link between R1 and R2. But what really 
happens is that from t=10 to t=15, 
>flow 2 uses all bandwidth while 
flow 1 loses all packets. Since both flows 
>have the same parameters, 
shouldn't they receive the same share of bandwidth 
>during that 
period? Or am i missing something here?
>
>Thanks in advance.
>
>-- 
>Eduardo J. Ortega - Linux user #222873 
>"No fake - I'm a big fan of 
konqueror, and I use it for everything." -- Linus 
>Torvalds
>
>




[ns] R: Re: R: two equal UDP CBR flows in droptail queue get different bandwidths?

2006-06-08 Thread Marco Fiore

Eduardo,

the flag simply introduces a random delay to each packet
(i.
e. the CBR sources does not send 1 pkt ever T seconds,
but every 
T+random(-T/2,T/2). I am not sure about the random
interval, but this 
is the way it works, and it is useful to avoid
that the two sources 
transmit at the same *exact* time.

Regards,

Marco Fiore

>
Messaggio originale
>Da: [EMAIL PROTECTED]
>Data: 8-giu-2006 
5.09 AM
>A: "Marco Fiore"<[EMAIL PROTECTED]>
>Ogg: Re: R: [ns] two 
equal UDP CBR flows in droptail queue get different bandwidths?
>
>That 
does this flag do exactly?
>On Wednesday 07 June 2006 08:39, Marco 
Fiore wrote:
>> Eduardo,
>>
>> it could be a synchronization issue.
>> 
Try to avoid
>> synchronization between flows
>> by setting the random 
flag of the cbr
>> flows
>> to true: "$cbr_name set random_ 1".
>>
>> 
Regards,
>>
>> Marco Fiore
>>
>> >
>>
>> Messaggio originale
>>
>> >Da: [EMAIL PROTECTED]
>> >Data: 7-giu-2006
>>
>> 3.00 PM
>>
>> 
>A: 
>> >Ogg: [ns] two equal UDP CBR flows in
>>
>> 
droptail queue get differentbandwidths?
>>
>> >Hi there:
>> >
>> >I've 
set up
>>
>> this experiment. I have two source nodes S1 and S2 
directly
>>
>> >connected
>>
>> to a node R1 and two destination nodes 
D1 and D2 also directly
>>
>> >connected to a node R2. Nodes R1 and R2 
are connected. All links are 1
>>
>> Mb/s
>>
>> >Full duplex with 
DropTail. Now, here's the thing. I set up two
>>
>> flows, one
>>
>> 
>going from S1 to D1 and the other one form S2 to D2. Both
>>
>> flows 
are UDP CBR 1
>>
>> >Mb/s. Flow 1 starts at t=0 and finishes at t=20.
>>
>> flow 2 starts at t=10 and
>>
>> >stops at t=15. Sim runs from t=0 
to t=25.
>> >
>> >I'd expect that at t=10 (when flow 2 starts), both 
flows would
>>
>> experience the
>>
>> >same amount of packet losses, 
so that each one would
>>
>> use about 0.5Mb/s of the
>>
>> >link 
between R1 and R2. But what really
>>
>> happens is that from t=10 to 
t=15,
>>
>> >flow 2 uses all bandwidth while
>>
>> flow 1 loses all 
packets. Since both flows
>>
>> >have the same parameters,
>>
>> 
shouldn't they receive the same share of bandwidth
>>
>> >during that
>>
>> period? Or am i missing something here?
>>
>> >Thanks in advance.
>> >
>> >--
>> >Eduardo J. Ortega - Linux user #222873
>> >"No fake - 
I'm a big fan of
>>
>> konqueror, and I use it for everything." -- 
Linus
>>
>> >Torvalds
>
>-- 
>Eduardo J. Ortega - Linux user #222873 
>"
No fake - I'm a big fan of konqueror, and I use it for everything." -- 
Linus 
>Torvalds
>




[ns] R: Autorate in 802.11G

2006-06-13 Thread Marco Fiore

>However this modification is not working, I see that everytime
> the 
dataRate is at 54Mbps, including if I comment
>every line that define 
the dataRate, including the lines
>
> tcl.evalf("Mac/802_11 set 
dataRate_");
>if (strcmp(tcl.result(), "0") != 0) 
>   
bind_bw("dataRate_", &dataRate_);
>

This is strange: are you sure you 
recompiled ns
after changing the files?

Marco

>Messaggio 
originale
>Da: [EMAIL PROTECTED]
>Data: 13-giu-2006 
12.52 AM
>A: 
>Ogg: [ns] Autorate in 802.11G
>
>
>
>Hello.
>
>I´m working on 802.11g in ns-2.28. I need to make automatic
>change in dataRate depending in distance between tow nodes.
>
>I tried 
to make some changes on the on the mac-802_11.h and
>in the mac-802_11.
cc but they did not worked for me.
>
>I make some other changes in ns-
default.tcl and ns-mac.tcl
>for make that the 802.11g standard work in 
ns-2.28, this
>changes were succesful.
>
>In order to make the 
automatic change in dataRate I tried to
>make some changes in mac-
802_11.cc:
>
> Packet *p = Packet::alloc();
> 
> struct hdr_cmn *ch = 
HDR_CMN(p);   
> struct hdr_mac802_11 *dh = 
HDR_MAC802_11(p);
> struct hdr_arp *ah = HDR_ARP(p); 
>
> 
double tX_,tY_,tZ_,rX_,rY_,rZ_;
> nsaddr_t txid=index_;
>
nsaddr_t rxid;
> 
> MobileNode *tx_node= (MobileNode*)(Node::
get_node_by_address(txid));
> tx_node->getLoc(&tX_,&tY_,&tZ_); 
> 
> ch->tX()=tX_;  
> ch->tY()=tY_;  ch->tZ()=tZ_;
>   
> if (strcmp(packet_info.name(ch->ptype()), "ARP") == 0)
>  rxid=ah->arp_tpa;
> else
>  rxid=ETHER_ADDR(dh->dh_ra);  
> 
> MobileNode *rx_node= (MobileNode*)(Node::
get_node_by_address(rxid));
> rx_node->getLoc(&rX_,&rY_,&rZ_); 
> dist 
= sqrt((rX_ - tX_) * (rX_ - tX_) + (rY_ - tY_) * (rY_ - tY_)  + 
>(rZ_ 
- tZ_) * (rZ_ - tZ_));
>   
>
> // End of 
modification
>
>
> Tcl& tcl = Tcl::instance();
> tcl.evalf("Mac/802_11 
set basicRate_");
> if (strcmp(tcl.result(), "0") != 0) 
>  bind_bw("basicRate_", &basicRate_);
>  else
>   basicRate_ = 
bandwidth_;
>
>
> tcl.evalf("Mac/802_11 set dataRate_");
>if (strcmp(tcl.result(), "0") != 0) 
>   bind_bw
("dataRate_", &dataRate_);
>
> //Modification to obtain dataRate VS 
distance by Jonathan Lopez
>
>  else if (dist<=100 & dist>77)
>
>   
dataRate_ = 1*1e6;
>  else if (dist<=77 & dist>65)
>   dataRate_ = 
2*1e6;
>  else if (dist<=65 & dist>57)
>   dataRate_ = 6*1e6;
>  else 
if (dist<=57 & dist>54)
>   dataRate_ = 9*1e6;
>  else if (dist<=54 & 
dist>50)
>   dataRate_ = 12*1e6;
>  else if (dist<=50 & dist>42)
>   
dataRate_ = 18*1e6;
>  else if (dist<=42 & dist>35)
>   dataRate_ = 
24*1e6;
>  else if (dist<=35 & dist>23)
>   dataRate_ = 36*1e6;
>  else 
if (dist<=23 & dist>19)
>   dataRate_ = 48*1e6;
>  else
>   dataRate_ = 
bandwidth_;
>  
>
> // End of modification
>
>EOTtarget_ = 0;
>bss_id_ = IBSS_ID;
> //printf("bssid in constructor %d\n",
bss_id_);
>}
>
>
>Here I just tried to change dataRate depending the 
distance
>between the nodes, for make the change for every packet that
>is send.
>
>However this modification is not working, I see that every
>time the
> dataRate is at 54Mbps, including if I comment
>every line 
that define the dataRate, including the lines
>
> tcl.evalf("Mac/802_11 
set dataRate_");
>if (strcmp(tcl.result(), "0") != 0) 
>   bind_bw("dataRate_", &dataRate_);
>
>I can modify the dataRate with 
Mac/802_11 set dataRate_ xMb
>in my tcl script. But I need that the 
dataRate been modified
>for every packet that is send denpending in the 
distance.
>
>Can anyone tell me what is happend or how can I do the
>modifications that I need?.
>
>Thanks.
>  
> 
__
>Correo Yahoo!
>Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
>Regístrate ya - http://correo.yahoo.com.mx/ 
>




[ns] R: Turn Nodes on/off

2006-06-22 Thread Marco Fiore

Hi,

assuming that "violación de segmento" translates into "segment 
fault", this error is very often caused by a NULL pointer. I.e. look 
into your code for pointers, and check that you never fall in the case 
p->something, where p is NULL.

regards,

Marco Fiore

>Messaggio 
originale
>Da: [EMAIL PROTECTED]
>Data: 21-giu-2006 4.11 PM
>A: 
>Ogg: [ns] Turn Nodes on/off
>
>
>We have a system 
working and now we are trying to introduce an node on/off
>file. 
Unfortunately we are the following errors: 
>
> 
>
>Load File onoff1 
complete.
>
>NS-2 STARTS Simulation of prueba2.tcl
>
>Violación de 
segmento
>
> 
>
>Can any one help us??
>
> 
>
> 
>
>




[ns] R: Movements in wireless scenario

2006-06-24 Thread Marco Fiore

Andrea,

god is only used for statistical purposes.
If you are 
interested in generating nodes movement simply use the 'setdest' 
command, ignoring god. E.g.

$ns_ at 10.0 "$node_(0) setdest X Y S"

where X,Y are the coords of destination and S is the speed (in m/s).

bye,

Marco

>Messaggio originale
>Da: [EMAIL PROTECTED]
>Data: 24-giu-2006 10.59 AM
>A: "ns-users"
>Ogg: [ns] 
Movements in wireless scenario
>
>
>Hi
>I want to introduce movements 
in my wireless simulations (I'm using
>UM-OLSR), and for large numbers 
of nodes and movements I'm using SETDEST (
>ns-2.29\indep-utils\cmu-
scen-gen\setdest). An example of what this utility
>makes is following:
>
>"$node_(12) set X_ 365.446284881986
>$node_(12) set Y_ 
72.300575449718
>$node_(12) set Z_ 0.
>$god_ set-dist 0 1 
16777215
>$god_ set-dist 0 2 16777215
>$god_ set-dist 0 3 16777215
>$god_ set-dist 0 4 16777215
>$god_ set-dist 0 5 16777215
>$god_ set-
dist 0 6 16777215
>$god_ set-dist 0 7 16777215"
>
>
>I don't know how 
to implement SETDEST's movement because I don't know how to
>define 
"god_" variable, can you help me?
>
>Thank you very much, I'm sorry for 
my poor english.
>Andrea
>




[ns] Verbose simulation errors

2006-06-26 Thread Marco Fiore

Hi,

some days ago (probably after a recompile, but I am not sure about 
that),
my installation of ns-2 became 'mute' in presence of errors.
That is, previously it exited saying 'Segmentation fault', or printing 
something
like (just an example!):
--
 (_o38 cmd line 1)
invoked from within
"_o38 cmd set-datarate 11Mb"
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 "_o38" line 2)
(SplitObject 
unknown line 2)
invoked from within
"[$BS(0) set mac_(0)] set-
datarate $opt(datarate)"
(file "main.tcl" line 193)
--

Now, it simply exits without printing any info on the possible cause
of the error! I did not change the Makefile, nor I added strange
compilation flags...
I do not understand how I can turn ns-2 exiting to 
a 'verbose' mode
again, so that information on the cause of the error 
are shown again
when simulation stops. Does anyone knows the reason and 
the solution?

Any help is appreciated!

Marco



[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: 
>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] ns-2 wireless update patch avaialble

2006-07-04 Thread Marco Fiore

Hi all,

I'd like to inform the ns-2 users community of the release of 
a patch improving
the original ns-2 support for wireless simulations. 
The patch groups freely
available contributions provided by Wu Xiuchao, 
Ratish J. Punnoose, David
X. Wei and Felix Schmidt-Eisenlohr, adapted 
to ns-2.29, plus original contribution.
The patch adds the following 
features to ns-2.29:
 - realistic channel propagation
 - ricean 
propagation model
 - SNOOPy calendar scheduler
 - several 802.11 bug 
fixes
 - mulitple data transmission rates support
 - Adaptive Auto Rate 
Fallback (AARF)
The AARF algorithm was designed by the Planete research 
group at INRIA.
Full references and installation instructions can be 
found in the included read.me
file. An example Tcl script to test the 
patch is provided.

The patch is available for download at
http://www.
reti.polito.it/fiore

Regards,

Marco Fiore



[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: 
>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]
>




[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: 
>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] R: 802.11 dynamic bit rate change

2006-07-11 Thread Marco Fiore

Guillermo,

ns-2 does not offer native support for such phenomenon.
You 
can have a look at the patch at  www.reti.polito.it/fiore
which adds 
realistic propagation and ARF support.

Marco

>Messaggio 
originale
>Da: [EMAIL PROTECTED]
>Data: 11-lug-2006 11.50 AM
>A: 
"Ns Users"
>Ogg: [ns] 802.11 dynamic bit rate change
>
>
>Hi,
>
>In real 802.11b and 802.11g wireless cards the bit rate 
changes dynamically
>depending on the channel conditions. If the card 
is working at 54Mbps and
>is  receiving no ACK's from the receiver it 
will automatically switch to a
>lower bit rate. Modulations used by 
lower bit rates are stronger against
>errors, so the link may improve 
its performance at a lower speed (at least
>some packets will arrive). 
There are some algorithms that rule the bit rate
>such as the one used 
by the mad-wifi driver for atheros chips.
>I would like to simulate 
this behavior in ns2. I'm new using ns2 and I was
>not able to find the 
code which simulates this behaviour, is this feature
>implemented on 
ns2? Is anybody else interested on this topic?
>
>Thanks,
>
>Guillermo
>




[ns] R: Calculating Mean end-to-end delay.

2006-07-17 Thread Marco Fiore

Nicholas,

I think the right way would be:

mean = [mean * (total_pkts-
1) + curr_pkt_delay] / total_pkts

where total_pkts represents the 
number of packets received, including
the current one (i.e., that 
determining the curr_pkt_delay contribution).

Regards,

Marco

>
Messaggio originale
>Da: [EMAIL PROTECTED]
>Data: 17-
lug-2006 3.06 AM
>A: 
>Ogg: [ns] Calculating Mean end-
to-end delay.
>
>
>Hello,
>
>i have created an agent which allows me to 
record the end-to-end delays of
>packets arriving at a specific node. 
What i want to do is to calculate the
>mean end-to-end delay at 
specific time intervals and later on output it on a
>trace file.
>
>To 
calculate the mean end-to-end delay i use the following:
>
>mean=
(mean+curr_pkt_delay)/total_pkts.
>
>I do this every time a new packet 
arrives.
>
>Is this the correct way of calculating mean end-to-end 
delay or i am totally
>wrong here?
>
>Regards,
>
>-- 
>Nicholas 
Loulloudes
>
>Postgraduate at Communication Networks and Software.
>
>BSc in Computer Science.
>




[ns] R: how to implement DCF in NS2

2006-07-23 Thread Marco Fiore

Hi,

if you mean 802.11 DCF, it is already implemented.
See the ns 
manual.

bye,

Marco

>Messaggio originale
>Da: 
[EMAIL PROTECTED]
>Data: 22-lug-2006 5.40 PM
>A: 
>Ogg: [ns] how to implement DCF in NS2
>
>
>Hi
>  I want to implement 
DCF in NS2, can anybody help me in this regard.
>   
>  thank you very 
much.
>   
>  BYE
>
>   
>-
>See the 
all-new, redesigned Yahoo.com.  Check it out.
>




[ns] R: How to generate ocean node movement for wireless scenarios

2006-08-31 Thread Marco Fiore

Hi,

look for references to the 'setdest' command, which allows you
to 
define nodes movements during simulation.

Marco

>Messaggio 
originale
>Da: [EMAIL PROTECTED]
>Data: 30-ago-2006 7.02 PM
>A: 
>Ogg: [ns] How to generate ocean node movement 
for wireless scenarios
>
>
>Hi all,
>   i'm trying to generate 
a scenario for node movement in an ocean 
>environment. I've got a sets 
of data that is assocated with time, Longitude, 
>Latitude, velocity ( 
U (cm/s) & V (cm/s)). Can anyone advice me how this can 
>be done?
>
>Thanks,
>Kwang Yong
>
>
>




[ns] R: Re: Measuring physical data rate for wireless medium

2006-09-14 Thread Marco Fiore

Hi,

you could have a look at the wireless patch at
http://www.reti.
polito.it/fiore

regards,

Marco

>Messaggio originale
>Da: 
[EMAIL PROTECTED]
>Data: 14-set-2006 8.22 PM
>A: "Piyush 
Agrawal"<[EMAIL PROTECTED]>
>Cc: 
>Ogg: Re: [ns] 
Measuring physical data rate for wireless medium
>
>
>ns does not 
currently model such fluctuations (i.e. ARF,RBAR, or OAR).
> the data 
rate used is always the same.
>
>On 9/14/06, Piyush Agrawal  wrote:
>>
>> Hi all,
>>
>> I wish to implement a 
feature for 802.11, in which I need to know the
>> current physical 
data rate of the wireless medium form the C++ code. I know
>> that in 
the real world scenario, the data rate fluctuates. Does ns model
>> 
such fluctuations and can the changing rates be measured?
>>
>> Thanks,
>> Piyush
>>
>> --
>> Piyush Agrawal
>> 4th Year Undergraduate Student,
>> Department of Computer Science & Engineering,
>> IIT Kanpur, India
>>
>
>