[ns] dsdv protocol

2011-03-10 Thread wee liang


hi al,
 
does any1 know whatare the steps to add in a new protocoL?
  

Re: [ns] dsdv protocol

2011-03-10 Thread Mubashir Rehmani

Hi,

See this:
http://masimum.dif.um.es/nsrt-howto/pdf/nsrt-howto.pdf

Best Regards
Mubashir Husain Rehmani
Lip6/UPMC, Paris, France

2011/3/10 wee liang ahtoo...@hotmail.com




 hi al,

 does any1 know whatare the steps to add in a new protocoL?





-- 
Mubashir Husain Rehmani


Re: [ns] Metric troubles

2011-03-10 Thread Justin

Perhaps I have found an answer for some of my questions below, but most 
of them are still standing.

Here is a snippet I found in an example trace file at:
http://www.cs.odu.edu/~mweigle/research/netsim/intro/tracevar.out

And here is a snip of what that says:

# time srcnode srcport dstnode dstport variable value

0.0  0  0  -1 -1 cwnd_ 1.000
0.00610  0  0  2  0  cwnd_ 2.000
0.01219  0  0  2  0  cwnd_ 3.000
0.01222  0  0  2  0  cwnd_ 4.000
0.01829  0  0  2  0  cwnd_ 5.000
0.01832  0  0  2  0  cwnd_ 6.000
0.01835  0  0  2  0  cwnd_ 7.000


The headers there is one thing I was looking for.  They make some sense, 
but can anyone verify that they are accurate?  And that doesn't address 
the apparent scale issue I saw with the 'time' value.


Thanks,
Justin



On 03/09/2011 11:45 AM, Justin wrote:
 ...
 I am trying to create graphs for RTT and throughput.
 ...


 For RTT, I am kind of stuck.  Yes, I have traced 'cwnd_' and 'rtt_' and
 looked at the file.  (Curiously, my RTT trace file (different from my
 cwnd_ trace file) only has one line in it.)

 Here is a clip (1st 10 lines) from the file, plus some headers that I am
 guessing at:

 TimeTypeValue
 0.0  -1 -1 -1 -1 cwnd_ 1.000
 1.29029  5  0  1  3  rtt_ 0.050
 1.29029  5  0  1  3  cwnd_ 2.000
 1.35309  5  0  1  3  rtt_ 0.070
 1.35309  5  0  1  3  cwnd_ 3.000
 1.35986  5  0  1  3  cwnd_ 4.000
 1.40282  5  0  1  3  rtt_ 0.050
 1.40282  5  0  1  3  cwnd_ 5.000
 1.40959  5  0  1  3  cwnd_ 6.000
 1.41635  5  0  1  3  cwnd_ 7.000



 Here's the corresponding overall out.tr (1st 30 or so lines):

 + 0.004717 2 0 tcp 40 --- 1 2.0 1.0 0 0
 - 0.004717 2 0 tcp 40 --- 1 2.0 1.0 0 0
 r 0.005749 2 0 tcp 40 --- 1 2.0 1.0 0 0
 + 0.005749 0 1 tcp 40 --- 1 2.0 1.0 0 0
 - 0.005749 0 1 tcp 40 --- 1 2.0 1.0 0 0
 r 0.026206 0 1 tcp 40 --- 1 2.0 1.0 0 0
 + 0.026206 1 0 ack 40 --- 1 1.0 2.0 0 1
 - 0.026206 1 0 ack 40 --- 1 1.0 2.0 0 1
 r 0.046663 1 0 ack 40 --- 1 1.0 2.0 0 1
 + 0.046663 0 2 ack 40 --- 1 1.0 2.0 0 1
 - 0.046663 0 2 ack 40 --- 1 1.0 2.0 0 1
 r 0.047695 0 2 ack 40 --- 1 1.0 2.0 0 1
 + 0.047695 2 0 tcp 592 --- 1 2.0 1.0 1 2
 - 0.047695 2 0 tcp 592 --- 1 2.0 1.0 1 2
 + 0.047695 2 0 tcp 592 --- 1 2.0 1.0 2 3
 - 0.048169 2 0 tcp 592 --- 1 2.0 1.0 2 3
 r 0.049169 2 0 tcp 592 --- 1 2.0 1.0 1 2
 + 0.049169 0 1 tcp 592 --- 1 2.0 1.0 1 2
 - 0.049169 0 1 tcp 592 --- 1 2.0 1.0 1 2
 r 0.049643 2 0 tcp 592 --- 1 2.0 1.0 2 3
 + 0.049643 0 1 tcp 592 --- 1 2.0 1.0 2 3
 - 0.055935 0 1 tcp 592 --- 1 2.0 1.0 2 3
 r 0.075935 0 1 tcp 592 --- 1 2.0 1.0 1 2
 + 0.075935 1 0 ack 40 --- 1 1.0 2.0 1 4
 - 0.075935 1 0 ack 40 --- 1 1.0 2.0 1 4
 r 0.0827 0 1 tcp 592 --- 1 2.0 1.0 2 3
 + 0.0827 1 0 ack 40 --- 1 1.0 2.0 2 5


 In the cwnd_ trace file, type = CWND isn't too hard figure out:  that is
 the size of the window at that time.  But what is RTT and how is it
 calculated?  Is it simply for that one packet?  Does it actually
 calculate the return ACK to the sender as part of the RTT (which is what
 we would like, I suppose)?

 And why the drastic difference in the time fields?  What units is the
 'cwnd_' time field in?  It doesn't seem to match up too closely with the
 packets from the full trace file.




