CN110519745B - Neighbor discovery method based on maximum common divisor of cycle length - Google Patents
Neighbor discovery method based on maximum common divisor of cycle length Download PDFInfo
- Publication number
- CN110519745B CN110519745B CN201910718236.1A CN201910718236A CN110519745B CN 110519745 B CN110519745 B CN 110519745B CN 201910718236 A CN201910718236 A CN 201910718236A CN 110519745 B CN110519745 B CN 110519745B
- Authority
- CN
- China
- Prior art keywords
- node
- time length
- duration
- beacon
- basic
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/06—Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W72/00—Local resource management
- H04W72/04—Wireless resource allocation
- H04W72/044—Wireless resource allocation based on the type of the allocated resource
- H04W72/0446—Resources in time domain, e.g. slots or frames
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/005—Discovery of network devices, e.g. terminals
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Multimedia (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a neighbor discovery method based on a greatest common divisor of a cycle length. The method comprises the following specific steps: step 1, obtaining a basic cycle duration set; step 2, setting a basic period duration and a super period duration of each node; step 3, setting the working mode of each node; and 4, discovering the neighbor nodes by the node. The invention can work according to time slots and non-time slots, has large applicable scene, the time slot number contained in the basic period time length can be prime number or composite number, the settable basic period time length of the node is more, the node parameter can be optimized without knowing the duty ratio of the neighbor node, the lower bound of the discovery delay under the worst condition can be obtained under the conditions of symmetrical duty ratio and asymmetrical duty ratio, and the average discovery delay is short.
Description
Technical Field
The invention relates to the technical field of communication, in particular to a neighbor discovery method based on a greatest common divisor of a cycle length in the technical field of wireless communication. The invention can be used for the nodes in the mobile self-organizing network to discover the adjacent neighbor nodes, and the nodes and the neighbor nodes are generally intelligent mobile phone mobile terminals in the mobile self-organizing network.
Background
Nodes and neighbor nodes in the mobile ad hoc network are generally referred to as smart phone mobile terminals, and neighbor discovery in the mobile ad hoc network is generally that a smart phone discovers a neighbor smart phone. Neighbor discovery is a basic and important function in a mobile ad hoc network, in which a node can discover other nodes within its communication range and exchange information by making full use of a short communicable opportunity, but since the power of the node is limited, the radio frequency of the node cannot be turned on all the time. In order to save energy, the node usually periodically turns on the radio frequency, turns off the radio frequency after working for a period of time, and takes the ratio of the time when the radio frequency is in an on state to the total working time of the node as the duty ratio of the node.
The technical center of the internet of things of the Wuxi Qinghua information science and technology country laboratory discloses a universal and flexible neighbor discovery method Hello in the patent document 'universal and flexible neighbor discovery protocol' (application number: 201310508447.5, publication number: CN103532860B) applied by the technical center. The method sets the number of time slots contained in each basic cycle and the number of basic cycles contained in a super cycle according to requirements. The number of slots included in the basic period is required to be prime. The method takes the first time slot of each basic period in each super-cycle as an active time slot, the active time slot is called a guard time slot, the time slots of which the first basic period is more than the first half in each super-cycle are taken as active time slots, and the active time slots are called patrol time slots. And setting a placement strategy of guard time slots and patrol time slots so that the neighbor nodes can be always ensured to discover each other in corresponding time under any time slot number and any basic cycle number. In addition, the number of time slots and the number of basic cycles can be set to realize the neighbor node discovery protocol such as Disco, U-Connect and the like, so Hello can be used as a general neighbor node discovery protocol analysis method. However, the method still has the following defects: the Hello protocol requires that all nodes in the network must work in time slots, and Hello (protocols including Disco and U-Connect) assumes that if the active time slots of two nodes overlap, they can discover each other. However, in practice it is difficult to ensure mutual discovery. For example, a beacon can be successfully transmitted and a beacon transmitted by a neighboring node can be received only if the length of the active time slot overlap is long enough; even if the length of the time slot overlap is sufficiently long, it is required that one side is in a transmission state and the other side is in a reception state, and mutual discovery can be performed. Secondly, according to whether the adjacent node has the same or different duty ratio with the adjacent node, the Hello selects different parameters for the node to reduce the discovery delay, but in practical application, the duty ratio value selected by the adjacent node is generally unknown. Finally, when the numbers of slots included in the base periods of the two nodes are not equal, the Hello method requires that the number of slots must be prime numbers to realize mutual discovery. However, the prime number limits the duty cycle that the node can select. In fact, mutual discovery can be achieved when the number of slots is relatively prime.
Yung Qiau et al, in its published article "Talk more free in wireless sensor networks" (2016IEEE INFOCOM), propose a neighbor discovery method Nihao. The method requires that the number of time slots included in the basic period of all nodes is the same, and the number of basic periods included in a super period may be different. A node transmits a beacon at the beginning of each fundamental period. Particularly, after the beacon is sent in the first basic period, other time is used for monitoring the messages sent by other nodes; and in other basic periods, the radio frequency is closed after the beacon is sent. The method can ensure discovery because all nodes have the same basic cycle time length and send a beacon every other basic cycle. Unlike the Hello et al method, this method does not assume that two active slots overlap can cause neighbors to discover each other. In the method, unilateral discovery is achieved when one node is in a listening state and receives a beacon of another node, and vice versa. This method improves the success rate of actual discovery. However, the method still has the disadvantages that: the duty ratio of the neighbor node is required to be known, the parameters can be optimized, the discovery delay is reduced, and according to the fact that whether the duty ratio of the neighbor node is the same as or different from that of the neighbor node, Nihao selects different parameters for the node to reduce the discovery delay; the method considers that the time for sending a beacon is short, so the discovery delay can be reduced by shortening the length of the basic period and increasing the frequency for sending the beacon, which ignores other overhead for sending the beacon. For example, the time from when the radio frequency is turned on to when the beacon is actually transmitted is much longer than the transmission time of the beacon, which results in the actual duty cycle of the method being much larger than the theoretical duty cycle; the method uses two unilateral discoveries to achieve mutual discovery between two nodes, which increases the average discovery delay.
Disclosure of Invention
The present invention is directed to provide a neighbor discovery method based on the greatest common divisor of cycle lengths, for solving the problem of neighbor node discovery in a mobile ad hoc network, in view of the above-mentioned deficiencies of the prior art.
The idea of realizing the purpose of the invention is that when the maximum common factor of the basic period time length of any two nodes is equal to the time length of the monitoring channel after the node broadcasts the beacon minus the time length of the node broadcasting the beacon plus one, the lower bound of obtaining delay is found in the worst case; when the basic periods of the two nodes are the same, the super period is used for realizing mutual discovery and reaching the lower bound of the discovery delay under the worst condition; in short, no matter the basic cycle durations of the two nodes are equal or unequal, the lower bound of the worst discovery delay can be obtained, and the durations in the basic cycle duration set can be in units of time of nanoseconds (ns), microseconds (μ s), milliseconds (ms) and seconds(s), and can also be in units of time slots; when the time slot is used as a unit, the time length in the basic period time length set can be a prime number or a composite number.
The specific steps for realizing the purpose of the invention are as follows:
(1) acquiring a basic cycle time length set:
(1a) all nodes given by the user preselect the minimum value and the maximum value of the basic period duration to form a basic periodAlternative set of epoch Length set Lmin,Lmin+1,…,Lmax-1,LmaxIn which L isminIndicating the minimum value, L, of the duration of a preselected basic period of all nodes given by the usermaxRepresenting the maximum value, L, of the duration of a preselected basic period of all nodes given by the userminAnd LmaxThe unit of (d) may be one of a nanosecond (ns), microsecond (μ s), millisecond (ms), and second(s) time unit;
(1b) setting the basic period duration set as an empty set;
(1c) randomly selecting a time length from the alternative set, and removing the selected time length from the alternative set;
(1d) judging whether the selected duration meets the constraint condition, if so, executing the step (1e), otherwise, executing the step (1 f);
(1e) adding the selected duration to a set of base cycle durations;
(1f) judging whether all the time lengths in the alternative set are selected, if so, obtaining the basic period time length sets of all the nodes and then executing the step (2), otherwise, executing the step (1 c);
(2) setting the basic period duration and the super period duration of each node:
(2a) selecting an unselected node from the mobile ad hoc network;
(2b) according to | u-lkThe absolute value of the difference between each time length in the basic period time length set and the pre-selection basic period time length of the node selected by the user is calculated through an equation, wherein u represents the pre-selection basic period time length of the node selected by the user, and lkRepresenting the kth duration in the basic cycle duration set, k being 1,2, …, n, n representing the total number of durations in the basic cycle duration set;
(2c) selecting the time length with the minimum absolute value as a basic period time length of the selected node;
(2d) calculating a super-cycle time length of the selected node according to a super-cycle time length formula;
(3) setting the working mode of each node:
(3a) selecting an unselected node from the mobile ad hoc network;
(3b) from the power-on time of a selected node, taking the time length of every other basic cycle as a basic cycle, taking l/(omega-tau +1) basic cycles as a super cycle, wherein the selected node has a plurality of super cycles, wherein l represents the time length of the basic cycle of the selected node, omega represents the time length of listening to channel broadcast after the selected node broadcasts a beacon in the basic cycle, and tau represents the time length of broadcasting a beacon by the selected node, if the time length of (omega-tau +1) is taken as a time slot, the basic cycle l comprises l/(omega-tau +1) time slots, and the number of the time slots can be prime number or composite number.
(3c) In each super-period of the selected node, a basic period is randomly selected as a special basic period, and in the special basic period, the selected node monitors the channel broadcast after broadcasting a beaconIn other fundamental periods, the selected node listens for the channel broadcast ω after broadcasting a beacon, wherein,indicating a rounding-up operation, l indicating a base period duration of the selected node, and ω indicating a duration of listening to a channel broadcast after the selected node broadcasts a beacon in the base period;
(4) the node discovers its neighbor nodes:
(4a) after receiving the beacon broadcast by the neighbor node, any node sends back a beacon to the neighbor node, and the receiving node and the neighbor node complete mutual discovery.
Compared with the prior art, the invention has the advantages that:
firstly, because the invention acquires the basic cycle time length set of all nodes, each time length in the set can take nanosecond (ns), microsecond (mus), millisecond (ms) or second(s) as a unit, and can also take a time slot as a unit, the invention overcomes the problem that the prior art needs to work according to the time slot and has small applicable scene, and the invention has the advantages of working according to the time slot, working according to the non-time slot and having large applicable scene.
Secondly, because the invention acquires the basic cycle time length set of all the nodes, the time slot number contained in each time length in the set can be a prime number or a composite number, and the invention overcomes the problems that the time slot number contained in the time length in the prior art must be a prime number and the basic cycle time length of the nodes which can be set by the nodes is small, so that the invention has the advantages that the time slot number contained in the basic cycle time length can be a prime number or a composite number, and the basic cycle time length of the nodes which can be set by the nodes is large.
Thirdly, because each time length in the basic period time length set of all the nodes meets the constraint condition, all the nodes can obtain the lower bound of the discovery delay under the worst condition, and the problems that the prior art needs to know the duty ratio of the neighbor nodes to optimize the node parameters and reduce the average discovery delay of the nodes are solved, so that the method has the advantages that the node parameters can be optimized and the average discovery delay of the nodes is short without knowing the duty ratio of the neighbor nodes.
Drawings
FIG. 1 is a flow chart of the present invention;
FIG. 2 is a schematic diagram of the node operation mode of the present invention;
FIG. 3 is a diagram of neighbor discovery delay CDF of the present invention;
FIG. 4 is a graph of average discovery delay for various duty cycle scenarios of the present invention;
fig. 5 is a graph of the average discovery delay for the asymmetric and symmetric duty cycle cases of the present invention.
Detailed Description
The invention is further described below with reference to the accompanying drawings. Specifically, the neighbor discovery method adopted by the present invention is referred to as Circle method.
The specific steps of the present invention will be further described with reference to fig. 1.
Suppose the user sets the minimum and maximum values of all node pre-selected base cycle durations to be 101 and 1001, respectively, resulting in a candidate set of base cycle durations of {101,102, …,1000,1001 }.
Substituting the minimum and maximum values of all node preselection basic cycle duration set by a user into the following formula to respectively obtain the maximum and minimum values of the duty ratio,
wherein DC represents the duty ratio of the node, tau represents the time length of the node broadcasting the beacon, omega represents the time length of monitoring the channel after the node broadcasting the beacon, delta represents the time length from the radio frequency being turned on to the beacon being actually sent out when the node broadcasts the beacon,indicating a rounding down operation, l indicates a maximum or minimum value of the preselected base period duration,indicating a rounding up operation.
The time length tau of the node broadcasting beacon is set to be 1, the time length omega of the node monitoring channel after the node broadcasting beacon is set to be 4, the time length delta from the radio frequency starting to the actual sending of the beacon when the node broadcasts the beacon is set to be 3, the minimum value of the time length of the preselection basic cycle set by the user is 101, and the maximum value is 1001. Substituting the minimum value and the maximum value of the preselection basic cycle time length set by the user into the formula to obtain that the duty ratio corresponding to the minimum preselection basic cycle time length 101 is approximately equal to 10%, and the duty ratio corresponding to the maximum preselection basic cycle time length 1001 is approximately equal to 1%.
The set of base cycle durations is set to an empty set.
Randomly selecting one time length from the alternative set, sequentially comparing the selected time length with all the time lengths in the basic period time length set, and adding the selected time length meeting the constraint condition into the basic period time length set.
Since the specific operation procedure for constructing the basic period duration set in a random manner is difficult to describe, the following description will be made by way of example.
The randomly chosen duration from the candidate set is always the minimum duration in the candidate set. The time length tau of the node broadcasting the beacon is set to be 1, the time length omega of the node listening to the channel after the beacon is broadcast is set to be 4, and omega-tau + 1 is set to be 4. And (4) taking out 101 from the alternative set, and deleting 101 from the alternative set because 101 cannot be divided by 4 and 101 does not meet the constraint condition. Similarly, 102 and 103 are taken out from the candidate set, and since the two values cannot be divided by 4, the condition is not satisfied, and 102 and 103 are deleted from the candidate set. The next candidate set is 104, since 104 can be divided by 4 and the base cycle duration set is an empty set, 104 is taken from the candidate set and added to the base cycle duration set, which is {104}, and 104 is deleted from the candidate set. Similarly, 105,106 and 107 are removed from the alternative set. The next duration taken from the candidate set is 108, since gcd (108,104) ═ 4,108 is added to the base cycle duration set, which is {104,108 }; 108 are removed from the alternative set. Similarly, 109,110 and 111 are removed from the candidate set. The next time duration to fetch from the candidate set is 112, although 112 can be divided by 4, gcd (112,104) ≠ 8, so 112 does not satisfy the condition; and remove 112 from the alternative set. By analogy, 48 time lengths are finally added into the basic period time length set, namely the basic period time length set is {104,108,116,124,140,148,164,172,188,212,236,244,268,284,292,316,332,356,388,404,412,428,436,452,484,508,524,548,556,596,604,628,652,668,692,716,724,764,772,788,796,844,892,908,916,932,956,964 }.
The randomly chosen duration from the candidate set is always the maximum duration in the candidate set. The time length tau of the node broadcasting the beacon is set to be 1, the time length omega of the node listening to the channel after the beacon is broadcast is set to be 4, and omega-tau + 1 is set to be 4. 1001 is taken out from the candidate set, and 1001 cannot be divided by 4, so that the condition is not satisfied, and 1001 is deleted from the candidate set. The next candidate set is 1000 in duration, and since 1000 can be divided by 4 and the basic cycle duration set is an empty set, 1000 is taken from the candidate set and added to the basic cycle duration set, the basic cycle duration set is {1000}, and 1000 is deleted from the candidate set. 999, 998 and 997 are taken out of the candidate set, and since the three values cannot be divided by 4, the condition is not satisfied, and 999, 998 and 997 are deleted from the candidate set. The next time duration taken from the candidate set is 996, since 996 is divisible by 4 and gcd (996,1000) is 4, 996 is added to the base cycle duration set, which is {1000,996}, and 996 is removed from the candidate set. 995, 994 and 993 are taken from the alternative set, and since the three values cannot be evenly divided by 4, the condition is not satisfied, and 995, 994 and 993 are deleted from the alternative set. The next time duration to be taken out from the candidate set is 992, and although 992 can be divided by 4, gcd (992,1000) ≠ 8, so 992 does not satisfy the condition, and 992 is deleted from the candidate set. By analogy, 47 time lengths are finally added into the basic period time length set, namely the basic period time length set is {1000,996,988,964,956,932,916,908,892,868,844,796,788,772,764,748,724,716,692,668,652,628,604,596,556,548,524,508,452,436,428,412,404,388,356,316,292,284,268,244,236,212,188,172,164,148,116 }.
Step 2: and setting the basic period duration and the super period duration of each node.
Optionally selecting an unselected node, setting the time length tau of the node broadcasting the beacon to be 1, setting the time length omega of the node listening to the channel after the node broadcasting the beacon to be 4, setting the time length delta from the radio frequency being turned on to the beacon being actually sent out to be 3 when the node broadcasts a beacon, and setting the time length of a preselected basic period given to the node by a user to be 198. The preselected base period duration 198 corresponds to a duty cycle of approximately 5%, which may be calculated as follows:
wherein DC represents the duty cycle of the selected node, τ represents the duration of the selected node sending a beacon, ω represents the duration of listening to the channel after the selected node sends a beacon, δ represents the duration from when the radio frequency is turned on until the beacon is actually sent out when the selected node sends a beacon,indicating a rounding down operation, l indicates a preselected base period duration for the selected node,the indicated rounding up operation.
Assuming that the base cycle duration set established in search order from small to large, i.e., the base cycle duration set is {104,108,116,124,140,148,164,172,188,212,236,244,268,284,292,316,332,356,388,404,412,428,436,452,484,508,524,548,556,596,604,628,652,668,692,716,724,764,772,788,796,844,892,908,916,932,956,964}, the absolute value of the difference between 188 and 198 is smallest in the base cycle duration set, the base cycle duration of the selected node is set to 188.
Optionally selecting two nodes, respectively assuming a node i and a node j, if the basic cycle time lengths of the node i and the node j are not equal, then there is a gcd (l)i,lj) The worst discovery delay of the node j is found by the node i, and the worst discovery delay of the node j is found by the node i is within the lower bound of the discovery delay:
wherein liRepresents the base cycle duration, l, of node ijThe basic cycle time length of the node j is shown, omega is the time length of monitoring a channel after the node sends a beacon, tau is the time length of sending one beacon by the node, omega of the node i is equal to omega of the node j, and tau of the node i is equal to tau of the node j.
Calculating the super-cycle length of the selected node according to a super-cycle time formula:
HL=l×l/(ω-τ+1)
wherein HL represents the super-cycle duration of the selected node, l represents the basic cycle duration of the selected node, ω represents the duration of listening to the channel broadcast after the selected node broadcasts a beacon in the basic cycle, and τ represents the duration of broadcasting a beacon by the selected node. Setting the time length tau of the node broadcasting the beacon to be 1, setting the time length omega of the node listening to the channel after the node broadcasting the beacon to be 4, and setting the time length of the basic cycle of the selected node to be 188, wherein the length of the super cycle of the node is 8836.
And step 3: the operation mode of each node is set.
The mode of operation of the node of the present invention is further described with reference to fig. 2. Wherein, fig. 2(a) is a schematic diagram of a node operating mode when a parameter is not determined, fig. 2(b) is a schematic diagram of a node operating mode when a parameter is determined, a black area in fig. 2 represents a time length for broadcasting a beacon by a node, a gray area represents a time length for listening to a channel after broadcasting a beacon by a node, a blank area represents a time length for the node to be in a sleeping state, a grid area represents a time length from when a radio frequency is turned on to when a beacon is actually sent out when a node broadcasts a beacon, and a sum of the time lengths of the black area, the gray area and the grid area is a time length for the node to be in an operating state, and a duty ratio formula of each node can:
wherein DC represents the duty cycle of the selected node, τ represents the duration of sending a beacon by the selected node, ω represents the duration of listening to the channel after sending the beacon by the selected node, δ represents the duration from the radio frequency being on until the beacon is actually sent when the selected node sends a beacon, l represents the fundamental period duration of the selected node,the indicated rounding up operation.
Optionally selecting an unselected node, setting the time length tau of the node broadcasting the beacon to be 1, setting the time length omega of the node listening to the channel after the node broadcasting the beacon to be 4, setting the time length delta from the radio frequency being turned on to the beacon being actually sent out when the node broadcasts a beacon to be 3, setting the basic work cycle time length of the selected node to be 188, and setting the overcycle time length of the selected node to be 8836.
In each super-period of the selected nodes, a basic period is randomly selected as a special basic period. The embodiment of the invention selects the first basic period as the special basic period. As shown in fig. 2(b), in this basic period, the selected node listens for 94 time units after broadcasting a beacon, and in other basic periods, the selected node listens for 4 time units after broadcasting a beacon.
Optionally selecting two nodes, respectively assuming a node i and a node j, wherein the basic cycle time length of the node i is liThe basic cycle duration of node j is lj. If the fundamental period durations of node i and node j are equal, i.e./i=ljThe worst case discovery delay for node i to discover node j is the length of one super-cycle of node i, i.e. theThe worst case discovery delay for a node j to discover a node i is the length of one super-cycle of the node j, i.e.Due to li=ljTherefore, the discovery delay of the node i in the worst case of discovering the node j, and the discovery delay of the node j in the worst case of discovering the node i all obtain the lower bound of the discovery delay:
wherein liRepresents the base cycle duration, l, of node ijThe basic cycle time length of the node j is shown, omega is the time length of monitoring a channel after the node sends a beacon, tau is the time length of sending one beacon by the node, omega of the node i is equal to omega of the node j, and tau of the node i is equal to tau of the node j.
And 4, step 4: the node discovers its neighbor nodes.
After receiving the beacon broadcast by the neighbor node, any node sends back a beacon to the neighbor node, and the receiving node and the neighbor node complete mutual discovery.
In the above step, if the duration of (ω - τ +1) is taken as a timeslot, where ω represents the duration of listening to the channel broadcast after the selected node broadcasts a beacon in the fundamental period, τ represents the duration of broadcasting a beacon by the selected node, and the operation mode is kept unchanged, the Circle can operate in a timeslot mode, and the number of timeslots included in the fundamental period may be a composite number, which increases the number of selectable duty cycles.
In the embodiment of the invention, the Circle neighbor discovery scheme and the existing neighbor discovery schemes such as Disco, U-Connect, Hello-S and Nihao are respectively applied under the same laboratory environment, and the discovery delays of different neighbor discovery schemes are recorded so as to compare the performances of the schemes. Specifically, we implement all the above neighbor discovery schemes based on the UPMA framework in TinyOS 2.1.2, and test all the schemes on two TelosB nodes, both of which operate in duty cycle mode. For Disco, U-Connect and Hello, the slot length is set to 10ms, specifically the length of the Hello-S active slot is set to 14 ms; a beacon is broadcast at both the beginning and end of the time slot. For Nihao, the slot length is set to 10ms, with a beacon broadcast at the beginning of each fundamental period. For Circle, the time length for listening to the channel after the node sends the beacon is set to 4 ms. The duration for which the TelosB node broadcasts a beacon is 1 ms. For Nihao and Circle, when a node broadcasts a beacon, the time length from the radio frequency starting to the actual sending of the beacon is 3 ms; for Disco, U-Connect, and Hello, the duration from when the radio frequency is turned on until the beacon is actually sent out is 2 ms.
To establish the same comparison reference, { d }A,dB,tA,tBAs an input to an embodiment of the present invention, wherein dAAnd dBDuty cycles, t, of two TelosB nodes, respectivelyAAnd tBRespectively, local points in time when two TelosB nodes come into communication range with each other, dAAnd dBValues are taken from a set of { 1%, 2%, …, 10% }, duty ratios of two TelosB nodes form a pair of duty ratios, and the logarithm of the duty ratio combination is 55. For each pair of duty cycles, 100 examples were used for testing, at which point the two TelosB nodes entered communication range with each otherAt random, the data for each example was recorded and counted.
The node discovery delay of Circle and the node discovery delays of the five prior methods employed by the present invention are further described with reference to fig. 3.
Five existing methods are Disco, U-Connect, Hello-S and NiHao, respectively.
The abscissa in fig. 3 represents the neighbor node discovery delay, and the ordinate represents the neighbor node discovery ratio. The unmarked curve in fig. 3 represents the relationship between the neighbor node discovery ratio of Disco and the neighbor node discovery time, the curve marked with "×" represents the relationship between the neighbor node discovery ratio of U-Connect and the neighbor node discovery time, the curve marked with "×" represents the relationship between the neighbor node discovery ratio of Hello and the neighbor node discovery time, the curve marked with "+" represents the relationship between the neighbor node discovery ratio of Hello _ S and the neighbor node discovery time, the curve marked with "Δ" represents the relationship between the neighbor node discovery ratio of NiHao and the neighbor node discovery time, and the curve marked with "o" represents the relationship between the neighbor node discovery ratio of Circle and the neighbor node discovery time.
As can be seen from FIG. 3, the neighbor node discovery delays of Circle, Disco, U-Connect, Hello-S and Nihao are 16S, 28S, 29S, 30S, 32S and 85S respectively for the six methods when the neighbor node discovery ratio is 90%. When the neighbor node discovery ratio is 100%, the worst-case neighbor node discovery delays of the six methods are 330s, 791s, 581s, 816s, 712s and 354s, respectively, and the time required by the Circle for the same discovery ratio of the six methods and the worst-case neighbor node discovery delay are the shortest.
The average discovery delay for different duty cycles for the six methods in the embodiment of the present invention is further described with reference to fig. 4. Fig. 4(a) is a schematic diagram of an average discovery delay of Disco under various duty cycles, fig. 4(b) is a schematic diagram of an average discovery delay of U-Connect under various duty cycles, fig. 4(c) is a schematic diagram of an average discovery delay of Hello under various duty cycles, fig. 4(d) is a schematic diagram of an average discovery delay of Hello-S under various duty cycles, fig. 4(e) is a schematic diagram of an average discovery delay of NiHao under various duty cycles, and fig. 4(f) is a schematic diagram of an average discovery delay of Circle adopted by the present invention under various duty cycles.
As can be seen from FIG. 4, in Circle, Disco, U-Connect, Hello-S and Nihao, when the duty cycles of both nodes are 1%, the average discovery delay of Circle and Nihao is shorter than that of the other four methods. When the duty cycle of the node is at other values, the average discovery delay of Circle is shorter than that of Nihao. In general, Circle's performance in terms of average discovery delay is the best of the six methods.
The average discovery delay for the asymmetric and symmetric duty cycle cases of the present invention is further described with reference to fig. 5. The abscissa in fig. 5 represents the duty ratio of the node, and the ordinate represents the average discovery delay of the neighbor node.
Fig. 5(a) is a schematic diagram of the average discovery delay in the case of the asymmetric duty cycle of the present invention, and fig. 5(b) is a schematic diagram of the average discovery delay in the case of the symmetric duty cycle of the present invention. In fig. 5, histograms marked by oblique lines represent a graph of the node duty ratio and the node average discovery delay relationship of Disco, histograms marked by a horizontal bar grid represent a graph of the node duty ratio and the node average discovery delay relationship of U-Connect, histograms marked by a vertical grid are a graph of the node duty ratio and the node average discovery delay relationship of Hello, histograms marked by an oblique grid are a graph of the node duty ratio and the node average discovery delay relationship of Hello _ S, histograms marked by white are a graph of the node duty ratio and the node average discovery delay relationship of NiHao, and histograms marked by black are a graph of the node duty ratio and the node average discovery delay relationship of Circle.
As can be seen from fig. 5, Circle, Disco, U-Connect, Hello-S, and Nihao shorten the neighbor discovery delay by 42%, 57%, and 37%, respectively, when the duty ratios are (1%, 5%), (1%, 10%), and (5%, 10%), respectively, and in the asymmetric case, Circle is the shortest of the average discovery delays of the six methods. Under the condition of symmetrical duty ratio, the Circle is the shortest in neighbor node discovery delay among six methods, and therefore the performance of the Circle adopted by the method in the aspect of average discovery delay is better than that of the other five methods.
The foregoing embodiments are merely illustrative of the principles and effects of the present invention, and are not to be construed as limiting the invention. Any person skilled in the art can modify or change the above-described embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.
Claims (1)
1. A neighbor discovery method based on the greatest common divisor of cycle length is characterized in that a basic cycle time length set of all nodes is obtained, and a working mode of each node is set; the method comprises the following specific steps:
(1) acquiring a basic cycle time length set:
(1a) all nodes given by a user preselect the minimum value and the maximum value of the basic period time length to form an alternative set { L } of the basic period time length setmin,Lmin+1,…,Lmax-1,LmaxIn which L isminIndicating the minimum value, L, of the duration of a preselected basic period of all nodes given by the usermaxRepresenting the maximum value, L, of the duration of a preselected basic period of all nodes given by the userminAnd LmaxThe unit of (d) may be one of a nanosecond (ns), microsecond (μ s), millisecond (ms), and second(s) time unit;
(1b) setting the basic period duration set as an empty set;
(1c) randomly selecting a time length from the alternative set, and removing the selected time length from the alternative set;
(1d) judging whether the selected duration meets the constraint condition, if so, executing the step (1e), otherwise, executing the step (1 f);
the constraint condition refers to a situation that one of the following conditions is satisfied:
the condition 1 is that the selected alternative set elements can be divided by omega-tau +1 and the basic period duration set is empty;
condition 2, the selected candidate set element can be evenly divided by ω - τ +1 and the following holds:
wherein gcd represents the operation of taking the greatest common factor, l represents the time length selected from the alternative set,the node comprises a plurality of nodes, a first node and a second node, wherein the first node is used for representing the kth time length in a basic period time length set, k is 1,2, …, m is used for representing the total number of the time length numbers in the current basic period time length set, omega represents the time length of monitoring channel broadcasting after a node broadcasts a beacon in a basic period, tau represents the time length of broadcasting a beacon by the node, the value of each node omega is equal, the value of each node tau is equal, l, m,The time units of ω and τ are the same;
(1e) adding the selected duration to a set of base cycle durations;
(1f) judging whether all the time lengths in the alternative set are selected, if so, obtaining the basic period time length sets of all the nodes and then executing the step (2), otherwise, executing the step (1 c);
(2) setting the basic period duration and the super period duration of each node:
(2a) selecting an unselected node from the mobile ad hoc network;
(2b) according toCalculating the absolute value of the difference between each time length in the basic period time length set and the pre-selected basic period time length of the selected node set by the user, wherein u represents the pre-selected basic period time length of the selected node set by the user,representing the kth duration in the basic cycle duration set, k being 1,2, …, n, n representing the total number of durations in the basic cycle duration set;
(2c) selecting the time length with the minimum absolute value as a basic period time length of the selected node;
(2d) calculating a super-cycle time length of the selected node according to the following super-cycle time length formula:
wherein HL represents the super-cycle duration of the selected node,indicates the base period duration of the selected node, ω indicates the duration of listening to the channel broadcast after the selected node broadcasts a beacon in the base period, τ indicates the duration of broadcasting a beacon by the selected node,the time units of ω and τ are the same;
(3) setting the working mode of each node:
(3a) selecting an unselected node from the mobile ad hoc network;
(3b) from the power-on time of the selected node, the time length of every other basic period is taken as a basic period, andthe base period is used as a super period, the selected nodes have a plurality of super periods, wherein,indicates the base period duration of the selected node, ω indicates the duration of the listening channel broadcast by the selected node after broadcasting a beacon in the base period,tau represents the time length of a beacon broadcast by the selected node, and if the time length of omega-tau +1 is taken as a time slot, the basic periodIncludedA plurality of time slots, and the number of the time slots can be prime number or complex number;
(3c) in each super-period of the selected node, a basic period is randomly selected as a special basic period, and in the special basic period, the selected node monitors the channel broadcast after broadcasting a beaconIn other fundamental periods, the selected node listens for the channel broadcast ω after broadcasting a beacon, wherein,the operation of rounding up is indicated by the expression,indicating the basic period duration of the selected node, and omega indicating the duration of monitoring channel broadcast after the selected node broadcasts a beacon in the basic period;
(4) the node discovers its neighbor nodes:
(4a) after receiving the beacon broadcast by the neighbor node, any node sends back a beacon to the neighbor node, and the receiving node and the neighbor node complete mutual discovery.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910718236.1A CN110519745B (en) | 2019-08-05 | 2019-08-05 | Neighbor discovery method based on maximum common divisor of cycle length |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910718236.1A CN110519745B (en) | 2019-08-05 | 2019-08-05 | Neighbor discovery method based on maximum common divisor of cycle length |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110519745A CN110519745A (en) | 2019-11-29 |
CN110519745B true CN110519745B (en) | 2021-04-20 |
Family
ID=68625160
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910718236.1A Active CN110519745B (en) | 2019-08-05 | 2019-08-05 | Neighbor discovery method based on maximum common divisor of cycle length |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110519745B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112601199B (en) * | 2020-11-13 | 2022-02-22 | 西安电子科技大学 | Intelligent contact sensing method, device and system based on low-power-consumption Bluetooth |
CN112969168B (en) * | 2021-02-08 | 2022-04-15 | 西安电子科技大学 | Method for avoiding maximum value of expected discovery delay of BLE equipment |
CN113747405B (en) * | 2021-08-05 | 2023-08-08 | 西安电子科技大学 | Method for reducing BLE device discovery delay and BLE device |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003041304A1 (en) * | 2001-11-02 | 2003-05-15 | Ciena Corporation | Method and system for detecting network elements in an optical communications network |
CN101098373A (en) * | 2006-06-30 | 2008-01-02 | 中国科学院软件研究所 | Mobile decision approach for data gathering set in wireless sensor network |
CN102984781A (en) * | 2012-12-13 | 2013-03-20 | 北京邮电大学 | Neighbor node judgment method for wireless ad hoc network route |
CN103209461A (en) * | 2013-02-26 | 2013-07-17 | 无锡清华信息科学与技术国家实验室物联网技术中心 | Synergic prime number based asymmetric low duty period neighbor discovery method |
CN103338502A (en) * | 2013-06-09 | 2013-10-02 | 中国科学院信息工程研究所 | Sensor node neighbor discovering method and system |
CN103532860A (en) * | 2013-10-24 | 2014-01-22 | 无锡清华信息科学与技术国家实验室物联网技术中心 | Universal and flexible neighbor discovery protocol |
CN103619050A (en) * | 2013-12-12 | 2014-03-05 | 上海交通大学 | Neighbor node discovering method based on perfect difference set and used for mobile wireless network |
WO2014153020A1 (en) * | 2013-03-14 | 2014-09-25 | Fujitsu Limited | Power control of neighbor discovery signals |
CN105744640A (en) * | 2016-01-14 | 2016-07-06 | 南京航空航天大学 | Mobile Ad Hoc network directional time-division access protocol based on neighbor beam alignment and tracking |
CN105813158A (en) * | 2014-12-29 | 2016-07-27 | 中国民用航空总局第二研究所 | Low duty ratio sensor network neighbor discovery method based on prime number set |
CN105979596A (en) * | 2016-06-21 | 2016-09-28 | 西安电子科技大学 | D2D neighbor user discovery method based on mitigation of in-band emission influence in LTE-A network |
CN108616924A (en) * | 2018-03-16 | 2018-10-02 | 西安电子科技大学 | Chunk data distribution method based on priority switching at runtime in a kind of wireless network |
CN109195225A (en) * | 2018-10-22 | 2019-01-11 | 电子科技大学 | Node working time slot generation method suitable for wireless self-organization network neighbours discovery |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9832769B2 (en) * | 2009-09-25 | 2017-11-28 | Northwestern University | Virtual full duplex network communications |
EP2569962B1 (en) * | 2010-05-14 | 2017-12-20 | Koninklijke Philips N.V. | Method and device for deterministic directional discovery of wireless devices |
US9585080B2 (en) * | 2014-12-23 | 2017-02-28 | Intel Corporation | Techniques for conducting fine timing measurements |
-
2019
- 2019-08-05 CN CN201910718236.1A patent/CN110519745B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003041304A1 (en) * | 2001-11-02 | 2003-05-15 | Ciena Corporation | Method and system for detecting network elements in an optical communications network |
CN101098373A (en) * | 2006-06-30 | 2008-01-02 | 中国科学院软件研究所 | Mobile decision approach for data gathering set in wireless sensor network |
CN102984781A (en) * | 2012-12-13 | 2013-03-20 | 北京邮电大学 | Neighbor node judgment method for wireless ad hoc network route |
CN103209461A (en) * | 2013-02-26 | 2013-07-17 | 无锡清华信息科学与技术国家实验室物联网技术中心 | Synergic prime number based asymmetric low duty period neighbor discovery method |
WO2014153020A1 (en) * | 2013-03-14 | 2014-09-25 | Fujitsu Limited | Power control of neighbor discovery signals |
CN103338502A (en) * | 2013-06-09 | 2013-10-02 | 中国科学院信息工程研究所 | Sensor node neighbor discovering method and system |
CN103532860A (en) * | 2013-10-24 | 2014-01-22 | 无锡清华信息科学与技术国家实验室物联网技术中心 | Universal and flexible neighbor discovery protocol |
CN103619050A (en) * | 2013-12-12 | 2014-03-05 | 上海交通大学 | Neighbor node discovering method based on perfect difference set and used for mobile wireless network |
CN105813158A (en) * | 2014-12-29 | 2016-07-27 | 中国民用航空总局第二研究所 | Low duty ratio sensor network neighbor discovery method based on prime number set |
CN105744640A (en) * | 2016-01-14 | 2016-07-06 | 南京航空航天大学 | Mobile Ad Hoc network directional time-division access protocol based on neighbor beam alignment and tracking |
CN105979596A (en) * | 2016-06-21 | 2016-09-28 | 西安电子科技大学 | D2D neighbor user discovery method based on mitigation of in-band emission influence in LTE-A network |
CN108616924A (en) * | 2018-03-16 | 2018-10-02 | 西安电子科技大学 | Chunk data distribution method based on priority switching at runtime in a kind of wireless network |
CN109195225A (en) * | 2018-10-22 | 2019-01-11 | 电子科技大学 | Node working time slot generation method suitable for wireless self-organization network neighbours discovery |
Non-Patent Citations (5)
Title |
---|
Engergy-Efficient Neighbor Discovery in Mobile Ad Hoc and wireless Sensor Networks:A Survey;Wei Sun;《IEEE》;20140305;全文 * |
Finger knuckle print recognition based on SURF algorithm;Le-qing Zhu;《IEEE》;20110915;全文 * |
Neighbor Discovery Latency in BlE-Like Protocols;Philipp H.Kindt;《IEEE》;20170809;全文 * |
传感器网络中实现传输功率均衡的移动控制算法;公维宾,沈中;《西安电子科技大学学报》;20081020;全文 * |
基于能量有效的逆向AODV路由协议研究;刘杰,李文;《计算机应用研究》;20141229;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN110519745A (en) | 2019-11-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2484173B1 (en) | Wlan peer-to-peer group owner negotiation | |
CN110519745B (en) | Neighbor discovery method based on maximum common divisor of cycle length | |
US7715354B2 (en) | Method of beacon exchange between devices with asymmetric links and system using the method | |
JP4808255B2 (en) | Beacon management method to merge piconet | |
US7808966B2 (en) | Device employment of multiple beacon slots in a distributed network | |
RU2471228C2 (en) | Multi-level porosity of working cycles | |
Karowski et al. | Optimized asynchronous multi-channel neighbor discovery | |
US8144722B2 (en) | Multi-channel scheduling method for WLAN devices with a single radio interface | |
Arachchige et al. | An asynchronous neighbor discovery algorithm for cognitive radio networks | |
HUE034702T2 (en) | Systems and methods for synchronization within a neighbor aware network | |
JP6403411B2 (en) | Wireless communication method | |
Lee et al. | Study on a dynamic superframe adjustment algorithm for IEEE 802.15. 4 LR-WPAN | |
JP5462410B2 (en) | Method and apparatus for accessing a wireless sensor network | |
EP1900176A1 (en) | Frame structure of superframe transmitted in wireless network, method for transmitting the superframe, and method for controlling devices' wakeup by using the superframe | |
US7450553B2 (en) | System and method for selecting beacon transmission starting point in communication system | |
EP3573372B1 (en) | A role selection method for wireless communication systems | |
JP4820363B2 (en) | Wireless communication method and wireless network | |
Alonso et al. | Probabilistic protocols for node discovery in ad-hoc, single broadcast channel networks | |
Yang et al. | Neighbor-aware multiple access protocol for 5G mMTC applications | |
Rashid et al. | Development of energy aware TDMA-based MAC protocol for wireless sensor network system | |
US8112085B2 (en) | Anchor selection in distributed networks | |
US7092368B2 (en) | Reduction of device discovery delays in frequency hopping-based ad-hoc networks | |
Kawamoto et al. | A two-phase scatternet formation protocol for Bluetooth wireless personal area networks | |
CN110167005A (en) | Wake on wireless electrical components find frame | |
Garcia-Luna-Aceves et al. | Nomad: Deterministic collision-free channel access with channel reuse in wireless networks |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |