K2 88 0.520 5.91 1 0 0 0 0 0
PC2 65 0.513 7.89 1 141 0 0 0 2
K8 169 0.641 2.61 1 0 0 0 0 0
SW2 279 0.810 2.90 1 120 0 0 0 1
PC3 73 0.571 7.82 1 139 0 0 0 0
K4 102 0.829 8.13 1 124 0 0 0 1
K7 89 0.718 8.07 1 122 0 0 0 1
FS2 45 0.672 14.93 1 128 0 0 0 0
K5 74 0.596 8.05 1 138 0 0 0 2
PC4 55 0.585 9.09 1 135 0 0 0 1
K6 88 0.688 4.41 1 0 0 0 0 0
PC5 64 0.608 7.94 1 0 0 0 0 0
XACT_GROUP GROUP_SIZE RETRY
POSITION 0 0
Вывод: Построили сеть, состоящую из 5 ПК, 2х свитчей и 2х файл серверов; также рассматривали в зависимости от типа сообщения(запрос/ответ) посылку ответа или же удаление сообщений из модели.
Построить сеть: коммутатор с очередями (приоритетное обслуживание).
Листинг программы:
1 ADR1 FUNCTIONRN3,D2
0.2,2/1,3
2 ADR2 FUNCTION RN3,D2
0.2,1/1,3
3 ADD FUNCTION RN1,D4
0.25,1/0.5,2/0.75,3/1,4
10 GENERATE 20,5
11 ASSIGN 1,1
12 ASSIGN 2,FN$ADR1
13 ASSIGN 4,FN$ADD
20 SEIZE PC1
30 ADVANCE 5,1
40 RELEASE PC1
50 SEIZE K1
60 ADVANCE 5,1
70 RELEASE K1
71 SEIZE SW
80 ADVANCE 2,1
81 RELEASE SW
82 TEST NE P4,1,AA1
83 TEST NE P4,2,AA2
84 TEST NE P4,3,AA3
85 TEST NE P4,4,AA4
86 TERMINATE
87 AA1 LINK L1,FIFO
88 AA2 LINK L2,FIFO
89 AA3 LINK L3,FIFO
90 AA4 LINK L4,FIFO
91 GENERATE 20,5
92 TEST NE CH$L1,0,BBB1 93 UNLINK L1,FF
94 TERMINATE
95 BBB1 TEST NE CH$L2,0,BBB2
96 UNLINK L2,FF
97 TERMINATE
98 BBB2 TEST NE CH$L3,0,BBB3
99 UNLINK L3,FF
100 TERMINATE
101 BBB3 TEST NE CH$L4,0,BBB4
102 UNLINK L4,FF
103 BBB4 TERMINATE
910 FF TEST NE P2,1,A1
920 TEST NE P2,2,A2
930 TEST NE P2,3,A3
940 TERMINATE
960 A3 SEIZE K3
970 ADVANCE 4,1
980 RELEASE K3
990 SEIZE FS
1000 ADVANCE 7,1
1010 RELEASE FS
1020 ASSIGN 2,P1
1030 ASSIGN 1,3
1031 SEIZE K3
1032 ADVANCE 3,1
1033 RELEASE K3
1040 SEIZE SW
1050 ADVANCE 2,1
1060 RELEASE SW
1070 TEST NE P2,1,A1
1080 TEST NE P2,2,A2
1090 TERMINATE
1110 A2 SEIZE K2
1120 ADVANCE 5,1
1130 RELEASE K2
1140 SEIZE PC2
1150 ADVANCE 5,1
1160 RELEASE PC2
1170 TERMINATE
1180 A1 SEIZE K1
1190 ADVANCE 5,1
1200 RELEASE K1
1210 SEIZE PC1
1220 ADVANCE 5,1
1230 RELEASE PC1
1240 TERMINATE
1250 GENERATE 20,5
1260 ASSIGN 1,2
1270 ASSIGN 2,FN$ADR2
1271 ASSIGN 4,FN$ADD
1280 SEIZE PC2
1300 ADVANCE 5,1
1400 RELEASE PC2
1500 SEIZE K2
1600 ADVANCE 5,1
1700 RELEASE K2
1800 SEIZE SW
1810 ADVANCE 3,1
1811 RELEASE SW
1820 TEST NE P4,1,B1
1821 TEST NE P4,2,B2
1822 TEST NE P4,3,B3
1823 TEST NE P4,4,B4
1824 TERMINATE
1825 B1 LINK LL1,FIFO
1826 B2 LINK LL2,FIFO
1827 B3 LINK LL3,FIFO
1828 B4 LINK LL4,FIFO
1829 GENERATE 20,5
1830 TEST NE CH$LL1,0,BB1
1831 UNLINK LL1,FF1
1832 TERMINATE
1833 BB1 TEST NE CH$LL2,0,BB2
1834 UNLINK LL2,FF1
1835 TERMINATE
1836 BB2 TEST NE CH$LL3,0,BB3
1837 UNLINK LL3,FF1
1838 TERMINATE
1839 BB3 TEST NE CH$LL4,0,BB4
1840 UNLINK LL4,FF1
1841 BB4 TERMINATE
1850 FF1 TEST NE P2,1,A1
1860 TEST NE P2,2,A2
1870 TEST NE P2,3,A3
1880 TERMINATE
2000 GENERATE 1000
2010 TERMINATE 1
2020 START 1
Отчет GPSSREPT:
GPSS/PC Report file REPORT.GPS. (V 2, # 37349) 12-16-2009 10:31:08 page 1
START_TIME END_TIME BLOCKS FACILITIES STORAGES FREE_MEMORY
0 1000 110 7 0 342304
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
ADD 10010 2
PC1 10011 2
K1 10012 2
SW 10013 2
AA1 19 3
AA2 20 3
AA3 21 3
AA4 22 3
L1 10018 2
L2 10019 2
L3 10020 2
L4 10021 2
BBB1 27 3
FF 36 3
BBB2 30 3
BBB3 33 3
BBB4 35 3
A1 64 3
A2 57 3
A3 40 3
K3 10030 2
FS 10031 2
K2 10032 2
PC2 10033 2
B1 89 3
B2 90 3
B3 91 3
B4 92 3
LL1 10038 2
LL2 10039 2
LL3 10040 2
LL4 10041 2
BB1 97 3
FF1 106 3
BB2 100 3
BB3 103 3
BB4 105 3
GPSS/PC Report file REPORT.GPS. (V 2, # 37349) 12-16-2009 10:31:08 page 2
LINE LOC BLOCK_TYPE ENTRY_COUNT CURRENT_COUNT RETRY
10 1 GENERATE 47 0 0
11 2 ASSIGN 47 0 0
12 3 ASSIGN 47 0 0
13 4 ASSIGN 47 0 0
20 5 SEIZE 47 0 0
30 6 ADVANCE 47 0 0
40 7 RELEASE 47 0 0
50 8 SEIZE 47 0 0
60 9 ADVANCE 47 0 0
70 10 RELEASE 47 0 0
71 11 SEIZE 47 0 0
80 12 ADVANCE 47 1 0
81 13 RELEASE 46 0 0
82 14 TEST 46 0 0
83 15 TEST 30 0 0
84 16 TEST 21 0 0
85 17 TEST 11 0 0
86 18 TERMINATE 0 0 0
87 AA1 LINK 16 0 0
88 AA2 LINK 9 0 0
89 AA3 LINK 10 0 0
90 AA4 LINK 11 0 0
91 23 GENERATE 49 0 0
92 24 TEST 49 0 0
93 25 UNLINK 16 0 0
94 26 TERMINATE 16 0 0
95 BBB1 TEST 33 0 0
96 28 UNLINK 9 0 0
97 29 TERMINATE 9 0 0
98 BBB2 TEST 24 0 0
99 31 UNLINK 10 0 0
100 32 TERMINATE 10 0 0
101 BBB3 TEST 14 0 0
102 34 UNLINK 10 0 0
103 BBB4 TERMINATE 14 0 0
910 FF TEST 46 0 0
920 37 TEST 46 0 0
930 38 TEST 34 0 0
940 39 TERMINATE 0 0 0
960 A3 SEIZE 72 0 0
970 41 ADVANCE 72 1 0
980 42 RELEASE 71 0 0
990 43 SEIZE 71 0 0
1000 44 ADVANCE 71 0 0
1010 45 RELEASE 71 0 0
1020 46 ASSIGN 71 0 0
1030 47 ASSIGN 71 0 0
1031 48 SEIZE 71 0 0
1032 49 ADVANCE 71 0 0
1033 50 RELEASE 71 0 0
GPSS/PC Report file REPORT.GPS. (V 2, # 37349) 12-16-2009 10:31:08 page 3
LINE LOC BLOCK_TYPE ENTRY_COUNT CURRENT_COUNT RETRY
1040 51 SEIZE 71 0 0
1050 52 ADVANCE 71 0 0
1060 53 RELEASE 71 0 0
1070 54 TEST 71 0 0
1080 55 TEST 37 0 0
1090 56 TERMINATE 0 0 0
1110 A2 SEIZE 49 0 0
1120 58 ADVANCE 49 0 0
1130 59 RELEASE 49 0 0
1140 60 SEIZE 49 0 0
1150 61 ADVANCE 49 1 0
1160 62 RELEASE 48 0 0
1170 63 TERMINATE 48 0 0
1180 A1 SEIZE 45 0 0
1190 65 ADVANCE 45 0 0
1200 66 RELEASE 45 0 0
1210 67 SEIZE 45 0 0
1220 68 ADVANCE 45 0 0
1230 69 RELEASE 45 0 0
1240 70 TERMINATE 45 0 0
1250 71 GENERATE 50 0 0
1260 72 ASSIGN 50 0 0
1270 73 ASSIGN 50 0 0
1271 74 ASSIGN 50 1 0
1280 75 SEIZE 49 0 0
1300 76 ADVANCE 49 0 0
1400 77 RELEASE 49 0 0
1500 78 SEIZE 49 0 0
1600 79 ADVANCE 49 0 0
1700 80 RELEASE 49 0 0
1800 81 SEIZE 49 0 0
1810 82 ADVANCE 49 0 0
1811 83 RELEASE 49 0 0
1820 84 TEST 49 0 0
1821 85 TEST 37 0 0
1822 86 TEST 30 0 0
1823 87 TEST 13 0 0
1824 88 TERMINATE 0 0 0
1825 B1 LINK 12 0 0
1826 B2 LINK 7 0 0
1827 B3 LINK 17 0 0
1828 B4 LINK 13 0 0
1829 93 GENERATE 50 0 0
1830 94 TEST 50 0 0
1831 95 UNLINK 12 0 0
1832 96 TERMINATE 12 0 0
1833 BB1 TEST 38 0 0
1834 98 UNLINK 7 0 0
1835 99 TERMINATE 7 0 0
1836 BB2 TEST 31 0 0
GPSS/PC Report file REPORT.GPS. (V 2, # 37349) 12-16-2009 10:31:08 page 4
LINE LOC BLOCK_TYPE NTRY_COUNT CURRENT_COUNT RETRY
1837 101 UNLINK 15 0 0
1838 102 TERMINATE 15 0 0
1839 BB3 TEST 16 0 0
1840 104 UNLINK 12 0 0
1841 BB4 TERMINATE 16 0 0
1850 FF1 TEST 49 0 0
1860 107 TEST 38 0 0
1870 108 TEST 38 0 0
1880 109 TERMINATE 0 0 0
2000 110 GENERATE 1 0 0
2010 111 TERMINATE 1 0 0
FACILITY ENTRIES UTIL. AVE._TIME AVAILABLE OWNER PEND INTER RETRY DELAY
PC1 92 0.567 5.08 1 0 0 0 0 0
K1 92 0.567 5.08 1 0 0 0 0 0
SW 167 0.579 2.27 1 195 0 0 0 0
K3 143 0.593 3.45 1 193 0 0 0 0
FS 71 0.510 7.18 1 0 0 0 0 0
K2 98 0.589 4.99 1 0 0 0 0 0
PC2 98 0.589 4.99 1 177 0 0 0 1
USER_CHAIN CHAIN_SIZE RETRY AVE.CONT ENTRIES MAX AVE.TIME
L1 0 0 0.12 16 1 7.62
L2 0 0 0.08 9 1 9.00
L3 0 0 0.10 10 1 10.00
L4 0 0 0.10 11 2 9.18
LL1 0 0 0.12 12 1 10.08
LL2 0 0 0.06 7 1 9.14
LL3 0 0 0.16 17 2 9.29
LL4 0 0 0.17 13 2 13.31
XACT_GROUP GROUP_SIZE RETRY
POSITION 0 0
Вывод: рассмотрели принцип задания очередей обработки пакетов, в зависимости от приоритета производили обработку сообщений.
Построить сеть: Сформировать очереди на основе приоритетов сообщений и извлекать из очередей различное количество пакетов в зависимости от приоритетов сообщений в очереди.
Листинг программы:
1 ADR1 FUNCTIONRN3,D2
0.5,2/1,3
2 ADR2 FUNCTION RN3,D2
0.5,1/1,3
3 ADD FUNCTION RN1,D4
0.25,1/0.5,2/0.75,3/1,4
10 GENERATE 30,5
11 ASSIGN 1,1
12 ASSIGN 2,FN$ADR1
13 ASSIGN 4,FN$ADD
14 SEIZE PC1
30 ADVANCE 10,2
40 RELEASE PC1
50 SEIZE K1
60 ADVANCE 6,1
70 RELEASE K1
80 SEIZE SW
81 ADVANCE 10,1
82 RELEASE SW
83 TEST NE P4,4,AA1
84 TEST NE P4,3,AA2
85 TEST NE P4,2,AA3
86 TEST NE P4,1,AA4
86.1 TERMINATE
87 AA1 LINK L1,FIFO
88 AA2 LINK L2,FIFO
89 AA3 LINK L3,FIFO
90 AA4 LINK L4,FIFO
91 GENERATE 30,5
92 ASSIGN 5,CH$L1
93 TEST NE P5,0,BBB1
94 TEST LE P5,4,BBBB1
95 UNLINK L1,FF,4
96 TRANSFER ,BBB1
97 BBBB1 UNLINK L1,FF,P5
98 TERMINATE
99 BBB1 ASSIGN 5,CH$L2
100 TEST NE P5,0,BBB2
101 TEST LE P5,3,BBBB2
102 UNLINK L2,FF,3
103 TRANSFER ,BBB2
104 BBBB2 UNLINK L2,FF,P5
105 TERMINATE
106 BBB2 ASSIGN 5,CH$L3
107 TEST NE P5,0,BBB3
108 TEST LE P5,2,BBBB3
109 UNLINK L3,FF,2
110 TRANSFER ,BBB3
111 BBBB3 UNLINK L3,FF,P5
112 TERMINATE
113 BBB3 ASSIGN 5,CH$L4
114 TEST NE P5,0,BBB4
115 TEST LE P5,1,BBBB4
116 UNLINK L4,FF,1
117 TRANSFER ,BBB4
118 BBBB4 UNLINK L4,FF,P5
119 BBB4 TERMINATE
910 FF TEST NE P2,1,A1
920 TEST NE P2,2,A2
930 TEST NE P2,3,A3
940 TERMINATE
960 A3 SEIZE K3
970 ADVANCE 10,1
980 RELEASE K3
990 SEIZE FS
1000 ADVANCE 25,5
1010 RELEASE FS
1020 ASSIGN 2,P1
1030 ASSIGN 1,3
1030.1 SEIZE K3
1030.2 ADVANCE 10,1
1030.3 RELEASE K3
1040 SEIZE SW
1050 ADVANCE 5,1
1060 RELEASE SW
1070 TEST NE P2,1,A1
1080 TEST NE P2,2,A2
1090 TERMINATE
1110 A2 SEIZE K2
1120 ADVANCE 10,1
1130 RELEASE K2
1140 SEIZE PC2
1150 ADVANCE 10,1
1160 RELEASE PC2
1170 TERMINATE
1180 A1 SEIZE K1
1190 ADVANCE 8,1
1200 RELEASE K1
1210 SEIZE PC1
1220 ADVANCE 7,1
1230 RELEASE PC1
1240 TERMINATE
1250 GENERATE 30,5
1260 ASSIGN 1,2
1270 ASSIGN 2,FN$ADR2
1271 ASSIGN 4,FN$ADD
1280 SEIZE PC2
1300 ADVANCE 8,1
1400 RELEASE PC2
1500 SEIZE K2
1600 ADVANCE 8,1
1700 RELEASE K2
1800 SEIZE SW
1810 ADVANCE 6,1
1820 RELEASE SW
1821 TEST NE P4,4,B1
1822 TEST NE P4,3,B2
1823 TEST NE P4,2,B3
1824 TEST NE P4,1,B4
1824.1 TERMINATE
1825 B1 LINK LL1,FIFO
1826 B2 LINK LL2,FIFO
1827 B3 LINK LL3,FIFO
1828 B4 LINK LL4,FIFO
1991 GENERATE 30,5
1992 ASSIGN 5,CH$LL1
1993 TEST NE P5,0,BB1
1994 TEST LE P5,4,AAA1
1995 UNLINK LL1,FF1,4
1996 TRANSFER ,BB1
1997 AAA1 UNLINK LL1,FF1,P5
1998 TERMINATE
1999 BB1 ASSIGN 5,CH$LL2
19100 TEST NE P5,0,BB2
19101 TEST LE P5,3,AAA2
19102 UNLINK LL2,FF1,3
19103 TRANSFER ,BB2
19104 AAA2 UNLINK LL2,FF1,P5
19105 TERMINATE
19106 BB2 ASSIGN 5,CH$LL3
19107 TEST NE P5,0,BB3
19108 TEST LE P5,2,AAA3
19109 UNLINK LL3,FF1,2
19110 TRANSFER ,BB3
19111 AAA3 UNLINK LL3,FF1,P5
19112 TERMINATE
19113 BB3 ASSIGN 5,CH$LL4
19114 TEST NE P5,0,BB4
19115 TEST LE P5,1,AAA4
19116 UNLINK LL4,FF1,1
19117 TRANSFER ,BB4
19118 AAA4 UNLINK LL4,FF1,P5
19119 BB4 TERMINATE
191850 FF1 TEST NE P2,1,A1
191860 TEST NE P2,2,A2
191870 TEST NE P2,3,A3
191880 TERMINATE
192000 GENERATE 1000
192010 TERMINATE 1
192020 START 1191880 TERMINATE
192000 GENERATE 1000
192010 TERMINATE 1
192020 START 1
Отчет GPSSREPT:
GPSS/PC Report file REPORT.GPS. (V 2, # 37349) 12-16-2009 10:40:25 page 1
START_TIME END_TIME BLOCKS FACILITIES STORAGES FREE_MEMORY
0 1000 142 7 0 337168
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
ADD 10010 2
PC1 10011 2
K1 10012 2
SW 10013 2
AA1 19 3
AA2 20 3
AA3 21 3
AA4 22 3
L1 10018 2
L2 10019 2
L3 10020 2
L4 10021 2
BBB1 31 3
BBBB1 29 3
FF 52 3
BBB2 38 3
BBBB2 36 3
BBB3 45 3
BBBB3 43 3
BBB4 51 3
BBBB4 50 3
A1 80 3
A2 73 3
A3 56 3
K3 10034 2
FS 10035 2
K2 10036 2
PC2 10037 2
B1 105 3
B2 106 3
B3 107 3
B4 108 3
LL1 10042 2
LL2 10043 2
LL3 10044 2
LL4 10045 2
BB1 117 3
GPSS/PC Report file REPORT.GPS. (V 2, # 37349) 12-16-2009 10:40:25 page 2
NAME VALUE TYPE
AA1 115 3
FF1 138 3
BB2 124 3
AAA2 122 3
BB3 131 3
AAA3 129 3
BB4 137 3
AAA4 136 3
LINE LOC BLOCK_TYPE ENTRY_COUNT CURRENT_COUNT RETRY
10 1 GENERATE 33 0 0
11 2 ASSIGN 33 0 0
12 3 ASSIGN 33 0 0
13 4 ASSIGN 33 0 0
14 5 SEIZE 33 0 0
30 6 ADVANCE 33 0 0
40 7 RELEASE 33 0 0
50 8 SEIZE 33 0 0
60 9 ADVANCE 33 0 0
70 10 RELEASE 33 0 0
80 11 SEIZE 33 0 0
81 12 ADVANCE 33 1 0
82 13 RELEASE 32 0 0
83 14 TEST 32 0 0
84 15 TEST 24 0 0
85 16 TEST 18 0 0
86 17 TEST 11 0 0
86.1 18 TERMINATE 0 0 0
87 AA1 LINK 8 0 0
88 AA2 LINK 6 0 0
89 AA3 LINK 7 0 0
90 AA4 LINK 11 0 0
91 23 GENERATE 33 0 0
92 24 ASSIGN 33 0 0
93 25 TEST 33 0 0
94 26 TEST 8 0 0
95 27 UNLINK 8 0 0
96 28 TRANSFER 8 0 0
97 BBBB1 UNLINK 0 0 0
98 30 TERMINATE 0 0 0
99 BBB1 ASSIGN 33 0 0
100 32 TEST 33 0 0
101 33 TEST 6 0 0
102 34 UNLINK 6 0 0
103 35 TRANSFER 6 0 0
104 BBBB2 UNLINK 0 0 0
105 37 TERMINATE 0 0 0
106 BBB2 ASSIGN 33 0 0
107 39 TEST 33 0 0
GPSS/PC Report file REPORT.GPS. (V 2, # 37349) 12-16-2009 10:40:25 page 3
LINE LOC BLOCK_TYPE ENTRY_COUNT CURRENT_COUNT RETRY
108 40 TEST 7 0 0
109 41 UNLINK 7 0 0
110 42 TRANSFER 7 0 0
111 BBBB3 UNLINK 0 0 0
112 44 TERMINATE 0 0 0
113 BBB3 ASSIGN 33 0 0
114 46 TEST 33 0 0
115 47 TEST 11 0 0
116 48 UNLINK 11 0 0
117 49 TRANSFER 11 0 0
118 BBBB4 UNLINK 0 0 0
119 BBB4 TERMINATE 33 0 0
910 FF TEST 32 0 0
920 53 TEST 32 0 0
930 54 TEST 12 0 0
940 55 TERMINATE 0 0 0
960 A3 SEIZE 25 0 0
970 57 ADVANCE 25 1 0
980 58 RELEASE 24 0 0
990 59 SEIZE 24 0 0
1000 60 ADVANCE 24 0 0
1010 61 RELEASE 24 0 0
1020 62 ASSIGN 24 0 0
1030 63 ASSIGN 24 1 0
1030.1 64 SEIZE 23 0 0
1030.2 65 ADVANCE 23 0 0
1030.3 66 RELEASE 23 0 0
1040 67 SEIZE 23 0 0
1050 68 ADVANCE 23 0 0
1060 69 RELEASE 23 0 0
1070 70 TEST 23 0 0
1080 71 TEST 12 0 0
1090 72 TERMINATE 0 0 0
1110 A2 SEIZE 32 0 0
1120 74 ADVANCE 32 0 0
1130 75 RELEASE 32 0 0
1140 76 SEIZE 32 0 0
1150 77 ADVANCE 32 0 0
1160 78 RELEASE 32 0 0
1170 79 TERMINATE 32 0 0
1180 A1 SEIZE 30 0 0