import 3GPP DIAMETER related definitions from travelping/erggw_aaa

There are some dependencies of TS 29.272 which we can inherit from
https://github.com/travelping/ergw_aaa

The version used was from git commit a5d5a93e2ef87f4168c676ee9a6d8300beb729d8
This commit is contained in:
Harald Welte 2019-08-10 21:12:07 +02:00
parent c83d2fe056
commit d19e33fd5e
11 changed files with 4700 additions and 0 deletions

View File

@ -0,0 +1,71 @@
;;
;; %CopyrightBegin%
;;
;; Copyright Travelping GmbH 2015. All Rights Reserved.
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;
;; %CopyrightEnd%
;;
;;
;; Edits:
;;
;; - Ipv6 -> IPv6
;;
@id 0
@name diameter_3gpp_base
@prefix diameter_3gpp
@vendor 10415 3GPP
;; only attributes required by other applications are defined
@avp_types
3GPP-IMSI 1 UTF8String V
3GPP-Charging-Id 2 OctetString V
3GPP-PDP-Type 3 Enumerated V
3GPP-CG-Address 4 OctetString V
3GPP-GPRS-Negotiated-QoS-Profile 5 UTF8String V
3GPP-SGSN-Address 6 OctetString V
3GPP-GGSN-Address 7 OctetString V
3GPP-IMSI-MCC-MNC 8 UTF8String V
3GPP-GGSN-MCC-MNC 9 UTF8String V
3GPP-NSAPI 10 OctetString V
3GPP-Session-Stop-Indicator 11 OctetString V
3GPP-Selection-Mode 12 UTF8String V
3GPP-Charging-Characteristics 13 UTF8String V
3GPP-CG-IPv6-Address 14 OctetString V
3GPP-SGSN-IPv6-Address 15 OctetString V
3GPP-GGSN-IPv6-Address 16 OctetString V
3GPP-IPv6-DNS-Servers 17 OctetString V
3GPP-SGSN-MCC-MNC 18 UTF8String V
3GPP-IMEISV 20 OctetString V
3GPP-RAT-Type 21 OctetString V
3GPP-User-Location-Info 22 OctetString V
3GPP-MS-TimeZone 23 OctetString V
3GPP-CAMEL-Charging-Info 24 OctetString V
3GPP-Packet-Filter 25 OctetString V
3GPP-Negotiated-DSCP 26 OctetString V
3GPP-Allocate-IP-Type 27 OctetString V
TWAN-Identifier 29 OctetString V
3GPP-User-Location-Info-Time 30 OctetString V
@enum 3GPP-PDP-Type
IPv4 0
PPP 1
IPv6 2
IPv4v6 3
Non-IP 4

View File

@ -0,0 +1,61 @@
;;
;; %CopyrightBegin%
;;
;; Copyright Travelping GmbH 2015. All Rights Reserved.
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;
;; %CopyrightEnd%
;;
;;
;; Edits:
;;
;; - Ipv6 -> IPv6
;;
@id 16777223
@name diameter_3gpp_ts29_061_gmb
@prefix diameter_gmb
@vendor 10415 3GPP
@inherits diameter_gen_base_rfc6733
@inherits diameter_3gpp_base
;; only attributes required by other applications are defined
@avp_types
TMGI 900 OctetString MV
Required-MBMS-Bearer-Capabilities 901 UTF8String MV
MBMS-StartStop-Indication 902 Enumerated MV
MBMS-Service-Area 903 OctetString MV
MBMS-Session-Duration 904 OctetString MV
Alternative-APN 905 UTF8String MV
MBMS-Service-Type 906 Enumerated MV
MBMS-2G-3G-Indicator 907 Enumerated M
MBMS-Session-Identity 908 OctetString MV
RAI 909 UTF8String M
Additional-MBMS-Trace-Info 910 OctetString MV
MBMS-Time-To-Data-Transfer 911 OctetString MV
MBMS-Session-Repetition-Number 912 OctetString MV
MBMS-Required-QoS 913 UTF8String MV
MBMS-Counting-Information 914 Enumerated MV
MBMS-User-Data-Mode-Indication 915 Enumerated MV
MBMS-GGSN-Address 916 OctetString MV
MBMS-GGSN-IPv6-Address 917 OctetString MV
MBMS-BMSC-SSM-IP-Address 918 OctetString MV
MBMS-BMSC-SSM-IPv6-Address 919 OctetString MV
MBMS-Flow-Identifier 920 OctetString MV
CN-IP-Multicast-Distribution 921 Enumerated MV
MBMS-HC-Indicator 922 Enumerated MV

View File

