10.1. 基础协议命令 AVP 表
10.1. 基础协议命令 AVP 表 (Base Protocol Command AVP Table)
本节的表格仅限于本规范定义的非计费 (non-Accounting) 命令码 (Command Code).
表头中的 CER/CEA、DPR/DPA、DWR/DWA、RAR/RAA、ASR/ASA 和 STR/STA 分别表示 Diameter base protocol 中的请求/应答命令对. 单元格中的 0 表示该 AVP 不出现, 1 表示必须出现一次, 0-1 表示可选且最多一次, 0+ 表示可以出现零次或多次, 1+ 表示至少出现一次. AVP 名称和命令缩写属于协议字段, 保持英文原文.
使用该表时, 实现者应把它看作基础协议命令的 AVP 出现约束摘要. 例如, Origin-Host 和 Origin-Realm 在这些命令中通常是必需的, Result-Code 出现在应答消息中, Destination-Host 和 Destination-Realm 只在特定请求中需要, 而 Proxy-Info、Route-Record 等路由相关 AVP 可按代理路径重复出现.
| Attribute Name | CER | CEA | DPR | DPA | DWR | DWA | RAR | RAA | ASR | ASA | STR | STA |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Acct-Interim-Interval | 0 | 0 | 0 | 0 | 0 | 0 | 0-1 | 0 | 0 | 0 | 0 | 0 |
| Accounting-Realtime-Required | 0 | 0 | 0 | 0 | 0 | 0 | 0-1 | 0 | 0 | 0 | 0 | 0 |
| Acct-Application-Id | 0+ | 0+ | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Auth-Application-Id | 0+ | 0+ | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 |
| Auth-Grace-Period | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Auth-Request-Type | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Auth-Session-State | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Authorization-Lifetime | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Class | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0+ | 0+ |
| Destination-Host | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0-1 | 0 |
| Destination-Realm | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 |
| Disconnect-Cause | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Error-Message | 0 | 0-1 | 0 | 0-1 | 0 | 0-1 | 0 | 0-1 | 0 | 0-1 | 0 | 0-1 |
| Error-Reporting-Host | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0-1 | 0 | 0-1 | 0 | 0-1 |
| Failed-AVP | 0 | 0-1 | 0 | 0-1 | 0 | 0-1 | 0 | 0-1 | 0 | 0-1 | 0 | 0-1 |
| Firmware-Revision | 0-1 | 0-1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Host-IP-Address | 1+ | 1+ | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Inband-Security-Id | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Multi-Round-Time-Out | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Origin-Host | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
| Origin-Realm | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
| Origin-State-Id | 0-1 | 0-1 | 0 | 0 | 0-1 | 0-1 | 0-1 | 0-1 | 0-1 | 0-1 | 0-1 | 0-1 |
| Product-Name | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Proxy-Info | 0 | 0 | 0 | 0 | 0 | 0 | 0+ | 0+ | 0+ | 0+ | 0+ | 0+ |
| Redirect-Host | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0+ | 0 | 0+ | 0 | 0+ |
| Redirect-Host-Usage | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0-1 | 0 | 0-1 | 0 | 0-1 |
| Redirect-Max-Cache-Time | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0-1 | 0 | 0-1 | 0 | 0-1 |
| Result-Code | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 |
| Re-Auth-Request-Type | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
| Route-Record | 0 | 0 | 0 | 0 | 0 | 0 | 0+ | 0 | 0+ | 0 | 0+ | 0 |
| Session-Binding | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Session-Id | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 |
| Session-Server-Failover | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Session-Timeout | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Supported-Vendor-Id | 0+ | 0+ | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Termination-Cause | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
| User-Name | 0 | 0 | 0 | 0 | 0 | 0 | 0-1 | 0-1 | 0-1 | 0-1 | 0-1 | 0-1 |
| Vendor-Id | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Vendor-Specific-Application-Id | 0+ | 0+ | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |