Tutorial 3.15: Internet Authentication Applications
Learning Objectives
After completing this tutorial, you should be able to:
- Explain the role of network authentication protocols in providing AAA services.
- Describe the RADIUS architecture, including clients, servers, and proxies.
- Analyze RADIUS message formats, attribute types, and operations.
- Evaluate the use of RADIUS in enterprise wireless authentication (802.1X).
- Describe the TACACS+ architecture and its features.
- Compare and contrast RADIUS and TACACS+.
- Explain the Diameter protocol and its role in AAA.
- Compare RADIUS and Diameter.
- Design an authentication solution for a given network scenario.
Overview
In the previous tutorials, we have explored authentication protocols for user access to systems and applications—
Kerberos for enterprise networks, SAML and OIDC for web-based federation. However, authentication is not limited to
user-to-application interactions. Network infrastructure itself—routers, switches, firewalls, VPN gateways, and wireless
access points—requires robust authentication mechanisms to control access and manage administrative sessions. This
tutorial focuses on the Internet Authentication Applications that provide Authentication,
Authorization, and Accounting (AAA) services for network access: RADIUS, TACACS+,
and Diameter.
These protocols are foundational to network security. They enable centralized management of authentication and
authorization policies, allowing organizations to enforce consistent security controls across diverse network
infrastructure. Without these protocols, network administrators would need to manage credentials and permissions on
each device individually—a task that quickly becomes unmanageable in any organization of significant size.
We begin with RADIUS (Remote Authentication Dial-In User Service), the most widely deployed AAA
protocol. Developed in the 1990s for dial-up access, RADIUS has evolved to support a broad range of network access
scenarios, including VPNs, wireless (802.1X), and switch/router management. We examine its architecture, message
formats, attribute types, and authentication methods (PAP, CHAP, EAP). We also discuss RADIUS proxying and its use
in enterprise wireless authentication.
We then explore TACACS+ (Terminal Access Controller Access Control System Plus), a Cisco-developed
protocol that provides separate authentication, authorization, and accounting services. TACACS+ is primarily used for
network device administration (e.g., router and switch access). We analyze its architecture, message exchange, and
key features—including the separation of AAA functions and encryption of the entire payload—and compare it with
RADIUS.
We then examine Diameter, a more recent protocol designed to address the limitations of RADIUS,
particularly in mobile and IP multimedia environments. Diameter is used in LTE/5G networks, IP Multimedia Subsystems
(IMS), and by many large-scale service providers. We discuss its architecture, applications, and how it improves upon
RADIUS.
The tutorial concludes with case studies illustrating the use of RADIUS in enterprise wireless networks, TACACS+ for
network device administration, and Diameter in a mobile telecommunications environment. By the end of this tutorial,
you will have a comprehensive understanding of the protocols that secure network infrastructure access.
1. Introduction to Internet Authentication Applications
1.1 What Are Internet Authentication Applications?
Internet Authentication Applications are protocols that provide AAA (Authentication, Authorization,
and Accounting) services for network access. They enable centralized management of user access to network resources,
ensuring that only authorized users and devices can connect to the network, and that their activities are logged for
audit and billing purposes.
The three primary protocols in this domain are:
- RADIUS: The most widely deployed AAA protocol, used for network access (dial-up, VPN, wireless,
switch/router authentication).
- TACACS+: A Cisco-developed protocol for device administration, offering separate AAA functions
and encryption.
- Diameter: A newer protocol that extends and improves upon RADIUS, used in mobile (LTE/5G) and
IP multimedia systems.
1.2 The AAA Framework in Network Access
- Authentication: Verifying the identity of a user or device trying to access the network.
- Authorization: Determining what resources the authenticated user can access (e.g., VLAN,
privilege level, QoS).
- Accounting: Logging the user's activities—session duration, data usage, commands executed—for
billing, auditing, and troubleshooting.
1.3 Centralized vs. Distributed Authentication
Without a central AAA system, each network device (router, switch, access point) must maintain its own user database.
This is difficult to manage, inconsistent, and insecure. Centralized AAA, using protocols like RADIUS and TACACS+,
allows organizations to manage authentication policies from a single server, improving security and operational
efficiency.
Key Takeaway: Internet Authentication Applications provide centralized AAA services for network
access, enabling consistent security policies and scalable administration.
2. RADIUS – Remote Authentication Dial-In User Service
2.1 Overview
RADIUS (Remote Authentication Dial-In User Service) is a networking protocol that provides
centralized AAA services for users who connect to a network. It was originally developed by Livingston Enterprises
for dial-up PPP access and later standardized in RFC 2865 (Authentication) and RFC 2866 (Accounting). RADIUS is
widely used for VPN, wireless (802.1X), and network device authentication.
2.2 RADIUS Architecture
- RADIUS Client: A network device (NAS – Network Access Server, wireless access point, VPN gateway)
that initiates authentication requests on behalf of users. The client forwards user credentials to the RADIUS server.
- RADIUS Server: A central server that authenticates users, authorizes access, and returns
configuration information (e.g., VLAN, IP address). It stores user credentials (often in a database or LDAP).
- RADIUS Proxy: An intermediary that forwards RADIUS messages between clients and servers, often
used in multi-domain or roaming environments.
┌─────────────────────────────────────────────────────────────────────────────┐
│ RADIUS ARCHITECTURE │
├─────────────────────────────────────────────────────────────────────────────┤
│ │
│ ┌────────────┐ RADIUS ┌────────────────────┐ │
│ │ NAS / │─── Messages ──►│ RADIUS Server │ │
│ │ Access │ │ (Authentication │ │
│ │ Point │◄── Responses ──│ + Authorization │ │
│ └────────────┘ │ + Accounting) │ │
│ │ └──────────┬─────────┘ │
│ │ │ │
│ ┌─────┴─────┐ ┌─┴─┐ │
│ │ User │ │ DB│ │
│ │ (Client) │ │ │ │
│ └───────────┘ └───┘ │
│ │
└─────────────────────────────────────────────────────────────────────────────┘
Figure 1: RADIUS architecture with client (NAS), server, and backend database.
2.3 Authentication Methods
RADIUS supports various authentication methods, which are negotiated between the client and server:
- PAP (Password Authentication Protocol): The password is sent in cleartext (in the Access-Request
packet) but is protected by the RADIUS shared secret. PAP is weak.
- CHAP (Challenge-Handshake Authentication Protocol): The server sends a challenge; the client
responds with a hash of the challenge and password. More secure than PAP.
- EAP (Extensible Authentication Protocol): Allows for flexible authentication methods, including
certificates, tokens, and biometrics. Used in 802.1X wireless and wired authentication.
2.4 RADIUS Security
- Shared Secret: A pre-shared key between the RADIUS client and server. Used to encrypt the
password (in PAP) and to authenticate messages.
- Message Integrity: The RADIUS Access-Response includes a signature (MD5-based) to verify
authenticity.
- Encryption: Only the user password is encrypted (in PAP mode); other attributes are sent in
cleartext. RADIUS does not encrypt the entire payload by default.
- Limitations: RADIUS uses UDP, which is connectionless and does not guarantee delivery.
It also does not provide message-level confidentiality for all attributes.
Note: RADIUS over UDP uses ports 1812 (authentication) and 1813 (accounting). Older implementations
may use ports 1645 and 1646, which are now deprecated.
Key Takeaway: RADIUS is a widely deployed AAA protocol for network access. It uses a client-server
model with a shared secret for security, but has limitations in confidentiality and reliability.
3. RADIUS Messages and Attributes
3.1 RADIUS Message Structure
A RADIUS message consists of a header and a variable number of attributes.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Code | Identifier | Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Authenticator |
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Attributes ...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Code: Message type (e.g., 1 = Access-Request, 2 = Access-Accept, 3 = Access-Reject, 4 = Accounting-Request).
- Identifier: Used to match requests and responses.
- Length: Total length of the message.
- Authenticator: Used for authentication and message integrity.
- Attributes: Variable-length fields carrying specific data.
3.2 Common RADIUS Attribute Types
| Attribute Type |
Code |
Description |
| User-Name | 1 | The username of the user. |
| User-Password | 2 | The user's password (encrypted). |
| CHAP-Password | 3 | CHAP response (challenge + hash). |
| NAS-IP-Address | 4 | IP address of the NAS. |
| Service-Type | 6 | Type of service requested (e.g., Framed, Login). |
| Framed-IP-Address | 8 | IP address to assign to the user. |
| Framed-MTU | 12 | Maximum Transmission Unit for the user. |
| State | 24 | Used for stateful authentication (e.g., EAP). |
| Session-Timeout | 27 | Maximum session duration. |
| Idle-Timeout | 28 | Maximum idle time before disconnect. |
| Called-Station-Id | 30 | Called number (e.g., SSID for wireless). |
| Calling-Station-Id | 31 | Calling number (e.g., MAC address for wireless). |
| EAP-Message | 79 | Encapsulates EAP packets. |
| Message-Authenticator | 80 | Used for EAP and improved security. |
3.3 RADIUS Proxy
RADIUS supports proxying, where a RADIUS client forwards requests to a RADIUS proxy, which then forwards them to a
RADIUS server. This is useful in scenarios like:
- Roaming: Users from different ISPs can authenticate using their home credentials.
- Federation: Multiple organizations share a common RADIUS infrastructure.
- Load balancing: Distributing authentication requests across multiple servers.
4. RADIUS Operations and Network Access
4.1 Authentication Flow
- User connects to the NAS (e.g., wireless access point).
- NAS sends an Access-Request to the RADIUS server with the user's credentials (username, password, etc.).
- RADIUS server validates the credentials against its user database.
- If valid, the server sends an Access-Accept with authorization attributes (e.g., VLAN, IP address).
- If invalid, the server sends an Access-Reject.
- Accounting: NAS sends Accounting-Start/Stop messages to the RADIUS server.
4.2 802.1X and Enterprise Wireless Authentication
In enterprise Wi-Fi networks, RADIUS is used with 802.1X (Port-Based Network Access Control). The typical flow is:
- Supplicant: The client device (laptop, phone).
- Authenticator: The access point (wireless controller).
- Authentication Server: The RADIUS server (often with EAP).
The access point acts as a RADIUS client, forwarding EAP messages from the supplicant to the RADIUS server. The
RADIUS server performs the authentication (e.g., using EAP-TLS, PEAP, or EAP-MSCHAPv2) and sends an Access-Accept
or Access-Reject. This provides strong, centralized authentication for wireless networks.
4.3 RADIUS Accounting
RADIUS accounting messages (Accounting-Request, Accounting-Response) are used to track user sessions. Accounting
attributes include:
- Acct-Status-Type: Start, Stop, Interim-Update.
- Acct-Session-Id: Unique session identifier.
- Acct-Input-Octets / Acct-Output-Octets: Data transferred.
- Acct-Session-Time: Duration of the session.
Key Takeaway: RADIUS provides comprehensive AAA services for network access, including authentication
(via PAP, CHAP, EAP), authorization (via attributes), and accounting (session logging). It is a cornerstone of
enterprise network security.
5. TACACS+ – Terminal Access Controller Access Control System Plus
5.1 Overview
TACACS+ (Terminal Access Controller Access Control System Plus) is a Cisco-developed protocol that
provides AAA services for network device administration (e.g., router, switch, firewall access). Unlike RADIUS,
TACACS+ separates the three AAA functions (Authentication, Authorization, Accounting) into independent services,
providing greater flexibility. It also encrypts the entire packet payload, not just the password.
5.2 Architecture
- TACACS+ Client: A network device (router, switch, firewall) that sends authentication,
authorization, and accounting requests to the TACACS+ server.
- TACACS+ Server: A central server that provides AAA services. It stores user credentials and
policies.
TACACS+ uses TCP (port 49) for reliable communication, unlike RADIUS which uses UDP.
5.3 TACACS+ Features
- Separate AAA: Authentication, authorization, and accounting are independent services. This
allows different methods for each (e.g., LDAP for authentication, local database for authorization).
- Full Packet Encryption: The entire TACACS+ payload is encrypted, providing confidentiality for
all attributes (including username and password).
- Granular Authorization: TACACS+ provides fine-grained authorization for commands. For example,
a user can be allowed to use certain router commands but not others.
- Reliable Transport: TCP ensures reliable delivery and connection-oriented sessions.
5.4 TACACS+ Message Exchange
TACACS+ uses a three-phase negotiation:
- Start: Client sends a START message indicating the service (e.g., login).
- Continue: Server sends a response (e.g., challenge); client responds with credentials.
- Finish: Server sends a PASS or FAIL message.
This process is similar to a challenge-response, but the messages can be encrypted. TACACS+ also supports an
"authorization only" mode, where the client requests authorization for a specific command.
6. TACACS+ Message Structure
6.1 TACACS+ Header
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Major Version | Minor Version | Type | Sequence |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Flags (16 bits) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Major/Minor Version: Protocol version.
- Type: Message type (1 = Authentication, 2 = Authorization, 3 = Accounting).
- Sequence: For session management.
- Flags: Encryption and compression flags.
- Length: Length of the body (following the header).
6.2 TACACS+ Body
The body contains the actual AAA data. For authentication, it includes fields like username, password, and remote
address. For authorization, it includes the command to be authorized. For accounting, it includes session details.
The body is encrypted using a key derived from the shared secret, providing confidentiality.
7. Comparison: RADIUS vs. TACACS+
| Feature |
RADIUS |
TACACS+ |
| Transport |
UDP (ports 1812/1813) |
TCP (port 49) |
| AAA Separation |
Combined (authentication and authorization are often combined in Access-Request/Access-Accept) |
Separate (authentication, authorization, accounting are independent) |
| Encryption |
Only password (PAP) is encrypted; other attributes are in cleartext |
Full payload encryption |
| Granular Authorization |
Limited to session-level attributes (e.g., VLAN, IP) |
Per-command authorization (e.g., specific router commands) |
| Reliability |
UDP (connectionless, no guarantee of delivery) |
TCP (reliable, connection-oriented) |
| Authentication Methods |
PAP, CHAP, EAP |
PAP, CHAP, MS-CHAP, EAP, etc. |
| Use Cases |
Network access (VPN, wireless, switch authentication) |
Device administration (router, switch, firewall access) |
| Proprietary |
Open standard (RFC 2865/2866) |
Cisco proprietary (but widely supported) |
Important: While TACACS+ is often considered more secure and flexible for device administration,
RADIUS remains the dominant protocol for network access due to its widespread support and integration with 802.1X.
8. Diameter Protocol
8.1 Overview
Diameter is a AAA protocol designed to overcome the limitations of RADIUS. It was developed by the
IETF and standardized in RFC 6733 (Diameter Base Protocol). Diameter is used primarily in mobile networks (LTE/5G),
IP Multimedia Subsystems (IMS), and by large-scale service providers. It provides a more robust, extensible, and
scalable framework than RADIUS.
8.2 Architecture
- Diameter Node: An entity that implements the Diameter protocol. Nodes can be clients, servers,
or relay/agents.
- Diameter Client: A network device (e.g., access point) that sends authentication/authorization
requests.
- Diameter Server: The central AAA server.
- Diameter Agents: Intermediate nodes that relay, redirect, or proxy messages (e.g., Relay Agents,
Proxy Agents).
- Realm: A logical domain of Diameter nodes.
8.3 Key Features
- Reliable Transport: Diameter uses TCP (or SCTP) for reliable, connection-oriented communication.
- Message Integrity and Confidentiality: Diameter supports TLS and IPsec for security.
- Peer-to-Peer: Diameter nodes establish peer relationships, allowing for more flexible topologies.
- Extended Attribute Space: Unlike RADIUS (which uses 8-bit attribute types), Diameter uses 32-bit
AVPs (Attribute-Value Pairs), allowing for a much larger set of attributes.
- Stateful Sessions: Diameter supports session state, enabling features like session management
and re-authentication.
- Capability Negotiation: Diameter nodes negotiate capabilities during peer establishment.
- Error Handling: Detailed error codes and reporting.
8.4 Diameter Applications
Diameter is extended through "applications" that define specific message sets and AVPs for particular use cases:
- Diameter Mobile IPv4 Application: For Mobile IPv4.
- Diameter EAP Application: For EAP authentication.
- Diameter Credit-Control Application: For real-time billing.
- Diameter SIP Application: For IMS/SIP authentication.
- Diameter 3GPP Applications: Various applications for LTE/5G networks (e.g., S6a, S9, Gx).
9. Comparison: RADIUS vs. Diameter
| Feature |
RADIUS |
Diameter |
| Transport |
UDP (unreliable) |
TCP or SCTP (reliable) |
| Security |
Shared secret, password encryption only |
IPsec/TLS, full payload encryption |
| Session State |
Stateless |
Stateful (supports sessions) |
| Attribute Space |
8-bit attribute type (255 max) |
32-bit AVP (4 billion+) |
| Peer Discovery |
Manual (pre-configured clients/servers) |
Dynamic (peer discovery, capability negotiation) |
| Error Handling |
Limited (only Access-Reject/Response) |
Comprehensive error codes and reporting |
| Extensibility |
Limited (vendor-specific attributes) |
Extensible (via applications) |
| Use Cases |
Enterprise network access, VPN, wireless |
Mobile (LTE/5G), IMS, service provider networks |
10. Case Studies and Real-World Applications
10.1 Case Study: Enterprise Wireless Authentication with RADIUS
Background: A large university with 30,000 students and 5,000 staff deploys a campus-wide Wi-Fi
network using 802.1X and RADIUS.
Architecture:
- RADIUS servers (redundant) using FreeRADIUS with an LDAP backend.
- Wireless controllers act as RADIUS clients.
- EAP-PEAP with MSCHAPv2 for client authentication.
- RADIUS accounting logs session data for audit and capacity planning.
Outcome: Students and staff authenticate using their university credentials. The network provides
secure, authenticated access with centralized management.
10.2 Case Study: Network Device Administration with TACACS+
Background: A financial services company manages hundreds of routers, switches, and firewalls. They
need fine-grained control over who can access these devices and what commands they can execute.
Solution:
- TACACS+ server (Cisco ISE) for AAA.
- Different privilege levels: Read-Only, Read-Write, and Administrator.
- Command authorization: Specific commands (e.g., "reload", "configure") require additional authorization.
- Accounting logs all commands executed for audit.
Outcome: The company achieves strict control over network device access, with detailed audit trails
for all administrative actions.
10.3 Case Study: Diameter in 5G Networks
Background: A mobile network operator (MNO) deploys a 5G network. The core network uses Diameter for
AAA services, including subscriber authentication (S6a interface between MME and HSS).
Architecture:
- Diameter servers (HSS/UDM) store subscriber profiles.
- Diameter clients (MME) authenticate subscribers during attach procedures.
- Diameter agents (DRA – Diameter Routing Agent) route messages.
- Diameter supports roaming and inter-operator communication.
Outcome: Diameter provides secure, reliable, and scalable AAA for millions of subscribers, supporting
the complex requirements of 5G networks.
11. Summary and Transition
This tutorial provided a comprehensive exploration of Internet Authentication Applications—the protocols that secure
network infrastructure access. We began by introducing the AAA framework and the need for centralized authentication
in networks. We then examined RADIUS, the most widely deployed network AAA protocol, covering its
architecture, messages, operations, and use in enterprise wireless (802.1X). We explored its security model, including
shared secrets and encryption limitations.
We then examined TACACS+, a Cisco-developed protocol for device administration, highlighting its
separation of AAA functions, full payload encryption, and granular command authorization. We compared RADIUS and
TACACS+, showing how each is suited to different use cases—RADIUS for network access, TACACS+ for device administration.
Finally, we explored Diameter, a more modern protocol that overcomes many of RADIUS's limitations,
offering reliable transport, full encryption, session state, and extensibility. Diameter is used in mobile networks
(LTE/5G), IP multimedia systems, and large-scale service provider environments.
The case studies illustrated the real-world application of these protocols: RADIUS in university wireless networks,
TACACS+ in enterprise network administration, and Diameter in 5G networks.
This tutorial has equipped you with a comprehensive understanding of the protocols that secure network infrastructure
access. In the next tutorial, Tutorial 3.16, we will explore OAuth, OpenID Connect, and Modern Identity
Systems, delving deeper into the protocols that underpin modern web authentication and federation.
Quiz
Answer the following questions to check your understanding. Click the "Answer" button to reveal the solution.
Q1. Which protocol is the most widely deployed AAA protocol for network access?
- A) TACACS+
- B) Diameter
- C) RADIUS
- D) LDAP
Answer
C) RADIUS is the most widely deployed AAA protocol for network access.
Q2. Which transport protocol does RADIUS use?
- A) TCP
- B) UDP
- C) SCTP
- D) HTTP
Answer
B) RADIUS uses UDP (ports 1812/1813).
Q3. Which protocol separates authentication, authorization, and accounting into independent services?
- A) RADIUS
- B) TACACS+
- C) DIAMETER
- D) LDAP
Answer
B) TACACS+ separates AAA functions into independent services.
Q4. In RADIUS, which attribute is used to encapsulate EAP packets?
- A) EAP-Message
- B) Message-Authenticator
- C) User-Name
- D) State
Answer
A) EAP-Message (79) encapsulates EAP packets.
Q5. Which protocol encrypts the entire payload, not just the password?
- A) RADIUS
- B) TACACS+
- C) Diameter
- D) Both B and C
Answer
D) Both TACACS+ and Diameter encrypt the entire payload (with TACACS+ using a shared secret and Diameter using IPsec/TLS).
Q6. What is the primary use case for TACACS+?
- A) Wireless authentication (802.1X)
- B) Network device administration (router/switch access)
- C) Web application SSO
- D) Email authentication
Answer
B) TACACS+ is primarily used for network device administration.
Q7. Which protocol is designed to overcome the limitations of RADIUS and is used in 5G networks?
- A) TACACS+
- B) Diameter
- C) LDAP
- D) SAML
Answer
B) Diameter is designed to overcome RADIUS limitations and is used in 5G networks.
Q8. Which protocol uses TCP as its transport?
- A) RADIUS
- B) TACACS+
- C) Diameter
- D) Both B and C
Answer
D) Both TACACS+ (TCP port 49) and Diameter (TCP or SCTP) use reliable transport.
Q9. In RADIUS, what is the purpose of the Message-Authenticator attribute?
- A) To encrypt the user password
- B) To provide message integrity for EAP
- C) To store session information
- D) To specify the VLAN
Answer
B) Message-Authenticator provides message integrity for EAP.
Q10. Which protocol supports per-command authorization (e.g., allowing specific router commands)?
- A) RADIUS
- B) TACACS+
- C) Diameter
- D) Both A and B
Answer
B) TACACS+ supports per-command authorization.
Q11. What is the default port for RADIUS authentication?
- A) 1812
- B) 1813
- C) 1645
- D) 49
Answer
A) RADIUS authentication uses UDP port 1812.
Q12. Which protocol uses AVPs (Attribute-Value Pairs) with 32-bit type space?
- A) RADIUS
- B) TACACS+
- C) Diameter
- D) LDAP
Answer
C) Diameter uses 32-bit AVPs, providing a large attribute space.
Exercises
These exercises are designed to help you apply the concepts from this tutorial. Attempt each exercise before revealing the sample solution.
Exercise 3.15-1: RADIUS Message Analysis
Given the following RADIUS Access-Request attributes, determine what type of authentication is being used and what the client is requesting:
- User-Name: "alice"
- User-Password: (encrypted) [not shown]
- NAS-IP-Address: 192.168.1.1
- Service-Type: Framed
- Framed-Protocol: PPP
- Calling-Station-Id: "00:11:22:33:44:55"
What would a successful Access-Accept likely include?
Sample Solution
Analysis:
- The request is for a user "alice" authenticating via PAP (since User-Password is included).
- NAS-IP-Address indicates the NAS (access point) is at 192.168.1.1.
- Service-Type: Framed indicates a PPP session (typical for dial-up or VPN).
- Calling-Station-Id is the MAC address of the client device.
Access-Accept likely includes:
- Framed-IP-Address: an IP address to assign to the user.
- Framed-MTU: MTU for the connection.
- Session-Timeout: maximum session duration.
- VLAN or other attributes depending on policy.
Exercise 3.15-2: TACACS+ vs. RADIUS Selection
You are the network security architect for a large enterprise. The organization has the following requirements:
- Centralized authentication for wireless users (802.1X).
- Centralized authentication for network device administration (routers, switches).
- Need to log all commands executed on devices for compliance.
- Need to grant different levels of access to network administrators (read-only, read-write, admin).
Which protocols would you recommend for each use case? Justify your answer.
Sample Solution
Recommendation:
- Wireless authentication (802.1X): Use RADIUS. RADIUS is the standard for 802.1X and supports EAP for strong authentication. It integrates well with wireless controllers.
- Network device administration: Use TACACS+. TACACS+ provides per-command authorization and full payload encryption, which is ideal for device administration. It also supports separate AAA functions, allowing granular control.
- Logging commands: TACACS+ accounting logs all commands executed on devices, which meets the compliance requirement.
- Different levels of access: TACACS+ supports granular authorization (e.g., read-only, read-write) through command authorization.
Justification: The organization should deploy both RADIUS (for wireless access) and TACACS+ (for device administration). They can be run on separate servers or on a unified platform like Cisco ISE.
Exercise 3.15-3: Diameter Application Design
You are designing a AAA system for a new mobile network operator. The network will use Diameter for authentication, authorization, and accounting. Describe the Diameter architecture, including the necessary agents and applications. What security measures would you implement?
Sample Solution
Architecture:
- Diameter Nodes: Clients (e.g., MME in LTE), Servers (e.g., HSS/UDM), and Agents (DRA – Diameter Routing Agent).
- Applications: 3GPP S6a application for subscriber authentication, Gx for policy control, Gy for credit control.
- Transport: TCP or SCTP for reliable communication.
Security:
- Use IPsec or TLS for encryption and integrity protection.
- Implement mutual authentication between Diameter nodes using certificates.
- Use Diameter's capability negotiation to ensure only authorized applications are used.
- Deploy redundant Diameter servers and agents for high availability.
- Monitor Diameter traffic for anomalies.
Exercise 3.15-4: RADIUS Proxy Configuration
An organization has a RADIUS server that authenticates users for VPN access. They want to extend this to allow employees to authenticate using their company credentials when working from partner offices. The partner office has its own RADIUS server. Design a RADIUS proxy solution to enable this. What configurations are needed?
Sample Solution
RADIUS Proxy Solution:
- Deploy a RADIUS proxy at the partner office that forwards authentication requests to the organization's RADIUS server.
- The proxy must be configured with the organization's RADIUS server as a "home" server.
- The proxy uses a shared secret to authenticate with the organization's RADIUS server.
- Requests from the partner office's NAS are sent to the proxy, which forwards them.
- The proxy can also handle accounting messages.
- Ensure that the proxy supports the required EAP methods.
- Use a realm-based routing if multiple domains are involved.
Security: Use strong shared secrets, encrypt communications with IPsec or TLS if possible, and monitor the proxy for abuse.
Exercise 3.15-5: TACACS+ Command Authorization
You are configuring TACACS+ for a network operations team. The team has three privilege levels:
- Level 1: Read-only access (show commands).
- Level 2: Read-write access (show and configure).
- Level 3: Full access (all commands, including reload and reset).
Describe how you would implement this using TACACS+ authorization. What would the authorization configuration look like?
Sample Solution
TACACS+ Authorization Implementation:
- In the TACACS+ server, define three privilege levels: 1, 2, 3.
- Configure authorization rules for each level:
- Level 1: Allow only "show" commands (e.g., show running-config, show ip interface brief).
- Level 2: Allow "show" and "configure" commands, but not destructive commands like "reload".
- Level 3: Allow all commands.
- Map users to these privilege levels in the TACACS+ user database.
- On the network devices, configure TACACS+ authentication and authorization, specifying the privilege level based on the user's login.
- The TACACS+ server will enforce the command authorization based on the privilege level.
Configuration example (pseudo):
- user alice { privilege = 1; authorization = "show .*" }
- user bob { privilege = 2; authorization = "(show|configure).*" }
- user admin { privilege = 3; authorization = ".*" }
Homework
These homework questions require deeper analysis, research, and application. Answer each question comprehensively.
Homework 3.15-1: RADIUS Security Analysis
Write a 1,000–1,250 word security analysis of RADIUS. Discuss its security model, including the shared secret, encryption (or lack thereof), and vulnerabilities. Compare its security to TACACS+ and Diameter. Propose improvements to RADIUS security, considering modern threats.
Sample Answer
RADIUS Security Analysis
- Security Model: RADIUS uses a shared secret for authentication and encryption of the password (PAP). However, other attributes are sent in cleartext.
- Vulnerabilities: UDP is connectionless; susceptible to spoofing and replay attacks (though the authenticator provides some protection). Lack of full payload encryption exposes user identity and other attributes.
- Comparison: TACACS+ and Diameter both offer full payload encryption, making them more secure for sensitive environments.
- Improvements: Use IPsec or TLS to encrypt RADIUS traffic; implement strong shared secrets; use EAP with Message-Authenticator for integrity.
Homework 3.15-2: Diameter vs. RADIUS Research
Write a 1,000–1,250 word research paper comparing RADIUS and Diameter. Include architectural differences, protocol features, security, and use cases. Provide a decision framework for choosing between the two for a large-scale network.
Sample Answer
RADIUS vs. Diameter
- Architecture: RADIUS is client-server with simple request/response; Diameter is peer-to-peer with stateful sessions.
- Features: Diameter offers reliable transport, full encryption, session state, and extensibility.
- Use Cases: RADIUS for enterprise network access; Diameter for mobile (LTE/5G) and service provider.
- Decision Framework: Use RADIUS for standard enterprise; use Diameter for mobile, large-scale, or when extensibility is needed.
Homework 3.15-3: TACACS+ Deployment Plan
Develop a detailed deployment plan for TACACS+ in a large enterprise with 5,000 network devices. Include:
- Server architecture (redundancy, failover).
- Integration with existing identity sources (e.g., AD, LDAP).
- Device configuration (AAA commands on routers/switches).
- Policy definition (privilege levels, command authorization).
- Accounting and auditing.
- Testing and rollout strategy.
Sample Answer
TACACS+ Deployment Plan
- Architecture: Two redundant TACACS+ servers (e.g., Cisco ISE) with load balancing.
- Integration: Use LDAP/AD for user authentication; TACACS+ server acts as proxy.
- Device config: Enable AAA on devices:
aaa new-model, aaa authentication login default group tacacs+ local.
- Policies: Define privilege levels; command authorization using TACACS+ command sets.
- Accounting: Enable accounting for all commands; log to TACACS+ server and SIEM.
- Testing: Pilot with a small group of devices; validate all scenarios.
Homework 3.15-4: 802.1X and RADIUS Case Study
Write a 1,000–1,250 word case study on a real-world 802.1X deployment using RADIUS. Describe the organization, the network architecture, the authentication method (e.g., EAP-TLS, PEAP), and the RADIUS infrastructure. Discuss the challenges faced and how they were overcome. Include lessons learned.
Sample Answer
802.1X Deployment in a University
- Organization: A university with 20,000 students and staff.
- Architecture: Wireless controllers, RADIUS servers (FreeRADIUS), LDAP for user data.
- Authentication: PEAP-MSCHAPv2 with student credentials.
- Challenges: Device compatibility (iOS, Android, Windows), on-boarding issues, and RADIUS server load.
- Solutions: Use EAP-TLS for corporate devices; implement RADIUS load balancing; provide clear user instructions.
- Lessons: Plan for scale; test with all device types; provide robust helpdesk support.
Homework 3.15-5: Future of Network AAA
Write a 1,000–1,250 word essay on the future of network AAA protocols. Discuss emerging trends such as the adoption of Diameter in 5G, the role of AI in authentication, and the potential for blockchain-based identity. How will RADIUS and TACACS+ evolve?
Sample Answer
Future of Network AAA
- 5G and Diameter: Diameter is the standard for 5G, with extensions for network slicing and massive IoT.
- AI in AAA: Anomaly detection, risk-based authentication, and predictive analytics.
- Blockchain: Decentralized identity for devices and users, potential for tamper-proof accounting.
- RADIUS/TACACS+: Will continue to be used in legacy environments; may evolve with enhanced security (e.g., RADIUS over TLS).
Summary
This tutorial provided a comprehensive exploration of Internet Authentication Applications—the protocols that secure
network infrastructure access. We began by introducing the AAA framework and the need for centralized authentication
in networks. We then examined RADIUS, the most widely deployed network AAA protocol, covering its
architecture, messages, operations, and use in enterprise wireless (802.1X). We explored its security model, including
shared secrets and encryption limitations.
We then examined TACACS+, a Cisco-developed protocol for device administration, highlighting its
separation of AAA functions, full payload encryption, and granular command authorization. We compared RADIUS and
TACACS+, showing how each is suited to different use cases—RADIUS for network access, TACACS+ for device administration.
Finally, we explored Diameter, a more modern protocol that overcomes many of RADIUS's limitations,
offering reliable transport, full encryption, session state, and extensibility. Diameter is used in mobile networks
(LTE/5G), IP multimedia systems, and large-scale service provider environments.
The case studies illustrated the real-world application of these protocols: RADIUS in university wireless networks,
TACACS+ in enterprise network administration, and Diameter in 5G networks.
This tutorial has equipped you with a comprehensive understanding of the protocols that secure network infrastructure
access. In the next tutorial, Tutorial 3.16, we will explore OAuth, OpenID Connect, and Modern Identity
Systems, delving deeper into the protocols that underpin modern web authentication and federation.
© 2026 COMP400 – Computer and Network Security • School of Computing and Information Systems, TrustOpen University • Unit 3: Authentication and Access Control