[ns] How to introduce an error model between two mobile nodes

2011-03-10 Thread Anuradha Jain

I tried something like this, but it gives me an error.

set em [new ErrorModel]

$em set enable_ 1
$em unit pkt
$em set bandwidth_ 5M
$em ranvar [new RandomVariable/Uniform]
$em drop-target [new Agent/Null]


$ns link-lossmodel $em $node_(0) $node_(1)

Where node_(0) and node_(1) are mobile nodes. 

Thanks,
Anu


[ns] Other Trace variables - T_RTT

2011-03-10 Thread Justin

Hello all, yet again.   :)

I mentioned in my earlier post about one of my output files only having 
one line in it (for rtt_).  Well, I have tried again with another 
variable and it also has only one line in it.  What's going on?  Here's 
the one line:

0.0  -1 -1 -1 -1 t_rtt_ 0

Here's the TCL:

for {set j 1} {$j=$NumbSrc} {incr j} {
 set tcp_src($j) [new Agent/TCP/Reno]
 $tcp_src($j) set window_ 256
 $tcp_src($j) set fid_ $j

 #Trying a new variable to trace:  T_RTT_
 set t_rtt_trace [open t_rtt.tr w];
 $tcp_src($j) attach $t_rtt_trace;
 $tcp_src($j) tracevar t_rtt_;# trace t_rtt

 # tracing TCP congestion window variables
 set cwnd_trace [open cwnd_.trace w];
 $tcp_src($j) attach $cwnd_trace;
 $tcp_src($j) tracevar cwnd_;  # trace cwnd (which also 
tracks RTT?)
}

The trace on CWND_ comes out just fine, I think.  (Yeah, see previous 
messages on that, too.)

Thanks,
J






Re: [ns] dsdv protocol

2011-03-10 Thread Manoj_Kumar



Mubashir Rehmani wrote:
 
 See this:
 http://masimum.dif.um.es/nsrt-howto/pdf/nsrt-howto.pdf
 

This pdf is one the best contributions to the ns world. I feel very thankful
for its authors Francisco J. Ros and Pedro M. Ruiz and I also thank Mubashir
Rehmani for quoting this pdf.



-
---
ManojKumar.A
---
Blog: http://getch.wordpress,com
Mailing list guidelines: http://goo.gl/xC874
-- 
View this message in context: 
http://old.nabble.com/SPAN-protoccol-tp31112776p31118735.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] help with ns2voip module

2011-03-10 Thread vineeth

Hello,

