Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 1 | ===== NS protocol test START |
Jacob Erlbeck | a52ba01 | 2013-10-24 01:33:21 +0200 | [diff] [blame^] | 2 | --- Create via RESET (round 0) --- |
| 3 | |
| 4 | PROCESSING RESET from 0x01020304:1111 |
| 5 | 02 00 81 01 01 82 10 01 04 82 10 00 |
| 6 | |
| 7 | ==> got signal NS_RESET, NS-VC 0x1001/1.2.3.4:1111 |
| 8 | MESSAGE to BSS, msg length 9 |
| 9 | 03 01 82 10 01 04 82 10 00 |
| 10 | |
| 11 | MESSAGE to BSS, msg length 1 |
| 12 | 0a |
| 13 | |
| 14 | result (RESET) = 9 |
| 15 | |
| 16 | Current NS-VCIs: |
| 17 | VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111, blocked |
| 18 | |
| 19 | --- Delete nsvc object (round 0)--- |
| 20 | |
| 21 | Current NS-VCIs: |
| 22 | |
| 23 | --- Create via RESET (round 1) --- |
| 24 | |
| 25 | PROCESSING RESET from 0x01020304:1111 |
| 26 | 02 00 81 01 01 82 10 01 04 82 10 00 |
| 27 | |
| 28 | ==> got signal NS_RESET, NS-VC 0x1001/1.2.3.4:1111 |
| 29 | MESSAGE to BSS, msg length 9 |
| 30 | 03 01 82 10 01 04 82 10 00 |
| 31 | |
| 32 | MESSAGE to BSS, msg length 1 |
| 33 | 0a |
| 34 | |
| 35 | result (RESET) = 9 |
| 36 | |
| 37 | Current NS-VCIs: |
| 38 | VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111, blocked |
| 39 | |
| 40 | --- Delete nsvc object (round 1)--- |
| 41 | |
| 42 | Current NS-VCIs: |
| 43 | |
| 44 | --- Create via RESET (round 2) --- |
| 45 | |
| 46 | PROCESSING RESET from 0x01020304:1111 |
| 47 | 02 00 81 01 01 82 10 01 04 82 10 00 |
| 48 | |
| 49 | ==> got signal NS_RESET, NS-VC 0x1001/1.2.3.4:1111 |
| 50 | MESSAGE to BSS, msg length 9 |
| 51 | 03 01 82 10 01 04 82 10 00 |
| 52 | |
| 53 | MESSAGE to BSS, msg length 1 |
| 54 | 0a |
| 55 | |
| 56 | result (RESET) = 9 |
| 57 | |
| 58 | Current NS-VCIs: |
| 59 | VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111, blocked |
| 60 | |
| 61 | --- Delete nsvc object (round 2)--- |
| 62 | |
| 63 | Current NS-VCIs: |
| 64 | |
| 65 | --- Create via RESET (round 3) --- |
| 66 | |
| 67 | PROCESSING RESET from 0x01020304:1111 |
| 68 | 02 00 81 01 01 82 10 01 04 82 10 00 |
| 69 | |
| 70 | ==> got signal NS_RESET, NS-VC 0x1001/1.2.3.4:1111 |
| 71 | MESSAGE to BSS, msg length 9 |
| 72 | 03 01 82 10 01 04 82 10 00 |
| 73 | |
| 74 | MESSAGE to BSS, msg length 1 |
| 75 | 0a |
| 76 | |
| 77 | result (RESET) = 9 |
| 78 | |
| 79 | Current NS-VCIs: |
| 80 | VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111, blocked |
| 81 | |
| 82 | --- Delete nsvc object (round 3)--- |
| 83 | |
| 84 | Current NS-VCIs: |
| 85 | |
| 86 | --- Process timers --- |
| 87 | |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame] | 88 | --- Setup, send BSSGP RESET --- |
| 89 | |
| 90 | Setup NS-VC: remote 0x01020304:1111, NSVCI 0x1122(4386), NSEI 0x1122(4386) |
| 91 | |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 92 | PROCESSING RESET from 0x01020304:1111 |
| 93 | 02 00 81 01 01 82 11 22 04 82 11 22 |
| 94 | |
Jacob Erlbeck | 34fc470 | 2013-10-09 11:27:04 +0200 | [diff] [blame] | 95 | ==> got signal NS_RESET, NS-VC 0x1122/1.2.3.4:1111 |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame] | 96 | MESSAGE to BSS, msg length 9 |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 97 | 03 01 82 11 22 04 82 11 22 |
| 98 | |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame] | 99 | MESSAGE to BSS, msg length 1 |
Jacob Erlbeck | 05395a6 | 2013-10-08 12:04:45 +0200 | [diff] [blame] | 100 | 0a |
| 101 | |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 102 | result (RESET) = 9 |
| 103 | |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 104 | PROCESSING ALIVE from 0x01020304:1111 |
| 105 | 0a |
| 106 | |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame] | 107 | MESSAGE to BSS, msg length 1 |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 108 | 0b |
| 109 | |
| 110 | result (ALIVE) = 1 |
| 111 | |
| 112 | PROCESSING UNBLOCK from 0x01020304:1111 |
| 113 | 06 |
| 114 | |
Jacob Erlbeck | 34fc470 | 2013-10-09 11:27:04 +0200 | [diff] [blame] | 115 | ==> got signal NS_UNBLOCK, NS-VC 0x1122/1.2.3.4:1111 |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame] | 116 | MESSAGE to BSS, msg length 1 |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 117 | 07 |
| 118 | |
| 119 | result (UNBLOCK) = 1 |
| 120 | |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame] | 121 | PROCESSING ALIVE_ACK from 0x01020304:1111 |
| 122 | 0b |
| 123 | |
| 124 | result (ALIVE_ACK) = 0 |
| 125 | |
| 126 | Current NS-VCIs: |
| 127 | VCI 0x1122, NSEI 0x1122, peer 0x01020304:1111 |
| 128 | |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 129 | PROCESSING BSSGP RESET from 0x01020304:1111 |
| 130 | 00 00 00 00 22 04 82 4a 2e 07 81 08 08 88 10 20 30 40 50 60 10 00 |
| 131 | |
| 132 | CALLBACK, event 0, msg length 18, bvci 0x0000 |
| 133 | 22 04 82 4a 2e 07 81 08 08 88 10 20 30 40 50 60 10 00 |
| 134 | |
| 135 | result (BSSGP RESET) = 0 |
| 136 | |
| 137 | --- Peer port changes, RESET, message remains unchanged --- |
| 138 | |
| 139 | PROCESSING RESET from 0x01020304:2222 |
| 140 | 02 00 81 01 01 82 11 22 04 82 11 22 |
| 141 | |
Jacob Erlbeck | 34fc470 | 2013-10-09 11:27:04 +0200 | [diff] [blame] | 142 | ==> got signal NS_RESET, NS-VC 0x1122/1.2.3.4:2222 |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame] | 143 | MESSAGE to BSS, msg length 9 |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 144 | 03 01 82 11 22 04 82 11 22 |
| 145 | |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame] | 146 | MESSAGE to BSS, msg length 1 |
Jacob Erlbeck | 05395a6 | 2013-10-08 12:04:45 +0200 | [diff] [blame] | 147 | 0a |
| 148 | |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 149 | result (RESET) = 9 |
| 150 | |
| 151 | Current NS-VCIs: |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame] | 152 | VCI 0x1122, NSEI 0x1122, peer 0x01020304:2222, blocked |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 153 | |
| 154 | --- Peer port changes, RESET, VCI changes --- |
| 155 | |
| 156 | PROCESSING RESET from 0x01020304:3333 |
| 157 | 02 00 81 01 01 82 33 44 04 82 11 22 |
| 158 | |
Jacob Erlbeck | 34fc470 | 2013-10-09 11:27:04 +0200 | [diff] [blame] | 159 | ==> got signal NS_RESET, NS-VC 0x3344/1.2.3.4:3333 |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame] | 160 | MESSAGE to BSS, msg length 9 |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 161 | 03 01 82 33 44 04 82 11 22 |
| 162 | |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame] | 163 | MESSAGE to BSS, msg length 1 |
Jacob Erlbeck | 05395a6 | 2013-10-08 12:04:45 +0200 | [diff] [blame] | 164 | 0a |
| 165 | |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 166 | result (RESET) = 9 |
| 167 | |
| 168 | Current NS-VCIs: |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame] | 169 | VCI 0x3344, NSEI 0x1122, peer 0x01020304:3333, blocked |
| 170 | VCI 0x1122, NSEI 0x1122, peer 0x01020304:2222, blocked |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 171 | |
| 172 | --- Peer port changes, RESET, NSEI changes --- |
| 173 | |
| 174 | PROCESSING RESET from 0x01020304:4444 |
| 175 | 02 00 81 01 01 82 11 22 04 82 33 44 |
| 176 | |
Jacob Erlbeck | 34fc470 | 2013-10-09 11:27:04 +0200 | [diff] [blame] | 177 | ==> got signal NS_RESET, NS-VC 0x1122/1.2.3.4:4444 |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame] | 178 | MESSAGE to BSS, msg length 9 |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 179 | 03 01 82 11 22 04 82 33 44 |
| 180 | |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame] | 181 | MESSAGE to BSS, msg length 1 |
Jacob Erlbeck | 05395a6 | 2013-10-08 12:04:45 +0200 | [diff] [blame] | 182 | 0a |
| 183 | |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 184 | result (RESET) = 9 |
| 185 | |
| 186 | Current NS-VCIs: |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame] | 187 | VCI 0x3344, NSEI 0x1122, peer 0x01020304:3333, blocked |
| 188 | VCI 0x1122, NSEI 0x3344, peer 0x01020304:4444, blocked |
Jacob Erlbeck | 5e6d679 | 2013-10-14 22:06:48 +0200 | [diff] [blame] | 189 | NS-VC changed NSEI : 1 |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 190 | |
| 191 | --- Peer port 3333, RESET, VCI is changed back --- |
| 192 | |
| 193 | PROCESSING RESET from 0x01020304:3333 |
| 194 | 02 00 81 01 01 82 11 22 04 82 11 22 |
| 195 | |
Jacob Erlbeck | 5e6d679 | 2013-10-14 22:06:48 +0200 | [diff] [blame] | 196 | ==> got signal NS_REPLACED: 0x1122/1.2.3.4:4444 -> 0x3344/1.2.3.4:3333 |
Jacob Erlbeck | 34fc470 | 2013-10-09 11:27:04 +0200 | [diff] [blame] | 197 | ==> got signal NS_RESET, NS-VC 0x1122/1.2.3.4:3333 |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame] | 198 | MESSAGE to BSS, msg length 9 |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 199 | 03 01 82 11 22 04 82 11 22 |
| 200 | |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame] | 201 | MESSAGE to BSS, msg length 1 |
Jacob Erlbeck | 05395a6 | 2013-10-08 12:04:45 +0200 | [diff] [blame] | 202 | 0a |
| 203 | |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 204 | result (RESET) = 9 |
| 205 | |
| 206 | Current NS-VCIs: |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame] | 207 | VCI 0x3344, NSEI 0x1122, peer 0x00000000:0, blocked |
| 208 | VCI 0x1122, NSEI 0x1122, peer 0x01020304:3333, blocked |
Jacob Erlbeck | 5e6d679 | 2013-10-14 22:06:48 +0200 | [diff] [blame] | 209 | NS-VC replaced other count: 1 |
| 210 | NS-VC changed NSEI : 2 |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 211 | |
| 212 | --- Peer port 4444, RESET, NSEI is changed back --- |
| 213 | |
| 214 | PROCESSING RESET from 0x01020304:4444 |
| 215 | 02 00 81 01 01 82 11 22 04 82 11 22 |
| 216 | |
Jacob Erlbeck | 34fc470 | 2013-10-09 11:27:04 +0200 | [diff] [blame] | 217 | ==> got signal NS_RESET, NS-VC 0x1122/1.2.3.4:4444 |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame] | 218 | MESSAGE to BSS, msg length 9 |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 219 | 03 01 82 11 22 04 82 11 22 |
| 220 | |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame] | 221 | MESSAGE to BSS, msg length 1 |
Jacob Erlbeck | 05395a6 | 2013-10-08 12:04:45 +0200 | [diff] [blame] | 222 | 0a |
| 223 | |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 224 | result (RESET) = 9 |
| 225 | |
| 226 | Current NS-VCIs: |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame] | 227 | VCI 0x3344, NSEI 0x1122, peer 0x00000000:0, blocked |
| 228 | VCI 0x1122, NSEI 0x1122, peer 0x01020304:4444, blocked |
Jacob Erlbeck | 5e6d679 | 2013-10-14 22:06:48 +0200 | [diff] [blame] | 229 | NS-VC replaced other count: 1 |
| 230 | NS-VC changed NSEI : 2 |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 231 | |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame] | 232 | Current NS-VCIs: |
| 233 | |
| 234 | --- Send message to SGSN --- |
| 235 | |
| 236 | SENDING BSSGP RESET to NSEI 0x0100, BVCI 0x0000 |
| 237 | NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 |
| 238 | 22 04 82 4a 2e 07 81 08 08 88 10 20 30 40 50 60 10 00 |
| 239 | |
| 240 | result (BSSGP RESET) = -22 |
| 241 | |
| 242 | --- Setup dead connection to SGSN --- |
| 243 | |
| 244 | MESSAGE to SGSN, msg length 12 |
| 245 | 02 00 81 01 01 82 01 01 04 82 01 00 |
| 246 | |
| 247 | Current NS-VCIs: |
| 248 | VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000, blocked, dead |
| 249 | |
| 250 | --- Send message to SGSN --- |
| 251 | |
| 252 | SENDING BSSGP RESET to NSEI 0x0100, BVCI 0x0000 |
| 253 | NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 |
| 254 | 22 04 82 4a 2e 07 81 08 08 88 10 20 30 40 50 60 10 00 |
| 255 | |
Jacob Erlbeck | bf02196 | 2013-10-17 13:58:35 +0200 | [diff] [blame] | 256 | result (BSSGP RESET) = -16 |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame] | 257 | |
| 258 | --- Make connection to SGSN alive --- |
| 259 | |
| 260 | PROCESSING RESET_ACK from 0x05060708:32000 |
| 261 | 03 01 82 01 01 04 82 01 00 |
| 262 | |
| 263 | MESSAGE to SGSN, msg length 1 |
| 264 | 0a |
| 265 | |
| 266 | result (RESET_ACK) = 1 |
| 267 | |
| 268 | PROCESSING ALIVE_ACK from 0x05060708:32000 |
| 269 | 0b |
| 270 | |
| 271 | MESSAGE to SGSN, msg length 1 |
| 272 | 06 |
| 273 | |
| 274 | result (ALIVE_ACK) = 1 |
| 275 | |
| 276 | Current NS-VCIs: |
| 277 | VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000, blocked |
| 278 | NS-VC Block count : 1 |
| 279 | |
| 280 | --- Send message to SGSN --- |
| 281 | |
| 282 | SENDING BSSGP RESET to NSEI 0x0100, BVCI 0x0000 |
| 283 | NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 |
| 284 | 22 04 82 4a 2e 07 81 08 08 88 10 20 30 40 50 60 10 00 |
| 285 | |
Jacob Erlbeck | bf02196 | 2013-10-17 13:58:35 +0200 | [diff] [blame] | 286 | result (BSSGP RESET) = -16 |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame] | 287 | |
| 288 | --- Unblock connection to SGSN --- |
| 289 | |
| 290 | PROCESSING UNBLOCK_ACK from 0x05060708:32000 |
| 291 | 07 |
| 292 | |
| 293 | ==> got signal NS_UNBLOCK, NS-VC 0x0101/5.6.7.8:32000 |
| 294 | result (UNBLOCK_ACK) = 0 |
| 295 | |
| 296 | PROCESSING ALIVE from 0x05060708:32000 |
| 297 | 0a |
| 298 | |
| 299 | MESSAGE to SGSN, msg length 1 |
| 300 | 0b |
| 301 | |
| 302 | result (ALIVE) = 1 |
| 303 | |
| 304 | Current NS-VCIs: |
| 305 | VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000 |
| 306 | NS-VC Block count : 1 |
| 307 | |
| 308 | --- Send message to SGSN --- |
| 309 | |
| 310 | SENDING BSSGP RESET to NSEI 0x0100, BVCI 0x0000 |
| 311 | NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 |
| 312 | 22 04 82 4a 2e 07 81 08 08 88 10 20 30 40 50 60 10 00 |
| 313 | |
Jacob Erlbeck | bf02196 | 2013-10-17 13:58:35 +0200 | [diff] [blame] | 314 | MESSAGE to SGSN, msg length 22 |
| 315 | 00 00 00 00 22 04 82 4a 2e 07 81 08 08 88 10 20 30 40 50 60 10 00 |
| 316 | |
| 317 | result (BSSGP RESET) = 22 |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame] | 318 | |
| 319 | --- Send empty message with BVCI to SGSN --- |
| 320 | |
| 321 | SENDING [empty] to NSEI 0x0100, BVCI 0x0102 |
| 322 | NS UNITDATA MESSAGE to SGSN, BVCI 0x0102, msg length 0 |
| 323 | |
| 324 | |
Jacob Erlbeck | bf02196 | 2013-10-17 13:58:35 +0200 | [diff] [blame] | 325 | MESSAGE to SGSN, msg length 4 |
| 326 | 00 00 01 02 |
| 327 | |
| 328 | result ([empty]) = 4 |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame] | 329 | |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 330 | ===== NS protocol test END |
| 331 | |