Method and device for anchor master selection
First Claim
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;
comparing a master rank (MR) of the device and the first AMR, wherein the NAN Beacon frame is used for AM selection; and
switching a role of the device to AM or updating the second AM information and the second TSF information, by the device, based on the comparison, wherein the first AMR is less than the second AMR, wherein the role of the device is switched to AM when the MR of the device is greater than the first AMR, and whereinthe second AM information and the second TSF information are updated when the MR of the device is less than the first AMR.
3 Assignments
0 Petitions
Accused Products
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.
20 Citations
28 Claims
-
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;comparing a master rank (MR) of the device and the first AMR, wherein the NAN Beacon frame is used for AM selection; and switching a role of the device to AM or updating the second AM information and the second TSF information, by the device, based on the comparison, wherein the first AMR is less than the second AMR, wherein the role of the device is switched to AM when the MR of the device is greater than the first AMR, and wherein the second AM information and the second TSF information are updated when the MR of the device is less than the first AMR. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)
-
-
16. A device 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, 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; anda processor configured to execute the instructions to perform operations of; comparing a master rank (MR) of the device and the first AMR, wherein the NAN Beacon frame is used for AM selection, and switching a role of the device to AM or updating the second AM information and the second TSF information, by the device, based on the comparison, wherein the first AMR is less than the second AMR, wherein the role of the device is switched to AM when the MR of the device is greater than the first AMR, and wherein the second AM information and the second TSF information are updated when the MR of the device is less than the first AMR. - View Dependent Claims (17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28)
-
Specification