@ -0,0 +1,817 @@
;;
;; %CopyrightBegin%
;;
;; Copyright Travelping GmbH 2015. All Rights Reserved.
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;
;; %CopyrightEnd%
;;
;;
;; Edits:
;;
;; - Ipv6 -> IPv6
;;
@id 16777238
@name diameter_3gpp_ts29_212
@prefix diameter_gx
@vendor 10415 3GPP
@inherits diameter_gen_base_rfc6733
@inherits diameter_rfc4005_nasreq
@inherits diameter_rfc4006_cc
@inherits diameter_3gpp_base
@inherits diameter_etsi_es283_034
@inherits diameter_3gpp_ts29_061_gmb
@inherits diameter_3gpp_ts29_214
@inherits diameter_3gpp_ts29_229
@avp_types
Access-Network-Charging-Identifier-Gx 1022 Grouped MV
Allocation-Retention-Priority 1034 Grouped V
AN-GW-Address 1050 Address V
AN-GW-Status 2811 Enumerated V
APN-Aggregate-Max-Bitrate-DL 1040 Unsigned32 V
APN-Aggregate-Max-Bitrate-UL 1041 Unsigned32 V
Application-Detection-Information 1098 Grouped V
Bearer-Control-Mode 1023 Enumerated MV
Bearer-Identifier 1020 OctetString MV
Bearer-Operation 1021 Enumerated MV
Bearer-Usage 1000 Enumerated MV
Charging-Correlation-Indicator 1073 Enumerated V
Charging-Rule-Base-Name 1004 UTF8String MV
Charging-Rule-Definition 1003 Grouped MV
Charging-Rule-Install 1001 Grouped MV
Charging-Rule-Name 1005 OctetString MV
Charging-Rule-Remove 1002 Grouped MV
Charging-Rule-Report 1018 Grouped MV
CoA-Information 1039 Grouped V
CoA-IP-Address 1035 Address V
Conditional-APN-Aggregate-Max-Bitrate 2818 Grouped V
Credit-Management-Status 1082 Unsigned32 V
CSG-Information-Reporting 1071 Enumerated V
Default-EPS-Bearer-QoS 1049 Grouped V
Default-QoS-Information 2816 Grouped V
Default-QoS-Name 2817 UTF8String V
Event-Report-Indication 1033 Grouped V
Event-Trigger 1006 Enumerated MV
Flow-Direction 1080 Enumerated V
Flow-Information 1058 Grouped V
Flow-Label 1057 OctetString V
Fixed-User-Location-Info 2825 Grouped V
Guaranteed-Bitrate-DL 1025 Unsigned32 MV
Guaranteed-Bitrate-UL 1026 Unsigned32 MV
HeNB-Local-IP-Address 2804 Address V
IP-CAN-Session-Charging-Scope 2827 Enumerated V
IP-CAN-Type 1027 Enumerated MV
Metering-Method 1007 Enumerated MV
Monitoring-Key 1066 OctetString V
Mute-Notification 2809 Enumerated V
Monitoring-Time 2810 Time V
NetLoc-Access-Support 2824 Unsigned32 V
Network-Request-Support 1024 Enumerated MV
Offline 1008 Enumerated MV
Online 1009 Enumerated MV
Packet-Filter-Content 1059 IPFilterRule V
Packet-Filter-Identifier 1060 OctetString V
Packet-Filter-Information 1061 Grouped V
Packet-Filter-Operation 1062 Enumerated V
Packet-Filter-Usage 1072 Enumerated V
PCC-Rule-Status 1019 Enumerated MV
PDN-Connection-ID 1065 OctetString V
Precedence 1010 Unsigned32 MV
Pre-emption-Capability 1047 Enumerated V
Pre-emption-Vulnerability 1048 Enumerated V
Presence-Reporting-Area-Elements-List 2820 OctetString V
Presence-Reporting-Area-Identifier 2821 OctetString V
Presence-Reporting-Area-Information 2822 Grouped V
Presence-Reporting-Area-Status 2823 Unsigned32 V
Priority-Level 1046 Unsigned32 V
PS-to-CS-Session-Continuity 1099 Enumerated V
QoS-Class-Identifier 1028 Enumerated MV
QoS-Information 1016 Grouped MV
QoS-Negotiation 1029 Enumerated MV
QoS-Upgrade 1030 Enumerated MV
RAN-NAS-Release-Cause 2819 OctetString V
RAT-Type 1032 Enumerated V
Redirect-Information 1085 Grouped V
Redirect-Support 1086 Enumerated V
Reporting-Level 1011 Enumerated MV
Resource-Allocation-Notification 1063 Enumerated V
Revalidation-Time 1042 Time MV
Routing-Filter 1078 Grouped V
Routing-IP-Address 1079 Address V
Routing-Rule-Definition 1076 Grouped V
Routing-Rule-Identifier 1077 OctetString V
Routing-Rule-Install 1081 Grouped V
Routing-Rule-Remove 1075 Grouped V
Rule-Activation-Time 1043 Time MV
Rule-Deactivation-Time 1044 Time MV
Rule-Failure-Code 1031 Enumerated MV
Security-Parameter-Index 1056 OctetString V
Session-Release-Cause 1045 Enumerated MV
TDF-Information 1087 Grouped V
TDF-Application-Identifier 1088 OctetString V
TDF-Application-Instance-Identifier 2802 OctetString V
TDF-Destination-Host 1089 DiameterIdentity V
TDF-Destination-Realm 1090 DiameterIdentity V
TDF-IP-Address 1091 Address V
TFT-Filter 1012 IPFilterRule MV
TFT-Packet-Filter-Information 1013 Grouped MV
ToS-Traffic-Class 1014 OctetString MV
Tunnel-Header-Filter 1036 IPFilterRule V
Tunnel-Header-Length 1037 Unsigned32 V
Tunnel-Information 1038 Grouped V
UDP-Source-Port 2806 Unsigned32 V
UE-Local-IP-Address 2805 Address V
Usage-Monitoring-Information 1067 Grouped V
Usage-Monitoring-Level 1068 Enumerated V
Usage-Monitoring-Report 1069 Enumerated V
Usage-Monitoring-Support 1070 Enumerated V
User-Location-Info-Time 2812 Time V
PCSCF-Restoration-Indication 2826 Unsigned32 V
@messages
CCR ::= < Diameter Header: 272, REQ, PXY >
< Session-Id >
{ Auth-Application-Id }
{ Origin-Host }
{ Origin-Realm }
{ Destination-Realm }
{ CC-Request-Type }
{ CC-Request-Number }
[ Credit-Management-Status ]
[ Destination-Host ]
[ Origin-State-Id ]
* [ Subscription-Id ]
;; [ OC-Supported-Features ] ;; IETF draft-ietf-dime-02
* [ Supported-Features ] ;; TS 29.229
[ TDF-Information ]
[ Network-Request-Support ]
* [ Packet-Filter-Information ]
[ Packet-Filter-Operation ]
[ Bearer-Identifier ]
[ Bearer-Operation ]
;; [ Dynamic-Address-Flag ] ;; TS 32.299
;; [ Dynamic-Address-Flag-Extension ] ;; TS 32.299
;; [ PDN-Connection-Charging-ID ] ;; TS 32.299
[ Framed-IP-Address ] ;; RFC-4005
[ Framed-IPv6-Prefix ] ;; RFC-4005
[ IP-CAN-Type ]
[ 3GPP-RAT-Type ]
;; [ AN-Trusted ] ;; TS 29.273
[ RAT-Type ]
[ Termination-Cause ]
[ User-Equipment-Info ]
[ QoS-Information ]
[ QoS-Negotiation ]
[ QoS-Upgrade ]
[ Default-EPS-Bearer-QoS ]
[ Default-QoS-Information ]
0*2 [ AN-GW-Address ]
[ AN-GW-Status ]
[ 3GPP-SGSN-MCC-MNC ]
[ 3GPP-SGSN-Address ]
[ 3GPP-SGSN-IPv6-Address ]
[ 3GPP-GGSN-Address ]
[ 3GPP-GGSN-IPv6-Address ]
[ 3GPP-Selection-Mode ]
[ RAI ]
[ 3GPP-User-Location-Info]
[ User-Location-Info-Time ]
;; [ User-CSG-Information ] ;; TS 32.299
[ TWAN-Identifier ]
[ 3GPP-MS-TimeZone ]
* [ RAN-NAS-Release-Cause ]
[ 3GPP-Charging-Characteristics ]
[ Called-Station-Id ] ;; RFC-4005
[ PDN-Connection-ID ]
[ Bearer-Usage ]
[ Online ]
[ Offline ]
* [ TFT-Packet-Filter-Information ]
* [ Charging-Rule-Report ]
* [ Application-Detection-Information ]
* [ Event-Trigger ]
[ Event-Report-Indication ]
[ Access-Network-Charging-Address ]
* [ Access-Network-Charging-Identifier-Gx ]
* [ CoA-Information ]
* [ Usage-Monitoring-Information ]
[ Routing-Rule-Install ]
[ Routing-Rule-Remove ]
[ HeNB-Local-IP-Address ]
[ UE-Local-IP-Address ]
[ UDP-Source-Port ]
[ Presence-Reporting-Area-Information ]
[ Logical-Access-ID ]
[ Physical-Access-ID ]
* [ Proxy-Info ]
* [ Route-Record ]
* [ AVP ]
CCA ::= < Diameter Header: 272, PXY >
< Session-Id >
{ Auth-Application-Id }
{ Origin-Host }
{ Origin-Realm }
{ CC-Request-Type }
{ CC-Request-Number }
[ Result-Code ]
[ Experimental-Result ]
;; [ OC-Supported-Features ] ;; IETF draft-ietf-dime-02
;; [ OC-OLR ] ;; IETF draft-ietf-dime-02
* [ Supported-Features ] ;; TS 29.229
[ Bearer-Control-Mode ]
* [ Event-Trigger ]
[ Event-Report-Indication ]
[ Origin-State-Id ]
* [ Redirect-Host ]
[ Redirect-Host-Usage ]
[ Redirect-Max-Cache-Time ]
* [ Charging-Rule-Remove ]
* [ Charging-Rule-Install ]
[ Charging-Information ] ;; TS 29.229
[ Online ]
[ Offline ]
* [ QoS-Information ]
[ Revalidation-Time ]
[ Default-EPS-Bearer-QoS ]
[ Default-QoS-Information ]
[ Bearer-Usage ]
* [ Usage-Monitoring-Information ]
* [ CSG-Information-Reporting ]
;; [ User-CSG-Information ] ;; TS 32.299
[ Presence-Reporting-Area-Information ]
[ Session-Release-Cause ]
[ Error-Message ]
[ Error-Reporting-Host ]
* [ Failed-AVP ]
* [ Proxy-Info ]
* [ Route-Record ]
* [ AVP ]
RAR ::= < Diameter Header: 258, REQ, PXY >
< Session-Id >
{ Auth-Application-Id }
{ Origin-Host }
{ Origin-Realm }
{ Destination-Realm }
{ Destination-Host }
{ Re-Auth-Request-Type }
[ Session-Release-Cause ]
[ Origin-State-Id ]
;; [ OC-Supported-Features ] ;; IETF draft-ietf-dime-02
* [ Event-Trigger ]
[ Event-Report-Indication ]
* [ Charging-Rule-Remove ]
* [ Charging-Rule-Install ]
[ Default-EPS-Bearer-QoS ]
* [ QoS-Information ]
[ Default-QoS-Information ]
[ Revalidation-Time ]
* [ Usage-Monitoring-Information ]
[ PCSCF-Restoration-Indication ]
* [ Proxy-Info ]
* [ Route-Record ]
* [ AVP ]
RAA ::= < Diameter Header: 258, PXY >
< Session-Id >
{ Origin-Host }
{ Origin-Realm }
[ Result-Code ]
[ Experimental-Result ]
[ Origin-State-Id ]
;; [ OC-Supported-Features ] ;; IETF draft-ietf-dime-02
;; [ OC-OLR ] ;; IETF draft-ietf-dime-02
[ IP-CAN-Type ]
[ RAT-Type ]
;; [ AN-Trusted ] ;; TS 29.273
0*2 [ AN-GW-Address ]
[ 3GPP-SGSN-MCC-MNC ]
[ 3GPP-SGSN-Address ]
[ 3GPP-SGSN-IPv6-Address ]
[ RAI ]
[ 3GPP-User-Location-Info ]
[ User-Location-Info-Time ]
[ NetLoc-Access-Support ]
;; [ User-CSG-Information ] ;; TS 32.299
[ 3GPP-MS-TimeZone ]
[ Default-QoS-Information ]
* [ Charging-Rule-Report]
[ Error-Message ]
[ Error-Reporting-Host ]
* [ Failed-AVP ]
* [ Proxy-Info ]
* [ AVP ]
@enum AN-GW-Status
AN_GW_FAILED 0
@enum Bearer-Control-Mode
UE_ONLY 0
RESERVED 1
UE_NW 2
@enum Bearer-Operation
TERMINATION 0
ESTABLISHMENT 1
MODIFICATION 2
@enum Bearer-Usage
GENERAL 0
IMS_SIGNALLING 1
@enum Charging-Correlation-Indicator
CHARGING_IDENTIFIER_REQUIRED 0
@enum CSG-Information-Reporting
CHANGE_CSG_CELL 0
CHANGE_CSG_SUBSCRIBED_HYBRID_CELL 1
CHANGE_CSG_UNSUBSCRIBED_HYBRID_CELL 2
@enum Event-Trigger
SGSN_CHANGE 0
QOS_CHANGE 1
RAT_CHANGE 2
TFT_CHANGE 3
PLMN_CHANGE 4
LOSS_OF_BEARER 5
RECOVERY_OF_BEARER 6
IP-CAN_CHANGE 7
QOS_CHANGE_EXCEEDING_AUTHORIZATION 11
RAI_CHANGE 12
USER_LOCATION_CHANGE 13
NO_EVENT_TRIGGERS 14
OUT_OF_CREDIT 15
REALLOCATION_OF_CREDIT 16
REVALIDATION_TIMEOUT 17
UE_IP_ADDRESS_ALLOCATE 18
UE_IP_ADDRESS_RELEASE 19
DEFAULT_EPS_BEARER_QOS_CHANGE 20
AN_GW_CHANGE 21
SUCCESSFUL_RESOURCE_ALLOCATION 22
RESOURCE_MODIFICATION_REQUEST 23
PGW_TRACE_CONTROL 24
UE_TIME_ZONE_CHANGE 25
TAI_CHANGE 26
ECGI_CHANGE 27
CHARGING_CORRELATION_EXCHANGE 28
APN-AMBR_MODIFICATION_FAILURE 29
USER_CSG_INFORMATION_CHANGE 30
USAGE_REPORT 33
DEFAULT-EPS-BEARER-QOS_MODIFICATION_FAILURE 34
USER_CSG_HYBRID_SUBSCRIBED_INFORMATION_CHANGE 35
USER_CSG_HYBRID_UNSUBSCRIBED_INFORMATION_CHANGE 36
ROUTING_RULE_CHANGE 37
APPLICATION_START 39
APPLICATION_STOP 40
CS_TO_PS_HANDOVER 42
UE_LOCAL_IP_ADDRESS_CHANGE 43
HNB_LOCAL_IP_ADDRESS_CHANGE 44
ACCESS_NETWORK_INFO_REPORT 45
CREDIT_MANAGEMENT_SESSION_FAILURE 46
DEFAULT_QOS_CHANGE 47
CHANGE_OF_UE_PRESENCE_IN_PRESENCE_REPORTING_AREA_REPORT 48
@enum Flow-Direction
UNSPECIFIED 0
DOWNLINK 1
UPLINK 2
BIDIRECTIONAL 3
@enum IP-CAN-Session-Charging-Scope
IP-CAN_SESSION_SCOPE 0
@enum IP-CAN-Type
3GPP-GPRS 0
DOCSIS 1
xDSL 2
WiMAX 3
3GPP2 4
3GPP-EPS 5
Non-3GPP-EPS 6
FBA 7
@enum Metering-Method
DURATION 0
VOLUME 1
DURATION_VOLUME 2
EVENT 3
@enum Mute-Notification
MUTE_REQUIRED 0
@enum Network-Request-Support
NETWORK_REQUEST_NOT_SUPPORTED 0
NETWORK_REQUEST_SUPPORTED 1
@enum Offline
DISABLE_OFFLINE 0
ENABLE_OFFLINE 1
@enum Online
DISABLE_ONLINE 0
ENABLE_ONLINE 1
@enum Packet-Filter-Operation
DELETION 0
ADDITION 1
MODIFICATION 2
@enum Packet-Filter-Usage
SEND_TO_UE 1
@enum PCC-Rule-Status
ACTIVE 0
INACTIVE 1
TEMPORARILY_INACTIVE 2
@enum Pre-emption-Capability
PRE-EMPTION_CAPABILITY_ENABLED 0
PRE-EMPTION_CAPABILITY_DISABLED 1
@enum Pre-emption-Vulnerability
PRE-EMPTION_VULNERABILITY_ENABLED 0
PRE-EMPTION_VULNERABILITY_DISABLED 1
@enum PS-to-CS-Session-Continuity
VIDEO_PS2CS_CONT_CANDIDATE 0
@enum QoS-Class-Identifier
QCI_1 1
QCI_2 2
QCI_3 3
QCI_4 4
QCI_5 5
QCI_6 6
QCI_7 7
QCI_8 8
QCI_9 9
QCI_65 65
QCI_66 66
QCI_69 69
QCI_70 70
@enum QoS-Negotiation
NO_QoS_NEGOTIATION 0
QoS_NEGOTIATION_SUPPORTED 1
@enum QoS-Upgrade
QoS_UPGRADE_NOT_SUPPORTED 0
QoS_UPGRADE_SUPPORTED 1
@enum RAT-Type
WLAN 0
VIRTUAL 1
UTRAN 1000
GERAN 1001
GAN 1002
HSPA_EVOLUTION 1003
EUTRAN 1004
CDMA2000_1X 2000
HRPD 2001
UMB 2002
EHRPD 2003
@enum Redirect-Support
REDIRECTION_DISABLED 0
REDIRECTION_ENABLED 1
@enum Reporting-Level
SERVICE_IDENTIFIER_LEVEL 0
RATING_GROUP_LEVEL 1
SPONSORED_CONNECTIVITY_LEVEL 2
@enum Resource-Allocation-Notification
ENABLE_NOTIFICATION 0
@enum Rule-Failure-Code
UNKNOWN_RULE_NAME 1
RATING_GROUP_ERROR 2
SERVICE_IDENTIFIER_ERROR 3
GW_PCEF_MALFUNCTION 4
RESOURCES_LIMITATION 5
MAX_NR_BEARERS_REACHED 6
UNKNOWN_BEARER_ID 7
MISSING_BEARER_ID 8
MISSING_FLOW_INFORMATION 9
RESOURCE_ALLOCATION_FAILURE 10
UNSUCCESSFUL_QOS_VALIDATION 11
INCORRECT_FLOW_INFORMATION 12
PS_TO_CS_HANDOVER 13
TDF_APPLICATION_IDENTIFIER_ERROR 14
NO_BEARER_BOUND 15
FILTER_RESTRICTIONS 16
AN_GW_FAILED 17
MISSING_REDIRECT_SERVER_ADDRESS 18
CM_END_USER_SERVICE_DENIED 19
CM_CREDIT_CONTROL_NOT_APPLICABLE 20
CM_AUTHORIZATION_REJECTED 21
CM_USER_UNKNOWN 22
CM_RATING_FAILED 23
@enum Session-Release-Cause
UNSPECIFIED_REASON 0
UE_SUBSCRIPTION_REASON 1
INSUFFICIENT_SERVER_RESOURCES 2
IP_CAN_SESSION_TERMINATION 3
UE_IP_ADDRESS_RELEASE 4
@enum Usage-Monitoring-Level
SESSION_LEVEL 0
PCC_RULE_LEVEL 1
ADC_RULE_LEVEL 2
@enum Usage-Monitoring-Report
USAGE_MONITORING_REPORT_REQUIRED 0
@enum Usage-Monitoring-Support
USAGE_MONITORING_DISABLED 0
@define Presence-Reporting-Area-Status
IN_AREA 0
OUT_OF_AREA 1
@define NetLoc-Access-Support
NETLOC_ACCESS_NOT_SUPPORTED 0
@define PCSCF-Restoration-Indication
PCSCF_RESTORATION 0
@grouped
Access-Network-Charging-Identifier-Gx ::= < AVP Header: 1022 >
{ Access-Network-Charging-Identifier-Value }
* [ Charging-Rule-Base-Name ]
* [ Charging-Rule-Name ]
[ IP-CAN-Session-Charging-Scope ]
* [ AVP ]
Allocation-Retention-Priority ::= < AVP Header: 1034 >
{ Priority-Level }
[ Pre-emption-Capability ]
[ Pre-emption-Vulnerability ]
Application-Detection-Information ::= < AVP Header: 1098 >
{ TDF-Application-Identifier }
[ TDF-Application-Instance-Identifier ]
* [ Flow-Information ]
* [ AVP ]
Charging-Rule-Definition ::= < AVP Header: 1003 >
{ Charging-Rule-Name }
[ Service-Identifier ]
[ Rating-Group ]
* [ Flow-Information ]
[ TDF-Application-Identifier ]
[ Flow-Status ]
[ QoS-Information ]
[ PS-to-CS-Session-Continuity ]
[ Reporting-Level ]
[ Online ]
[ Offline ]
[ Metering-Method ]
[ Precedence ]
[ AF-Charging-Identifier ]
* [ Flows ]
[ Monitoring-Key]
[ Redirect-Information ]
[ Mute-Notification ]
[ AF-Signalling-Protocol ]
[ Sponsor-Identity ]
[ Application-Service-Provider-Identity ]
* [ Required-Access-Info ]
* [ AVP ]
Charging-Rule-Install ::= < AVP Header: 1001 >
* [ Charging-Rule-Definition ]
* [ Charging-Rule-Name ]
* [ Charging-Rule-Base-Name ]
[ Bearer-Identifier ]
[ Rule-Activation-Time ]
[ Rule-Deactivation-Time ]
[ Resource-Allocation-Notification ]
[ Charging-Correlation-Indicator ]
* [ AVP ]
Charging-Rule-Remove ::= < AVP Header: 1002 >
* [ Charging-Rule-Name ]
* [ Charging-Rule-Base-Name ]
* [ Required-Access-Info ]
* [ AVP ]
Charging-Rule-Report ::= < AVP Header: 1018 >
* [ Charging-Rule-Name ]
* [ Charging-Rule-Base-Name ]
[ Bearer-Identifier ]
[ PCC-Rule-Status ]
[ Rule-Failure-Code ]
[ Final-Unit-Indication ]
* [ RAN-NAS-Release-Cause ]
* [ AVP ]
CoA-Information ::= < AVP Header: 1039>
{ Tunnel-Information }
{ CoA-IP-Address }
* [ AVP ]
Conditional-APN-Aggregate-Max-Bitrate ::= < AVP Header: 2818 >
[ APN-Aggregate-Max-Bitrate-UL ]
[ APN-Aggregate-Max-Bitrate-DL ]
* [ IP-CAN-Type ]
* [ RAT-Type ]
* [ AVP ]
Default-EPS-Bearer-QoS::= < AVP Header: 1049 >
[ QoS-Class-Identifier ]
[ Allocation-Retention-Priority ]
* [ AVP ]
Default-QoS-Information ::= < AVP Header: 2816 >
[ QoS-Class-Identifier ]
[ Max-Requested-Bandwidth-UL ]
[ Max-Requested-Bandwidth-DL ]
[ Default-QoS-Name ]
* [ AVP ]
Event-Report-Indication ::= < AVP Header: 1033 >
;; [ AN-Trusted ] ;; TS 29.273
* [ Event-Trigger ]
;; [ User-CSG-Information ] ;; TS 32.299
[ IP-CAN-Type ]
0*2 [ AN-GW-Address ]
[ 3GPP-SGSN-Address ]
[ 3GPP-SGSN-IPv6-Address ]
[ 3GPP-SGSN-MCC-MNC ]
[ Framed-IP-Address ] ;; RFC-4005
[ RAT-Type ]
[ RAI ]
[ 3GPP-User-Location-Info ]
;; [ Trace-Data ] ;; TS 29.272
;; [ Trace-Reference ] ;; TS 29.272
;; [ 3GPP2-BSID ] ;; 3GPP2 X.S0057-B (CDMA to EPC attachment)
[ 3GPP-MS-TimeZone ]
[ Routing-IP-Address ]
[ UE-Local-IP-Address ]
[ HeNB-Local-IP-Address ]
[ UDP-Source-Port ]
[ Presence-Reporting-Area-Information ]
* [ AVP ]
Fixed-User-Location-Info::= < AVP Header: 2825 >
;; [ SSID ] ;; TS 29.273
;; [ BSSID ] ;; TS 32.299
[ Logical-Access-ID ]
[ Physical-Access-ID ]
* [ AVP ]
Flow-Information ::= < AVP Header: 1058 >
[ Flow-Description ]
[ Packet-Filter-Identifier ]
[ Packet-Filter-Usage ]
[ ToS-Traffic-Class ]
[ Security-Parameter-Index ]
[ Flow-Label ]
[ Flow-Direction ]
* [ AVP ]
Packet-Filter-Information ::= < AVP Header: 1061 >
[ Packet-Filter-Identifier ]
[ Precedence ]
[ Packet-Filter-Content ]
[ ToS-Traffic-Class ]
[ Security-Parameter-Index ]
[ Flow-Label ]
[ Flow-Direction ]
* [ AVP ]
Presence-Reporting-Area-Information ::= < AVP Header: 2822 >
[ Presence-Reporting-Area-Identifier ]
[ Presence-Reporting-Area-Status ]
[ Presence-Reporting-Area-Elements-List ]
* [ AVP ]
QoS-Information ::= < AVP Header: 1016 >
[ QoS-Class-Identifier ]
[ Max-Requested-Bandwidth-UL ]
[ Max-Requested-Bandwidth-DL ]
[ Guaranteed-Bitrate-UL ]
[ Guaranteed-Bitrate-DL ]
[ Bearer-Identifier ]
[ Allocation-Retention-Priority ]
[ APN-Aggregate-Max-Bitrate-UL ]
[ APN-Aggregate-Max-Bitrate-DL ]
* [ Conditional-APN-Aggregate-Max-Bitrate ]
* [ AVP ]
Redirect-Information ::= < AVP Header: 1085 >
[ Redirect-Support ]
[ Redirect-Address-Type ]
[ Redirect-Server-Address ]
* [ AVP ]
Routing-Filter ::= < AVP Header: 1078 >
{ Flow-Description }
{ Flow-Direction }
[ ToS-Traffic-Class ]
[ Security-Parameter-Index ]
[ Flow-Label ]
* [ AVP ]
Routing-Rule-Definition ::= < AVP Header: 1076 >
{ Routing-Rule-Identifier }
* [ Routing-Filter ]
[ Precedence ]
[ Routing-IP-Address ]
* [ AVP ]
Routing-Rule-Install ::= < AVP Header: 1081 >
* [ Routing-Rule-Definition ]
* [ AVP ]
Routing-Rule-Remove ::= < AVP Header: 1075 >
* [ Routing-Rule-Identifier ]
* [ AVP ]
TDF-Information::= < AVP Header: 1087 >
[ TDF-Destination-Realm ]
[ TDF-Destination-Host ]
[ TDF-IP-Address ]
Tunnel-Information ::= < AVP Header: 1038 >
[ Tunnel-Header-Length ]
0*2 [ Tunnel-Header-Filter ] ;; either not present or two instances
* [ AVP ]
TFT-Packet-Filter-Information ::= < AVP Header: 1013 >
[ Precedence ]
[ TFT-Filter ]
[ ToS-Traffic-Class ]
[ Security-Parameter-Index ]
[ Flow-Label ]
[ Flow-Direction ]
* [ AVP ]
Usage-Monitoring-Information::= < AVP Header: 1067 >
[ Monitoring-Key ]
0*2 [ Granted-Service-Unit ]
0*2 [ Used-Service-Unit ]
;; [ Quota-Consumption-Time ] ;; TS 32.299
[ Usage-Monitoring-Level ]
[ Usage-Monitoring-Report ]
[ Usage-Monitoring-Support ]
* [ AVP ]

