Server Assignment Messages

The Oracle Communications Core Session Manager sends a Server Assignment Request (SAR) to the HSS requesting to confirm the SIP or SIPS URI of the SIP server that is currently serving the user. The SAR message also serves the purpose of requesting that the Diameter server send the user profile to the SIP server. The SAR's AVPs are populated as follows:

  • Public-User-Identity—the SIP AOR of the endpoint being registered (same as UAR)
  • Private-User-Identity—the username from the SIP authorization header, if it is present. If not, this value is the public User ID. (Same as UAR)
  • Server-Name—the home server route parameter in the sip-registrar configuration element. It is the FQDN or IP address used to identify and route to this Oracle Communications Core Session Manager sent as a URI.
  • REGISTRATION (1)—for all new and refreshing registrations.
  • Set to TIMEOUT_DEREGISTRATION (4)—when the contact is unregistered due to expiration. This occurs if the force-unregistration option is configured in the sip config.
  • USER_DEREGISTRATION (5)—when the contact is unregistered by the user (contact parameter expires=0).
  • User-Data-Already-Available—always set to USER_DATA_ALREADY_AVAILABLE (1)

Diameter Result Codes

The Diameter Result Codes presented on this page will be seen in one of two AVPs: the Diameter Base Result-Code AVP or the Vendor-Specific Experimental-Result-Code AVP.

You can filter the table contents by typing a code, or any text, into the Search field. Click on an arrow in a column header to sort the visible entries by that column.

Nick vs Networking

Telco network engineering.

Diameter-User-Authorization-Request-Command-Code-300-Packet-Capture

Diameter and SIP: User-Authorization-Request/Answer

These posts focus on the use of Diameter and SIP in an IMS / VoLTE context, however these practices can be equally applied to other networks.

The Diameter User-Authorization-Request and User-Authorization-Answer commands are used as the first line of authorization of a user and to determine which Serving-CSCF to forward a request to.

When a SIP Proxy (I-CSCF) receives an incoming SIP REGISTER request, it sends a User-Authorization-Request to a Diameter server to confirm if the user exists on the network, and which S-CSCF to forward the request to.

When the Diameter server receives the User-Authorization-Request it looks at the User-Name (1) AVP to determine if the Domain / Realm is served by the Diameter server and the User specified exists.

Assuming the user & domain are valid, the Diameter server sends back a User-Authorization-Answer , containing a Server-Capabilities (603) AVP with the Server-Name of the S-CSCF the user will be served by.

I always find looking at the packets puts everything in context, so here’s a packet capture of both the User-Authorization-Request and the User-Authorization-Answer .

diameter server assignment request

First Registration

If this is the first time this Username / Domain combination (Referred to in the RFC as an AOR – Address of Record) is seen by the Diameter server in the User-Authorization-Request it will allocate a S-CSCF address for the subscriber to use from it’s pool / internal logic.

The Diameter server will store the S-CSCF it allocated to that Username / Domain combination (AoR) for subsequent requests to ensure they’re routed to the same S-CSCF.

The Diameter server indicates this is the first time it’s seen it by adding the DIAMETER_FIRST_REGISTRATION (2001) AVP to the User-Authorization-Answer .

diameter server assignment request

Subsequent Registration

If the Diameter server receives another User-Authorization-Request for the same Username / Domain (AoR) it has served before, the Diameter server returns the same S-CSCF address as it did in the first User-Authorization-Answer .

It indicates this is a subsequent registration in much the same way the first registration is indicated, by adding an DIAMETER_SUBSEQUENT_REGISTRATION (2002) AVP to the User-Authorization-Answer .

User-Authorization-Type (623) AVP

An optional User-Authorization-Type (623) AVP is available to indicate the reason for the User-Authorization-Request. The possible values / reasons are:

  • Creating / Updating / Renewing a SIP Registration (REGISTRATION (0))
  • Establishing Server Capabilities & Registering (CAPABILITIES (2))
  • Terminating a SIP Registration (DEREGISTRATION (1))

If the User-Authorization-Type is set to DEREGISTRATION (1) then the Diameter server returns the S-CSCF address in the User-Authorization-Answer and then removes the S-SCSF address it had associated with the AoR from it’s own records.

Other Diameter Cx (IMS) Calls

User-Authorization-Request / User-Authorization-Answer Server-Assignment-Request / Server-Assignment-Answer Location-Info-Request / Location-Info-Answer Multimedia-Auth-Request / Multimedia-Auth-Answer Registration-Termination-Request / Registration-Termination-Answer Push-Profile-Request / Push-Profile-Answer

References:

3GPP Specification #: 29.229

RFC 4740 – Diameter Session Initiation Protocol (SIP) Application

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Sign me up for future posts via email.

Want more telecom goodness?

I have a good old fashioned RSS feed you can subscribe to.

