Scrigroup - Documente si articole

     

HomeDocumenteUploadResurseAlte limbi doc
AccessAdobe photoshopAlgoritmiAutocadBaze de dateC
C sharpCalculatoareCorel drawDot netExcelFox pro
FrontpageHardwareHtmlInternetJavaLinux
MatlabMs dosPascalPhpPower pointRetele calculatoare
SqlTutorialsWebdesignWindowsWordXml

Retele de Calculatoare

calculatoare



+ Font mai mare | - Font mai mic



 

 

Proiectarea Retelelor de Calculatoare

Culegerea datelor

Anul nasterii mele 1985, din care voi scadea 1960 si voi obtine 25, iar reprezentat pe 5 biti, va arata de forma: 11001.

Ziua de nastere este 1+3=4, iar reprezentat pe 5 biti va fi de forma: 00010.

Luna de nastere este 10 +5=15 iar reprezentat pe 4 biti, va arata: 1111.

L = 76 Þ

I = 73 Þ

V = 86 Þ



Completarea tabelului

B0

B9

B18

B27

B1

B10

B19

B28

B2

B11

B20

B29

B3

B12

B21

B30

B4

B13

B22

B31

B5

B14

B23

B6

B15

B24

B7

B16

B25

B8

B17

B26

Pe baza informatiilor obtinute tabelul vom putea determina conectivitatea intre noduri ; aceasta va arata astfel :

Nod 1

Nod 2

Nod3

Nod4

Nod5

Nod6

Nod7

Nod8

Nod1

Nod2

Nod3

Nod4

Nod5

Nod6

Nod7

Nod8

Ø      Bitul 1 reprezinta existenta unei legaturi intre noduri

Ø      Bitul 0 reprezinta lipsa unei legaturi intre noduri .

Diagrama de topologie

4. Atribuirea adreselor la interfetele nodurilor

Mai jos vom atribui adrese IP la toate interfetele nodurilor 1-8 folosint mai multe adrese din clasele 192.168.x.x . Am hotarat ca voi atribui adrese din clasa 192.168.0.x .

Interfata NOD 1  : 192.168.0.1

Interfata NOD 2  : 192.168.0.2

Interfata NOD 3  : 192.168.0.3

Interfata NOD 4  : 192.168.0.4

Interfata NOD 5  : 192.168.0.5

Interfata NOD 6  : 192.168.0.6

Interfata NOD 7  : 192.168.0.7

Interfata NOD 8  : 192.168.0.8

Atribuirea vitezelor si intarzierilor celor 14 linkuri

Conexiune

Viteza Kb/s

Viteza Mb/s

Intarziere

9.6kb/s

1 ms

19.2kb/s

1020 ms

100Mb/s

10 ms

200kb/s

180 ms

10Mb/s

600 ms

144kb/s

3 ms

33.6kb/s

220 ms

64kb/s

40 ms

9.6kb/s

1 ms

100Mb/s

10 ms

10Mb/s

600 ms

33.6kb/s

220 ms

19.2kb/s

1020 ms

100Mb/s

10 ms

Construirea simularii

set ns [new Simulator]

set nf [open out1.nam w]

$ns namtrace-all $nf

proc finish

set n1 [$ns node]

set n2 [$ns node]

set n3 [$ns node]

set n4 [$ns node]

set n5 [$ns node]

set n6 [$ns node]

set n7 [$ns node]

set n8 [$ns node]

$ns duplex-link $n1 $n2 9.6kb 1ms DropTail

$ns duplex-link $n1 $n3 19.2kb 1020ms DropTail

$ns duplex-link $n1 $n6 100Mb 10ms DropTail

$ns duplex-link $n2 $n4 200kb 180ms DropTail

$ns duplex-link $n2 $n6 10Mb 600ms DropTail

$ns duplex-link $n2 $n7 144Kb 3ms DropTail

$ns duplex-link $n2 $n8 33.6Kb 220ms DropTail

$ns duplex-link $n3 $n4 64kb 40ms DropTail

$ns duplex-link $n3 $n5 9.6kb 1ms DropTail

$ns duplex-link $n3 $n8 100Mb 10ms DropTail

$ns duplex-link $n4 $n5 10Mb 600ms DropTail

$ns duplex-link $n4 $n8 33.6Kb 220ms DropTail

$ns duplex-link $n5 $n8 19.2Kb 1020ms DropTail

$ns duplex-link $n7 $n8 100Mb 10ms DropTail

#Create a UDP agent and attach it to nod n0

set udp6 [new Agent/UDP]

$ns attach-agent $n6 $udp6

#Create a CBR traffic source and attach it to udp0

set cbr6 [new Application/Traffic/CBR]

$cbr6 set packetSize_ 1500b

$cbr6 set interval_ 2ms

$cbr6 attach-agent $udp6

#Create a UDP agent and attach it to nod n0

set udp4 [new Agent/UDP]

$ns attach-agent $n4 $udp4

#Create a CBR traffic source and attach it to udp0

set cbr4 [new Application/Traffic/CBR]

$cbr4 set packetSize_ 100b

$cbr4 set interval_ 50ms

$cbr4 attach-agent $udp4

set null7 [new Agent/Null]

$ns attach-agent $n7 $null7

$ns connect $udp6 $null7

$ns connect $udp4 $null7

$ns at 0.1 '$cbr6 start'

$ns at 3.0 '$cbr6 stop'

$ns at 0.3 '$cbr4 start'

$ns at 4.0 '$cbr4 stop'

$udp6 set class_ 1

$udp4 set class_ 2

$ns color 1 Blue

$ns color 2 Red

$ns at 5.0 'finish'

$ns run



Politica de confidentialitate | Termeni si conditii de utilizare



DISTRIBUIE DOCUMENTUL

Comentarii


Vizualizari: 2032
Importanta: rank

Comenteaza documentul:

Te rugam sa te autentifici sau sa iti faci cont pentru a putea comenta

Creaza cont nou

Termeni si conditii de utilizare | Contact
© SCRIGROUP 2024 . All rights reserved