Rev

Rev 59 | Details | Compare with Previous | Last modification | View Log | SVN

Rev Author Line No. Line
16 pintar 1
/**
2
 *      @author         STF 466
20 rennoch 3
 *  @version    $Id: DiameterS9_PIXITS.ttcn 76 2015-02-26 17:47:42Z pintar $
16 pintar 4
 *      @desc           This module provides the PIXIT used for the  S9 DIAMETER tests.
5
 */
6
 
7
module DiameterS9_PIXITS
8
{
25 rennoch 9
    import from LibDiameter_Types_Base_AVPs {type IPv4Addr, IPv6Addr, UTF8String, Subscription_Id_Ty_Type;};
47 rennoch 10
    import from LibDiameter_Types_Gx_AVPs {type IP_CAN_Type, RAT_Type, PCC_Rule_Status;};
42 rennoch 11
    import from LibCommon_BasicTypesAndValues all;
47 rennoch 12
    import from LibDiameter_Types_S9_AVPs all;
16 pintar 13
 
14
    group Port_and_addresses{
29 pintar 15
        group S9_Port_and_addresses{
16
 
17
            /** @desc   charstring, PIXIT item A-7/1
18
             * IP address of the test system
19
             */
20
            modulepar charstring PX_DIAMETER_S9_ETS_IPADDR := "1.1.1.1";
21
 
76 pintar 22
            /** @desc   charstring,  PIXIT item A-8/1
29 pintar 23
             * IP address of the system under test
24
             */
25
            modulepar charstring PX_DIAMETER_S9_SUT_IPADDR := "1.1.1.2";
26
 
76 pintar 27
            /** @desc   charstring, PIXIT item A-7/2
29 pintar 28
             * Port number of the test system
29
             */
30
            modulepar integer PX_DIAMETER_S9_ETS_PORT := 3868;
31
 
76 pintar 32
            /** @desc   charstring, PIXIT item A-8/2
29 pintar 33
             * Port number of the system under test
34
             */
35
            modulepar integer PX_DIAMETER_S9_SUT_PORT := 3868;
36
        }
37
        group Gx_Port_and_addresses{
38
 
76 pintar 39
            /** @desc   charstring, PIXIT item A-7/3
29 pintar 40
             * IP address of the test system PCEF
41
             */
42
            modulepar charstring PX_DIAMETER_GX_ETS_IPADDR := "1.1.1.1";
43
 
76 pintar 44
            /** @desc   charstring,  PIXIT item A-8/3
29 pintar 45
             * IP address of the system under test
46
             */
47
            modulepar charstring PX_DIAMETER_GX_SUT_IPADDR := "1.1.1.2";
48
 
76 pintar 49
            /** @desc   charstring, PIXIT item A-7/4
29 pintar 50
             * Port number of the test system
51
             */
52
            modulepar integer PX_DIAMETER_GX_ETS_PORT := 3868;
53
 
76 pintar 54
            /** @desc   charstring, PIXIT item A-8/4
29 pintar 55
             * Port number of the system under test
56
             */
57
            modulepar integer PX_DIAMETER_GX_SUT_PORT := 3868;
58
        }
59
        group Gxx_Port_and_addresses{
60
 
76 pintar 61
            /** @desc   charstring, PIXIT item A-7/5
29 pintar 62
             * IP address of the test system BBERF1
63
             */
64
            modulepar charstring PX_DIAMETER_GXX1_ETS_IPADDR := "1.1.1.1";
16 pintar 65
 
76 pintar 66
            /** @desc   charstring, PIXIT item A-7/6
29 pintar 67
             * IP address of the test system BBERF2
68
             */
69
            modulepar charstring PX_DIAMETER_GXX2_ETS_IPADDR := "1.1.1.1";
16 pintar 70
 
76 pintar 71
            /** @desc   charstring,  PIXIT item A-8/5
29 pintar 72
             * IP address of the system under test
73
             */
74
            modulepar charstring PX_DIAMETER_GXX_SUT_IPADDR := "1.1.1.2";
75
 
76 pintar 76
            /** @desc   charstring, PIXIT item A-7/7
29 pintar 77
             * Port number of the test system
78
             */
79
            modulepar integer PX_DIAMETER_GXX1_ETS_PORT := 3868;
80
 
76 pintar 81
            /** @desc   charstring, PIXIT item A-7/8
29 pintar 82
             * Port number of the test system BBERF1
83
             */
84
            modulepar integer PX_DIAMETER_GXX2_ETS_PORT := 3868;
85
 
76 pintar 86
            /** @desc   charstring, PIXIT item A-8/6
29 pintar 87
             * Port number of the system under test BBERF2
88
             */
89
            modulepar integer PX_DIAMETER_GXX_SUT_PORT := 3868;
90
        }
91
 
16 pintar 92
    }
93
 
94
// SUT specific implementation variants 
95
    group DiameterCommonS9Data{
96
 
76 pintar 97
       /** @desc        UTF8String, PIXIT item A-9/1
16 pintar 98
 
99
       The Session-Id AVP (AVP Code 263) is of type UTF8String and is used
100
       to identify a specific session (see Section 8);  All messages
101
       pertaining to a specific session MUST include only one Session-Id AVP
102
       and the same value MUST be used throughout the life of a session;
103
       When present, the Session-Id SHOULD appear immediately following the
104
       Diameter Header (see Section 3);
105
 
106
                    Ref: RFC 3588 section 8-8
107
        */
108
        modulepar UTF8String PX_SessionID := "pcscf.etsi.org;1317059245;52;21823490";
109
 
110
 
76 pintar 111
        /** @desc       charstring, PIXIT item A-9/2
16 pintar 112
 
113
       The Origin-Host AVP (AVP Code 264) is of type DiameterIdentity, and
114
       MUST be present in all Diameter messages;  This AVP identifies the
115
       endpoint that originated the Diameter message;  Relay agents MUST NOT
116
       modify this AVP;
117
 
118
       The value of the Origin-Host AVP is guaranteed to be unique within a
119
       single host;
120
 
121
                    Ref: RFC 3588 section 6-3.
122
                    NOTE: could be AF or PCRF role:
123
                        pcscf.example.com
124
                        pcrf.example.com
125
        */
126
        modulepar charstring PX_OriginHost := "origin.etsi.org";
127
 
128
 
129
 
76 pintar 130
        /** @desc       charstring, PIXIT item A-9/3
16 pintar 131
 
132
       The Origin-Realm AVP (AVP Code 296) is of type DiameterIdentity;
133
       This AVP contains the Realm of the originator of any Diameter message
134
       and MUST be present in all messages;
135
 
136
                    Ref: RFC 3588 section 6-4
137
        */
138
        modulepar charstring PX_OriginRealm := "etsi.org";
139
 
140
 
141
 
76 pintar 142
        /** @desc       charstring, PIXIT item A-9/4
16 pintar 143
 
144
       The Destination-Host AVP (AVP Code 293) is of type DiameterIdentity;
145
       This AVP MUST be present in all unsolicited agent initiated messages,
146
       MAY be present in request messages, and MUST NOT be present in Answer
147
       messages;
148
 
149
                    Ref: RFC 3588 section 6-5.
150
                    NOTE: could be AF or PCRF role:
151
                        pcscf.example.com
152
                        pcrf.example.com
153
        */
154
        modulepar charstring PX_DestinationHost := "destination.etsi.org";
155
 
156
 
157
 
76 pintar 158
        /** @desc       charstring, PIXIT item A-9/3
16 pintar 159
 
160
       The Destination-Realm AVP (AVP Code 283) is of type DiameterIdentity,
161
       and contains the realm the message is to be routed to;  The
162
       Destination-Realm AVP MUST NOT be present in Answer messages.
163
       Diameter Clients insert the realm portion of the User-Name AVP;
164
       Diameter servers initiating a request message use the value of the
165
       Origin-Realm AVP from a previous message received from the intended
166
       target host (unless it is known a priori);  When present, the
167
       Destination-Realm AVP is used to perform message routing decisions;
168
 
169
                    Ref: RFC 3588 section 6-6
170
        */
171
        modulepar charstring PX_DestinationRealm := "myalupcrf.etsi.org";
172
 
76 pintar 173
       /** @desc        octetstring, PIXIT item A-9/6
16 pintar 174
 
175
                       The Framed-IP-Address AVP (AVP Code 8) [RADIUS] is of type
176
       OctetString and contains an IPv4 address of the type specified in the
177
       attribute value to be configured for the user;  It MAY be used in an
178
       authorization request as a hint to the server that a specific address
179
       is desired, but the server is not required to honor the hint in the
180
       corresponding response;
181
 
182
       Two values have special significance: 0xFFFFFFFF and 0xFFFFFFFE;  The
183
       value 0xFFFFFFFF indicates that the NAS should allow the user to
184
       select an address (ie, negotiated);  The value 0xFFFFFFFE indicates
185
       that the NAS should select an address for the user (eg, assigned
186
       from a pool of addresses kept by the NAS);
187
 
188
 
189
                    Ref: TS 129 214 5-4, table 5-4-1
190
        */
191
        modulepar octetstring PX_UE1_framedIpAddress := '0a0a0a0a'O;
192
 
76 pintar 193
        /** @desc       octetstring, PIXIT item A-9/7
16 pintar 194
 
195
       The Framed-IPv6-Prefix AVP (AVP Code 97) is of type OctetString and
196
       contains the IPv6 prefix to be configured for the user;  One or more
197
       AVPs MAY be used in authorization requests as a hint to the server
198
       that specific IPv6 prefixes are desired, but the server is not
199
       required to honor the hint in the corresponding response;
200
 
201
 
202
                    Ref: TS 129 214 5-4, table 5-4-1
203
        */
204
        modulepar octetstring PX_UE1_framedIp6Address := '0a0a0a0a'O;
205
 
76 pintar 206
        /** @desc       enumerated type Subscription_Id_Ty_Type, PIXIT item A-9/8
16 pintar 207
         * A subscription ID type for the Subscription-Id-Type AVP in Subscription-Id AVPs
208
           Available values: END_USER_E164, END_USER_IMSI, END_USER_SIP_URI, END_USER_NAI
209
        */
210
        modulepar Subscription_Id_Ty_Type PX_SUBSCRIPTION_ID_TYPE := END_USER_IMSI_E;
211
 
76 pintar 212
        /** @desc       UTF8String, PIXIT item A-9/9
16 pintar 213
         * Subscription data for the Subscription-Id-Data AVP in Subscription-Id AVPs
214
        */
215
        modulepar UTF8String PX_SUBSCRIPTION_ID_DATA := "SUBS_DATA";
216
 
76 pintar 217
        /** @desc       enumerated type IP_CAN_Type, PIXIT item A-9/10
16 pintar 218
         * A connectivity access type for the IP-CAN-Type AVP in CCR messages
219
           Available values: 3GPP-GPRS, DCOSIS, xDSL, WiMAX, 3GPP2, 3GPP-EPS, Non-3GPP-EPS
220
        */
221
        modulepar IP_CAN_Type PX_IP_CAN_TYPE := ThreeGPP_GPRS_E;
222
 
76 pintar 223
        /** @desc       enumerated type RAT_Type, PIXIT item A-9/11
16 pintar 224
         * A radio access technology for the IP-RAT-Type AVP in CCR messages
225
           Available values: WLAN, VIRTUAL, UTRAN, GERAN, GAN, HSPA_EVOLUTION, EUTRAN, CDMA2000, HRPD, UMB, EHRPD
226
        */
44 pintar 227
        modulepar RAT_Type PX_RAT_TYPE := WLAN_E;      
45 pintar 228
 
76 pintar 229
        /** @desc       octetstring, PIXIT item A-9/12
44 pintar 230
 
231
       The QoS_Rule_Name is of type OctetString and
232
       contains QoS Rule
233
                    Ref: TS 129 212 5a-3, table 5a-3-4
234
        */
235
        modulepar octetstring PX_QOS_RULE_NAME := '0b'O;
45 pintar 236
 
76 pintar 237
        /** @desc       octetstring, PIXIT item A-9/13
45 pintar 238
       The QoS_Rule_Name is of type OctetString and
239
       contains QoS Rule
240
                    Ref: TS 129 212 5a-3, table 5a-3-4
241
        */
242
        modulepar octetstring PX_QOS_RULE_NAME_NOT_ACCEPTABLE := '0b'O;
50 pintar 243
 
76 pintar 244
        /** @desc       UTF8String, PIXIT item A-9/14
38 pintar 245
         * A PDN for the Called-Station-Id AVP
246
        */
247
        modulepar UTF8String PX_CALLED_STATION_ID_PDN := "PDN_ID";
50 pintar 248
 
76 pintar 249
        /** @desc       octetstring, PIXIT item A-9/15
50 pintar 250
         * An identity for the PDN connection for the PDN-Connection-ID AVP
251
        */
252
        modulepar octetstring PX_PDN_CONNECTION_ID_DATA := '08'O;
253
 
25 rennoch 254
        /** @desc        
76 pintar 255
        The SGW/AGW in IPv4Addr format (3GPP-EPS and 3GPP2 accesses), PIXIT item A-9/16
25 rennoch 256
        */
257
        modulepar IPv4Addr PX_SGW_AGW_ipv4 := {1,2,3,4};
45 pintar 258
 
25 rennoch 259
        /** @desc      
76 pintar 260
        The SGW/AGW in type IPv6Addr format (3GPP-EPS and 3GPP2 accesses), PIXIT item A-9/17
25 rennoch 261
        */
262
        modulepar IPv6Addr PX_SGW_AGW_ipv6 := {1,2,3,4,5,6,7,8};
45 pintar 263
 
42 rennoch 264
        /** @desc      
76 pintar 265
        The max QoS bandwidth in type UInt32 format, PIXIT item A-9/18
42 rennoch 266
        */
267
        modulepar UInt32 PX_max_Requested_Bandwidth_UL := 4294967295;
268
 
45 pintar 269
        /** @desc      
76 pintar 270
        The subsession Id in type UInt32 format, PIXIT item A-9/19
45 pintar 271
        */
272
        modulepar UInt32 PX_SUBSESSION_ID := 100;
273
 
76 pintar 274
        /** @desc       octetstring, PIXIT item A-9/20
47 rennoch 275
         * First charging rule name for the Charging-Rule-Name AVP
276
        */
277
        modulepar octetstring PX_CHARGING_RULE_NAME_DATA := '08'O;
76 pintar 278
 
47 rennoch 279
 
76 pintar 280
        /** @desc       enumerated type PCC_Rule_Status, PIXIT item A-9/21
47 rennoch 281
         * A status value of PCC rule(s) for the PCC-Rule-Status AVP
282
           Available values: ACTIVE,  INACTIVE, TEMPORARILY INACTIVE
283
        */
284
        modulepar PCC_Rule_Status PX_PCC_RULE_STATUS := ACTIVE_E;
285
 
29 pintar 286
 
38 pintar 287
    } //end group DiameterCommonS9Data
288
 
289
    group DiameterCommonGxData{
290
 
76 pintar 291
        /** @desc       boolean indicator, PIXIT item A-10/1
17 pintar 292
         * TRUE if the Gx interface is accessible to trigger Diameter events at the S9 interface
293
        */
38 pintar 294
        modulepar boolean PX_Gxsupport := false;
295
 
76 pintar 296
       /** @desc        UTF8String, PIXIT item A-10/2
38 pintar 297
 
298
       The Session-Id AVP (AVP Code 263) is of type UTF8String and is used
299
       to identify a specific session (see Section 8);  All messages
300
       pertaining to a specific session MUST include only one Session-Id AVP
301
       and the same value MUST be used throughout the life of a session;
302
       When present, the Session-Id SHOULD appear immediately following the
303
       Diameter Header (see Section 3);
304
 
305
                    Ref: RFC 3588 section 8-8
306
        */
307
        modulepar UTF8String PX_GX_SessionID := "pcscf.etsi.org;1317059245;52;21823490";
308
 
309
 
76 pintar 310
        /** @desc       charstring, PIXIT item A-10/3
38 pintar 311
 
312
       The Origin-Host AVP (AVP Code 264) is of type DiameterIdentity, and
313
       MUST be present in all Diameter messages;  This AVP identifies the
314
       endpoint that originated the Diameter message;  Relay agents MUST NOT
315
       modify this AVP;
316
 
317
       The value of the Origin-Host AVP is guaranteed to be unique within a
318
       single host;
319
 
320
                    Ref: RFC 3588 section 6-3.
321
                    NOTE: could be AF or PCRF role:
322
                        pcscf.example.com
323
                        pcrf.example.com
324
        */
325
        modulepar charstring PX_GX_OriginHost := "origin.etsi.org";
326
 
327
 
328
 
76 pintar 329
        /** @desc       charstring, PIXIT item A-10/4
38 pintar 330
 
331
       The Origin-Realm AVP (AVP Code 296) is of type DiameterIdentity;
332
       This AVP contains the Realm of the originator of any Diameter message
333
       and MUST be present in all messages;
334
 
335
                    Ref: RFC 3588 section 6-4
336
        */
337
        modulepar charstring PX_GX_OriginRealm := "etsi.org";
338
 
339
 
340
 
76 pintar 341
        /** @desc       charstring, PIXIT item A-10/5
38 pintar 342
 
343
       The Destination-Host AVP (AVP Code 293) is of type DiameterIdentity;
344
       This AVP MUST be present in all unsolicited agent initiated messages,
345
       MAY be present in request messages, and MUST NOT be present in Answer
346
       messages;
347
 
348
                    Ref: RFC 3588 section 6-5.
349
                    NOTE: could be AF or PCRF role:
350
                        pcscf.example.com
351
                        pcrf.example.com
352
        */
353
        modulepar charstring PX_GX_DestinationHost := "destination.etsi.org";
354
 
355
 
356
 
76 pintar 357
        /** @desc       charstring, PIXIT item A-10/6
38 pintar 358
 
359
       The Destination-Realm AVP (AVP Code 283) is of type DiameterIdentity,
360
       and contains the realm the message is to be routed to;  The
361
       Destination-Realm AVP MUST NOT be present in Answer messages.
362
       Diameter Clients insert the realm portion of the User-Name AVP;
363
       Diameter servers initiating a request message use the value of the
364
       Origin-Realm AVP from a previous message received from the intended
365
       target host (unless it is known a priori);  When present, the
366
       Destination-Realm AVP is used to perform message routing decisions;
367
 
368
                    Ref: RFC 3588 section 6-6
369
        */
370
        modulepar charstring PX_GX_DestinationRealm := "myalupcrf.etsi.org";
371
    }//end group DiameterCommonGXData
372
 
373
    group DiameterCommonGxxData{
374
 
76 pintar 375
        /** @desc       boolean indicator, PIXIT item A-11/1
38 pintar 376
         * TRUE if the Gx interface is accessible to trigger Diameter events at the S9 interface
17 pintar 377
        */
38 pintar 378
        modulepar boolean PX_Gxxsupport := false;
16 pintar 379
 
76 pintar 380
       /** @desc        UTF8String, PIXIT item A-11/2
38 pintar 381
 
382
       The Session-Id AVP (AVP Code 263) is of type UTF8String and is used
383
       to identify a specific session (see Section 8);  All messages
384
       pertaining to a specific session MUST include only one Session-Id AVP
385
       and the same value MUST be used throughout the life of a session;
386
       When present, the Session-Id SHOULD appear immediately following the
387
       Diameter Header (see Section 3);
388
 
389
                    Ref: RFC 3588 section 8-8
390
        */
391
        modulepar UTF8String PX_GXX_SessionID := "pcscf.etsi.org;1317059245;52;21823490";
392
 
393
 
76 pintar 394
        /** @desc       charstring, PIXIT item A-11/3
38 pintar 395
 
396
       The Origin-Host AVP (AVP Code 264) is of type DiameterIdentity, and
397
       MUST be present in all Diameter messages;  This AVP identifies the
398
       endpoint that originated the Diameter message;  Relay agents MUST NOT
399
       modify this AVP;
400
 
401
       The value of the Origin-Host AVP is guaranteed to be unique within a
402
       single host;
403
 
404
                    Ref: RFC 3588 section 6-3.
405
                    NOTE: could be AF or PCRF role:
406
                        pcscf.example.com
407
                        pcrf.example.com
408
        */
409
        modulepar charstring PX_GXX1_OriginHost := "origin.etsi.org";
410
 
411
 
412
 
76 pintar 413
        /** @desc       charstring, PIXIT item A-11/4
38 pintar 414
 
415
       The Origin-Realm AVP (AVP Code 296) is of type DiameterIdentity;
416
       This AVP contains the Realm of the originator of any Diameter message
417
       and MUST be present in all messages;
418
 
419
                    Ref: RFC 3588 section 6-4
420
        */
421
        modulepar charstring PX_GXX1_OriginRealm := "etsi.org";
422
 
423
 
76 pintar 424
        /** @desc       charstring, PIXIT item A-11/5
38 pintar 425
 
426
       The Origin-Host AVP (AVP Code 264) is of type DiameterIdentity, and
427
       MUST be present in all Diameter messages;  This AVP identifies the
428
       endpoint that originated the Diameter message;  Relay agents MUST NOT
429
       modify this AVP;
430
 
431
       The value of the Origin-Host AVP is guaranteed to be unique within a
432
       single host;
433
 
434
                    Ref: RFC 3588 section 6-3.
435
                    NOTE: could be AF or PCRF role:
436
                        pcscf.example.com
437
                        pcrf.example.com
438
        */
439
        modulepar charstring PX_GXX2_OriginHost := "origin.etsi.org";
440
 
441
 
442
 
76 pintar 443
        /** @desc       charstring, PIXIT item A-11/6
38 pintar 444
 
445
       The Origin-Realm AVP (AVP Code 296) is of type DiameterIdentity;
446
       This AVP contains the Realm of the originator of any Diameter message
447
       and MUST be present in all messages;
448
 
449
                    Ref: RFC 3588 section 6-4
450
        */
451
        modulepar charstring PX_GXX2_OriginRealm := "etsi.org";
452
 
453
 
454
 
76 pintar 455
        /** @desc       charstring, PIXIT item A-11/7
38 pintar 456
 
457
       The Destination-Host AVP (AVP Code 293) is of type DiameterIdentity;
458
       This AVP MUST be present in all unsolicited agent initiated messages,
459
       MAY be present in request messages, and MUST NOT be present in Answer
460
       messages;
461
 
462
                    Ref: RFC 3588 section 6-5.
463
                    NOTE: could be AF or PCRF role:
464
                        pcscf.example.com
465
                        pcrf.example.com
466
        */
467
        modulepar charstring PX_GXX_DestinationHost := "destination.etsi.org";
468
 
469
 
470
 
76 pintar 471
        /** @desc       charstring, PIXIT item A-11/8
38 pintar 472
 
473
       The Destination-Realm AVP (AVP Code 283) is of type DiameterIdentity,
474
       and contains the realm the message is to be routed to;  The
475
       Destination-Realm AVP MUST NOT be present in Answer messages.
476
       Diameter Clients insert the realm portion of the User-Name AVP;
477
       Diameter servers initiating a request message use the value of the
478
       Origin-Realm AVP from a previous message received from the intended
479
       target host (unless it is known a priori);  When present, the
480
       Destination-Realm AVP is used to perform message routing decisions;
481
 
482
                    Ref: RFC 3588 section 6-6
483
        */
484
        modulepar charstring PX_GXX_DestinationRealm := "myalupcrf.etsi.org";
57 rennoch 485
 
76 pintar 486
        /** @desc       octetstring, PIXIT item A-11/9
57 rennoch 487
         * An IP flow mobility routing rule for the Routing-Rule-Identifier AVP in Routing-Rule-Definition AVPs
488
        */
489
        modulepar octetstring PX_ROUTING_RULE_IDENTIFIER_VALUE := '08'O;
490
 
76 pintar 491
        /** @desc UInt32, PIXIT item A-11/10
59 rennoch 492
         * QoS value exeeding the subscriber bandwidth
493
         */
494
        modulepar UInt32 PX_QOS_EXCEEDING_SUBSCRIBER_BANDWIDTH := 9999;
495
 
38 pintar 496
    }//end group DiameterCommonGxxData
497
 
16 pintar 498
} // end module DiameterS9_PIXITS