1 Sy Interface Overview
The SAPC performs Policy Control functions through Gx interface using the information about Policy Counters received in Sy interface.
3GPP Sy is built over Diameter Base Protocol RFC. The SAPC supports 3GPP Sy from Rel11 onwards.
For detailed support about 3GPP Release versions of Policy and Charging Control: Spending Limit Reporting over Sy reference point - 3GPP TS 29.219, see the corresponding Statement of Compliance documents.
Ericsson has developed a proprietary Sy Interface. This Ericsson Sy interface can be used for spending limit reporting and subscription information delivery between the SAPC and the Ericsson Charging System.
1.1 Document Content Conventions
This document contains the specific details supported by the SAPC implementation.
This document does not repeat information that can be found in 3GPP Technical Specifications or Diameter Base Protocol RFC.
For detailed information about Statement of Compliance towards different 3GPP Release versions (for example Rel13, Rel14 and so on), see the corresponding SoCs documents.
Each message is described with the list of parameters (AVPs) exchanged between the Diameter peers.
| Note: |
When the SAPC does not support a message or AVP for all 3GPP
Release versions, it is explicitly indicated in this document. |
2 Sy Interface Message Exchange
As an example of the Diameter message exchange in a communication between the OCS and the SAPC, see the following figure:
The SAPC sends the Spending-Limit-Report request command to the OCS to get information about the status of
stored spending limits. This information is used to determine the
answer to the Gx CCR initial request. The SAPC builds the Gx
CCA Initial using the response from the OCS with other subscriber
data.
The SAPC considers the information stored in the Sy session to process subsequent Gx Updates, so it is not necessary to contact the OCS again.
The OCS sends the Spending-Status-Notification command to the SAPC when there is an update in spending limits. The SAPC uses
the updated received information with other subscriber data to determine
if the active IP-CAN sessions must be reauthorized.
The SAPC sends the Session-Termination command to the OCS when the Gx session is terminated for the subscriber.
The SAPC sends Capabilities-Exchange Request when a Sy connection is
configured, and Disconnect-Peer Request
when it is removed from the configuration.
3 Diameter Base Protocol Messages
3.1 Sy Capability Negotiation
Table 1 lists the AVPs that the SAPC sends in a CER message.
|
AVP Name |
AVP Code |
Comment |
Reference |
|
[ Firmware-Revision ] |
367 |
- |
RFC 6733 |
|
1* { Host-IP-Address } |
257 |
- |
RFC 6733 |
|
{ Origin-Host } |
264 |
- |
RFC 6733 |
|
{ Origin-Realm } |
296 |
- |
RFC 6733 |
|
{ Product-Name } |
269 |
- |
RFC 6733 |
|
* [ Supported-Vendor-Id ] |
265 |
According to configuration, the SAPC sends the values assigned to other supported vendors different than the vendor device (Ericsson):
|
RFC 6733 |
|
{ Vendor-Id } |
266 |
The SAPC sets it to value 193 (Ericsson). |
RFC 6733 |
|
* [ Vendor-Specific-Application-Id ] |
260 |
According to configuration, the SAPC sends the following AVP values: For 3GPP Sy: For Ericsson Sy:
|
RFC 6733 |
Table 2 lists the AVPs that the SAPC support in a CEA message.
|
AVP Name |
AVP Code |
Comment |
Reference |
|---|---|---|---|
|
|
258 |
- |
RFC 6733 |
|
|
281 |
- |
RFC 6733 |
|
|
279 |
RFC 6733 |
|
|
|
367 |
- |
RFC 6733 |
|
|
257 |
- |
RFC 6733 |
|
|
264 |
- |
RFC 6733 |
|
|
296 |
- |
RFC 6733 |
|
|
269 |
- |
RFC 6733 |
|
|
268 |
- |
RFC 6733 |
|
|
265 |
- |
RFC 6733 |
|
|
266 |
- |
RFC 6733 |
|
|
260 |
- |
RFC 6733 |
| Note: |
The SAPC does not handle Origin-State-Id AVP in CEA message. |
3.2 Device Watchdog
Table 3 lists the AVPs that the SAPC can receive or send in a DWR message.
|
AVP Name |
AVP Code |
Comment |
Reference |
|---|---|---|---|
|
|
264 |
- |
RFC 6733 |
|
|
296 |
- |
RFC 6733 |
|
|
278 |
- |
RFC 6733 |
| Note: |
The SAPC does not include Origin-State-Id AVP when it sends an outgoing DWR message. |
Table 4 lists the AVPs that the SAPC can receive or send in a DWA message.
|
AVP Name |
AVP Code |
Comment |
Reference |
|---|---|---|---|
|
|
281 |
- |
RFC 6733 |
|
|
279 |
- |
RFC 6733 |
|
|
264 |
- |
RFC 6733 |
|
|
296 |
- |
RFC 6733 |
|
|
278 |
- |
RFC 6733 |
| Note: |
The SAPC does not include Origin-State-Id AVP when it sends an outgoing DWA message. |
4 Sy Interface Message Format
4.1 Sy Spending-Limit-Request (SLR)
Table 7 lists the AVPs that the SAPC sends in an SLR message.
|
AVP Name |
AVP Code |
Comment |
Reference |
|---|---|---|---|
|
|
263 |
- |
RFC 6733 |
|
|
258 |
- |
|
|
|
283 |
- |
RFC 6733 |
|
|
264 |
- |
RFC 6733 |
|
|
296 |
- |
RFC 6733 |
|
|
278 |
The SAPC increments its value in standalone mode after restart. In geographical redundancy, the SAPC does not increment its value unless both SAPC peers are down. This MUST never happen, as the SAPC does a transparent switch-over (the Diameter peer always sees an operative node, the one in active state). |
RFC 6733 |
|
|
2904 |
The SAPC supports the following values:
|
|
|
|
443 |
The SAPC sends a single instance of this AVP, including inside the same Subscription-Type as the one considered for Gx traffic. |
RFC 4006 |
4.2 Sy Spending-Limit-Answer (SLA)
Table 8 lists the AVPs that the SAPC supports in a SLA message.
|
AVP Name |
AVP Code |
Comment |
Reference |
|---|---|---|---|
|
|
263 |
- |
RFC 6733 |
|
|
258 |
- |
|
|
|
297 |
- |
RFC 6733 |
|
|
279 |
- |
RFC 6733 |
|
|
264 |
- |
RFC 6733 |
|
|
296 |
- |
RFC 6733 |
|
|
2903 |
The SAPC supports the following AVPs:
|
|
|
|
268 |
- |
RFC 6733 |
4.3 Sy Spending-Status-Notification-Request (SNR)
Table 9 lists the AVPs that the SAPC supports in a SNR message.
4.4 Sy Spending-Status-Notification-Answer (SNA)
4.5 Sy Session-Termination-Request (STR)
Table 11 lists the AVPs that the SAPC sends in a STR message.
|
AVP Name |
AVP Code |
Comment |
Reference |
|---|---|---|---|
|
|
263 |
- |
RFC 6733 |
|
|
258 |
- |
|
|
|
283 |
- |
RFC 6733 |
|
|
264 |
- |
RFC 6733 |
|
|
296 |
- |
RFC 6733 |
|
|
278 |
See Origin-State-Id |
RFC 6733 |
|
|
295 |
The SAPC supports the following values:
|
RFC 6733 |
5 Ericsson Sy Message Format
This section contains the information about Ericsson Sy interface.
5.1 Ericsson Sy Spending-Limit-Request (SLR)
The Ericsson SLR command, indicated by the Command-Code field set to 8388633 and the 'R' bit set in the Command Flags field, is sent by the SAPC to the OCS to request balance information and subscription information to be used for Policy and Charging control.
Table 12 lists the AVPs that the SAPC sends in an Ericsson SLR message.
|
AVP Name |
AVP Code |
Comment |
Reference |
|---|---|---|---|
|
|
263 |
- |
RFC 6733 |
|
|
258 |
- |
|
|
|
283 |
- |
RFC 6733 |
|
|
1356 |
The SAPC supports the following values:
|
- |
|
|
264 |
- |
RFC 6733 |
|
|
296 |
- |
RFC 6733 |
|
|
278 |
See Origin-State-Id |
RFC 6733 |
|
|
443 |
The SAPC sends a single instance of this AVP, including inside the same Subscription-Type as the one considered for Gx traffic. |
RFC 4006 |
5.2 Ericsson Sy Spending-Limit-Answer (SLA)
The Ericsson SLA command, indicated by the Command-Code field set to 8388633 and the 'R' bit cleared in the Command Flags field, is sent by the OCS to the SAPC in response to the SLR command.
It is used to return balance information (threshold states conveyed in counter states) and subscription information (conveyed in Policy Groups).
Table 13 lists the AVPs that the SAPC supports in an Ericsson SLA message.
|
AVP Name |
AVP Code |
Comment |
Reference |
|---|---|---|---|
|
|
263 |
- |
RFC 6733 |
|
|
258 |
- |
|
|
|
1355 |
Grouped. It is used to indicate the status of the policy counters assigned to a subscriber. To indicate that the conveyed The SAPC supports the following AVPs inside it:
|
- |
|
|
297 |
- |
RFC 6733 |
|
|
279 |
- |
RFC 6733 |
|
|
264 |
- |
RFC 6733 |
|
|
296 |
- |
RFC 6733 |
|
|
1347 |
Grouped. It indicates what services and conditions are applicable for the subscriber based on subscription information. The Policy Group definition is implemented and realized in the SAPC as a Subscriber Group. The Policy Group name is derived in the Ericsson Charging System from the subscribed products and other subscription information. The SAPC supports the following AVPs inside it:
|
- |
|
|
268 |
- |
RFC 6733 |
| Note: |
For [ Policy-Group-Activation-Time ]and [ Policy-Group-Deactivation-Time ] AVPs, the SAPC misunderstands NTP timestamp values greater
than 4294967295 (corresponding to 6h 28m 15s, 7 February 2036 GMT). |
5.3 Ericsson Sy Spending-Status-Notification-Request (SNR)
The Ericsson SNR command, indicated by the Command-Code field set to 8388634 and the 'R' bit set in the Command Flags field, is sent by the Ericsson Charging System to the SAPC to inform about changes in the thresholds state or about changes in the subscriber subscription.
Table 14 lists the AVPs that the SAPC supports in an Ericsson SNR.
|
AVP Name |
AVP Code |
Comment |
Reference |
|---|---|---|---|
|
|
263 |
- |
RFC 6733 |
|
|
258 |
- |
|
|
|
293 |
- |
RFC 6733 |
|
|
283 |
- |
RFC 6733 |
|
|
1355 |
- |
|
|
|
297 |
- |
RFC 6733 |
|
|
264 |
- |
RFC 6733 |
|
|
296 |
- |
RFC 6733 |
|
|
1347 |
See Policy-Group. |
- |
5.4 Ericsson Sy Spending-Status-Notification-Answer (SNA)
The SNA command, indicated by the Command-Code field set to 8388634 and the 'R' bit cleared in the Command Flags field, is sent by the SAPC to the OCS as part of the Spending Limit Report procedure. The Ericsson SNA message header contains Application-Id field set to 16777304 value.
Table 10 lists the AVPs that the SAPC sends in an Ericsson SNA message.
5.5 Ericsson Sy Session-Termination-Request (STR)
The only difference in the content of Ericsson STR compared to standard STR (see Sy Session-Termination-Request (STR)) is that the message header contains Application-Id field set to 16777304 value.
5.6 Ericsson Sy Session-Termination-Answer (STA)
The only difference in the content of Ericsson STA compared to standard STA (see Section Sy Session-Termination-Answer (STA)) is that the message header contains Application-Id field set to 16777304 value.
6 Sy Error Handling
When the SAPC detects an error at protocol or application level, it returns a response including the Result-Code AVP with an error code specifying the error.
6.1 Sy Protocol Errors
The SAPC handles the following Diameter Base Protocol result codes:
|
Diameter Result Code |
Value |
Description |
|
DIAMETER_SUCCESS |
2001 |
A request is successfully completed. |
|
DIAMETER_COMMAND_UNSUPPORTED |
3001 |
A request contains a |
|
DIAMETER_UNABLE_TO_DELIVER |
3002 |
An answer is received indicating that the OCS is not reachable. |
|
DIAMETER_REALM_NOT_SERVED |
3003 |
A request contains a destination realm not recognized. |
|
DIAMETER_TOO_BUSY |
3004 |
An answer is received indicating that the OCS cannot handle the request due to overload. A notification is received when the SAPC is overloaded. |
|
DIAMETER_LOOP_DETECTED |
3005 |
A loop was detected while trying to get the received answer from the OCS. |
|
DIAMETER_APPLICATION_UNSUPPORTED |
3007 |
A request is received for an unsupported application. |
|
DIAMETER_INVALID_HDR_BITS |
3008 |
A request is received with a Diameter header whose bits are set to an invalid
combination or to a value that is inconsistent with the
|
|
DIAMETER_INVALID_AVP_BITS |
3009 |
A request is received with an AVP whose flag bits are set to an unrecognized value or are inconsistent with the AVPs definition. |
6.2 Sy Application Errors
The SAPC handles the following Gx Interface Application errors:
|
Diameter Result Code |
Value |
Description |
|
ELECTION_LOST |
4003 |
The peer has determined that it has lost the election process and has therefore disconnected the transport connection. |
|
DIAMETER_AVP_UNSUPPORTED |
5001 |
A request is received with an AVP that is not recognized or supported (not included in the SAPC Diameter dictionary) and was marked with the Mandatory bit. A Diameter message with this error must contain a |
|
DIAMETER_UNKNOWN_SESSION_ID |
5002 |
Returned if the session does not exist for the UE IP address at session modification/termination. |
|
DIAMETER_INVALID_AVP_VALUE |
5004 |
A request is received with an AVP with an invalid value in its data portion. A Diameter message with this error must contain a |
|
DIAMETER_MISSING_AVP |
5005 |
When a request is received including an AVP that is not required to process that
request, that AVP is ignored and the request is processed as usual. On the contrary,
when a request does not include an AVP that is required to process such request, the
SAPC returns a response including |
|
DIAMETER_AVP_NOT_ALLOWED |
5008 |
A request is received with an AVP that must not be present. A Diameter message with this error must contain a |
|
DIAMETER_AVP_OCCURS_TOO_MANY_TIMES |
5009 |
A request is received with an AVP that appears more often than permitted in the message definition. A Diameter message with this error must contain a |
|
DIAMETER_UNSUPPORTED_VERSION |
5011 |
A request is received with an unsupported version number. |
|
DIAMETER_UNABLE_TO_COMPLY |
5012 |
This error is returned when the SAPC receives a request and detects an internal error which does not allow to continue processing a request. |
|
DIAMATER_INVALID_BIT_IN_HEADER |
5013 |
A request is received with an unrecognized bit in the Diameter header is set to one. |
|
DIAMETER_INVALID_AVP_LENGTH |
5014 |
A request is received containing an AVP with an invalid length. A Diameter message with this error must contain a |
|
DIAMETER_INVALID_MESSAGE_LENGTH |
5015 |
A request is received with an invalid message length. |
|
DIAMETER_INVALID_AVP_BIT_COMBO |
5016 |
A request is received with an AVP which is not allowed to have the received value
in the A Diameter message with this error must contain a |
|
DIAMETER_USER_UNKNOWN |
5030 |
This error is used by the OCS in SLA, to indicate to the SAPC that the OCS does not
known the subscriber specified in |
The SAPC handles the following Sy Interface Application
errors, using Experimental-Result-Code AVP
(where Vendor-Id AVP is set to 10415):

Contents