10 1 GENERATE 66 0 0
11 2 ASSIGN 66 0 0
12 3 ASSIGN 66 0 0
20 4 SEIZE 66 0 0
30 5 ADVANCE 66 0 0
40 6 RELEASE 66 0 0
50 7 SEIZE 66 0 0
60 8 ADVANCE 66 1 0
70 9 RELEASE 65 0 0
80 10 SEIZE 65 0 0
81 11 ADVANCE 65 0 0
90 12 RELEASE 65 0 0
91 13 TEST 65 0 0
92 14 TEST 65 0 0
93 15 TEST 44 0 0
94 16 TERMINATE 0 0 0
96 A3 SEIZE 117 0 0
97 18 ADVANCE 117 0 0
98 19 RELEASE 117 0 0
99 20 SEIZE 117 0 0
100 21 ADVANCE 117 0 0
101 22 RELEASE 117 0 0
102 23 ASSIGN 117 0 0
103 24 ASSIGN 117 0 0
GPSS/PC Report file REPORT.GPS. (V 2, # 37349) 12-16-2009 09:35:36 page 2
LINE LOC BLOCK_TYPE ENTRY_COUNT CURRENT_COUNT RETRY
103.1 25 SEIZE 117 0 0
103.2 26 ADVANCE 117 0 0
103.3 27 RELEASE 117 0 0
104 28 SEIZE 117 0 0
105 29 ADVANCE 117 1 0
106 30 RELEASE 116 0 0
107 31 TEST 116 0 0
108 32 TEST 116 0 0
109 33 TERMINATE 116 0 0
111 A2 SEIZE 21 0 0
112 35 ADVANCE 21 0 0
113 36 RELEASE 21 0 0
114 37 SEIZE 21 0 0
115 38 ADVANCE 21 0 0
116 39 RELEASE 21 0 0
117 40 TERMINATE 21 0 0
118 A1 SEIZE 27 0 0
119 42 ADVANCE 27 0 0
120 43 RELEASE 27 0 0
121 44 SEIZE 27 0 0
122 45 ADVANCE 27 1 0
123 46 RELEASE 26 0 0
124 47 TERMINATE 26 0 0
125 48 GENERATE 102 0 0
126 49 ASSIGN 102 0 0
127 50 ASSIGN 102 0 0
128 51 SEIZE 102 0 0
130 52 ADVANCE 102 1 0
140 53 RELEASE 101 0 0
150 54 SEIZE 101 0 0
160 55 ADVANCE 101 0 0
170 56 RELEASE 101 0 0
180 57 SEIZE 101 0 0
181 58 ADVANCE 101 0 0
182 59 RELEASE 101 0 0
183 60 TEST 101 1 0
184 61 TEST 73 0 0
185 62 TERMINATE 0 0 0
2000 63 GENERATE 1 0 0
2010 64 TERMINATE 1 0 0
FACILITY ENTRIES UTIL. AVE._TIME AVAILABLE OWNER PEND INTER RETRY DELAY
PC1 93 0.661 4.96 1 167 0 0 0 0
K1 93 0.672 5.08 1 166 0 0 0 1
SW 283 0.766 2.71 1 165 0 0 0 0
K3 234 0.672 2.02 1 0 0 0 0 0
FS 117 0.570 4.87 1 0 0 0 0 0
K2 122 0.614 5.03 1 0 0 0 0 0
PC2 123 0.618 5.02 1 169 0 0 0 0
GPSS/PC Report file REPORT.GPS. (V 2, # 37349) 12-16-2009 09:35:36 page 3
XACT_GROUP GROUP_SIZE RETRY
POSITION 0 0
Вывод: в работе смоделировали сеть, состоящую из 2 компьютеров и файл-сервера, соединённых через свитч.
1. Построить сеть, аналогичную сети в л.р.2, добавить переменную запрос/ответ.
Листинг программы:
1 ADR1 FUNCTIONRN3,D2
0.5,2/1,3
2 ADR2 FUNCTION RN3,D2
0.5,1/1,3
10 GENERATE 15,5
11 ASSIGN 1,1
12 ASSIGN 2,FN$ADR1
13 ASSIGN 3,0
20 SEIZE PC1
30 ADVANCE 5,1
40 RELEASE PC1
50 BB SEIZE K1
60 ADVANCE 2,1
70 RELEASE K1
80 SEIZE SW
81 ADVANCE 3,1
90 RELEASE SW
91 TEST NE P2,1,A1
92 TEST NE P2,2,A2
93 TEST NE P2,3,A3
94 TERMINATE
96 A3 SEIZE K3
97 ADVANCE 4,1
98 RELEASE K3
99 SEIZE FS
100 ADVANCE 6,1
101 RELEASE FS
102 ASSIGN 2,P1
103 ASSIGN 1,3
103.1 SEIZE K3
103.2 ADVANCE 2,1
103.3 RELEASE K3
104 SEIZE SW
105 ADVANCE 2,1
106 RELEASE SW
107 TEST NE P2,1,A1
108 TEST NE P2,2,A2
109 TERMINATE
111 A2 SEIZE K2
112 ADVANCE 5,1
113 RELEASE K2
114 SEIZE PC2
115 ADVANCE 3,1
116 RELEASE PC2
116.1 TEST NE P3,0,B1
117 TERMINATE
117.1 B1 ASSIGN 2,P1
117.2 ASSIGN 3,1
117.3 TRANSFER ,AA
118 A1 SEIZE K1
119 ADVANCE 5,1
120 RELEASE K1
121 SEIZE PC1
122 ADVANCE 2,1
123 RELEASE PC1
124 TEST NE P3,0,B2
125 TERMINATE
126 B2 ASSIGN 2,P1
127 ASSIGN 3,1
128 TRANSFER ,BB
130 GENERATE 15,5
131 ASSIGN 1,2
132 ASSIGN 2,FN$ADR2
133 ASSIGN 3,0
134 SEIZE PC2
135 ADVANCE 5,1
140 RELEASE PC2
150 AA SEIZE K2
160 ADVANCE 2,1
170 RELEASE K2
180 SEIZE SW
181 ADVANCE 3,1
182 RELEASE SW
183 TEST NE P2,1,A1
184 TEST NE P2,2,A2
184 TEST NE P2,3,A3
185 TERMINATE
2000 GENERATE 1000
2010 TERMINATE 1
2020 START 1
Отчет GPSSREPT:
GPSS/PC Report file REPORT.GPS. (V 2, # 37349) 12-16-2009 09:45:42 page 1
START_TIME END_TIME BLOCKS FACILITIES STORAGES FREE_MEMORY
0 1000 73 7 0 347424
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
PC1 10010 2
K1 10011 2
BB 8 3
SW 10013 2
A1 46 3
A2 35 3
A3 18 3
K3 10017 2
FS 10018 2
K2 10019 2
PC2 10020 2
B1 43 3
AA 64 3
B2 54 3
LINE LOC BLOCK_TYPE ENTRY_COUNT CURRENT_COUNT RETRY
10 1 GENERATE 64 0 0
11 2 ASSIGN 64 0 0
12 3 ASSIGN 64 0 0
13 4 ASSIGN 64 0 0
20 5 SEIZE 64 0 0
30 6 ADVANCE 64 0 0
40 7 RELEASE 64 0 0
50 BB SEIZE 128 1 0
60 9 ADVANCE 127 0 0
70 10 RELEASE 127 1 0
80 11 SEIZE 126 0 0
81 12 ADVANCE 126 0 0
90 13 RELEASE 126 0 0
91 14 TEST 126 0 0
92 15 TEST 126 0 0
93 16 TEST 54 0 0
94 17 TERMINATE 0 0 0
96 A3 SEIZE 106 0 0
97 19 ADVANCE 106 0 0
98 20 RELEASE 106 1 0
GPSS/PC Report file REPORT.GPS. (V 2, # 37349) 12-16-2009 09:45:42 page 2
LINE LOC BLOCK_TYPE ENTRY_COUNT CURRENT_COUNT RETRY
99 21 SEIZE 105 0 0
100 22 ADVANCE 105 1 0
101 23 RELEASE 104 0 0
102 24 ASSIGN 104 0 0
103 25 ASSIGN 104 0 0
103.1 26 SEIZE 104 0 0
103.2 27 ADVANCE 104 1 0
103.3 28 RELEASE 103 2 0
104 29 SEIZE 101 1 0
105 30 ADVANCE 100 0 0
106 31 RELEASE 100 0 0
107 32 TEST 100 0 0
108 33 TEST 74 0 0
109 34 TERMINATE 48 0 0
111 A2 SEIZE 98 0 0
112 36 ADVANCE 98 1 0
113 37 RELEASE 97 1 0
114 38 SEIZE 96 0 0
115 39 ADVANCE 96 0 0
116 40 RELEASE 96 0 0
116.1 41 TEST 96 0 0
117 42 TERMINATE 36 0 0
117.1 B1 ASSIGN 60 0 0
117.2 44 ASSIGN 60 0 0
117.3 45 TRANSFER 60 0 0
118 A1 SEIZE 99 0 0
119 47 ADVANCE 99 0 0
120 48 RELEASE 99 0 0
121 49 SEIZE 99 0 0
122 50 ADVANCE 99 1 0
123 51 RELEASE 98 0 0
124 52 TEST 98 0 0
125 53 TERMINATE 34 0 0
126 B2 ASSIGN 64 0 0
127 55 ASSIGN 64 0 0
128 56 TRANSFER 64 0 0
130 57 GENERATE 68 0 0
131 58 ASSIGN 68 0 0
132 59 ASSIGN 68 0 0
133 60 ASSIGN 68 0 0
134 61 SEIZE 68 0 0
135 62 ADVANCE 68 1 0
140 63 RELEASE 67 0 0
150 AA SEIZE 127 0 0
160 65 ADVANCE 127 0 0
170 66 RELEASE 127 1 0
180 67 SEIZE 126 0 0
181 68 ADVANCE 126 0 0
182 69 RELEASE 126 0 0
183 70 TEST 126 0 0
GPSS/PC Report file REPORT.GPS. (V 2, # 37349) 12-16-2009 09:45:42 page 3
LINE LOC BLOCK_TYPE ENTRY_COUNT CURRENT_COUNT RETRY
184 71 TEST 53 1 0
185 72 TERMINATE 0 0 0
2000 73 GENERATE 1 0 0
2010 74 TERMINATE 1 0 0
FACILITY ENTRIES UTIL. AVE._TIME AVAILABLE OWNER PEND INTER RETRY DELAY
PC1 163 0.528 3.24 1 129 0 0 0 0
K1 227 0.753 3.32 1 132 0 0 0 0
SW 353 0.848 2.69 1 125 0 0 0 4
K3 210 0.624 2.97 1 118 0 0 0 1
FS 105 0.620 5.90 1 120 0 0 0 1
K2 225 0.753 3.35 1 126 0 0 0 0
PC2 164 0.625 3.81 1 133 0 0 0 1
XACT_GROUP GROUP_SIZE RETRY
POSITION 0 0 Построитьсеть:
Листинг программы:
1 ADR1 FUNCTIONRN3,D2
0.2,2/1,3
2 ADR2 FUNCTION RN3,D2
0.2,1/1,3
3 ADR3 FUNCTION RN1,D3
0.2,5/0.5,6/1,7
4 ADR4 FUNCTION RN1,D3
0.2,4/0.5,6/1,7
5 ADR5 FUNCTION RN1,D3
0.2,4/0.5,5/1,7
10 GENERATE 18,3
11 ASSIGN 1,1
12 ASSIGN 2,FN$ADR1
13 ASSIGN 3,0
20 SEIZE PC1
30 ADVANCE 6,1
40 RELEASE PC1
50 BB SEIZE K1
60 ADVANCE 3,1
70 RELEASE K1
80 SEIZE SW
81 ADVANCE 3,1
90 RELEASE SW
91 TEST NE P2,1,A1
92 TEST NE P2,2,A2
93 TEST NE P2,3,A3
94 TERMINATE
96 A3 SEIZE K3
97 ADVANCE 2,1
98 RELEASE K3
99 SEIZE FS
100 ADVANCE 5,1
101 RELEASE FS
102 ASSIGN 2,P1
103 ASSIGN 1,3
103.1 SEIZE K3
103.2 ADVANCE 2,1
103.3 RELEASE K3
104 SEIZE SW
105 ADVANCE 2,1
106 RELEASE SW
107 TEST NE P2,1,A1
108 TEST NE P2,2,A2
109 TERMINATE
111 A2 SEIZE K2
112 ADVANCE 5,1
113 RELEASE K2
114 SEIZE PC2
115 ADVANCE 5,1
116 RELEASE PC2
116.1 TEST NE P3,0,D1
117 TERMINATE
117.1 D1 ASSIGN 2,P1
117.2 ASSIGN 3,1
117.3 TRANSFER ,AA
118 A1 SEIZE K1
119 ADVANCE 5,1
120 RELEASE K1
121 SEIZE PC1
122 ADVANCE 6,1
123 RELEASE PC1
123.1 TEST NE P3,0,D2
124 TERMINATE
124.1 D2 ASSIGN 2,P1
124.2 ASSIGN 3,1
124.3 TRANSFER ,BB
125 GENERATE 18,3
126 ASSIGN 1,2
127 ASSIGN 2,FN$ADR2
127.1 ASSIGN 3,0
128 SEIZE PC2
130 ADVANCE 6,1
140 RELEASE PC2
150 AA SEIZE K2
160 ADVANCE 5,1
170 RELEASE K2
180 SEIZE SW
181 ADVANCE 3,1
182 RELEASE SW
183 TEST NE P2,1,A1
184 TEST NE P2,2,A2
184 TEST NE P2,3,A3
185 TERMINATE
1010 GENERATE 18,3
1011 ASSIGN 1,4
1012 ASSIGN 2,FN$ADR3
1013 ASSIGN 3,0
1020 SEIZE PC3
1030 ADVANCE 8,1
1040 RELEASE PC3
1050 ZZ SEIZE K4
1060 ADVANCE 5,1
1070 RELEASE K4
1080 SEIZE SW2
1081 ADVANCE 3,1
1090 RELEASE SW2
1091 TEST NE P2,4,B1
1092 TEST NE P2,5,B2
1093 TEST NE P2,6,B3
1094 TEST NE P2,7,B4
1095 TERMINATE
1096 B4 SEIZE K7
1097 ADVANCE 3,1
1098 RELEASE K7
1099 SEIZE FS2
10100 ADVANCE 6,1
10101 RELEASE FS2
10102 ASSIGN 2,P1
10103 ASSIGN 1,7
10103.1 SEIZE K7
10103.2 ADVANCE 3,1
10103.3 RELEASE K7
10104 SEIZE SW2
10105 ADVANCE 3,1
10106 RELEASE SW2
10107 TEST NE P2,4,B1
10108 TEST NE P2,5,B2
10109 TEST NE P2,6,B3
10110 TERMINATE
10111 B1 SEIZE K4
10112 ADVANCE 5,1
10113 RELEASE K4
10114 SEIZE PC3
10115 ADVANCE 8,1
10116 RELEASE PC3
10116.1 TEST NE P3,0,D3
10117 TERMINATE
10117.1 D3 ASSIGN 2,P1
10117.2 ASSIGN 3,1
10117.3 TRANSFER ,ZZ
10118 B2 SEIZE K5
10119 ADVANCE 5,1
10120 RELEASE K5
10121 SEIZE PC4
10122 ADVANCE 8,1
10123 RELEASE PC4
10123.1 TEST NE P3,0,D4
10124 TERMINATE
10125 D4 ASSIGN 2,P1
10126 ASSIGN 3,1
10127 TRANSFER ,XX
10140 B3 SEIZE K6
10141 ADVANCE 5,1
10142 RELEASE K6
10143 SEIZE PC5
10144 ADVANCE 8,1
10145 RELEASE PC5
10146 TEST NE P3,0,D5
10147 TERMINATE
10148 D5 ASSIGN 2,P1
10149 ASSIGN 3,1
10150 TRANSFER ,VV
10161 GENERATE 18,3
10162 ASSIGN 1,5
10163 ASSIGN 2,FN$ADR4
10164 ASSIGN 3,0
10165 SEIZE PC4
10166 ADVANCE 10,1
10167 RELEASE PC4
10168 XX SEIZE K5
10169 ADVANCE 10,1
10170 RELEASE K5
10180 SEIZE SW2
10181 ADVANCE 3,1
10182 RELEASE SW2
10183 TEST NE P2,4,B1
10184 TEST NE P2,5,B2
10184 TEST NE P2,6,B3
10185 TEST NE P2,7,B4
10186 TERMINATE
10261 GENERATE 18,3
10262 ASSIGN 1,6
10263 ASSIGN 2,FN$ADR5
10264 ASSIGN 3,0
10265 SEIZE PC5
10266 ADVANCE 8,1
10267 RELEASE PC5
10268 VV SEIZE K6
10269 ADVANCE 5,1
10270 RELEASE K6
10280 SEIZE SW2
10281 ADVANCE 3,1
10282 RELEASE SW2
10283 TEST NE P2,4,B1
10284 TEST NE P2,5,B2
10284 TEST NE P2,6,B3
10285 TEST NE P2,7,B4
10286 TERMINATE
102000 GENERATE 1000
102010 TERMINATE 1
102020 START
Отчет GPSSREPT:
GPSS/PC Report file REPORT.GPS. (V 2, # 37349) 12-16-2009 09:55:00 page 1
START_TIME END_TIME BLOCKS FACILITIES STORAGES FREE_MEMORY
0 1000 176 16 0 323120
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
ADR4 10011 2
ADR5 10012 2
PC1 10013 2
K1 10014 2
BB 8 3
SW 10016 2
A1 46 3
A2 35 3
A3 18 3
K3 10020 2
FS 10021 2
K2 10022 2
PC2 10023 2
D1 43 3
AA 64 3
D2 54 3
PC3 10027 2
K4 10028 2
ZZ 80 3
SW2 10030 2
B1 109 3
B2 120 3
B3 131 3
B4 91 3
K7 10035 2
FS2 10036 2
D3 117 3
K5 10038 2
PC4 10039 2
D4 128 3
XX 149 3
K6 10042 2
PC5 10043 2
D5 139 3
VV 166 3
GPSS/PC Report file REPORT.GPS. (V 2, # 37349) 12-16-2009 09:55:00 page 2
LINE LOC BLOCK_TYPE ENTRY_COUNT CURRENT_COUNT RETRY
10 1 GENERATE 54 0 0
11 2 ASSIGN 54 0 0
12 3 ASSIGN 54 0 0
13 4 ASSIGN 54 0 0
20 5 SEIZE 54 0 0
30 6 ADVANCE 54 0 0
40 7 RELEASE 54 1 0
50 BB SEIZE 100 0 0
60 9 ADVANCE 100 0 0
70 10 RELEASE 100 1 0
80 11 SEIZE 99 0 0
81 12 ADVANCE 99 0 0
90 13 RELEASE 99 0 0
91 14 TEST 99 0 0
92 15 TEST 99 0 0
93 16 TEST 74 0 0
94 17 TERMINATE 0 0 0
96 A3 SEIZE 153 0 0
97 19 ADVANCE 153 0 0
98 20 RELEASE 153 0 0
99 21 SEIZE 153 0 0
100 22 ADVANCE 153 1 0
101 23 RELEASE 152 0 0
102 24 ASSIGN 152 0 0
103 25 ASSIGN 152 0 0
103.1 26 SEIZE 152 0 0
103.2 27 ADVANCE 152 0 0
103.3 28 RELEASE 152 0 0
104 29 SEIZE 152 0 0
105 30 ADVANCE 152 0 0
106 31 RELEASE 152 0 0
107 32 TEST 152 1 0
108 33 TEST 114 0 0
109 34 TERMINATE 73 0 0
111 A2 SEIZE 66 0 0
112 36 ADVANCE 66 0 0
113 37 RELEASE 66 0 0
114 38 SEIZE 66 0 0
115 39 ADVANCE 66 1 0
116 40 RELEASE 65 0 0
116.1 41 TEST 65 0 0
117 42 TERMINATE 10 0 0
117.1 D1 ASSIGN 55 0 0
117.2 44 ASSIGN 55 0 0
117.3 45 TRANSFER 55 1 0
118 A1 SEIZE 63 0 0
119 47 ADVANCE 63 1 0
120 48 RELEASE 62 0 0
121 49 SEIZE 62 0 0
122 50 ADVANCE 62 1 0
GPSS/PC Report file REPORT.GPS. (V 2, # 37349) 12-16-2009 09:55:00 page 3
LINE LOC BLOCK_TYPE ENTRY_COUNT CURRENT_COUNT RETRY
123 51 RELEASE 61 0 0
123.1 52 TEST 61 0 0
124 53 TERMINATE 14 0 0
124.1 D2 ASSIGN 47 0 0
124.2 55 ASSIGN 47 0 0
124.3 56 TRANSFER 47 0 0
125 57 GENERATE 54 0 0
126 58 ASSIGN 54 0 0
127 59 ASSIGN 54 0 0
127.1 60 ASSIGN 54 0 0
128 61 SEIZE 54 0 0
130 62 ADVANCE 54 0 0
140 63 RELEASE 54 1 0
150 AA SEIZE 107 0 0
160 65 ADVANCE 107 1 0
170 66 RELEASE 106 0 0
180 67 SEIZE 106 0 0
181 68 ADVANCE 106 1 0
182 69 RELEASE 105 0 0
183 70 TEST 105 0 0
184 71 TEST 79 0 0
185 72 TERMINATE 0 0 0
1010 73 GENERATE 56 0 0
1011 74 ASSIGN 56 0 0
1012 75 ASSIGN 56 0 0
1013 76 ASSIGN 56 1 0
1020 77 SEIZE 55 0 0
1030 78 ADVANCE 55 0 0
1040 79 RELEASE 55 0 0
1050 ZZ SEIZE 100 0 0
1060 81 ADVANCE 100 1 0
1070 82 RELEASE 99 14 0
1080 83 SEIZE 85 0 0
1081 84 ADVANCE 85 0 0
1090 85 RELEASE 85 0 0
1091 86 TEST 85 0 0
1092 87 TEST 85 2 0
1093 88 TEST 66 0 0
1094 89 TEST 39 0 0
1095 90 TERMINATE 0 0 0
1096 B4 SEIZE 105 0 0
1097 92 ADVANCE 105 0 0
1098 93 RELEASE 105 0 0
1099 94 SEIZE 105 0 0
10100 95 ADVANCE 105 0 0
10101 96 RELEASE 105 0 0
10102 97 ASSIGN 105 0 0
10103 98 ASSIGN 105 0 0
10103.1 99 SEIZE 105 0 0
10103.2 100 ADVANCE 105 1 0
GPSS/PC Report file REPORT.GPS. (V 2, # 37349) 12-16-2009 09:55:00 page 4
LINE LOC BLOCK_TYPE ENTRY_COUNT CURRENT_COUNT RETRY
10103.3 101 RELEASE 104 13 0
10104 102 SEIZE 91 0 0
10105 103 ADVANCE 91 1 0
10106 104 RELEASE 90 0 0
10107 105 TEST 90 0 0
10108 106 TEST 70 0 0
10109 107 TEST 51 0 0
10110 108 TERMINATE 36 0 0
10111 B1 SEIZE 63 0 0
10112 110 ADVANCE 63 0 0
10113 111 RELEASE 63 0 0
10114 112 SEIZE 63 0 0