标准CAPWAP协议

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

国人CAPWAP协议
1.消息头
2.消息类型
2.1Discovery request
使用描述:
用于执行AC发现,报文中携带的是AP的主要特征信息。

标准属性描述
必须携带以下属性:
Discovery Type; AP发现AC的方式
WTP Board Data; AP的硬件信息
WTP Descriptor; AP的硬件版本信息和软件版本信息
WTP Frame Tunnel Mode; AP的隧道支持模式
WTP MAC Type; Ap的MAC方式支持(split mac/ local mac)
IEEE 802.11 WTP Radio Information(802.11绑定); RADIO支持模式
(80211b/g/a/n)
可以携带以下属性
MTU Discovery Padding; MTU发现填充
Vendor Specific Payload; 厂家自定义属性
自定义属性
2.2Discovery response
使用描述:
用于AC接收到discovery request后, 向AP发布服务信息。

属性描述
必须携带以下属性:
AC Name;
CAPWAP Control IPv4/IPV6 Address;
IEEE 802.11 WTP Radio Information(802.11绑定);
AC Descriptor;
可以携带以下属性
Vendor Specific Payload;
自定义属性
2.3Primary Discovery Request(未实现)
使用描述:
有两个用途:用于AP切换到备份AC后,探测主AC;MTU发现
属性描述
必须携带以下属性:
Discovery Type;
WTP Board Data;
WTP Descriptor;
WTP Frame Tunnel Mode;
WTP MAC Type;
IEEE 802.11 WTP Radio Information(802.11绑定);
可以携带以下属性
Vendor Specific Payload;
MTU Discovery Padding;
自定义属性
2.4Primary Discovery Response(未实现)
使用描述:
用于向AP发布AC的可用信息,AP接收到此消息后,将执行主机切换
属性描述
必须携带以下属性:
AC Descriptor;
AC Name;
CAPWAP Control IPv4/IPV6 Address;
IEEE 802.11 WTP Radio Information(802.11绑定);
可以携带以下属性
Vendor Specific Payload;
MTU Discovery Padding;
自定义属性
2.5Join request
使用描述:
用于AP请求AC提供服务
属性描述
必须携带以下属性:
Location Data; 地域信息
WTP Board Data; WTP硬件信息
WTP Descriptor; WTP软件版本和硬件版本信息
WTP Name; WTP名称
Session ID;128位随机SESSIONID
WTP Frame Tunnel Mode;WTP隧道支持模式
WTP MAC Type;WTP MAC支持方式(split mac/local mac) ECN Support;显示拥塞通告支持
CAPWAP Local IPv4/IPV6 Address; WTP IPV4/IPV6地址
IEEE 802.11 WTP Radio Information(802.11绑定); WTP无线信息,这
里只上报WTP支持的模式(11b/g/n/a)
可以携带以下属性:
CAPWAP Transport Protocol; 传输模式,支持UPD/ UDP-LITE
Maximum Message Length; 限制最大消息长度
Vendor Specific Payload;
自定义属性
AP附着属性
2.6Join response
使用描述:
用于AC响应AP的加入请求
属性描述
必须携带以下属性:
Result Code; 结果码
AC Descriptor; AC信息描述符
AC Name; AC名称
ECN Support; 拥塞通告支持
CAPWAP Control IPv4/IPV6 Address; AC有效接口的IPV4地址/IPV6
地址,可以有多个接口同时向AP提供服务
CAPWAP Local IPv4/IPV6 Address; AP的有效地址
IEEE 802.11 WTP Radio Information; AP支持的RADIO模式,不知道
在JOIN RESPONSE中包含是做什么用
可以携带以下属性:
AC IPV6 List; 最新的AP可加入的AC列表IPV6地址,暂时
不知道怎么用
AC IPv4 List; 最新的AP可加入的AC列表IPV4地址,暂时
不知道怎么用
CAPWAP Transport Protocol; 传输模式,支持UPD/ UDP-LITE
Image Identifier; AC期望的AP使用的IMAGE ID
Maximum Message Length; 最大消息长度
Vendor Specific Payload; 厂商自定义属性
自定义属性
2.7Echo request
使用描述:
用于AP与AC之间进行保活
属性描述
必须携带以下属性:
可以携带以下属性:
Vendor Specific Payload;
自定义属性
2.8Echo response
使用描述:
用于AC响应AP的ECHO保活
属性描述
必须携带以下属性:
可以携带以下属性:
Vendor Specific Payload;
自定义属性
2.9Configuration Status Request
使用描述:
当AP在本地保存了配置时,用于AP向AC重新注册时或者是AP向其他AC注册时进行配置交换,以便使AC了解AP当前的配置状态(非默认配置)。

