[ns] is there in NS Poisson Process function for generating random number??

2007-04-06 Thread Amin Irandoost

hi all
is there in NS Poisson Process function for generating random number??

I'm waiting for reply
Thanks in advance

-- 
Amin Irandoost


[ns] Problems with Simulating MPEG4 Streaming using smallko's work

2007-04-06 Thread Merup Lathia


Hello Sir,

I am currently doing a project on Multimedia Streaming and want to simulate
it using NS2. I searched the Mailing Archives and I found some previous work
done in this area by 'smallko'.

I got his files 'mpeg4_traffic.cc' and all. But I am facing some problems
using it. I followed the following steps:

1.) Downloaded the files. Saved the file 'mpeg4_traffic.cc' and the folder
'Video_Model' in a new folder named 'MPEG4' in the ns-2.31 directory.

2.) Added the following in the MakeFile
'MPEG4/mpeg4_traffic.o \'
under 'OBJ_CC'

3.) Performed 'make depend', 'make' and 'make install' in the ns-2.31directory.

4.) Then, I used the file 'part-of-example.txt ' to write a TcL code and
saved it in ns-2.31/tcl/lib

5.) Tried to run this file, but gives me the following error:

invalid command name Application/Traffic/MPEG4
   while executing
Application/Traffic/MPEG4 create _o84 
   invoked from within
catch $className create $o $args msg
   invoked from within
if [catch $className create $o $args msg] {
if [string match __FAILED_SHADOW_OBJECT_ $msg] {
delete $o
return 
}
global errorInfo
error class $...
   (procedure new line 3)
   invoked from within
new Application/Traffic/MPEG4
   invoked from within
set vdo [new Application/Traffic/MPEG4]
   (file part-of-example.tcl line 79)

I have attached the TcL code which I was trying to run. You can see traces
of Mark Claypool's Simple Simulation Example in the code. :)

Hoping for a swift reply. Thank You.

P.S.: I am using NS-2.31. Output of uname -a
Linux merup-desktop 2.6.15-26-386 #1 PREEMPT Thu Aug 3 02:52:00 UTC 2006
i686 GNU/Linux


[ns] where to define the trace file format?

2007-04-06 Thread taraka praveen


Hi friends,

I have one doubt regarding trace file format.

we have 3 different type of trace file formats.

1) Wired
2)simple wireless (old)
3)new wireless format


In our scripting language(.tcl files) where we have to
define about the trace file format ?

please help me..
Thanks in advance
TarakaGoud



__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/



[ns] Even deletion of Mac folder doesn't effect ?

2007-04-06 Thread taraka praveen


Hi friends,

 I am working on 802.11 WLAN.In the scripting
languages we are using 

 Mac/802_11

 Mac/Simple

 Mac/Csma-ca

I am thinking like this By defining this Mac in .tcl
code its getting .cc files back ground from the mac 
folder.
But i removed mac folder from the ns-2.28 directory
and i used Mac/802_11 in the .tcl code.

Even i was able to get the output without any mac
folder presence

And i tried by commenting the line mac_802_11.o line
in the Makefile again same thing the code was
running ...

please tell whats the reason behind that ...

Thanks in  Advance,
TarakaGoud



__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/



Re: [ns] Mapping of the entire Source Tree

2007-04-06 Thread Timo Reimann

Murali P wrote:
 Is there any documentation available for browsing the entire source code.
 I
 know NS Notes is a good place to start off with, but an additional
 material
 that gives a brief overview of the location of various stuff in a central
 location is going to be extremely helpful for researchers in my opinion.

There's an incomplete class hierarchy at NS by example

http://nile.wpi.edu/NS/

