Security Fundamentals · Topic 8 of 10

Authentication, Authorization and Accounting

Compare the three parts of AAA, what authentication, authorization and accounting each do, and how RADIUS, TACACS+ and 802.1X support access control.

  • 6 min
  • Exam objective 5.8
In a nutshell
  • AAA is authentication (who), authorization (what) and accounting (what was done).
  • Authentication comes first, then authorization.
  • RADIUS is open, uses UDP and encrypts only the password.

What it is

AAA stands for authentication, authorization and accounting, and it controls who can use a device, what they can do, and what they did.

Rather than storing user accounts on every router and switch, AAA lets devices ask a central server. Accounts are created, changed and removed in one place.

That is easier to manage and more secure than local passwords spread over many devices.

How it works

A device asks a central AAA server to authenticate the user, then authorize actions, then record them.

AdminloginSwitchnetwork access serverasksAAA serverRADIUS or TACACS+AAA serverRADIUS or TACACS+accept and privilege levelSwitchnetwork access serversession allowedAdmin

The three parts

PartQuestion it answersExample
AuthenticationWho are you?A user enters a name and password, or presents a certificate
AuthorizationWhat are you allowed to do?The user may view the configuration but not change it
AccountingWhat did you do?A log of logins, commands run and session length

Authentication proves identity. It may use a password, a certificate, a one-time code or a combination of them.

Authorization happens after authentication. It sets the limits: which devices the user may reach, which commands they may run, and which privilege level they get. A person can be authenticated and still be authorised to do very little.

Accounting records activity. It supports auditing, billing and investigation. For example, it can show who made a configuration change at a certain time.

A good way to hold all three together is a visit to a building.

Authentication is showing your ID at the door. Authorization is the badge that opens only certain rooms. Accounting is the log of when you entered and left.

Exam tip

Match the verb to the part. Who you are is authentication, what you may do is authorization, and what you did is accounting.

The AAA server and protocols

Devices that ask for decisions are called network access servers or clients of AAA. The server that decides is a AAA server. Devices and the server communicate using one of two protocols.

FeatureRADIUSTACACS+
StandardOpen standardCisco protocol
TransportUDP, ports 1812 and 1813TCP, port 49
EncryptionOnly the password in the packetThe whole payload
AAA functionsAuthentication and authorization combinedAll three separated
Typical useNetwork access, such as wireless and VPN loginsDevice administration, with per command control

TACACS+ lets you control which individual commands each administrator may run, so it is often chosen for device administration.

These were also compared on the management access page in the Network Access chapter.

802.1X

IEEE 802.1X applies AAA to the network port or the wireless connection itself. A device must authenticate before it is allowed to use the network. It has three roles:

  • the supplicant, which is the client device
  • the authenticator, which is the switch or access point
  • the authentication server, which is usually a RADIUS server
Supplicantclient devicecredentialsAuthenticatorswitch or APforwards requestAuthentication serverRADIUSAuthentication serverRADIUSaccept or rejectAuthenticatorswitch or APport openedSupplicantclient device

Until authentication succeeds, the authenticator allows only authentication traffic. Afterwards, it opens the port, or places the user in a VLAN chosen by the server. This is the basis for WPA2 and WPA3 Enterprise on wireless networks.

A simple configuration example

On a Cisco device, AAA is switched on with aaa new-model, and then you list methods to try, in order:

aaa new-model
username admin secret STRONGPASS
aaa authentication login default group tacacs+ local
aaa authorization exec default group tacacs+ local
aaa accounting exec default start-stop group tacacs+

The server itself is defined separately:

tacacs server TAC1
 address ipv4 10.1.1.20
 key SHAREDKEY

Reading the first method line: for logins, try the group of TACACS+ servers first, and if none of them can be reached, fall back to the local username database. The fallback is important. Without it, an unreachable server would lock administrators out.

Note that a server that is reachable but rejects the login does not trigger the fallback. Only a failure to respond does.

The name default is a method list. It applies to all lines unless a named list is attached to a specific line.

Watch out

Keep local at the end of the method list. If the AAA server is down and there is no fallback, nobody can log in.

Why it matters

  • Central control: change a password or remove a leaver once.
  • Individual accountability: every action is tied to a person.
  • Least privilege: authorization limits what each user may do.
  • Audit trail: accounting provides the record needed for compliance and investigation.

What to remember for the exam

Eight facts cover the three parts, the two protocols and 802.1X.

  • AAA is authentication (who), authorization (what) and accounting (what was done).
  • Authentication comes first, then authorization.
  • RADIUS is open, uses UDP and encrypts only the password.
  • TACACS+ is Cisco, uses TCP port 49 and encrypts the whole payload.
  • TACACS+ separates the three functions and supports per command authorization.
  • 802.1X has a supplicant, an authenticator and an authentication server.
  • aaa new-model enables AAA on a Cisco device.
  • Keep a local fallback in the method list.

Common mistakes

Five confusions are common.

Mixing up authentication and authorization. Logging in is authentication. Deciding what you may do is authorization.

Forgetting the fallback. If the server is down and there is no local method, nobody can log in.

Thinking accounting controls access. Accounting only records. It does not allow or block anything.

Swapping RADIUS and TACACS+ details. TACACS+ is TCP and encrypts everything. RADIUS is UDP and encrypts only the password.

Treating the authenticator as the decision maker. In 802.1X, the switch or AP only passes messages. The server decides.

Check yourself

Try these three prompts.

  • What is the difference between authentication, authorization and accounting?

    Authentication proves who you are, authorization sets what you may do, and accounting records what you did, like showing ID at the door, a badge that opens only certain rooms, and a log of entries.

  • Why is TACACS+ often chosen over RADIUS for device administration?

    TACACS+ separates all three AAA functions, can control which individual commands each administrator may run, and encrypts the whole payload, whereas RADIUS combines authentication and authorization and encrypts only the password.

  • What are the three roles in 802.1X, and what does the authenticator allow until authentication succeeds?

    The roles are the supplicant (the client device), the authenticator (the switch or access point) and the authentication server (usually RADIUS). Until authentication succeeds, the authenticator allows only authentication traffic.

Topic 8 of 10 in Security Fundamentals

Test yourself on Security Fundamentals

The full Cisco CCNA 200-301 question bank has 1,206 questions, with timed practice exams and an explanation for every answer.

This study guide is independent and is not affiliated with, endorsed by, or sponsored by Cisco. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.