CN107257563B - Remote low-power-consumption network system and networking method - Google Patents

Remote low-power-consumption network system and networking method Download PDF

Info

Publication number
CN107257563B
CN107257563B CN201710527151.6A CN201710527151A CN107257563B CN 107257563 B CN107257563 B CN 107257563B CN 201710527151 A CN201710527151 A CN 201710527151A CN 107257563 B CN107257563 B CN 107257563B
Authority
CN
China
Prior art keywords
network
mac address
packet
terminal node
node
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
Application number
CN201710527151.6A
Other languages
Chinese (zh)
Other versions
CN107257563A (en
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.)
Routon Electronic Co ltd
Original Assignee
Routon Electronic 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 Routon Electronic Co ltd filed Critical Routon Electronic Co ltd
Priority to CN201710527151.6A priority Critical patent/CN107257563B/en
Publication of CN107257563A publication Critical patent/CN107257563A/en
Application granted granted Critical
Publication of CN107257563B publication Critical patent/CN107257563B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The invention provides a network access method of a remote low-power-consumption network, which comprises the following steps: determining a network ID, and sending a detection packet after determining the network ID so that a terminal node which is not accessed to the network randomly delays for a certain time and then sends a detection reply packet; and receiving the detection reply packet, and sending an access packet containing the network ID to the terminal node which does not access the network, so that the terminal node which does not access the network accesses the network according to the network ID and sends the network reply packet. The invention randomly delays the terminal nodes for a certain time to send the detection reply packet, thereby avoiding the problem that a plurality of terminal nodes send data packets at the same time to cause conflict, reducing networking difficulty and being beneficial to the popularization of a long-distance low-power-consumption network.

Description

