[ns] NS dont check if i misspelled code?

2006-07-17 Thread zenith siea

i have some sims, one with tcl scripts:
.
Agent/TCP set tcp_tick_ 0.01
.
the other with tcl scripts:

Agent/TCP set tcp_tick_ 0.10

but the trace files
out are exactly the same, i look into manal and ns code, it comes out
to be spelled as "Agent/TCP
set tcpTick_ 0.01 " while not "Agent/TCP set tcp_tick_ 0.01 ", but, why dont
ns check if i misspelled some word in tcl scripts? like the above, if i
havent do the 2 sims to see whether they are same, maybe untill now i have
not discovered that.

for the more, i wrote some word freely:
..
Agent/TCP set VCbax_ 135
..
ns executes as normally, hahaha


[ns] some tests failed while using "./validate"

2006-07-17 Thread Michael Siu

Hi

I have installed ns 2.29 using cywgin on WINDOWS XP. I then added the paths 
using:

export 
PATH=$PATH:/ns-allinone-2.29/bin:/ns-allinone-2.29/tcl8.4.11/unix:/ns-allinone-2.29/tk8.4.11/unix
export 
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/ns-allinone-2.29/otcl-1.11:/ns-allinone-2.29/lib
export TCL_LIBRARY=$TCL_LIBRARY:/ns-allinone-2.29/tcl8.4.11/library

After that I ran the validation suite using ./validate. Most of the tests 
passed. However, the following tests failed:

test-all-simultaneous
test-all-wireless-tdma
test-all-smac-multihop (this is listed as a bug for ns 2.29)

I have tried installing ns on a different computer and the same thing 
happened.

Does anyone have a solution or have the same problem? In addition, anyone 
know what "test-all-simultaneous" is for?

Thanks in advance.

Michael

_
Be the first to hear what's new at MSN - sign up to our free newsletters! 
http://www.msn.co.uk/newsletters



[ns] Wireless simulation, TCP window size problem (fwd)

2006-07-17 Thread Tarun Saxena



I am simulating a wireless network with nodes arranged in a line

A-B---C---D..

There is a FTP connection from the first node to the last node. The distance 
between the nodes is 200m, as per Pt_ parameter the range is 250m. The 
simulation runs flawlessly but the results are bizarre. The throughput first 
increses with the increasing TCP window size, and then drops. The drop goes 
beneath the thoroughput for window size 1. This is absurd as throughout for the 
TCP window size of 1 should be the lower bound.

I am binding the window size by maxcwnd_ parameter, is that correct? Is cwnd_ 
parameter in terms of number packets? Why is cwnd_ parameter a double?

This how I bind the parameter:

set tcp [new Agent/TCP/Newreno]
$tcp set class_ 2
$tcp set packetSize_ 1024
$tcp set maxcwnd_ 5


System parameters: RedHat FC4 (kernel 2.6), ns-2.28

Please help
Tarun



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

2006-07-17 Thread Nicholas Loulloudes

Thank you Marco, i think the problem was tha t i didn't multiply with the
previous number of pkts.

Regards.

On 7/17/06, Marco Fiore <[EMAIL PROTECTED]> wrote:
>
> 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.
> >
>
>
>


-- 
Nicholas Loulloudes

Postgraduate at Communication Networks and Software.

BSc in Computer Science.


[ns] Implementing "via" command in C++

2006-07-17 Thread Nicholas Loulloudes

Hello,

I want to implement a  "via" command in my NS which will specify which will
be the next hop a packet will take enroute to destination. I want to do this
because i want to specify different hops for different packet flows.

I was thinking having something like this.

$ns connect $udp0 $null0 via n(2)

Can someone point me to the write way from where should i start my research
for doing this?

Regards,



-- 
Nicholas Loulloudes

Postgraduate at Communication Networks and Software.

BSc in Computer Science.


[ns] creation of a tree based routing protocol

2006-07-17 Thread stella kafetzoglou

Hi to everyone,
i would like to run a wireless simulation where at the beggining of it  
I would construct a routing tree rooted
at a specific node. In order to achieve that, I would like all the 
nodes  to send packets  to their neighbors in order to
find out their neighbors. In what level should they send packets (IP, MAC)?
Do I have to change something in the ns2 code or I have to write a 
protocol of my own?
Any suggestions or guideness appreciated.

Thanks

Stella



[ns] Packet Simulating

2006-07-17 Thread William . Ampeh


Hello,

Has anyone done packet simulation?  Where can I find a sample code on
packet simulation.

Thank you

__

William Ampeh



[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] implementing a new mac protocol

2006-07-17 Thread Buvaneshwari M



is there a place where you have procedure to implement a mac protocol in 
ns2.29. first of all i would like to be clear with the usage of timers in ns. 
any hints are accepted with thanks. thank you once again. 



[ns] Unable to run mac-test.tcl !

2006-07-17 Thread Farid Behnia

Hi,

As a newbie to NS I'm facing lots of strange things.

I'm trying to run mac-test.tcl script. But I get the following error:

[EMAIL PROTECTED]:~/ns-allinone-2.29 /ns-2.29/tcl/ex$ ns mac-test.tcl -node 10

no files matched glob pattern "out.*"
while executing
"glob $opt(tr).*"
invoked from within
"if [file exists $opt(tr)] {
catch "exec rm -f $opt(tr) $opt(tr)-bw [glob $opt(tr).*]"
}"
(procedure "create-trace" line 4)
invoked from within
"create-trace"
invoked from within
"set trfd [create-trace]"
(file "mac-test.tcl " line 150)

My system is kubuntu 5.12 and I've validated the whole installation of NS.
Does this have to do any thing with replacement of Mac/Csma/Cd with
Mac/802_3 ?

I don't have much of a clue of what to do.

I would appreciate any help!


[ns] Problem with 'make' for creating node movement!

2006-07-17 Thread sara MA

Hello everybody:

I'm following the ns tutorial to create node-movement for wireless scenario.

I already run configure command under ns directory, but when I run 'make' 
command under indep-utils/cmu-scen-gen/setdest directory, I get this error:

make: Nothing to be done for 'all'

is it familiar with any of you?

I appriciate any kind of help regarding this matter.

Thanks,
Sara

_
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/