No. |
25 |
---|---|
Attribute Name |
Class |
Attribute Value Type |
String |
Standard Defined |
RFC 2865 |
Server Type |
All |
Value of Length Field (in Bytes) |
1-253 |
Description |
If the RADIUS server sends a RADIUS Access-Accept packet carrying the Class attribute to the NAS, subsequent RADIUS Accounting-Request packets sent from the NAS to the RADIUS server must carry the Class attribute with the same value. A RADIUS Access-Accept packet can carry zero to eight class attributes. Note: The Class attribute is used in two application scenarios. In addition to the standard scenario described by RFC 2865, the Class attribute can be delivered with QoS parameters contained. The details are as follows: 1. If the radius-server class-as-car command is run in the RADIUS server group view, the Class attribute is parsed as CAR parameters: For a standard RADIUS server, the Class attribute can carry CAR parameters after the radius-server class-as-car command is run. If the Class attribute carries CAR parameters, the length of the Class attribute is at least 32 bits, and the string can consist of only digits ranging from 0 to 9. The first 32 bits are divided into four octets (from left to right), which are used to indicate the upstream PIR, upstream CIR, downstream PIR, and downstream CIR, expressed in bit/s. For other types of RADIUS servers, the Class attribute cannot carry CAR parameters. Irrespective of whether the Class attribute is used to carry CAR parameters, the Class attribute is eventually transmitted back to the RADIUS server. When the Class attribute carries CAR parameters, the NAS detects whether the first 32 bytes are characters, and discards the subsequent bytes. Only one Class attribute takes effect. If multiple Class attributes are contained in a packet, the CAR parameters of the last valid Class attribute are used. 2. The Class attribute can also be used to send descriptions for user access VLANs or PVCs. If the link-account resolve command is run on a BAS interface, the command takes effect only for common Layer 2 users who are not authenticated but charged by a RADIUS server. 3. PADM packets sent by PPPoE users carry the Class attribute delivered by the RADIUS server. The maximum length of the Class attribute is 63 bytes. If the length exceeds 63 bytes, the excess part is truncated. The rules for delivering the Class attribute in a CoA message are as follows:
|