Network Bytes · Episode 61 · CCNA 5.8
"AAA: authentication, authorization and accounting"
AAA answers three questions about everyone who logs in to a network device: who are you, what can you do, and what did you do? A central RADIUS or TACACS+ server usually handles all three.
The hotel picture
Think of checking into a hotel. The front desk looks at your ID before handing anything over: that is authentication, proving who you are. Your key card opens your room and the gym but not the manager's office: that is authorization, deciding what you may do once you are in. When you check out, the bill lists what you used and when: that is accounting. The three are separate steps. Passing one does not mean you pass the next.
AAA on a router
On a network device the same three steps happen on every admin login:
- Authentication: the device checks your identity, usually with a username and password (stronger options such as MFA come next episode).
- Authorization: the device decides what you may do, for example which privilege level you get or which commands you are allowed to run.
- Accounting: the device logs who logged in, when, and which commands they ran, so you can audit changes later.
On Cisco IOS you turn the AAA framework on with aaa new-model, then build method lists that say where to check, in order, for example a server group first and the local user database as a fallback if the servers cannot be reached:
`` aaa new-model aaa authentication login default group tacacs+ local ``
RADIUS vs TACACS+
Instead of creating accounts on every router, most networks point all devices at one central AAA server. Two protocols do the talking:
- RADIUS: UDP 1812 / 1813 (older 1645 / 1646), encrypts only the password, combines authentication and authorization. Typical use: network access such as 802.1X, Wi-Fi and VPN.
- TACACS+: TCP 49, encrypts the whole packet body, keeps all three functions separate. Typical use: device administration with per-command control.
Because TACACS+ can check and log each command separately, it is the usual choice for managing routers and switches. RADIUS is the usual choice for letting users onto the network.
Try it yourself
Look at some accounting on your own computer. On macOS or Linux, open a terminal and run last to see who logged in and when. On Windows, open Event Viewer, go to Windows Logs > Security and look for logon events (Event ID 4624). Each line is a record of who signed in and at what time, the same kind of trail a router keeps for its admins.
Good to know
- AAA on Cisco devices is enabled with
aaa new-modeland configured with method lists. - RADIUS (RFC 2865, accounting in RFC 2866) uses UDP 1812/1813 (older 1645/1646), combines authentication and authorization and encrypts only the password.
- TACACS+ (RFC 8907) uses TCP 49, separates all three functions, encrypts the whole packet body and supports per-command authorization and accounting.
- TACACS+ is the usual choice for device administration; RADIUS is common for network access such as 802.1X and VPN.
- Local accounts can be a fallback method when the AAA servers are unreachable.
- The hotel is an analogy, and "usually a username and password" is simplified: MFA is the next episode.
For CCNA learners
This lines up with CCNA 200-301 exam topic 5.8, compare authentication, authorization, and accounting concepts: be able to say which A answers which question, and how RADIUS and TACACS+ differ.
Answer to the comment question
Authorization. The admin logged in fine, so authentication had already said yes: the router knew who she was. Refusing the reload command is a decision about what she is allowed to do, which is authorization (with TACACS+ this can be checked command by command). Accounting would only record the attempt.
Test your knowledge
Quick quiz: "AAA: authentication, authorization and accounting"
4 multiple-choice questions. Pick one answer for each, then check how you did.
Sources
- IETF, "RFC 8907, The Terminal Access Controller Access-Control System Plus (TACACS+) Protocol": separate authentication, authorization and accounting; TCP 49; body obfuscation
- IETF, "RFC 2865, Remote Authentication Dial In User Service (RADIUS)": authentication and authorization; UDP 1812
- Cisco, "Compare TACACS+ and RADIUS" (Document 13838): TCP vs UDP; full-body vs password-only encryption; separate AAA functions
- Cisco, CCNA 200-301 v1.1 exam topics: 5.8 compare authentication, authorization, and accounting concepts
Video transcript
Who are you, what can you do, and what did you do?
Those three questions are triple A: authentication, authorization, and accounting. Picture a hotel.
Authentication is the front desk checking your ID. It proves who you are, usually with a username and password.
Authorization is your key card. It opens your room and the gym, but not the manager's office. It decides what you're allowed to do.
Accounting is the bill: what you used, and when. On routers, it logs who logged in and which commands they ran. A central RADIUS or TACACS plus server usually handles all three.
An admin logs in fine, but the router won't let her run the reload command. Which of the three A's said no? Comment your answer below!
That's your byte.
More from Network Bytes
- EP59"DHCP snooping and rogue DHCP"
- EP60"VPNs: site-to-site vs remote access"
- EP62"MFA and password policy"
- EP63"Control plane vs data plane"