New live batch5G Core & 5G CNF Deployment - weekend live batchStarts Sun 6 Dec 2026IMS, VoLTE and VoNREnrol now →
5G Core, IMS and 4G LTE Training For Telecom Engineers+916306686763trainings@solexnetworksolutions.inWhatsApp

Insights / IMS & Voice

IMS & Voice

Diameter Result Codes and Error Troubleshooting (3002 Unable to Deliver and More)

Every Diameter result code class, the base and 3GPP error codes for S6a, Cx, Sh, Rx and Gx, and a practical method for troubleshooting DIAMETER_UNABLE_TO_DELIVER and header errors.

Browse all articles
Diameter Result Codes and Error Troubleshooting (3002 Unable to Deliver and More)

A Diameter answer always tells you what happened - if you know where to look. This is part 2 of the Solex Network Solutions Diameter series. Part 1 covered the header, AVPs and agents; here we cover result codes: how they are carried, what each class means, the codes you will meet most often in an EPC and IMS core, and a practical method for troubleshooting them, with DIAMETER_UNABLE_TO_DELIVER (3002) in detail.

Where the result is carried

An answer carries its outcome in one of two AVPs:

  • Result-Code (AVP 268) - the base protocol and IETF applications (RFC 6733, RFC 4006). For example 2001 DIAMETER_SUCCESS or 3002 DIAMETER_UNABLE_TO_DELIVER.
  • Experimental-Result (AVP 297) - a grouped AVP with Vendor-Id (10415 for 3GPP) and Experimental-Result-Code (AVP 298). 3GPP-specific outcomes such as 5001 DIAMETER_ERROR_USER_UNKNOWN on S6a or Cx are carried here.
Warning
The same number can mean different things in the two AVPs. 5001 in Result-Code is DIAMETER_AVP_UNSUPPORTED; 5001 in Experimental-Result (Vendor 10415) is DIAMETER_ERROR_USER_UNKNOWN. Always check which AVP the code is in before you start fixing the wrong problem.

When the error is about the message itself, the answer usually also carries:

  • Failed-AVP (279) - a copy of the AVP that caused the problem (missing, unsupported or invalid).
  • Error-Message (281) - free text, sometimes helpful.
  • Error-Reporting-Host (294) - the node that generated the error, when it is not the server you addressed. If it names your DRA, the request never reached the server.

The five classes

Diameter result code classes

  • 1xxx Informational - the request needs another round, for example 1001 DIAMETER_MULTI_ROUND_AUTH.
  • 2xxx Success - 2001 DIAMETER_SUCCESS, 2002 DIAMETER_LIMITED_SUCCESS.
  • 3xxx Protocol errors - something went wrong delivering or parsing the request at the Diameter layer. The answer has the E bit set in the header. Protocol errors are handled hop by hop: an agent may retry them on another peer.
  • 4xxx Transient failures - the request was valid but could not be satisfied now. A retry later may succeed.
  • 5xxx Permanent failures - the request is wrong or not allowed. Retrying the same request will fail the same way.

Base protocol result codes (RFC 6733)

Code  Name                                  What it usually means in practice
2001  DIAMETER_SUCCESS                      success
2002  DIAMETER_LIMITED_SUCCESS              success, but more action needed
3001  DIAMETER_COMMAND_UNSUPPORTED          peer does not support this command code
3002  DIAMETER_UNABLE_TO_DELIVER            no usable route / peer for this request (see below)
3003  DIAMETER_REALM_NOT_SERVED             Destination-Realm not known at all
3004  DIAMETER_TOO_BUSY                     server overloaded - try another peer
3005  DIAMETER_LOOP_DETECTED                own identity found in Route-Record
3006  DIAMETER_REDIRECT_INDICATION          redirect agent: resend to Redirect-Host
3007  DIAMETER_APPLICATION_UNSUPPORTED      no route for this Application-ID
3008  DIAMETER_INVALID_HDR_BITS             header flags invalid (e.g. reserved bit set, E bit in request)
3009  DIAMETER_INVALID_AVP_BITS             AVP flags invalid
3010  DIAMETER_UNKNOWN_PEER                 CER from a peer that is not configured
4001  DIAMETER_AUTHENTICATION_REJECTED      bad credentials
4002  DIAMETER_OUT_OF_SPACE                 accounting storage full
4003  ELECTION_LOST                         CER collision - other connection kept
5001  DIAMETER_AVP_UNSUPPORTED              unknown AVP with M bit set (see Failed-AVP)
5002  DIAMETER_UNKNOWN_SESSION_ID           server has no such session (often after failover)
5003  DIAMETER_AUTHORIZATION_REJECTED       user not authorised
5004  DIAMETER_INVALID_AVP_VALUE            AVP present but value not acceptable
5005  DIAMETER_MISSING_AVP                  required AVP missing (see Failed-AVP)
5006  DIAMETER_RESOURCES_EXCEEDED           request would exceed a limit
5007  DIAMETER_CONTRADICTING_AVPS           AVPs that cannot appear together
5008  DIAMETER_AVP_NOT_ALLOWED              AVP not allowed in this message
5009  DIAMETER_AVP_OCCURS_TOO_MANY_TIMES    repeated AVP that may appear once
5010  DIAMETER_NO_COMMON_APPLICATION        CER/CEA: no shared application
5011  DIAMETER_UNSUPPORTED_VERSION          header version is not 1
5012  DIAMETER_UNABLE_TO_COMPLY             generic "cannot do it" - read the server logs
5013  DIAMETER_INVALID_BIT_IN_HEADER        undefined header bit set
5014  DIAMETER_INVALID_AVP_LENGTH           AVP length field wrong
5015  DIAMETER_INVALID_MESSAGE_LENGTH       message length field wrong
5016  DIAMETER_INVALID_AVP_BIT_COMBO        AVP flag combination not allowed
5017  DIAMETER_NO_COMMON_SECURITY           CER/CEA: no common security mechanism

