IP Library Granted Patent US 9,642,136
Granted Patent B2
US 9,642,136 · App. 15/171,206 · Granted May 2, 2017

Method and device for anchor master selection

Inventors: Zhenguo Du (Shenzhen, CN); Yunsong Yang (San Diego, CA); Ping Fang (Shenzhen, CN)
Assignee: Huawei Device Co., Ltd.
H04W72/0446H04L45/20H04W56/0015H04W84/18
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,642,136
App. No.
15/171,206
Granted
May 2, 2017
Kind
B2
Abstract

A method for anchor master selection includes: a device receives a NAN Beacon frame, where the NAN Beacon frame carries first AM information and first TSF information, and the first AM information includes: a first AMR, a first HC, and a first AMBTT; if the NAN Beacon frame is used for AM selection, when the first AMR is less than a second AMR and an MR of the device is greater than the first AMR, switching a role of the device to AM, where second AM information recorded in the device includes: the second AMR, a second HC, and a second AMBTT; and if the NAN Beacon frame is used for AM selection, when the first AMR is less than the second AMR, and the MR of the device is less than the first AMR, updating the second AM information and second TSF information according to the NAN Beacon frame.

Claims (75)

1. A method for anchor master (AM) selection in a neighbor awareness networking (NAN) cluster, where the method comprises:

recording, by a device in the NAN cluster, a second AM information and a second time synchronization function (TSF) information in the device, wherein the second AM information includes: a second anchor master rank (AMR), a second hop count (HC), and a second anchor master beacon transmission time (AMBTT);

receiving, by the device, a NAN Beacon frame, wherein the NAN Beacon frame carries a first AM information and a first TSF information, wherein the first AM information includes: a first AMR, a first HC, and a first AMBTT;

switching, by the device, a device role of the device to AM when the NAN Beacon frame is used for AM selection, the first AMR is less than the second AMR, a master rank (MR) of the device is greater than the first AMR, and the device role of the device is not set to AM; and

updating, by the device, the second AM information and the second TSF information according to the NAN Beacon frame when the NAN Beacon frame is used for AM selection, the first AMR is less than the second AMR, the MR of the device is less than the first AMR, and the device role of the device is not set to AM.

2. The method according to claim 1 , wherein updating the second AM information and the second TSF information according to the NAN Beacon frame comprises:

updating, by the device, the second AMR value to equal the first AMR value;

updating, by the device, the second HC value to equal the first HC value plus 1;

updating, by the device, a value of the second TSF information to equal a value of the first TSF information; and

updating, by the device, the second AMBTT value to equal a value of a preset byte or preset bytes of the first TSF information, when the NAN Beacon frame is received from an AM;

updating, by the device, the second AMBTT value to equal the first AMBTT value, when the NAN Beacon frame is not received from an AM.

3. The method according to claim 1 , further comprising:

updating, by the device, the second TSF information and at least part of the second AM information, according to the NAN Beacon frame, when the NAN Beacon frame is used for AM selection, the first AMR is equal to the second AMR, the device role of the device is not set to AM, and one of the following conditions is met: i) the first AMBTT is greater than the second AMBTT; and ii) the first AMBTT is equal to the second AMBTT and the first HC is less than the second HC minus 1.

4. The method according to claim 2 , further comprising:

updating, by the device, the second TSF information and at least part of the second AM information, according to the NAN Beacon frame, when the NAN Beacon frame is used for AM selection, the first AMR is equal to the second AMR, the device role of the device is not set to AM, and one of the following conditions is met: i) the first AMBTT is greater than the second AMBTT; and ii) the first AMBTT is equal to the second AMBTT and the first HC is less than the second HC minus 1.

5. The method according to claim 1 , wherein the switching, by the device, the device role of the device to AM comprises:

updating, by the device, the second AMR value to equal the MR value of the device;

updating, by the device, the second HC value to equal zero (0); and

updating, by the device, the second AMBTT value to equal 0x00000000.

6. The method according to claim 2 , wherein the switching, by the device, the device role of the device to AM comprises:

updating, by the device, the second AMR value to equal the MR value of the device;

updating, by the device, the second HC value to equal zero (0); and

updating, by the device, the second AMBTT value to equal 0x00000000.

7. The method according to claim 3 , wherein the switching, by the device, the device role of the device to AM comprises:

updating, by the device, the second AMR value to equal the MR value of the device;

updating, by the device, the second HC value to equal zero (0); and

updating, by the device, the second AMBTT value to equal 0x00000000.

8. The method according to claim 4 , wherein the switching, by the device, the device role of the device to AM comprises:

updating, by the device, the second AMR value to equal the MR value of the device;

updating, by the device, the second HC value to equal zero (0); and

updating, by the device, the second AMBTT value to equal 0x00000000.

9. The method according to claim 1 , wherein when the device role of the device is an AM, the method further comprising:

maintaining, by the device, the device role of the device as an AM when the MR value of the device is updated; and

updating, by the device, the recorded second AMR to equal an updated MR value of the device.

