报文结构
GARP协议报文采用IEEE 802.3 Ethernet封装形式,报文结构如图10-4所示。
各个字段的说明如下表所示。
字段 |
含义 |
取值 |
---|---|---|
Protocol ID |
协议ID。 |
取值为1。 |
Message |
消息,每个Message由Attribute Type、Attribute List构成。 |
- |
Attribute Type |
属性类型,由具体的GARP的应用定义。 |
对于GVRP,属性类型为0x01,表示属性取值为VLAN ID。 |
Attribute List |
属性列表,由多个属性构成。 |
- |
Attribute |
属性,每个属性由Attribute Length、Attribute Event、Attribute Value构成。 |
- |
Attribute Length |
属性长度。 |
取值2~255,单位为字节。 |
Attribute Event |
属性描述的事件。 |
|
Attribute Value |
属性取值。 |
GVRP的属性取值为VLAN ID,但LeaveAll属性的Attribute Value值无效。 |
End Mark |
结束标志、GARP的PDU的结尾标志。 |
以0x00取值表示。 |