ELI5: What is the AAA Framework?

Think of going to a theme park. First, they check your ticket to make sure you’re really a guest (that’s authentication). Then, the ticket says which rides you’re allowed on — maybe you have a VIP pass or a basic pass (that’s authorization). Finally, the park keeps track of which rides you went on and when (that’s accounting). Computers use these same three steps to keep track of who’s using them and what they’re doing.

ELI5: AAA Framework (繁體中文版)

AAA 就像是進入管制區的流程。1. 認證 (Authentication):確認「你是誰」 (檢查證件);2. 授權 (Authorization):確認「你能做什麼」 (你有哪裡的鑰匙);3. 紀錄 (Accounting):記下「你做了什麼」 (攝影機紀錄)。

[使用者] --1.身分驗證--> [管理系統] --2.權限控制--> [資源]
           ^                       |
           |----------3.行為紀錄-------|

Overview

The AAA (Authentication, Authorization, and Accounting) framework defines how users are identified, what they are permitted to do, and how their actions are tracked. AAA is implemented through protocols like RADIUS, TACACS+, and Kerberos and underpins identity and access management across enterprise environments.

Key Concepts

  • Authentication — verifying the identity of a user, device, or service (see authentication)
    • Something you know (password), something you have (token), something you are (biometric)
  • Authorization — determining what an authenticated entity is allowed to do (see authorization)
    • Enforced through access control models (RBAC, ABAC, MAC, DAC)
  • Accounting — logging and tracking user activities for audit and forensic purposes
    • Includes session duration, commands executed, data accessed, and resource usage
  • RADIUS (Remote Authentication Dial-In User Service) — UDP-based, encrypts only the password, commonly used for network access (Wi-Fi, VPN)
    • Combines authentication and authorization in a single step
  • TACACS+ (Terminal Access Controller Access-Control System Plus) — TCP-based, encrypts the entire payload, separates AAA functions independently
    • Preferred for device administration (switches, routers, firewalls)
  • Kerberos — ticket-based authentication protocol used in Active Directory environments; uses port 88

Exam Tips

RADIUS vs. TACACS+

FeatureRADIUSTACACS+
ProtocolUDP (1812/1813)TCP (49)
EncryptionPassword onlyFull packet
AAA SeparationCombined auth/authzSeparate
Best forNetwork accessDevice admin

Remember

“RADIUS for Remote users, TACACS+ for Terminal/device administration.” The exam loves comparing these two.

Connections

Practice Questions

Scenario

See case-aaa-framework for a practical DevOps scenario applying these concepts.

Resources