View File

@ -0,0 +1,76 @@
;;
;; %CopyrightBegin%
;;
;; Copyright Travelping GmbH 2015. All Rights Reserved.
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;
;; %CopyrightEnd%
;;
@id 16777236
@name diameter_3gpp_ts29_214
@prefix diameter_rx
@vendor 10415 3GPP
@inherits diameter_gen_base_rfc6733
@inherits diameter_rfc4006_cc
;; only attributes required by other applications are defined
@avp_types
Abort-Cause 500 Enumerated MV
Access-Network-Charging-Address 501 Address MV
;; Access-Network-Charging-Identifier 502 Grouped MV
Access-Network-Charging-Identifier-Value 503 OctetString MV
;; Acceptable-Service-Info 526 Grouped MV
AF-Application-Identifier 504 OctetString MV
AF-Charging-Identifier 505 OctetString MV
Application-Service-Provider-Identity 532 UTF8String V
Codec-Data 524 OctetString MV
Flow-Description 507 IPFilterRule MV
Flow-Number 509 Unsigned32 MV
Flows 510 Grouped MV
Flow-Status 511 Enumerated MV
Flow-Usage 512 Enumerated MV
GCS-Identifier 538 OctetString V
Service-URN 525 OctetString MV
Specific-Action 513 Enumerated MV
Max-Requested-Bandwidth-DL 515 Unsigned32 MV
Max-Requested-Bandwidth-UL 516 Unsigned32 MV
;; Media-Component-Description 517 Grouped MV
Media-Component-Number 518 Unsigned32 MV
;; Media-Sub-Component 519 Grouped MV
Media-Type 520 Enumerated MV
MPS-Identifier 528 OctetString V
Min-Requested-Bandwidth-DL 534 Unsigned32 V
Min-Requested-Bandwidth-UL 535 Unsigned32 V
RR-Bandwidth 521 Unsigned32 MV
RS-Bandwidth 522 Unsigned32 MV
Service-Info-Status 527 Enumerated MV
SIP-Forking-Indication 523 Enumerated MV
Sponsor-Identity 531 UTF8String V
;; Sponsored-Connectivity-Data 530 Grouped V
AF-Signalling-Protocol 529 Enumerated V
Required-Access-Info 536 Enumerated V
Rx-Request-Type 533 Enumerated V
IP-Domain-Id 537 OctetString V
@grouped
Flows ::= < AVP Header: 510 >
{ Media-Component-Number }
* [ Flow-Number ]
[ Final-Unit-Action ]