属性描述
必须携带以下属性:
AC Name; AC名称,这里应该是向AC上报当前注册的AC
的名称
Radio Administrative State; RADIO 可管理状态,还没弄清楚具体含义
Statistics Timer; 统计上报周期
WTP Reboot Statistics; AC重新启动的统计值,这些统计需要永久保持
可以携带以下属性:
AC Name with Priority; 具有优先级的AC名称,AC名称与AP获取到
AC个数相同
CAPWAP Transport Protocol; CAPWAP传输方式UDP-LITE/UDP
WTP Static IP Address Information; AC为WTP分配的固定地址,在NAT
时使用,具体怎么用没弄清楚
Vendor Specific Payload; 厂商自定义
IEEE 802.11 Antenna(801.11绑定); 天线参数
IEEE 802.11 Direct Sequence Control(801.11绑定); 直接序列控制参数
IEEE 802.11 MAC Operation(801.11绑定); MAC控制参数
IEEE 802.11 Multi-Domain Capability(801.11绑定); 多域参数,主要是指频段和功率
IEEE 802.11 OFDM Control(801.11绑定); OFDM参数
IEEE 802.11 Supported Rates(801.11绑定); 支持的速率
IEEE 802.11 Tx Power(801.11绑定); 支持的功率
IEEE 802.11 TX Power Level(801.11绑定); 支持的功率级别
IEEE 802.11 WTP Radio Configuration(801.11绑定); 无线配置,包括BSSID等
IEEE 802.11 WTP Radio Information(801.11绑定); 无线当前的模式
自定义属性
2.10Configuration Status Response
使用描述:
用于AC在配置状态对AP的配置进行覆盖
属性描述
必须携带以下属性:
CAPWAP Timers; CAPWAP定时器消息
Decryption Error Report Period; 加解密消息报告周期
Idle Timeout; AP将STA闲置超时的周期
WTP Fallback; WTP 主备倒换支持能力
AC IPv4/IPV6 List 最新的AP可加入的AC列表IPV6地
址,暂时不知道怎么用
可以携带以下属性:
WTP Static IP Address Information; AC为AP分配的静态IP地址,
NAT时使用,没弄清楚咋使用
Vendor Specific Payload; 厂商自定义
IEEE 802.11 Antenna(801.11绑定); 天线参数
IEEE 802.11 Direct Sequence Control(801.11绑定); 直接序列控制参数
IEEE 802.11 MAC Operation(801.11绑定); MAC控制参数
IEEE 802.11 Multi-Domain Capability(801.11绑定); 多域参数,主要是指频段和功率
IEEE 802.11 OFDM Control(801.11绑定); OFDM参数
IEEE 802.11 Supported Rates(801.11绑定); 支持的速率
IEEE 802.11 Tx Power(801.11绑定); 支持的功率
IEEE 802.11 TX Power Level(801.11绑定); 支持的功率级别
IEEE 802.11 WTP Radio Configuration(801.11绑定); 无线配置,包括BSSID 等
IEEE 802.11 WTP Radio Information(801.11绑定);无线当前的模式
自定义属性
2.11Configure update request
使用描述:
用于AC在运行状态对AP进行配置的更新
属性描述
可以携带以下属性:
AC Name with Priority; 带优先级别的AC名称
AC Timestamp; AP时间同步
Add MAC ACL Entry; 增加MAC过滤策略
CAPWAP Timers; CAPWAP定时器
Decryption Error Report Period; 加解密错误报告周期
Delete MAC ACL Entry; 删除MAC过滤策
Idle Timeout; AP删除闲置STA周期
Location Data; 位置信息
Radio Administrative State; RADIO 可管理状态配置
Statistics Timer; 统计上报周期
WTP Fallback; WTP主备倒换能力
WTP Name; WTP 名称
WTP Static IP Address Information; WTP 静态地址配置
Image Identifier; WTP使用的IMAGE ID
IEEE 802.11 Antenna(801.11绑定); 天线参数
IEEE 802.11 Direct Sequence Control(801.11绑定); 直接序列参数
IEEE 802.11 MAC Operation(801.11绑定); MAC地址操作参数
IEEE 802.11 Multi-Domain Capability(801.11绑定); 多域参数
IEEE 802.11 OFDM Control(801.11绑定); OFDM控制参数
IEEE 802.11 Supported Rates(801.11绑定); 支持的速率配置
IEEE 802.11 Tx Power(801.11绑定); 功率
IEEE 802.11 TX Power Level(801.11绑定); 功率级别
IEEE 802.11 WTP Radio Configuration(801.11绑定); 无线配置
IEEE 802.11 WTP Radio Information(801.11绑定); 无线模式
Vendor Specific Payload; 厂商自定义
Radius配置(自定义类型)
AS配置属性(自定义属性)
WTP下载信息属性(自定义类型)
自定义属性
AC配置AP无线网卡的工作模式
隧道对端IP地址
隧道开关
无线信道参数配置
链路完整性参数配置
NTP服务器参数配置
自动信道调整参数配置
IGMP SNOOPING参数配置
负载均衡参数配置
二层隔离参数配置
隧道参数配置
预认证开关
AP通用配置
11N无线网卡参数配置
2.12Configure update response
使用描述:
当AP接收到AC的configure update request后的响应消息,请注意,只是表明AP 接收到该消息
属性描述
必须携带以下属性:
Result Code
可以携带以下属性:
Vendor Specific Payload;
Radio Operational State;
自定义属性
2.13Change state event request
使用描述:
有两个用途:1)在配置状态,接收configure status response后, 上报无线配置状态的更新信息以及AC配置应用情况2)在运行状态,当一个不期望的动作发生时,使用此消息向AC通告
属性描述
必须携带以下属性:
Result Code;
Radio Operational State;
可以携带以下属性:
Vendor Specific Payload;
Returned Message Element(s);
IEEE 802.11 WTP Radio Fail Alarm Indication(802.11绑定);
自定义属性
2.14Change state event response
使用描述:
AC响应change state event request消息
属性描述
必须携带以下属性:
可以携带以下属性:
Vendor Specific Payload;
自定义属性
2.15Clear Configuration Request
使用描述:
AC使用此消息恢复AP的配置
属性描述
必须携带以下属性:
可以携带以下属性:
Vendor Specific Payload;
自定义属性
2.16Clear Configuration Response
使用描述:
AC响应Clear Configuration Request消息
属性描述
必须携带以下属性:
可以携带以下属性:
Vendor Specific Payload;
自定义属性
2.17Image data request
使用描述:
Image data request是个双向报文,AP使用它来请求版本下载,AC使用它来进行版本传递
属性描述
可以携带以下属性:
CAPWAP Transport Protocol;
Image Data;
Vendor Specific Payload;
Image Identifier;(仅AP)
Initiate Download; (仅AP)
自定义属性
2.18Image data response
使用描述:
用来响应image data request消息
属性描述
必须携带以下属性:
Result Code;
可以携带以下属性:
Vendor Specific Payload;
Image Information(仅AC)
自定义属性
2.19Reset Request
使用描述:
AC通告AP重新启动,可以指定重新启动后的版本信息
属性描述
必须携带以下属性:
Image Identifier;
可以携带以下属性:
Vendor Specific Payload;
自定义属性
2.20Reset Response
使用描述:
用来响应Reset r equest消息
属性描述
必须携带以下属性:
可以携带以下属性:
Result Code;
Image Information(仅AC)
自定义属性
2.21Wtp event Request
使用描述:
AP使用此信息发送统计值,异步事件等
属性描述
必须携带以下属性:
可以携带以下属性:
Vendor Specific Payload;
Decryption Error Report;
Duplicate IPv4 Address;
Duplicate IPv6 Address;
WTP Radio Statistics;
WTP Reboot Statistics;
Delete Station;
IEEE 802.11 MIC Countermeasures(802.11绑定);
IEEE 802.11 RSNA Error Report from Station(802.11绑定);
IEEE 802.11 Statistics(802.11绑定);
自定义属性
AP状态信息统计
AP 无线用户参数统计
AP 无线用户参数统计
AP 关键事件通告
2.22Wtp event Response
使用描述:
用来响应Wtp event request消息
属性描述
必须携带以下属性:
可以携带以下属性:
Vendor Specific Payload;
自定义属性
2.23Data transfer Request(未实现)
使用描述:
用来上传CRASH信息或者是调试信息,AC使用此消息来请求CRASH信息或者是调试信息,AP使用此消息来回应CRASH信息
属性描述
必须携带以下属性:
Data Transfer Mode;
Data Transfer Data(only ap);
可以携带以下属性:
Vendor Specific Payload;
自定义属性
2.24Data transfer Response(未实现)
使用描述:
用来响应Data transfer Request消息
属性描述
必须携带以下属性:
Result Code;
可以携带以下属性:
Image Information(仅AC)
自定义属性
2.25Station configure request
使用描述:
属性描述
必须携带以下属性:
可以携带以下属性:
AP向AC发送的用户上线请求属性( 用户上线请求属性)
Add Station;(使用用户上线请求属性替代)
Delete Station;
Vendor Specific Payload;(见自定义属性)
IEEE 802.11 Station;
IEEE 802.11 Station Session Key(802.11绑定);
IEEE 802.11 Station QoS Profile(802.11绑定);
IEEE 802.11 Update Station Qos(802.11绑定);
自定义属性
用户上线类型
用户关联的WLAN ID
用户是否支持QoS状态的标
用户关联的Radio ID
STA同步
2.26Station configure Response
使用描述:
属性描述
必须携带以下属性:
Result Code;
可以携带以下属性:
Image Information(仅AC)
自定义属性
2.27IEEE 802.11 WLAN Configuration Request
使用描述:
属性描述
必须携带以下属性:
IEEE 802.11 Add WLAN;
IEEE 802.11 Delete WLAN;
IEEE 802.11 Update WLAN;
可以携带以下属性:
IEEE 802.11 Information Element
Vendor-Specific Payload
自定义属性
更新WLAN参数配置
WLAN下行流量控制参数配置
2.28IEEE 802.11 WLAN Configuration Response
使用描述:
属性描述
必须携带以下属性:
Result Code;
可以携带以下属性:
IEEE 802.11 Assigned WTP BSSID
Vendor-Specific Payload
自定义属性
2.29WLAN Environment Report Request(自定义)
使用描述:
该报文是双向的,
当由AC发送给 WTP时,可以包含的属性:
⏹802.11 WLAN环境扫描指示属性(WLAN Scan direction element),用于指示AP
进行扫描;
⏹Vendor Specific Payload;
如果是WTP发送给AC时,可以包含的属性:
⏹IEEE 802.11无线环境信息属性(WLAN environment information element),可以有
多个条目,每一个条目表示探测到的一个无线节点;
⏹Vendor Specific Payload;
2.30WLAN Environment Report Response(自定义)
该报文是双向的,用来作为对WLAN Environment Report Request报文的应答
可以包含:
⏹ Result Code;
⏹Vendor Specific Payload;
3.标准属性类型
3.1 AC描述符(AC Descriptor)
AC Descriptor 消息元素用于AC通知它当前的状态.它包含以下字段.
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Stations | Limit |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Active APs | Max APs |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Security | R-MAC Field | Reserved1 | DTLS Policy |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| AC Information Sub-Element...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Type: 1 for AC Descriptor
Length: >= 12
Stations:
AC当前服务的station总个数
Limit:
AC支持的能接入的station总个数
Active APs:
AC当前接入的AP总个数
Max APs:
AC支持的AP的最大个数
Security:
8-bit掩码表示AC支持的认证加密类型,该项可选支持,个数如下
0 1 2 3 4 5 6 7
+-+-+-+-+-+-+-+-+
|Reserved |S|X|R|
+-+-+-+-+-+-+-+-+
Reserved:
一些保留位为了将来应用,当前版本支持的实现必须填充为0.接收者收到这样的保留
字段必须忽略.
S:
AC支持pre-shared 加密认证。

