[ns] share a debug tools packet

2007-09-05 Thread Ye YiBin

Recent release of ns-2.32 enable Tk for ns-2. Patches contributed by
Pedro Vale Estrela: Pedro's debugging page:
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging2.html

Here's a patch that I created for enabling all the debug
features,described on the page above, only with a few commands.

Extract it in the ns-allinone-2.32 directory,
cd ns-allinone-2.32/debug-allinone
./debuginstall
cd ..
./install
source debug-allinone/addpath

(You can run "debuginstall" either before or after installing ns-allinone-2.32)
After these step, you can do both c++ debugging and tcl debugging.
Further guide after installing the debug tools:
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging3.html

--
Regards
-Ye


Re: [ns] share a debug tools packet

2007-09-05 Thread Pedro Estrela

hi!

this is a very welcome and interesting patch.
I'll test it on monday and mention on my web page

If it gest sufficient test, I can try to push it to the developers into
v2.33

regards
pedro vale estrela


On 9/5/07, Ye YiBin <[EMAIL PROTECTED]> wrote:
>
> Recent release of ns-2.32 enable Tk for ns-2. Patches contributed by
> Pedro Vale Estrela: Pedro's debugging page:
> http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging2.html
>
> Here's a patch that I created for enabling all the debug
> features,described on the page above, only with a few commands.
>
> Extract it in the ns-allinone-2.32 directory,
> cd ns-allinone-2.32/debug-allinone
> ./debuginstall
> cd ..
> ./install
> source debug-allinone/addpath
>
> (You can run "debuginstall" either before or after installing
> ns-allinone-2.32)
> After these step, you can do both c++ debugging and tcl debugging.
> Further guide after installing the debug tools:
> http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging3.html
>
> --
> Regards
> -Ye
>
>


[ns] Relation between cwnd and rate?

2007-09-05 Thread Jasin Zujovic

I'm simulating CUBIC using TCP Linux and tracking cwnd and sending
rate but the results are somewhat puzzling.

I would expect the sending rate to equal

cwnd * MSS / delay

but it doesn't. It appears to be correct in itself (~90% of the link
bandwidth), but the formula above suggest a rate about 3.5 times
higher for all my experiments, with varying bandwidth, number of TCP
flows and delay.

What am I missing?


-- 
Jasin



[ns] Agent/TCP and Agent/TCPSink/Sack1/DelAck parameters

2007-09-05 Thread Jasin Zujovic

Can someone help me with an explanation of the following parameters of
the TCP agent:

timestamps_
partial_ack_

And for the sink agent:

generateDSacks_
ts_echo_rfc1323_
interval_

Pointing me at appropriate documentation would be just as appreciated,
but I've had no luck finding it on my own.


-- 
Jasin



[ns] Need help simulating model

2007-09-05 Thread Brenda Lindsay Williams

Hi I'm trying to simulate a core network and carry out measurements based on
VoIP QoS parameters...
I wanna connect 3-4 WAN models to a core network which consists of
routers...
Can someone pls give me an idea of how to go about this using NS-2...
what would my tcl scripts look like?
how many nodes do i need for each WAN and how can I interconnect them to
depict a proper WAN model?
how can I use tcl scripts to configure a core network which consists of
routers and manage traffic?
Please someeone help.
Thanks

Regards,

Brenda


[ns] wpan 802.15.4 MCPS_DATA_request

2007-09-05 Thread Francesco Magistro

Have anybody ever successfully used this primitive?!
It's a couple of weeks that I'm trying to transfer my own data packet using 
that but not a packet leaves my nodes!
Please help me

_
Crea GRATIS i tuoi biglietti da visita su Windows Live Messenger! 
http://www.messenger.it/biglietti_da_visita.html



Re: [ns] implemention of wireless ad hoc network with ns2

2007-09-05 Thread Hui Yang

Take a look at this website. It's very helpful
http://hpds.ee.ncku.edu.tw/~smallko/ns2/Evalvid_in_NS2.htm

Best,

Hui