Remote low-power-consumption network system and networking method
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a remote low-power-consumption network system and a networking method.
Background
A remote low-Power consumption Network (L PWAN for short, L ow Power Wide Area Network) is a novel networking technology, and the remote low-Power consumption Network at least comprises two parts, namely a terminal node and a gateway node, wherein the terminal node is used for complying with L PWAN protocol specification and realizing point-to-point remote transmission.
The remote low-power consumption network has the following characteristics:
distance: common short-distance wireless communication technologies, such as Wi-Fi and bluetooth, have a communication distance of several tens of meters, while a communication distance of a long-distance low-power network can reach several kilometers, even several tens of kilometers.
Data transmission amount: the application requirements of computers and mobile phones for browsing web pages, videos and the like on the internet are pursuing high data carrying capacity, the higher the speed is, the better the speed is, the lower the communication frequency of a remote low-power-consumption network is, and the transmitted data volume is very small.
Power consumption: the high data rate results in high power consumption, requiring adequate power supply, while the data rate of the long-distance low-power network is low, and the terminal node can maintain operation with only a small amount of power, which helps to allow the terminal node to access the network on a large scale within a certain range.
Due to the characteristics of the long distance and the low power consumption, long connection between the terminal node and the gateway node is difficult to establish, and the terminal node often has a condition of simultaneously sending data packets in the networking process of the existing long-distance low-power consumption network.
Disclosure of Invention
The present invention provides a long-range low power network system and networking method that overcomes, or at least partially solves, the above-mentioned problems.
According to a first aspect of the present invention, there is provided a network access method for a long-distance low-power consumption network, including:
determining a network ID, and sending a detection packet after determining the network ID so that a terminal node which is not accessed to the network randomly delays for a certain time and then sends a detection reply packet;
and receiving the detection reply packet, and sending an access packet containing the network ID to the terminal node which does not access the network, so that the terminal node which does not access the network accesses the network according to the network ID and sends the network reply packet.
Preferably, the network access method of the long-distance low-power consumption network of the present invention further includes:
acquiring that the terminal node is a normal terminal node according to a received network access reply packet sent by the terminal node;
sending heartbeat packets to the normal terminal nodes at intervals so that the normal terminal nodes send heartbeat reply packets;
and acquiring that the normal terminal node is still normal according to the received heartbeat reply packet.
Preferably, the network access method of the long-distance low-power consumption network of the present invention further includes:
acquiring that the terminal node is an abnormal terminal node according to the fact that the network access reply packet sent by the terminal node is not received;
sending heartbeat packets to the abnormal terminal nodes at intervals so that the abnormal normal terminal nodes send heartbeat reply packets;
acquiring that the abnormal terminal node is accessed to the network and converted into a normal terminal node according to the received heartbeat reply packet; or
Sending a network packet to the abnormal terminal node according to the condition that the heartbeat reply packet is not received, so that the abnormal terminal node sends a network access reply packet;
and acquiring that the abnormal terminal node is accessed to the network and converted into a normal terminal node according to the received network access reply packet.
According to the second aspect of the present invention, there is also provided a network access method for a long-distance low-power consumption network, including:
receiving a detection data packet, judging whether the gateway is not accessed to the network according to the detection data packet, and sending a detection reply packet to a gateway node after randomly delaying for a certain time so that the gateway node sends an access packet containing the network ID;
and receiving the network access packet, accessing the network according to the network ID and sending the network reply packet.
Preferably, the network access method of the long-distance low-power consumption network of the present invention further includes:
and receiving a heartbeat packet, and sending a heartbeat reply packet to a gateway node according to the heartbeat packet.
According to a third aspect of the present invention, there is also provided a gateway node comprising:
the detection packet sending module is used for determining a network ID and sending a detection packet after determining the network ID so as to ensure that a terminal node which does not access the network sends a detection reply packet after randomly delaying for a certain time;
and the network access packet sending module is used for receiving the detection reply packet and sending the network access packet containing the network ID to the terminal nodes which do not access the network, so that the terminal nodes which do not access the network according to the network ID and send the network access reply packet.
Preferably, the gateway node of the present invention further comprises:
the node state first judgment module is used for acquiring that the terminal node is a normal terminal node according to the received network access reply packet sent by the terminal node;
a heartbeat packet sending module, configured to send a heartbeat packet to the normal terminal node at a certain interval, so that the normal terminal node sends a heartbeat reply packet;
and the node state second judging module is used for acquiring that the normal terminal node is still normal according to the received heartbeat reply packet.
According to a fourth aspect of the present invention, there is also provided a terminal node, comprising:
the detection reply packet sending module is used for receiving a detection data packet, judging whether the network is not accessed according to the detection data packet, and sending a detection reply packet to a gateway node after a certain time of random delay so as to enable the gateway node to send an access packet containing the network ID;
and the network access reply packet sending module is used for receiving the network access packet, accessing the network according to the network ID and sending the network access reply packet.
Preferably, the terminal node of the present invention further comprises,
and the heartbeat reply packet sending module is used for receiving the heartbeat packet and sending the heartbeat reply packet to the gateway node according to the heartbeat packet.
According to a fifth aspect of the present invention, there is also provided a long-distance low-power consumption network system, comprising:
the gateway node is used for determining a network ID and sending a detection packet after determining the network ID so as to ensure that a terminal node which does not access the network sends a detection reply packet after randomly delaying for a certain time;
receiving the detection reply packet, and sending an access packet containing the network ID to the terminal node which does not access the network, so that the terminal node which does not access the network accesses the network according to the network ID and sends an access reply packet;
the terminal node is used for receiving the detection data packet, judging whether the network is accessed according to the detection data packet, and sending a detection reply packet to the gateway node after a certain time of random delay so as to enable the gateway node to send the network access packet containing the network ID;
and receiving the network access packet, accessing the network according to the network ID and sending the network reply packet.
According to the remote low-power-consumption network system and the networking method, the terminal nodes are randomly delayed for a certain time to send the detection reply packet, the problem that collision is caused when a plurality of terminal nodes send data packets at the same time is solved, fewer data packets are sent/received in the networking process, the networking difficulty is reduced, and the popularization of a remote low-power-consumption network is facilitated.
Drawings
Fig. 1 is a schematic diagram illustrating a networking process of a long-distance low-power network according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a networking process of a long-distance low-power network according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a gateway node according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal node according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a networking process of a long-distance low-power consumption network according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
In the networking process of the existing remote low-power-consumption network, because a target mac address is not set in a detection data packet sent by a gateway node, all terminal nodes located in the transmission range of the gateway node can receive the detection data packet, when a plurality of terminal nodes send a detection reply packet to the gateway node, the situation of sending the data packet at the same time can occur, and due to the transmission characteristics of the remote low-power-consumption network, when a plurality of terminal nodes send the data packet at the same time, the gateway node cannot receive the data packet sent by any terminal node in the terminal nodes sending the data packet at the same time, and further networking failure is caused. To solve the above problems, the present invention provides a long-distance low power consumption network system and a networking method that overcome the above problems or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present invention provides a networking method for a long-distance low-power network. For the convenience of understanding, the related concepts that may be involved in the present embodiment and the following embodiments are explained first:
a remote low-Power consumption network (L PWAN, L ow Power Wide area network) belongs to a novel networking technology, and comprises at least two parts, namely a terminal node and a gateway node, wherein the terminal node is used for complying with L PWAN protocol specification and realizing point-to-point remote transmission, and the gateway node is responsible for receiving uplink data of the terminal node and then gathering the data to separate backhaul connection to realize data collection and forwarding.
Data packet: data transmission of the gateway node and the terminal node takes a data packet as a carrier, the data packet comprises header information and content information, the header information comprises basic communication protocol information, all the data packets are transmitted based on the header information, the content information is a data part of the data packet and can be null, and the header information at least comprises the following contents:
the source mac address, i.e. the mac address of the data packet sender itself, cannot be null;
the target mac address is the mac address of the data packet receiver, when the gateway node is in non-directional transmission, the target mac address can be null, and the terminal node can only communicate with the gateway node, so the target mac address of the terminal node is the mac address of the gateway node;
the network ID, the unique identification of the network where the data packet sender is located, is confirmed by the gateway node, and since the gateway node and the network ID are both unique, when the network ID is determined, the mac address of the gateway node is also determined.
The gateway node and the terminal node mentioned above are the execution subjects that may be involved in this embodiment and the following embodiments. The networking method for the remote low-power-consumption network provided in this embodiment and the following embodiments is mainly implemented by interaction between a gateway node and a terminal node. It should be noted that, because there are usually a large number of terminal nodes in a long-distance low power consumption network that need to access the network, in order to facilitate management of the terminal nodes, based on the group characteristics of the terminal nodes, before the present embodiment and the subsequent embodiments are executed, the terminal nodes may be further allocated to different node groups, which is not specifically limited in this embodiment.
Before assigning end nodes to different node groups, several assignment metrics may be determined, including but not limited to: the user of the terminal node device, the region to which the terminal node belongs, and the type of the terminal node. The user to which the terminal node belongs refers to which user the terminal node belongs, the region to which the terminal node belongs refers to the region in which the terminal node is located, and the type of the terminal node refers to the usage classification of the terminal node. In addition, each terminal node may have the three allocation indicators.
Based on the above, the present embodiment and the following embodiments do not specifically limit the manner of allocating the terminal node to different node groups, and include but are not limited to: and allocating the terminal nodes with the same allocation index to the same node group based on the distance between the terminal nodes. When terminal nodes are allocated to different node groups based on the distances between the terminal nodes, terminal nodes whose separation distances are within a preset distance range may be allocated to the same node group. Meanwhile, terminal nodes within the same device group may have the same allocation index.
Based on the above, the present embodiment provides a network access method for a long-distance low-power consumption network, where the method is applied to a gateway node, and referring to fig. 1, the method includes: 101. determining a network ID, and sending a detection packet after determining the network ID so that a terminal node which is not accessed to the network randomly delays for a certain time and then sends a detection reply packet; 102. and receiving the detection reply packet, and sending an access packet containing the network ID to the terminal node which does not access the network, so that the terminal node which does not access the network accesses the network according to the network ID and sends the network reply packet.
It should be noted that the network ID is key data when each gateway node performs networking, and since all the terminal nodes in the embodiment of the present invention can only communicate with the gateway node, if the networking is not distinguished, when a data packet sent by the terminal node is received by the gateway node, the gateway node cannot know whether the data packet is really intended to be transmitted in its own networking. Therefore, in the embodiment of the present invention, when networking is performed, the gateway node needs to determine the network ID first, and the network IDs determined by different gateway nodes are different.
After the gateway node confirms the network ID, the gateway node sends a probe packet. A probe packet is a data packet that is transmitted undirectly within the network transmission range of the gateway node, i.e. all terminal nodes can receive as long as they are within the network transmission range of the gateway node. In the probe packet, the source mac address is the mac address of the gateway node itself, and the destination mac address, the network ID, and the content information are all empty, and are hereinafter referred to as the gateway mac address.
In addition, the random delay is an important process of the networking method according to the embodiment of the present invention, because the probe packet belongs to a data packet transmitted in a non-directional manner, the gateway node may receive probe reply packets sent by a plurality of terminal nodes at the same time, and according to the characteristics of the wireless network, if a plurality of terminal nodes send data packets at the same time, the gateway cannot receive all the data packets sent at the same time. Therefore, in order to avoid the collision of the detection reply packet of the terminal node, the terminal node adopts a random delay scheme when sending the reply packet, that is, when the terminal node receives the detection packet and judges that the detection reply packet is sent, the terminal node randomly delays for a certain time and sends the detection reply packet to the gateway node. After verification, if the random numbers are taken uniformly, at least within 200 terminal nodes will not have the condition of transmission collision.
The source mac address in the detection reply packet of the detection reply packet is the mac address of the terminal node, the target mac address is the gateway mac address, and the network ID and the content information are null.
The gateway node knows that a detection reply packet is received according to the fact that the network ID and the content information in the received data packet are null, after the detection reply packet is received, the gateway node can know that a terminal node which does not access the network still exists in the current network range, the mac address of the terminal node which does not access the network is known according to the source mac address in the detection reply packet, then an access packet containing the network ID is sent to the terminal node which does not access the network, the access packet enables the terminal node which does not access the network to access the network according to the network ID and sends the access reply packet, the source mac address in the access packet is the mac address of the gateway node, the target mac address is the mac address of the terminal node, the network ID is the network ID set by the gateway node, and the content information is null. Obviously, the network access packet is a data packet sent point to point, and only the terminal node with the correct target mac address can reply, so that the conflict that a plurality of terminal nodes send data packets at the same time does not exist.
On the basis of the above embodiment, step 102 further includes:
acquiring that the terminal node is a normal terminal node according to a received network access reply packet sent by the terminal node;
sending heartbeat packets to the normal terminal nodes at intervals so that the normal terminal nodes send heartbeat reply packets;
and acquiring that the normal terminal node is still normal according to the received heartbeat reply packet.
It should be noted that the gateway node may learn that the received network access reply packet is received according to that the network ID in the received data packet is not null and the content information is null, and when the network access reply packet is received, may learn that the terminal node is currently accessed to the network, and regards the terminal node as a normal node.
In this embodiment, it is necessary to perform round-robin to the terminal nodes accessing the network at intervals to determine whether to access the network, so-called round-robin is to sequentially send a data packet to all the terminal nodes accessing the network, and according to the content of the replied data packet, it can be known whether to keep normal. The data packet sent when the data packet is still normal is called a heartbeat packet, and the difference between the heartbeat packet and the network access packet is that the content information in the heartbeat packet is not null. Obviously, the heartbeat packet is also a data packet sent directionally, and the problem that the terminal node sends the data packet to generate collision can not occur.
And the gateway node learns that the heartbeat reply packet is received according to the condition that the network ID and the content information in the received data packet are not null. And acquiring that the state of the terminal node is still normal according to the source mac address in the network access reply packet.
On the basis of the above embodiments, step 102 further includes:
acquiring that the terminal node is an abnormal terminal node according to the fact that the network access reply packet sent by the terminal node is not received;
sending heartbeat packets to the abnormal terminal nodes at intervals so that the abnormal normal terminal nodes send heartbeat reply packets;
acquiring that the abnormal terminal node is accessed to the network and converted into a normal terminal node according to the received heartbeat reply packet; or
Sending a network packet to the abnormal terminal node according to the condition that the heartbeat reply packet is not received, so that the abnormal terminal node sends a network access reply packet;
and acquiring that the abnormal terminal node is accessed to the network and converted into a normal terminal node according to the received network access reply packet.
It should be noted that, if the gateway node does not receive the network entry reply packet, it determines that the state of the terminal node is abnormal, and records the mac address of the terminal node with the abnormal state. And at intervals, the gateway node also sends a heartbeat packet to the terminal node with the abnormal state so as to acquire whether the state of the terminal node is converted into normal.
And the gateway node learns that the heartbeat reply packet is received according to the condition that the network ID and the content information in the received data packet are not null. And acquiring that the terminal node is accessed according to the source mac address in the network access reply packet, namely converting the abnormal state into the normal state.
If the gateway node does not receive the heartbeat reply packet, sending a network packet to an abnormal terminal node so that the abnormal terminal node sends an access network reply packet;
and acquiring that the abnormal terminal node is accessed to the network and converted into a normal terminal node according to the received network access reply packet, and acquiring that the gateway node is still in an abnormal state if the gateway node does not receive the network access reply packet subsequently.
Based on the content of the embodiment corresponding to fig. 1, an embodiment of the present invention provides a network access method for a long-distance low-power consumption network, where the method is applied to a terminal node, and refers to fig. 2, where the method includes:
201. receiving a detection data packet, judging whether the gateway is not accessed to the network according to the detection data packet, and sending a detection reply packet to a gateway node after randomly delaying for a certain time so that the gateway node sends an access packet containing the network ID;
202. and receiving the network access packet, accessing the network according to the network ID and sending the network reply packet.
It should be noted that, the terminal node learns that a probe packet is received according to that the target mac address, the network ID, and the content information are all empty, and then the terminal node compares the gateway mac address included in the probe packet with the target mac address stored by the terminal node itself, if the gateway mac address and the target mac address are the same, the terminal node does not send a probe reply packet to the gateway node, and if the gateway mac address and the target mac address are different, the terminal node does not add to the network of the gateway node before the terminal node, and sends the probe reply packet to the gateway node after a certain time is randomly delayed, where a source mac address in the probe reply packet is the mac address of the terminal node itself, the target mac address is the gateway mac address, and the network ID and the content information are empty.
The gateway node can directionally send the network access packet after receiving the detection reply packet, the terminal node knows that the network access packet is received according to the fact that the network ID in the received data packet is not empty and the content information is empty, the terminal node obtains that the network ID of the network where the gateway node is located has network access qualification after receiving the network access packet, the terminal node sends the network access reply packet to the gateway node, the source mac information in the network access reply packet is the mac address of the terminal node, the target mac information is the gateway mac address, the network ID is the network ID set by the gateway node, and meanwhile the content information continues to be empty.
Because there may be terminal nodes and gateway nodes arranged by different companies in an area, and a long-distance low-power-consumption network of a certain company may only want to join with a terminal node matched with its own gateway node, therefore, it is not wise to send a probe reply packet only according to the fact that the gateway mac address is not consistent with the target mac address stored by the terminal node itself, in an optional embodiment, a certain byte of specific content is set in the mac address to represent the company where the terminal node is located, the function of the terminal node itself, or other unique attribute information, when the gateway mac address is different from the target mac address stored by the terminal node itself, the terminal node continues to compare the mac address of the terminal node itself with the specific byte of the gateway mac address, if consistent, it is determined that the terminal node and the gateway node belong to the same class, then the terminal node sends the probe reply packet to the gateway node, if inconsistent, the terminal node and the gateway node belong to different classes, and the terminal node does not send a detection reply packet to the gateway node. The source mac address in the detection reply packet is the mac address of the terminal node, the target mac address is the gateway mac address, and the network ID and the content information are null.
On the basis of the above embodiments, the method for randomly delaying includes:
after receiving the probe packet, the terminal node takes a random number a in the range of [0-99], and then sends a probe reply packet in a × 10 ms.
On the basis of the above embodiment, step 202 further includes:
and receiving a heartbeat packet, and sending a heartbeat reply packet to a gateway node according to the heartbeat packet.
It should be noted that, according to that the content information in the received data packet is not empty, the terminal node learns that the data packet is a heartbeat packet, and sends a heartbeat reply packet to the gateway node, where a source mac address in the heartbeat reply packet is a mac address of the terminal node, a target mac address is a gateway mac address, the network ID is a network ID determined by the gateway node, and the content information is content information consistent with the content information in the received heartbeat packet.
Based on the content of the embodiment corresponding to fig. 1 or fig. 2, an embodiment of the present invention provides a network access method for a long-distance low-power consumption network, where the method mainly relates to a gateway node and a terminal node. And the method is realized through interaction between the two, for convenience of description, a gateway node is taken as an example to describe the process of the method, and with reference to fig. 3, the method includes:
301. the gateway node determines a network ID and sends a detection packet after determining the network ID;
302. the terminal node receives the detection packet, judges according to the detection data packet that the network is not accessed, and sends a detection reply packet to the gateway node after randomly delaying for a certain time;
303. the gateway node receives the detection reply packet and sends an access network packet containing the network ID to the terminal node;
304. the terminal node receives the network packet, accesses the network according to the network ID and sends an access reply packet;
305. the gateway node receives the network access reply packet and learns that the terminal node is a normal terminal node;
306. the gateway node sends heartbeat packets to the terminal node at intervals;
307. the terminal node receives the heartbeat packet and sends a heartbeat reply packet to the gateway node;
308. and the gateway node receives the heartbeat reply packet to obtain the state that the terminal node keeps network access.
301, the gateway node determines the network ID and sends the probe packet after determining the network ID.
The gateway nodes confirm network IDs, the network IDs are key data when each gateway node is networked, and the network IDs determined by different gateway nodes are different. After the gateway node confirms the network ID, the gateway node sends a probe packet. A probe packet is a data packet that is transmitted undirectly within the network transmission range of the gateway node, i.e. all terminal nodes can receive as long as they are within the network transmission range of the gateway node. In the probe packet, the source mac address is the mac address of the gateway node itself, and the target mac address, the network ID and the content information are all null, and are hereinafter referred to as the gateway mac address.
And 302, the terminal node receives the detection packet, judges whether the network is accessed according to the detection data packet, and sends a detection reply packet to the gateway node after a certain time of random delay.
When a terminal node receives a detection packet, the terminal node learns that the received detection packet is empty according to the fact that a target mac address, a network ID and content information are all empty, then the terminal node compares a gateway mac address contained in the detection packet with a target mac address stored by the terminal node, if the gateway mac address contained in the detection packet is the same as the target mac address, the terminal node does not send a detection reply packet to the gateway node, if the gateway mac address contained in the detection packet is different from the target mac address stored by the terminal node, the terminal node does not add a network of the gateway node before the detection packet is added, the terminal node sends the detection reply packet to the gateway node, a source mac address in the detection reply packet is the mac address of the terminal node, the target mac address is the gateway mac address.
303, the gateway node receives the probe reply packet, and sends an access packet including the network ID to the terminal node.
The gateway node learns that the received data packet is the detection reply packet according to the fact that the network ID and the content information in the received data packet are null, learns the mac address of the terminal node according to the source mac address of the detection reply packet, and then sends the mac address into the network packet. Obviously, the network access packet is a data packet sent in a directional manner, a source mac address in the network access packet is a mac address of the gateway node, a target mac address is a mac address of the terminal node, the network ID is a network ID set by the gateway node, and the content information is null.
Wherein 304, the terminal node receives the network packet, accesses the network according to the network ID and sends the network reply packet.
The terminal node learns that the received data packet is the network access packet according to the fact that the network ID in the received data packet is not empty and the content information is empty, after the network access packet is received, the network ID of the network where the gateway node is located is acquired, the terminal node has network access qualification, the terminal node sends the network access reply packet to the gateway node, the source mac information in the network access reply packet is the mac address of the terminal node, the target mac information is the gateway mac address, the network ID is the network ID set by the gateway node, and meanwhile the content information continues to be empty.
305, the gateway node receives the network access reply packet, and learns that the terminal node is a normal terminal node.
The gateway node learns that the received data packet is an access reply packet according to the fact that the network ID in the received data packet is not empty and the content information is empty, learns that the terminal node is in an access state and is in a normal state by extracting source mac information in the access reply packet, and records the mac address of the terminal node in the normal state; if the gateway node does not receive the network access reply packet, judging that the state of the terminal node is abnormal, and recording the mac address of the terminal node with the abnormal state.
And 306, sending a heartbeat packet to the terminal node at a certain time interval.
And at regular intervals, the gateway node sends heartbeat packets to all terminal nodes in the network, and the difference between the heart state packet and the network access packet is that the content information in the heartbeat packet is not empty. For a terminal node with a normal state, it is to know whether the state of the terminal node is still normal, and for a terminal node with an abnormal state, it is to know whether the state of the terminal node is converted to normal. Obviously, the heartbeat packet is also a data packet sent directionally, and the problem that the terminal node sends the data packet to generate collision can not occur.
307, the terminal node receives the heartbeat packet and sends a heartbeat reply packet to the gateway node.
The terminal node learns that the data packet is a heartbeat packet according to the fact that content information in the received data packet is not empty, and sends a heartbeat reply packet to the gateway node, wherein a source mac address in the heartbeat reply packet is a mac address of the terminal node, a target mac address is a gateway mac address, a network ID is a network ID determined by the gateway node, and the content information is content information consistent with the content information in the received heartbeat packet.
308. And the gateway node receives the heartbeat reply packet to obtain the state that the terminal node keeps network access.
And the gateway node learns that the heartbeat reply packet is received according to the condition that the network ID and the content information in the received data packet are not null. And acquiring that the state of the terminal node is still normal according to the source mac address in the network access reply packet.
And for the terminal node in the abnormal state, if the gateway node does not receive the heartbeat reply packet, continuing to send the network access packet to the terminal node, if the gateway node subsequently receives the network access reply packet, knowing that the gateway node is normal, and if the gateway node subsequently does not receive the network access reply packet, knowing that the gateway node is still in the abnormal state.
According to the networking method of the long-distance low-power-consumption network provided by the embodiment corresponding to fig. 1, fig. 2 or fig. 3, an embodiment of the present invention provides a gateway node, which is configured to execute the networking method provided by the embodiment corresponding to fig. 1, and may be configured to execute part or all of the functions of the gateway node in the network access method provided by the embodiment corresponding to fig. 3. Referring to fig. 4, the gateway node comprises:
a probe packet sending module 401, configured to determine a network ID, and send a probe packet after determining the network ID, so that a terminal node that does not access the network randomly delays for a certain time and then sends a probe reply packet;
a network access packet sending module 402, configured to receive the probe reply packet, and send a network access packet including the network ID to the non-network-accessed terminal node, so that the non-network-accessed terminal node accesses the network according to the network ID and sends the network access packet to the network reply packet.
In an optional embodiment, the gateway node further comprises:
the node state first judgment module is used for acquiring that the terminal node is a normal terminal node according to the received network access reply packet sent by the terminal node;
a heartbeat packet sending module, configured to send a heartbeat packet to the normal terminal node at a certain interval, so that the normal terminal node sends a heartbeat reply packet;
and the node state second judging module is used for acquiring that the normal terminal node is still normal according to the received heartbeat reply packet.
The gateway device provided in the embodiment of the present invention sends a detection packet after determining a network ID, and sends a network packet to a terminal node that sent the detection reply packet after receiving the detection reply packet, so that the terminal node accesses the network, and the gateway device sends a heartbeat packet to the terminal node that has previously accessed the network at a certain time interval.
According to the networking method of the long-distance low-power-consumption network provided by the embodiment corresponding to fig. 1, fig. 2 or fig. 3, an embodiment of the present invention provides a terminal node, where the terminal node is configured to execute the networking method provided by the embodiment corresponding to fig. 2, and may be configured to execute part or all of the functions of the terminal node in the network access method provided by the embodiment corresponding to fig. 3. Referring to fig. 5, the terminal node includes:
501. the detection reply packet sending module is used for receiving a detection data packet, judging whether the network is not accessed according to the detection data packet, and sending a detection reply packet to a gateway node after a certain time of random delay so as to enable the gateway node to send an access packet containing the network ID;
502. and the network access reply packet sending module is used for receiving the network access packet, accessing the network according to the network ID and sending the network access reply packet.
In an optional embodiment, the terminal node further comprises:
and the heartbeat reply packet sending module is used for receiving the heartbeat packet and sending the heartbeat reply packet to the gateway node according to the heartbeat packet.
The terminal node provided by the embodiment of the invention judges whether the network is accessed or not after receiving the detection data packet, if not, the terminal node sends a detection reply packet to the gateway node, then receives the network access packet sent by the gateway node, accesses the network and sends the network reply packet, and if the heartbeat packet sent by the gateway node is received, the terminal node sends the heartbeat reply packet to the gateway node within a certain time interval.
Finally, the method of the present application is only a preferred embodiment and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A network access method of a long-distance low-power-consumption network is applied to a gateway node, and is characterized in that the network access method comprises the following steps:
determining a network ID, and sending a detection packet after determining the network ID so as to enable a terminal node which is not connected to the network to randomly delay for a certain time and then send a detection reply packet, wherein a source mac address in the detection packet is a mac address of a gateway node, and a target mac address, the network ID and content information are all empty; the source mac address in the detection reply packet is the mac address of the terminal node, the target mac address is the gateway mac address, and the network ID and the content information are null;
receiving the detection reply packet, knowing that the detection reply packet is received according to the fact that the network ID and the content information in the received data packet are null, and sending an access packet containing the network ID to the non-accessed terminal node, so that the non-accessed terminal node accesses the network according to the network ID and sends an access reply packet; the source mac address in the network access packet is the mac address of the gateway node, the target mac address is the mac address of the terminal node, the network ID is the network ID, and the content information is null; and the source mac address in the network access reply packet is the mac address of the terminal node, the target mac address is the mac address of the gateway node, the network ID is the network ID, and the content information is null.
2. A network entry method for a long-range low power consumption network according to claim 1, further comprising:
acquiring that the received network access reply packet is received according to the fact that the network ID in the received data packet is not empty and the content information is empty; acquiring that the terminal node is a normal terminal node according to a received network access reply packet sent by the terminal node;
sending heartbeat packets to the normal terminal nodes at intervals so that the normal terminal nodes send heartbeat reply packets;
acquiring that a heartbeat reply packet is received according to the fact that the network ID and the content information in the received data packet are not null; and acquiring that the normal terminal node is still normal according to the received heartbeat reply packet.
3. A network entry method for a long-range low power consumption network according to claim 1, further comprising:
acquiring that the terminal node is an abnormal terminal node according to the fact that the network access reply packet sent by the terminal node is not received;
sending heartbeat packets to the abnormal terminal nodes at intervals so that the abnormal normal terminal nodes send heartbeat reply packets;
acquiring that the abnormal terminal node is accessed to the network and converted into a normal terminal node according to the received heartbeat reply packet; or
Sending a network packet to the abnormal terminal node according to the condition that the heartbeat reply packet is not received, so that the abnormal terminal node sends a network access reply packet;
and acquiring that the abnormal terminal node is accessed to the network and converted into a normal terminal node according to the received network access reply packet.
4. A network access method of a long-distance low-power-consumption network is applied to a terminal node, and is characterized in that the network access method comprises the following steps:
receiving a detection data packet, judging whether the gateway is not accessed to the network according to the detection data packet, and sending a detection reply packet to a gateway node after randomly delaying for a certain time so that the gateway node sends an access packet containing the network ID; the source mac address in the detection packet is the mac address of the gateway node, and the target mac address, the network ID and the content information are all null; the source mac address in the detection reply packet is the mac address of the terminal node, the target mac address is the gateway mac address, and the network ID and the content information are null;
receiving the network access packet, accessing the network according to the network ID and sending a network access reply packet; the source mac address in the network access packet is the mac address of the gateway node, the target mac address is the mac address of the terminal node, the network ID is the network ID, and the content information is null; and the source mac address in the network access reply packet is the mac address of the terminal node, the target mac address is the mac address of the gateway node, the network ID is the network ID, and the content information is null.
5. The network entry method for a long-distance low power consumption network according to claim 4, further comprising:
and receiving a heartbeat packet, and sending a heartbeat reply packet to a gateway node according to the heartbeat packet.
6. A gateway node, comprising:
the detection packet sending module is used for determining a network ID and sending a detection packet after the network ID is determined so as to enable a terminal node which does not access the network to randomly delay for a certain time and then send a detection reply packet, wherein a source mac address in the detection packet is a mac address of a gateway node, and a target mac address, the network ID and content information are all empty; the source mac address in the detection reply packet is the mac address of the terminal node, the target mac address is the gateway mac address, and the network ID and the content information are null;
the network access packet sending module is used for receiving the detection reply packet, knowing that the detection reply packet is received according to the fact that the network ID and the content information in the received data packet are null, and sending the network access packet containing the network ID to the terminal node which does not access the network so as to enable the terminal node which does not access the network to access the network according to the network ID and send the network access reply packet; the source mac address in the network access packet is the mac address of the gateway node, the target mac address is the mac address of the terminal node, the network ID is the network ID, and the content information is null; and the source mac address in the network access reply packet is the mac address of the terminal node, the target mac address is the mac address of the gateway node, the network ID is the network ID, and the content information is null.
7. The gateway node of claim 6, further comprising:
the first node state judging module is used for acquiring that the received data packet is an access reply packet according to the fact that the network ID in the received data packet is not empty and the content information is empty; acquiring that the terminal node is a normal terminal node according to a received network access reply packet sent by the terminal node;
a heartbeat packet sending module, configured to send a heartbeat packet to the normal terminal node at a certain interval, so that the normal terminal node sends a heartbeat reply packet;
the node state second judging module is used for acquiring that the received data packet is a heartbeat reply packet according to the condition that the network ID and the content information in the received data packet are not null; and acquiring that the normal terminal node is still normal according to the received heartbeat reply packet.
8. A terminal node, comprising:
the detection reply packet sending module is used for receiving a detection data packet, judging whether the gateway is not accessed to the network according to the detection data packet, and sending the detection reply packet to the gateway node after randomly delaying for a certain time so as to enable the gateway node to send an access packet containing a network ID; the source mac address in the detection packet is the mac address of the gateway node, and the mac address, the network ID and the content information are all null; the source mac address in the detection reply packet is the mac address of the terminal node, the target mac address is the gateway mac address, and the network ID and the content information are null;
the network access reply packet sending module is used for receiving the network access packet, accessing the network according to the network ID and sending the network access reply packet; the source mac address in the network access packet is the mac address of the gateway node, the target mac address is the mac address of the terminal node, the network ID is the network ID, and the content information is null; and the source mac address in the network access reply packet is the mac address of the terminal node, the target mac address is the mac address of the gateway node, the network ID is the network ID, and the content information is null.
9. The end node of claim 8, further comprising,
and the heartbeat reply packet sending module is used for receiving the heartbeat packet and sending the heartbeat reply packet to the gateway node according to the heartbeat packet.
10. A long-distance low-power network system, comprising:
the gateway node is used for determining a network ID and sending a detection packet after determining the network ID so as to ensure that a terminal node which does not access the network sends a detection reply packet after randomly delaying for a certain time; the source mac address in the detection packet is the mac address of the gateway node, and the target mac address, the network ID and the content information are all null; the source mac address in the detection reply packet is the mac address of the terminal node, the target mac address is the gateway mac address, and the network ID and the content information are null;
receiving the detection reply packet, knowing that the detection reply packet is received according to the fact that the network ID and the content information in the received data packet are null, and sending an access packet containing the network ID to the non-accessed terminal node, so that the non-accessed terminal node accesses the network according to the network ID and sends an access reply packet; (ii) a The source mac address in the network access packet is the mac address of the gateway node, the target mac address is the mac address of the terminal node, the network ID is the network ID, and the content information is null; the source mac address in the network access reply packet is the mac address of the terminal node, the target mac address is the mac address of the gateway node, the network ID is the network ID, and the content information is null;
the terminal node is used for receiving the detection data packet, judging whether the network is accessed according to the detection data packet, and sending a detection reply packet to the gateway node after a certain time of random delay so as to enable the gateway node to send the network access packet containing the network ID;
and receiving the network access packet, accessing the network according to the network ID and sending the network reply packet.
CN201710527151.6A 2017-06-30 2017-06-30 Remote low-power-consumption network system and networking method Active CN107257563B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710527151.6A CN107257563B (en) 2017-06-30 2017-06-30 Remote low-power-consumption network system and networking method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710527151.6A CN107257563B (en) 2017-06-30 2017-06-30 Remote low-power-consumption network system and networking method