X:
AC支持X.509证书认证。

R:
保留为,发送者必须填充为0,接收者必须忽略这个字段.
R-MAC Field:
AC在CAPWAP传输头支持的可选的Radio MAC地址字段,有以下枚举值
0 - Reserved
1 - 支持
2 - 不支持
Reserved:
保留字段
DTLS Policy:
AC通告它数据通道的DTLS策略.AC可能通告一个或者多个策略,下面的bit位来表示,AP必须遵循AC通告的策略选择,字段的个数如下.
0 1 2 3 4 5 6 7
+-+-+-+-+-+-+-+-+
|Reserved |D|C|R|
+-+-+-+-+-+-+-+-+
Reserved:
保留字段,格式全0
D:
DTLS-Enable数据通道支持,可选支持
C:
明文数据信道支持,必须支持
R:
保留字段,发送者必须设定为0,接收者必须忽略这些字段
AC Information Sub-Element:
AC Descriptor子消息元素,必须包含以下子元素,该子元素对处理方式不做要求。

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| AC Information Vendor Identifier |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| AC Information Type | AC Information Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| AC Information Data...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
设备供应商的企业码.
AC Information Vendor Identifier:厂商企业号
AC Information Type:
4 - Hardware Version:
AC的硬件版本,字符串格式,长度不超过32个字节。