You can get the latest posts dropped into your inbox by subscribing to our mailing list Your email address

I cross post some of this content to LinkedIn and Twitter .

IMAGES

  1. Diameter and SIP: Server-Assignment-Request/Answer

    diameter server assignment request

  2. Diameter and SIP: Server-Assignment-Request/Answer

    diameter server assignment request

  3. Diameter and SIP: Server-Assignment-Request/Answer

    diameter server assignment request

  4. IETF 67 Diameter Tutorial Diameter Base Protocol

    diameter server assignment request

  5. Diameter Server Load Testing

    diameter server assignment request

  6. IETF 67 Diameter Tutorial Diameter Base Protocol

    diameter server assignment request

VIDEO

  1. Pipe rollbending machine for Spiral pipe forming can produce spirals for heat exchangers

  2. CompTIA Server Plus by Lively

  3. Bobbin rolls of double sided PET tape/ Spools

  4. fiber drum winder

  5. Optical Glass Achromatic Lens 一for Telescope

  6. I Bought the Cheapest .30 Cal Suppressor #30cal #308 #300blkout

COMMENTS

  1. Diameter and SIP: Server-Assignment-Request/Answer

    The Server-Assignment-Request/Answer commands are sent by a S-CSCF to indicate to the Diameter server that it is now serving a specific subscriber, (This information can then be queried using the Location-Info-Request commands) and get the subscriber's profile, which contains the details and identities of the subscriber.

  2. RFC 4740: Diameter Session Initiation Protocol (SIP) Application

    RFC 4740 Diameter SIP Application November 2006 o DIAMETER_ERROR_IN_ASSIGNMENT_TYPE 5038 The SIP server address sent in the SIP-Server-URI AVP value of the Diameter Server-Assignment-Request (SAR) command is the same SIP server address that is currently assigned to the user name, but the SIP-Server-Assignment-Type AVP is not allowed. For ...

  3. Server Assignment Messages

    The Oracle Communications Core Session Manager sends a Server Assignment Request (SAR) to the HSS requesting to confirm the SIP or SIPS URI of the SIP server that is currently serving the user. The SAR message also serves the purpose of requesting that the Diameter server send the user profile to the SIP server. The SAR's AVPs are populated as follows:

  4. Diameter Result Codes

    DIAMETER_ERROR_IN_ASSIGNMENT_TYPE: The SIP server address sent in the SIP-Server-URI AVP value of the Diameter Server-Assignment-Request (SAR) command is the same SIP server address that is currently assigned to the user name, but the SIP-Server-Assignment-Type AVP is not allowed.

  5. RFC 4005: Diameter Network Access Server Application

    For more information on current assignment values, see . Calhoun, et al. Standards Track [Page 24] ... Diameter Request Forwarded as RADIUS Request When a server receives a Diameter request to be forwarded to a RADIUS entity, the following are examples of the steps that may be taken: - The Origin-Host AVP's value is inserted into the NAS ...

  6. RFC 7155: Diameter Network Access Server Application

    Re-Auth-Request (RAR) Command A Diameter server can initiate reauthentication and/or reauthorization for a particular session by ... Tunnel-Assignment-Id AVP The Tunnel-Assignment ... RFC 7155 Diameter NASREQ April 2014 The Diameter server and the network access servers that it serves can be assumed to be under common administrative control ...

  7. Diameter and SIP: Location-Info-Request / Answer

    The RFC's definition is actually pretty succinct as to the function of the Server-Assignment Request/Answer: The Location-Info-Request is sent by a Diameter Multimedia client to a Diameter Multimedia server in order to request name of the server that is currently serving the user.Reference: 29.229-

  8. Diameter and SIP: User-Authorization-Request/Answer

    When a SIP Proxy (I-CSCF) receives an incoming SIP REGISTER request, it sends a User-Authorization-Request to a Diameter server to confirm if the user exists on the network, and which S-CSCF to forward the request to. When the Diameter server receives the User-Authorization-Request it looks at the User-Name (1) AVP to determine if the Domain ...

  9. PDF Seagull

    13 2.015222 127.0.0.1 127.0.0.1 Diameter Server-Assignment-Request app=IMS_Cx_Dx (hop-id=1003) (end-id=2003) RPE=100 14 2.015731 127.0.0.1 127.0.0.1 Diameter Server-Assignment-Answer app=IMS_Cx_Dx (hop-id=1003) (end-id=2003) RPE=000 If you don't have Ethereal, you can take a look at Seagull's log files, which also contain the decoded

  10. What is SAR Server assignment request

    The Server-Assignment-Request (SAR) command is part of the Diameter Session Initiation Protocol (SIP) application, as defined in RFC 4740. This application allows a Diameter client (typically co-located with a SIP server) to request authentication and authorization information from a Diameter server.