Rev 59 |
Blame |
Compare with Previous |
Last modification |
View Log
| Download
| SVN
/**
* @author STF 466
* @version $Id: DiameterS9_PIXITS.ttcn 76 2015-02-26 17:47:42Z pintar $
* @desc This module provides the PIXIT used for the S9 DIAMETER tests.
*/
module DiameterS9_PIXITS
{
import from LibDiameter_Types_Base_AVPs {type IPv4Addr, IPv6Addr, UTF8String, Subscription_Id_Ty_Type;};
import from LibDiameter_Types_Gx_AVPs {type IP_CAN_Type, RAT_Type, PCC_Rule_Status;};
import from LibCommon_BasicTypesAndValues all;
import from LibDiameter_Types_S9_AVPs all;
group Port_and_addresses{
group S9_Port_and_addresses{
/** @desc charstring, PIXIT item A-7/1
* IP address of the test system
*/
modulepar charstring PX_DIAMETER_S9_ETS_IPADDR := "1.1.1.1";
/** @desc charstring, PIXIT item A-8/1
* IP address of the system under test
*/
modulepar charstring PX_DIAMETER_S9_SUT_IPADDR := "1.1.1.2";
/** @desc charstring, PIXIT item A-7/2
* Port number of the test system
*/
modulepar integer PX_DIAMETER_S9_ETS_PORT := 3868;
/** @desc charstring, PIXIT item A-8/2
* Port number of the system under test
*/
modulepar integer PX_DIAMETER_S9_SUT_PORT := 3868;
}
group Gx_Port_and_addresses{
/** @desc charstring, PIXIT item A-7/3
* IP address of the test system PCEF
*/
modulepar charstring PX_DIAMETER_GX_ETS_IPADDR := "1.1.1.1";
/** @desc charstring, PIXIT item A-8/3
* IP address of the system under test
*/
modulepar charstring PX_DIAMETER_GX_SUT_IPADDR := "1.1.1.2";
/** @desc charstring, PIXIT item A-7/4
* Port number of the test system
*/
modulepar integer PX_DIAMETER_GX_ETS_PORT := 3868;
/** @desc charstring, PIXIT item A-8/4
* Port number of the system under test
*/
modulepar integer PX_DIAMETER_GX_SUT_PORT := 3868;
}
group Gxx_Port_and_addresses{
/** @desc charstring, PIXIT item A-7/5
* IP address of the test system BBERF1
*/
modulepar charstring PX_DIAMETER_GXX1_ETS_IPADDR := "1.1.1.1";
/** @desc charstring, PIXIT item A-7/6
* IP address of the test system BBERF2
*/
modulepar charstring PX_DIAMETER_GXX2_ETS_IPADDR := "1.1.1.1";
/** @desc charstring, PIXIT item A-8/5
* IP address of the system under test
*/
modulepar charstring PX_DIAMETER_GXX_SUT_IPADDR := "1.1.1.2";
/** @desc charstring, PIXIT item A-7/7
* Port number of the test system
*/
modulepar integer PX_DIAMETER_GXX1_ETS_PORT := 3868;
/** @desc charstring, PIXIT item A-7/8
* Port number of the test system BBERF1
*/
modulepar integer PX_DIAMETER_GXX2_ETS_PORT := 3868;
/** @desc charstring, PIXIT item A-8/6
* Port number of the system under test BBERF2
*/
modulepar integer PX_DIAMETER_GXX_SUT_PORT := 3868;
}
}
// SUT specific implementation variants
group DiameterCommonS9Data{
/** @desc UTF8String, PIXIT item A-9/1
The Session-Id AVP (AVP Code 263) is of type UTF8String and is used
to identify a specific session (see Section 8); All messages
pertaining to a specific session MUST include only one Session-Id AVP
and the same value MUST be used throughout the life of a session;
When present, the Session-Id SHOULD appear immediately following the
Diameter Header (see Section 3);
Ref: RFC 3588 section 8-8
*/
modulepar UTF8String PX_SessionID := "pcscf.etsi.org;1317059245;52;21823490";
/** @desc charstring, PIXIT item A-9/2
The Origin-Host AVP (AVP Code 264) is of type DiameterIdentity, and
MUST be present in all Diameter messages; This AVP identifies the
endpoint that originated the Diameter message; Relay agents MUST NOT
modify this AVP;
The value of the Origin-Host AVP is guaranteed to be unique within a
single host;
Ref: RFC 3588 section 6-3.
NOTE: could be AF or PCRF role:
pcscf.example.com
pcrf.example.com
*/
modulepar charstring PX_OriginHost := "origin.etsi.org";
/** @desc charstring, PIXIT item A-9/3
The Origin-Realm AVP (AVP Code 296) is of type DiameterIdentity;
This AVP contains the Realm of the originator of any Diameter message
and MUST be present in all messages;
Ref: RFC 3588 section 6-4
*/
modulepar charstring PX_OriginRealm := "etsi.org";
/** @desc charstring, PIXIT item A-9/4
The Destination-Host AVP (AVP Code 293) is of type DiameterIdentity;
This AVP MUST be present in all unsolicited agent initiated messages,
MAY be present in request messages, and MUST NOT be present in Answer
messages;
Ref: RFC 3588 section 6-5.
NOTE: could be AF or PCRF role:
pcscf.example.com
pcrf.example.com
*/
modulepar charstring PX_DestinationHost := "destination.etsi.org";
/** @desc charstring, PIXIT item A-9/3
The Destination-Realm AVP (AVP Code 283) is of type DiameterIdentity,
and contains the realm the message is to be routed to; The
Destination-Realm AVP MUST NOT be present in Answer messages.
Diameter Clients insert the realm portion of the User-Name AVP;
Diameter servers initiating a request message use the value of the
Origin-Realm AVP from a previous message received from the intended
target host (unless it is known a priori); When present, the
Destination-Realm AVP is used to perform message routing decisions;
Ref: RFC 3588 section 6-6
*/
modulepar charstring PX_DestinationRealm := "myalupcrf.etsi.org";
/** @desc octetstring, PIXIT item A-9/6
The Framed-IP-Address AVP (AVP Code 8) [RADIUS] is of type
OctetString and contains an IPv4 address of the type specified in the
attribute value to be configured for the user; It MAY be used in an
authorization request as a hint to the server that a specific address
is desired, but the server is not required to honor the hint in the
corresponding response;
Two values have special significance: 0xFFFFFFFF and 0xFFFFFFFE; The
value 0xFFFFFFFF indicates that the NAS should allow the user to
select an address (ie, negotiated); The value 0xFFFFFFFE indicates
that the NAS should select an address for the user (eg, assigned
from a pool of addresses kept by the NAS);
Ref: TS 129 214 5-4, table 5-4-1
*/
modulepar octetstring PX_UE1_framedIpAddress := '0a0a0a0a'O;
/** @desc octetstring, PIXIT item A-9/7
The Framed-IPv6-Prefix AVP (AVP Code 97) is of type OctetString and
contains the IPv6 prefix to be configured for the user; One or more
AVPs MAY be used in authorization requests as a hint to the server
that specific IPv6 prefixes are desired, but the server is not
required to honor the hint in the corresponding response;
Ref: TS 129 214 5-4, table 5-4-1
*/
modulepar octetstring PX_UE1_framedIp6Address := '0a0a0a0a'O;
/** @desc enumerated type Subscription_Id_Ty_Type, PIXIT item A-9/8
* A subscription ID type for the Subscription-Id-Type AVP in Subscription-Id AVPs
Available values: END_USER_E164, END_USER_IMSI, END_USER_SIP_URI, END_USER_NAI
*/
modulepar Subscription_Id_Ty_Type PX_SUBSCRIPTION_ID_TYPE := END_USER_IMSI_E;
/** @desc UTF8String, PIXIT item A-9/9
* Subscription data for the Subscription-Id-Data AVP in Subscription-Id AVPs
*/
modulepar UTF8String PX_SUBSCRIPTION_ID_DATA := "SUBS_DATA";
/** @desc enumerated type IP_CAN_Type, PIXIT item A-9/10
* A connectivity access type for the IP-CAN-Type AVP in CCR messages
Available values: 3GPP-GPRS, DCOSIS, xDSL, WiMAX, 3GPP2, 3GPP-EPS, Non-3GPP-EPS
*/
modulepar IP_CAN_Type PX_IP_CAN_TYPE := ThreeGPP_GPRS_E;
/** @desc enumerated type RAT_Type, PIXIT item A-9/11
* A radio access technology for the IP-RAT-Type AVP in CCR messages
Available values: WLAN, VIRTUAL, UTRAN, GERAN, GAN, HSPA_EVOLUTION, EUTRAN, CDMA2000, HRPD, UMB, EHRPD
*/
modulepar RAT_Type PX_RAT_TYPE := WLAN_E;
/** @desc octetstring, PIXIT item A-9/12
The QoS_Rule_Name is of type OctetString and
contains QoS Rule
Ref: TS 129 212 5a-3, table 5a-3-4
*/
modulepar octetstring PX_QOS_RULE_NAME := '0b'O;
/** @desc octetstring, PIXIT item A-9/13
The QoS_Rule_Name is of type OctetString and
contains QoS Rule
Ref: TS 129 212 5a-3, table 5a-3-4
*/
modulepar octetstring PX_QOS_RULE_NAME_NOT_ACCEPTABLE := '0b'O;
/** @desc UTF8String, PIXIT item A-9/14
* A PDN for the Called-Station-Id AVP
*/
modulepar UTF8String PX_CALLED_STATION_ID_PDN := "PDN_ID";
/** @desc octetstring, PIXIT item A-9/15
* An identity for the PDN connection for the PDN-Connection-ID AVP
*/
modulepar octetstring PX_PDN_CONNECTION_ID_DATA := '08'O;
/** @desc
The SGW/AGW in IPv4Addr format (3GPP-EPS and 3GPP2 accesses), PIXIT item A-9/16
*/
modulepar IPv4Addr PX_SGW_AGW_ipv4 := {1,2,3,4};
/** @desc
The SGW/AGW in type IPv6Addr format (3GPP-EPS and 3GPP2 accesses), PIXIT item A-9/17
*/
modulepar IPv6Addr PX_SGW_AGW_ipv6 := {1,2,3,4,5,6,7,8};
/** @desc
The max QoS bandwidth in type UInt32 format, PIXIT item A-9/18
*/
modulepar UInt32 PX_max_Requested_Bandwidth_UL := 4294967295;
/** @desc
The subsession Id in type UInt32 format, PIXIT item A-9/19
*/
modulepar UInt32 PX_SUBSESSION_ID := 100;
/** @desc octetstring, PIXIT item A-9/20
* First charging rule name for the Charging-Rule-Name AVP
*/
modulepar octetstring PX_CHARGING_RULE_NAME_DATA := '08'O;
/** @desc enumerated type PCC_Rule_Status, PIXIT item A-9/21
* A status value of PCC rule(s) for the PCC-Rule-Status AVP
Available values: ACTIVE, INACTIVE, TEMPORARILY INACTIVE
*/
modulepar PCC_Rule_Status PX_PCC_RULE_STATUS := ACTIVE_E;
} //end group DiameterCommonS9Data
group DiameterCommonGxData{
/** @desc boolean indicator, PIXIT item A-10/1
* TRUE if the Gx interface is accessible to trigger Diameter events at the S9 interface
*/
modulepar boolean PX_Gxsupport := false;
/** @desc UTF8String, PIXIT item A-10/2
The Session-Id AVP (AVP Code 263) is of type UTF8String and is used
to identify a specific session (see Section 8); All messages
pertaining to a specific session MUST include only one Session-Id AVP
and the same value MUST be used throughout the life of a session;
When present, the Session-Id SHOULD appear immediately following the
Diameter Header (see Section 3);
Ref: RFC 3588 section 8-8
*/
modulepar UTF8String PX_GX_SessionID := "pcscf.etsi.org;1317059245;52;21823490";
/** @desc charstring, PIXIT item A-10/3
The Origin-Host AVP (AVP Code 264) is of type DiameterIdentity, and
MUST be present in all Diameter messages; This AVP identifies the
endpoint that originated the Diameter message; Relay agents MUST NOT
modify this AVP;
The value of the Origin-Host AVP is guaranteed to be unique within a
single host;
Ref: RFC 3588 section 6-3.
NOTE: could be AF or PCRF role:
pcscf.example.com
pcrf.example.com
*/
modulepar charstring PX_GX_OriginHost := "origin.etsi.org";
/** @desc charstring, PIXIT item A-10/4
The Origin-Realm AVP (AVP Code 296) is of type DiameterIdentity;
This AVP contains the Realm of the originator of any Diameter message
and MUST be present in all messages;
Ref: RFC 3588 section 6-4
*/
modulepar charstring PX_GX_OriginRealm := "etsi.org";
/** @desc charstring, PIXIT item A-10/5
The Destination-Host AVP (AVP Code 293) is of type DiameterIdentity;
This AVP MUST be present in all unsolicited agent initiated messages,
MAY be present in request messages, and MUST NOT be present in Answer
messages;
Ref: RFC 3588 section 6-5.
NOTE: could be AF or PCRF role:
pcscf.example.com
pcrf.example.com
*/
modulepar charstring PX_GX_DestinationHost := "destination.etsi.org";
/** @desc charstring, PIXIT item A-10/6
The Destination-Realm AVP (AVP Code 283) is of type DiameterIdentity,
and contains the realm the message is to be routed to; The
Destination-Realm AVP MUST NOT be present in Answer messages.
Diameter Clients insert the realm portion of the User-Name AVP;
Diameter servers initiating a request message use the value of the
Origin-Realm AVP from a previous message received from the intended
target host (unless it is known a priori); When present, the
Destination-Realm AVP is used to perform message routing decisions;
Ref: RFC 3588 section 6-6
*/
modulepar charstring PX_GX_DestinationRealm := "myalupcrf.etsi.org";
}//end group DiameterCommonGXData
group DiameterCommonGxxData{
/** @desc boolean indicator, PIXIT item A-11/1
* TRUE if the Gx interface is accessible to trigger Diameter events at the S9 interface
*/
modulepar boolean PX_Gxxsupport := false;
/** @desc UTF8String, PIXIT item A-11/2
The Session-Id AVP (AVP Code 263) is of type UTF8String and is used
to identify a specific session (see Section 8); All messages
pertaining to a specific session MUST include only one Session-Id AVP
and the same value MUST be used throughout the life of a session;
When present, the Session-Id SHOULD appear immediately following the
Diameter Header (see Section 3);
Ref: RFC 3588 section 8-8
*/
modulepar UTF8String PX_GXX_SessionID := "pcscf.etsi.org;1317059245;52;21823490";
/** @desc charstring, PIXIT item A-11/3
The Origin-Host AVP (AVP Code 264) is of type DiameterIdentity, and
MUST be present in all Diameter messages; This AVP identifies the
endpoint that originated the Diameter message; Relay agents MUST NOT
modify this AVP;
The value of the Origin-Host AVP is guaranteed to be unique within a
single host;
Ref: RFC 3588 section 6-3.
NOTE: could be AF or PCRF role:
pcscf.example.com
pcrf.example.com
*/
modulepar charstring PX_GXX1_OriginHost := "origin.etsi.org";
/** @desc charstring, PIXIT item A-11/4
The Origin-Realm AVP (AVP Code 296) is of type DiameterIdentity;
This AVP contains the Realm of the originator of any Diameter message
and MUST be present in all messages;
Ref: RFC 3588 section 6-4
*/
modulepar charstring PX_GXX1_OriginRealm := "etsi.org";
/** @desc charstring, PIXIT item A-11/5
The Origin-Host AVP (AVP Code 264) is of type DiameterIdentity, and
MUST be present in all Diameter messages; This AVP identifies the
endpoint that originated the Diameter message; Relay agents MUST NOT
modify this AVP;
The value of the Origin-Host AVP is guaranteed to be unique within a
single host;
Ref: RFC 3588 section 6-3.
NOTE: could be AF or PCRF role:
pcscf.example.com
pcrf.example.com
*/
modulepar charstring PX_GXX2_OriginHost := "origin.etsi.org";
/** @desc charstring, PIXIT item A-11/6
The Origin-Realm AVP (AVP Code 296) is of type DiameterIdentity;
This AVP contains the Realm of the originator of any Diameter message
and MUST be present in all messages;
Ref: RFC 3588 section 6-4
*/
modulepar charstring PX_GXX2_OriginRealm := "etsi.org";
/** @desc charstring, PIXIT item A-11/7
The Destination-Host AVP (AVP Code 293) is of type DiameterIdentity;
This AVP MUST be present in all unsolicited agent initiated messages,
MAY be present in request messages, and MUST NOT be present in Answer
messages;
Ref: RFC 3588 section 6-5.
NOTE: could be AF or PCRF role:
pcscf.example.com
pcrf.example.com
*/
modulepar charstring PX_GXX_DestinationHost := "destination.etsi.org";
/** @desc charstring, PIXIT item A-11/8
The Destination-Realm AVP (AVP Code 283) is of type DiameterIdentity,
and contains the realm the message is to be routed to; The
Destination-Realm AVP MUST NOT be present in Answer messages.
Diameter Clients insert the realm portion of the User-Name AVP;
Diameter servers initiating a request message use the value of the
Origin-Realm AVP from a previous message received from the intended
target host (unless it is known a priori); When present, the
Destination-Realm AVP is used to perform message routing decisions;
Ref: RFC 3588 section 6-6
*/
modulepar charstring PX_GXX_DestinationRealm := "myalupcrf.etsi.org";
/** @desc octetstring, PIXIT item A-11/9
* An IP flow mobility routing rule for the Routing-Rule-Identifier AVP in Routing-Rule-Definition AVPs
*/
modulepar octetstring PX_ROUTING_RULE_IDENTIFIER_VALUE := '08'O;
/** @desc UInt32, PIXIT item A-11/10
* QoS value exeeding the subscriber bandwidth
*/
modulepar UInt32 PX_QOS_EXCEEDING_SUBSCRIBER_BANDWIDTH := 9999;
}//end group DiameterCommonGxxData
} // end module DiameterS9_PIXITS