5 - Software Version:
AC的软件版本,字符串格式,长度不超过32个字节。

AC Information Length:
类型信息的长度,比如软件版本和硬件版本,长度都不超过32字节。

AC Information Data:
类型值,长度由前一个字段表示,不超过32字节.
3.2 AC名字(AC Name)
AC name 消息元素包含UTF-8格式表述的AC标示符.值是可变的字符串长度。

0 1 2 3 4 5 6 7
+-+-+-+-+-+-+-+-+
| Name ...
+-+-+-+-+-+-+-+-+
Type: 4 for AC Name
Length: >= 1
Name:
可变长UTF-8格式的AC name,最长不超过512字节.
3.3 控制隧道IPv4地址(Control IPv4 Address)
CAPWAP Control IPv4 地址消息元素是AC在Discovery状态发送给AP的.用于提供AC上可用的接口地址和通过该接口接入AP的事实.当多个CAPWAP Control IPV4地址消息返回后,AP 应该在多个接口间考虑负载均衡
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| IP Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| WTP Count |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
可为多个IP地址串联,如AC有三个接口,就是三个接口地址的串联,特殊情况,如果解析的APCount是9999,表明是IP地址是多个AC的地址列表,用于AP选择AC
Type: 10 for CAPWAP Control IPv4 Address
Length: 6
IP Address:
IP地址格式。

