CN110913410A - Network access method, device, equipment and storage medium of network node - Google Patents

Network access method, device, equipment and storage medium of network node Download PDF

Info

Publication number
CN110913410A
CN110913410A CN201911176858.2A CN201911176858A CN110913410A CN 110913410 A CN110913410 A CN 110913410A CN 201911176858 A CN201911176858 A CN 201911176858A CN 110913410 A CN110913410 A CN 110913410A
Authority
CN
China
Prior art keywords
node
relay
nodes
network
starting
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.)
Pending
Application number
CN201911176858.2A
Other languages
Chinese (zh)
Inventor
王希朝
郝艳彪
苏国彬
谷志刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chen Core Technology Co Ltd
Original Assignee
Chen Core Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Chen Core Technology Co Ltd filed Critical Chen Core Technology Co Ltd
Priority to CN201911176858.2A priority Critical patent/CN110913410A/en
Publication of CN110913410A publication Critical patent/CN110913410A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • H04W28/14Flow control between communication endpoints using intermediate storage
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/04Terminal devices adapted for relaying to or from another terminal or user
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a network access method, a network access device, network access equipment and a storage medium of a network node. The method comprises the following steps: detecting whether a relay node exists around the node; if the relay node does not exist, starting a relay function starting process of the node, and monitoring whether other nodes which start the relay function starting process exist around the node in a preset time period; and if it is determined that other nodes starting the relay function starting process do not exist around the node, starting the relay function of the node. By the technical scheme of the invention, the flexibility of the network can be improved.

Description

