
Table of Contents
AAA is the abbreviation for Authentication, Authorization and Accounting. This mechanism provides security by verifying users, controlling their access permissions and recording their activities on the network. In an Enterprise Network, AAA is a very important security implementation. You can also check RFC 3539 (Authentication, Authorization and Accounting (AAA) Transport Profile) for more technical details.
What is the meaning of these terms? Let’s explain these three terms and look at the duty of each of them.

AAA in Networking
The three terms that build AAA (Authentication, Authorization and Accounting) can be explained with three simple questions:
To implement centralized AAA in networking, there are different protocols. On Cisco devices, two commonly used AAA protocols are:
RADIUS is commonly used for network access, while TACACS+ is commonly used for network device administration. We will also talk about the differences between these two AAA protocols in this lesson.
Now, let’s explain each of the terms used in AAA. With these explanations, you will understand AAA better.
As with all networks, Enterprise Networks need to be secure. Access to these networks is restricted to specific users. These users can be the employees of an Enterprise, technicians, engineers, human resources experts, sales representatives, managers etc.
Each of these people needs to access the Enterprise Network. But accessing the network without any security mechanism is not secure. So, before allowing users to access the network, their identities must be verified. This mechanism is called Authentication.
Authentication answers the question: “Who are you?”

AAA Authentication in Networking
In Authentication, user credentials are checked. For example, a user’s username and password are verified against a local user database or an external authentication server. According to this information, the user is accepted or denied access to the network. It is basically an identity verification mechanism.
There are different authentication methods that can be used on Cisco devices. Three basic methods are:
No Authentication is the method in which there is no authentication mechanism. Simply, you do not use Authentication. This is an insecure way to access network devices.
Local Authentication is the method in which authentication is done locally through a username and password. Here, user credentials are stored on the network device itself.
Remote Authentication is the method in which authentication is done through an external AAA server. RADIUS and TACACS+ protocols can be used for remote authentication.
To use AAA Authentication on Cisco devices, first, we need to enable AAA with the following command:
Router(config)# aaa new-model
After that, we can determine which authentication method will be used. For example, we can use the local user database with the following command:
Router(config)# aaa authentication login default local
We can also use a RADIUS or TACACS+ server for authentication. Here, we can configure local authentication as a backup method if the remote AAA server is unavailable. For secure remote access to Cisco devices, SSH should be preferred instead of Telnet.
Authorization is the second term of the AAA concept. Basically, it is used to determine different permissions for different users and user groups on a network.
In an Enterprise Network, there are different user profiles. All of these users and user groups can need different roles and permissions on the network. For example, a network administrator needs administrative privileges to configure network devices. On the other hand, a person in the sales department needs to access only specific parts of the network. Here, Authorization determines the necessary permissions for each user or user group.
Authorization answers the question: “What are you allowed to do?”

AAA Authorization and User Permissions
Authentication and Authorization are two different mechanisms. Authentication verifies the identity of a user, while Authorization determines what the user is allowed to do. In the AAA process, Authorization is typically performed after successful Authentication.
On Cisco devices, AAA Authorization can be used to control different types of access. For example, we can control:
To configure AAA Authorization on Cisco devices, we can use the following command:
Router(config)# aaa authorization exec default local
With this command, EXEC session authorization is performed using the local user database. We can also use an external TACACS+ server for command authorization. With this mechanism, we can determine which commands each user is allowed to execute on a Cisco device.
Accounting is the last term of the AAA (Authentication, Authorization and Accounting) concept. Basically, it is the mechanism that records the activities of users on a network.
Accounting answers the question: “What did you do?”

AAA Accounting and User Activity Logs
Accounting records different types of information about users. For example, login times, session duration, executed commands and network resource usage can be recorded by Accounting.
With this information, network administrators can monitor user activities, troubleshoot network problems and detect suspicious activities. This information can also be used for billing purposes.
On Cisco devices, AAA Accounting can record different types of information, such as:
To configure AAA Accounting on Cisco devices, we can use the following command:
Router(config)# aaa accounting exec default start-stop group tacacs+
With this command, accounting records are sent to the TACACS+ server at the beginning and at the end of an EXEC session. We can also record commands executed by users on Cisco devices with the following command:
Router(config)# aaa accounting commands 15 default start-stop group tacacs+
Here, Accounting records the execution of privilege level 15 commands. With these records, network administrators can track user activities on network devices.
Both RADIUS and TACACS+ support accounting services. However, TACACS+ is commonly preferred for command accounting on Cisco network devices.
We have learned the three main components of AAA. But how do these three mechanisms work together in a network? Let’s explain this with a simple example.
Think about a network engineer who wants to access a Cisco router in an Enterprise Network.

