Re: [ns] install ns2.29.3 in ubuntu 8.04, please help me

2010-11-21 Thread Francesco Zampognaro

Il 20/11/2010 20:17, Wei Zhang ha scritto:
 
 
 
 Hi All,
  
 I install ns2.29.3 in ubuntu 8.04 as follows:
  
 1) run
  
 # sudo apt-get install build-essential
 # sudo apt-get install tcl8.4 tcl8.4-dev tk8.4 tk8.4-dev
 # sudo apt-get install libxmu-dev libxmu-headers
 
 2) ./install
  
 3) in ./bashrc file i add:
 export PATH=$PATH:/home/wei/ns-allinone 
 2.29/bin:/home/wei/ns-allinone-2.29/tcl8.4.11/unix:/home/wei/ns-allinone-2.29/tk8.4.11/unix
 export TCL_LIBRARY=$TCL_LIBRARY:/home/wei/ns-allinone-2.29/tcl8.4.11/library
 export 
 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/wei/ns-allinone-2.29/otcl-1.11:/home/wei/ns-allinone-2.29/lib
 
 when i run ns-allinone2.29/ns2.29/tcl/ex$ ns simple.tcl 
 It has an error: 
 Namesever not reachable
 simple.tcl  NS record not found
  
 (I checked simple.tcl file is always in ns-allinone2.29/ns2.29/tcl/ex)
  
 Could anybody please help me soon?
  
 Thank you in advance.
 Wei
 
 
 
   
 
In your $PATH some command called ns is found before the one of NS2.
You should either remove ns in the system, which btw is not necessary
(type whereis ns to find it) or do something like:

export PATH=/home/wei/ns-allinone
2.29/bin:/home/wei/ns-allinone-2.29/tcl8.4.11/unix:/home/wei/ns-allinone-2.29/tk8.4.11/unix:$PATH

so that you ns comes before. You can always cd into ns folder and
execute it direclty with ./ns

Bye.



Re: [ns] modify bitrate of a wired link

2008-09-30 Thread Francesco Zampognaro


On Tue, 2008-09-30 at 23:54 +0200, Davide wrote:
 Hi guys,
 
 how to modify during the simulation the bitrate of a wired link according to
 a file?
Hi there, you can use these lines to obtain a reference of the link
between $N1 and $N2 and change its bitrate:

set link_ref [[$ns link $N1 $N2] link]
$ns at $time $link_ref set bandwidth_ $new_value

All you have to figure out is how to get $time of change and $new_value
kbps from file.

Bye.

-- 
Francesco Zampognaro 



Re: [ns] important: TCP packet size

2008-04-28 Thread Francesco Zampognaro

Packets coming from sink are ACKs, so 40 bytes in size (minimum TCP
packet size). If you want balanced transmission probably you need
tcp-full. Anyway I'm not familiar with that.

Bye

FZ

On Thu, 2008-04-24 at 18:29 +, cheki imane wrote:
 
 Hi all,i have a question which seems stupid but, i'had vreated a simple 
 network (2 nodes) tcp and tcp sink and i'd like to set the packets size =1000 
 bytes so i have used 'Agent/TCP set packetSize_ 1000'   'Agent/TCPSink set 
 packetSize_ 1000' '$tcp set packetSize_ 1000'   '$tcpsink set packetSize_ 
 1000' but in the trace file it is always 40 so i realy do not know what to do 
 i realy need your helpthank you
 _
 Sur Windows Live Ideas, découvrez en exclusivité de nouveaux services en 
 ligne... si nouveaux qu'ils ne sont pas encore sortis officiellement sur le 
 marché !
 http://ideas.live.com
-- 
Francesco Zampognaro 



[ns] Contribution - DVB-RCS DAMA Implementation in NS-2.32

2008-03-31 Thread Francesco Zampognaro

Dear all,

I created a set of changes to NS-2.32 in order to run transport
protocols over a simulated DVB-RCS satellite environment with DAMA
(Demand Assignment Multiple Access) on the return link.

It is different from the already present contribution in
http://nsnam.isi.edu/nsnam/index.php/Contributed_Code named TDMA DAMA
in using different selectable allocation algorithms and offering the
possibility of mixing request strategies. Behaviour matches paper [1].

Work is still necessary to define a better MAC layer and to read
DropTail queue status without the use of additional bound variables (see
backlog_ in the patch), but the contribution is already perfectly
working.

Pointer to the patch, installation guide and test script are here:
http://www.tlcsat.uniroma2.it/DAMA/

Some details on the implementation can be found here:
http://www.tlcsat.uniroma2.it/archives/category/laboratorio/en/

Any advice is welcome...

Thanks!

Francesco Zampognaro.


[1] C. Roseti, E.Kristiansen, TCP behaviour in a DVB-RCS environment, in
Proceedings 24th AIAA International Communications Satellite Systems
Conference (ICSSC), San Diego, Jun. 2006
(http://www.tlcsat.uniroma2.it/wp-content/uploads/2007/04/man54548.pdf)

-- 
Francesco Zampognaro (Ph.D. student)
Department of Electronics Engineering
University of Rome Tor Vergata
Via del Politecnico 1 - 00133 -Rome - Italy