Network access method, device, equipment and storage medium of network node
Technical Field
The present invention relates to wireless communication networking technologies, and in particular, to a network access method, an apparatus, a device, and a storage medium for a network node.
Background
The popularization of the Bluetooth low energy technology expands the application range of Bluetooth, the continuous evolution of the technology is greatly promoted, along with the development of an internet of things, the Bluetooth low energy technology faces the problems of small quantity of network accessible devices and small coverage range, a Bluetooth low energy Mesh protocol is issued based on the SIG organization, namely the SIG Mesh Profile, the protocol is based on a BLE bottom layer transmission protocol, the networking form and the transmission mode of BLE devices are enriched, the coverage range and the network device capacity of the Bluetooth low energy are greatly expanded, obstacles are swept away for the Bluetooth low energy to be widely applied to the internet of things devices, and particularly, due to the extremely low power consumption, the Bluetooth low energy Mesh network has obvious application advantages.
The existing Mesh networking method based on the low-power-consumption Bluetooth follows a standard SIG Mesh Profile networking protocol, meets the networking requirements of the low-power-consumption wireless transmission field, and mainly has the following characteristics:
1) the device access needs a Bluetooth device called as an access configuration device, and the addition of the device waiting for access is completed through a specific process.
2) And data is transmitted and received among the nodes after network access in a management type flooding mode.
3) In order to improve the network coverage and the network flexibility, the protocol specifies special functions which the nodes can have, for example, equipment with a Relay function can forward data received from peripheral nodes; the device with Friend Ship function can buffer the data sent to the low-power consumption device, and the functions are determined when the device accesses the network.
In the prior art, Relay functions of all nodes are generally enabled when node deployment is performed, or Relay nodes are manually selected when node deployment is performed, and for a dynamically changing network, the change of the Relay node position directly affects the coverage area and the communication efficiency of the network, so that the flexibility of the network is limited by the existing network node deployment scheme.
Disclosure of Invention
The embodiment of the invention provides a network access method, a network access device, network access equipment and a storage medium of a network node, so as to improve the flexibility of a network.
In a first aspect, an embodiment of the present invention provides a network access method for a network node, where the method includes:
detecting whether a relay node exists around the node;
if the relay node does not exist, starting a relay function starting process of the node, and monitoring whether other nodes which start the relay function starting process exist around the node in a preset time period;
and if it is determined that other nodes starting the relay function starting process do not exist around the node, starting the relay function of the node.
In a second aspect, an embodiment of the present invention further provides a network access device for a network node, where the network access device includes:
the relay node detection module is used for detecting whether a relay node exists around the relay node;
the relay process starting module is used for starting a relay function starting process of the node if the relay node does not exist, and monitoring whether other nodes which start the relay function starting process exist around the node in a preset time period;
and the relay function starting module is used for starting the relay function of the node if determining that other nodes starting the relay function starting process do not exist around the node.
In a third aspect, an embodiment of the present invention further provides a wireless communication device, where the device includes:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the network access method of the network node according to any of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a network access method of a network node according to any one of the embodiments of the present invention.
The embodiment of the invention detects whether the relay node exists around the node, if the relay node does not exist, the relay function starting process of the node is started, whether other nodes which start the relay function starting process exist around the node is monitored in a preset time period, and if the relay function starting process does not exist around the node, the relay function of the node is started. The method and the device utilize the advantage that the nodes dynamically enable the relay function according to the current network state, solve the problem that the network flexibility is limited due to the fact that the relay function is directly started on each network access node or the relay nodes need to be manually selected in the prior art, and achieve the effect of improving the network flexibility.
Drawings
Fig. 1a is a schematic flowchart of a network access method of a network node according to an embodiment of the present invention;
FIG. 1b is a schematic diagram of a large-scale high-density networking suitable for use in accordance with an embodiment of the present invention;
fig. 2a is a schematic flowchart of a network access method of a network node according to a second embodiment of the present invention;
FIG. 2b is a diagram illustrating a large-scale high-density networking data transmission suitable for a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a network access device of a network node according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a wireless communication device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1a is a schematic flowchart of a network access method of a network node according to an embodiment of the present invention. The method is applicable to the deployment of the network node in large-scale wireless equipment networking, and can be executed by a network access device of the network node, wherein the network access device can be composed of hardware and/or software and can be generally integrated in wireless communication equipment. The method specifically comprises the following steps:
and S110, detecting whether a relay node exists around the node.
In this embodiment, the Relay node may be a node having a Relay function, and is also referred to as a Relay node. The network obtained by using the node network access method of the embodiment may at least include two nodes, namely a Relay node and a common node.
In the prior art, in a large-scale networking application scene based on the bluetooth low energy Mesh, the Relay node can be selected in a manual designated mode, but the flexibility of the network is greatly reduced, and when the Relay node fails or the Relay node is moved out of the network, the network fails. The large-scale high-density network refers to a device in which a large number of devices exist in a one-hop range of each device, but when the range of the whole network exceeds the range which can be covered by a single device, data can be transmitted to other nodes in the network range through more than one-hop transmission.
Based on the current situation, in the process of carrying out large-scale intensive networking based on the low-power-consumption Bluetooth Mesh, a method is needed for realizing automatic deployment and updating of Relay nodes in the low-power-consumption Bluetooth Mesh network, so that the deployment of the Relay nodes is more suitable for the current network state, the influence of network flooding on data packet transmission is reduced, the network is more robust and stable, and meanwhile, the network topology can be dynamically adjusted according to the current network state and the position of a real node, and the network robustness is improved.
In order to implement the above functions, in this embodiment, after the bluetooth low energy Mesh node completes the network access process, each network access Mesh node needs to determine whether a Relay function needs to be started. Specifically, whether a Relay node exists around the node needs to be detected, and whether the Relay function of the node is started is considered if the Relay node does not exist.
Optionally, detecting whether a relay node exists around the node includes: monitoring heartbeat packets sent by relay nodes around the node; if the received heartbeat packet is determined and the received signal strength indication RSSI corresponding to the heartbeat packet is greater than a first set threshold value, determining that a relay node exists around the node; otherwise, determining that no relay node exists around the node.
For example, after the Mesh node is networked, it may be first monitored whether a Relay node is periodically sent to the heartbeat packet. After determining the Relay role of each Relay node, each Relay node broadcasts a heartbeat packet periodically. If the heartbeat packet is not received, determining that no Relay node exists around the Mesh node, and starting a Relay function starting process by the Mesh node; if a heartbeat packet is Received, the newly added Mesh node can continuously judge whether the Received RSSI (Received Signal Strength Indication) of the Relay heartbeat packet meets a set threshold value, namely a first set threshold value, wherein the first set threshold value is an RSSI minimum value, and if the RSSI of the Received heartbeat packet is less than or equal to the threshold value, the Relay node can be considered to be far away from the Mesh node, and the Mesh node can still start a Relay function starting process by itself; if the RSSI is larger than the first set threshold, the Relay node is near the Mesh node, and the Relay node around the Mesh node can be determined without starting the Relay function of the Relay node.
In this embodiment, the heartbeat packet sent by the Relay node has two functions: one is to represent the existence of the self, and is convenient for the Mesh nodes of the peripheral network to search the self; the other function is that when the peripheral nodes cannot search the heartbeat packet of the Relay node within a certain time interval, the peripheral nodes can automatically start a real function starting process to compete to become the Relay node, and therefore robustness and stability of the network are maintained.
Optionally, after detecting whether a relay node exists around the node, the method further includes: when the node accesses the network, if the relay node is determined to exist, the address of the relay node is cached, and the relay node is used as a target relay node when the node sends data.
For example, when a Mesh node accesses a network, if the Mesh node detects that a Relay node exists around the Mesh node, the Mesh node caches an address of the Relay node, and preferentially sends data to the Relay node when sending the data.
Optionally, detecting whether a relay node exists around the node includes: and under the condition that the node is accessed to the network, periodically detecting whether a relay node exists around the node.
Correspondingly, after detecting whether the relay node exists around the node, the method further comprises the following steps: and if the relay node is determined to exist, keeping the function of the node unchanged.
For example, in order to improve network stability and increase network flexibility, in this embodiment, when a Mesh node is already networked, dynamic update of a Relay node may be implemented by periodically detecting whether a Relay node exists around the Mesh node. Specifically, because the Relay node can be maintained according to the heartbeat packet, if the Mesh node can periodically receive the heartbeat packet sent by the Relay node, which indicates that there are Relay nodes around the Mesh node at this time, the current function of the Mesh node can be kept unchanged, that is, the Relay function of the Mesh node is not started, and when the Mesh node cannot receive the heartbeat packet sent by the Relay node, the Mesh node can randomly retreat for a period of time, that is, wait for a period of time, and then select and determine the Relay node again.
And S120, if the relay node does not exist, starting a relay function starting process of the node, and monitoring whether other nodes which start the relay function starting process exist around the node in a preset time period.
In this embodiment, if the peripheral Relay node cannot be detected, that is, it is determined that there is no Relay node, the Relay function starting process of the node may be started to start the Relay function of the node, and meanwhile, to avoid that the Relay function is started when each Mesh node simultaneously enters the network, the distribution of the Relay nodes in the network is more uniform and reasonable, and while the Mesh node starts the Relay function starting process, it may be monitored whether there are other nodes around the node that compete for the Relay function with the node, that is, other nodes that have started the Relay function starting process.
Optionally, starting the relay function starting process of the node includes:
and after randomly retreating for a period of time, broadcasting and sending a relay function starting notice to the peripheral nodes.
The purpose of broadcasting the Relay function starting notification is to announce the node to start the Relay function to the peripheral nodes, and avoid the Relay function from being repeatedly started by other peripheral nodes which access the network simultaneously, so that the distribution of the Relay nodes in the network is more reasonable.
The advantage of performing random backoff is that the nodes accessing the network simultaneously can transmit the Relay function start notification in a staggered manner, so as to prevent the problem that other nodes in the periphery of the nodes accessing the network simultaneously transmit the Relay function start notification to the node, which results in infinite competition for Relay function among the nodes.
Optionally, monitoring whether there are other nodes that have started the relay function starting process around the node within a preset time period includes: monitoring relay function starting notifications sent by other nodes around the node in a preset time period; if the relay function starting notification is determined to be received and the RSSI corresponding to the relay function starting notification is larger than a second set threshold, determining that other nodes starting the relay function starting process exist around the node; otherwise, determining that other nodes starting the relay function starting process do not exist around the node.
Optionally, after monitoring whether there are other nodes that have started the relay function starting process around the node within a preset time period, the method further includes: and if other nodes which start the relay function starting process exist, randomly retreating for a period of time, and returning to re-detect whether relay nodes exist around the node.
For example, if it is determined that there is no Relay node, the Mesh node may start a Relay function opening process after randomly retreating for a certain time, that is, send a Relay function opening notification to the peripheral device, where the Relay function opening notification may be, for example, a real opening broadcast packet. Specifically, after sending a Relay start broadcast packet, a Mesh node defaults to perform scanning operation within a period of time so as to determine whether the periphery has the same function of competing for starting the Relay by the Mesh node, and if the Mesh node receives a real start broadcast packet from the periphery node during a scanning window period and the RSSI of the broadcast packet meets a threshold condition, namely a second set threshold, the Mesh node proves that the periphery node competes for the Relay function at the same time, and at the moment, the Mesh node can back off for a period of time randomly, return to re-detect whether a Relay node exists at the periphery of the Mesh node, and re-execute the flow; if the Mesh node does not receive a Relay opening broadcast packet sent by another node during the scanning window, it indicates that the peripheral node does not open the Realy function, the node successfully competes, and the Realy function of the node can be opened at this time.
And S130, if it is determined that other nodes starting the relay function starting process do not exist around the node, starting the relay function of the node.
In this embodiment, if it is determined that there is no other node in the periphery of the node that has started the relay function starting process, it indicates that the peripheral node has not started the Realy function, and the node successfully competes, and at this time, the Realy function of the node may be started. Specifically, after formally starting the real function, the node may broadcast and send a heartbeat packet to the peripheral nodes to indicate its existence.
In this embodiment, when each node accesses the network, it is first determined whether there is a Relay node around the node, and then the Relay function is started according to the method provided in this embodiment, so that the Relay nodes are reasonably distributed in the network as the network scale increases. In addition, adjacent Relay nodes can mutually buffer the address of the other side to serve as the destination address of data transmission in multi-hop transmission, so that the data can be only transmitted to the corresponding Relay nodes when the data is forwarded between the Relay nodes, flooding data transmission is avoided, and data redundancy in network transmission is reduced.
Fig. 1b shows a schematic diagram of a large-scale high-density networking implemented by the node network access method provided in this embodiment, where a node labeled with an "R" word is a node with a Relay function, namely, a Relay node 1, automatically selected by the method provided in the present invention during the network access process of each node, and other nodes not labeled with an "R" word are nodes with a non-Relay function, namely, common nodes 2. The distribution quantity of Relay nodes increases along with the continuous increase of the network scale, but each common node is covered by at least one node with the Relay function, so that each node can send or receive information to the node outside the hop range of the node, and the automatic selection function of the Relay nodes is realized.
According to the technical scheme of the embodiment, whether the relay node exists around the node is detected, if the relay node does not exist, the relay function starting process of the node is started, whether other nodes which start the relay function starting process exist around the node is monitored in a preset time period, and if the relay function of the node is started, the relay function of the node is started. The method and the device utilize the advantage that the nodes dynamically enable the relay function according to the current network state, solve the problem that the network flexibility is limited due to the fact that the relay function is directly started on each network access node or the relay nodes need to be manually selected in the prior art, and achieve the effect of improving the network flexibility.
Example two
Fig. 2a is a schematic flowchart of a network access method of a network node according to a second embodiment of the present invention. The present embodiment provides a preferred network node network access method by optimizing based on the above embodiments. The method specifically comprises the following steps:
s201, whether the node is accessed to the network or not is judged, if yes, S203 is executed; if not, go to S202.
S202, continuing to wait for joining the network.
S203, whether heartbeat packets sent by relay nodes around the node are sensed or not is judged, and if yes, S204 is executed; if not, go to S206.
S204, whether the RSSI corresponding to the heartbeat packet is larger than a first set threshold value or not is judged, if yes, S205 is executed; if not, go to S206.
S205, caching the address of the relay node, and taking the relay node as a target relay node when the relay node sends data.
S206, after randomly retreating for a period of time, broadcasting and sending a relay function starting notice to the peripheral nodes, and monitoring the relay function starting notices sent by other nodes around the node in a preset time period.
S207, whether a relay function starting notice sent by other nodes around the node is sensed or not in a preset time period, if yes, S208 is executed; if not, go to S210.
S208, whether the RSSI corresponding to the relay function starting notice is larger than a second set threshold value or not is judged, if yes, S209 is executed; if not, go to S210.
S209, randomly back off for a period of time, and returns to execution S203.
And S210, starting the relay function of the node, and broadcasting and sending the heartbeat packet to the peripheral nodes.
According to the technical scheme of the embodiment, on the basis of the embodiment, whether the relay function needs to be started around the node is determined by monitoring the heartbeat packet, and when the relay function is started, whether the node competes for the relay function is determined by monitoring the relay function starting notice sent by other nodes around the node, so that the relay function of the node is formally started when the relay function competes for the node is determined, the problem that in the prior art, the network flexibility is limited due to the fact that each network access node directly starts the relay function or needs to manually select the relay node is solved, and the effect of ensuring the reasonability of the distribution of the relay nodes in a dynamic network is achieved while the network flexibility is improved.
Based on the networking method provided by the foregoing embodiments, a typical data transmission process is enumerated as follows, as shown in fig. 2B, where nodes with "R" word are Relay nodes, such as a node B, a node C, a node D, a node E, a node F, and a node G; nodes without the word "R" are normal nodes, such as a nodes, I nodes, and H nodes. The method specifically comprises the following steps:
1) the node A finds a nearby node B as a preferred Relay node according to the network access method of the network node provided by the embodiment, and the node I also finds a node F and a node G as Relay nodes;
2) when the node A sends data to the node I, the data is firstly sent to the node B, the node B waits for the response information of the peripheral common nodes after broadcasting once, but the node I is positioned outside the one-hop range of the node B, so the node B cannot receive any response message sent by the node I after waiting for a certain time, and the following steps are continuously executed;
3) and the node B continuously forwards the data packet to peripheral Relay nodes, forwards the data to the peripheral Relay nodes, for example, the node E repeats the operation similar to the step 2), and then forwards the data to the node F again. Of course, the node B may also send the data to the node C, and then the node C forwards the data to the node D, which is not described herein again;
4) the I node is in the coverage range of the F node with the Relay function, so that the F node receives a response message sent by the I node after carrying out data broadcasting for one time;
5) when the I node replies the response message to the A node, the I node follows the similar operation of the steps, except that when the response message is transmitted to the node which does not participate in the data packet transmission path, the node does not do any processing and directly discards the response message, for example, if the data is transmitted to the node I by the path of the B node, the E node and the F node, the D node discards the response message when the response message is transmitted from the F node to the D node;
6) when the A node receives the response message of the I node, a typical data transmission operation is completed.
To sum up, it needs to be pointed out that the forwarding of data between Relay nodes is sent by broadcasting, that is, a Relay node will forward data to all its neighboring Relay nodes, and if a Relay node receives repeated data, it can directly discard the repeated data, so as to avoid the occurrence of a large amount of repeated data in the network. In addition, the principle of alternative transmission is followed from the common node to the Relay node, that is, the common node may select one Relay node of at least one Relay node cached by the common node as a target Relay node for data transmission.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a network access device of a network node according to a third embodiment of the present invention. Referring to fig. 3, a network entry apparatus of a network node includes: the relay node detection module 310, the relay process starting module 320, and the relay function starting module 330, which are described in detail below.
A relay node detection module 310, configured to detect whether a relay node exists around the node;
a relay process starting module 320, configured to start a relay function starting process of the node if it is determined that the relay node does not exist, and monitor whether other nodes which have started the relay function starting process exist around the node within a preset time period;
the relay function starting module 330 is configured to start the relay function of the node if it is determined that there is no other node around the node, where the relay function starting process is started.
In the network access device of the network node provided in this embodiment, by detecting whether a relay node exists around the node, if it is determined that the relay node does not exist, the relay function starting process of the node is started, and whether other nodes which have started the relay function starting process exist around the node is monitored within a preset time period, and if it is determined that other nodes which have started the relay function starting process do not exist around the node, the relay function of the node is started. The method and the device utilize the advantage that the nodes dynamically enable the relay function according to the current network state, solve the problem that the network flexibility is limited due to the fact that the relay function is directly started on each network access node or the relay nodes need to be manually selected in the prior art, and achieve the effect of improving the network flexibility.
Optionally, the apparatus further comprises:
and the relay address caching module is used for caching the address of the relay node if the relay node is determined to exist when the node accesses the network after detecting whether the relay node exists around the node, and taking the relay node as a target relay node when the node sends data.
Optionally, the relay node detecting module 310 may specifically be configured to:
under the condition that the node is accessed to the network, periodically detecting whether a relay node exists around the node;
correspondingly, the device also comprises:
and the node function maintaining module is used for maintaining the function of the node unchanged if the relay node is determined to exist after detecting whether the relay node exists around the node.
The relay node detection module 310 may specifically be configured to:
monitoring heartbeat packets sent by relay nodes around the node;
if the heartbeat packet is determined to be received and the received signal strength indication RSSI corresponding to the heartbeat packet is greater than a first set threshold value, determining that the relay node exists around the node;
otherwise, determining that the relay node does not exist around the node.
Optionally, the relay process starting module 320 may specifically be configured to:
and after randomly retreating for a period of time, broadcasting and sending a relay function starting notice to the peripheral nodes.
Optionally, the relay process starting module 320 may be further specifically configured to:
monitoring relay function starting notifications sent by other nodes around the node in a preset time period;
if the relay function starting notification is determined to be received and the RSSI corresponding to the relay function starting notification is larger than a second set threshold, determining that other nodes starting the relay function starting process exist around the node;
otherwise, determining that other nodes which start the relay function starting process do not exist around the node.
Optionally, the apparatus further comprises:
and the node backoff module is used for monitoring whether other nodes which start the relay function starting process exist around the node in a preset time period, and returning to re-detect whether relay nodes exist around the node after randomly backoff for a period of time if the other nodes which start the relay function starting process exist.
The product can execute the method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of a wireless communication device according to a fourth embodiment of the present invention, and as shown in fig. 4, the wireless communication device according to the present embodiment includes: a processor 41 and a memory 42. The number of the processors in the wireless communication device may be one or more, fig. 4 illustrates one processor 41, the processor 41 and the memory 42 in the wireless communication device may be connected by a bus or in other manners, and fig. 4 illustrates a connection by a bus.
The processor 41 of the wireless communication device in this embodiment integrates the network access device of the network node provided in the above embodiment. Furthermore, the memory 42 in the wireless communication device is used as a computer-readable storage medium for storing one or more programs, which may be software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the network access method of the network node in the embodiment of the present invention (for example, the modules in the network access device of the network node shown in fig. 3 include the relay node detection module 310, the relay process starting module 320, and the relay function starting module 330). The processor 41 executes various functional applications and data processing of the device by executing software programs, instructions and modules stored in the memory 42, that is, implements the network access method of the network node in the above method embodiment.
The memory 42 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the device, and the like. Further, the memory 42 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 42 may further include memory located remotely from processor 41, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
And, when the one or more programs included in the above-described wireless communication device are executed by the one or more processors 41, the programs perform the following operations:
detecting whether a relay node exists around the node; if the relay node does not exist, starting a relay function starting process of the node, and monitoring whether other nodes which start the relay function starting process exist around the node in a preset time period; and if it is determined that other nodes starting the relay function starting process do not exist around the node, starting the relay function of the node.
EXAMPLE five
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a network access device of a network node, implements a network access method of the network node according to an embodiment of the present invention, where the method includes: detecting whether a relay node exists around the node; if the relay node does not exist, starting a relay function starting process of the node, and monitoring whether other nodes which start the relay function starting process exist around the node in a preset time period; and if it is determined that other nodes starting the relay function starting process do not exist around the node, starting the relay function of the node.
Of course, the computer-readable storage medium provided in the embodiments of the present invention, when being executed, is not limited to implement the method operations described above, and may also implement the relevant operations in the network access method of the network node provided in any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes instructions for enabling a wireless communication device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the network access device of the network node, each included unit and module are only divided according to functional logic, but are not limited to the above division, as long as the corresponding function can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A network access method of a network node is characterized by comprising the following steps:
detecting whether a relay node exists around the node;
if the relay node does not exist, starting a relay function starting process of the node, and monitoring whether other nodes which start the relay function starting process exist around the node in a preset time period;
and if it is determined that other nodes starting the relay function starting process do not exist around the node, starting the relay function of the node.
2. The method according to claim 1, further comprising, after detecting whether or not a relay node exists in the vicinity of the own node:
when the node accesses the network, if the relay node is determined to exist, the address of the relay node is cached, and the relay node is used as a target relay node when the node sends data.
3. The method according to claim 1, wherein detecting whether a relay node exists in the vicinity of the own node comprises:
under the condition that the node is accessed to the network, periodically detecting whether a relay node exists around the node;
correspondingly, after detecting whether the relay node exists around the node, the method further comprises the following steps:
and if the relay node is determined to exist, keeping the function of the node unchanged.
4. The method according to any one of claims 1 to 3, wherein detecting whether a relay node exists in the vicinity of the own node comprises:
monitoring heartbeat packets sent by relay nodes around the node;
if the heartbeat packet is determined to be received and the received signal strength indication RSSI corresponding to the heartbeat packet is greater than a first set threshold value, determining that the relay node exists around the node;
otherwise, determining that the relay node does not exist around the node.
5. The method according to claim 1, wherein starting the relay function start process of the node comprises:
and after randomly retreating for a period of time, broadcasting and sending a relay function starting notice to the peripheral nodes.
6. The method according to claim 5, wherein monitoring whether there are other nodes that have started the relay function start process around the node within a preset time period comprises:
monitoring relay function starting notifications sent by other nodes around the node in a preset time period;
if the relay function starting notification is determined to be received and the RSSI corresponding to the relay function starting notification is larger than a second set threshold, determining that other nodes starting the relay function starting process exist around the node;
otherwise, determining that other nodes which start the relay function starting process do not exist around the node.
7. The method according to claim 1, wherein after monitoring whether there are other nodes that have started the relay function start process around the node within a preset time period, the method further comprises:
and if determining that other nodes which start the relay function starting process exist, randomly retreating for a period of time, and returning to re-detect whether relay nodes exist around the node.
8. A network access apparatus of a network node, comprising:
the relay node detection module is used for detecting whether a relay node exists around the relay node;
the relay process starting module is used for starting a relay function starting process of the node if the relay node does not exist, and monitoring whether other nodes which start the relay function starting process exist around the node in a preset time period;
and the relay function starting module is used for starting the relay function of the node if determining that other nodes starting the relay function starting process do not exist around the node.
9. A wireless communication device, the device comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the network entry method of the network node of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out a method of network entry for a network node according to any one of claims 1 to 7.
CN201911176858.2A 2019-11-26 2019-11-26 Network access method, device, equipment and storage medium of network node Pending CN110913410A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911176858.2A CN110913410A (en) 2019-11-26 2019-11-26 Network access method, device, equipment and storage medium of network node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911176858.2A CN110913410A (en) 2019-11-26 2019-11-26 Network access method, device, equipment and storage medium of network node