3GPP Experimental-Result codes you will see

S6a (TS 29.272)
5001  DIAMETER_ERROR_USER_UNKNOWN              IMSI not provisioned in the HSS
5004  DIAMETER_ERROR_ROAMING_NOT_ALLOWED       visited PLMN not allowed for this user
5420  DIAMETER_ERROR_UNKNOWN_EPS_SUBSCRIPTION  user exists but has no EPS (LTE) subscription
5421  DIAMETER_ERROR_RAT_NOT_ALLOWED           RAT type barred in the subscription
5422  DIAMETER_ERROR_EQUIPMENT_UNKNOWN         IMEI not known (S13 / EIR)
4181  DIAMETER_AUTHENTICATION_DATA_UNAVAILABLE HSS / AuC could not produce vectors

Cx / Dx (TS 29.229) 2001 DIAMETER_FIRST_REGISTRATION UAA: no S-CSCF assigned yet 2002 DIAMETER_SUBSEQUENT_REGISTRATION UAA: S-CSCF already assigned (Server-Name returned) 2003 DIAMETER_UNREGISTERED_SERVICE LIA: unregistered user with services 5001 DIAMETER_ERROR_USER_UNKNOWN IMPU / IMPI not in the HSS 5002 DIAMETER_ERROR_IDENTITIES_DONT_MATCH IMPI and IMPU do not belong together 5003 DIAMETER_ERROR_IDENTITY_NOT_REGISTERED LIA: user not registered 5004 DIAMETER_ERROR_ROAMING_NOT_ALLOWED visited network not allowed 5006 DIAMETER_ERROR_AUTH_SCHEME_NOT_SUPPORTED MAR: requested scheme not provisioned 5008 DIAMETER_ERROR_TOO_MUCH_DATA SAA: profile too big for the S-CSCF

Sh (TS 29.329) 5100 DIAMETER_ERROR_USER_DATA_NOT_RECOGNIZED Data-Reference not supported 5101 DIAMETER_ERROR_OPERATION_NOT_ALLOWED AS not allowed this operation 5102 DIAMETER_ERROR_USER_DATA_CANNOT_BE_READ read not permitted for this AS 5103 DIAMETER_ERROR_USER_DATA_CANNOT_BE_MODIFIED 5105 DIAMETER_ERROR_TRANSPARENT_DATA_OUT_OF_SYNC PUR with stale sequence number 4100 DIAMETER_USER_DATA_NOT_AVAILABLE data temporarily unavailable

Rx (TS 29.214) 5061 INVALID_SERVICE_INFORMATION Media-Component-Description not acceptable 5062 FILTER_RESTRICTIONS flow descriptions cannot be handled 5063 REQUESTED_SERVICE_NOT_AUTHORIZED policy does not allow this service 5064 DUPLICATED_AF_SESSION AF session already exists for this flow 5065 IP-CAN_SESSION_NOT_AVAILABLE PCRF has no Gx session for the UE IP

