WOW !! MUCH LOVE ! SO WORLD PEACE !
Fond bitcoin pour l'amélioration du site: 1memzGeKS7CB3ECNkzSn2qHwxU6NZoJ8o
  Dogecoin (tips/pourboires): DCLoo9Dd4qECqpMLurdgGnaoqbftj16Nvp


Home | Publier un mémoire | Une page au hasard

 > 

Etude et simulations des problèmes d'équité d'accès au canal dans les réseaux ad hoc

( Télécharger le fichier original )
par Menad BELHOUL et Farid TAOURIRT
Université Abderrahmane Mira de Bejaia - Master Informatique; Option: Administration et Sécurité des Réseaux Informatiques. 2017
  

précédent sommaire suivant

Bitcoin is a swarm of cyber hornets serving the goddess of wisdom, feeding on the fire of truth, exponentially growing ever smarter, faster, and stronger behind a wall of encrypted energy

Annexe A

1. Script TCL-OTCL

TCL est un langage conçu pour une utilisation par un développeur de l'application qui peut être participéà travers une demande ou pourrait être utilisépar une application de diverses manières, par exemple, pour permettre à un utilisateur de fournir une initialisation personnalisée pour l'application. L'OTCL est un TCL avec les extensions orientée objet. NS2 utilise otcl pour le programmeur de simulation pour créer les objets de réseau dans la mémoire et d'insérer des événements initiaux dans la file d'attente de l'événement.

2. NAM

NAM est un outil d'animation basésur tcl pour les traces de simulation de réseaux d'ob-servation et des traces de paquets du monde réel. Il prend en charge la topologie mise en page, l'animation au niveau du paquet, et divers outils de contrôle de données. Cette visualisation fournit une représentation du graphe du réseau sur laquelle on peut voir les paquets circuler, suivre le niveau des files d'attente et observer le débit courant des liaisons.

3. Xgraphe

Xgraph est une application X-Windows qui inclut le traçage interactif et graphique, de portabilitéet de corrections de bugs. Donc, pour tracer les caractéristiques des paramètres NS2 comme le débit, la fin d'un retard de la fin, les paquets d'informations, etc peut être tracée en utilisant xgraph. Le fichier xgraph affiche les informations à propos de la surcharge avec la taille du réseau, Overhead est comparéavec quatre protocoles de routage comme AODV, DSR, DSDV et NEAODV. Les valeurs sont prises à partir des divers fichiers de trace.

1

2

3

4

5

6

Scriptes des simulations Noeud caché

set ns [ new Simulator]

set val(chan) Channel/WirelessChannel ;#Channel Type

set val ( prop) Propagation/TwoRayGround ;# radio-propagation model

set val( n e t i f ) Phy/WirelessPhy ;# network interface type

set val(mac) Mac/802 11 ;# MAC type

set val ( i f q ) Queue/DropTail/PriQueue ;# interface queue type

Annexe

7

8

9

10

11

12

13

14

15

16

set val ( l l ) LL ;# link layer type

set val ( ant) Antenna/OmniAntenna ;# antenna model

set val ( i f q l e n ) 50 ;# max packet in ifq

set val (nn) 3 ;# number of mobilenodes

set val(rp) AODV ;# routing protocol

set val(x) 500

set val(y) 500

Phy/WirelessPhy set CSThresh 2.28e-11

Mac/802 11 set dataRate 11Mb

Mac/802 11 set RTSThreshold 10000

17 # set up topography object

set topo [new Topography]

$topo load flatgrid $val (x) $val (y)

20

set namfile [open sample33.nam w]

#Tracing all the events and cofiguration

$ns namtrace-all-wireless $namfile $val (x) $val (y)

24

#Trace File creation

set tracefile [open sample33.tr w]

27

#Open the output files

set f0 [open node 0.tr w]

set f1 [open node 2.tr w]

31

#Tracing all the events and cofiguration

$ns trace-all $ t r a c e f i l e

34

# general operational descriptor- storing the hop details in the network

create-god $val (nn)

37

# configure the nodes

$ns node-config -adhocRouting $val ( rp ) \

40 -llType $val ( l l ) \

41 -macType $val (mac) \

42 -ifqType $val ( i f q ) \

43 -ifqLen $val ( i f q l e n ) \

44 -antType $val ( ant ) \

45 -propType $val (prop) \

46 -phyType $val ( n e t i f ) \

47 -channelType $val ( chan ) \

48 -topoInstance $topo \

49 -agentTrace ON \