View File

@ -0,0 +1,106 @@
;;
;; %CopyrightBegin%
;;
;; Copyright Travelping GmbH 2015. All Rights Reserved.
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;
;; %CopyrightEnd%
;;
@id 16777236
@name diameter_3gpp_ts29_229
@prefix diameter_cx
@vendor 10415 3GPP
@inherits diameter_gen_base_rfc6733
;; only attributes required by other applications are defined
@avp_types
Visited-Network-Identifier 600 OctetString MV
Public-Identity 601 UTF8String MV
Server-Name 602 UTF8String MV
;; Server-Capabilities 603 Grouped MV
Mandatory-Capability 604 Unsigned32 MV
Optional-Capability 605 Unsigned32 MV
User-Data 606 OctetString MV
SIP-Number-Auth-Items 607 Unsigned32 MV
SIP-Authentication-Scheme 608 UTF8String MV
SIP-Authenticate 609 OctetString MV
SIP-Authorization 610 OctetString MV
SIP-Authentication-Context 611 OctetString MV
;; SIP-Auth-Data-Item 612 Grouped MV
SIP-Item-Number 613 Unsigned32 MV
Server-Assignment-Type 614 Enumerated MV
;; Deregistration-Reason 615 Grouped MV
Reason-Code 616 Enumerated MV
Reason-Info 617 UTF8String MV
Charging-Information 618 Grouped MV
Primary-Event-Charging-Function-Name 619 DiameterURI MV
Secondary-Event-Charging-Function-Name 620 DiameterURI MV
Primary-Charging-Collection-Function-Name 621 DiameterURI MV
Secondary-Charging-Collection-Function-Name 622 DiameterURI MV
User-Authorization-Type 623 Enumerated MV
User-Data-Already-Available 624 Enumerated MV
Confidentiality-Key 625 OctetString MV
Integrity-Key 626 OctetString MV
Supported-Features 628 Grouped V
Feature-List-ID 629 Unsigned32 V
Feature-List 630 Unsigned32 V
;; Supported-Applications 631 Grouped V
;; Associated-Identities 632 Grouped V
Originating-Request 633 Enumerated MV
Wildcarded-Public-Identity 634 UTF8String V
;; SIP-Digest-Authenticate 635 Grouped V
Digest-Realm 104 UTF8String M ;; RFC-4590
Digest-Algorithm 111 UTF8String M ;; RFC-4590
Digest-QoP 110 UTF8String M ;; RFC-4590
Digest-HA1 121 UTF8String M ;; RFC-4590
UAR-Flags 637 Unsigned32 V
Loose-Route-Indication 638 Enumerated V
;; SCSCF-Restoration-Info 639 Grouped V
Path 640 OctetString V
Contact 641 OctetString V
;; Subscription-Info 642 Grouped V
Call-ID-SIP-Header 643 OctetString V
From-SIP-Header 644 OctetString V
To-SIP-Header 645 OctetString V
Record-Route 646 OctetString V
;; Associated-Registered-Identities 647 Grouped V
Multiple-Registration-Indication 648 Enumerated V
;; Restoration-Info 649 Grouped V
Session-Priority 650 Enumerated V
;; Identity-with-Emergency-Registration 651 Grouped V
Priviledged-Sender-Indication 652 Enumerated V
LIA-Flags 653 Unsigned32 V
;; OC-Supported-Features TBD Grouped - ;; IETF draft-ietf-dime-02
;; OC-OLR TBD Grouped - ;; IETF draft-ietf-dime-02
Initial-CSeq-Sequence-Number 654 Unsigned32 V
SAR-Flags 655 Unsigned32 V
@grouped
Charging-Information ::= < AVP Header : 618 >
[ Primary-Event-Charging-Function-Name ]
[ Secondary-Event-Charging-Function-Name ]
[ Primary-Charging-Collection-Function-Name ]
[ Secondary-Charging-Collection-Function-Name ]
* [ AVP ]
Supported-Features ::= < AVP Header : 628 >
{ Vendor-Id }
{ Feature-List-ID }
{ Feature-List }
* [ AVP ]

View File

@ -0,0 +1,54 @@
;;
;; %CopyrightBegin%
;;
;; Copyright Travelping GmbH 2015. All Rights Reserved.
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;
;; %CopyrightEnd%
;;
@name diameter_3gpp_ts29_329
@vendor 10415 3GPP
@avp_types
MSISDN 701 OctetString MV
User-Data 702 OctetString MV
Data-Reference 703 Enumerated MV
Service-Indication 704 OctetString MV
Subs-Req-Type 705 Enumerated MV
Requested-Domain 706 Enumerated MV
Current-Location 707 Enumerated MV
Identity-Set 708 Enumerated V
Expiry-Time 709 Time V
Send-Data-Indication 710 Enumerated V
Server-Name 602 UTF8String MV
;; Supported-Features 628 Grouped V
Feature-List-ID 629 Unsigned32 V
Feature-List 630 Unsigned32 V
;; Supported-Applications 631 Grouped V
Public-Identity 601 UTF8String MV
DSAI-Tag 711 OctetString MV
Wildcarded-Public-Identity 634 UTF8String V
Wildcarded-IMPU 636 UTF8String V
Session-Priority 650 Enumerated V
One-Time-Notification 712 Enumerated V
Requested-Nodes 713 Unsigned32 V
Serving-Node-Indication 714 Enumerated V
;; Repository-Data-ID 715 Grouped V
Sequence-Number 716 Unsigned32 V
;; ===========================================================================
@grouped

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,46 @@
;;
;; %CopyrightBegin%
;;
;; Copyright Travelping GmbH 2015. All Rights Reserved.
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;
;; %CopyrightEnd%
;;
@id 16777231
@name diameter_etsi_es283_034
@prefix diameter_e4
@vendor 13019 ETSI
@inherits diameter_gen_base_rfc6733
;; only attributes required by other applications are defined
@avp_types
;; Globally-Unique-Address 300 Grouped MV
Address-Realm 301 OctetString MV
Logical-Access-ID 302 OctetString V
;; Initial-Gate-Setting-Description 303 Grouped V
;; QoS-Profile-Description 304 Grouped V
IP-Connectivity-Status 305 Enumerated V
;; Access-Network-Type 306 Grouped V
Aggregation-Network-Type 307 Enumerated V
Maximum-Allowed-Bandwidth-UL 308 Unsigned32 V
Maximum-Allowed-Bandwidth-DL 309 Unsigned32 V
Transport-Class 311 Unsigned32 V
Application-Class-ID 312 UTF8String V
Physical-Access-ID 313 UTF8String V
Initial-Gate-Setting-ID 314 Unsigned32 V
QoS-Profile-ID 315 Unsigned32 V

View File

