Network security

AAA in Network Security: Authentication, Authorization, Accounting

AAA stands for Authentication, Authorization, and Accounting. It is the framework that decides who gets on your network, what they can do, and what they did.

Cysoro Security TeamPublished · 8 min read
NETWORK SECURITY AAA explained Who you are. What you can do. What you did. In that order. 1 Authentication Prove your identity 2 Authorization Get your permissions 3 Accounting Leave an audit trail CYSORO
Quick answer

AAA in network security stands for Authentication, Authorization, and Accounting. Authentication verifies who a user or device is, authorization decides what that user or device is allowed to do, and accounting records what they actually did. Together they form the framework behind network logins, Wi-Fi access, VPNs and router administration, usually carried by protocols such as RADIUS, TACACS+ or Diameter.

Key takeaways

  • AAA stands for Authentication, Authorization, and Accounting — three separate jobs that work in order.
  • RADIUS combines authentication and authorization, while TACACS+ keeps all three functions separate.
  • Accounting is the audit trail: without it you cannot prove who did what on your network.

Every time someone logs in to a network, three questions need answers: who are you, what are you allowed to do, and what did you do while you were here? AAA is the framework that answers all three, in that order.

What does AAA stand for in network security?

AAA stands for Authentication, Authorization, and Accounting. It is a framework for controlling access to computer resources, enforcing policies, and auditing usage on a network.

The three words describe three separate jobs. Authentication proves identity: a username and password, a certificate, or a fingerprint. Authorization sets permissions: which systems, files, or commands that identity may use. Accounting records the session: who connected, when, from where, and what they did.

AAA is not a single protocol. It is the model that protocols such as RADIUS, TACACS+ and Diameter implement. Fortinet's AAA glossary describes it as a framework that controls access to computer resources, enforces policies, and audits usage.

Centralizing these decisions matters. Without AAA, every router, switch, and access point would need its own list of users and passwords. With AAA, one change on the server updates access everywhere, and one log shows activity across the whole network.

The three jobs of AAA, in order 1 Authentication Who are you? Password, certificate, token or biometric 2 Authorization What can you do? Which networks, files and commands 3 Accounting What did you do? Login time, duration, data and commands Each step depends on the one before it. No identity, no permissions. No permissions, nothing to record.
The three functions of AAA, applied in order. Illustration by Cysoro.

How does authentication work?

Authentication verifies identity. A user or device presents credentials, and the AAA server compares them with its stored records before granting any access.

Credentials fall into three types: something you know, such as a password; something you have, such as a security key or phone; and something you are, such as a fingerprint. Strong setups combine at least two of these, which is multi-factor authentication.

In a typical RADIUS exchange, the user sends a request to a network access server. That server forwards the request to the RADIUS server, which replies with accept, reject, or a challenge asking for more proof. Only an accept lets the session start.

Certificates are increasingly common for devices. A laptop or phone presents a certificate issued by the organization, so no password is typed at all. If the device is lost, the certificate is revoked and access stops everywhere at once.

What is authorization?

Authorization decides what an authenticated user or device is allowed to do. Authentication only proves who you are; authorization sets the limits on your access.

Permissions are usually tied to roles or groups. An IT administrator may be allowed to change switch settings, while a regular employee can only reach the office Wi-Fi and the file server. A guest may only reach the internet.

Authorization can be very fine-grained. On a network device, TACACS+ can allow one engineer to run read-only commands such as showing the configuration, while blocking commands that change it. On a corporate network, authorization can assign different VLANs to different departments.

Permissions should follow least privilege: give each person the smallest access they need to do their job, and nothing more. When someone changes roles, their authorization should change the same day.

What does accounting track?

Accounting records what happens during a session. It tracks who logged in, when the session started and ended, how long it lasted, how much data moved, and which services were used.

On network devices, accounting can log every command an administrator runs. That record is what lets a team answer the question "who changed this setting last Tuesday?" after an outage or a security incident.

Accounting also supports billing and capacity planning. If access is charged by time or by traffic, the accounting logs provide the numbers. Even where no billing exists, the logs show usage trends and unusual spikes.