Publications (2)

Publication Number Publication Date
CN107257563A CN107257563A (en) 2017-10-17
CN107257563B true CN107257563B (en) 2020-08-07

Family

ID=60024818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710527151.6A Active CN107257563B (en) 2017-06-30 2017-06-30 Remote low-power-consumption network system and networking method

Country Status (1)

Country Link
CN (1) CN107257563B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151839B (en) * 2018-09-05 2022-01-25 广东省智能机器人研究院 Network planning method of LPWA network
CN113133127B (en) * 2021-04-16 2023-12-12 成都易明半导体有限公司 Wireless ad hoc network link quick network access method based on random sniffing

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101292547A (en) * 2005-10-13 2008-10-22 摩托罗拉公司 Method and apparatus for synchronizing a node within an ad-hoc communication system
CN102695212A (en) * 2012-06-06 2012-09-26 上海乾视通信技术有限公司 Method for balancing loads of ad-hoc network gateways
CN103888945A (en) * 2012-12-20 2014-06-25 中国移动通信集团公司 WLAN access method, system and multi-mode gateway
CN104469764A (en) * 2013-09-16 2015-03-25 中兴通讯股份有限公司 WLAN (Wireless Local Area Network) networking method and system
CN106162844A (en) * 2016-06-03 2016-11-23 西安电子科技大学 Implementation method based on the MAC protocol for wireless sensor networks of LoRa

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9814085B2 (en) * 2011-10-28 2017-11-07 Qualcomm, Incorporated Systems and methods for fast initial network link setup
TWI620449B (en) * 2012-01-11 2018-04-01 內數位專利控股公司 Method and apparatus for accelerated link setup

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101292547A (en) * 2005-10-13 2008-10-22 摩托罗拉公司 Method and apparatus for synchronizing a node within an ad-hoc communication system
CN102695212A (en) * 2012-06-06 2012-09-26 上海乾视通信技术有限公司 Method for balancing loads of ad-hoc network gateways
CN103888945A (en) * 2012-12-20 2014-06-25 中国移动通信集团公司 WLAN access method, system and multi-mode gateway
CN104469764A (en) * 2013-09-16 2015-03-25 中兴通讯股份有限公司 WLAN (Wireless Local Area Network) networking method and system
CN106162844A (en) * 2016-06-03 2016-11-23 西安电子科技大学 Implementation method based on the MAC protocol for wireless sensor networks of LoRa