Publications (1)

Publication Number Publication Date
CN110913410A true CN110913410A (en) 2020-03-24

Family

ID=69819786

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911176858.2A Pending CN110913410A (en) 2019-11-26 2019-11-26 Network access method, device, equipment and storage medium of network node

Country Status (1)

Country Link
CN (1) CN110913410A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112055343A (en) * 2020-08-21 2020-12-08 北京小米移动软件有限公司 Bluetooth Mesh network flooding method, device and storage medium
CN113365372A (en) * 2021-06-23 2021-09-07 Oppo广东移动通信有限公司 Ad hoc network method and device, computer readable medium and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112055343A (en) * 2020-08-21 2020-12-08 北京小米移动软件有限公司 Bluetooth Mesh network flooding method, device and storage medium
CN112055343B (en) * 2020-08-21 2023-12-12 北京小米移动软件有限公司 Bluetooth Mesh network flooding method, device and storage medium
CN113365372A (en) * 2021-06-23 2021-09-07 Oppo广东移动通信有限公司 Ad hoc network method and device, computer readable medium and electronic equipment

Similar Documents

Publication Publication Date Title
US10171986B2 (en) Radio relay device and system with waiting time optimization
US7916666B2 (en) Reliable broadcast protocol and apparatus for sensor networks
US20150092530A1 (en) Mesh Network Defragmentation
US8937879B2 (en) System and method for changing network topology based on energy consumption
CN106162684A (en) Based on ZigBee-network data transmission method, Apparatus and system
KR20080075151A (en) Method and system for improving a wireless communication route
US10484925B1 (en) Channel diversity-aware routing in wireless mesh networks
CN110247851B (en) Information updating method and device in three-layer switch, three-layer switch and medium
CN112073920A (en) Networking method of wireless grid network node and network node equipment
WO2018098750A1 (en) Message transmission method in distributed network and node
CN110913410A (en) Network access method, device, equipment and storage medium of network node
WO2020042714A1 (en) Multipath route selection method and system for power line communication network
CN101990269A (en) Data transfer method, network node and system
JP2010050909A (en) Sensor node, and method of autonomously setting sensor node activation id
JP2023512143A (en) Communication method adopting Bluetooth network and node and communication system applying same
CN110662258A (en) Message forwarding method, device and medium
CN104813640A (en) Sink node routing method and node device
EP2335383B1 (en) Network nodes
CN113163344B (en) Control method, device, medium and electronic equipment for wired and wireless hybrid networking
CN104410985A (en) Method and device of processing topology control message
WO2018098752A1 (en) Message broadcast method for distributed network and node
CN104104746B (en) A kind of segmented address distribution method of wireless self-networking
CN109495946B (en) Data transmission method and device of wireless sensor network
US9686641B2 (en) Notification method, notification system and terminal for scenery are abased on ad hoc network
CN115086923A (en) Bluetooth network, communication method, device and storage medium thereof

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