Keep accounting logs somewhere safe and separate from the systems they describe. If an attacker compromises a server and can delete its own trail, the audit record is worthless. Send logs to a central, protected store and review them regularly.

RADIUS vs TACACS+ vs Diameter: what is the difference?

RADIUS, TACACS+ and Diameter all implement AAA, but they split the work differently and suit different jobs. RADIUS dominates network access; TACACS+ dominates device administration; Diameter dominates mobile networks.

FeatureRADIUSTACACS+Diameter
Defined inRFC 2865 (auth) and RFC 2866 (accounting)Cisco-developed, later standardizedRFC 6733
TransportUDP, ports 1812 and 1813TCP port 49TCP or SCTP
Auth and authorizationCombined in one exchangeFully separate exchangesSeparate, extensible commands
EncryptionPassword field onlyWhole packet bodyTLS or IPsec
Best forWi-Fi, VPN, dial-up accessRouter and switch administrationLTE, 5G, multimedia networks
Command controlLimitedPer-command authorizationApplication-specific

RADIUS is the default choice for most organizations because almost every vendor supports it. In RADIUS, authentication and authorization are defined in RFC 2865, while accounting is defined in RFC 2866, as the AAA protocol overview notes.

TACACS+ is the better fit when administrators log in to network equipment, because it can authorize each command separately and encrypts the full packet. Diameter is the successor design for telecom networks, where RADIUS struggled with reliability and roaming.

How does AAA work step by step?

A typical AAA login follows five steps. The user asks for access, the network device forwards the request, the AAA server checks the credentials, the server returns the permissions, and the session is logged from start to finish.

A AAA login, step by step 1. RequestUser asks forWi-Fi, VPN ordevice access 2. ForwardAccess serversends the requestto the AAA server 3. CheckServer checkscredentials andgroup policy 4. DecideAccept or reject,with permissionsattached 5. LogSession start,activity andlogout recorded If the AAA server is unreachable, the device falls back to a local account — or denies access, depending on policy.
How a AAA login flows from request to logged session. Illustration by Cysoro.
  1. The user requests access to Wi-Fi, a VPN, or a network device console.
  2. The access server forwards the credentials to the AAA server instead of checking them locally.
  3. The AAA server verifies the identity against its user database and looks up the user's groups and roles.
  4. The server replies accept or reject, and an accept carries the authorization details such as the VLAN or command level.
  5. Accounting starts, recording the session until the user logs out or disconnects.

What happens when the AAA server is down matters as much as the normal flow. Some organizations configure a local fallback account so administrators can still reach critical devices. Others fail closed and deny access. Decide this in advance, and test it.

Where is AAA used?

AAA shows up anywhere access must be controlled centrally. The two main types are network access, for users joining the network, and device administration, for engineers managing the equipment itself.

Enterprise Wi-Fi is the most common example. With WPA2 or WPA3 Enterprise, each employee logs in with personal credentials checked against RADIUS, instead of everyone sharing one password that never changes. Our guide to securing your Wi-Fi explains the home side of the same idea.

VPNs use AAA to check remote workers before they reach internal systems. Internet providers have used RADIUS for decades to authenticate subscribers and track usage. Mobile carriers use Diameter to authenticate phones as they roam between networks.

On the administration side, TACACS+ controls who can log in to routers and switches and which commands they may run. That separation is why many network teams run RADIUS for users and TACACS+ for their own engineers at the same time.

What are the common AAA mistakes?

The most common AAA mistakes are shared credentials, missing accounting, and a single point of failure. Each one quietly removes one of the three functions.

  • Shared admin accounts. If five engineers share one login, accounting cannot tell who made a change. Give every person their own account.
  • Accounting switched off. Some teams configure authentication and authorization but never enable logging. Then an incident leaves no trail.
  • One AAA server, no backup. If that server fails, nobody can log in — or the fallback leaves the network wide open. Run at least two servers.
  • Default or weak shared secrets. The secret between the access server and the AAA server protects the exchange. Change defaults and use long, random secrets.
  • Stale permissions. People change jobs, but their old access stays. Review group membership at least every quarter.
  • No MFA on remote access. A password alone is a weak authenticator for VPN and remote administration. Add a second factor.