>From: Bin Zhang <[EMAIL PROTECTED]>
>To: ns-users@ISI.EDU
>Subject: [ns] implemention of wireless ad hoc network with ns2
>Date: Wed, 05 Sep 2007 17:45:17 +0200
>
>
>hi dear users,
>
>i would like to do some research with regard to video streaming through
>the wireless ad hoc network. Because I am Video-Coder and didn't have
>any experience to implement network with NS2.  So it would be very
>helpful, if anybody could give some some ideas about the implementation
>or even some script at hand to support my research?   I am appriciated
>for any kind of response.
>
>thanks,
>
>B. Zhang
>

_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



[ns] implemention of wireless ad hoc network with ns2

2007-09-05 Thread Bin Zhang

hi dear users,

i would like to do some research with regard to video streaming through 
the wireless ad hoc network. Because I am Video-Coder and didn't have 
any experience to implement network with NS2.  So it would be very 
helpful, if anybody could give some some ideas about the implementation 
or even some script at hand to support my research?   I am appriciated 
for any kind of response.

thanks,

B. Zhang



Re: [ns] For Throughput comparison of TCP Reno, Tahoe , SACK

2007-09-05 Thread aservin


  I am just reading this document to get some data to calculate RTT in
TCP. I think that you may find it helpful too.

http://www.netlab.hut.fi/~jmantti3/pubs/special_study.pdf

-as

