Blog
RADIUS vs Diameter protocol compared
A family has fiber at home and three phones on the same operator. When the router connects, a RADIUS request goes to the AAA server. When a phone starts a data session, a Diameter message goes to the mobile core. Same operator, same customer, two protocols.
RADIUS vs Diameter at a glance
RADIUS and Diameter are both AAA protocols. RADIUS (RFC 2865) runs over UDP and is used for broadband, Wi-Fi and enterprise logins. Diameter (RFC 6733) runs over TCP or SCTP, adds reliable delivery, failover and a larger attribute space, and is used in the 4G mobile core for authentication, policy and charging.
| Item | RADIUS | Diameter |
|---|---|---|
| Transport | UDP | TCP or SCTP |
| Ports | 1812 authentication, 1813 accounting | 3868 |
| Reliability | Application retries; no delivery guarantee | Reliable transport, watchdog messages and failover between peers |
| Security | Shared secret hides the password field | TLS or DTLS, or IPsec |
| Attribute space | 8-bit attribute type, 255 standard attributes plus vendor-specific | 32-bit AVP codes, far larger |
| Typical networks | Fixed broadband, Wi-Fi, enterprise | 4G LTE core, IMS, policy and charging |
What is the RADIUS protocol?
RADIUS (Remote Authentication Dial-In User Service) is the protocol a network access device uses to ask a RADIUS server whether a user may connect and what service they get. It dates from the dial-up era and is still the most widely deployed AAA protocol.
RADIUS accounting runs on its own port, 1813. The access device sends a start record when a session begins, interim records while it runs and a stop record at the end, with time and data used.
RADIUS is simple, light and supported by nearly every broadband gateway, Wi-Fi controller and VPN concentrator.
What is the Diameter protocol?
Diameter was designed as RADIUS's successor for carrier networks. It runs over reliable transport, lets peers find and fail over to each other, and carries information in attribute-value pairs (AVPs) with a much larger code space.
Diameter is a base protocol plus applications. Each application, identified by an ID, defines its own messages for one job.
The Diameter protocol in LTE
- S6a: the mobility management entity fetches subscriber data from the HSS.
- Gx: the gateway gets policy rules from the PCRF.
- Gy: the gateway asks the online charging system for credit.
- Rx: IMS tells the PCRF what a voice call needs.
- SWm and S6b: the ePDG and gateway use the AAA server for untrusted Wi-Fi access.
Where each AAA protocol is used
In a converged operator, the line falls roughly between fixed and mobile.
-
RADIUS
broadband gateways on fiber, cable and DSL; Wi-Fi access points and controllers; enterprise VPN and network access; private APNs on the mobile gateway.
-
Diameter
the 4G core (HSS, PCRF, OCS), IMS voice, roaming signaling between operators, Wi-Fi calling through the ePDG.
-
5G standalone
the core moves to HTTP/2 service-based interfaces, so new 5G functions talk to each other without Diameter. Diameter stays where 5G meets 4G, roaming and older systems.
Running both
Most operators will run RADIUS and Diameter side by side for years. A few patterns make it manageable.
-
One AAA platform that speaks both, so the family above has one subscriber record whether they connect at home or on the phone.
-
A Diameter routing agent (DRA) to route and balance Diameter traffic between many peers.
-
An interworking function where a RADIUS-only device needs to reach a Diameter-only system, or the reverse.
-
Change in stages
move one interface or one region at a time, and keep the way back open until each step is proven.
Common questions
Why did Diameter replace RADIUS in mobile cores?
Mobile cores needed reliable delivery, failover between peers and more room for attributes than RADIUS gives.
Is RADIUS still used?
Yes. Almost all broadband, Wi-Fi and enterprise network access uses RADIUS today.
What port does Diameter use?
3868, over TCP or SCTP.
What ports does RADIUS use?
UDP 1812 for authentication and 1813 for accounting. See RADIUS ports explained.
Is Diameter used in 5G?
The 5G core mostly uses HTTP/2 service-based interfaces instead. Diameter remains for interworking with 4G, roaming and older systems.
Can RADIUS and Diameter work together?
Yes, through an AAA server that speaks both, or through an interworking function between them.
Alepo AAA Server applies plan changes and non-payment restrictions to live sessions. STC moved to it with zero downtime.