10. The method according to claim 2 , wherein when the device role of the device is an AM, the method further comprising:

maintaining, by the device, the device role of the device as an AM when the MR value of the device is updated; and

updating, by the device, the recorded second AMR to equal an updated MR value of the device.

11. A device for anchor master (AM) selection in a neighbor awareness networking (NAN) cluster, where the device comprises:

a memory storing instructions and recording a second AM information and a second time synchronization function (TSF) information, wherein the second AM information includes: a second anchor master rank (AMR), a second hop count (HC), and a second anchor master beacon transmission time (AMBTT);

a receiver configured to receive a NAN Beacon frame, where the NAN Beacon frame carries a first AM information and a first TSF information, wherein the first AM information includes: a first AMR, a first HC, and a first AMBTT;

a processor configured to execute the instructions to perform operations of:

switching a device role of the device to AM when the NAN Beacon frame is used for AM selection, the first AMR is less than the second AMR, a master rank (MR) of the device is greater than the first AMR, and the device role of the device is not set to AM; and

updating, by the device, the second AM information and the second TSF information according to the NAN Beacon frame when the NAN Beacon frame is used for AM selection, the first AMR is less than the second AMR, the MR of the device is less than the first AMR, and the device role of the device is not set to AM.

12. The device according to claim 11 , wherein the operation of updating comprises:

updating the second AMR value to equal the first AMR value;

updating the second HC value to equal the first HC value plus 1;

updating a value of the second TSF information to equal a value of the first TSF information; and

updating the second AMBTT value to equal a value of a preset byte or preset bytes of the first TSF information, when the NAN Beacon frame is received from an AM;

updating the second AMBTT value to equal the first AMBTT value, when the NAN Beacon frame is not received from an AM.

13. The device according to claim 11 wherein the processor is further configured to execute the instructions to perform operations of:

updating the second TSF information and at least part of the second AM information, according to the NAN Beacon frame, when the NAN Beacon frame is used for AM selection, the first AMR is equal to the second AMR, the device role of the device is not set to AM, and one of the following conditions is met: i) the first AMBTT is greater than the second AMBTT; and ii) the first AMBTT is equal to the second AMBTT and the first HC is less than the second HC minus 1.

14. The device according to claim 12 , wherein the processor is further configured to execute the instructions to perform operations of:

updating the second TSF information and at least part of the second AM information, according to the NAN Beacon frame, when the NAN Beacon frame is used for AM selection, the first AMR is equal to the second AMR, the device role of the device is not set to AM, and one of the following conditions is met: i) the first AMBTT is greater than the second AMBTT; and ii) the first AMBTT is equal to the second AMBTT and the first HC is less than the second HC minus 1.

15. The device according to claim 11 , wherein the operation of switching comprises:

updating the second AMR value to equal the MR value of the device;

updating the second HC value to equal zero (0); and

updating the second AMBTT value to equal 0x00000000.

16. The device according to claim 12 , wherein the operation of switching comprises:

updating the second AMR value to equal the MR value of the device;

updating the second HC value to equal zero (0); and

updating the second AMBTT value to equal 0x00000000.

17. The device according to claim 13 , wherein the operation of switching comprises:

updating the second AMR value to equal the MR value of the device;

updating the second HC value to equal zero (0); and

updating the second AMBTT value to equal 0x00000000.

18. The device according to claim 14 , wherein the operation of switching comprises:

updating the second AMR value to equal the MR value of the device;

updating the second HC value to equal zero (0); and

updating the second AMBTT value to equal 0x00000000.

19. The device according to claim 11 , wherein when the device role of the device is an AM, the processor is further configured to execute the instructions to perform operations of:

maintaining the device role of the device as an AM when the MR value of the device is updated; and

updating the recorded second AMR to equal an updated MR value of the device.

20. The device according to claim 12 , wherein when the device role of the device is an AM, the processor is further configured to execute the instructions to perform operations of:

maintaining the device role of the device as an AM when the MR value of the device is updated; and

updating the recorded second AMR to equal an updated MR value of the device.

Assignments (3)
CHANGE OF NAME Recorded Mar 11, 2019
From: HUAWEI DEVICE (DONGGUAN) CO.,LTD.
To: HUAWEI DEVICE CO.,LTD.
Reel/Frame 048555/0951 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 5, 2017
From: HUAWEI DEVICE CO., LTD.
To: HUAWEI DEVICE (DONGGUAN) CO., LTD.
Reel/Frame 043750/0393 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 22, 2016
From: DU, ZHENGUO; YANG, YUNSONG; FANG, PING
To: HUAWEI DEVICE CO., LTD.
Reel/Frame 039222/0462 →
Priority Claims (2)
CN 2013 1 0634605 · Dec 2, 2013 · national
CN 2014 1 0301914 · Jun 27, 2014 · national
Continuity (2)
Continuation PCTCN2014092816 · Dec 2, 2014
Related Publication 20160278086A1 · Sep 22, 2016