close

Вход

Забыли?

вход по аккаунту

?

L6

код для вставкиСкачать
Федеральное агентство образования РФ
Вологодский государственный технический университет
Кафедра АВТ
Лабораторная работа №6
Выполнил: Летовальцев В.
Группа: ЭПО-31
Проверил: Cуконщиков А. А.
Вологда
2005 г. Цель работы: промоделировать работу сети, разделенной на 2 части - с кольцевой и звездно-шинной топологией.
Задание 1
1. Задание
Промоделировать сеть представленную на рис. 2.1
Рис 2.1
2.Текст программы на GPSS.
5 ADDR1 FUNCTION RN2,D11
0.09,2/0.2,3/0.3,24/0.35,11/0.4,12/0.45,13/0.55,14/0.6,21/0.7,22/0.8,23/1,4
10 generate 25,2
20 assign 1,1
21 assign 2,FN$ADDR1
30 assign 3,0
40 seize PC1
50 advance 5,4
60 release PC1
70 seize KAH1
80 advance 4,2
90 release KAH1
100 transfer ,switch1
110 ADDR2 FUNCTION RN2,D11
0.09,1/0.2,3/0.3,24/0.35,11/0.4,12/0.45,13/0.55,14/0.6,21/0.7,22/0.8,23/1,4
120 generate 24,3
130 assign 1,2
140 assign 2,FN$ADDR2
150 assign 3,0
160 seize PC2
170 advance 8,5
180 release PC2
190 seize KAH2
200 advance 5,3
210 release KAH2
220 transfer ,switch1
230 ADDR3 FUNCTION RN2,D11
0.09,2/0.23,1/0.3,24/0.35,11/0.4,12/0.45,13/0.55,14/0.6,21/0.7,22/0.8,23/1,4
240 generate 25,4
250 assign 1,3
260 assign 2,FN$ADDR3
270 assign 3,0
280 seize PC3
290 advance 5,3
300 release PC3
310 seize KAH3
320 advance 3,2
330 release KAH3
340 transfer ,switch1
350 server seize KAH4
360 advance 6,5
370 release KAH4 380 seize FS1
390 advance 17,3
400 release FS1
410 test NE P3,1,kill
420 assign 2,P1
430 assign 3,1
440 seize KAH4
450 advance 6,5
460 release KAH4 470 transfer ,switch1
480 comp1 seize KAH1
490 advance 4,2
500 release KAH1
510 seize PC1
520 advance 5,4
530 release PC1
540 test NE P3,1,kill
550 assign 2,P1
560 assign 3,1
570 seize KAH1
580 advance 4,2
590 release KAH1 600 transfer ,switch1
610 comp2 seize KAH2
620 advance 5,3
630 release KAH2
640 seize PC2
650 advance 10,5
660 release PC2
670 test NE P3,1,kill
680 assign 2,P1
690 assign 3,1
700 seize KAH2
710 advance 5,3
720 release KAH2 730 transfer ,switch1
740 comp3 seize KAH3
750 advance 3,2
760 release KAH3
770 seize PC3
780 advance 5,3
790 release PC3
800 test NE P3,1,kill
810 assign 2,P1
820 assign 3,1
830 seize KAH3
840 advance 3,2
850 release KAH3 860 transfer ,switch1
870 KAH0_label seize KAH0
880 advance 2,1
890 release KAH0
900 test GE P2,10,switch1
910 transfer ,switch11
920 switch1 seize sw1
930 advance 2,1
940 release sw1
950 test L P2,9,KAH0_label 960 test NE P2,4,server
970 test NE P2,1,comp1
980 test NE P2,2,comp2
990 test NE P2,3,comp3
1000 ADDR11 FUNCTION RN2,D11
0.09,2/0.23,3/0.3,24/0.35,1/0.4,12/0.45,13/0.55,14/0.6,21/0.7,22/0.8,23/1,4
1010 generate 25,3
1020 assign 1,11
1030 assign 2,FN$ADDR11
1040 assign 3,0
1050 seize PC11
1060 advance 5,4
1070 release PC11
1080 seize KAH11
1090 advance 4,2
1100 release KAH11
1110 transfer ,switch11
1120 ADDR12 FUNCTION RN2,D11
0.09,2/0.23,3/0.3,24/0.35,11/0.4,1/0.45,13/0.55,14/0.6,21/0.7,22/0.8,23/1,4
1130 generate 24,3
1140 assign 1,12
1150 assign 2,FN$ADDR12
1160 assign 3,0
1170 seize PC12
1180 advance 10,5
1190 release PC12
1200 seize KAH12
1210 advance 5,3
1220 release KAH12
1230 transfer ,switch11
1240 ADDR13 FUNCTION RN2,D11
0.09,2/0.23,3/0.3,24/0.35,11/0.4,12/0.45,3/0.55,14/0.6,21/0.7,22/0.8,23/1,4
1250 generate 32,4
1260 assign 1,13
1270 assign 2,FN$ADDR13
1280 assign 3,0
1290 seize PC13
1300 advance 12,8
1310 release PC13
1320 seize KAH13
1330 advance 3,2
1340 release KAH13
1350 transfer ,switch11
1360 server1 seize KAH14
1370 advance 6,5
1380 release KAH14 1390 seize FS11
1400 advance 20,3
1410 release FS11
1420 test NE P3,1,kill
1430 assign 2,P1
1440 assign 3,1
1450 assign 1,14
1460 seize KAH14
1470 advance 6,5
1480 release KAH14 1490 transfer ,switch11
1500 comp11 seize KAH11
1510 advance 4,2
1520 release KAH11
1530 seize PC11
1540 advance 3,2
1550 release PC11
1560 test NE P3,1,kill
1570 assign 2,P1
1580 assign 3,1
1590 seize KAH11
1600 advance 6,4
1610 release KAH11 1620 transfer ,switch11
1630 comp12 seize KAH12
1640 advance 5,3
1650 release KAH12
1660 seize PC12
1670 advance 6,4
1680 release PC12
1690 test NE P3,1,kill
1700 assign 2,P1
1710 assign 3,1
1720 seize KAH12
1730 advance 5,3
1740 release KAH12 1750 transfer ,switch11
1760 comp13 seize KAH13
1770 advance 3,2
1780 release KAH13
1790 seize PC13
1800 advance 6,4
1810 release PC13
1820 test NE P3,1,kill
1830 assign 2,P1
1840 assign 3,1
1850 seize KAH13
1860 advance 3,2
1870 release KAH13 1880 transfer ,switch11
1890 switch11 seize sw11
1900 advance 2,1
1910 release sw11
1920 test GE P2,11,KAH0_label 1925 test L P2,20,KAH10_label
1930 test NE P2,14,server1
1940 test NE P2,11,comp11
1950 test NE P2,12,comp12
1960 test NE P2,13,comp13 1970 kill terminate 2000 exit_ring seize KAH10
2010 advance 5,1
2020 release KAH10
2030 transfer ,switch11
2200 KAH10_label seize KAH10
2210 advance 4,1
2220 release KAH10
2300 FS_ring seize FS2
2310 advance 2,1
2320 release FS2 2330 seize FS2
2340 advance 2,1
2350 release FS2
2360 test G P2,20,exit_ring
2370 test E P2,24,to_first
2380 assign 2,P1
2390 assign 1,24 2400 assign 3,1
2410 to_first seize KAH24
2420 advance 5,1
2430 release KAH24
2440 transfer ,to_first1
2450 to_first1 seize PC1
2460 advance 2,1
2470 release PC1
2480 test E P2,21,one
2490 seize PC1
2500 advance 4,3
2510 release PC1 2520 test NE P3,1,kill
2530 assign 2,P1
2540 assign 3,1
2545 transfer ,one
2550 ADDR21 FUNCTION RN2,D11
0.09,2/0.2,3/0.3,4/0.35,11/0.4,12/0.45,13/0.5,14/0.6,1/0.7,22/0.8,23/1,24
2560 generate 33,2
2570 assign 1,1
2580 assign 2,FN$ADDR21
2590 assign 3,0
2600 seize PC21
2610 advance 4,3
2620 release PC21
2630 one seize KAH21
2640 advance 5,1
2650 release KAH21
2660 seize PC22
2670 advance 2,1
2680 release PC22
2690 test E P2,22,two
2700 seize PC22
2710 advance 5,2
2720 release PC22
2730 test NE P3,1,kill
2740 assign 2,P1
2750 assign 3,1
2760 transfer ,two
2770 ADDR22 FUNCTION RN2,D11
0.09,2/0.2,3/0.3,4/0.35,11/0.4,12/0.45,13/0.5,14/0.6,21/0.7,1/0.9,23/1,24
2780 generate 33,2
2790 assign 1,22
2800 assign 2,FN$ADDR22
2810 assign 3,0
2820 seize PC22
2830 advance 5,2
2840 release PC22
2850 two seize KAH22
2860 advance 5,1
2870 release KAH22
2880 seize PC23
2890 advance 2,1
2900 release PC23
2910 test E P2,23,three
2920 seize PC23
2930 advance 6,5
2940 release PC23
2950 test NE P3,1,kill
2960 assign 2,P1
2970 assign 3,1
2975 transfer ,three
2980 ADDR23 FUNCTION RN2,D11
0.09,2/0.2,3/0.3,4/0.35,11/0.4,12/0.45,13/0.5,14/0.6,21/0.7,22/0.8,1/1,24
2990 generate 33,2
3000 assign 1,23
3010 assign 2,FN$ADDR23
3020 assign 3,0
3030 seize PC23
3040 advance 6,5
3050 release PC23
3060 three seize KAH23
3070 advance 5,1
3080 release KAH23
3090 transfer ,FS_ring
20000 generate 1000
20010 terminate 1
20020 start 1
Результаты моделирования:
FACILITY ENTRIES UTIL. AVE._TIME AVAILABLE OWNER PEND INTER RETRY DELAY
PC1 259 0.860 3.32 1 252 0 0 0 14
KAH1 146 0.564 3.86 1 0 0 0 0 0
PC2 100 0.930 9.30 1 264 0 0 0 3
KAH2 128 0.655 5.12 1 0 0 0 0 0
PC3 99 0.489 4.94 1 0 0 0 0 0
KAH3 124 0.356 2.87 1 0 0 0 0 0
KAH4 101 0.617 6.11 1 242 0 0 0 1
FS1 49 0.799 16.31 1 291 0 0 0 4
KAH0 283 0.557 1.97 1 0 0 0 0 0
SW1 390 0.786 2.02 1 304 0 0 0 3
PC11 80 0.322 4.02 1 0 0 0 0 0
KAH11 88 0.360 4.09 1 0 0 0 0 0
PC12 93 0.765 8.23 1 325 0 0 0 1
KAH12 108 0.523 4.84 1 0 0 0 0 0
PC13 70 0.635 9.07 1 323 0 0 0 0
KAH13 83 0.239 2.88 1 0 0 0 0 0
KAH14 45 0.264 5.87 1 0 0 0 0 0
FS11 23 0.436 18.96 1 315 0 0 0 0
SW11 405 0.830 2.05 1 283 0 0 0 1
KAH10 199 0.913 4.59 1 308 0 0 0 9
FS2 472 0.925 1.96 1 293 0 0 0 9
KAH24 122 0.588 4.82 1 0 0 0 0 0
PC21 30 0.133 4.43 1 0 0 0 0 0
KAH21 143 0.715 5.00 1 0 0 0 0 0
PC22 224 0.684 3.05 1 268 0 0 0 1
KAH22 146 0.729 4.99 1 222 0 0 0 0
PC23 220 0.761 3.46 1 316 0 0 0 0
KAH23 152 0.754 4.96 1 320 0 0 0 0
Вывод
Промоделировали работу данной системы. Видим, что "кольцевая часть" загружена сильнее. Это обусловлено особенностью движения пакетов для кольцевой топологии.
Количество потерянных пакетов в моделируемых системах не превышает 10%.
Следовательно, моделирование проведено успешно. Цель работы достигнута.
Документ
Категория
Рефераты
Просмотров
4
Размер файла
70 Кб
Теги
1/--страниц
Пожаловаться на содержимое документа