Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 1 | ===== NS protocol test START |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame^] | 2 | --- Setup, send BSSGP RESET --- |
| 3 | |
| 4 | Setup NS-VC: remote 0x01020304:1111, NSVCI 0x1122(4386), NSEI 0x1122(4386) |
| 5 | |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 6 | PROCESSING RESET from 0x01020304:1111 |
| 7 | 02 00 81 01 01 82 11 22 04 82 11 22 |
| 8 | |
Jacob Erlbeck | 34fc470 | 2013-10-09 11:27:04 +0200 | [diff] [blame] | 9 | ==> got signal NS_RESET, NS-VC 0x1122/1.2.3.4:1111 |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame^] | 10 | MESSAGE to BSS, msg length 9 |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 11 | 03 01 82 11 22 04 82 11 22 |
| 12 | |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame^] | 13 | MESSAGE to BSS, msg length 1 |
Jacob Erlbeck | 05395a6 | 2013-10-08 12:04:45 +0200 | [diff] [blame] | 14 | 0a |
| 15 | |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 16 | result (RESET) = 9 |
| 17 | |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 18 | PROCESSING ALIVE from 0x01020304:1111 |
| 19 | 0a |
| 20 | |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame^] | 21 | MESSAGE to BSS, msg length 1 |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 22 | 0b |
| 23 | |
| 24 | result (ALIVE) = 1 |
| 25 | |
| 26 | PROCESSING UNBLOCK from 0x01020304:1111 |
| 27 | 06 |
| 28 | |
Jacob Erlbeck | 34fc470 | 2013-10-09 11:27:04 +0200 | [diff] [blame] | 29 | ==> got signal NS_UNBLOCK, NS-VC 0x1122/1.2.3.4:1111 |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame^] | 30 | MESSAGE to BSS, msg length 1 |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 31 | 07 |
| 32 | |
| 33 | result (UNBLOCK) = 1 |
| 34 | |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame^] | 35 | PROCESSING ALIVE_ACK from 0x01020304:1111 |
| 36 | 0b |
| 37 | |
| 38 | result (ALIVE_ACK) = 0 |
| 39 | |
| 40 | Current NS-VCIs: |
| 41 | VCI 0x1122, NSEI 0x1122, peer 0x01020304:1111 |
| 42 | |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 43 | PROCESSING BSSGP RESET from 0x01020304:1111 |
| 44 | 00 00 00 00 22 04 82 4a 2e 07 81 08 08 88 10 20 30 40 50 60 10 00 |
| 45 | |
| 46 | CALLBACK, event 0, msg length 18, bvci 0x0000 |
| 47 | 22 04 82 4a 2e 07 81 08 08 88 10 20 30 40 50 60 10 00 |
| 48 | |
| 49 | result (BSSGP RESET) = 0 |
| 50 | |
| 51 | --- Peer port changes, RESET, message remains unchanged --- |
| 52 | |
| 53 | PROCESSING RESET from 0x01020304:2222 |
| 54 | 02 00 81 01 01 82 11 22 04 82 11 22 |
| 55 | |
Jacob Erlbeck | 34fc470 | 2013-10-09 11:27:04 +0200 | [diff] [blame] | 56 | ==> got signal NS_RESET, NS-VC 0x1122/1.2.3.4:2222 |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame^] | 57 | MESSAGE to BSS, msg length 9 |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 58 | 03 01 82 11 22 04 82 11 22 |
| 59 | |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame^] | 60 | MESSAGE to BSS, msg length 1 |
Jacob Erlbeck | 05395a6 | 2013-10-08 12:04:45 +0200 | [diff] [blame] | 61 | 0a |
| 62 | |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 63 | result (RESET) = 9 |
| 64 | |
| 65 | Current NS-VCIs: |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame^] | 66 | VCI 0x1122, NSEI 0x1122, peer 0x01020304:2222, blocked |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 67 | |
| 68 | --- Peer port changes, RESET, VCI changes --- |
| 69 | |
| 70 | PROCESSING RESET from 0x01020304:3333 |
| 71 | 02 00 81 01 01 82 33 44 04 82 11 22 |
| 72 | |
Jacob Erlbeck | 34fc470 | 2013-10-09 11:27:04 +0200 | [diff] [blame] | 73 | ==> got signal NS_RESET, NS-VC 0x3344/1.2.3.4:3333 |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame^] | 74 | MESSAGE to BSS, msg length 9 |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 75 | 03 01 82 33 44 04 82 11 22 |
| 76 | |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame^] | 77 | MESSAGE to BSS, msg length 1 |
Jacob Erlbeck | 05395a6 | 2013-10-08 12:04:45 +0200 | [diff] [blame] | 78 | 0a |
| 79 | |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 80 | result (RESET) = 9 |
| 81 | |
| 82 | Current NS-VCIs: |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame^] | 83 | VCI 0x3344, NSEI 0x1122, peer 0x01020304:3333, blocked |
| 84 | VCI 0x1122, NSEI 0x1122, peer 0x01020304:2222, blocked |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 85 | |
| 86 | --- Peer port changes, RESET, NSEI changes --- |
| 87 | |
| 88 | PROCESSING RESET from 0x01020304:4444 |
| 89 | 02 00 81 01 01 82 11 22 04 82 33 44 |
| 90 | |
Jacob Erlbeck | 34fc470 | 2013-10-09 11:27:04 +0200 | [diff] [blame] | 91 | ==> got signal NS_RESET, NS-VC 0x1122/1.2.3.4:4444 |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame^] | 92 | MESSAGE to BSS, msg length 9 |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 93 | 03 01 82 11 22 04 82 33 44 |
| 94 | |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame^] | 95 | MESSAGE to BSS, msg length 1 |
Jacob Erlbeck | 05395a6 | 2013-10-08 12:04:45 +0200 | [diff] [blame] | 96 | 0a |
| 97 | |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 98 | result (RESET) = 9 |
| 99 | |
| 100 | Current NS-VCIs: |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame^] | 101 | VCI 0x3344, NSEI 0x1122, peer 0x01020304:3333, blocked |
| 102 | VCI 0x1122, NSEI 0x3344, peer 0x01020304:4444, blocked |
Jacob Erlbeck | 5e6d679 | 2013-10-14 22:06:48 +0200 | [diff] [blame] | 103 | NS-VC changed NSEI : 1 |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 104 | |
| 105 | --- Peer port 3333, RESET, VCI is changed back --- |
| 106 | |
| 107 | PROCESSING RESET from 0x01020304:3333 |
| 108 | 02 00 81 01 01 82 11 22 04 82 11 22 |
| 109 | |
Jacob Erlbeck | 5e6d679 | 2013-10-14 22:06:48 +0200 | [diff] [blame] | 110 | ==> 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] | 111 | ==> got signal NS_RESET, NS-VC 0x1122/1.2.3.4:3333 |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame^] | 112 | MESSAGE to BSS, msg length 9 |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 113 | 03 01 82 11 22 04 82 11 22 |
| 114 | |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame^] | 115 | MESSAGE to BSS, msg length 1 |
Jacob Erlbeck | 05395a6 | 2013-10-08 12:04:45 +0200 | [diff] [blame] | 116 | 0a |
| 117 | |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 118 | result (RESET) = 9 |
| 119 | |
| 120 | Current NS-VCIs: |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame^] | 121 | VCI 0x3344, NSEI 0x1122, peer 0x00000000:0, blocked |
| 122 | VCI 0x1122, NSEI 0x1122, peer 0x01020304:3333, blocked |
Jacob Erlbeck | 5e6d679 | 2013-10-14 22:06:48 +0200 | [diff] [blame] | 123 | NS-VC replaced other count: 1 |
| 124 | NS-VC changed NSEI : 2 |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 125 | |
| 126 | --- Peer port 4444, RESET, NSEI is changed back --- |
| 127 | |
| 128 | PROCESSING RESET from 0x01020304:4444 |
| 129 | 02 00 81 01 01 82 11 22 04 82 11 22 |
| 130 | |
Jacob Erlbeck | 34fc470 | 2013-10-09 11:27:04 +0200 | [diff] [blame] | 131 | ==> got signal NS_RESET, NS-VC 0x1122/1.2.3.4:4444 |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame^] | 132 | MESSAGE to BSS, msg length 9 |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 133 | 03 01 82 11 22 04 82 11 22 |
| 134 | |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame^] | 135 | MESSAGE to BSS, msg length 1 |
Jacob Erlbeck | 05395a6 | 2013-10-08 12:04:45 +0200 | [diff] [blame] | 136 | 0a |
| 137 | |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 138 | result (RESET) = 9 |
| 139 | |
| 140 | Current NS-VCIs: |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame^] | 141 | VCI 0x3344, NSEI 0x1122, peer 0x00000000:0, blocked |
| 142 | VCI 0x1122, NSEI 0x1122, peer 0x01020304:4444, blocked |
Jacob Erlbeck | 5e6d679 | 2013-10-14 22:06:48 +0200 | [diff] [blame] | 143 | NS-VC replaced other count: 1 |
| 144 | NS-VC changed NSEI : 2 |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 145 | |
Jacob Erlbeck | 0d4e949 | 2013-10-17 13:58:34 +0200 | [diff] [blame^] | 146 | Current NS-VCIs: |
| 147 | |
| 148 | --- Send message to SGSN --- |
| 149 | |
| 150 | SENDING BSSGP RESET to NSEI 0x0100, BVCI 0x0000 |
| 151 | NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 |
| 152 | 22 04 82 4a 2e 07 81 08 08 88 10 20 30 40 50 60 10 00 |
| 153 | |
| 154 | result (BSSGP RESET) = -22 |
| 155 | |
| 156 | --- Setup dead connection to SGSN --- |
| 157 | |
| 158 | MESSAGE to SGSN, msg length 12 |
| 159 | 02 00 81 01 01 82 01 01 04 82 01 00 |
| 160 | |
| 161 | Current NS-VCIs: |
| 162 | VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000, blocked, dead |
| 163 | |
| 164 | --- Send message to SGSN --- |
| 165 | |
| 166 | SENDING BSSGP RESET to NSEI 0x0100, BVCI 0x0000 |
| 167 | NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 |
| 168 | 22 04 82 4a 2e 07 81 08 08 88 10 20 30 40 50 60 10 00 |
| 169 | |
| 170 | MESSAGE to SGSN, msg length 22 |
| 171 | 00 00 00 00 22 04 82 4a 2e 07 81 08 08 88 10 20 30 40 50 60 10 00 |
| 172 | |
| 173 | result (BSSGP RESET) = 22 |
| 174 | |
| 175 | --- Make connection to SGSN alive --- |
| 176 | |
| 177 | PROCESSING RESET_ACK from 0x05060708:32000 |
| 178 | 03 01 82 01 01 04 82 01 00 |
| 179 | |
| 180 | MESSAGE to SGSN, msg length 1 |
| 181 | 0a |
| 182 | |
| 183 | result (RESET_ACK) = 1 |
| 184 | |
| 185 | PROCESSING ALIVE_ACK from 0x05060708:32000 |
| 186 | 0b |
| 187 | |
| 188 | MESSAGE to SGSN, msg length 1 |
| 189 | 06 |
| 190 | |
| 191 | result (ALIVE_ACK) = 1 |
| 192 | |
| 193 | Current NS-VCIs: |
| 194 | VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000, blocked |
| 195 | NS-VC Block count : 1 |
| 196 | |
| 197 | --- Send message to SGSN --- |
| 198 | |
| 199 | SENDING BSSGP RESET to NSEI 0x0100, BVCI 0x0000 |
| 200 | NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 |
| 201 | 22 04 82 4a 2e 07 81 08 08 88 10 20 30 40 50 60 10 00 |
| 202 | |
| 203 | MESSAGE to SGSN, msg length 22 |
| 204 | 00 00 00 00 22 04 82 4a 2e 07 81 08 08 88 10 20 30 40 50 60 10 00 |
| 205 | |
| 206 | result (BSSGP RESET) = 22 |
| 207 | |
| 208 | --- Unblock connection to SGSN --- |
| 209 | |
| 210 | PROCESSING UNBLOCK_ACK from 0x05060708:32000 |
| 211 | 07 |
| 212 | |
| 213 | ==> got signal NS_UNBLOCK, NS-VC 0x0101/5.6.7.8:32000 |
| 214 | result (UNBLOCK_ACK) = 0 |
| 215 | |
| 216 | PROCESSING ALIVE from 0x05060708:32000 |
| 217 | 0a |
| 218 | |
| 219 | MESSAGE to SGSN, msg length 1 |
| 220 | 0b |
| 221 | |
| 222 | result (ALIVE) = 1 |
| 223 | |
| 224 | Current NS-VCIs: |
| 225 | VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000 |
| 226 | NS-VC Block count : 1 |
| 227 | |
| 228 | --- Send message to SGSN --- |
| 229 | |
| 230 | SENDING BSSGP RESET to NSEI 0x0100, BVCI 0x0000 |
| 231 | NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 |
| 232 | 22 04 82 4a 2e 07 81 08 08 88 10 20 30 40 50 60 10 00 |
| 233 | |
| 234 | result (BSSGP RESET) = -16 |
| 235 | |
| 236 | --- Send empty message with BVCI to SGSN --- |
| 237 | |
| 238 | SENDING [empty] to NSEI 0x0100, BVCI 0x0102 |
| 239 | NS UNITDATA MESSAGE to SGSN, BVCI 0x0102, msg length 0 |
| 240 | |
| 241 | |
| 242 | result ([empty]) = -16 |
| 243 | |
Jacob Erlbeck | dcce196 | 2013-10-08 12:04:43 +0200 | [diff] [blame] | 244 | ===== NS protocol test END |
| 245 | |