@ -0,0 +1,741 @@
;;
;; %CopyrightBegin%
;;
;; Copyright Ericsson AB 2010-2013. All Rights Reserved.
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;
;; %CopyrightEnd%
;;
;;
;; RFC 4005, Diameter Network Access Server Application
;;
;; Edits:
;;
;; - Acounting-Auth-Method -> Accounting-Auth-Method
;; - Connection-Info -> ConnectInfo
;; - Framed-Appletalk-Link -> Framed-AppleTalk-Link
;; - Framed-Appletalk-Network -> Framed-AppleTalk-Network
;; - Framed-Appletalk-Zone -> Framed-AppleTalk-Zone
;; - Qos-Filter-Rule -> QoS-Filter-Rule
;; - Redirect-Host-Usase -> Redirect-Host-Usage
;; - Redirected-Host -> Redirect-Host
;; - Redirected-Host-Usage -> Redirect-Host-Usage
;; - Redirected-Host-Cache-Time -> Redirect-Max-Cache-Time
;; - Redirected-Max-Cache-Time -> Redirect-Max-Cache-Time
;;
@id 1
@inherits diameter_gen_base_rfc6733
;; ===========================================================================
@avp_types
;; 4. NAS Session AVPs
NAS-Port 5 Unsigned32 M
NAS-Port-Id 87 UTF8String M
NAS-Port-Type 61 Enumerated M
Called-Station-Id 30 UTF8String M
Calling-Station-Id 31 UTF8String M
Connect-Info 77 UTF8String M
Originating-Line-Info 94 OctetString -
Reply-Message 18 UTF8String M
;; 5. NAS Authentication AVPs
User-Password 2 OctetString M
Password-Retry 75 Unsigned32 M
Prompt 76 Enumerated M
CHAP-Auth 402 Grouped M
CHAP-Algorithm 403 Enumerated M
CHAP-Ident 404 OctetString M
CHAP-Response 405 OctetString M
CHAP-Challenge 60 OctetString M
ARAP-Password 70 OctetString M
ARAP-Challenge-Response 84 OctetString M
ARAP-Security 73 Unsigned32 M
ARAP-Security-Data 74 OctetString M
;; 6. NAS Authorization AVPs
Service-Type 6 Enumerated M
Callback-Number 19 UTF8String M
Callback-Id 20 UTF8String M
Idle-Timeout 28 Unsigned32 M
Port-Limit 62 Unsigned32 M
NAS-Filter-Rule 400 IPFilterRule M
Filter-Id 11 UTF8String M
Configuration-Token 78 OctetString M
QoS-Filter-Rule 407 QoSFilterRule -
Framed-Protocol 7 Enumerated M
Framed-Routing 10 Enumerated M
Framed-MTU 12 Unsigned32 M
Framed-Compression 13 Enumerated M
Framed-IP-Address 8 OctetString M
Framed-IP-Netmask 9 OctetString M
Framed-Route 22 UTF8String M
Framed-Pool 88 OctetString M
Framed-Interface-Id 96 Unsigned64 M
Framed-IPv6-Prefix 97 OctetString M
Framed-IPv6-Route 99 UTF8String M
Framed-IPv6-Pool 100 OctetString M
Framed-IPX-Network 23 UTF8String M
Framed-AppleTalk-Link 37 Unsigned32 M
Framed-AppleTalk-Network 38 Unsigned32 M
Framed-AppleTalk-Zone 39 OctetString M
ARAP-Features 71 OctetString M
ARAP-Zone-Access 72 Enumerated M
Login-IP-Host 14 OctetString M
Login-IPv6-Host 98 OctetString M
Login-Service 15 Enumerated M
Login-TCP-Port 16 Unsigned32 M
Login-LAT-Service 34 OctetString M
Login-LAT-Node 35 OctetString M
Login-LAT-Group 36 OctetString M
Login-LAT-Port 63 OctetString M
;; 7. NAS Tunneling
Tunneling 401 Grouped M
Tunnel-Type 64 Enumerated M
Tunnel-Medium-Type 65 Enumerated M
Tunnel-Client-Endpoint 66 UTF8String M
Tunnel-Server-Endpoint 67 UTF8String M
Tunnel-Password 69 OctetString M
Tunnel-Private-Group-Id 81 OctetString M
Tunnel-Assignment-Id 82 OctetString M
Tunnel-Preference 83 Unsigned32 M
Tunnel-Client-Auth-Id 90 UTF8String M
Tunnel-Server-Auth-Id 91 UTF8String M
;; 8. NAS Accounting
Accounting-Input-Octets 363 Unsigned64 M
Accounting-Output-Octets 364 Unsigned64 M
Accounting-Input-Packets 365 Unsigned64 M
Accounting-Output-Packets 366 Unsigned64 M
Acct-Session-Time 46 Unsigned32 M
Acct-Authentic 45 Enumerated M
Accounting-Auth-Method 406 Enumerated M
Acct-Delay-Time 41 Unsigned32 M
Acct-Link-Count 51 Unsigned32 M
Acct-Tunnel-Connection 68 OctetString M
Acct-Tunnel-Packets-Lost 86 Unsigned32 M
;; 9.3. AVPs Used Only for Compatibility
NAS-Identifier 32 UTF8String M
NAS-IP-Address 4 OctetString M
NAS-IPv6-Address 95 OctetString M
State 24 OctetString M
;;Termination-Cause 295 Enumerated M
Origin-AAA-Protocol 408 Enumerated M
;; ===========================================================================
@messages
AAR ::= < Diameter Header: 265, REQ, PXY >
< Session-Id >
{ Auth-Application-Id }
{ Origin-Host }
{ Origin-Realm }
{ Destination-Realm }
{ Auth-Request-Type }
[ Destination-Host ]
[ NAS-Identifier ]
[ NAS-IP-Address ]
[ NAS-IPv6-Address ]
[ NAS-Port ]
[ NAS-Port-Id ]
[ NAS-Port-Type ]
[ Origin-AAA-Protocol ]
[ Origin-State-Id ]
[ Port-Limit ]
[ User-Name ]
[ User-Password ]
[ Service-Type ]
[ State ]
[ Authorization-Lifetime ]
[ Auth-Grace-Period ]
[ Auth-Session-State ]
[ Callback-Number ]
[ Called-Station-Id ]
[ Calling-Station-Id ]
[ Originating-Line-Info ]
[ Connect-Info ]
[ CHAP-Auth ]
[ CHAP-Challenge ]
* [ Framed-Compression ]
[ Framed-Interface-Id ]
[ Framed-IP-Address ]
* [ Framed-IPv6-Prefix ]
[ Framed-IP-Netmask ]
[ Framed-MTU ]
[ Framed-Protocol ]
[ ARAP-Password ]
[ ARAP-Security ]
* [ ARAP-Security-Data ]
* [ Login-IP-Host ]
* [ Login-IPv6-Host ]
[ Login-LAT-Group ]
[ Login-LAT-Node ]
[ Login-LAT-Port ]
[ Login-LAT-Service ]
* [ Tunneling ]
* [ Proxy-Info ]
* [ Route-Record ]
* [ AVP ]
AAA ::= < Diameter Header: 265, PXY >
< Session-Id >
{ Auth-Application-Id }
{ Auth-Request-Type }
{ Result-Code }
{ Origin-Host }
{ Origin-Realm }
[ User-Name ]
[ Service-Type ]
* [ Class ]
* [ Configuration-Token ]
[ Acct-Interim-Interval ]
[ Error-Message ]
[ Error-Reporting-Host ]
* [ Failed-AVP ]
[ Idle-Timeout ]
[ Authorization-Lifetime ]
[ Auth-Grace-Period ]
[ Auth-Session-State ]
[ Re-Auth-Request-Type ]
[ Multi-Round-Time-Out ]
[ Session-Timeout ]
[ State ]
* [ Reply-Message ]
[ Origin-AAA-Protocol ]
[ Origin-State-Id ]
* [ Filter-Id ]
[ Password-Retry ]
[ Port-Limit ]
[ Prompt ]
[ ARAP-Challenge-Response ]
[ ARAP-Features ]
[ ARAP-Security ]
* [ ARAP-Security-Data ]
[ ARAP-Zone-Access ]
[ Callback-Id ]
[ Callback-Number ]
[ Framed-AppleTalk-Link ]
* [ Framed-AppleTalk-Network ]
[ Framed-AppleTalk-Zone ]
* [ Framed-Compression ]
[ Framed-Interface-Id ]
[ Framed-IP-Address ]
* [ Framed-IPv6-Prefix ]
[ Framed-IPv6-Pool ]
* [ Framed-IPv6-Route ]
[ Framed-IP-Netmask ]
* [ Framed-Route ]
[ Framed-Pool ]
[ Framed-IPX-Network ]
[ Framed-MTU ]
[ Framed-Protocol ]
[ Framed-Routing ]
* [ Login-IP-Host ]
* [ Login-IPv6-Host ]
[ Login-LAT-Group ]
[ Login-LAT-Node ]
[ Login-LAT-Port ]
[ Login-LAT-Service ]
[ Login-Service ]
[ Login-TCP-Port ]
* [ NAS-Filter-Rule ]
* [ QoS-Filter-Rule ]
* [ Tunneling ]
* [ Redirect-Host ]
[ Redirect-Host-Usage ]
[ Redirect-Max-Cache-Time ]
* [ Proxy-Info ]
* [ AVP ]
RAR ::= < Diameter Header: 258, REQ, PXY >
< Session-Id >
{ Origin-Host }
{ Origin-Realm }
{ Destination-Realm }
{ Destination-Host }
{ Auth-Application-Id }
{ Re-Auth-Request-Type }
[ User-Name ]
[ Origin-AAA-Protocol ]
[ Origin-State-Id ]
[ NAS-Identifier ]
[ NAS-IP-Address ]
[ NAS-IPv6-Address ]
[ NAS-Port ]
[ NAS-Port-Id ]
[ NAS-Port-Type ]
[ Service-Type ]
[ Framed-IP-Address ]
[ Framed-IPv6-Prefix ]
[ Framed-Interface-Id ]
[ Called-Station-Id ]
[ Calling-Station-Id ]
[ Originating-Line-Info ]
[ Acct-Session-Id ]
[ Acct-Multi-Session-Id ]
[ State ]
* [ Class ]
[ Reply-Message ]
* [ Proxy-Info ]
* [ Route-Record ]
* [ AVP ]
RAA ::= < Diameter Header: 258, PXY >
< Session-Id >
{ Result-Code }
{ Origin-Host }
{ Origin-Realm }
[ User-Name ]
[ Origin-AAA-Protocol ]
[ Origin-State-Id ]
[ Error-Message ]
[ Error-Reporting-Host ]
* [ Failed-AVP ]
* [ Redirect-Host ]
[ Redirect-Host-Usage ]
[ Redirect-Max-Cache-Time ]
[ Service-Type ]
* [ Configuration-Token ]
[ Idle-Timeout ]
[ Authorization-Lifetime ]
[ Auth-Grace-Period ]
[ Re-Auth-Request-Type ]
[ State ]
* [ Class ]
* [ Reply-Message ]
[ Prompt ]
* [ Proxy-Info ]
* [ AVP ]
STR ::= < Diameter Header: 275, REQ, PXY >
< Session-Id >
{ Origin-Host }
{ Origin-Realm }
{ Destination-Realm }
{ Auth-Application-Id }
{ Termination-Cause }
[ User-Name ]
[ Destination-Host ]
* [ Class ]
[ Origin-AAA-Protocol ]
[ Origin-State-Id ]
* [ Proxy-Info ]
* [ Route-Record ]
* [ AVP ]
STA ::= < Diameter Header: 275, PXY >
< Session-Id >
{ Result-Code }
{ Origin-Host }
{ Origin-Realm }
[ User-Name ]
* [ Class ]
[ Error-Message ]
[ Error-Reporting-Host ]
* [ Failed-AVP ]
[ Origin-AAA-Protocol ]
[ Origin-State-Id ]
* [ Redirect-Host ]
[ Redirect-Host-Usage ]
[ Redirect-Max-Cache-Time ]
* [ Proxy-Info ]
* [ AVP ]
ASR ::= < Diameter Header: 274, REQ, PXY >
< Session-Id >
{ Origin-Host }
{ Origin-Realm }
{ Destination-Realm }
{ Destination-Host }
{ Auth-Application-Id }
[ User-Name ]
[ Origin-AAA-Protocol ]
[ Origin-State-Id ]
[ NAS-Identifier ]
[ NAS-IP-Address ]
[ NAS-IPv6-Address ]
[ NAS-Port ]
[ NAS-Port-Id ]
[ NAS-Port-Type ]
[ Service-Type ]
[ Framed-IP-Address ]
[ Framed-IPv6-Prefix ]
[ Framed-Interface-Id ]
[ Called-Station-Id ]
[ Calling-Station-Id ]
[ Originating-Line-Info ]
[ Acct-Session-Id ]
[ Acct-Multi-Session-Id ]
[ State ]
* [ Class ]
* [ Reply-Message ]
* [ Proxy-Info ]
* [ Route-Record ]
* [ AVP ]
ASA ::= < Diameter Header: 274, PXY >
< Session-Id >
{ Result-Code }
{ Origin-Host }
{ Origin-Realm }
[ User-Name ]
[ Origin-AAA-Protocol ]
[ Origin-State-Id ]
[ State]
[ Error-Message ]
[ Error-Reporting-Host ]
* [ Failed-AVP ]
* [ Redirect-Host ]
[ Redirect-Host-Usage ]
[ Redirect-Max-Cache-Time ]
* [ Proxy-Info ]
* [ AVP ]
ACR ::= < Diameter Header: 271, REQ, PXY >
< Session-Id >
{ Origin-Host }
{ Origin-Realm }
{ Destination-Realm }
{ Accounting-Record-Type }
{ Accounting-Record-Number }
[ Acct-Application-Id ]
[ Vendor-Specific-Application-Id ]
[ User-Name ]
[ Accounting-Sub-Session-Id ]
[ Acct-Session-Id ]
[ Acct-Multi-Session-Id ]
[ Origin-AAA-Protocol ]
[ Origin-State-Id ]
[ Destination-Host ]
[ Event-Timestamp ]
[ Acct-Delay-Time ]
[ NAS-Identifier ]
[ NAS-IP-Address ]
[ NAS-IPv6-Address ]
[ NAS-Port ]
[ NAS-Port-Id ]
[ NAS-Port-Type ]
* [ Class ]
[ Service-Type ]
[ Termination-Cause ]
[ Accounting-Input-Octets ]
[ Accounting-Input-Packets ]
[ Accounting-Output-Octets ]
[ Accounting-Output-Packets ]
[ Acct-Authentic ]
[ Accounting-Auth-Method ]
[ Acct-Link-Count ]
[ Acct-Session-Time ]
[ Acct-Tunnel-Connection ]
[ Acct-Tunnel-Packets-Lost ]
[ Callback-Id ]
[ Callback-Number ]
[ Called-Station-Id ]
[ Calling-Station-Id ]
* [ Connect-Info ]
[ Originating-Line-Info ]
[ Authorization-Lifetime ]
[ Session-Timeout ]
[ Idle-Timeout ]
[ Port-Limit ]
[ Accounting-Realtime-Required ]
[ Acct-Interim-Interval ]
* [ Filter-Id ]
* [ NAS-Filter-Rule ]
* [ QoS-Filter-Rule ]
[ Framed-AppleTalk-Link ]
[ Framed-AppleTalk-Network ]
[ Framed-AppleTalk-Zone ]
[ Framed-Compression ]
[ Framed-Interface-Id ]
[ Framed-IP-Address ]
[ Framed-IP-Netmask ]
* [ Framed-IPv6-Prefix ]
[ Framed-IPv6-Pool ]
* [ Framed-IPv6-Route ]
[ Framed-IPX-Network ]
[ Framed-MTU ]
[ Framed-Pool ]
[ Framed-Protocol ]
* [ Framed-Route ]
[ Framed-Routing ]
* [ Login-IP-Host ]
* [ Login-IPv6-Host ]
[ Login-LAT-Group ]
[ Login-LAT-Node ]
[ Login-LAT-Port ]
[ Login-LAT-Service ]
[ Login-Service ]
[ Login-TCP-Port ]
* [ Tunneling ]
* [ Proxy-Info ]
* [ Route-Record ]
* [ AVP ]
ACA ::= < Diameter Header: 271, PXY >
< Session-Id >
{ Result-Code }
{ Origin-Host }
{ Origin-Realm }
{ Accounting-Record-Type }
{ Accounting-Record-Number }
[ Acct-Application-Id ]
[ Vendor-Specific-Application-Id ]
[ User-Name ]
[ Accounting-Sub-Session-Id ]
[ Acct-Session-Id ]
[ Acct-Multi-Session-Id ]
[ Event-Timestamp ]
[ Error-Message ]
[ Error-Reporting-Host ]
* [ Failed-AVP ]
[ Origin-AAA-Protocol ]
[ Origin-State-Id ]
[ NAS-Identifier ]
[ NAS-IP-Address ]
[ NAS-IPv6-Address ]
[ NAS-Port ]
[ NAS-Port-Id ]
[ NAS-Port-Type ]
[ Service-Type ]
[ Termination-Cause ]
[ Accounting-Realtime-Required ]
[ Acct-Interim-Interval ]
* [ Class ]
* [ Proxy-Info ]
* [ Route-Record ]
* [ AVP ]
;; ===========================================================================
@grouped
CHAP-Auth ::= < AVP Header: 402 >
{ CHAP-Algorithm }
{ CHAP-Ident }
[ CHAP-Response ]
* [ AVP ]
Tunneling ::= < AVP Header: 401 >
{ Tunnel-Type }
{ Tunnel-Medium-Type }
{ Tunnel-Client-Endpoint }
{ Tunnel-Server-Endpoint }
[ Tunnel-Preference ]
[ Tunnel-Client-Auth-Id ]
[ Tunnel-Server-Auth-Id ]
[ Tunnel-Assignment-Id ]
[ Tunnel-Password ]
[ Tunnel-Private-Group-Id ]
;; ===========================================================================
@enum NAS-Port-Type
ASYNC 0
SYNC 1
ISDN_SYNC 2
ISDN_ASYNC_V120 3
ISDN_ASYNC_V110 4
VIRTUAL 5
PIAFS 6
HDLC_CLEAR_CHANNEL 7
X25 8
X75 9
G3FAX 10
SDSL 11
ADSL-CAP 12
ADSL-DMT 13
IDSL 14
ETHERNET 15
XDSL 16
CABLE 17
WIRELESS_OTHER 18
'WIRELESS_802.11' 19
TOKEN-RING 20
FDDI 21
WIRELESS_CDMA2000 22
WIRELESS_UMTS 23
WIRELESS_1X-EV 24
IAPP 25
@enum Prompt
NO_ECHO 0
ECHO 1
@enum CHAP-Algorithm
WITH_MD5 5
@enum Service-Type
LOGIN 1
FRAMED 2
CALLBACK_LOGIN 3
CALLBACK_FRAMED 4
OUTBOUND 5
ADMINISTRATIVE 6
NAS_PROMPT 7
AUTHENTICATE_ONLY 8
CALLBACK_NAS_PROMPT 9
CALL_CHECK 10
CALLBACK_ADMINISTRATIVE 11
VOICE 12
FAX 13
MODEM_RELAY 14
IAPP-REGISTER 15
IAPP-AP-CHECK 16
AUTHORIZE_ONLY 17
@enum Framed-Protocol
PPP 1
SLIP 2
ARAP 3
GANDALF 4
XYLOGICS 5
X75 6
@enum Framed-Routing
NONE 0
SEND 1
LISTEN 2
SEND_AND_LISTEN 3
@enum Framed-Compression
NONE 0
VJ 1
IPX 2
STAC-LZS 3
@enum ARAP-Zone-Access
DEFAULT 1
FILTER_INCLUSIVELY 2
FILTER_EXCLUSIVELY 4
@enum Login-Service
TELNET 0
RLOGIN 1
TCP_CLEAR 2
PORTMASTER 3
LAT 4
X25-PAD 5
X25-T3POS 6
TCP_CLEAR_QUIET 8
@enum Tunnel-Type
PPTP 1
L2F 2
L2TP 3
ATMP 4
VTP 5
AH 6
IP-IP 7
MIN-IP-IP 8
ESP 9
GRE 10
DVS 11
IP-IN-IP 12
VLAN 13
@enum Tunnel-Medium-Type
IPV4 1
IPV6 2
NSAP 3
HDLC 4
BBN_1822 5
'802' 6
E163 7
E164 8
F69 9
X121 10
IPX 11
APPLETALK 12
DECNET_IV 13
BANYAN_VINES 14
E164_NSAP 15
@enum Acct-Authentic
RADIUS 1
LOCAL 2
REMOTE 3
DIAMETER 4
@enum Accounting-Auth-Method
PAP 1
CHAP 2
MS-CHAP-1 3
MS-CHAP-2 4
EAP 5
NONE 7
@enum Termination-Cause
USER_REQUEST 11
LOST_CARRIER 12
LOST_SERVICE 13
IDLE_TIMEOUT 14
SESSION_TIMEOUT 15
ADMIN_RESET 16
ADMIN_REBOOT 17
PORT_ERROR 18
NAS_ERROR 19
NAS_REQUEST 20
NAS_REBOOT 21
PORT_UNNEEDED 22
PORT_PREEMPTED 23
PORT_SUSPENDED 24
SERVICE_UNAVAILABLE 25
CALLBACK 26
USER_ERROR 27
HOST_REQUEST 28
SUPPLICANT_RESTART 29
REAUTHORIZATION_FAILURE 30
PORT_REINIT 31
PORT_DISABLED 32