I recently found a ns2voip++ module 
(http://cng1.iet.unipi.it/wiki/index.php/Ns2voip%2B%2B) for ns2 and I 
would be needing that module for my research. I am not able to find the 
proper documentation of this module which describes different functions 
used in the voip module. If some one has used this module or familiar 
with this it would be great if I could get some helping hand.

Thank You
Vin



Re: [ns] Ns-users Digest, Vol 86, Issue 20

2011-03-10 Thread marllus lustosa

The resources of google groups are hundreds of better times of what yahoo
(nothing personal)



 Message: 2
 Date: Sun, 20 Feb 2011 12:19:50 -0800 (PST)
 From: Ahmad arasem...@yahoo.com
 Subject: [ns] Why do we have this group?
 To: ns-users@isi.edu
 Message-ID: 5451.96646...@web33105.mail.mud.yahoo.com
 Content-Type: text/plain; charset=us-ascii

 Hi,
 I am wondering what's the purpose of this newsgroup because all what I can
 see
 here is questions and questions but no answer to any (or maybe 10% of the
 questions). So is there something I am missing here or do you know of a
 place
 where people really answer each other?
 Thanks




 --

 Message: 3
 Date: Sun, 20 Feb 2011 22:45:06 +0200
 From: Mariam A. Moustafa elansary@gmail.com
 Subject: Re: [ns] Why do we have this group?
 To: Ahmad arasem...@yahoo.com
 Cc: ns-users@isi.edu
 Message-ID:
aanlktimyjy36xwmrmqy3p2n4sbnwrg3d5zvxq7zh4...@mail.gmail.com
 Content-Type: text/plain; charset=UTF-8

 Yes, Ahmad I am with you. There were many calls for whom are answering the
 questions to reply for all not only for who asked!!!
 We need to raise this call again
 Thanks

 On Sun, Feb 20, 2011 at 10:19 PM, Ahmad arasem...@yahoo.com wrote:

 
  Hi,
  I am wondering what's the purpose of this newsgroup because all what I
 can
  see
  here is questions and questions but no answer to any (or maybe 10% of the
  questions). So is there something I am missing here or do you know of a
  place
  where people really answer each other?
  Thanks
 
 
 
 


 --
 Best regards,

 Mariam Ahmed Moustafa

 Software Engineer, RD Department

 Integrated Solutions For Ports

 Tel: +(203) 4293846/4294632 Extn: 207

 Email:  mka...@isfpegypt.com

 Web Site: www.isfpegypt.com


 --

 Message: 4
 Date: Sun, 20 Feb 2011 20:19:06 -0300
 From: ?rico Porto ericoporto2...@gmail.com
 Subject: Re: [ns] Why do we have this group?
 To: ns-users@isi.edu
 Message-ID:
aanlktinj4h7d0apvm+69g_fvrmqnixgqcyy3jofhz...@mail.gmail.com
 Content-Type: text/plain; charset=ISO-8859-1

 When I click to answer a msg, the email wrongly chooses the ones who wrote
 that msg, instead of the group, because this happens to me also, people
 answer directly to me instead the group.

 Is it to complicated to make this mailing list a google group? I think they
 work better..

 ?rico V. Porto


 On Sun, Feb 20, 2011 at 5:45 PM, Mariam A. Moustafa
 elansary@gmail.comwrote:

 
  Yes, Ahmad I am with you. There were many calls for whom are answering
 the
  questions to reply for all not only for who asked!!!
  We need to raise this call again
  Thanks
 
  On Sun, Feb 20, 2011 at 10:19 PM, Ahmad arasem...@yahoo.com wrote:
 
  
   Hi,
   I am wondering what's the purpose of this newsgroup because all what I
  can
   see
   here is questions and questions but no answer to any (or maybe 10% of
 the
   questions). So is there something I am missing here or do you know of a
   place
   where people really answer each other?
   Thanks
  
  
  
  
 
 
  --
  Best regards,
 
  Mariam Ahmed Moustafa
 
  Software Engineer, RD Department
 
  Integrated Solutions For Ports
 
  Tel: +(203) 4293846/4294632 Extn: 207
 
  Email:  mka...@isfpegypt.com
 
  Web Site: www.isfpegypt.com
 


 --

 ___
 Ns-users mailing list
 Ns-users@isi.edu
 http://mailman.isi.edu/mailman/listinfo/ns-users


 End of Ns-users Digest, Vol 86, Issue 20
 





-- 
att,

Marllus de Melo Lustosa - lattes - http://bit.ly/dlm86f / HomePage -
www.marllus.com
Bacharelando em Ciência da Computação - UFPI
Departamento de Informática e Estatística - DIE
Grupo de Pesquisa e Estudos em Redes de computadores - GoPER -
http://die.ufpi.br/goper/


Re: [ns] NIST MIH module error

2011-03-10 Thread hamzah.z


hi meira how are you 

i was searching through Google  and i found that you had installed ns-2.29
and NIST package i also want to install that and i already did but i cant
run any thing with the wimax model i just need to manually install the
content of this file  src-prerelease-041707  i just don't know how to do
it if you know how to do it can you please help me with it . 

best regards
hamza 


meira wrote:
 
 I am trying to install the nist module(ns-2.29-nist-mob-022707) on
 ns-2.29. After that I run the example in
 hsntg/wimax/handover-wifi-wimax/wifi_wimax_nam.tcl it didn't work and the
 error message shown invalid command name `agent/ND`.Any information
 regarding this will be really appreciated. Thanks in advace.
 
 Best regards,
 Meira
 

-- 
View this message in context: 
http://old.nabble.com/NIST-MIH-module-error-tp7111p3114.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] how to install NIST-Mob in sn-2.29 manually .

2011-03-10 Thread zmezm 14



good day everyone , i hope you all having a great time ..

dear all you have been very helpful i have a request ,
i need to install the nist-mob in my ns2 but im using ns-2.29 version so in 
order to complete the installation in need to configured some files manually 
and i really don't  know how , i do have the steps on how to do it but is just 
not clear to me  , can you please walk me through these steps  .     IV  - 
Manual installation



Instructions to install the Wimax extension for NS-2

 
Content

    I   - Disclaimer

    II  - Version

    III - Installation using the patch file

    IV  - Manual installation

    V   - Compilation options

    VI  - Running examples

    VII - Version history

 
I- Disclaimer

This software was developed at the National Institute of Standards and

Technology by employees of the Federal Government in the course of

their official duties. Pursuant to title 17 Section 105 of the United

States Code this software is not subject to copyright protection and

is in the public domain.

NIST assumes no responsibility whatsoever for its use by other parties,

and makes no guarantees, expressed or implied, about its quality,

reliability, or any other characteristic.

BR

 We would appreciate acknowledgement if the software is used.

BR

NIST ALLOWS FREE USE OF THIS SOFTWARE IN ITS AS IS CONDITION AND

DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING

FROM THE USE OF THIS SOFTWARE.

 
II- Version

    This documentation is based on the following versions:

        - pre-release2 of the wimax model developed by NIST

        - ns-2.29/ns-2.30/ns-2.31

 
III- Installation using the patch file

    The patch file is only provided for ns-2.31. Use manual installation for 
other 

    versions.

 
    a- Using the ns-allinone installation

        step1: install the patch by running patch -p0 patch-ns-2.31-041707 
from the ns-allinone-2.31 directory.

        step2: re-run ./configure ; make clean ; make in the ns-2.31 
directory.

 
    b- From the ns-2.31 directory 

        step1: install the patch by running patch -p1 patch-ns-2.31-041707

        step2: re-run ./configure ; make clean ; make in the ns-2.31 
directory.

 
IV- Manual installation 

    The source code provided works with some earlier versions (ns-2.28 for 
example). 

    The following steps need to be followed to install the wimax extension:

 
    step1: add the wimax directory in the ns installation

    step2: add the tcl/wimax directory

    step3: add the tcl/lib/ns-wimax.tcl file

    step4: add the mac/mac-stat.h file

    step5: edit Makefile.in and:

       * add -I ./wimax to the list of directories to include (in the 
definition of INCLUDE)

       

     * add the object files before the last line (@V_STLOBJ@) of the OBJ_CC 
list:

 
        wimax/ofdmphy.o \

        wimax/mac802_16pkt.o \

        wimax/serviceflowqos.o \

        wimax/serviceflow.o \

        wimax/serviceflowhandler.o \

        wimax/connection.o \

        wimax/connectionmanager.o \

        wimax/peernode.o \

        wimax/mac802_16.o \

        wimax/mac802_16SS.o \

        wimax/mac802_16BS.o \

        wimax/sduclassifier.o \

        wimax/destclassifier.o \

        wimax/mac802_16timer.o \

        wimax/wimaxneighborentry.o \

        wimax/neighbordb.o \

        wimax/scheduling/wimaxscheduler.o \

        wimax/scheduling/bsscheduler.o \

        wimax/scheduling/ssscheduler.o \

        wimax/scheduling/ulsubframetimer.o \

        wimax/scheduling/dlsubframetimer.o \

        wimax/scheduling/burst.o \

        wimax/scheduling/contentionslot.o \

        wimax/scheduling/contentionrequest.o \

        wimax/scheduling/contentiontimer.o \

        wimax/scheduling/dlburst.o \

        wimax/scheduling/ulburst.o \

        wimax/scheduling/framemap.o \

        wimax/scheduling/phypdu.o \

        wimax/scheduling/profile.o \

        wimax/scheduling/subframe.o \

        wimax/scheduling/scanningstation.o \

        wimax/scheduling/wimaxctrlagent.o \

 
     * add the ns-wimax.tcl entry before (@V_NS_TCL_LIB_STL@):

 
        tcl/lib/ns-wimax.tcl \

         

    step6: edit the file common/packet.h and add a new packet type PT_WIMAXBS 
into the packet_t enumeration and name_[PT_WIMAXBS]=wimaxCtrl; to the class 
p_info

    step7: edit the file tcl/lib/ns-lib.tcl and add the line source 
ns-wimax.tcl

    step8: edit the file tcl/lib/ns-packet.tcl and add 802_16 to the list 
defined in the list of packets (look for foreach prot)

 
    step9: re-run ./configure ; make clean ; make in the ns-2.31 directory.

 
V- Compilation options

After using the patch or manual installation, you need to recompile the code. 
To do so, execute make clean; ./configure ; make in the ns-2.31 directory.

To debug the wimax code, edit the 

[ns] DSR Routing protocol

2011-03-10 Thread Ramakrishna kilari

 hi friends,

I am doing my project on Trust management in MANET using NS2.
For that i am using DSR as routing protocol. the problem is when two nodes
communicating each other they are not using intermediate node to forward the
packets. how to make them to use the intermediate node. either i have to
reduce the nodes communication range or is there is any other way to do
that.
node1 to node3 via node2 ???
-- 
Your's Rams