>
> Hello I m a novice NS user. If i want to see some throughput
> comparison of TCP Reno, Tahoe, SACK  --- which steps i need to follow.
>  If someone can help me providing some good URL for learning my
> queries i will be grateful.
>
> [EMAIL PROTECTED] wrote:
> Welcome to posting to the ns-users mailing list!
>
> We automatically send this message to every new person who sends mail
> to the list. You should only receive it once. My apologies if the
> program contacts you twice, perhaps because you have multiple e-mail
> addresses or send mail from multiple machines.
>
> If you are an experienced ns-user who simply has not posted since we
> started using this responder, our apologies for inconveniencing you
> with this message. This message is intended to help inform users and
> cut down on redundant posts, which benefits everyone.
>
> Please look at the attached list of ns Frequently Asked Questions.
> If it answers your question, great! You're done.
> If not, please RE-SEND your original message to [EMAIL PROTECTED]
> A copy of your original message is included below for reference.
>
> You will NOT have to do re-send your message every time you post, only
> the FIRST time you send from a new account. The goal is to quickly
> help new users find the FAQ (hopefully answering their question).
>
> Thanks,
> -the ns development team
>
>
> 
>
>
> The Network Simulator ns-2: Frequently Asked Questions
>
> (This FAQ is also on the web at
> http://www.isi.edu/nsnam/ns/ns-faq.html.)
>
> * _Where do I get ns?_
>
>>From the ns web site at http://www.isi.edu/nsnam/ns/ns.html and
> the download page http://www.isi.edu/nsnam/ns/ns-tests.html.
>
> * _What platforms does ns run on and what kind of hardware do I
> need?_
>
> Please see "where to start" on the building ns web page:
> http://www.isi.edu/nsnam/ns/ns-build.html#start.
>
> * _What should I do if I have trouble downloading/extracting ns?_
>
> This question is answered in detail at
> http://www.isi.edu/nsnam/ns/ns-problems.html#downloading.
>
> * _What should I do if I encounter problems building ns?_
>
> Check:
> 1. the README that comes in the distribution (very brief),
> 2. the "installation problems, bug fixes and help" web page
> http://www.isi.edu/nsnam/ns/ns-problems.html,
> 3. the archives of the ns-users mailing list
> http://www.isi.edu/nsnam/ns/ns-lists.html,
> 4. post a bug report (see below)
> http://www.isi.edu/cgi-bin/nsnam/reportbug.cgi.
>
> * _What do I do after I successfully build ns?_
>
> + Put the path to your ns executable into your PATH environment
> + Put the path to your otcl into your LD_LIBRARY_PATH
> environment
> + Put the path to your tcl library into your TCL_LIBRARY
> environment
>
> * _Where can I find documentation for ns?_
>
> All documentation is linked from the main ns web page
> http://www.isi.edu/nsnam/ns/. Documentation includes a tutorial
> (originally from Marc Greis) and a reference manual (ns notes and
> documentation).
>
> * _Words, words, words... that documentation is nice, but where are
> some sample scripts I can start from?_
>
> Many sample scripts can be found in the ns distribution in
> ~ns-2/tcl/ex and ~ns-2/tcl/test.
>
> * _What protocols does ns support?_
>
> A lot! Almost all variants of TCP, several forms of multicast,
> wired networking, several ad hoc routing protocols and propagation
> models (but not cellular phones), data diffusion, satellite, and
> other stuff. See the documentation (described above) for details,
> or download ns and look.
>
> * _How do I know that ns correctly implements these protocols?_
>
> Ns has validation tests that cover many protocols, see
> http://www.isi.edu/nsnam/ns/ns-tests.html. However, ultimately
> users are responsible for verifying that ns is accurate for their
> purposes---since we cannot foresee all the ways ns may be used, we
> cannot test all cases with all inputs.
>
> * _Are there any contributed/additional protocols not in the main
> distribution?_
>
> Yes, please see the contributed code web page
> http://www.isi.edu/nsnam/ns/ns-contributed.html. The mailing list
> archives can also be helpful (see below).
>
> * _How should I get started doing something (like implementing a new
> protocol or trying an experiment)?_
>
> We recommend that you look through the tutorial (see
> documentation, above), then start with an example program that is
> most similar to yours (in the tutorial, or in tcl/ex or tcl/test
> in the distribution), and then start changing things.
>
> * _What should I do to compile ns to reflect my changes if I've
> modified some .cc or .h files?_
>
> go to ns directory and run "make" or "make depend; make"
>
> * _How do I subscribe to the ns-users mailing list? How do I search
> old list archives? I can't take any more---how 

[ns] Simulate multihoming in wireless environment

2007-09-05 Thread Nitin Maslekar

Hi All NS users.

I was trying to simulate wired sum wireless scenario in NS2 using multimode
sctp as the transport protocol..
But when i sumulate it i get errors...
Can anyone help

thanks in advance

Nitin


Re: [ns] For Throughput comparison of TCP Reno, Tahoe , SACK

2007-09-05 Thread WangYaogong

There is a classic paper on this: "Simulation-based Comparisons of Tahoe, Rent, 
and SACK TCP" by Kevin Fall and Sally Floyd.
 
And the scripts used in this paper seem to be available in the ns package.



> Date: Tue, 4 Sep 2007 22:31:09 -0700> From: [EMAIL PROTECTED]> To: 
> ns-users@ISI.EDU> Subject: [ns] For Throughput comparison of TCP Reno, Tahoe 
> , SACK> > > Hello I m a novice NS user. If i want to see some throughput> 
> comparison of TCP Reno, Tahoe, SACK --- which steps i need to follow.> If 
> someone can help me providing some good URL for learning my> queries i will 
> be grateful.> > [EMAIL PROTECTED] wrote: > Welcome to posting to the ns-users 
> mailing list!> > We automatically send this message to every new person who 
> sends mail> to the list. You should only receive it once. My apologies if 
> the> program contacts you twice, perhaps because you have multiple e-mail> 
> addresses or send mail from multiple machines.> > If you are an experienced 
> ns-user who simply has not posted since we> started using this responder, our 
> apologies for inconveniencing you> with this message. This message is 
> intended to help inform users and> cut down on redundant posts, which 
> benefits everyone.>!
  > Please look at the attached list of ns Frequently Asked Questions.> If it 
answers your question, great! You're done.> If not, please RE-SEND your 
original message to [EMAIL PROTECTED]> A copy of your original message is 
included below for reference.> > You will NOT have to do re-send your message 
every time you post, only> the FIRST time you send from a new account. The goal 
is to quickly> help new users find the FAQ (hopefully answering their 
question).> > Thanks,> -the ns development team> > > 
> > > The Network Simulator ns-2: 
Frequently Asked Questions> > (This FAQ is also on the web at> 
http://www.isi.edu/nsnam/ns/ns-faq.html.)> > * _Where do I get ns?_> > >From 
the ns web site at http://www.isi.edu/nsnam/ns/ns.html and> the download page 
http://www.isi.edu/nsnam/ns/ns-tests.html.> > * _What platforms does ns run on 
and what kind of hardware do I> need?_> > Please see "where to start" on the 
building ns web page:> http://www.is!
 i.edu/nsnam/ns/ns-build.html#start.> > * _What should I do if I have t
rouble downloading/extracting ns?_> > This question is answered in detail at> 
http://www.isi.edu/nsnam/ns/ns-problems.html#downloading.> > * _What should I 
do if I encounter problems building ns?_> > Check:> 1. the README that comes in 
the distribution (very brief),> 2. the "installation problems, bug fixes and 
help" web page> http://www.isi.edu/nsnam/ns/ns-problems.html,> 3. the archives 
of the ns-users mailing list> http://www.isi.edu/nsnam/ns/ns-lists.html,> 4. 
post a bug report (see below)> http://www.isi.edu/cgi-bin/nsnam/reportbug.cgi.> 
> * _What do I do after I successfully build ns?_> > + Put the path to your ns 
executable into your PATH environment> + Put the path to your otcl into your 
LD_LIBRARY_PATH> environment> + Put the path to your tcl library into your 
TCL_LIBRARY> environment> > * _Where can I find documentation for ns?_> > All 
documentation is linked from the main ns web page> 
http://www.isi.edu/nsnam/ns/. Documentation includes a tutorial> (originally 
fro!
 m Marc Greis) and a reference manual (ns notes and> documentation).> > * 
_Words, words, words... that documentation is nice, but where are> some sample 
scripts I can start from?_> > Many sample scripts can be found in the ns 
distribution in> ~ns-2/tcl/ex and ~ns-2/tcl/test.> > * _What protocols does ns 
support?_> > A lot! Almost all variants of TCP, several forms of multicast,> 
wired networking, several ad hoc routing protocols and propagation> models (but 
not cellular phones), data diffusion, satellite, and> other stuff. See the 
documentation (described above) for details,> or download ns and look.> > * 
_How do I know that ns correctly implements these protocols?_> > Ns has 
validation tests that cover many protocols, see> 
http://www.isi.edu/nsnam/ns/ns-tests.html. However, ultimately> users are 
responsible for verifying that ns is accurate for their> purposes---since we 
cannot foresee all the ways ns may be used, we> cannot test all cases with all 
inputs.> > * _Are there a!
 ny contributed/additional protocols not in the main> distribution?_> >
 Yes, please see the contributed code web page> 
http://www.isi.edu/nsnam/ns/ns-contributed.html. The mailing list> archives can 
also be helpful (see below).> > * _How should I get started doing something 
(like implementing a new> protocol or trying an experiment)?_> > We recommend 
that you look through the tutorial (see> documentation, above), then start with 
an example program that is> most similar to yours (in the tutorial, or in 
tcl/ex or tcl/test> in the distribution), and then start changing things.> > * 
_What should I do to compile ns to reflect my changes if I've> modified some 
.cc or .h

[ns] Wired cum Wireless routing using 802.11 snapshot.

2007-09-05 Thread senkindu

Hi Everyone,

I am doing research in the IEEE 802.11e hcca QoS enhancement using the ns2
802.11 snapshot ( ns-2-94a21377a8a6) by Mathieu Lacage.

I was looking through the NS2 developers' mailing list and I saw that
there was some attempts to implement Wired cum Wireless simulations using
the 802.11 snapshot, and Franceso Gringoli from the University of Brescia
mentioned that they had a script which they were going to try out. I have
tried to adapt the model from Marc Greis' tutotrial but with nos succes.

Does anyone have any tips or suggestions on this issue?

Thanks very much in advance.

Samuel Senkindu.











Re: [ns] printing the ackno

2007-09-05 Thread Teerawat Issariyakul


Hi,

A one-way TCP does not use field ackno_. Instead, the TCP Sink creates an
ACK packet by placing ACKNO in the field seqno_ of the ACK packet.

So you just need to print out  field seqno_  but you have to make sure
that the corresponding packet is an ACK number.

Cheers,
Teerawat

On 9/4/2007, "Sebastian Harko" <[EMAIL PROTECTED]> wrote:

>
>Hello,
>I want to print the "acknowledgment number" of every ACK in the terminal...
>So I went to tcp.cc ( "newack" method ) and I did this:
>
>cout << "ACK number is: " << tcph->ackno_ << endl;
>
>but all the ACK numbers it prints for a simple simulation are equal to
>zero...
>note that i was able to print the correct sequence numbers using the exact
>same approach.
>what am i doing wrong ?
>
>regards
>