in the `Network Components' section (direct link:


http://nile.wpi.edu/NS/components.html )

In addition, if you go over the manual and/or do some coding yourself
you'll quickly find out that all the C++ stuff is in the ns directory (and
in sub-directories thereof) while the tcl-related code resides in ns/tcl/.

It should easily be possible to figure out what's within a directory by
its name. There seem to be some exceptions, however: for instance, the UDP
implementation -- a classical agent -- is located within ns/*apps*.

Another thing that might be necessary to determine is whether
implementations are part of OTcl or C++ or both. For instance, the
web-cache client and server are available in OTcl only while its transport
wrapper is part of C++.


HTH,

--Timo






[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: ns-users@ISI.EDU
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: ns-users@ISI.EDU
Ogg: [ns] why RTP header in 
UDP#39;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] analyse trace file- packet delay

2007-04-06 Thread Agrawal, Rinky \(UMKC-Student\)

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] how can I graphically show ad hoc mobile nodes using nam?

2007-04-06 Thread seba

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/





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

2007-04-06 Thread Timo Reimann

Hi Marco,


Marco Fiore wrote:
 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.

You seem to be right, at least that's what I can say from taking a closer
look at UdpAgent::sendmsg(int, AppData*, const char*). The size is noted
down in the common header (hdr_cmn) as given to sendmsg() in the first
paremter (nbytes), the RTP header's size is not being put into
consideration.


Thanks for the explanation,

--Timo



 Messaggio originale
Da: [EMAIL PROTECTED]
Data: 4-apr-
 2007 4.37 PM
A: ns-users@ISI.EDU
Ogg: [ns] why RTP header in
 UDP#39;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-
usersns-users@ISI.EDU
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: ns-users@ISI.EDU
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] help needed to solve segmentation fault problem

2007-04-06 Thread abu shahriar

Hi all,

I am getting segmentation fault when I call send(p,0) to broadcast a packet
from my c++ code in ns. Can anyone please help me to find out why this
happe?


Re: [ns] help needed to solve segmentation fault problem

2007-04-06 Thread Timo Reimann

abu shahriar wrote:
 I am getting segmentation fault when I call send(p,0) to broadcast a
 packet
 from my c++ code in ns. Can anyone please help me to find out why this
 happe?

Install gdb or ddd, make sure you compiled ns with debugging symbols,
start your debugger and let the program crash. Check the backtrace to see
at which point it stopped working, set a breakpoint and start
investigating while you're stepping through the code from that point on.

If you've never worked with gdb/ddd before, it might look a little bit
difficult at first but it's an absolute necessity for any serious
programmer to master it. There are some excellent tutorials out there. As
a starter, I'd recommend these

http://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Debug.html
http://www.unknownroad.com/rtfm/gdbtut/gdbtoc.html

for gdb and this one

http://heather.cs.ucdavis.edu/~matloff/Debug/Debug.pdf [PDF slideshow]

for ddd.


Good luck!

--Timo



[ns] how to dynamically attach (UDP) agents to nodes from C++?

2007-04-06 Thread Timo Reimann

Hello,

I'm currently in need of extending ns-2 with an application that requires
a lot of UDP connections netween nodes.

Instead of statically defining these, I thought about setting them up and
tearing down dynamically within the C++ code of the application I've
started to implement. The alternative would be to use a fully-meshed UDP
topology created in OTcl but this would pretty much clutter the
configuration and use up a lot of ressources I'd only need at certain
times.

I've been trying to figure out how

[ns-object] attach-agent [some node] [some UDP agent]

works internally and have tracked it down to ns/tcl/lib/ns-node.tcl but I
don't quite understand how it relates to the compiled hierarchy (although
I've been reading the relevant parts of the ns-2 manual several times) and
whether it's possible to do the same from within the C++ code at all.

I wouldn't mind if I lost accessibility from OTcl by doing this from C++
as the connections will only be important to the compiled hierarchy.

Glad for any hint regarding how to do the `attach-agent' line in C++.


Cheers,

--Timo



Re: [ns] how to dynamically attach (UDP) agents to nodes from C++?

2007-04-06 Thread Timo Reimann

Timo Reimann wrote:
 I'm currently in need of extending ns-2 with an application that requires
 a lot of UDP connections netween nodes.

 Instead of statically defining these, I thought about setting them up and
 tearing down dynamically within the C++ code of the application I've
 started to implement. The alternative would be to use a fully-meshed UDP
 topology created in OTcl but this would pretty much clutter the
 configuration and use up a lot of ressources I'd only need at certain
 times.

Actually, I've been thinking about this some more and realized that it
would suffice if I could just do the connect part as in

   [simulator object] connect [UDP object #1] [UDP object #2]

dynamically within C++.

Problem that arises with this issue, however, is: how'd I get the object
numbers in the compiled hierarchy? I suppose I need to work with node IDs
or similar but I haven't manage to figure out the details. Basically, all
I need is an address such that I can send my custom AppData objects to
another application. There's nsaddr_t but I don't know how to derive that
from the node name. (which is all I've got from OTcl and is the same as
this-name_, e.g. _o12.)


--Timo



Re: [ns] how to dynamically attach (UDP) agents to nodes from C++?

2007-04-06 Thread Timo Reimann

Hi Matthias,


Matthias Kuhnert wrote:
 You can call and evaluate tcl code within the c++ part via
 tcl.evalf()...
 This combined with some function for the node-id and you should have,
 what you need.
 There have been quite a few questions posted before around this topic so
 you should be
 lucky on searching the mailinglist.

I've been thinking about that as well but found it to be a clumsy
solution, especially when talking large-scale. In addition, I'd need to
manage those _oXYZ strings (if that's what you mean by node-id) instead of
easier numbers.

By the way, just some minutes ago I've figured that agent.cc is already
prepared for dynamic connections but needs some member functions to be
implemented first. (like Agent::connect.) This seems to be the canonical
way although I couldn't find anything about it in the mailing archives.


 Doubting though the use behind it - if you have to send udp traffic you
 could save yourself
 some time by defining a new application/agent rather than trying to send
 messages
 via the node itself...

Not sure if I get you right here. What do you mean by send messages via
the node? Could you elaborate on this?

Maybe I should give some more information on my implementation (which is a
DNS model): I'm basically trying something similar to web-cache or the RTP
example from NS by example but doing most of the stuff in C++. I only
want to use OTcl for defining resolvers, name-servers, and what kind of
DNS mappings the nodes should request for or provide, respectively.

Actually, I started off by coding my own UDP implementation but quickly
stopped doing that when I understood how web-cache's HttpData worked. So I
made my own DNS packet by inherenting from AppData and passed that to the
generic UDP implementation. Sending this data structure and and check it's
been received by doing a simple printf works fine so far.

Since I've already spent quite a lot of time getting in touch with ns-2
and refining my design continuously, I'd be glad to hear anything you
might have to share.


Cheers,

--Timo




[ns] TORA Problem

2007-04-06 Thread Mathieu GALLISSOT

Hi guys,
 
I'm using ns2.31 on a ubuntu system for evaluate ad hoc routing performance. 
I've got a problem with the allinone package, the tora test fails. I use the 
./configure --enable-debug option, and I don't have any faults when I make the 
package.
 
I saw many people having this problem, most of them just gave back, others 
don't share their solution (if they have one). Can this issue be solved once 
for good ?
 
Cheers,
 
Mathieu
_
Essayez Live.com et créez l'Internet qui vous ressemble : infos, sports, météo 
et bien plus encore !
http://www.live.com/getstarted