WTP Count:
接入这个接口地址的AP个数.范围小于65535.
3.4 控制隧道IPv6地址(Control IPv6 Address)
CAPWAP Control IPv6 地址消息元素是AC在Discovery状态发送给AP的.用于提供AC上可用的接口地址
和通过该接口接入AP的事实.当多个CAPWAP Control IPV4地址消息返回后,AP应该在多个接口间考虑负载
均衡.
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| IP Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| IP Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| IP Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| IP Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| AP Count |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
注意不一定是一个地址,可能是多个这个消息得串联
Type: 11 for CAPWAP Control IPv6 Address
Length: 18
IP Address:
无符号整数地址格式.
AP Count:
这个接口接入的AP个数,范围在1-65535之间.
3.5 发现类型(Discovery Type)
Disvovery Type消息元素用于指示AP是怎么发现AC的,这个消息包含在Discovery request
报文中,具体格式如下.
0 1 2 3 4 5 6 7
+-+-+-+-+-+-+-+-+
| Discovery Type|
+-+-+-+-+-+-+-+-+
Type: 20 for Discovery Type
Length: 1
Discovery Type:
8-bit位表示发现类型,具体枚举值如下.
0 - Unknown
1 - Static Configuration
2 - DHCP
3 - DNS
4 - AC Referral (used when the AC was configured either through
the AC IPv4 List or AC IPv6 List message element)
3.6 位置(Location Data)
Location Date消息元素是可变长度的UTF-8编码的字符串,包含用户定义的位置信息( e.g.,”next to fridge”)这个报文用于网络管理员配置,允许自己定义AP的具体位置.字符串是
以\0作为结束.
0 1 2 3 4 5 6 7
+-+-+-+-+-+-+-+-+-
| Location ...
+-+-+-+-+-+-+-+-+-
Type: 28 for Location Data
Length: >= 1
Location:
UTF-8编码格式包含AP位置信息的字符串,最大长度不超过1024bit.
3.7 错误码(Result Code)
Result code消息元素是32-bit的整数值,用来指示请求的结果,常常出现在response报文中,
用来指示request的结果.
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Result Code |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Type: 33 for Result Code
Length: 4
Result Code:
Result code的枚举值如下.
0 成功
1 请求信息不完整失败
2 成功,但是检测到NAT
3 join失败,没有绑定802.11协议
4 join失败,资源耗尽
5 join失败,AP不识别
6 join失败,不正确的数据格式
7 Join Failurejoin失败,会话id已经使用
8 Join Failure join失败,不支持AP的硬件
9 join失败,绑定协议ac不支持
10 reset失败,不能reset
11 reset失败,固件写错误
12 configuration 失败,请求的配置设定失败.
13 configuration 失败,不支持请求的配置.
14 imagedate错误,校验和错误
15 image date错误,无效的数据长度
16 image date错误,未知的错误类型
17 image date错误,image已经发送
18 不是期望的消息,当前状态接收到非法消息.
19不是期望消息,当前状态接收的消息无法识别
20 失败,缺少必要的消息类型标识
21 失败不识别的消息类型
22 数据传输失败
3.8 连接标识(Session ID)
Session id消息元素值是包含一个随机生成的128-bit的整数.
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Session ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Session ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Session ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Session ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Type: 35 for Session ID
Length: 16
Session ID:
128-bit的无符号整数,随机数标识符.
3.9 WTP Board Data
WTP board data消息元素是AP发送给AC的,包含软硬件版本的信息.
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Vendor Identifier | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Board Data Sub-Element...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Type: 38 for WTP Board Data
Length: >=14
Vendor Identifier:企业号
Board Data Sub-Element:WTP board date的具体信息,按如下格式扩展
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Board Data Type | Board Data Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Board Data Value...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Board Data Type: Board Date类型字段,我们定义如下枚举类型来表示,AP必须携带这些信息。

0 - WTP Model Number,记录AP型号,必选
1 - WTP Serial Number:记录AP序列号,必选
2 - Board ID:记录AP硬件板卡号,必选
3 - Board Revision:各厂商扩展,可选
4 - Base MAC:记录AP的MAC地址,必选
Board Data Length:
类型字段的长度值,16-bit。

长度不超过128字节。

Board Data Value:
对应类型的数据值。

3.10 WTP描述符(WTP Descriptor)
WTP Descriptor 消息元素是用于AP通知给AC自己当前的硬件配置,具体报文格式如下
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 2 3
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Max Radios | Radios in use | Num Encrypt |Encryp Sub-Elmt|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Descriptor Sub-Element...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Type: 39 for WTP Descriptor
Length: >= 33
Max Radios:
8-bit位,表示这个wtp支持的最大radio个数,目前范围应该是1-31.
Radios in use:
8-bit位,来说明这个wtp中已经有多少个radio在使用
Num Encrypt:
数据置1
Encryp Sub-Elmt:
数据置1
Descriptor Sub-Element:
WTP 描述子元素,有些必须携带,有些是可选的.类型都是TLV格式.具体如下
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Descriptor Vendor Identifier |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Descriptor Type | Descriptor Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Descriptor Data...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Descriptor Vendor Identifier:
32-bit设备制造商的企业号
Descriptor Type:
wtp描述符的子类型,具体枚举值如下
0 - Hardware Version: 硬件版本,必选
1 - Active Software Version:
软件版本,必选
2 - Boot Version:
Bootload版本,可选
Descriptor Length:
长度,不超过32字节.
Descriptor Data:
UTF-8格式的字符串,长度不超过32个字节.
3.11 WTP Frame Tunnel Mode
WTP Frame Tunnel mode 消息元素是AP通知AC的,用来表明该AP所支持的
隧道类型.隧道类型有以下枚举值,AP可根据自身能力支持一种或多种,AC应同时支持多种。

0 1 2 3 4 5 6 7
+-+-+-+-+-+-+-+-+
|Reservd|U|N|E|L|
+-+-+-+-+-+-+-+-+
Type: 41 for WTP Frame Tunnel Mode
Length: 1
Reservd:
保留位,发送者设定为0,接收者忽略这些保留字段.
N:
802.11隧道模式,集中转发,目前最常用的模式
E:
802.3 隧道模式
L:
Local tunnel,本地转发模式
R(U):
保留位,置0
3.12 Local IPv4 Address
Local ipv4 address消息元素可以AP发送给AC,也可以ac发送给AP.这样双方都可以判断
是否中间存在middlebox.报文常常包含在join request中和join response中.
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| IP Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Type: 30 for CAPWAP Local IPv4 Address
Length: 4
IP Address:
发送者的ipv4地址.
3.13 WTP MAC Type
WTP MAC-type 消息元素是AP通知给AC自己的支持的操作模式.供AC选择选择配置AP使用的模式,具体枚举值如下.该项代表AP支持的能力级别,向下覆盖;AP可选择支持,AC应同时支持。

0 1 2 3 4 5 6 7
+-+-+-+-+-+-+-+-+
| MAC Type |
+-+-+-+-+-+-+-+-+
Type: 44for WTP MAC Type
Length: 1
MAC Type: T
AP支持MAC模式(AC AP将封装格式),有如下枚举值.
0 - Local MAC:
AP数据报文仅支持802.3frame封装数据。

