Skip to main content
DIV logo
ISP software

What is a RADIUS server, and why does an ISP need one?

By the DIV engineering team · Published

A RADIUS server is the system that decides who may connect to your network, what speed and plan they get, and how much they used. Every time a broadband subscriber’s router logs in over PPPoE, your access router asks the RADIUS server whether to let them in. Without one, plans, data caps, billing and session logs all have to be managed by hand on each router.

The short answer

RADIUS stands for Remote Authentication Dial-In User Service. It is an open standard (RFC 2865 for authentication, RFC 2866 for accounting) that almost every access router supports, including MikroTik, Cisco and Juniper. Your routers do the switching; the RADIUS server holds the rules. That split is what lets a small ISP run hundreds or thousands of subscribers from one place.

Authentication, authorisation, accounting

RADIUS does three jobs, usually called AAA.

Authentication: is this a real subscriber?

The router sends the subscriber’s username and password to the RADIUS server. The server checks them against its database and answers yes or no. It can also check that the login comes from the right device, for example by locking the account to one MAC address so a password cannot be shared.

Authorisation: what are they allowed?

If the answer is yes, the server sends back the subscriber’s settings: the speed limit for their plan, a static IP or an address from a pool, and how long the session may last. The router enforces them.

Accounting: what did they use?

While the subscriber is online, the router reports to the RADIUS server when the session started, how much data went up and down, and when it ended. Those records drive data caps, fair usage policy (FUP), usage-based billing and the session logs regulators ask for.

What happens when a subscriber connects

On a typical PPPoE broadband network, a login takes well under a second and goes like this:

  1. The customer’s ONU or Wi-Fi router dials a PPPoE session to your access router (the NAS), such as a MikroTik.
  2. The NAS sends an Access-Request to the RADIUS server on UDP port 1812, protected by a shared secret.
  3. The RADIUS server checks the username, password, account status and validity.
  4. It replies with Access-Accept and the plan’s attributes (speed, IP address), or Access-Reject.
  5. The NAS brings the session up and sends an Accounting-Start on port 1813, then interim updates and an Accounting-Stop when the session ends.

Why an ISP needs one

One place for every subscriber. Without RADIUS, each PPPoE account lives on a router. Add a second router and you are keeping two lists in step. With RADIUS, every router asks the same server.

Plans that enforce themselves. When a prepaid plan expires, the next login is refused. When a subscriber upgrades, the new speed applies from the next session, or at once with CoA (below).

Usage you can bill and cap. Accounting records are the raw data for data caps, FUP speeds and usage reports. No accounting, no FUP.

Records you are required to keep. ISPs in India are expected to keep records of subscriber sessions, including which IP address a subscriber had and when. RADIUS accounting, together with NAT logs from your routers, is where those records come from. Check the exact retention period your licence requires with your adviser.

Resellers and LCOs. Once subscribers live in one database, you can let each partner manage only their own, with their own rates.

Changing a plan without a reconnect

RFC 5176 added two messages that the RADIUS side can send to the router: Change of Authorization (CoA), which changes a live session (for example, dropping to the post-FUP speed or applying an upgrade), and Disconnect, which ends it. Both use UDP port 3799. CoA is what lets a subscriber pay for a top-up and get the new speed straight away, without rebooting their router.

What to look for in RADIUS software

FreeRADIUS, the open-source server most ISPs use, is excellent at the protocol itself. What it does not include is everything an ISP runs around it. When you compare options, check for:

Open-source panels such as daloRADIUS cover part of this list for free if you can host and extend them yourself; our daloRADIUS comparison sets out where each fits. DIV’s own product, Bharat Radius, runs on FreeRADIUS and covers the full list, hosted in India. See all of our software for ISPs.

Quick answers

What is a RADIUS server?

A RADIUS server is the system that decides whether a user may connect to a network, what they are allowed to do once connected, and how much they used. For an ISP it checks every PPPoE login, applies the subscriber’s speed and plan, and records each session for billing and logs.

Which ports does RADIUS use?

By standard, RADIUS authentication uses UDP port 1812 and accounting uses UDP port 1813. Change of Authorization and Disconnect messages use UDP port 3799. Some older equipment still uses 1645 and 1646.

Is FreeRADIUS enough on its own?

FreeRADIUS is a reliable RADIUS server, but it has no billing, reseller management or customer portal. ISPs add a panel on top, such as daloRADIUS or a commercial product like Bharat Radius, or build those parts themselves.

Running RADIUS for an ISP?See Bharat Radius in 30 minutes.

Chat on WhatsApp
Chat on WhatsApp