IV Index

IV Index

更多详细信息可以参考Mesh文档的 3.10.5 IV Update procedure

一、Secure Network beacon 中有两个字段与IV Index相关

  1. Flags(1Byte)的IV Update Flag(bit1) : Contains the Key Refresh Flag and IV Update Flag。
  2. IV Index:4Bytes,Contains the current IV Index。

A. Normal Operation – IV Update Flag = 0.
B. IV Update in Progress – IV Update Flag = 1.

二、IVI

IVI: Least significant bit of IV Index

三、节点在IV Update in Progress

  1. 使用当前IV Index传输。
  2. 使用IV Index 和 IV Index -1 处理消息。

四、节点在 Normal Operation 状态

  • 收到的 Secure Network beacon 中的 IV Index(如0x00101849) 比已知的 IV Index(0x00101847) + 1 还大(即 大于 0x00101848),那么节点应该发起 Recovery procedure。
  • 收到的 Secure Network beacon 中的 IV Index 等于已知的 IV Index +1 ,并且 IV Update Flag 等于 0, 那么节点应该执行一下任一操作:

1、不进入 IV Update 状态而是 直接更新IV Index。
2、进入 IV Index Recovery procedure。
3、忽略 Secure Network beacon。

  • 收到的 Secure Network beacon 中的 IV Index 比已知的 IV Index + 42 还大 (0x01 + 42 = 43(0x2B),即 大于0x2B ),那么节点应该忽略 Secure Network beacon。
  • 收到的 Secure Network beacon 中的 IV Index 比已知的 IV Index (如0x02)小,那么节点应该忽略Secure Network beacon。

注意:Mesh规范要求允许设备设备离开网络48周,大于48周的应该重新配网(reprovisioned)。

主子网络( primary subnet)节点收到次子网络(secondary
subnet )节点发送的 IV Index 大于主子网络的 IV Index,那么应该忽略 Secure Network beacon。

所有节点的 IV Update procedure 周期不得小于 192 小时。

After 96 hours of operating in Normal Operation, a node may initiate the IV Update procedure by transitioning to the IV Update in Progress state. When a node transitions from the Normal Operation state to the IV Update in Progress state, the IV Index on the node shall be incremented by one.

在Normal Operation 中运行 96 小时后,节点可以通过转换到 IV Update in Progress状态来启动 IV Update procedure。 当节点从Normal Operation状态转换到 IV Update in Progress 状态时,节点上的 IV Index 应增加 1。

IV Update in Progress 运行的时间在 96 ~ 144 小时之间。
A summary of the IV Update procedure is provided in
Table 3.57 below.

IV IndexIV Update FlagIV Update Procedure StateIV Index AcceptedIV Index used when transmitting
n0Normaln-1, nn
m (m=n+1)1In Progressm-1, mm-1
m0Normalm-1, mm
IV IndexIV Update FlagIV Update Procedure StateIV Index AcceptedIV Index used when transmitting
BeaconBeaconBeaconMessageMessage
0x001018470Normal0x00101846, 0x001018470x00101847
0x001018481In Progress0x00101847, 0x001018480x00101847
0x001018480Normal0x00101847, 0x001018480x00101848

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值