1 - Split MAC:
AP数据报文仅支持802.11frame封装数据。

2 - Both:
AP数据报文既支持802.3frame封装数据,又支持802.11frame封装数据。

3.14 WTP Name
WTP Name消息元素是UTF-8格式可变长度的字符串,以\0作为结束符.
0 1 2 3 4 5 6 7
+-+-+-+-+-+-+-+-+-
| WTP Name ...
+-+-+-+-+-+-+-+-+-
Type: 45 for WTP Name
Length: >= 1
WTP Name:
UTF-8格式可变长度的字符串,以\0作为结束符,长度不超过1024-bit.
3.15 Radio信息(IEEE 802.11 WTP Radio Information)
消息元素IEEE 802.11 WTP Radio Information是AP用来通知AC自身的radio信息的。

在Discovery Request和Join Request报文中必须包含此消息元素,AP上一个radio包含一个此消息元素。

也可用在Configuration Status Request和Configuration Update Request报文中。

消息元素中Radio-Type字段是AC用来下发radio配置给AP的,设置AP的radio模式。

本消息元素包含2个字段,如下所示:
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Radio ID | Radio Type |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Radio Type |
+-+-+-+-+-+-+-+-+
Type: 1048 for IEEE 802.11 WTP Radio Information
Length: 5
Radio ID:
The Radio Identifier, 范围1-31,是AP上的radio标识符。

Radio Type:
可以组合,基本定义类型如下
8: An IEEE 802.11n radio.
4: An IEEE 802.11g radio.
2: An IEEE 802.11a radio.
1: An IEEE 802.11b radio.
3.16 ECN Support
留后续使用,目前值为0
0 1 2 3 4 5 6 7
+-+-+-+-+-+-+-+-+
| ECN Support |
+-+-+-+-+-+-+-+-+
类型:53
长度:1
3.17 Radio Administrative State
Radio Administration state用于管理员配置某个radio的状态.包含字段格式如下.
0 1
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Radio ID | Admin State |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Type: 31 for Radio Administrative State
Length: 2
Radio ID: Radio id 范围是1-31.
Admin State:
8-bit为的字段,标识管理状态.有以下枚举值
1 - Enabled 可用状态
0 - Disabled 不可用状态
3.18 统计定时器(Statistics Timer)
Statistics timer消息原始是AC通知AP更新统计消息得频率.单位是秒.
0 1
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Statistics Timer |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Type: 36 for Statistics Timer
Length: 2
Statistics Timer:
16-bit无符号整数定义的时间,单位是秒.
3.19WTP Reboot Statistics
WTP Reboot statistics消息元素是AP通知AC的,表示AP重启发上了,上报一下重启的统计消息.
如果统计溢出,从0再开始统计.
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Reboot Count | AC Initiated Count |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Link Failure Count | SW Failure Count |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| HW Failure Count | Other Failure Count |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Unknown Failure Count |Last Failure Type|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Type: 48for WTP Reboot Statistics
Length: 15
Reboot Count:
重启总次数.
AC Initiated Count:
AC初始化引起重启的次数.
Link Failure Count:
链路失败引起的重启次数.
SW Failure Count:
. 软件失败引起的重启次数.
HW Failure Count:
硬件失败引起的重启次数.
Other Failure Count:
其它失败引起的AP重启总次数(非软件硬件和链路失败)
Unknown Failure Count:
未知失败引起的重启次数.
Last Failure Type:
最后一次失败类型.
0 - 不支持的错误类型
1 - AC初始化引起错误
2 - 链路失败
3 - 软件失败
4 - 硬件失败
5 - 其它失败类型
255 - 未知错误类型.
3.20 AC带优先级的名字(AC Name with Priority)
AC name with Priority 消息元素是AC发送给AP配置偏好的ACs.
0 1
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Priority | AC Name...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Type: 5 for AC Name with Priority
Length: >= 2
Priority:
值的范围在1-255之间.越大代表优先级越低.比如1代表是主AC,2代表是secondary AC.
AC Name:
可变长UTF-8格式的AC name,最长不超过512字节.
3.21 IEEE 802.11 Direct Sequence Control
消息元素IEEE 802.11 Direct Sequence Control是双向的,可以由AC发往AP,也可由AP发往AC。

当由AP发送时,它包含了AP当前的状态;当由AC发送时,是由AC下发配置到AP上执行的。

