-
Notifications
You must be signed in to change notification settings - Fork 4
/
working
80 lines (35 loc) · 1.23 KB
/
working
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
First do this on Home directory:
https://gist.github.com/slashsBin/a383559dc1f683c7cd502af9fd39c3ab
then validate project:
https://teacher.buet.ac.bd/ashikur/ns2/
Go to:
cd ~/Desktop
create a file named example.tcl
edit on that file: puts "Hello ns2"
then run this:
ns example.tcl
How to deal with ns2 ?
1.
First u have to create a Network topology. In that topology there would be some nodes with specific co-ordination on 2D or 3D.
to do this:
go to: ~ns-allinone-2.35/ns-2.35/indep-utils/cmu-scen-gen/setdest
then ./setdest command to see versions.
./setdest -v 1 -n 5 -M 15 -t 20 -p 30 -x 600 -y 400 > scn
then
2.
CBR= constant bit rate traffic jam : Actually design the connection who is the sender and who is receiver.
go there,
cd ~ns-allinone-2.31/ns-2.31/indep-utils/cmu-scen-gen
then command:
ns cbrgen.tcl -type cbr -nn 5 -seed 1 -mc 10 -rate .25 > cbr-exp1
then edit cbr-exp1
copy these files scn,cbr-exp1 to Desktop
3.
the Trace generation:
download a sample tcl file from
https://teacher.buet.ac.bd/ashikur/ns2/
last section , then edit this with avobe files.
then copy that to Desktop
u can get these files in the wirelessRoutingFiles folder.
run command line:
ns downloadedTCLfile.tcl