Gx (TS 29.212) 5140 DIAMETER_ERROR_INITIAL_PARAMETERS CCR-I parameters not acceptable 5142 DIAMETER_BEARER_NOT_AUTHORIZED bearer operation not allowed 4141 DIAMETER_PCC_RULE_EVENT PCC rule could not be installed / enforced ```

DIAMETER_UNABLE_TO_DELIVER (3002) in detail

3002 is the most common protocol error in a live core, and it is almost always generated by an agent - usually your DRA - not by the server you were trying to reach. It means: "I have this request and no usable next hop for it."

How DIAMETER_UNABLE_TO_DELIVER is generated

The answer has the E bit set, Result-Code 3002 and, normally, Error-Reporting-Host naming the agent. The usual causes, in the order worth checking:

  1. All peers for the route are down. The route exists, but every server in the pool is not in the Open state - the transport is down, the CER failed, or DWAs stopped. Check the peer status on the DRA first.
  2. No route for the Destination-Realm and Application-ID. A new realm (a roaming partner, a new IMS domain) or a new application (Sh added for a new AS) was never added to the routing table. Note the difference: 3003 REALM_NOT_SERVED means the realm is unknown; 3002 often means the realm is known but no route matches this application.
  3. The next hop does not support the application. The server is up, but it did not advertise this Application-ID in its CEA. A PCRF that advertised Gx but not Rx will never receive an AAR.
  4. Destination-Host points to a server that no longer exists. After a failover or scale-in, a client keeps sending Destination-Host of the old server (a stale session binding). If that host is not reachable and the DRA is not configured to fall back to realm routing, the result is 3002.
  5. SLF lookup failed. In an IMS core with several HSSs, the DRA or SLF decides which HSS holds the subscriber. A subscriber missing from the SLF data has nowhere to go.
  6. Non-proxiable request that needs forwarding. A request with the P bit cleared must be processed locally. If it arrives at an agent that cannot process it, the agent cannot forward it either.
  7. Overload and throttling. Some DRAs answer 3002 or 3004 TOO_BUSY when a server pool is overloaded or a throttling limit is reached.
Tip
Quick test: if Error-Reporting-Host (or Origin-Host of the error answer) is the DRA, the server never saw the request - look at DRA routes and peer states. If it is the server itself, the problem is on the server side.

Many hard Diameter faults are not about AVP content at all but about the header. These are the ones we see most in the field:

  • Application-ID in the header does not match the body. The header says 16777236 (Rx) but the Auth-Application-Id AVP says something else, or a vendor-specific application is sent without Vendor-Specific-Application-Id. Result: 3007 APPLICATION_UNSUPPORTED from the agent or 5010 at CER time.
  • P bit not set on a request that must be routed. Some client implementations clear P on application requests. A relay or DRA will not forward them. Result: 3002, or a request that silently times out.
  • E bit set on a request, or a reserved bit set. Result: 3008 DIAMETER_INVALID_HDR_BITS. Seen after faulty header manipulation rules on a proxy.
  • Hop-by-Hop identifier not restored. The answer reaches the client but cannot be matched to its request, so the client times out and retransmits with the T bit set. You see two requests and two answers in the trace and a failure in the client log.
  • Duplicated End-to-End identifiers. A client that reuses End-to-End IDs too quickly gets its new request treated as a duplicate of an old one and receives the old answer.
  • Message length wrong. Usually caused by a proxy that added or removed an AVP without recalculating the length. Result: 5015 INVALID_MESSAGE_LENGTH, or the peer closing the connection.
  • Origin-Host / Origin-Realm mismatch with the peer configuration. The CER is rejected with 3010 UNKNOWN_PEER, or the DRA rejects application messages from an Origin-Host it does not expect.
  • 5001 AVP_UNSUPPORTED - the receiver does not know an AVP that has the M bit set. Typical after one side is upgraded to a newer 3GPP release and starts sending new AVPs as mandatory. Fix by aligning the release / feature list (Supported-Features), or have the DRA clear the M bit.
  • 5005 MISSING_AVP - a required AVP is not present. Failed-AVP tells you which one. Common examples: Visited-Network-Identifier in a UAR, Framed-IP-Address in an Rx AAR, Subscription-Id in a Gx CCR-I.
  • 5004 INVALID_AVP_VALUE - for example an RAT-Type value the HSS does not accept, or a malformed Flow-Description in an AAR.
  • 5009 AVP_OCCURS_TOO_MANY_TIMES - often caused by a proxy rule that adds an AVP that was already there.

A practical troubleshooting method

  1. Capture on both sides of the DRA. The client side shows what was sent; the server side shows what actually arrived. Most proxy problems are visible only by comparing the two.
  2. Read the answer header first. E bit set means a protocol (3xxx) error - a routing or format problem, not a business decision by the server.
  3. Identify who answered. Origin-Host of the answer and Error-Reporting-Host tell you whether the server or an agent produced the result.
  4. Check Result-Code or Experimental-Result, and note which AVP it is in and the Vendor-Id.
  5. Read Failed-AVP for any 5xxx error before anything else - it names the exact AVP.
  6. Check peer state and routes for 3002 / 3003 / 3007: is the peer Open, did its CEA list the application, does a route exist for realm + application?
  7. Check the session: for 5002 UNKNOWN_SESSION_ID after a failover, the new server has no record of the session - look at session binding on the DRA and whether the client uses Destination-Host.
Important
Keep a list of your network's realms, hosts and DRA routes. Most 3002 and 3003 outages we see in operator networks follow a configuration change: a new node, a renamed realm, or a roaming partner added on one DRA but not its mate.

Continue the series

Diameter troubleshooting is a core module of the Solex Network Solutions IMS, VoLTE and VoNR course, where students work through real failure traces on our lab.

Written by

Solex Network Solutions

Solex Network Solutions provides 5G Core, IMS VoLTE/VoNR, 4G LTE and private 5G training in India, along with core network products for labs, R&D teams and enterprises.

Learn this hands-on

IMS, VoLTE and VoNR

The IMS core from registration to release: P-CSCF, I-CSCF, S-CSCF, TAS and the SIP and Diameter that binds them, plus VoLTE and VoNR end to end.

View course Ask a question

Related articles

Discussion

No comments yet. Start the discussion - questions are welcome.

Leave a comment