此消息元素的结构定义如下:
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Radio ID | Reserved | Current Chan | Current CCA |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Energy Detect Threshold |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Type: 1028 for IEEE 802.11 Direct Sequence Control
Length: 8
Radio ID: 8bit。

范围0-31。

Reserved: 8bit。

保留字段。

Current Channel: 8bit。

当前radio的信道。

范围1-13(根据国家和地区而定)。

Current CCA: (该字段内容暂不做要求) 当前的空闲信道评估模式设置。

可参考IEEE 802.11 dot11CCAModeSupported MIB(见 [IEEE.802-11.2007])。

取值如下:
1 - 能量检测(edonly)
2 - 载波检测(csonly)
4 - 载波检测和能量检测混合(edandcs)
8 - 定时载波检测(cswithtimer)
16 - 高速载波检测和能量检测(hrcsanded)
Energy Detect Threshold: (该字段内容暂不做要求)能量检测的能量阀值,接收端根据能量是否高于此阀值来判断。

可参考IEEE 802.11 dot11EDThreshold MIB(见[IEEE.802-11.2007])。

3.22IEEE 802.11 Supported Rates
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Radio ID | Supported Rates...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 类型:1040
长度:>= 3
Radio ID:Radio编号,1-31
Supported Rates:支持的速率集。

3.23IEEE 802.11 WTP Radio Configuration
消息元素IEEE 802.11 WTP WLAN Radio Configuration可以是AC给AP来下发radio 配置的,AP也可以用来给AC上报自身的radio配置。

消息元素的定义如下:
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Radio ID |Short Preamble | Num of BSSIDs | DTIM Period |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| BSSID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| BSSID | Beacon Period |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Country String |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Type: 1046 for IEEE 802.11 WTP WLAN Radio Configuration
Length: 16
Radio ID:
8bit。

范围0-31。

Short Preamble:
8bit。

表明是否支持短前导码。

取值范围:
0 - 不支持短前导码
1 - 支持短前导码
BSSID:
WLAN的MAC地址。

Number of BSSIDs:
这个字段表明AP支持的最大BSSID数,这个数约束了AP上支持的逻辑网络数量,范围是1-16。

DTIM Period(DTIM间隔):
DTIM间隔设定了信标帧间隔的数量,信标帧中的TIM元素中包含了DTIM字段,如果设置为1,则每个信标帧中都包含DTIM,如果设置为2,则每2个信标帧中包含1个DTIM,以此类推。

这个字段来源于IEEE 802.11 dot11DTIMPeriod MIB element (见[IEEE.802-11.2007])。

Beacon Period(信标帧间隔):
这个值设置了一个站点发送信标帧的时间间隔,在信标帧和探测帧回复(Probe Response)中都包含这个字段。

这个信息来源于IEEE 802.11 dot11BeaconPeriod MIB 元素(见 [IEEE.802-11.2007])。

Country String(国家码):
CN:中国
EU:欧洲
US:美国
JP:日本
FR:法国
ES:西班牙
XX:未定义,目前支持这些国家码的设定
3.24IEEE 802.11 Tx Power
消息元素IEEE 802.11 Tx Power,AP和AC都可发送给对方。

当由AP发送给AC时,消息元素中包含AP当前的发射功率;当由AC发送给AP时,消息元素中包含对AP设置的发射功率值。

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Radio ID | Reserved | Current Tx Power |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Type: 1041 for IEEE 802.11 Tx Power
Length: 4
Radio ID:
8bit。

范围0-31。

Type:
8bit。

由AC下发给AP时有意义,表示下发给AP发射功率的类型,取值范围:
0 - 表示后面的Current Tx Power为实际的发射功率值;
1 - 表示后面的Current Tx Power为与AP可设置的最大发射功率的偏移值,取值
范围-x~x(x为可设置的最大发射功率值)
Current Tx Power:
发射功率值。

单位dbm。

取值见上面的Type。

3.25CAPW AP Timers
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Discovery | Echo Request |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
类型:12
长度:2
Discovery:
AP发出Discovery Request前随机等待时间的最大长度。

Echo Request:
AP和AC之间的保活时间间隔,单位秒。

3.26 Decryption Error Report Period
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Radio ID | Report Interval |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
类型:16
长度:3
Radio ID:射频索引号,1-31
Report Interval:AP报告解密错误的时间间隔,单位秒。

3.27Idle Timeout
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。

相关文档
最新文档