350
dia/diameter_rfc4006_cc.dia Normal file
View File

@ -0,0 +1,350 @@
;;
;; %CopyrightBegin%
;;
;; Copyright Ericsson AB 2010-2013. All Rights Reserved.
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;
;; %CopyrightEnd%
;;
;;
;; RFC 4006, Diameter Credit-Control Application
;;
@id 4
@inherits diameter_gen_base_rfc6733
@inherits diameter_rfc4005_nasreq Filter-Id
;; ===========================================================================
@avp_types
CC-Correlation-Id 411 OctetString -
CC-Input-Octets 412 Unsigned64 M
CC-Money 413 Grouped M
CC-Output-Octets 414 Unsigned64 M
CC-Request-Number 415 Unsigned32 M
CC-Request-Type 416 Enumerated M
CC-Service-Specific-Units 417 Unsigned64 M
CC-Session-Failover 418 Enumerated M
CC-Sub-Session-Id 419 Unsigned64 M
CC-Time 420 Unsigned32 M
CC-Total-Octets 421 Unsigned64 M
CC-Unit-Type 454 Enumerated M
Check-Balance-Result 422 Enumerated M
Cost-Information 423 Grouped M
Cost-Unit 424 UTF8String M
Credit-Control 426 Enumerated M
Credit-Control-Failure-Handling 427 Enumerated M
Currency-Code 425 Unsigned32 M
Direct-Debiting-Failure-Handling 428 Enumerated M
Exponent 429 Integer32 M
Final-Unit-Action 449 Enumerated M
Final-Unit-Indication 430 Grouped M
Granted-Service-Unit 431 Grouped M
G-S-U-Pool-Identifier 453 Unsigned32 M
G-S-U-Pool-Reference 457 Grouped M
Multiple-Services-Credit-Control 456 Grouped M
Multiple-Services-Indicator 455 Enumerated M
Rating-Group 432 Unsigned32 M
Redirect-Address-Type 433 Enumerated M
Redirect-Server 434 Grouped M
Redirect-Server-Address 435 UTF8String M
Requested-Action 436 Enumerated M
Requested-Service-Unit 437 Grouped M
Restriction-Filter-Rule 438 IPFilterRule M
Service-Context-Id 461 UTF8String M
Service-Identifier 439 Unsigned32 M
Service-Parameter-Info 440 Grouped -
Service-Parameter-Type 441 Unsigned32 -
Service-Parameter-Value 442 OctetString -
Subscription-Id 443 Grouped M
Subscription-Id-Data 444 UTF8String M
Subscription-Id-Type 450 Enumerated M
Tariff-Change-Usage 452 Enumerated M
Tariff-Time-Change 451 Time M
Unit-Value 445 Grouped M
Used-Service-Unit 446 Grouped M
User-Equipment-Info 458 Grouped -
User-Equipment-Info-Type 459 Enumerated -
User-Equipment-Info-Value 460 OctetString -
Value-Digits 447 Integer64 M
Validity-Time 448 Unsigned32 M
;; ===========================================================================
@messages
CCR ::= < Diameter Header: 272, REQ, PXY >
< Session-Id >
{ Origin-Host }
{ Origin-Realm }
{ Destination-Realm }
{ Auth-Application-Id }
{ Service-Context-Id }
{ CC-Request-Type }
{ CC-Request-Number }
[ Destination-Host ]
[ User-Name ]
[ CC-Sub-Session-Id ]
[ Acct-Multi-Session-Id ]
[ Origin-State-Id ]
[ Event-Timestamp ]
* [ Subscription-Id ]
[ Service-Identifier ]
[ Termination-Cause ]
[ Requested-Service-Unit ]
[ Requested-Action ]
* [ Used-Service-Unit ]
[ Multiple-Services-Indicator ]
* [ Multiple-Services-Credit-Control ]
* [ Service-Parameter-Info ]
[ CC-Correlation-Id ]
[ User-Equipment-Info ]
* [ Proxy-Info ]
* [ Route-Record ]
* [ AVP ]
CCA ::= < Diameter Header: 272, PXY >
< Session-Id >
{ Result-Code }
{ Origin-Host }
{ Origin-Realm }
{ Auth-Application-Id }
{ CC-Request-Type }
{ CC-Request-Number }
[ User-Name ]
[ CC-Session-Failover ]
[ CC-Sub-Session-Id ]
[ Acct-Multi-Session-Id ]
[ Origin-State-Id ]
[ Event-Timestamp ]
[ Granted-Service-Unit ]
* [ Multiple-Services-Credit-Control ]
[ Cost-Information]
[ Final-Unit-Indication ]
[ Check-Balance-Result ]
[ Credit-Control-Failure-Handling ]
[ Direct-Debiting-Failure-Handling ]
[ Validity-Time]
* [ Redirect-Host]
[ Redirect-Host-Usage ]
[ Redirect-Max-Cache-Time ]
* [ Proxy-Info ]
* [ Route-Record ]
* [ Failed-AVP ]
* [ AVP ]
;; ===========================================================================
@grouped
Cost-Information ::= < AVP Header: 423 >
{ Unit-Value }
{ Currency-Code }
[ Cost-Unit ]
Unit-Value ::= < AVP Header: 445 >
{ Value-Digits }
[ Exponent ]
Multiple-Services-Credit-Control ::= < AVP Header: 456 >
[ Granted-Service-Unit ]
[ Requested-Service-Unit ]
* [ Used-Service-Unit ]
[ Tariff-Change-Usage ]
* [ Service-Identifier ]
[ Rating-Group ]
* [ G-S-U-Pool-Reference ]
[ Validity-Time ]
[ Result-Code ]
[ Final-Unit-Indication ]
* [ AVP ]
Granted-Service-Unit ::= < AVP Header: 431 >
[ Tariff-Time-Change ]
[ CC-Time ]
[ CC-Money ]
[ CC-Total-Octets ]
[ CC-Input-Octets ]
[ CC-Output-Octets ]
[ CC-Service-Specific-Units ]
* [ AVP ]
Requested-Service-Unit ::= < AVP Header: 437 >
[ CC-Time ]
[ CC-Money ]
[ CC-Total-Octets ]
[ CC-Input-Octets ]
[ CC-Output-Octets ]
[ CC-Service-Specific-Units ]
* [ AVP ]
Used-Service-Unit ::= < AVP Header: 446 >
[ Tariff-Change-Usage ]
[ CC-Time ]
[ CC-Money ]
[ CC-Total-Octets ]
[ CC-Input-Octets ]
[ CC-Output-Octets ]
[ CC-Service-Specific-Units ]
* [ AVP ]
CC-Money ::= < AVP Header: 413 >
{ Unit-Value }
[ Currency-Code ]
G-S-U-Pool-Reference ::= < AVP Header: 457 >
{ G-S-U-Pool-Identifier }
{ CC-Unit-Type }
{ Unit-Value }
Final-Unit-Indication ::= < AVP Header: 430 >
{ Final-Unit-Action }
* [ Restriction-Filter-Rule ]
* [ Filter-Id ]
[ Redirect-Server ]
Redirect-Server ::= < AVP Header: 434 >
{ Redirect-Address-Type }
{ Redirect-Server-Address }
Service-Parameter-Info ::= < AVP Header: 440 >
{ Service-Parameter-Type }
{ Service-Parameter-Value }
Subscription-Id ::= < AVP Header: 443 >
{ Subscription-Id-Type }
{ Subscription-Id-Data }
User-Equipment-Info ::= < AVP Header: 458 >
{ User-Equipment-Info-Type }
{ User-Equipment-Info-Value }
;; ===========================================================================
@enum CC-Request-Type
INITIAL_REQUEST 1
UPDATE_REQUEST 2
TERMINATION_REQUEST 3
EVENT_REQUEST 4
@enum CC-Session-Failover
NOT_SUPPORTED 0
SUPPORTED 1
@enum Check-Balance-Result
ENOUGH_CREDIT 0
NO_CREDIT 1
@enum Credit-Control
AUTHORIZATION 0
RE_AUTHORIZATION 1
@enum Credit-Control-Failure-Handling
TERMINATE 0
CONTINUE 1
RETRY_AND_TERMINATE 2
@enum Direct-Debiting-Failure-Handling
TERMINATE_OR_BUFFER 0
CONTINUE 1
@enum Tariff-Change-Usage
UNIT_BEFORE_TARIFF_CHANGE 0
UNIT_AFTER_TARIFF_CHANGE 1
UNIT_INDETERMINATE 2
@enum CC-Unit-Type
TIME 0
MONEY 1
TOTAL-OCTETS 2
INPUT-OCTETS 3
OUTPUT-OCTETS 4
SERVICE-SPECIFIC-UNITS 5
@enum Final-Unit-Action
TERMINATE 0
REDIRECT 1
RESTRICT_ACCESS 2
@enum Redirect-Address-Type
IPV4 0
IPV6 1
URL 2
SIP_URI 3
@enum Multiple-Services-Indicator
NOT_SUPPORTED 0
SUPPORTED 1
@enum Requested-Action
DIRECT_DEBITING 0
REFUND_ACCOUNT 1
CHECK_BALANCE 2
PRICE_ENQUIRY 3
@enum Subscription-Id-Type
END_USER_E164 0
END_USER_IMSI 1
END_USER_SIP_URI 2
END_USER_NAI 3
END_USER_PRIVATE 4
@enum User-Equipment-Info-Type
IMEISV 0
MAC 1
EUI64 2
MODIFIED_EUI64 3
;; ===========================================================================
@define Result-Code
END_USER_SERVICE_DENIED 4010
CREDIT_CONTROL_NOT_APPLICABLE 4011
CREDIT_LIMIT_REACHED 4012
USER_UNKNOWN 5030
RATING_FAILED 5031