Test your setup with a weak password using our password strength checker to see how quickly guessable credentials fail, and retire any shared logins you find.

How do you set up AAA?

Setting up AAA starts with an inventory, not a purchase. List who needs access, to what, and from where, then choose the protocol and server that fit those needs.

  1. Map your access points. List Wi-Fi controllers, VPN gateways, switches, and routers that will ask the AAA server for decisions.
  2. Pick a protocol. Use RADIUS for user network access, TACACS+ for device administration, and Diameter only where a telecom setup requires it.
  3. Set up the AAA server. Run two servers for redundancy, store users in a central directory, and define groups and roles before adding individual accounts.
  4. Configure each access device with the server addresses and a strong shared secret, and point it at the right server for each type of access.
  5. Turn on accounting and send the logs to a central store that administrators cannot edit from the devices themselves.
  6. Test failure modes. Check what happens when a server is down, a password is wrong, and a user tries a command above their level.
  7. Review regularly. Audit accounts, group membership, and logs on a schedule, and remove access the day someone leaves.

For a small business, the simplest path is often the RADIUS server built into your existing identity system, such as Microsoft Entra ID or Google Workspace, rather than a standalone server. That keeps one source of truth for users and groups. Our small business cybersecurity checklist covers the surrounding controls, including MFA and patching.

The bottom line

AAA stands for Authentication, Authorization, and Accounting: prove who you are, get only the access you need, and leave a record of what you did. That simple order underpins Wi-Fi logins, VPNs, and router administration in networks of every size.

Start with the basics: one account per person, least-privilege permissions, accounting switched on, and a backup AAA server. You can check the network side of your own setup with the free what-is-my-IP tool and build from there.

Frequently asked questions

What does AAA stand for in network security?

AAA stands for Authentication, Authorization, and Accounting. Authentication proves identity, authorization grants permissions, and accounting records activity. It is a framework, not a single protocol.

Is AAA a protocol?

No. AAA is a framework for controlling network access. Protocols such as RADIUS, TACACS+ and Diameter implement AAA. Each one carries the three functions in a slightly different way.

What is the difference between authentication and authorization?

Authentication checks who you are, usually with a username and password or a certificate. Authorization decides what you are allowed to do after you are identified, such as which files, commands or network segments you can use.

What is RADIUS used for?

RADIUS is the most widely used AAA protocol. It lets a network access server, such as a Wi-Fi controller or VPN gateway, ask a central server whether a user may connect, and it records the session for accounting.

What is the difference between RADIUS and TACACS+?

RADIUS combines authentication and authorization in one exchange and runs over UDP, while TACACS+ keeps authentication, authorization and accounting as separate exchanges and runs over TCP port 49. TACACS+ is usually preferred for administering network devices.

What is Diameter?

Diameter is a newer AAA protocol designed as an evolution of RADIUS for mobile and multimedia networks. It is defined in RFC 6733 and is used widely in LTE and 5G networks.

Why does accounting matter if authentication already works?

Accounting creates the audit trail. It records who logged in, when, from where, and what they did. Without it you cannot investigate an incident, prove compliance, or bill for usage.

Does AAA apply to Wi-Fi networks?

Yes. Enterprise Wi-Fi commonly uses WPA2 or WPA3 Enterprise with a RADIUS server behind it. Each user logs in with their own credentials instead of sharing one Wi-Fi password.

Sources

  1. Fortinet — What Is AAA Security?
  2. Huawei — What Is AAA?
  3. Wikipedia — Authentication, authorization, and accounting
  4. Nokia — Authentication, Authorization, and Accounting
  5. NVIDIA — Authentication, Authorization and Accounting - AAA
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against Fortinet's AAA glossary, Huawei's AAA documentation, and the RADIUS and Diameter RFC references cited there.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free