> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/smc/3.15/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/smc/3.15/soc/radius.md).

# RADIUS support

Session Management Controller (SMC) follows the general guidelines of the [3GPP 29.061](https://www.3gpp.org/DynaReport/29061.htm) specification.
RADIUS Authentication and Authorization is used according to RFC2865, RFC4818, and RFC4005 specifications.

## RADIUS Access-Requests

| AVP | Reference | Description | Required |
| --- | --- | --- | --- |
| 3GPP-Charging-ID | 3GPP TS29.061 | Charging ID | No |
| 3GPP-GGSN-Address | 3GPP TS29.061 | IP-Address | No |
| 3GPP-GGSN-MCC-MNC | 3GPP TS29.061 | MCC-MNC of the network that the GGSN belongs to | No |
| 3GPP-IMEISV | 3GPP TS29.061 | International Mobile Equipment Id and its Software Version | No |
| 3GPP-IMSI | 3GPP TS29.061 | International Mobile Subscriber Identity (IMSI) | No |
| 3GPP-IMSI-MCC-MNC | 3GPP TS29.061 | MCC-MNC extracted from IMSI | No |
| 3GPP-MS-Timezone | 3GPP TS29.061 | Mobile Station Timezone | No |
| 3GPP-NSAPI | 3GPP TS29.061 | Network Service Access Point Indentifier | No |
| 3GPP-PDP-Type | 3GPP TS29.061 | Packet Data Protocol (PDP) type. Can be either "IPv4" or "IPv6". | Conditional. Mandatory if the attribute `3GPP-GGSN-Address` is present. |
| 3GPP-RAT-Type | 3GPP TS29.061 | Radio Access Technology Type | No |
| 3GPP-SGSN-Address | 3GPP TS29.061 | IP address | No |
| 3GPP-SGSN-MCC-MNC | 3GPP TS29.061 | MCC-MNC of Visited Network | No |
| 3GPP-Selection-Mode | 3GPP TS29.061 | Selection mode for the PDP context received in the `Create PDP Context Request` message | No |
| 3GPP-User-Location-Info | 3GPP TS29.061 | User Location Information | No |
| 3GPP-Charging-Characteristics | 3GPP TS29.061 | For GGSN, it contains the charging characteristics for this PDP Context received in the Create PDP Context Request Message. For P-GW, it contains the charging characteristics for the IP-CAN bearer. | No |
| 3GPP-GGSN-IPv6-Address | 3GPP TS29.061 | For GGSN, it represents the GGSN IPv6 address that is used by the GTP control plane for the context establishment. For P-GW, it represents the P-GW IPv6 address that is used on S5/S8, S2a, S2b or S2c control plane for the IP-CAN session establishment. | No |
| Acct-Multi-Session-Id | RFC 2866 | Accounting ID used to link multiple related sessions | No |
| Acct-Session-Id | RFC 2866 | Accounting session ID | Yes |
| Called-Station-Id | RFC 4005 | Data Network Name (DNN) or Access Point Name (APN) of the called station | Yes |
| Calling-Station-Id | RFC 4005 | Mobile Station International Subscriber Directory Number (MSISDN) value | No |
| Framed-Pool | RFC 4005 | Name of an assigned address pool used to assign an address for the user | No |
| Framed-Protocol | RFC 4005 | GRPS PDP Context | No |
| Framed-IP-Address | RFC 4005 | UE IPv4 address | Conditional. One case is that IPv6 prefix attributes must be present. In another case, its value is an IPv4, IPv6, or IPv4v6, IPv4 address with IPv6 prefix attributes presented. |
| Framed-IPv6-Pool | RFC 4005 | Name of the IPv6 prefix pool | No |
| Framed-Ipv6-Prefix | RFC 4005 | UE IPv6 prefix | Conditional. One case is that IPv6 prefix attributes must be present. In another case, its value is IPv4, IPv6, or IPv4v6, IPv4 address address with IPv6 prefix attributes presented. |
| Framed-Interface-Id | RFC 4005 | IPv6 Interface Identifier provided by the GGSN/P-GW to the UE at Initial Attach. | Conditional. Following 9.2.1.1 of 3GPP TS 23.060 and subclause 5.3.1.2.2 of 3GPP TS 23.401 the UE shall use this interface identifier to configure its link-local address. |
| Message-Authenticator | RFC 2869 5.19 | Authenticate and integrity-protect Access-Requests | Yes |
| NAS-IP-Address | 3GPP TS29.061 | IP address | Conditional. If the `3GPP-PDP-Type` is IPv4, IPv6, or IPv4v6, then either `NAS-IP-Address` or `NAS-Identifier` must be present. |
| NAS-Identifier | 3GPP TS29.061 | Hostname of the GGSN/P-GW | Conditional. If the `3GPP-PDP-Type` is IPv4, IPv6, or IPv4v6, then either `NAS-IP-Address` or `NAS-Identifier` must be present. |
| Service-Type | 3GPP TS29.061 | The type of service for the user | No |
| User-Name | RFC2865 5.1 | Username provided by the user | Yes |
| User-Password | RFC2865 5.2 | User password provided as an encrypted string | Conditional. Must be present if `Password Authentication Protocol` is used. |

## Access-Accept

| AVP | Reference | Description | Required |
| --- | --- | --- | --- |
| 3GPP-IPv6-DNS-Servers | 3GPP TS29.061 | List of IPv6 addresses of DNS servers for this APN | Conditional. Depending on IP address(es) allocated to the user, either or both IPv4 and IPv6 address attributes shall be present. |
| Class | 3GPP TS29.061 | Identifier to be used in all subsequent accounting messages. | No |
| Framed-IP-Address | RFC 4005 | UE IPv4 address | Conditional. One case is that IPv6 prefix attributes must be present. In another case, its value is an IPv4, IPv6, or IPv4v6, IPv4 address with IPv6 prefix attributes presented. |
| Framed-Protocol | 3GPP TS29.061 | GPRS PDP Context | No |
| Framed MTU| 3GPP TS29.061 | Maximum Transmission Unit of the PDP PDUs, between the MS and GGSN/P-GWs | No |
| Framed-Interface-Id | RFC 4005 | IPv6 Interface Identifier provided by the GGSN/P-GW to the UE at Initial Attach. | Conditional. Following 9.2.1.1 of 3GPP TS 23.060 and subclause 5.3.1.2.2 of 3GPP TS 23.401 the UE shall use this interface identifier to configure its link-local address. |
| Idle-Timeout | 3GPP TS29.061 | Timeout value (in seconds) for idle user session | No |
| MS-Primary-DNS-Server | RFC 2548 | IP address of the primary Domain Name Server (DNS) | No |
| MS-Secondary-DNS-Server | RFC 2548 | IP address of the secondary Domain Name Server (DNS) | No |
| MS-Primary-NBNS-Server | RFC 2548 | IP address of the primary NetBIOS Name Server | No |
| MS-Secondary-NBNS-Server | RFC 2548 | IP address of the secondary NetBIOS Name Server | No |
| Service-Type | 3GPP TS29.061 | The type of service for the user | No |
| Message-Authenticator | RFC 2869 5.19 | Authenticate and integrity-protect Access-Requests | Yes |
| Acct-Interim-Interval | | Interval in seconds between 2 consecutive Accounting-Interims for the same sessions | No |

## Access-Reject

| AVP | Reference | Description | Required |
| --- | --- | --- | --- |
| Reply-Message | | Text describing the reason for the Access-Reject | No |

## RADIUS Accounting Requests

| AVP | Reference | Description | Required |
| --- | --- | --- | --- |
| 3GPP-Charging-ID | 3GPP TS29.061 | Charging ID | No |
| 3GPP-GGSN-Address | 3GPP TS29.061 | IP-Address | No |
| 3GPP-GGSN-MCC-MNC | 3GPP TS29.061 | MCC-MNC of the network that the GGSN belongs to | No |
| 3GPP-GPRS-Negotiated-QoS-profile | 3GPP TS29.061 | QoS profile applied by GGSN | No |
| 3GPP-IMEISV | 3GPP TS29.061 | International Mobile Equipment ID and its software version | No |
| 3GPP-IMSI | 3GPP TS29.061 | International Mobile Subcriber Identity | No |
| 3GPP-IMSI-MCC-MNC | 3GPP TS29.061 | MCC-MNC extracted from IMSI | No |
| 3GPP-MS-TimeZone | 3GPP TS29.061 | Mobile Station Timezone | No |
| 3GPP-NASAPI | 3GPP TS29.061 | Network Service Access Point Indentifier | No |
| 3GPP-PDP-Type | 3GPP TS29.061 | Packet Data Protocol (PDP) type. Can be either "IPv4" or "IPv6". | Conditional. Mandatory if the attribute `3GPP-GGSN-Address` is present. |
| 3GPP-RAT-Type | 3GPP TS29.061 | Radio Access Technology type | No |
| 3GPP-SGSN-Address | 3GPP TS29.061 | IP-Address | No |
| 3GPP-SGSN-MCC-MNC | 3GPP TS29.061 | MCC-MNC of the network that the SGSN belongs to | No |
| 3GPP-Selection-Mode | 3GPP TS29.061 | Selection mode for the PDP context received in the `Create PDP Context Request` message | No |
| 3GPP-User-Location-Info | 3GPP TS29.061 | Indicates details of where the UE is currently located | No |
| 3GPP-Charging-Characteristics | 3GPP TS29.061 | For GGSN, it contains the charging characteristics for this PDP Context received in the Create PDP Context Request Message. For P-GW, it contains the charging characteristics for the IP-CAN bearer. | No |
| 3GPP-GGSN-IPv6-Address | 3GPP TS29.061 | For GGSN, it represents the GGSN IPv6 address that is used by the GTP control plane for the context establishment. For P-GW, it represents the P-GW IPv6 address that is used on S5/S8, S2a, S2b or S2c control plane for the IP-CAN session establishment. | No |
| Acct-Authentic | RFC 4005n| Authentication method | No |
| Acct-Input-Gigawords | RFC 2869 | Number of times that the Acct-Input-Octets counter has exceeded and wrapped over 2^32 since this transaction’s inception | Conditional. Only present if the Acct-Input-Octets counter has wrapped around 2^32. |
| Acct-Output-Gigawords | RFC 2866 | Number of times that the Acct-Output-Octets counter has exceeded and wrapped over 2^32 since this transaction’s inception | Conditional. Only present if the Acct-Output-Octets counter has wrapped around 2^32. |
| Acct-Input-Octets | RFC 2866 | Number of incoming octets passed through a specific client port during one session | No |
| Acct-Output-Octets | RFC 2866 | Number of outgoing octets transmitted through a specific client port during one session | No |
| Acct-Input-Packets | RFC 2866 | Number of incoming packages passed through a specific client port during one session| No |
| Acct-Output-Packets | RFC 2866 | Number of outgoing packages transmitted through a specific client port during one session | No |
| Acct-Multi-Session-Id | RFC 2866 | Accounting ID used to link multiple related sessions | No |
| Acct-Session-Id | RFC 2866 | Accounting session ID | Yes |
| Acct-Session-Time | RFC 2866 | Duration of an accounting session | No |
| Acct-Status-Type | RFC 2866 | Accounting session status type. Can be `Start`, `Interim-Update`, or `Stop`. | Yes |
| Acct-Terminate-Cause | RFC 2866 | Reason the accounting session was terminated | No |
| Called-Station-Id | RFC 2865 | Identifier for the target network | Yes |
| Calling-Station-Id | RFC 2865 | Identifier for the mobile station (MS) | No |
| Class | 3GPP TS29.061 | This AVP was included in the Access-Accept | No |
| Event-Timestamp | RFC2869 5.3 | Time when an event occurs | Yes |
| Framed-IP-Address | RFC 4005 | UE IPv4 address | Conditional. One case is that IPv6 prefix attributes must be present. In another case, its value is an IPv4, IPv6, or IPv4v6, IPv4 address with IPv6 prefix attributes presented. |
| Framed-IPv6-Pool | RFC 4005 | Name of the IPv6 prefix pool | No |
| Framed-Pool | RFC 4005 | Name of an assigned address pool used to assign an address for the user | No |
| Framed-Protocol | RFC 4005 | GPRS PDP context | No |
| Framed-Interface-Id | RFC 4005 | IPv6 Interface Identifier provided by the GGSN/P-GW to the UE at Initial Attach. | Conditional. Following 9.2.1.1 of 3GPP TS 23.060 and subclause 5.3.1.2.2 of 3GPP TS 23.401 the UE shall use this interface identifier to configure its link-local address. |
| DNS-Server-IPv6-Address | RFC 6911 | IPv6 address of the DNS server | No |
| NAS-IP-Address | 3GPP TS29.061 | IP address | Conditional. Either `NAS-IP-Address` or `NAS-Identifier` must be present. |
| NAS-Identifier | 3GPP TS29.061 | Hostname of the GGSN/P-GW | Conditional. Either `NAS-IP-Address` or `NAS-Identifier` must be present. |
| Service-Type | 3GPP TS29.061 | The type of service for the user | No |
| User-Name | 3GPP TS29.061 | Username is provided by the user | Yes |

## External reference

* [3GPP TS29.061](https://www.3gpp.org/DynaReport/29061.htm)
* [RFC2865](https://datatracker.ietf.org/doc/html/rfc2865)
* [RFC2866](https://datatracker.ietf.org/doc/html/rfc2866)
* [RFC2869](https://datatracker.ietf.org/doc/html/rfc2869)
* [RFC4005](https://datatracker.ietf.org/doc/html/rfc4005)
