Search
Home Search Center IP Encyclopedia Online Courses

What Is HWTACACS Authentication?

Huawei Terminal Access Controller Access Control System (HWTACACS) is an enhanced security protocol based on TACACS (RFC 1492). Similar to RADIUS, HWTACACS is mainly used for authentication, authorization, and accounting (AAA) management of network devices.

What Is HWTACACS Authentication?

TACACS, initially developed by Cisco Systems, is a protocol used to authenticate identities of network devices and aims to resolve identity authentication and authorization issues for early network devices. TACACS separates authentication, authorization, and audit functions to provide a flexible and powerful identity authentication mechanism, so that network administrators can use it to manage network device access rights of users.

HWTACACS is an enhanced security protocol based on TACACS and an information exchange protocol based on the client/server structure. For example, an HWTACACS server can be configured to perform authentication, authorization, and accounting for administrative users logging in to a network device. The network device functions as an HWTACACS client to send the user names and passwords of the administrative users to the HWTACACS server. The authorized users can log in to the device and perform operations.

HWTACACS authentication
HWTACACS authentication

Why Do We Need HWTACACS Authentication?

When a user logs in to a network device in Telnet, SSH, or web mode, using HWTACACS for device login authentication can greatly improve the security and authentication flexibility of device login. HWTACACS is easy to use and secure.

  • Security: Compared with other authentication modes, such as RADIUS, HWTACACS is more secure. HWTACACS uses TCP and encrypts the entire packet body, ensuring data transmission security.
  • Flexibility: HWTACACS separates authentication and authorization, which enables flexible control of user permissions. In addition, HWTACACS supports command line authorization, which limits the commands that can be executed by users and implements fine-grained permission control.

Comparison Between HWTACACS, TACACS, and RADIUS

Both HWTACACS and RADIUS have the following characteristics:
  • Client/Server model
    • HWTACACS client: generally resides on the Network Access Server (NAS) and can locate at any node on a network. The client is responsible for transmitting user information to the specified HWTACACS server and then performs operations accordingly based on the server-returned information.
    • HWTACACS server: generally runs on the central computer or workstation. The server maintains user authentication and network access information, and is responsible for receiving user connection requests, authenticating users, and returning required information to clients.
  • Shared key used for encrypting user information
  • Good flexibility and scalability

Compared with RADIUS, HWTACACS is more reliable in transmission and encryption and is more suitable for security control. The following table lists the differences between HWTACACS and RADIUS.

Table 1-1 Comparison between HWTACACS and RADIUS

Item

HWTACACS

TACACS

RADIUS

Data transmission

Uses TCP, which is more reliable.

Uses TCP, which is more reliable.

Uses UDP, which is more efficient.

Encryption mode

Encrypts the entire HWTACACS packet except the standard HWTACACS header.

Encrypts only the password field in an authentication packet.

Encrypts only the password field in an authentication packet.

Authentication and authorization

Separates authentication and authorization so that they can be implemented on different security servers. For example, one HWTACACS server performs authentication and another HWTACACS server performs authorization.

Combines authentication and authorization, which cannot be separated.

Combines authentication and authorization, which cannot be separated.

Command line authorization

Defines command sets corresponding to user roles and supports dynamic change of permissions.

Defines command sets corresponding to user roles. Users need to be re-authenticated to obtain new permissions.

Does not support command line authorization. The commands that a user can use depend on the user privilege level. A user can only use the commands at the same privilege level or lower.

Application scenario

Applies to security control.

Applies to security control.

Applies to accounting.

How Does HWTACACS Authentication Work?

HWTACACS Authentication, Authorization, and Accounting

The login mode supported by HWTACACS authentication varies according to the device model and version. This section describes how HWTACACS performs authentication, authorization, and accounting for Telnet users. The following figure shows the message exchange process.
HWTACACS message exchange
HWTACACS message exchange
The following describes the HWTACACS message exchange process:
  1. A Telnet user sends a login request.
  2. The HWTACACS client sends an Authentication Start packet to the HWTACACS server after receiving the request.
  3. The HWTACACS server sends an Authentication Reply packet to the HWTACACS client to request the user name.
  4. The HWTACACS client sends a packet to the user to query the user name after receiving the Authentication Reply packet.
  5. The user enters the user name.
  6. The HWTACACS client sends an Authentication Continue packet containing the user name to the HWTACACS server.
  7. The HWTACACS server sends an Authentication Reply packet to the HWTACACS client to request the password.
  8. The HWTACACS client sends a packet to the user to query the password after receiving the Authentication Reply packet.
  9. The user enters the password.
  10. The HWTACACS client sends an Authentication Continue packet containing the password to the HWTACACS server.
  11. The HWTACACS server sends an Authentication Reply packet to the HWTACACS client, indicating that the user has been authenticated.
  12. The HWTACACS client sends an Authorization Request packet to the HWTACACS server.
  13. The HWTACACS server sends an Authorization Response packet to the HWTACACS client, indicating that the user has been authorized.
  14. After receiving the Authorization Response packet, the HWTACACS client displays the device login page to the user.
  15. The HWTACACS client sends an Accounting-Request (Start) packet to the HWTACACS server.
  16. The HWTACACS server sends an Accounting-Response (Start) packet to the HWTACACS client, indicating that the Accounting-Request (Start) packet has been received.
  17. The user requests to terminate the connection.
  18. The HWTACACS client sends an Accounting-Request (Stop) packet to the HWTACACS server.
  19. The HWTACACS server sends an Accounting-Response (Stop) packet to the HWTACACS client, indicating that the Accounting-Request (Stop) packet has been received.

Application Scenarios of HWTACACS Authentication

HWTACACS authentication is mainly used for device login authentication and is widely used in refined permission control scenarios.

  • Data center (DC) access control: A DC usually contains a large number of key service systems. HWTACACS authentication can be used to implement strict identity authentication and permission control for users who access network devices in the DC.
  • Service provider network: HWTACACS authentication is used to manage access of a large number of users to network resources, ensuring that each user can access only authorized resources.
  • Remote access control: For network devices that need to be remotely managed, HWTACACS authentication ensures identity security of remote users and prevents unauthorized access.
About This Topic
  • Author: Li Yanxia
  • Updated on: 2026-11-04
  • Views: 250
  • Average rating:
Share link to