View File

@ -0,0 +1,377 @@
;; Copyright 2017, Travelping GmbH <info@travelping.com>
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License
;; as published by the Free Software Foundation; either version
;; 2 of the License, or (at your option) any later version.
;;
;; RFC 7155, Diameter Network Access Server Application
;;
;;
;; Edits:
;;
;; - Framed-Appletalk-Link -> Framed-AppleTalk-Link
;; - Framed-Appletalk-Network -> Framed-AppleTalk-Network
;; - Framed-Appletalk-Zone -> Framed-AppleTalk-Zone
;;
@id 1
@name diameter_rfc7155_nasreq
@prefix diameter_nasreq
@vendor 0 IETF
@inherits diameter_gen_base_rfc6733
@avp_types
Accounting-Auth-Method 406 Enumerated M
Accounting-Input-Octets 363 Unsigned64 M
Accounting-Input-Packets 365 Unsigned64 M
Accounting-Output-Octets 364 Unsigned64 M
Accounting-Output-Packets 366 Unsigned64 M
Acct-Authentic 45 Enumerated M
Acct-Delay-Time 41 Unsigned32 M
Acct-Link-Count 51 Unsigned32 M
Acct-Session-Time 46 Unsigned32 M
Acct-Tunnel-Connection 68 OctetString M
Acct-Tunnel-Packets-Lost 86 Unsigned32 M
Callback-Id 20 UTF8String M
Callback-Number 19 UTF8String M
Called-Station-Id 30 UTF8String M
Calling-Station-Id 31 UTF8String M
Connect-Info 77 UTF8String M
Filter-Id 11 UTF8String M
Framed-AppleTalk-Link 37 Unsigned32 M
Framed-AppleTalk-Network 38 Unsigned32 M
Framed-AppleTalk-Zone 39 OctetString M
Framed-Compression 13 Enumerated M
Framed-IP-Address 8 OctetString M
Framed-IP-Netmask 9 OctetString M
Framed-IPX-Network 23 Unsigned32 M
Framed-IPv6-Pool 100 OctetString M
Framed-IPv6-Prefix 97 OctetString M
Framed-IPv6-Route 99 UTF8String M
Framed-Interface-Id 96 Unsigned64 M
Framed-MTU 12 Unsigned32 M
Framed-Pool 88 OctetString M
Framed-Protocol 7 Enumerated M
Framed-Route 22 UTF8String M
Framed-Routing 10 Enumerated M
Idle-Timeout 28 Unsigned32 M
Login-IP-Host 14 OctetString M
Login-IPv6-Host 98 OctetString M
Login-LAT-Group 36 OctetString M
Login-LAT-Node 35 OctetString M
Login-LAT-Port 63 OctetString M
Login-LAT-Service 34 OctetString M
Login-Service 15 Enumerated M
Login-TCP-Port 16 Unsigned32 M
NAS-Filter-Rule 400 IPFilterRule M
NAS-IP-Address 4 OctetString M
NAS-IPv6-Address 95 OctetString M
NAS-Identifier 32 UTF8String M
NAS-Port 5 Unsigned32 M
NAS-Port-Id 87 UTF8String M
NAS-Port-Type 61 Enumerated M
Origin-AAA-Protocol 408 Enumerated M
Originating-Line-Info 94 OctetString M
Port-Limit 62 Unsigned32 M
QoS-Filter-Rule 407 QoSFilterRule M
Service-Type 6 Enumerated M
Tunnel-Assignment-Id 82 OctetString M
Tunnel-Client-Auth-Id 90 UTF8String M
Tunnel-Client-Endpoint 66 UTF8String M
Tunnel-Medium-Type 65 Enumerated M
Tunnel-Password 69 OctetString M
Tunnel-Preference 83 Unsigned32 M
Tunnel-Private-Group-Id 81 OctetString M
Tunnel-Server-Auth-Id 91 UTF8String M
Tunnel-Server-Endpoint 67 UTF8String M
Tunnel-Type 64 Enumerated M
Tunneling 401 Grouped M
@messages
ACR ::= <Diameter Header: 271, REQ, PXY>
< Session-Id >
{ Origin-Host }
{ Origin-Realm }
{ Destination-Realm }
{ Accounting-Record-Type }
{ Accounting-Record-Number }
{ Acct-Application-Id }
[ User-Name ]
[ Accounting-Sub-Session-Id ]
[ Acct-Session-Id ]
[ Acct-Multi-Session-Id ]
[ Origin-AAA-Protocol ]
[ Origin-State-Id ]
[ Destination-Host ]
[ Event-Timestamp ]
[ Acct-Delay-Time ]
[ NAS-Identifier ]
[ NAS-IP-Address ]
[ NAS-IPv6-Address ]
[ NAS-Port ]
[ NAS-Port-Id ]
[ NAS-Port-Type ]
* [ Class ]
[ Service-Type ]
[ Termination-Cause ]
[ Accounting-Input-Octets ]
[ Accounting-Input-Packets ]
[ Accounting-Output-Octets ]
[ Accounting-Output-Packets ]
[ Acct-Authentic ]
[ Accounting-Auth-Method ]
[ Acct-Link-Count ]
[ Acct-Session-Time ]
[ Acct-Tunnel-Connection ]
[ Acct-Tunnel-Packets-Lost ]
[ Callback-Id ]
[ Callback-Number ]
[ Called-Station-Id ]
[ Calling-Station-Id ]
* [ Connect-Info ]
[ Originating-Line-Info ]
[ Authorization-Lifetime ]
[ Session-Timeout ]
[ Idle-Timeout ]
[ Port-Limit ]
[ Accounting-Realtime-Required ]
[ Acct-Interim-Interval ]
* [ Filter-Id ]
* [ NAS-Filter-Rule ]
* [ QoS-Filter-Rule ]
[ Framed-AppleTalk-Link ]
[ Framed-AppleTalk-Network ]
[ Framed-AppleTalk-Zone ]
[ Framed-Compression ]
[ Framed-Interface-Id ]
[ Framed-IP-Address ]
[ Framed-IP-Netmask ]
* [ Framed-IPv6-Prefix ]
[ Framed-IPv6-Pool ]
* [ Framed-IPv6-Route ]
[ Framed-IPX-Network ]
[ Framed-MTU ]
[ Framed-Pool ]
[ Framed-Protocol ]
* [ Framed-Route ]
[ Framed-Routing ]
* [ Login-IP-Host ]
* [ Login-IPv6-Host ]
[ Login-LAT-Group ]
[ Login-LAT-Node ]
[ Login-LAT-Port ]
[ Login-LAT-Service ]
[ Login-Service ]
[ Login-TCP-Port ]
* [ Tunneling ]
* [ Proxy-Info ]
* [ Route-Record ]
* [ AVP ]
ACA ::= <Diameter Header: 271, PXY>
< Session-Id >
{ Result-Code }
{ Origin-Host }
{ Origin-Realm }
{ Accounting-Record-Type }
{ Accounting-Record-Number }
{ Acct-Application-Id }
[ User-Name ]
[ Accounting-Sub-Session-Id ]
[ Acct-Session-Id ]
[ Acct-Multi-Session-Id ]
[ Event-Timestamp ]
[ Error-Message ]
[ Error-Reporting-Host ]
* [ Failed-AVP ]
[ Origin-AAA-Protocol ]
[ Origin-State-Id ]
[ NAS-Identifier ]
[ NAS-IP-Address ]
[ NAS-IPv6-Address ]
[ NAS-Port ]
[ NAS-Port-Id ]
[ NAS-Port-Type ]
[ Service-Type ]
[ Termination-Cause ]
[ Accounting-Realtime-Required ]
[ Acct-Interim-Interval ]
* [ Class ]
* [ Proxy-Info ]
* [ AVP ]
@enum Service-Type
UNKNOWN 0
LOGIN 1
FRAMED 2
CALLBACK_LOGIN 3
CALLBACK_FRAMED 4
OUTBOUND 5
ADMINISTRATIVE 6
NAS_PROMPT 7
AUTHENTICATE_ONLY 8
CALLBACK_NAS_PROMPT 9
CALL_CHECK 10
CALLBACK_ADMINISTRATIVE 11
VOICE 12
FAX 13
MODEM_RELAY 14
IAPP_REGISTER 15
IAPP_AP_CHECK 16
AUTHORIZE_ONLY 17
FRAMED_MANAGEMENT 18
@enum Framed-Protocol
PPP 1
SLIP 2
ARAP 3
GANDALF 4
XYLOGICS 5
X_75 6
GPRS_PDP_CONTEXT 7
ASCEND_ARA 255
MPP 256
EURAW 257
EUUI 258
X25 259
COMB 260
FR 261
@enum Framed-Routing
NONE 0
SEND_ROUTING_PACKETS 1
LISTEN_FOR_ROUTING_PACKETS 2
SEND_AND_LISTEN 3
@enum Framed-Compression
NONE 0
IPX_HEADER_COMPRESSION 2
STAC_LZS_COMPRESSION 3
@enum Login-Service
TELNET 0
RLOGIN 1
TCP_CLEAR 2
PORTMASTER 3
LAT 4
X25_PAD 5
X25_T3POS 6
UNASSIGNED 7
@enum Acct-Authentic
NONE 0
RADIUS 1
LOCAL 2
REMOTE 3
DIAMETER 4
@enum NAS-Port-Type
ASYNC 0
SYNC 1
ISDN_SYNC 2
ISDN_ASYNC_V120 3
ISDN_ASYNC_V110 4
VIRTUAL 5
PIAFS 6
HDLC_CLEAR_CHANNEL 7
X25 8
X75 9
G_3_FAX 10
SDSL_SYMMETRIC_DSL 11
IDSL_ISDN_DIGITAL_SUBSCRIBER_LINE 14
ETHERNET 15
XDSL_DIGITAL_SUBSCRIBER_LINE_OF_UNKNOWN_TYPE 16
CABLE 17
WIRELESS_OTHER 18
WIRELESS_IEEE_802_11 19
TOKEN_RING 20
FDDI 21
WIRELESS_CDMA2000 22
WIRELESS_UMTS 23
WIRELESS_1X_EV 24
IAPP 25
FTTP_FIBER_TO_THE_PREMISES 26
WIRELESS_IEEE_802_16 27
WIRELESS_IEEE_802_20 28
WIRELESS_IEEE_802_22 29
PPPOA_PPP_OVER_ATM 30
PPPOEOA_PPP_OVER_ETHERNET_OVER_ATM 31
PPPOEOE_PPP_OVER_ETHERNET_OVER_ETHERNET 32
PPPOEOVLAN_PPP_OVER_ETHERNET_OVER_VLAN 33
PPPOEOQINQ_PPP_OVER_ETHERNET_OVER_IEEE_802_1QINQ 34
XPON_PASSIVE_OPTICAL_NETWORK 35
WIRELESS_XGP 36
@enum Tunnel-Type
PPTP 1
L2F 2
L2TP 3
ATMP 4
VTP 5
AH 6
IP_IP_ENCAP 7
MIN_IP_IP 8
ESP 9
GRE 10
DVS 11
IP_IN_IP_TUNNELING 12
VLAN 13
@enum Tunnel-Medium-Type
IPV4 1
IPV6 2
NSAP 3
HDLC 4
BBN 5
IEEE_802 6
E_163 7
E_164 8
F_69 9
X_121 10
IPX 11
APPLETALK_802 12
DECNET4 13
VINES 14
E_164_NSAP 15
@enum Accounting-Auth-Method
PAP 1
CHAP 2
MS_CHAP_1 3
MS_CHAP_2 4
EAP 5
UNDEFINED 6
NONE 7
@enum Origin-AAA-Protocol
RADIUS 1
@grouped
Tunneling ::= <AVP Header: 401>
{ Tunnel-Type }
{ Tunnel-Medium-Type }
{ Tunnel-Client-Endpoint }
{ Tunnel-Server-Endpoint }
[ Tunnel-Preference ]
[ Tunnel-Client-Auth-Id ]
[ Tunnel-Server-Auth-Id ]
[ Tunnel-Assignment-Id ]
[ Tunnel-Password ]
[ Tunnel-Private-Group-Id ]