Also Published As

Publication number Publication date
CN107257563A (en) 2017-10-17

Similar Documents

Publication Publication Date Title
US11470582B2 (en) User device, and method for inter-user-device sending and receiving of positioning signal
US10278099B2 (en) Electronic device and operating method thereof
CN106170969B (en) Context management
CN104247551B (en) For the associated system and method for Basic Service Set
CN111385828B (en) Method, terminal and system for receiving and transmitting data in wireless local area network and network access equipment
KR101030353B1 (en) Apparatus and method for navigating the path to mobile terminal in nearby communication
CN103430621A (en) Method and system of providing internet protocol (IP) data communication in a NFC peer to peer communication environment
US20070081485A1 (en) Method,station and computer programme for accessing radio resources in and ad-hoc radio communication system
CN108432311A (en) A kind of resource request method, equipment, network side node and system
CN104683994A (en) Wireless network configuration method and wireless network devices
US9351230B2 (en) Device access
CN110113781B (en) Method for reporting buffer status report, method for allocating resources, terminal and network equipment
CN107257563B (en) Remote low-power-consumption network system and networking method
CN102684966B (en) Equipment method of network entry, Apparatus and system
CN104009937A (en) Enhanced-transmission-selection configuration information transmission method and device
CN106851685B (en) Method and system for controlling bandwidth of mobile terminal
CN111262787B (en) Data transmission method and electronic equipment
CN113891493A (en) AID (AID assignment) method and related device for multi-link equipment
CN110224803B (en) LoRa communication method for realizing beacon autonomous discovery
CN102946634A (en) Communicator and data communication method
WO2019140602A1 (en) Data transmission method in internet of vehicles and terminal
CN107637047B (en) Aggregating targets and exploring queries
CN113364893B (en) Data transmission method, device and system
CN112640495B (en) Configuration management method for multicast service and related product
CN117177330A (en) Network management method, device and storage medium

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