How AAA Works?
Here, Authentication provides identity verification, Authorization controls user permissions and Accounting keeps track of user activities.
With AAA in networking, network administrators can manage user access centrally, increase network security and monitor user activities across multiple network devices.
The main differences between Authentication, Authorization and Accounting are given in the below table.
| Feature | Authentication | Authorization | Accounting |
|---|---|---|---|
| Main Purpose | Identity Verification | Access Control | Activity Tracking |
| Main Question | Who are you? | What are you allowed to do? | What did you do? |
| Function | Verifies user identity | Determines user permissions | Records user activities |
| Example | Username and Password | Command Permissions | Session Logs |
| When | Before access | After authentication | Throughout the session |

Authentication vs Authorization vs Accounting Comparison Table
As we have mentioned before, there are two commonly used protocols for centralized AAA in networking. These protocols are:
Both protocols provide Authentication, Authorization and Accounting services. But their working mechanisms and common usage areas are different.
RADIUS is commonly used for network access, while TACACS+ is commonly used for network device administration. There is also another AAA protocol called Diameter.
You can learn more about these AAA protocols and their differences in our RADIUS vs TACACS+ lesson.
There are many benefits of using AAA in Enterprise Networks. Instead of managing users separately on each network device, we can manage them centrally with an AAA server.
The main benefits of AAA in networking are:

Benefits of AAA
Especially in large Enterprise Networks, AAA makes user management easier and more secure.
AAA (Authentication, Authorization and Accounting) is a security framework used to verify user identities, control user permissions and record user activities on a network. With AAA, network administrators can manage user access and increase network security.
In Cisco networking, AAA stands for Authentication, Authorization and Accounting. It is used to control access to Cisco routers, switches and other network devices.
Authentication verifies the identity of a user, Authorization determines what the user is allowed to do and Accounting records the activities of the user on the network.
Authentication comes first. Before giving any permissions to a user, we need to verify the identity of that user. After successful Authentication, Authorization determines which resources and services the user can access.
AAA is used for network security, access control, centralized user management and activity tracking. With AAA, network administrators can control who can access the network, what they can do and what activities they perform.
An AAA server is a central server that provides Authentication, Authorization and Accounting services. Network devices can communicate with this server using AAA protocols such as RADIUS and TACACS+.
The two commonly used AAA protocols are RADIUS and TACACS+. RADIUS is commonly used for network access, while TACACS+ is commonly used for network device administration.
RADIUS itself is an AAA protocol, not a server. A RADIUS server is a server that uses the RADIUS protocol to provide Authentication, Authorization and Accounting services.
In a typical AAA process, Authorization is implemented after successful Authentication. Once the identity of a user is verified, Authorization determines which network resources, services and commands the user is allowed to access.
TACACS+ (Terminal Access Controller Access-Control System Plus) was developed by Cisco. It separates Authentication, Authorization and Accounting and is commonly used for network device administration. Today, TACACS+ is documented in RFC 8907.
AAA Accounting can record user login and logout times, session duration, executed commands and network resource usage. Network administrators can use this information for monitoring, troubleshooting, auditing and billing.
The aaa new-model command enables the AAA security framework on Cisco IOS and IOS XE devices. After enabling AAA, we can configure different Authentication, Authorization and Accounting methods.
Gokhan Kosem is a Network Engineer, Instructor and the Founder of IPCisco.com with 15+ years of experience in Cisco, Nokia, Huawei, Juniper, Linux, Service Provider Networks, Routing and Switching technologies.
He has worked on the backbone networks of major service providers and network vendors including Nortel, Alcatel-Lucent (Nokia) and has extensive hands-on experience with Cisco, Huawei, Juniper and Nokia networking technologies.
He has trained thousands of networking students worldwide through IPCisco.com, Udemy, books, labs, quizzes, and educational content across multiple social media platforms.
IPCisco.com | Best Route to Your Dreams