Вы находитесь на странице: 1из 19

Network Simulator ns-2 with E.U.R.A.N.E.

Mladen Markovic
University of Montenegro
mladjo_markovic@yahoo.com
Wien, 21 Juni 2004

Introduction
Installation and Installation Problems
Network simulator version 2 and E.U.R.A.N.E
Description of E.U.R.A.N.E
Simulations

Installation and Installation Problems

Step 1

There are two ways to install ns simulator


all in one packet or
from peaces (for Windows,Windows XP and LINUX)
from this link we have downloaded all-in-one version
of ns simulator ns-2.26
http://www.isi.edu/nsnam/dist/
file name ns-allinone-2.26.tar.+

all in one packet works only under Linux system !

Installation and Installation Problems

Step 2

After you have downloaded ns simulator you have to download these


files from this web address
http://www.ti-wmc.nl/eurane/
download this file ns-eurane-106b.diff.gz
because this is patch file for ns-2.26 version !
test_tcp.tcl test script for validation of installing
MatlabPreprocess.tar.gz Matlab scripts to generate input trace files

SNRBLERMatrix.gz this file gives error model for


HS-DSCH
Eurane_user_guide_1_3.pdf

Installation and Installation Problems

Step 3
First problem : installation under Red Hat did not work, we had to
install it under KNOPPIX 3.0 version
before doing any thing check the compiler version !

Installation procedure for ns : create directory called ns2


cd ns2
gunzip ns-allinone-2.26.tar.gz
tar xvf ns-allinone-2.26.tar
cd ns-allinone _2.26
./ install
if this procedure goes ok, then you run this command
./validate
Do not forget to change environmental variables after installing
procedure!
5

Installation and Installation Problems

Step 4
If you have successfully built 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
useful links about ns simulator and Eurane
http://www.isi.edu/nsnam/ns/
http://www.ti-wmc.nl/eurane/

Installation and Installation Problems

Step 5

Now we can proceed to the patching of E.U.R.A.N.E module


You have to patch diff file to the clean distribution of ns simulator !
go to ns-2.26 directory and run the command
guzip ns-eurane-106b.diff.gz
patch p1 < ns-eurane-106b.diff.
after this you compile and run this command
ns test_script.tcl

Installation and Installation Problems


Step 6
I have explained in short the procedure for installing of ns simulator
ns-2.26 version;
This is an older version ,new one ns-2.27 has just revealed ,but
because this is an open source software the older versions are far
better cleaned from bugs
So in my opinion I recommend ns-2.26

Installation and Installation Problems

Network simulator version 2 and E.U.R.A.N.E

Description of E.U.R.A.N.E

Simulations

Network simulator version 2 and EURANE


Ns is a discrete event simulator

Open source simulator with many bugs

Network simulator is not a polished and finished product,


but the result of an on-going effort of research and
developers

10

Installation and Installation Problems


Network simulator version 2 and E.U.R.A.N.E
Description of E.U.R.A.N.E
Simulations

11

Description of E.U.R.A.N.E

EURANE is short of
Enhanced UMTS Radio Access Network extension for ns-2

It applies three new nodes BS, UE ,and RNC

Allow to support these transport channels


- FACH
- RACH
- DCH
- HS-DSCH

12

Description of E.U.R.A.N.E

Single cell implementation no handovers, mobility models, load


control

No power control available for the DCH, FACH and RACH

For HS-DSCH they assume this curve for error model

SNR =

3 log 10 (CQI
2

) log

10

(BLER

13

0 .7

1 + 1 . 03 CQI 17 . 3

Description of E.U.R.A.N.E
Error model for HS-DSCH:
SIRtoBER curves for all possible CQIs

Error model for RACH, FACH and DCH


Fixed error probability set
14

Installation and Installation Problems

Network simulator version 2 and E.U.R.A.N.E

Description of E.U.R.A.N.E

Simulations

15

Simulations

Always use even number of users for HSDSCH,FACH,RACH and


DCH
After you run simulations you have to now what scripts represent
out.tr is the name of trace file
For more information go to ns-manual on the this web adress
http://www.isi.edu/nsnam/ns/
to find what format of trace files
r stands for received packet
+ stands for beginning of queuing
- stands for end of queuing
d stands for dropt packet

16

Simulations

For FACH and RACH you can not simulate two applications at the
same time for two users

There are very little tools who can help you to do fast evaluation
based on the trace files that you have generated

One of them is nans2


To install this tool you need to have installed Java

With this tool you can calculate


THROUGHPUT
Sequence number vs. Time
RTT vs Time
THROUGHPUT(One way) vs. time

17

Simulations

Interface of nans2
18

Graph Interface for nans2

19

Оценить