You are on page 1of 27

 

 


     


  


" !  NS2

 

! !   

 0 - *, *$  ($'%$ $ ! -1$ $%


( 4 2  2 !.  -
;  0  % 8  -6=<  = $! $ 0 -$
?$@A
.
 D =<  %E% 2 2$  G
 D%$E  2-$-!@- 2$8$6
* 
6J$E
 -
0  J  -1
8K 6= -  J $
( K
6M ! $ ' OP$ $ $!  ! N$ <=$ -$ 8 ; G$P

8 - 8J 8K -
@Q <=$ $ $  ($6@-$$K 0 8$K 8ADK $
-
6 -6 = S1 -! -
K 81%  -$! -$
K 8$A
 S$! -$ $K S$0
; -Y
! - 8@1 K-E ....
1 1 - K-1 - N -V*
*.
* ! D6

2 (/0 +. ((  + ( '  34+4 74 "454


/ . 7
--? + --- +

     


+ B +A"
amjedns2@gmail.com
2009 -

% = )(CV


http://amjedns2cv.blogspot.com

A + 0
5
6
7
8
12
14
16
18
21
23
27

!D!
%Q- 8Q-  -JE 8- !
-JE 8- ! --
TCL !% --
NS2 8K w!-1%  -6 D%Y
-
  J' -E1
agents and application -@z -D6 % 
} 8 -|!
A6 Ns2 Formatting
Network Animator (Nam) w!-1% P6
-,

/
=  D %E @-  - P 8K-@6 G$ $D 8$6
 ,@
$
K ($ -$ 8$6 -$ $, 8 $ % ($ $ $! $
!| S| 86@
 D 2 } % .  -
z ?Q
8$$K$$  % 6$$ -$$6J -$$-  -$$ 8 $$D 8$$6 TCL ($$
%E ! -
K % 8K !P6 -.8
%  G  -6 ns2 8K w!-1%-, 2, 1 -DA6 86-$
 $J
=$$ $$ ! N 8$$6 $$JP6$$!
?$$! - -$$ nam G$$|! 8=$$  6$$
%6 ; 2- -D G,@6= P6 % -61- ! w- GJ$E J$E8! $
!% 6 .
!!!!!
G S1-  P - 8K ns2
( % 0  1 0 % ,,,,

" !    "T+T
 =  -- 8K 8 1989 !%E VINT= ' ! GJ'-J
 - 8K Real Network Simulator 8  !--@ ! 8K -1% G!-8
Berkeley Lab= ' - . !-
   !P6
=  -- 8K 8 2006--6: 8
| 8K 
! 1000 ! %| ! %  |! %
P6! 10000 - %
' G, - 300 8-
(  ?V% 8.  !-
Ns home page
http://www.isi.edu/nsnam/ns
 -   !  4% - ns-allinone-2.33-$ 8$K 2008
  June %
' 8K ns2 %(   =  ns3 26 S= (
V6 .%
 - D 6'  G 6A G 8K D  86 -$1 ! 8$K $A -$A$ 8$6
 2006 A-1 SDD -% D ' | 2008 A 8K 1--$
 Y
) WNS2(workshop ns2-
$ % 8$
<=$ ' $ $-$| 8$K
!-$$ -J$$E ! $$-$$ 8-A$$,-$$ 8 $$EV-A $$6 - G$$8$$J
 ; <- 8D6 -- -JE . network simulation

 " ! 
!-1 J  -:8 %6 - 8A 8 - -$1 J! $! $ % ; $ -J$E 8$6 6$
Object GJE -
A % 6 2 ( J% ( - 6OTCL,C++ -$
* -$$ $$-$$A %$$K ' $$ ?$$- C++ $$K $$6 8$$P6$$ $$ Compiler
%6 !% -A - 8
K OTcl P6 !@ interpreter % %@6!%.-
P6-K  C++-@J
- 8K -
6% =@A6 -$
S$6% ; $ -$1 J
| 6 - %$6 ; 86 -$6  8$K %$ -$A =$@A6 ?$! TCL $ 8$K $M -$
1
=$$@A6%$$ $$J  8$$K$$ 6 G8$$' 8$$ !
- $$ $$AP6$$ -$$
S$$6JK!%$$
P6 ! -?   % =@A6 % 6 ! G -. 6
%Y D -- 86 -
6 -:8! - ns2 8 -  discrete event simulator 8$AP6$ !@
$
  $ D6 %$6  8$6$ !%$Y $  --$  $ 6$ $$
P6- 1 !  ! ; ! -
1- -$
% 6 $ <=$!-$ G$,
 - ! 6 26= %@6! V . ID
* 8K! 0.2 6- ! ! $1 -$ G$, -!$A K FTP --$ ($
|K
= ! 6 } %  - V% w= $  $D  - 2$6 ($%$
= D  -  Handler 6  - !  ! ( 8-A
Classes -
z ?! }% 86   8K -  -! Y-P6.6
* :Simulator %$$6=$$ *$$J $$*$$J  8$$K 8$$- -$$ 8=$$ %Y $$$$ 6$$ $$D
 -- 6 ( !  !
- interfaces
 86 ( 
 M
 -- -6 A  ! -A 1 ; .
  --  ! -  ! instance G= *J ! P1 8A= *J
 1 N  !  A  -E1 26 JE
 -
6M. -
DA

 TCL +


TCL (Tool Command Language) $ 8$Script language $
G$$|! -$$
|! very high level language -
@A$$, $$ 8$$6-$$ %$$ 8$$6
A  S= PHP, JavaScript, Python, Perl G|! A,6- 8 $
P6$$ $$ !@ %$$ %$$@6!% -$$ $$
@! $$ 8$$J Object Oriented=$$ $$ N
  -
$$!$$6 ($$$$ %$$ Otcl(Object extension of Tcl) 8$$
-
S6 - -D -$ %$! %$P6$ -$K! %$ 8$6$1 6$8$K -
 - 8 8 ! Otcl   6J D 8 $-$,- -  C++ $! $ $
 =@A! %P6.
 =1 }DK %! %% 6 -$6 1 86 
8$K -$=$ -$6J 8$
K$!% $
!= D6
-: GE 8
-

%6
% 6 %Q-
- J 6
 D%J6 1
-
% .procedure
?! G!- 6@- .

: Y+[A :
%Y%  D %6 8K TCL: 8
- ?z1 set   %6  N$ $D%1 8$6 $ 8$K -
$Q %$68$
! J - V 4 %6! ! V % %  ! V 8Q-  ; 2$1 ,1
 1 -1-  %6=< $! 8$ -$ $  ; 8$
K scripting languages
* integer, float , double, Boolean $D G$ <%$
1 !  A -1- ! |$
= 1 -1-  DA . %6

result: a=6
result: b=4
result: a=4
result: a=9
result: a=4.3

: -|!
set a 6
set b 4
set a $b
set a [expr 5+$b]
set a $b.3

a V %6 -AV |-| 8K a,b %6! %  1-| ( - -A *1


8Q- %  ?Q -AV 2 = % 6 8K 4 8 b 8K   D(
2 -AD b V ?Q -AV %  %4 8K a 8K w-A? z b V ( 5 z
. 4.3 D ,6 0.3 %

: T+ +A :  \


<%$ $V %$Q %$Y? $  ! - - - -D Q-% % 6
-$$,6 8$$ expr 8$$ TCL $$ $$  $$J $$%  6$$ -$$  $$!
%$$ 6 -$$ $$[ expr expression] $$ D $$ ?$$Q  expression -$$
. 8Q-%
: -|!
set b 5
set a [expr 5+$b*2]
$! 5 8$  -$ $V 2$ a %$6 $ 5 $D 2 b %6! % 6 -AV -A
K
.15 - a V , 2 8K 2 %z! 5 8 b %6 V -

:
A  :  ]\
: if %' 
if expr script
: -|!
set x 2
if $x>1 {}
or if $x>1 {} elseif $x<-3 {} else {}

:   + A / :  
:for, while, foreach D
: for loop D
for script expr script script
: D 
: -|!
for {set i 0} {$i<5} {incr i} {}
:while loop D
:-|!
while $x > 2 {}
:foreach loop D
. %-A   ! K @,! ?! G  D 8
foreach listvar list body
:D 
: -|!
set total 0
foreach num {1 2 3 4 5} {
set total [expr $total+$num]
}
. 15 D = total %6 D @= =< A w-AK

: Procedure +B :  .
. -% java, c++  G|! % - 8K G|! % %6 
: 8 % %  D%Y
proc name arguments {body}
: -|!
: -
A!  % D  V GD6 % % 6
proc decr x {
expr $x-1
}
decr 3 ; => x=3
- % 8K -AQ D - D
K % 8K return - ;
10

: c d 'A :  


: 8-6- 2 ! G!- 6 ! 6K D%Y
outputfile [open "testfile" "w"] set
puts $outputfile "this is line 1"
close $outputfile
2 ! 6@ -AV outputfile 2 - %6! -AK% % 8K
. write -,6 w  -6J -A -%1 86* , testfile

11

:NS2 "0 e+  A /+f


-A!% 6J1 8J -
6K% ! ! ; 86 tcl  --  -A  D - G,@ 8K
. Otcl  6JA -A NS2 8K
:-6 P ! J6 NS2 8K w!-1%
Create the event scheduler (simulator) 
[Setup tracing] 
Create network topology 
[Setup routing] 
[Insert error modules/network dynamics] 
Create connection (transport) 
Create traffic (application) 
Schedule events 
Start the scheduler 
-$ 8$ w!-$1%  $ -6 8$K $- S$ ][ $V $ 86 P %6 
. =< 8K -
%E } DK K%  -
% J! D6! ?Q !
Create the event scheduler (simulator) 
%$ 6$ 2$ *$! =$ Simulator *$ $! object -$E1  - 8
: -6 D%- J -- 
set ns [new Simulator]
2$ ! G!- 6 
 J
= ; 26 %6E ; %6!  - -A ns 
N$AJK $6J 8$K $|! $A- P6$ 8$K ?-$E 8-  =  21
. 2z@ 2% 2 % 
Create network topology 
.  -
z ?! -
 topology JE GJ' %  6 P =< 8K

12

Create connection (transport) 


-$$$ 8$$$K 2!P6$$$ 6$$$ =$$$ $$$ % -$$$E1 6$$$ $$$P=< $$$ 8$$$K
.Agent ( -
A! 1 ,
 ,   TCP,UDP
Create traffic (application) 
G$$$|! $$$ ! GJ$$$E $$$ -$$$ $$$D $$$ $$$%  6$$$ $$$P=< $$$ 8$$$K 6$$$
.agent , A- <-A FTP,Telnet, CBR, VBRetc
Schedule events 
$ $1 6$( $6! 8$
6A ($6! $ ($6! -D6 8A   -A 6
:,- J --  -
1
$ns at <time> <event>
any legitimate ns/tcl commands <event> :
%  1 J ns/tcl %! ! - %! J J! -A  8A
: |! N "" O,A6 86!*  J 2! *
$ns at 0.3 "$ftp start"
$ns at 1.2 "$ftp stop"
$ns at 1.3 "finish"
8 -| 8K -
%' 6 -
- 6 ! w!-1% 8K -
6 -6 6 finish  
.Q ! - -
A SV  SV   6K ftp  -A
Start the scheduler 
-6 - - N --  
$ns run
.--    6 -
A! - - ;

13

:   !  
$D GJ$' ($ $
 $%  6$ 8-$  8$K $
 $! $J6 -
6  JE
router -$
 $
 $ *$1 J! J$' $%  -1 -| G ( K node
: 8-6- -
6 -6J D1
set pc1 [$ns node]
set pc2 [$ns node]
set pc3 [$ns node]
set router [$ns node]
pc1 %$6= $ ( %@ %P   !  - 8 node  
$% 6 -$AV ($ $P 8$K  A$K $ns -$ -$! node A$, $1 $! $
G$$ $$6 = $$ Simulator *$$J $$! object $$ -$$ $$ ns 2$$ %$$6!
 N 2A! -A  A, -6- DAK --   D 6 G-@6
.  * -!K $ns class/method %Y
$ P6$1 -$
 % -$DK -$
 % $D1  J 
 % 6 }DK ( 6 -AV
-$
  ( -
 } ! 6
 } ! 8A  86 duplex-link
$ P6$1 }DK  } %1 -A -
 ( 81-| -
 ! 81-|
$$ A( $$ 26$$,K $$ -6J $$@ -$$! }$$DK $$} $$ 8$$A  8$$ simplex-link
: 8-6
$ns duplex-link $n0 $n1 <bandwidth> <delay> <queue>
=-A-|! 8K
$ns duplex-link $pc1 $router 5mb 2ms DropTail
$ns duplex-link $pc2 $router 5mb 2ms DropTail
$ns duplex-link $pc3 $router 5mb 2ms DropTail
%$6 D! GV-A   8 parameter !  ! GD6 duplex-link 
Queue =-! Queue 1 GV-A = 8K
DropTail, RED, CBQ G$|! -$! P $! $ ! $ -$ Queue
-$! -$ $ -$! P =< G   K%  S1%61 ( % J
Queue *6$! 8$A  -$
 8K 86 DropTail 8} DK %=1 J -
,@
GJ$$E -
$Q 1 -A$$ %$$ $$! G=$$ $$! $$ = $$ $$! P=< $$ $$D6K
:%4

14

Queue
Drop packet
 ? % -  ! queue -A
K ! 6$ 6$ =$ ! $ $P ! $=$G
= S N=< P!
= ; $K $D $J
$K queue -$ S$1--$A
* 8$$K queue $$, 8$$J 6$$! $$ !$$
| $$! %$$! $$ S$$ 6$$ $$V -
$$Q
-  N 6=  ! !- 86- 8  -
.-
 J 
% - D% P6$- simplex-link $ J6$ 8$6 -$ 6
 21 3 } 8K-.
hg :
tcl $$$ $$$-$$$ - $$$A@%-$$$ 8$$$A; 2$$$1 $$$J ! $$$ -$$$G$$$ parameter%$$$K K-$$$! %$$$ $$$ }$$$DK; 8 $$$K=$$$@A $$$A $$$
.w!-1%
--$$$ $$$A P!-$$$  $$$  $$$, $$$6J $$$1 -$$$A
K   $$$ DropTail $$ <=$$
$$6J% $$D; 8 $$ -$ z 8$$K $$=$$@A6
-K % %J  S-%, .case sensitive (A
- -z  -6 !% ?! ms, mb. D

15

:agent and application ci /A +


$D 8$J -$D6 GE  J !  -
  JE  J 
=$$$ $$$z $$$%  :   $$$( $$$ 6$$$ N=$$$ -$$$D $$$ -$$$
$AK TCP,UDP -$! -$ $D%Y G$| 2$1( $ K-Q- 6 z6
.,! ,! ( 6 = agent z % 6
: 8- D1 TCP agent % 6
set tcp [new Agent/TCP]
-D -$$ -$$1% -$$ 8$$6 Agent/TCP $$A $$! tcp %$$6! -$$AK% $$P=< $$ 8$$K
. ,- 21 - 2D%Y  6 = % - D%Y
set tcpsink [new Agent/TCPSink]
$$ TCPSink $$,-K tcpsink $$ tcp $$, $$A- $$, $$% 6 $$D1
. TCP } DK -
$ns attach-agent $n0 $tcp
$ --A$ 6$K A ! D --A D1 , , % 6 -AV -A(
($ $, -A$- -$AV -$A $, D GD6 attach-agent  %Y
. n0 D
$ns attach-agent $n1 $tcpsink
.n1 D  , -A- -AV
$ns connect $tcp $tcpsink
-$$, $$ $$%@6 6$$ 8$$J $$,! $$,! G$$ $$ -$$, $  %$$ $$
connect $ $%Y $ N$ $ -
$z $ -$6 J$E 8$K 
. , , } %6
set ftp [new Application/FTP]
$ftp attach-agent $tcp
-$$A-|! 8$$K $ -$$ $$D TCP ($$ $$ ! $$ -A$$ 6$$ $$P=< $$ 8$$K
.attach-agent  %Y  tcp ,< ( -A -AV FTP  -AK%
16

: 8- P @A D1 UDP agent % 6


set udp [new Agent/UDP]
set null [new Agent/Null]
$ns attach-agent $n0 $udp
$ns attach-agent $n1 $null
$ns connect $udp $null
set cbr [new Application/Traffic/CBR]
$cbr attach-agent $udp
?$! -A TCPSink , P6 TCP 8@K TCP,UDP ! GJ , *1
- Null , P6-K UDP
...  2A  - %  
; !!-$! .-J$E 8$K Connection oriented, Connectionless $
@! =
Connection oriented $
@! Y-$ $
@= $ N$ %$' -A$! - 2K% 
%$ %$ %$ ( K %4 %Y ( %Y ! ! -  21 8A
$! -$ $D $ S$ $V S$ 8$6 $!  $! $ $! -
-$$ $$@6 $$
@= $$
-$$|! }$$ TCP 2$$ G$$ -$$! =$$ ,...=$$J $$1-|
. G- 
$$$D  %$$$ 8$$$A UDP 2!P6$$$ $$$
K Connectionless $$$
@! -$$$!
. 81%6J % 2 -|! } % % % (  ! -
: V ( DA 8-  8K  -D6
Simulation application 6$ 8$6 -$D6 8$ FTP, Telnet, VoiceOverIP, Audio,etc G$|!
. DD  JE 8K -
!P6
Traffic generator  ;  86 -D6 8 CBR, VBR, Exponential, Pareto,etc G|!
-$  6$ $A ! $D% <-$E1 6$ traffic $% -$ 8$ $J $DD 8K
G$$$|! -$$$-  -$$$! 8$$$K -
!P6$$$ 6$$$ 8$$$6 -$$$ 6 $$$! $$$ -$$$
$$$
. -% Exponential

17

: " ]
FTP $$ -$$ -$$
 $$D -$$
 $$! $$1 J! J$$' $$ J6$$ -$$A-|!
. -
 CBR - % -
 D % -

:*
!- w!-1%

set ns [new Simulator]


set f [open out.nam w]
$ns namtrace-all $f
proc finish {} {
global ns f
$ns flush-trace
close $f
# run animation
puts "running nam..."
exec nam out.nam &
exit 0
}
set n0 [$ns node]
set n1 [$ns node]
$ns duplex-link $n0 $n1 5mb 2ms DropTail
set tcp [new Agent/TCP]
set tcpsink [new Agent/TCPSink]
$ns attach-agent $n0 $tcp
$ns attach-agent $n1 $tcpsink
$ns connect $tcp $tcpsink
set ftp [new Application/FTP]
$ftp attach-agent $tcp
$ns at 0.1 "$ftp start"
$ns at 1.5 "$ftp stop"
set udp [new Agent/UDP]
$ns attach-agent $n1 $udp
18

set null [new Agent/Null]


$ns attach-agent $n0 $null
$ns connect $udp $null
set cbr [new Application/Traffic/CBR]
$cbr attach-agent $udp
$ns at 0.0 $cbr start
$ns at 1.5 $cbr stop
$ns at 1.5 finish
$ns run
set ns [new Simulator]
set f [open out.nam w]
$ns namtrace-all $f
.Simulator ! *object % 6 -AV %
=$ Nam w!-$1% -$ $6! $ out.nam 2$ $! 6@ -AV 81-| %
. -D ;2 %6A 8!  GJ' 8K JE % 
-$-  $? $? $Q D 86 namtrace-all  -A!P6 -| %
.-
Q% D Nam w!-1% -
! G!- 6  8K -
-- ! S 86
proc finish {} {
global ns f
$ns flush-trace
close $f
# run animation
puts "running nam..."
exec nam out.nam &
exit 0
}
-$@* $ $D= $ -$-  $ $-
1 8$K <$1 6$= $ %=
. %P % =A -
6K  86
19

 % % J - proc  % < %6 86 -


D6-$A
;  .
 % ! %  - global -A 6$P6$ <=$ -$ 8$K 2$1
 tcl%6  - %$ ;  $J -$
6 G$%$ ; -$
%  =  %6 !% ! %6 - 2 6%Y  N - .global
 %|- : 81- $ns flush-trace D 8 %@6 =% ! %$6 8$6
 P6!
8K - -- % 6 %- .!P6
 %% ? -   *  =   8K 2 6K .w!-1%
 %- !-P - -Y ( P6- '-E  . puts
 %- -    D =@A6! %=  shell 8K - terminal
Dos nam w!-$$1% =$$@A6 -$$AV -$$A!%$$  $$=$$  S$$ 2$$K $$ -6J $$
.out.nam
! ! (D -%'  w!-1%- 2. -D - G,@6
hg :
% %J  S- % %, . case sensitive !-J % ; finish%6E  8K  w!-1% J 8K 2 -6 !-J  D %6 ! -A =@A.-

20

:3(A NS2 Formatting


: -1 ! A6   6A
Color Node manipulation Topology layout Misc :Color  : ;

link } node D J -!
K  -A
: packets
: node D  -A
$node color red
:link } %  -A
$ns duplex-link-op $n0 $n1 color green
op - K-Q -D - -A@ - D   } P6 duplex-link -
.label A  G|! options - 8A  86
:packets   -A
:8- w!-1%  8K P66 86  %  ;
6
$ns color 1 red
$ns color 2 green
$ns color 3 yellow
-! V? Q JK 6 - % 8 123 G|! -!-V  -- D1
fid_ %6 %Y  N agent z< -A 6K -A; @
: 8-6 %! %Y  N flow id -,6
$tcp set fid_ 2
$udp set fid_ 3
2@%   =2 V  tcp z- D 6  -A 6 -A
.green %z  2 V -A-|! 8K w!-1%
:Node Manipulation : -1-
GJE % 1-|( label) ; % ( 6 J D  - !
pc, router *
|! nam w!-1% 8K D ( A ! Q 6 ; % (shape)
 6P router GJ' *
|K -
-J' D  6 GJE A- %! N=
: 8- -
6 -6 D%Y= J host (pc) GJ'
$node label server
21

$node2 label host1


} %*  
|! Q 6 } % K label Q  - ?Q J -z
: 8-6 %!- N J*
|! 2 1 26%
$ns duplex-link-op $node $nod2 label Ethernet link
: circle, box, hexagon J -!
K shape GJE -!
$node shape box
$node2 shape circle
:Topology layout : -|-
N J nam w!-1% 8K JE GJ' A 8A layout , ,D
: 8-
$ns duplex-link-op $n0 $n1 orient left
$ns duplex-link-op $n0 $n1 orient right-up
$ns duplex-link-op $n0 $n1 orient down
$ns duplex-link-op $n0 $n1 orient 60deg
P6- n0 D  A- n1 D 2 ?Q 6 =-J? Q 6   6
up, down, right, left, right-up, ) --;? Q J orient 
6K layout (   right-down, left-up, left-down, 60deg)
. 8Q%6K? Q  
:Misc : -
:- -
A! A %EA A6 8K P6 - 8
trace-annotate , set-animation-rate
-D 6 K-Q Q 6 P6  8 trace-annotate ( 
: 8- -
6@= A6 -A nam w!-1% 8K
$ns at 3.5 $ns trace-annotate \ tcp start send packet\
tcp start send - -  =< D6 3.5 ! 8K N 8A
.nam w!-1% ! 8@  8K packet
% -,D1 - P6 8 set-animation-rate 8 1-|
: 8-6- -
6 nam w!-1% 8K %
$ns at 1.0 $ns set-animation-rate 0.1ms

22

zA +:Network Animator(NAM) e


6P6 =  w!-1% % !  A ! , 26 -6- 2 D %
-61 w -- , %  6 -6A , w !% 6 = -
( @
.
; !    TCL -6J
 J%Y  -z =  w!-1%-E1 '  J
 NS2 8K w!-1%' GJ w!-1% 8K %
GJE-6: 8

=< % % -61- ! w- GJE !% 6! 8 :

23

=< %  w!-1% Q  86@ -E1 '%Y  J 2D  


 :TCL

 -A %6A (  %   8K 8K w!-1%* A 6


-
 ( :

24

 :+
   -Y  % 6 ( % S %1  AK -A 8K -
! G ! GE -A ,D
GE - -- -AV -JK 21 D %
GJE JE ! 8 J D1 K K GE6 GE 6 -- 
-D 6-D  -- = N!- % A D D 8A  86 (
 -
A  - ! GE * <- D % @ K ,V
 -- ! -
1 26( .26
 :+i.
   -  %z 6 (  ! K (  : S
 ' (
 GJ' -
J@ G-! D %J6 %, =K-1
% -
86.JE
! - |- = ! 6J  2 Edit 6- 6 8K 2-  GJ' G
% (A-  % %6 D!- -
A- N -
 }z% 6 N(
!-J.
% -! D %J6  %, .D
 :
=  P6 -
-D 6 ( ' GJ%P- 8K! !  6N
P6-  trace-annotate%'  86
-K -  6= 8K 6J=<
 8K %
=   ! =  <.

25

=<
 | 1--A 8K -
!P61 86 ' J P6  TCL6K 6
=< =K-A  %Y Nam w!-1% 6K%Y  N 8K cmd 6KA
8K terminal 6K JAnam.exe(windows) or nam(linux)  -6
%
6K
 -6 :

=<
 8KA ! -V -6P1 File .new
 N 6 ( }z D -! 8K }z % }P
% } ( }z D (  (6 D | 1- (6 6 'GJ
JE= %1<.
-@ D G=  V w!-1% %E
- - G,@6 '- 8K 0 %
*.
 6 -
1 % ?Q V !D6
26

  -
1
.....81-|  0 -E1 -%V

 d+
-The ns Manual,
http://www.isi.edu/nsnam/ns/ns-documentation.html

- Ns distribution download
- http://www.isi.edu/nsnam/ns/ns-build.html
- Installation problems and bug-fix
- http://www.isi.edu/nsnam/ns/ns-problems.html
- Ns-users mailing list
- Ns-users@isi.edu
- See http://www.isi.edu/nsnam/ns/ns-lists.html
- Archives from above URL
- Lots of slides displayed later

27

You might also like