50 -routerTrace ON \

51 -macTrace OFF \

52 -movementTrace ON

53

54 # Node Creation

55

38

39

35

36

32

33

28

29

30

25

26

21

22

23

18

19

2

Annexe

}

}

}

62

#Location fixing for a single node

76

# Label and coloring

for { set i 0} { $i < 3} { incr i } {

56

57

set node ( $i ) [ $ns node]

$node ( $i ) color black

63

$node (0) set X 50 .0

$node (0) set Y 10 .0

$node (0) set Z 0 .0

67

$node (1) set X 250 .0

$node (1) set Y 10 .0

$node (1) set Z 0 .0

71

$node (2) set X 450 .0

$node (2) set Y 10 .0

$node (2) set Z 0 .0

75

77

for { set i 0} { $i < 3} { incr i } {

78

79

$ns at 0 .1 »$node ( $i ) color blue»

$ns at 0 .1 »$node ( $i ) label Node$i»

for { set i 0} { $i < 3} { incr i } {

84 #Size of the node

85

86

87

$ns initial node pos $node ( $i ) 30

#Define a ' finish ' procedure

proc finish {} {

global f0 f1

#Close the output files

close $f0

close $f1

#Call xgraph to display the results

exec xgraph node 0.tr node 2.tr -geometry 800x400 &

exit 0

}

#Define a procedure which periodically records the bandwidth received by the

104 #three traffic sinks sink0 /1/2 and writes i t to the three files f0 /1/2 .

58

59

60

61

64

65

66

68

69

70

72

73

74

80

81

82

83

88

89

90

91

92

93

94

95

96

97

98

99

100

101

102

103

3

Annexe

131

$tcp0 set class 2

proc record {} {

global sink0 sink1 f0 f1

107 #Get an instance of the simulator

set ns [ Simulator instance]

#Set the time after which the procedure should be called again

set time 0 .1

#How many bytes have been received by the traffic sinks?

set bw0 [ $sink0 set bytes ]

set bw1 [ $sink1 set bytes ]

114 #Get the current time

set now [ $ns now]

#Calculate the bandwidth ( in MBit/s ) and write i t to the files

puts $f0 »$now [ expr $bw0/$time*8 /1000000]»

puts $f1 »$now [ expr $bw1/$time*8 /1000000]»

#Reset the bytes values on the traffic sinks

$sink0 set bytes 0

$sink1 set bytes 0

#Re-schedule the procedure

$ns at [ expr $now+$time ] » record»

}

#************Defining Communication Between node0 and node2 and node1 *******

set tcp0 [ new Agent/TCP]

set tcp1 [ new Agent/TCP]

130

132

set sink0 [ new Agent/TCPSink ]

set sink1 [ new Agent/TCPSink ]

135

$ns attach-agent $node (0) $tcp0

$ns attach-agent $node (1) $sink0

$ns attach-agent $node (2) $tcp1

$ns attach-agent $node (1) $sink1

140

$ns connect $tcp0 $sink0

$ns connect $tcp1 $sink1

143

set ftp0 [ new Application /FTP]

$ftp0 attach-agent $tcp0

$ftp0 set packetSize 2000

set ftp1 [ new Application /FTP]

$ftp1 attach-agent $tcp1

$ftp0 set packetSize 2000

152

153

105

106

108

109

110

111

112

113

115

116

117

118

119

120

121

122

123

124

125

126

127

128

129

133

134

136

137

138

139

141

142

144

145

146

147

148

149

150

151

4

5

Annexe

154 #Start logging the received bandwidth

Noeuds cachées asymétriques

155

156

157

158

159

160

161

162

163

164

165

166

167

168

169

170

171

172

173

174

175

176

177

178

179

180

181

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

$ns at 0 .0 » record»

$ns at 1 .0 » $ftp0 start»

$ns at 1 .0 » $ftp1 start»

#Stop the traffic sources

$ns at 10 .0 » $ftp0 stop»

$ns at 10 .0 » $ftp1 stop»

#Call the finish procedure after 11 seconds simulation time

$ns at 11 .0 » finish»

# Tell nodes when the simulation ends

#

for { set i 0} { $i < $val (nn) } { incr i } {

$ns at 10 .0 »$node ( $i ) reset»;

}

proc stop {} {

global ns namfile

$ns flush-trace

close $namfile

}

puts » Starting Simulation...»

$ns run

set ns [ new Simulator]

set val(chan) Channel/WirelessChannel ;#Channel Type

set val ( prop) Propagation/FreeSpace ;# radio-propagation model

set val( n e t i f ) Phy/WirelessPhy ;# network interface type

set val(mac) Mac/802 11 ;# MAC type

set val ( i f q ) Queue/DropTail/PriQueue ;# interface queue type

set val( l l ) LL ;# link layer type

set val ( ant ) Antenna/OmniAntenna ;# antenna model

set val ( i f q l e n ) 50 ;# max packet in i f q

set val (nn) 4 ;# number of mobilenodes

set val ( rp ) DSDV ;# routing protocol

set val(x) 700

set val(y) 500

Phy/WirelessPhy set CSThresh 30.5e-10

6

Annexe

18

19

20

21

22

23

# set up topography object

set topo [ new Topography]

$topo load f l a t g r i d $val (x) $val (y)

 
 
 
 
 

24

set namfile [ open sample33.nam w]

 
 
 
 
 

25

 
 
 
 
 
 

26

#Tracing all the events and cofiguration

 
 
 
 
 

27

$ns namtrace-all-wireless $namfile $val (x)

$val (y)

 
 
 
 

28

 
 
 
 
 
 

29

 
 
 
 
 
 

30

#Trace File creation

 
 
 
 
 

31

set t r a c e f i l e [ open sample33.tr w]

 
 
 
 
 

32

 
 
 
 
 
 

33

#Open the output files

 
 
 
 
 

34

set f0 [ open node 0.tr w]

 
 
 
 
 

35

set f1 [ open node 2.tr w]

 
 
 
 
 

36

 
 
 
 
 
 

37

 
 
 
 
 
 

38

#Tracing all the events and cofiguration

 
 
 
 
 

39

$ns trace-all $ t r a c e f i l e

 
 
 
 
 

40

 
 
 
 
 
 

41

# general operational descriptor- storing

the hop

details

in

the

network

42

create-god $val (nn)

 
 
 
 
 

43

 
 
 
 
 
 

44

# configure the nodes

 
 
 
 
 

45

$ns node-config -adhocRouting $val ( rp ) \

 
 
 
 
 

46

-llType $val ( l l ) \

 
 
 
 
 

47

-macType $val (mac) \

 
 
 
 
 

48

-ifqType $val ( i f q ) \

 
 
 
 
 

49

-ifqLen $val ( i f q l e n ) \

 
 
 
 
 

50

-antType $val ( ant ) \

 
 
 
 
 

51

-propType $val ( prop ) \

 
 
 
 
 

52

-phyType $val ( n e t i f ) \

 
 
 
 
 

53

-channelType $val ( chan ) \

 
 
 
 
 

54

-topoInstance $topo \

 
 
 
 
 

55

-agentTrace ON \

 
 
 
 
 

56

-routerTrace ON \

 
 
 
 
 

57

-macTrace OFF \

 
 
 
 
 

58

-movementTrace ON

 
 
 
 
 

59

 
 
 
 
 
 

60

# Node Creation

 
 
 
 
 

61

 
 
 
 
 
 

62

for { set i 0} { $i < 4} { incr i } {

 
 
 
 
 

63

 
 
 
 
 
 

64

set node ( $i ) [ $ns node]

 
 
 
 
 

65

$node ( $i ) color black

 
 
 
 
 

66

 
 
 
 
 
 

7

Annexe

67

 

}

 

68

 
 
 

69 #Location fixing for a single node

 

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

87

88

89

90

91

92

93

94

95

96

97

98

99

100

101

102

103

104

105

106

 

$node (0) set X 200 .0 $node (0) set Y 400 .0 $node (0) set Z 0 .0

$node (1) set X 400 .0 $node (1) set Y 400 .0 $node (1) set Z 0 .0

$node (2) set X 400 .0 $node (2) set Y 200 .0 $node (2) set Z 0 .0

$node (3) set X 600 .0 $node (3) set Y 200 .0 $node (3) set Z 0 .0

# Label and coloring

for { set i 0} { $i < 4} { incr i } {

$ns at 0 .1 »$node ( $i ) color blue» $ns at 0 .1 »$node ( $i ) label Node$i»

}

#Size of the node

for { set i 0} { $i < 4} { incr i } { $ns initial node pos $node ( $i ) 30 }

#Define a ' finish ' procedure proc finish {} {

global f0 f1

 

107 #Close the output files

 

108

109

 

close $f0 close $f1

 

110 #Call xgraph to display the results

 

111

112

113

114

115

 

exec xgraph node 0.tr node 2.tr -geometry 800x400 & exit 0

}

 
 
 
 
 
 
 
 
 

8

116

117

118

119

120

121

Annexe

 
 
 
 
 
 
 

#Define a procedure which periodically records the bandwidth received

proc record {} {

global sink0 sink1 f0 f1

#Get an instance of the simulator

set ns [ Simulator instance]

122

#Set the time after which the procedure should be called

again

 
 

123

set time 0 .1

 
 
 

124

#How many bytes have been received by the traffic sinks?

 
 
 

125

set bw0 [ $sink0 set bytes ]

 
 
 

126

set bw1 [ $sink1 set bytes ]

 
 
 

127

#Get the current time

 
 
 

128

set now [ $ns now]

 
 
 

129

#Calculate the bandwidth ( in MBit/s ) and write i t to the

files

 
 

130

puts $f0 »$now [ expr $bw0/$time*8 /1000000]»

 
 
 

131

puts $f1 »$now [ expr $bw1/$time*8 /1000000]»

 
 
 

132

#Reset the bytes values on the traffic sinks

 
 
 

133

$sink0 set bytes 0

 
 
 

134

$sink1 set bytes 0

 
 
 

135

#Re-schedule the procedure

 
 
 

136

$ns at [ expr $now+$time ] » record»

 
 
 

137

}

 
 
 

138

 
 
 
 

139

#****************Defining Communication Between node0 and

all

nodes

**************

140

 
 
 
 

141

 
 
 
 

142

set tcp0 [ new Agent/TCP]

 
 
 

143

set tcp1 [ new Agent/TCP]

 
 
 

144

 
 
 
 

145

$tcp0 set class 2

 
 
 

146

 
 
 
 

147

set sink0 [ new Agent/TCPSink ]

 
 
 

148

set sink1 [ new Agent/TCPSink ]

 
 
 

149

 
 
 
 

150

$ns attach-agent $node (0) $tcp0

 
 
 

151

$ns attach-agent $node (1) $sink0

 
 
 

152

$ns attach-agent $node (2) $tcp1

 
 
 

153

$ns attach-agent $node (3) $sink1

 
 
 

154

 
 
 
 

155

$ns connect $tcp0 $sink0

 
 
 

156

$ns connect $tcp1 $sink1

 
 
 

157

 
 
 
 

158

set cbr0 [ new Application/ Traffic /CBR]

 
 
 

159

$cbr0 attach-agent $tcp0

 
 
 

160

$cbr0 set packetSize 250

 
 
 

161

$cbr0 set rate 6 Mb

 
 
 

162

$cbr0 set interval 0 .005

 
 
 

163

 
 
 
 

164

set cbr1 [ new Application / Traffic /CBR]

 
 
 

9

Annexe

$cbr1 attach-agent $tcp1

$cbr1 set packetSize 250

$cbr1 set rate 6 Mb

$cbr1 set interval 0 .005

#Start logging the received bandwidth

$ns at 0 .0 » record»

$ns at 0 .0 »$cbr0 start»

$ns at 0 .5 »$cbr1 start»

#Stop the traffic sources

$ns at 10 .0 »$cbr0 stop»

$ns at 10 .0 »$cbr1 stop»

#Call the finish procedure after 60 seconds simulation time

$ns at 11 .0 » finish»

# Tell nodes when the simulation ends

#

for { set i 0} { $i < $val (nn) } { incr i } {

$ns at 10 .0 »$node ( $i ) reset»;

}

proc stop {} {

global ns namfile

$ns flush-trace

close $namfile

}

puts » Starting Simulation...»

$ns run

Noeud exposé

165

166

167

168

169

170

171

172

173

174

175

176

177

178

179

180

181

182

183

184

185

186

187

188

189

190

191

192

193

194

195

196

197

1

2

3

4

5

6

7

8

9

10

11

12

set ns [ new Simulator]

set val(chan) Channel/WirelessChannel ;#Channel Type

set val(prop) Propagation/FreeSpace ;# radio-propagation model

set val ( n e t i f ) Phy/WirelessPhy ;# network interface type

set val(mac) Mac/802 11 ;# MAC type

set val ( i f q ) Queue/DropTail/PriQueue ;# interface queue type

set val ( l l ) LL ;# link layer type

set val ( ant ) Antenna/OmniAntenna ;# antenna model

set val ( i f q l e n ) 50 ;# max packet in i f q

set val (nn) 4 ;# number of mobilenodes

10

Annexe

set val(rp) DSDV ;# routing protocol

#set val(rp) DSR ;# routing protocol

#set val(rp) AODV ;# routing protocol

set val(x) 800

set val(y) 500

Phy/WirelessPhy set CSThresh 30.5e-10

# set up topography object

set topo [new Topography]

$topo load flatgrid $val (x) $val (y)

set namfile [open sample33.nam w]

#Tracing all the events and cofiguration

$ns namtrace-all-wireless $namfile $val (x) $val (y)

#Trace File creation

set tracefile [open sample33.tr w]

#Open the output files

set f0 [open node 1.tr w]

set f1 [open node 2.tr w]

#Tracing all the events and cofiguration

$ns trace-all $ t r a c e f i l e

# general operational descriptor- storing the hop details in the network

create-god $val (nn)

# configure the nodes

$ns node-config -adhocRouting $val ( rp ) \

- llType $val ( l l ) \

- macType $val (mac) \

- ifqType $val ( i f q ) \

- ifqLen $val ( i f q l e n ) \

- antType $val (ant ) \

- propType $val (prop) \

- phyType $val ( net i f ) \

- channelType $val ( chan ) \

- topoInstance $topo \

- agentTrace ON \

- routerTrace ON \

- macTrace OFF \

- movementTrace ON

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

11

Annexe

# Node Creation

for { set i 0} { $i < 4} { incr i } {

set node ( $i ) [ $ns node]

$node ( $i ) color black

}

#Location fixing for a single node

$node (0) set X 100 .0

$node (0) set Y 300 .0

$node (0) set Z 0 .0

$node (1) set X 300 .0

$node (1) set Y 300 .0

$node (1) set Z 0 .0

$node (2) set X 500 .0

$node (2) set Y 300 .0

$node (2) set Z 0 .0

$node (3) set X 700 .0

$node (3) set Y 300 .0

$node (3) set Z 0 .0

# Label and coloring

for { set i 0} { $i < 4} { incr i } {

$ns at 0 .1 »$node ( $i ) color blue»

$ns at 0 .1 »$node ( $i ) label Node$i»

}

#Size of the node

for { set i 0} { $i < 4} { incr i } {

$ns initial node pos $node ( $i ) 30

}

#Define a ' finish ' procedure

proc finish {} {

global f0 f1

#Close the output files

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

87

88

89

90

91

92

93

94

95

96

97

98

99

100

101

102

103

104

105

106

107

108

109

110

111

112

113

114

Annexe

 
 
 
 
 

close $f0

close $f1

#Call xgraph to display the results

exec xgraph node 1.tr node 2.tr -geometry 800x400

&

 

115

exit 0

 
 

116

}

 
 

117

 
 
 

118

 
 
 

119

 
 
 

120

proc record {} {

 
 

121

global sink0 sink1 f0 f1

 
 

122

#Get an instance of the simulator

 
 

123

set ns [ Simulator instance]

 
 

124

#Set the time after which the procedure should be

called

again

125

set time 0 .1

 
 

126

#How many bytes have been received by the traffic

sinks?

 

127

set bw0 [ $sink0 set bytes ]

 
 

128

set bw1 [ $sink1 set bytes ]

 
 

129

#Get the current time

 
 

130

set now [ $ns now]

 
 

131

#Calculate the bandwidth ( in MBit/s ) and write i t

to the

files

132

puts $f0 »$now [ expr $bw0/$time*8 /1000000]»

 
 

133

puts $f1 »$now [ expr $bw1/$time*8 /1000000]»

 
 

134

#Reset the bytes values on the traffic sinks

 
 

135

$sink0 set bytes 0

 
 

136

$sink1 set bytes 0

 
 

137

#Re-schedule the procedure

 
 

138

$ns at [ expr $now+$time ] » record»

 
 

139

}

 
 

140

 
 
 

141

#********Defining Communication Between node0 and

all nodes *******

142

 
 
 

143

 
 
 

144

set tcp0 [ new Agent/TCP]

 
 

145

set tcp1 [ new Agent/TCP]

 
 

146

 
 
 

147

$tcp0 set class 2

 
 

148

 
 
 

149

set sink0 [ new Agent/TCPSink ]

 
 

150

set sink1 [ new Agent/TCPSink ]

 
 

151

 
 
 

152

$ns attach-agent $node (1) $tcp0

 
 

153

$ns attach-agent $node (0) $sink0

 
 

154

$ns attach-agent $node (2) $tcp1

 
 

155

$ns attach-agent $node (3) $sink1

 
 

156

 
 
 

157

$ns connect $tcp0 $sink0

 
 

158

$ns connect $tcp1 $sink1

 
 

159

 
 
 

12

13

Annexe

set cbr0 [ new Application / Traffic /CBR]

$cbr0 attach-agent $tcp0

$cbr0 set packetSize 250

$cbr0 set rate 6 Mb

$cbr0 set interval 0 .005

set cbr1 [ new Application / Traffic /CBR]

$cbr1 attach-agent $tcp1

$cbr1 set packetSize 250

$cbr1 set rate 6 Mb

$cbr1 set interval 0 .005

#Start logging the received bandwidth

$ns at 0 .0 » record»

$ns at 0 .0 »$cbr0 start»

$ns at 0 .5 »$cbr1 start»

#Stop the traffic sources

$ns at 10 .0 »$cbr0 stop»

$ns at 10 .0 »$cbr1 stop»

#Call the finish procedure after 60 seconds simulation time

$ns at 11 .0 » finish»

# Tell nodes when the simulation ends

#

for { set i 0} { $i < $val (nn) } { incr i } {

$ns at 10 .0 »$node ( $i ) reset»;

}

#$ns at 10 .0 »stop»

#$ns at 10 .01 »puts \»NS EXITING...\» ; $ns halt»

proc stop {} {

global ns namfile

$ns flush-trace

close $namfile

}

puts » Starting Simulation...»

$ns run

Les trois paires

160

161

162

163

164

165

166

167

168

169

170

171

172

173

174

175

176

177

178

179

180

181

182

183

184

185

186

187

188

189

190

191

192

193

194

195

196

197

198

199

200

201

1

2

3

set ns [ new Simulator]

#Fixing the co-ordinate of simulation area

14

Annexe

4

5

6

7

8

set val(x) 500

set val(y) 500

# Define options

set val(chan) Channel/WirelessChannel ;# channel type

set val ( prop) Propagation/TwoRayGround ;# radio-propagation model

 

9

set val( net i f ) Phy/WirelessPhy ;# network interface type

 
 

10

set val(mac) Mac/802 11 ;# MAC type

 
 

11

set val ( i f q ) Queue/DropTail/PriQueue ;# interface queue type

 
 

12

set val ( l l ) LL ;# link layer type

 
 

13

set val ( ant ) Antenna/OmniAntenna ;# antenna model

 
 

14

set val ( i f q l e n ) 50 ;# max packet in i f q

 
 

15

set val (nn) 6 ;# number of mobilenodes

 
 

16

set val ( rp ) AODV ;# routing protocol

 
 

17

set val (x) 500 ;# X dimension of topography

 
 

18

set val (y) 500 ;# Y dimension of topography

 
 

19

set val(stop) 10 .0 ;# time of simulation end

 
 

20

 
 
 

21

Mac/802 11 set dataRate 11Mb

 
 

22

Mac/802 11 set basicRate 1Mb

 
 

23

Mac/802 11 set RTSThreshold 10000

 
 

24

 
 
 

25

 
 
 

26

# set up topography object

 
 

27

set topo [ new Topography]

 
 

28

$topo load f l a t g r i d $val (x) $val (y)

 
 

29

 
 
 

30

 
 
 

31

set namfile [ open sample33.nam w]

 
 

32

 
 
 

33

#Tracing all the events and cofiguration

 
 

34

$ns namtrace-all-wireless $namfile $val (x) $val (y)

 
 

35

 
 
 

36

 
 
 

37

#Trace File creation

 
 

38

set t r a c e f i l e [ open sample33.tr w]

 
 

39

 
 
 

40

#Open the output files

 
 

41

set f0 [ open node 0.tr w]

 
 

42

set f1 [ open node 1.tr w]

 
 

43

set f2 [ open node 2.tr w]

 
 

44

 
 
 

45

 
 
 

46

#Tracing all the events and cofiguration

 
 

47

$ns trace-all $ t r a c e f i l e

 
 

48

 
 
 

49

# general operational descriptor- storing the hop details in

the

network

50

create-god $val (nn)

 
 

51

 
 
 

52

# configure the nodes

 
 

précédent sommaire suivant






Bitcoin is a swarm of cyber hornets serving the goddess of wisdom, feeding on the fire of truth, exponentially growing ever smarter, faster, and stronger behind a wall of encrypted energy








"Et il n'est rien de plus beau que l'instant qui précède le voyage, l'instant ou l'horizon de demain vient nous rendre visite et nous dire ses promesses"   Milan Kundera