close

Вход

Забыли?

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

?

лаба 2

код для вставкиСкачать
Лабораторная работа №2
Задание 1.
Промоделировать сеть, представленную на рис. 2.1
1 *
10 GENERATE 20,11 ; 20 SEIZE PC1 ; 30 ASSIGN 1,1 40 ASSIGN 2,14 50 ADVANCE 10,4 60 RELEASE PC1 70 SEIZE K1 ; 80 ADVANCE 10,2 90 RELEASE K1 100 TRANSFER ,SW4 ; 110 * 2 120 GENERATE 20,7 ; 130 SEIZE PC2 ; 140 ASSIGN 1,2 150 ASSIGN 2,14 160 ADVANCE 12,7 170 RELEASE PC2 180 SEIZE K2 ; 190 ADVANCE 10,7 200 RELEASE K2 210 TRANSFER ,SW4 ; 220 * 3 230 GENERATE 20,12 ; 240 SEIZE PC3 ; 250 ASSIGN 1,3 260 ASSIGN 2,14 270 ADVANCE 9,5 280 RELEASE PC3 290 SEIZE K3 ; 300 ADVANCE 7,3 310 RELEASE K3 320 TRANSFER ,SW4 ; 330 * обратно 340 A_1 SEIZE K1 ; 350 ADVANCE 4,2 360 RELEASE K1 370 SEIZE PC1 ; 380 ADVANCE 4,2 390 RELEASE PC1 400 TERMINATE 410 * 420 A_2 SEIZE K2 ; 430 ADVANCE 8,3 440 RELEASE K2 450 SEIZE PC2 ; 460 ADVANCE 5,1 470 RELEASE PC2 480 TERMINATE 490 * 500 A_3 SEIZE K3 ; 510 ADVANCE 8,3 520 RELEASE K3 530 SEIZE PC3 ; 540 ADVANCE 4,2 550 RELEASE PC3 560 TERMINATE 570 * 580 A_4 SEIZE K4 ; 590 ADVANCE 2,1 600 RELEASE K4 610 SEIZE FS1 ; 620 ADVANCE 6,2 630 ASSIGN 2,P1 650 RELEASE FS1 660 SEIZE K4 ; 670 ADVANCE 3,1 680 RELEASE K4 690 TRANSFER ,SW4 700 *
701 KS12 SEIZE KSW
702 ADVANCE 2,1
703 RELEASE KSW
705 * 710 SW4 SEIZE SW 720 ADVANCE 2,1 730 RELEASE SW
740 TEST NE P2,1,A_1 741 TEST NE P2,2,A_2 742 TEST NE P2,3,A_3 743 TEST NE P2,4,A_4 744 TRANSFER ,KS21
745 ******************************
1001 *
1010 GENERATE 30,14 ; 1020 SEIZE PC21 ; 1030 ASSIGN 1,11 1040 ASSIGN 2,4 1050 ADVANCE 10,4 1060 RELEASE PC21 1070 SEIZE K21 ; 1080 ADVANCE 9,4 1090 RELEASE K21 1100 TRANSFER ,SW42 ; 1110 * 2 1120 GENERATE 30,10 ; 1130 SEIZE PC22 ; 1140 ASSIGN 1,12 1150 ASSIGN 2,4 1160 ADVANCE 12,8 1170 RELEASE PC22 1180 SEIZE K22 ; 1190 ADVANCE 10,7 1200 RELEASE K22 1210 TRANSFER ,SW42 ; 1220 * 3 1230 GENERATE 20,10 ; 1240 SEIZE PC23 ; 1250 ASSIGN 1,13 1260 ASSIGN 2,4 1270 ADVANCE 11,5 1280 RELEASE PC23 1290 SEIZE K23 ; 1300 ADVANCE 8,4 1310 RELEASE K23 1320 TRANSFER ,SW42 ; 1330 * обратно 1340 A_21 SEIZE K21 ; 1350 ADVANCE 5,2 1360 RELEASE K21 1370 SEIZE PC21 ; 1380 ADVANCE 3,2 1390 RELEASE PC21 1400 TERMINATE 1410 * 1420 A_22 SEIZE K22 ; 1430 ADVANCE 5,3 1440 RELEASE K22 1450 SEIZE PC22 ; 1460 ADVANCE 2,1 1470 RELEASE PC22 1480 TERMINATE 1490 * 1500 A_23 SEIZE K23 ; 1510 ADVANCE 8,3 1520 RELEASE K23 1530 SEIZE PC23 ; 1540 ADVANCE 3,2 1550 RELEASE PC23 1560 TERMINATE 1570 * 1580 A_24 SEIZE K24 ; 1590 ADVANCE 2,1 1600 RELEASE K24 1610 SEIZE FS21 ; 1620 ADVANCE 5,1 1630 ASSIGN 2,P1 1650 RELEASE FS21 1660 SEIZE K24 ; 1670 ADVANCE 2,1 1680 RELEASE K24 1690 TRANSFER ,SW42 1700 *
1701 KS21 SEIZE KSW
1702 ADVANCE 2,1
1703 RELEASE KSW
1705 * 1710 SW42 SEIZE SW2 1720 ADVANCE 2,1 1730 RELEASE SW2
1740 TEST NE P2,11,A_21 1741 TEST NE P2,12,A_22 1742 TEST NE P2,13,A_23 1743 TEST NE P2,14,A_24 1744 TRANSFER ,KS12
1745 * 1750 * 1760 GENERATE 1000 1770 TERMINATE 1
1780 * 1790 START 1
Результаты моделирования
GPSS World Simulation Report - Untitled.9.1
Wednesday, December 21, 2011 02:13:05 START TIME END TIME BLOCKS FACILITIES STORAGES
0.000 1000.000 148 19 0
NAME VALUE A_1 31.000
A_2 38.000
A_21 104.000
A_22 111.000
A_23 118.000
A_24 125.000
A_3 45.000
A_4 52.000
FS1 10015.000
FS21 10018.000
K1 10011.000
K2 10013.000
K21 10008.000
K22 10014.000
K23 10003.000
K24 10017.000
K3 10016.000
K4 10012.000
KS12 63.000
KS21 136.000
KSW 10009.000
PC1 10004.000
PC2 10002.000
PC21 10001.000
PC22 10006.000
PC23 10000.000
PC3 10005.000
SW 10010.000
SW2 10007.000
SW4 66.000
SW42 139.000
LABEL LOC BLOCK TYPE ENTRY COUNT CURRENT COUNT RETRY
1 GENERATE 51 0 0
2 SEIZE 51 0 0
3 ASSIGN 51 0 0
4 ASSIGN 51 0 0
5 ADVANCE 51 0 0
6 RELEASE 51 0 0
7 SEIZE 51 0 0
8 ADVANCE 51 1 0
9 RELEASE 50 0 0
10 TRANSFER 50 2 0
11 GENERATE 47 0 0
12 SEIZE 47 0 0
13 ASSIGN 47 0 0
14 ASSIGN 47 0 0
15 ADVANCE 47 1 0
16 RELEASE 46 0 0
17 SEIZE 46 0 0
18 ADVANCE 46 1 0
19 RELEASE 45 0 0
20 TRANSFER 45 1 0
21 GENERATE 46 0 0
22 SEIZE 46 0 0
23 ASSIGN 46 0 0
24 ASSIGN 46 0 0
25 ADVANCE 46 0 0
26 RELEASE 46 0 0
27 SEIZE 46 0 0
28 ADVANCE 46 1 0
29 RELEASE 45 0 0
30 TRANSFER 45 2 0
A_1 31 SEIZE 43 0 0
32 ADVANCE 43 0 0
33 RELEASE 43 0 0
34 SEIZE 43 0 0
35 ADVANCE 43 0 0
36 RELEASE 43 0 0
37 TERMINATE 43 0 0
A_2 38 SEIZE 39 0 0
39 ADVANCE 39 0 0
40 RELEASE 39 0 0
41 SEIZE 39 0 0
42 ADVANCE 39 0 0
43 RELEASE 39 0 0
44 TERMINATE 39 0 0
A_3 45 SEIZE 40 0 0
46 ADVANCE 40 0 0
47 RELEASE 40 0 0
48 SEIZE 40 0 0
49 ADVANCE 40 1 0
50 RELEASE 39 0 0
51 TERMINATE 39 0 0
A_4 52 SEIZE 105 0 0
53 ADVANCE 105 0 0
54 RELEASE 105 1 0
55 SEIZE 104 0 0
56 ADVANCE 104 1 0
57 ASSIGN 103 0 0
58 RELEASE 103 0 0
59 SEIZE 103 0 0
60 ADVANCE 103 0 0
61 RELEASE 103 0 0
62 TRANSFER 103 4 0
KS12 63 SEIZE 238 0 0
64 ADVANCE 238 0 0
65 RELEASE 238 9 0
SW4 66 SEIZE 463 0 0
67 ADVANCE 463 1 0
68 RELEASE 462 0 0
69 TEST 462 0 0
70 TEST 419 1 0
71 TEST 379 0 0
72 TEST 339 0 0
73 TRANSFER 234 2 0
74 GENERATE 34 0 0
75 SEIZE 34 0 0
76 ASSIGN 34 0 0
77 ASSIGN 34 0 0
78 ADVANCE 34 1 0
79 RELEASE 33 0 0
80 SEIZE 33 0 0
81 ADVANCE 33 0 0
82 RELEASE 33 0 0
83 TRANSFER 33 0 0
84 GENERATE 32 0 0
85 SEIZE 32 0 0
86 ASSIGN 32 0 0
87 ASSIGN 32 0 0
88 ADVANCE 32 0 0
89 RELEASE 32 0 0
90 SEIZE 32 0 0
91 ADVANCE 32 1 0
92 RELEASE 31 0 0
93 TRANSFER 31 1 0
94 GENERATE 50 0 0
95 SEIZE 50 0 0
96 ASSIGN 50 0 0
97 ASSIGN 50 0 0
98 ADVANCE 50 0 0
99 RELEASE 50 0 0
100 SEIZE 50 0 0
101 ADVANCE 50 1 0
102 RELEASE 49 0 0
103 TRANSFER 49 0 0
A_21 104 SEIZE 28 0 0
105 ADVANCE 28 0 0
106 RELEASE 28 0 0
107 SEIZE 28 0 0
108 ADVANCE 28 0 0
109 RELEASE 28 0 0
110 TERMINATE 28 0 0
A_22 111 SEIZE 27 0 0
112 ADVANCE 27 0 0
113 RELEASE 27 0 0
114 SEIZE 27 0 0
115 ADVANCE 27 1 0
116 RELEASE 26 0 0
117 TERMINATE 26 0 0
A_23 118 SEIZE 42 0 0
119 ADVANCE 42 0 0
120 RELEASE 42 0 0
121 SEIZE 42 0 0
122 ADVANCE 42 1 0
123 RELEASE 41 0 0
124 TERMINATE 41 0 0
A_24 125 SEIZE 131 0 0
126 ADVANCE 131 0 0
127 RELEASE 131 0 0
128 SEIZE 131 0 0
129 ADVANCE 131 1 0
130 ASSIGN 130 0 0
131 RELEASE 130 0 0
132 SEIZE 130 0 0
133 ADVANCE 130 0 0
134 RELEASE 130 0 0
135 TRANSFER 130 0 0
KS21 136 SEIZE 232 0 0
137 ADVANCE 232 1 0
138 RELEASE 231 3 0
SW42 139 SEIZE 470 0 0
140 ADVANCE 470 1 0
141 RELEASE 469 0 0
142 TEST 469 0 0
143 TEST 441 0 0
144 TEST 414 0 0
145 TEST 372 0 0
146 TRANSFER 241 3 0
147 GENERATE 1 0 0
148 TERMINATE 1 0 0
FACILITY ENTRIES UTIL. AVE. TIME AVAIL. OWNER PEND INTER RETRY DELAY
PC23 92 0.707 7.681 1 218 0 0 0 0
PC21 62 0.404 6.518 1 256 0 0 0 0
PC2 86 0.667 7.757 1 257 0 0 0 0
K23 92 0.685 7.441 1 259 0 0 0 0
PC1 94 0.683 7.267 1 0 0 0 0 0
PC3 86 0.560 6.513 1 221 0 0 0 0
PC22 59 0.460 7.796 1 219 0 0 0 0
SW2 404 0.813 2.012 1 207 0 0 0 1
K21 61 0.455 7.465 1 0 0 0 0 0
KSW 404 0.796 1.970 1 0 0 0 0 0
SW 405 0.803 1.982 1 205 0 0 0 1
K1 94 0.671 7.138 1 260 0 0 0 0
K4 208 0.511 2.458 1 0 0 0 0 0
K2 85 0.782 9.197 1 253 0 0 0 1
K22 59 0.470 7.969 1 261 0 0 0 0
FS1 104 0.626 6.020 1 237 0 0 0 1
K3 86 0.647 7.523 1 258 0 0 0 0
K24 261 0.508 1.947 1 0 0 0 0 0
FS21 131 0.658 5.021 1 236 0 0 0 0
FEC XN PRI BDT ASSEM CURRENT NEXT PARAMETER VALUE
254 0 1000.137 254 140 141 1 13.000
2 4.000
239 0 1000.320 239 67 68 1 11.000
2 4.000
225 0 1000.517 225 137 138 1 11.000
2 11.000
221 0 1000.530 221 49 50 1 3.000
2 3.000
237 0 1001.004 237 56 57 1 13.000
2 4.000
219 0 1001.019 219 115 116 1 12.000
2 12.000
258 0 1001.741 258 28 29 1 3.000
2 14.000
257 0 1001.898 257 15 16 1 2.000
2 14.000
218 0 1002.033 218 122 123 1 13.000
2 13.000
236 0 1003.359 236 129 130 1 2.000
2 14.000
253 0 1003.933 253 18 19 1 2.000
2 14.000
256 0 1003.973 256 78 79 1 11.000
2 4.000
261 0 1004.922 261 91 92 1 12.000
2 4.000
264 0 1005.036 264 0 94
259 0 1006.522 259 101 102 1 13.000
2 4.000
262 0 1006.828 262 0 1
260 0 1007.054 260 8 9 1 1.000
2 14.000
265 0 1008.464 265 0 21
266 0 1012.437 266 0 11
263 0 1017.837 263 0 84
267 0 1024.102 267 0 74
268 0 2000.000 268 0 147
Вывод:
В данном случае все рабочие станции и сервер соединялись с помощью 2х коммутатора.
Каждый коммутатор определял номер станции, к которой обращён пакет, и посылал его по соответствующему адресу (в соответствующий канал). По результатам моделирования серверы загружены оптимально
Задание 2.
Промоделировать сеть, представленную на рис. 2.1.
Рабочие станции отправляют пакеты только на серверы. Вероятность отправки пакета на первый сервер 35%, на второй сервер 65%.
Текст программы на GPSS.
1 ADR FUNCTION RN1,D2
0.35,4/1,8
2 *
10 GENERATE 30,10 ; 20 SEIZE PC1 ; 30 ASSIGN 1,1 40 ASSIGN 2,FN$ADR 50 ADVANCE 8,2 60 RELEASE PC1 70 SEIZE K1 ; 80 ADVANCE 4,2 90 RELEASE K1 100 TRANSFER ,SW4 ; 110 * 2 120 GENERATE 20,10 ; 130 SEIZE PC2 ; 140 ASSIGN 1,2 150 ASSIGN 2,FN$ADR 160 ADVANCE 8,3 170 RELEASE PC2 180 SEIZE K2 ; 190 ADVANCE 10,5 200 RELEASE K2 210 TRANSFER ,SW4 ; 220 * 3 230 GENERATE 20,10 ; 240 SEIZE PC3 ; 250 ASSIGN 1,3 260 ASSIGN 2,FN$ADR 270 ADVANCE 8,4 280 RELEASE PC3 290 SEIZE K3 ; 300 ADVANCE 8,4 310 RELEASE K3 320 TRANSFER ,SW4 ; 330 * 340 A_1 SEIZE K1 ; 350 ADVANCE 4,2 360 RELEASE K1 370 SEIZE PC1 ; 380 ADVANCE 4,2 390 RELEASE PC1 400 TERMINATE 410 * 420 A_2 SEIZE K2 ; 430 ADVANCE 5,3 440 RELEASE K2 450 SEIZE PC2 ; 460 ADVANCE 3,1 470 RELEASE PC2 480 TERMINATE 490 * 500 A_3 SEIZE K3 ; 510 ADVANCE 8,3 520 RELEASE K3 530 SEIZE PC3 ; 540 ADVANCE 4,2 550 RELEASE PC3 560 TERMINATE 570 * 580 A_4 SEIZE K4 ; 590 ADVANCE 3,1 600 RELEASE K4 610 SEIZE FS1 ; 620 ADVANCE 8,4 630 ASSIGN 2,P1 650 RELEASE FS1 660 SEIZE K4 ; 670 ADVANCE 3,1 680 RELEASE K4 690 TRANSFER ,SW4 700 *
701 KS12 SEIZE KSW
702 ADVANCE 3,1
703 RELEASE KSW
705 * 710 SW4 SEIZE SW 720 ADVANCE 2,1 730 RELEASE SW
740 TEST NE P2,1,A_1 741 TEST NE P2,2,A_2 742 TEST NE P2,3,A_3 743 TEST NE P2,4,A_4 744 TRANSFER ,KS21
745 ******************************
1001 *
1003 * 1
1010 GENERATE 30,10 ; 1020 SEIZE PC21 ; 1030 ASSIGN 1,5 1040 ASSIGN 2,FN$ADR 1050 ADVANCE 8,4 1060 RELEASE PC21 1070 SEIZE K21 ; 1080 ADVANCE 6,4 1090 RELEASE K21 1100 TRANSFER ,SW42 ; 1110 * 2 1120 GENERATE 20,10 ; 1130 SEIZE PC22 ; 1140 ASSIGN 1,6 1150 ASSIGN 2,FN$ADR 1160 ADVANCE 12,8 1170 RELEASE PC22 1180 SEIZE K22 ; 1190 ADVANCE 10,7 1200 RELEASE K22 1210 TRANSFER ,SW42 ; 1220 * 3 1230 GENERATE 30,10 ; 1240 SEIZE PC23 ; 1250 ASSIGN 1,7 1260 ASSIGN 2,FN$ADR 1270 ADVANCE 8,4 1280 RELEASE PC23 1290 SEIZE K23 ; 1300 ADVANCE 8,4 1310 RELEASE K23 1320 TRANSFER ,SW42 ; 1330 * 1340 A_21 SEIZE K21 ; 1350 ADVANCE 5,2 1360 RELEASE K21 1370 SEIZE PC21 ; 1380 ADVANCE 5,2 1390 RELEASE PC21 1400 TERMINATE 1410 * 1420 A_22 SEIZE K22 ; 1430 ADVANCE 5,3 1440 RELEASE K22 1450 SEIZE PC22 ; 1460 ADVANCE 3,1 1470 RELEASE PC22 1480 TERMINATE 1490 * 1500 A_23 SEIZE K23 ; 1510 ADVANCE 8,3 1520 RELEASE K23 1530 SEIZE PC23 ; 1540 ADVANCE 8,2 1550 RELEASE PC23 1560 TERMINATE 1570 * 1580 A_24 SEIZE K24 ; 1590 ADVANCE 2,1 1600 RELEASE K24 1610 SEIZE FS21 ; 1620 ADVANCE 4,2 1630 ASSIGN 2,P1 1650 RELEASE FS21 1660 SEIZE K24 ; 1670 ADVANCE 2,1 1680 RELEASE K24 1690 TRANSFER ,SW42 1700 *
1701 KS21 SEIZE KSW
1702 ADVANCE 2,1
1703 RELEASE KSW
1705 * 1710 SW42 SEIZE SW2 1720 ADVANCE 2,1 1730 RELEASE SW2
1740 TEST NE P2,5,A_21 1741 TEST NE P2,6,A_22 1742 TEST NE P2,7,A_23 1743 TEST NE P2,8,A_24 1744 TRANSFER ,KS12
1745 * 1750 * 1760 GENERATE 1000 1770 TERMINATE 1
1780 * 1790 START 1
Результаты моделирования
GPSS World Simulation Report - Untitled.15.1
Wednesday, December 21, 2011 02:31:06 START TIME END TIME BLOCKS FACILITIES STORAGES
0.000 1000.000 148 19 0
NAME VALUE ADR 10000.000
A_1 31.000
A_2 38.000
A_21 104.000
A_22 111.000
A_23 118.000
A_24 125.000
A_3 45.000
A_4 52.000
FS1 10018.000
FS21 10017.000
K1 10019.000
K2 10008.000
K21 10009.000
K22 10006.000
K23 10007.000
K24 10015.000
K3 10012.000
K4 10016.000
KS12 63.000
KS21 136.000
KSW 10013.000
PC1 10011.000
PC2 10004.000
PC21 10003.000
PC22 10001.000
PC23 10002.000
PC3 10005.000
SW 10014.000
SW2 10010.000
SW4 66.000
SW42 139.000
LABEL LOC BLOCK TYPE ENTRY COUNT CURRENT COUNT RETRY
1 GENERATE 32 0 0
2 SEIZE 32 0 0
3 ASSIGN 32 0 0
4 ASSIGN 32 0 0
5 ADVANCE 32 0 0
6 RELEASE 32 0 0
7 SEIZE 32 0 0
8 ADVANCE 32 0 0
9 RELEASE 32 0 0
10 TRANSFER 32 0 0
11 GENERATE 50 0 0
12 SEIZE 50 0 0
13 ASSIGN 50 0 0
14 ASSIGN 50 0 0
15 ADVANCE 50 1 0
16 RELEASE 49 0 0
17 SEIZE 49 0 0
18 ADVANCE 49 0 0
19 RELEASE 49 0 0
20 TRANSFER 49 1 0
21 GENERATE 50 0 0
22 SEIZE 50 0 0
23 ASSIGN 50 0 0
24 ASSIGN 50 0 0
25 ADVANCE 50 0 0
26 RELEASE 50 0 0
27 SEIZE 50 0 0
28 ADVANCE 50 0 0
29 RELEASE 50 0 0
30 TRANSFER 50 0 0
A_1 31 SEIZE 31 0 0
32 ADVANCE 31 1 0
33 RELEASE 30 0 0
34 SEIZE 30 0 0
35 ADVANCE 30 0 0
36 RELEASE 30 0 0
37 TERMINATE 30 0 0
A_2 38 SEIZE 47 0 0
39 ADVANCE 47 1 0
40 RELEASE 46 0 0
41 SEIZE 46 0 0
42 ADVANCE 46 0 0
43 RELEASE 46 0 0
44 TERMINATE 46 0 0
A_3 45 SEIZE 48 0 0
46 ADVANCE 48 0 0
47 RELEASE 48 0 0
48 SEIZE 48 0 0
49 ADVANCE 48 0 0
50 RELEASE 48 0 0
51 TERMINATE 48 0 0
A_4 52 SEIZE 93 0 0
53 ADVANCE 93 0 0
54 RELEASE 93 0 0
55 SEIZE 93 0 0
56 ADVANCE 93 1 0
57 ASSIGN 92 0 0
58 RELEASE 92 0 0
59 SEIZE 92 0 0
60 ADVANCE 92 1 0
61 RELEASE 91 0 0
62 TRANSFER 91 0 0
KS12 63 SEIZE 131 0 0
64 ADVANCE 131 1 0
65 RELEASE 130 0 0
SW4 66 SEIZE 351 0 0
67 ADVANCE 351 1 0
68 RELEASE 350 0 0
69 TEST 350 0 0
70 TEST 319 0 0
71 TEST 272 0 0
72 TEST 224 0 0
73 TRANSFER 131 0 0
74 GENERATE 33 0 0
75 SEIZE 33 0 0
76 ASSIGN 33 0 0
77 ASSIGN 33 0 0
78 ADVANCE 33 1 0
79 RELEASE 32 0 0
80 SEIZE 32 0 0
81 ADVANCE 32 0 0
82 RELEASE 32 0 0
83 TRANSFER 32 0 0
84 GENERATE 49 0 0
85 SEIZE 49 0 0
86 ASSIGN 49 0 0
87 ASSIGN 49 0 0
88 ADVANCE 49 1 0
89 RELEASE 48 0 0
90 SEIZE 48 0 0
91 ADVANCE 48 1 0
92 RELEASE 47 0 0
93 TRANSFER 47 0 0
94 GENERATE 33 0 0
95 SEIZE 33 0 0
96 ASSIGN 33 0 0
97 ASSIGN 33 0 0
98 ADVANCE 33 0 0
99 RELEASE 33 0 0
100 SEIZE 33 0 0
101 ADVANCE 33 1 0
102 RELEASE 32 0 0
103 TRANSFER 32 0 0
A_21 104 SEIZE 32 0 0
105 ADVANCE 32 0 0
106 RELEASE 32 1 0
107 SEIZE 31 0 0
108 ADVANCE 31 0 0
109 RELEASE 31 0 0
110 TERMINATE 31 0 0
A_22 111 SEIZE 44 0 0
112 ADVANCE 44 0 0
113 RELEASE 44 0 0
114 SEIZE 44 0 0
115 ADVANCE 44 0 0
116 RELEASE 44 0 0
117 TERMINATE 44 0 0
A_23 118 SEIZE 31 0 0
119 ADVANCE 31 0 0
120 RELEASE 31 0 0
121 SEIZE 31 0 0
122 ADVANCE 31 0 0
123 RELEASE 31 0 0
124 TERMINATE 31 0 0
A_24 125 SEIZE 147 0 0
126 ADVANCE 147 0 0
127 RELEASE 147 0 0
128 SEIZE 147 0 0
129 ADVANCE 147 1 0
130 ASSIGN 146 0 0
131 RELEASE 146 0 0
132 SEIZE 146 0 0
133 ADVANCE 146 1 0
134 RELEASE 145 0 0
135 TRANSFER 145 0 0
KS21 136 SEIZE 131 0 0
137 ADVANCE 131 0 0
138 RELEASE 131 0 0
SW42 139 SEIZE 387 0 0
140 ADVANCE 387 0 0
141 RELEASE 387 0 0
142 TEST 387 0 0
143 TEST 355 2 0
144 TEST 309 0 0
145 TEST 278 0 0
146 TRANSFER 131 0 0
147 GENERATE 1 0 0
148 TERMINATE 1 0 0
FACILITY ENTRIES UTIL. AVE. TIME AVAIL. OWNER PEND INTER RETRY DELAY
PC22 93 0.680 7.309 1 249 0 0 0 0
PC23 64 0.509 7.948 1 0 0 0 0 0
PC21 64 0.415 6.492 1 241 0 0 0 1
PC2 96 0.532 5.541 1 247 0 0 0 0
PC3 98 0.599 6.117 1 0 0 0 0 0
K22 92 0.704 7.652 1 246 0 0 0 2
K23 64 0.507 7.919 1 244 0 0 0 0
K2 96 0.701 7.300 1 235 0 0 0 0
K21 64 0.333 5.200 1 0 0 0 0 0
SW2 387 0.763 1.973 1 0 0 0 0 0
PC1 62 0.387 6.239 1 0 0 0 0 0
K3 98 0.798 8.143 1 0 0 0 0 0
KSW 262 0.637 2.433 1 238 0 0 0 0
SW 351 0.694 1.976 1 243 0 0 0 1
K24 293 0.581 1.984 1 239 0 0 0 0
K4 185 0.545 2.948 1 237 0 0 0 0
FS21 147 0.579 3.937 1 240 0 0 0 0
FS1 93 0.718 7.724 1 242 0 0 0 0
K1 63 0.242 3.843 1 236 0 0 0 0
FEC XN PRI BDT ASSEM CURRENT NEXT PARAMETER VALUE
241 0 1000.085 241 78 79 1 5.000
2 8.000
237 0 1000.208 237 60 61 1 7.000
2 7.000
243 0 1000.830 243 67 68 1 3.000
2 8.000
239 0 1000.927 239 133 134 1 6.000
2 6.000
236 0 1000.948 236 32 33 1 1.000
2 1.000
238 0 1001.021 238 64 65 1 3.000
2 3.000
235 0 1002.657 235 39 40 1 2.000
2 2.000
248 0 1003.273 248 0 21
247 0 1003.686 247 15 16 1 2.000
2 8.000
249 0 1003.975 249 88 89 1 6.000
2 4.000
240 0 1004.073 240 129 130 1 2.000
2 8.000
242 0 1004.482 242 56 57 1 1.000
2 4.000
244 0 1004.637 244 101 102 1 7.000
2 4.000
254 0 1007.397 254 0 11
252 0 1007.946 252 0 84
246 0 1008.418 246 91 92 1 6.000
2 4.000
253 0 1015.645 253 0 94
250 0 1017.172 250 0 1
251 0 1017.553 251 0 74
255 0 2000.000 255 0 147
Вывод:
Каждый коммутатор определял номер станции, к которой обращён пакет, и посылал его по соответствующему адресу (в соответствующий канал). По результатам моделирования серверы загружены оптимально
Задание 3.
Промоделировать сеть, представленную на рис. 2.1.
Рабочие станции отправляют пакеты на все машины в сети. Добавляется поле для определения запрос/ответ.
1 ADR1 FUNCTION RN1,D7 0.1,2/0.15,3/0.53,4/0.6,5/0.72,6/0.8,7/1,8 2 ADR2 FUNCTION RN1,D7 0.09,1/0.17,3/0.3,4/0.39,5/0.5,6/0.57,7/1,8 3 ADR3 FUNCTION RN1,D7 0.11,1/0.19,2/0.42,4/0.48,5/0.6,6/0.68,7/1,8 4 * 5 ADR5 FUNCTION RN1,D7 0.15,1/0.27,2/0.51,3/0.62,4/0.7,6/0.75,7/1,8 6 ADR6 FUNCTION RN1,D7 0.1,1/0.11,2/0.17,3/0.41,4/0.6,5/0.72,7/1,8 7 ADR7 FUNCTION RN1,D7 0.05,1/0.1,2/0.13,3/0.39,4/0.61,5/0.83,6/1,8
9 * 10 GENERATE 23,14 20 SEIZE PC1 30 ASSIGN 1,1 40 ASSIGN 2,FN$ADR1
45 ASSIGN 3,0 50 ADVANCE 6,4 60 RELEASE PC1 70 SEIZE K1 80 ADVANCE 6,4 90 RELEASE K1 100 TRANSFER ,SW4 110 * 2 120 GENERATE 27,14 130 SEIZE PC2 140 ASSIGN 1,2 150 ASSIGN 2,FN$ADR2
155 ASSIGN 3,0 160 ADVANCE 12,8 170 RELEASE PC2 180 SEIZE K2 190 ADVANCE 10,7 200 RELEASE K2 210 TRANSFER ,SW4 220 * 3 230 GENERATE 30,12 240 SEIZE PC3 250 ASSIGN 1,3 260 ASSIGN 2,FN$ADR3
265 ASSIGN 3,0 270 ADVANCE 8,4 280 RELEASE PC3 290 SEIZE KAN3 300 ADVANCE 7,4 310 RELEASE K3 320 TRANSFER ,SW4 330 * back 340 A_1 SEIZE K1 350 ADVANCE 4,2 360 RELEASE K1 370 SEIZE PC1 380 ADVANCE 3,2 390 RELEASE PC1
395 TEST NE P3,0,B_1 400 TERMINATE
401 * 402 B_1 ASSIGN 2,P1 403 ASSIGN 3,1
404 SEIZE K1
405 ADVANCE 2,1
406 RELEASE K1
407 TRANSFER ,SW4
410 * 420 A_2 SEIZE K2 430 ADVANCE 5,3 440 RELEASE K2 450 SEIZE PC2 460 ADVANCE 2,1 470 RELEASE PC2
471 TEST NE P3,0,B_2 480 TERMINATE
481 * 482 B_2 ASSIGN 2,P1 483 ASSIGN 3,1
484 SEIZE K2
485 ADVANCE 2,1
486 RELEASE K2
487 TRANSFER ,SW4 490 * 500 A_3 SEIZE K3 510 ADVANCE 5,3 520 RELEASE K3 530 SEIZE PC3 540 ADVANCE 3,2 550 RELEASE PC3
551 TEST NE P3,0,B_3 560 TERMINATE 561 * 562 B_3 ASSIGN 2,P1 563 ASSIGN 3,1
564 SEIZE KAN2
565 ADVANCE 2,1
565 RELEASE K2
566 TRANSFER ,SW4
570 * 580 A_4 SEIZE K4 590 ADVANCE 2,1 600 RELEASE K4 610 SEIZE FS1 620 ADVANCE 11,2 630 ASSIGN 2,P1 640 * ASSIGN 1,4 650 RELEASE FS1 660 SEIZE K4 670 ADVANCE 6,1 680 RELEASE K4 690 TRANSFER ,SW4 700 * 701 KS12 SEIZE KSW
702 ADVANCE 2,1
703 RELEASE KSW
704 * TRANSFER ,SW4
705 * 710 SW4 SEIZE SW 720 ADVANCE 2,1 730 RELEASE SW
740 TEST NE P2,1,A_1 741 TEST NE P2,2,A_2 742 TEST NE P2,3,A_3 743 TEST NE P2,4,A_4 744 TRANSFER ,KS21
745 ******************************
1001 * 1003 * 1 1010 GENERATE 30,15 1020 SEIZE PC21 1030 ASSIGN 1,5 1040 ASSIGN 2,FN$ADR5
1041 ASSIGN 3,0 1050 ADVANCE 6,4 1060 RELEASE PC21 1070 SEIZE K21 1080 ADVANCE 6,4 1090 RELEASE K21 1100 TRANSFER ,SW42 1110 * 2 1120 GENERATE 32,9 1130 SEIZE PC22 1140 ASSIGN 1,6 1150 ASSIGN 2,FN$ADR6
1151 ASSIGN 3,0 1160 ADVANCE 12,8 1170 RELEASE PC22 1180 SEIZE K22 1190 ADVANCE 10,7 1200 RELEASE K22 1210 TRANSFER ,SW42 1220 * 3 1230 GENERATE 35,10 1240 SEIZE PC23 1250 ASSIGN 1,7 1260 ASSIGN 2,FN$ADR7
1261 ASSIGN 3,0 1270 ADVANCE 8,4 1280 RELEASE PC23 1290 SEIZE K23 1300 ADVANCE 7,4 1310 RELEASE K23 1320 TRANSFER ,SW42 1330 * back 1340 A_21 SEIZE K21 1350 ADVANCE 4,2 1360 RELEASE K21 1370 SEIZE PC21 1380 ADVANCE 3,2 1390 RELEASE PC21
1391 TEST NE P3,0,B_21 1400 TERMINATE
1401 * 1402 B_21 ASSIGN 2,P1 1403 ASSIGN 3,1
1405 SEIZE K21
1406 ADVANCE 2,1
1407 RELEASE K21
1408 TRANSFER ,SW42
1410 * 1420 A_22 SEIZE K22 1430 ADVANCE 5,3 1440 RELEASE K22 1450 SEIZE PC22 1460 ADVANCE 2,1 1470 RELEASE PC22
1471 TEST NE P3,0,B_22 1480 TERMINATE 1481 * 1482 B_22 ASSIGN 2,P1 1483 ASSIGN 3,1
1485 SEIZE K22
1486 ADVANCE 2,1
1487 RELEASE K22
1488 TRANSFER ,SW42 1490 * 1500 A_23 SEIZE K23 1510 ADVANCE 5,3 1520 RELEASE K23 1530 SEIZE PC23 1540 ADVANCE 3,2 1550 RELEASE PC23
1551 TEST NE P3,0,B_23 1560 TERMINATE
1561 * 1562 B_23 ASSIGN 2,P1 1563 ASSIGN 3,1
1564 SEIZE K23
1565 ADVANCE 2,1
1567 RELEASE K23
1568 TRANSFER ,SW42 1570 * 1580 A_24 SEIZE K24 1590 ADVANCE 2,1 1600 RELEASE K24 1610 SEIZE FS21 1620 ADVANCE 12,2 1630 ASSIGN 2,P1 1640 * ASSIGN 1,8 1650 RELEASE FS21 1660 SEIZE K24 1670 ADVANCE 2,1 1680 RELEASE K24 1690 TRANSFER ,SW42 1700 * 1701 KS21 SEIZE KSW
1702 ADVANCE 2,1
1703 RELEASE KSW
1704 * TRANSFER ,SW42
1705 *
1710 SW42 SEIZE SW2 1720 ADVANCE 2,1 1730 RELEASE SW2
1740 TEST NE P2,5,A_21 1741 TEST NE P2,6,A_22 1742 TEST NE P2,7,A_23 1743 TEST NE P2,8,A_24 1744 TRANSFER ,KS12
1745 * 1750 * 1760 GENERATE 1000 1770 TERMINATE 1
1780 * 1790 START 1
GPSS/PC Report file REPORT.GPS. (V 2, # 37349) 12-21-2011 02:46:45 page 1
START_TIME END_TIME BLOCKS FACILITIES STORAGES FREE_MEMORY
0 1000 194 19 0 291008
NAME VALUE TYPE
COLUMN 10001 2
POSITION 10002 2
SHAPE 10003 2
ROW 10004 2
TO_COLUMN 10005 2
TO_ROW 10006 2
COLOR 10007 2
ADR1 10008 2
ADR2 10009 2
ADR3 10010 2
ADR5 10011 2
ADR6 10012 2
ADR7 10013 2
PC1 10014 2
K1 10015 2
SW4 89 3
PC2 10017 2
K2 10018 2
PC3 10019 2
K3 10020 2
A_1 34 3
B_1 42 3
A_2 48 3
B_2 56 3
A_3 62 3
B_3 70 3
K4 10027 2
A_4 75 3
FS1 10029 2
KSW 10030 2
KS12 86 3
SW 10032 2
KS21 183 3
PC21 10034 2
K21 10035 2
SW42 186 3
PC22 10037 2
K22 10038 2
PC23 10039 2
K23 10040 2
A_21 130 3
B_21 138 3
A_22 144 3
B_22 152 3
A_23 158 3
B_23 166 3
GPSS/PC Report file REPORT.GPS. (V 2, # 37349) 12-21-2011 02:46:45 page 2
NAME VALUE TYPE
K24 10047 2
A_24 172 3
FS21 10049 2
SW2 10050 2
LINE LOC BLOCK_TYPE ENTRY_COUNT CURRENT_COUNT RETRY
10 1 GENERATE 45 0 0
20 2 SEIZE 45 0 0
30 3 ASSIGN 45 0 0
40 4 ASSIGN 45 0 0
45 5 ASSIGN 45 0 0
50 6 ADVANCE 45 0 0
60 7 RELEASE 45 0 0
70 8 SEIZE 45 0 0
80 9 ADVANCE 45 1 0
90 10 RELEASE 44 0 0
100 11 TRANSFER 44 0 0
120 12 GENERATE 36 0 0
130 13 SEIZE 36 0 0
140 14 ASSIGN 36 0 0
150 15 ASSIGN 36 0 0
155 16 ASSIGN 36 0 0
160 17 ADVANCE 36 0 0
170 18 RELEASE 36 0 0
180 19 SEIZE 36 0 0
190 20 ADVANCE 36 0 0
200 21 RELEASE 36 0 0
210 22 TRANSFER 36 0 0
230 23 GENERATE 31 0 0
240 24 SEIZE 31 0 0
250 25 ASSIGN 31 0 0
260 26 ASSIGN 31 0 0
265 27 ASSIGN 31 0 0
270 28 ADVANCE 31 0 0
280 29 RELEASE 31 0 0
290 30 SEIZE 31 0 0
300 31 ADVANCE 31 1 0
310 32 RELEASE 30 0 0
320 33 TRANSFER 30 0 0
340 A_1 SEIZE 88 0 0
350 35 ADVANCE 88 0 0
360 36 RELEASE 88 0 0
370 37 SEIZE 88 0 0
380 38 ADVANCE 88 0 0
390 39 RELEASE 88 0 0
395 40 TEST 88 0 0
400 41 TERMINATE 42 0 0
402 B_1 ASSIGN 46 0 0
403 43 ASSIGN 46 0 0
GPSS/PC Report file REPORT.GPS. (V 2, # 37349) 12-21-2011 02:46:45 page 3
LINE LOC BLOCK_TYPE ENTRY_COUNT CURRENT_COUNT RETRY
404 44 SEIZE 46 0 0
405 45 ADVANCE 46 0 0
406 46 RELEASE 46 0 0
407 47 TRANSFER 46 0 0
420 A_2 SEIZE 65 0 0
430 49 ADVANCE 65 0 0
440 50 RELEASE 65 0 0
450 51 SEIZE 65 0 0
460 52 ADVANCE 65 0 0
470 53 RELEASE 65 0 0
471 54 TEST 65 0 0
480 55 TERMINATE 33 0 0
482 B_2 ASSIGN 32 0 0
483 57 ASSIGN 32 0 0
484 58 SEIZE 32 0 0
485 59 ADVANCE 32 0 0
486 60 RELEASE 32 0 0
487 61 TRANSFER 32 1 0
500 A_3 SEIZE 62 0 0
510 63 ADVANCE 62 0 0
520 64 RELEASE 62 0 0
530 65 SEIZE 62 0 0
540 66 ADVANCE 62 0 0
550 67 RELEASE 62 0 0
551 68 TEST 62 0 0
560 69 TERMINATE 28 0 0
562 B_3 ASSIGN 34 0 0
563 71 ASSIGN 34 0 0
564 72 SEIZE 34 0 0
565 73 RELEASE 34 0 0
566 74 TRANSFER 34 1 0
580 A_4 SEIZE 50 0 0
590 76 ADVANCE 50 0 0
600 77 RELEASE 50 0 0
610 78 SEIZE 50 0 0
620 79 ADVANCE 50 0 0
630 80 ASSIGN 50 0 0
650 81 RELEASE 50 0 0
660 82 SEIZE 50 0 0
670 83 ADVANCE 50 0 0
680 84 RELEASE 50 0 0
690 85 TRANSFER 50 0 0
701 KS12 SEIZE 98 0 0
702 87 ADVANCE 98 0 0
703 88 RELEASE 98 0 0
710 SW4 SEIZE 368 1 0
720 90 ADVANCE 367 0 0
730 91 RELEASE 367 0 0
740 92 TEST 367 1 0
741 93 TEST 278 0 0
GPSS/PC Report file REPORT.GPS. (V 2, # 37349) 12-21-2011 02:46:45 page 4
LINE LOC BLOCK_TYPE ENTRY_COUNT CURRENT_COUNT RETRY
742 94 TEST 213 0 0
743 95 TEST 151 0 0
744 96 TRANSFER 101 0 0
1010 97 GENERATE 32 0 0
1020 98 SEIZE 32 0 0
1030 99 ASSIGN 32 0 0
1040 100 ASSIGN 32 0 0
1041 101 ASSIGN 32 0 0
1050 102 ADVANCE 32 0 0
1060 103 RELEASE 32 0 0
1070 104 SEIZE 32 0 0
1080 105 ADVANCE 32 0 0
1090 106 RELEASE 32 0 0
1100 107 TRANSFER 32 0 0
1120 108 GENERATE 31 0 0
1130 109 SEIZE 31 0 0
1140 110 ASSIGN 31 0 0
1150 111 ASSIGN 31 0 0
1151 112 ASSIGN 31 0 0
1160 113 ADVANCE 31 1 0
1170 114 RELEASE 30 0 0
1180 115 SEIZE 30 0 0
1190 116 ADVANCE 30 0 0
1200 117 RELEASE 30 0 0
1210 118 TRANSFER 30 0 0
1230 119 GENERATE 28 0 0
1240 120 SEIZE 28 0 0
1250 121 ASSIGN 28 0 0
1260 122 ASSIGN 28 0 0
1261 123 ASSIGN 28 0 0
1270 124 ADVANCE 28 1 0
1280 125 RELEASE 27 0 0
1290 126 SEIZE 27 0 0
1300 127 ADVANCE 27 0 0
1310 128 RELEASE 27 0 0
1320 129 TRANSFER 27 0 0
1340 A_21 SEIZE 57 0 0
1350 131 ADVANCE 57 0 0
1360 132 RELEASE 57 0 0
1370 133 SEIZE 57 0 0
1380 134 ADVANCE 57 0 0
1390 135 RELEASE 57 0 0
1391 136 TEST 57 0 0
1400 137 TERMINATE 30 0 0
1402 B_21 ASSIGN 27 0 0
1403 139 ASSIGN 27 0 0
1405 140 SEIZE 27 0 0
1406 141 ADVANCE 27 1 0
1407 142 RELEASE 26 0 0
1408 143 TRANSFER 26 0 0
GPSS/PC Report file REPORT.GPS. (V 2, # 37349) 12-21-2011 02:46:45 page 5
LINE LOC BLOCK_TYPE ENTRY_COUNT CURRENT_COUNT RETRY
1420 A_22 SEIZE 60 0 0
1430 145 ADVANCE 60 1 0
1440 146 RELEASE 59 1 0
1450 147 SEIZE 58 0 0
1460 148 ADVANCE 58 0 0
1470 149 RELEASE 58 0 0
1471 150 TEST 58 0 0
1480 151 TERMINATE 27 0 0
1482 B_22 ASSIGN 31 0 0
1483 153 ASSIGN 31 0 0
1485 154 SEIZE 31 0 0
1486 155 ADVANCE 31 0 0
1487 156 RELEASE 31 0 0
1488 157 TRANSFER 31 0 0
1500 A_23 SEIZE 48 0 0
1510 159 ADVANCE 48 0 0
1520 160 RELEASE 48 0 0
1530 161 SEIZE 48 0 0
1540 162 ADVANCE 48 0 0
1550 163 RELEASE 48 0 0
1551 164 TEST 48 0 0
1560 165 TERMINATE 26 0 0
1562 B_23 ASSIGN 22 0 0
1563 167 ASSIGN 22 0 0
1564 168 SEIZE 22 0 0
1565 169 ADVANCE 22 0 0
1567 170 RELEASE 22 0 0
1568 171 TRANSFER 22 0 0
1580 A_24 SEIZE 51 0 0
1590 173 ADVANCE 51 1 0
1600 174 RELEASE 50 2 0
1610 175 SEIZE 48 0 0
1620 176 ADVANCE 48 1 0
1630 177 ASSIGN 47 0 0
1650 178 RELEASE 47 0 0
1660 179 SEIZE 47 0 0
1670 180 ADVANCE 47 0 0
1680 181 RELEASE 47 0 0
1690 182 TRANSFER 47 0 0
1701 KS21 SEIZE 101 0 0
1702 184 ADVANCE 101 1 0
1703 185 RELEASE 100 0 0
1710 SW42 SEIZE 315 0 0
1720 187 ADVANCE 315 0 0
1730 188 RELEASE 315 0 0
1740 189 TEST 315 0 0
1741 190 TEST 258 0 0
1742 191 TEST 198 0 0
1743 192 TEST 150 0 0
1744 193 TRANSFER 99 1 0
GPSS/PC Report file REPORT.GPS. (V 2, # 37349) 12-21-2011 02:46:45 page 6
LINE LOC BLOCK_TYPE ENTRY_COUNT CURRENT_COUNT RETRY
1760 194 GENERATE 1 0 0
1770 195 TERMINATE 1 0 0
FACILITY ENTRIES UTIL. AVE._TIME AVAILABLE OWNER PEND INTER RETRY DELAY
PC1 133 0.540 4.06 1 0 0 0 0 0
K1 179 0.684 3.82 1 205 0 0 0 1
PC2 101 0.542 5.37 1 0 0 0 0 0
K2 167 0.745 4.46 1 0 0 0 0 0
PC3 93 0.430 4.62 1 0 0 0 0 0
K3 93 0.502 5.40 1 201 0 0 0 0
K4 100 0.386 3.86 1 0 0 0 0 0
FS1 50 0.538 10.76 1 0 0 0 0 0
KSW 199 0.409 2.06 1 198 0 0 0 1
SW 368 0.739 2.01 1 194 0 0 0 2
PC21 89 0.343 3.85 1 0 0 0 0 0
K21 116 0.490 4.22 1 195 0 0 0 0
PC22 89 0.514 5.78 1 204 0 0 0 1
K22 121 0.645 5.33 1 189 0 0 0 0
PC23 76 0.360 4.74 1 202 0 0 0 0
K23 97 0.449 4.63 1 0 0 0 0 0
K24 98 0.202 2.06 1 199 0 0 0 0
FS21 48 0.586 12.21 1 197 0 0 0 2
SW2 315 0.620 1.97 1 0 0 0 0 0
XACT_GROUP GROUP_SIZE RETRY
POSITION 0 0
Вывод:
Каждый коммутатор определял номер станции, к которой обращён пакет, и посылал его по соответствующему адресу (в соответствующий канал). По результатам моделирования серверы загружены оптимально
Документ
Категория
Рефераты
Просмотров
9
Размер файла
151 Кб
Теги
лаба
1/--страниц
Пожаловаться на содержимое документа