CN107612724B - Network node adding method and storage medium - Google Patents

Network node adding method and storage medium Download PDF

Info

Publication number
CN107612724B
CN107612724B CN201710803472.4A CN201710803472A CN107612724B CN 107612724 B CN107612724 B CN 107612724B CN 201710803472 A CN201710803472 A CN 201710803472A CN 107612724 B CN107612724 B CN 107612724B
Authority
CN
China
Prior art keywords
node
transit node
transit
internet
things
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
CN201710803472.4A
Other languages
Chinese (zh)
Other versions
CN107612724A (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.)
Shenzhen Shenglu IoT Communication Technology Co Ltd
Original Assignee
Shenzhen Shenglu IoT Communication 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 Shenzhen Shenglu IoT Communication Technology Co Ltd filed Critical Shenzhen Shenglu IoT Communication Technology Co Ltd
Priority to CN201710803472.4A priority Critical patent/CN107612724B/en
Publication of CN107612724A publication Critical patent/CN107612724A/en
Application granted granted Critical
Publication of CN107612724B publication Critical patent/CN107612724B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a network node adding method and a storage medium, comprising the following steps: the gateway of the Internet of things receives a network access request forwarded by at least one transfer node of an edge network, the network access request is broadcasted by a third transfer node requesting to access the edge network, and the network access request comprises equipment identification and position information of the third transfer node; the gateway of the Internet of things determines that a first transfer node and a second transfer node in the edge network are adjacent nodes of a third transfer node according to the position information; and the gateway of the Internet of things updates the network topology of the edge network according to the determined adjacent node and the third transfer node. The embodiment of the application improves the stability and the real-time performance of updating the network architecture of the Internet of things.

Description

Network node adding method and storage medium
Technical Field
The present application relates to the field of communications, and in particular, to a network node adding method and a storage medium.
Background
Telecommunication services have been rapidly developing, gradually approaching saturation for interpersonal communication services, where is the opportunity for telecommunication service development? Operators are urgently required to seek new development opportunities, and the development of the service of the internet of things is a transformation key point. It is generally considered that the traditional telecommunication service is mainly a person-to-person service, and the future telecommunication industry is to be expanded to people-to-things, things-to-things, and hope to obtain further development power by expanding the scope of the telecommunication service, which is the most basic starting point of the internet of things.
In the existing solution of internet of things, data are mainly acquired through an internet of things terminal, and an internet of things platform acquires the data and provides the data for various specific services and applications, such as: vehicle management, elevator management, retail management, logistics management, automated services, and the like. On an application platform of the Internet of things, the system also relates to functions of management, charging, safety and the like of the terminal. The bearer channel for data transfer may be a wireless network, such as: GPRS, EDGE, CDMA 1X, even short messages, may also be wired networks.
Disclosure of Invention
The application provides a network node adding method and a storage medium, which can improve the stability and reliability of data transmission of the Internet of things.
In a first aspect, an embodiment of the present application provides a network node adding method, which is applied to the internet of things, where the internet of things includes multiple internet of things devices, multiple transfer nodes, an internet of things gateway, and a server, where the multiple transfer nodes include a first transfer node and a second transfer node, an edge network is formed by the multiple transfer nodes, the edge network connects the internet of things devices with the internet of things gateway, the internet of things gateway connects the server, and the method includes:
the gateway of the internet of things receives a network access request forwarded by at least one transit node of the edge network, wherein the network access request is broadcasted by a third transit node requesting to access the edge network, and the network access request comprises equipment identification and position information of the third transit node;
the gateway of the internet of things determines that the first transfer node and the second transfer node in the edge network are adjacent nodes of the third transfer node according to the position information;
and the gateway of the Internet of things updates the network topology of the edge network according to the determined adjacent node and the third transfer node.
It can be seen that, in the embodiment of the present application, the gateway of the internet of things first receives a network access request forwarded by at least one transit node from the edge network, where the network access request is broadcast by a third transit node requesting to access the edge network, and the network access request includes a device identifier and location information of the third transit node, then, according to the location information, it is determined that the first transit node and the second transit node in the edge network are neighboring nodes of the third transit node, and finally, the network topology of the edge network is updated according to the determined neighboring nodes and the third transit node. It can be seen that, because the transit nodes in the internet of things form an edge network, the networking range governed by a single internet of things gateway is expanded, the transit nodes to be networked may not be in direct communication with the internet of things gateway, and the new broadcast messages of the transit nodes are intelligently monitored through the transit nodes in the edge network, on one hand, the broadcast messages of the new transit nodes can be rapidly forwarded to the internet of things gateway, and on the other hand, part of the transit nodes in the signal coverage range can both receive and forward the broadcast messages to the internet of things gateway, so that the success rate of forwarding the broadcast messages to the internet of things gateway is improved, and the stability and the real-time performance of updating the internet of things network architecture are improved.
In one possible design, the determining, by the gateway of the internet of things according to the location information, that the first transit node and the second transit node in the edge network are neighboring nodes of the third transit node includes:
the gateway of the internet of things determines the distance between each transfer node in the edge network and the third transfer node according to the position information;
the gateway of the internet of things detects that a first distance between the first transit node and the third transit node is smaller than a distance between a fourth transit node and the third transit node, and determines that the first transit node is an adjacent node of the third transit node, and the fourth transit node is any transit node except the first transit node in the edge network;
the gateway of the internet of things detects that a second distance between the second transit node and the third transit node is smaller than a distance between a fifth transit node and the third transit node, and determines that the second transit node is an adjacent node of the third transit node, and the fifth transit node is any transit node except the first transit node and the second transit node in the edge network.
In one possible design, the updating, by the gateway of the internet of things, the network topology of the edge network according to the determined neighboring node and the third transit node includes:
and when detecting that a transmission link of the edge network is in an idle state, the gateway of the internet of things adds the third transfer node in a prestored network topology of the edge network, updates the adjacent node of the first transfer node from the second transfer node to the third transfer node, and updates the adjacent node of the second transfer node from the first transfer node to the third transfer node.
In one possible design, after the internet of things gateway updates the network topology of the edge network according to the determined neighboring node and the third transit node, the method further includes:
and the gateway of the internet of things sends a node update message to the first transit node and the second transit node, wherein the node update message is used for indicating that the first transit node updates the adjacent node to be the third transit node and indicating that the second transit node updates the adjacent node to be the third transit node.
In one possible design, the edge network is a ring network, and the ring network includes at least one transit node directly communicating with the internet of things gateway.
In a possible design, the network access request is used to forward the network access request to the gateway of the internet of things when each transit node of the at least one transit node receives the network access request and determines that a distance between the transit node and the third transit node is smaller than the preset distance according to the location information.
As can be seen, in this example, when receiving the network access request of the third relay broadcast, the relay node can intelligently calculate the distance between the relay node and the third relay node, and only forward the network access request when the distance is smaller than the preset distance, so as to effectively control the number of network access requests forwarded to the gateway of the internet of things, and reduce the signaling overhead of the internet of things.
In a second aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program for electronic data exchange, where the computer program is applied to an internet of things gateway, the internet of things gateway is applied to the internet of things, the internet of things includes a plurality of internet of things devices, a plurality of transit nodes, the internet of things gateway and a server, the plurality of transit nodes include a first transit node and a second transit node, an edge network is formed by the plurality of transit nodes, the edge network connects the internet of things devices with the internet of things gateway, the internet of things gateway connects the server, where the computer program causes the internet of things gateway to perform the following operations:
receiving a network access request forwarded by at least one transit node of the edge network, the network access request being broadcast by a third transit node requesting access to the edge network, the network access request including a device identification and location information of the third transit node;
determining, according to the location information, that the first transit node and the second transit node in the edge network are adjacent nodes to the third transit node;
and updating the network topology of the edge network according to the determined adjacent node and the third transit node.
In one possible design, in the aspect that the first transit node and the second transit node in the edge network are determined to be neighboring nodes of the third transit node according to the location information, the computer program causes the gateway of the internet of things to specifically perform the following operations:
determining the distance between each transit node in the edge network and the third transit node according to the position information;
detecting that a first distance between the first transit node and the third transit node is smaller than a distance between a fourth transit node and the third transit node, and determining that the first transit node is an adjacent node of the third transit node, where the fourth transit node is any transit node except the first transit node in the edge network;
detecting that a second distance between the second transit node and the third transit node is smaller than a distance between a fifth transit node and the third transit node, and determining that the second transit node is an adjacent node of the third transit node, where the fifth transit node is any transit node in the edge network except for the first transit node and the second transit node.
In one possible design, in terms of the updating of the network topology of the edge network according to the determined neighboring node and the third transit node, the computer program causes the gateway of the internet of things to specifically perform the following operations:
when detecting that a transmission link of the edge network is in an idle state, adding the third transit node in a pre-stored network topology of the edge network, updating the neighboring node of the first transit node from the second transit node to the third transit node, and updating the neighboring node of the second transit node from the first transit node to the third transit node.
In one possible design, the computer program further causes the internet of things gateway to: after updating the network topology of the edge network according to the determined neighboring node and the third transit node, sending a node update message to the first transit node and the second transit node, where the node update message is used to indicate that the first transit node updates the neighboring node to be the third transit node, and to indicate that the second transit node updates the neighboring node to be the third transit node.
In one possible design, the edge network is a ring network, and the ring network includes at least one transit node directly communicating with the internet of things gateway.
In a third aspect, the present application provides a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps as described in any one of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the present application, the gateway of the internet of things first receives a network access request forwarded by at least one transit node from the edge network, where the network access request is broadcast by a third transit node requesting to access the edge network, and the network access request includes a device identifier and location information of the third transit node, then, according to the location information, it is determined that the first transit node and the second transit node in the edge network are neighboring nodes of the third transit node, and finally, the network topology of the edge network is updated according to the determined neighboring nodes and the third transit node. It can be seen that, because the transit nodes in the internet of things form an edge network, the networking range governed by a single internet of things gateway is expanded, the transit nodes to be networked may not be in direct communication with the internet of things gateway, and the new broadcast messages of the transit nodes are intelligently monitored through the transit nodes in the edge network, on one hand, the broadcast messages of the new transit nodes can be rapidly forwarded to the internet of things gateway, and on the other hand, part of the transit nodes in the signal coverage range can both receive and forward the broadcast messages to the internet of things gateway, so that the success rate of forwarding the broadcast messages to the internet of things gateway is improved, and the stability and the real-time performance of updating the internet of things network architecture are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a system architecture of an internet of things according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a network node adding method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another network node adding method according to an embodiment of the present application
Fig. 4 is a functional unit block diagram of a first transit node according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In the conventional design, the internet of things network architecture comprises an internet of things terminal, repeaters and an internet of things gateway, wherein the repeaters are connected with the internet of things terminals and connected with the internet of things gateway, each repeater needs to be connected with a plurality of internet of things devices for data forwarding, and the stability and the safety of the network architecture are not high enough when the output ports of the repeaters are directly connected with the internet of things gateway.
In view of the foregoing problems, an embodiment of the present application provides a network node adding method and a storage medium, where the method includes: the gateway of the Internet of things receives a network access request forwarded by at least one transfer node of an edge network, the network access request is broadcasted by a third transfer node requesting to access the edge network, and the network access request comprises equipment identification and position information of the third transfer node; the gateway of the Internet of things determines that a first transfer node and a second transfer node in the edge network are adjacent nodes of a third transfer node according to the position information; and the gateway of the Internet of things updates the network topology of the edge network according to the determined adjacent node and the third transfer node. It can be seen that, because the transit nodes in the internet of things form an edge network, the networking range governed by a single internet of things gateway is expanded, the transit nodes to be networked may not be in direct communication with the internet of things gateway, and the new broadcast messages of the transit nodes are intelligently monitored through the transit nodes in the edge network, on one hand, the broadcast messages of the new transit nodes can be rapidly forwarded to the internet of things gateway, and on the other hand, part of the transit nodes in the signal coverage range can both receive and forward the broadcast messages to the internet of things gateway, so that the success rate of forwarding the broadcast messages to the internet of things gateway is improved, and the stability and the real-time performance of updating the internet of things network architecture are improved.
The following is a detailed description of specific embodiments.
Referring to fig. 1, fig. 1 is a schematic diagram of a system architecture of an internet of things for transmitting report data of an internet of things device, where the internet of things system includes a plurality of internet of things devices, a plurality of transit nodes, an internet of things gateway, and a server, where the plurality of transit nodes include a first transit node and a second transit node, the plurality of transit nodes form an edge network, the edge network connects the internet of things devices and the internet of things gateway, and the internet of things gateway connects the server. The server can realize communication connection with the mobile terminal and various control devices through a mobile communication network, thereby processing various application requirements of a service level. In addition, the transit node according to the embodiments of the present application may include various computing devices having wireless communication functions or other processing devices connected to a wireless modem, and various forms of terminal devices (terminal devices), and the like. The following describes embodiments of the present application in detail.
Referring to fig. 2, fig. 2 is a schematic flow chart of a network node adding method provided in an embodiment of the present application, and is applied to the internet of things, where the internet of things includes a plurality of internet of things devices, a plurality of transfer nodes, an internet of things gateway, and a server, where the plurality of transfer nodes include a first transfer node and a second transfer node, the plurality of transfer nodes form an edge network, the edge network connects the internet of things devices and the internet of things gateway, and the internet of things gateway connects the server, as shown in the drawing, the method includes:
s201, the internet of things gateway receives a network access request forwarded by at least one transit node of the edge network, where the network access request is broadcast by a third transit node requesting to access the edge network, and the network access request includes a device identifier and location information of the third transit node.
The relay node may be referred to as a relay, and the like, and is not limited herein.
The network access request may be a predetermined message with a fixed format, and a frequency band for transmitting the network access request may also be set in advance, and the relay node may periodically scan the frequency band to determine whether the network access request is broadcasted by a new relay node.
The device identifier of the third transit node is used when the gateway of the internet of things updates the network topology of the edge network, and specifically, the device identifier may be added to the network node list.
S202, the gateway of the Internet of things determines that the first transit node and the second transit node in the edge network are adjacent nodes of the third transit node according to the position information.
The location information may be actual geographic location information or a simulated location in a pre-constructed geographic location model of the edge network, which is not limited herein.
The neighboring node refers to a next hop node or a previous hop node of the current transit node, and the node may specifically be a primary node or a standby node, which is not limited herein.
S203, the gateway of the Internet of things updates the network topology of the edge network according to the determined adjacent node and the third transfer node.
The network topology of the edge network includes a plurality of relay nodes of the network, a data transmission link formed by the plurality of relay nodes, and neighborhood information of each relay node, where the neighborhood information is adjacent node information.
For example, edge network a of the internet of things includes transit node 1, transit node 2, transit node 3, transit node 4, transit node 5, transit node 1 connects a plurality of internet of things terminals, this node is the node of going into the ring, transit node 4 directly links the communication with internet of things gateway, this node is the node of going out the ring, transit node 1 connects transit node 2, transit node 3 in transit node 2 connects, transit node 4 in transit node 3 connects, transit node 5 in transit node 4 connects, transit node 1 is connected to transit node 5, form the ring network, then this edge network a's network topology does: the data transmission link comprises a transfer node 1, a transfer node 2, a transfer node 3, a transfer node 4 and a transfer node 5, wherein the data transmission link comprises a link 1: relay node 1 → relay node 2 → relay node 3 → relay node 4, link 2: the relay node 1 → the relay node 5 → the relay node 4, the adjacent nodes of the relay node 1 are the relay node 5 and the relay node 2, the adjacent nodes of the relay node 2 are the relay node 1 and the relay node 3, the adjacent nodes of the relay node 3 are the relay node 2 and the relay node 4, the adjacent nodes of the relay node 4 are the relay node 3 and the relay node 5, and the adjacent nodes of the relay node 5 are the relay node 4 and the relay node 1.
It can be seen that, in the embodiment of the present application, the gateway of the internet of things first receives a network access request forwarded by at least one transit node from the edge network, where the network access request is broadcast by a third transit node requesting to access the edge network, and the network access request includes a device identifier and location information of the third transit node, then, according to the location information, it is determined that the first transit node and the second transit node in the edge network are neighboring nodes of the third transit node, and finally, the network topology of the edge network is updated according to the determined neighboring nodes and the third transit node. It can be seen that, because the transit nodes in the internet of things form an edge network, the networking range governed by a single internet of things gateway is expanded, the transit nodes to be networked may not be in direct communication with the internet of things gateway, and the new broadcast messages of the transit nodes are intelligently monitored through the transit nodes in the edge network, on one hand, the broadcast messages of the new transit nodes can be rapidly forwarded to the internet of things gateway, and on the other hand, part of the transit nodes in the signal coverage range can both receive and forward the broadcast messages to the internet of things gateway, so that the success rate of forwarding the broadcast messages to the internet of things gateway is improved, and the stability and the real-time performance of updating the internet of things network architecture are improved.
In one possible example, the determining, by the gateway of the internet of things according to the location information, that the first transit node and the second transit node in the edge network are neighboring nodes of the third transit node includes: the gateway of the internet of things determines the distance between each transfer node in the edge network and the third transfer node according to the position information; the gateway of the internet of things detects that a first distance between the first transit node and the third transit node is smaller than a distance between a fourth transit node and the third transit node, and determines that the first transit node is an adjacent node of the third transit node, and the fourth transit node is any transit node except the first transit node in the edge network; the gateway of the internet of things detects that a second distance between the second transit node and the third transit node is smaller than a distance between a fifth transit node and the third transit node, and determines that the second transit node is an adjacent node of the third transit node, and the fifth transit node is any transit node except the first transit node and the second transit node in the edge network.
Therefore, in this example, since the signal transmission quality between physically adjacent transfer nodes is often better, the adjacent nodes determined based on the location information are favorable for improving the stability of networking and data transmission.
In one possible example, the updating, by the internet of things gateway, the network topology of the edge network according to the determined neighboring node and the third transit node includes: and when detecting that a transmission link of the edge network is in an idle state, the gateway of the internet of things adds the third transfer node in a prestored network topology of the edge network, updates the adjacent node of the first transfer node from the second transfer node to the third transfer node, and updates the adjacent node of the second transfer node from the first transfer node to the third transfer node.
In fact, the gateway of the internet of things may set the third transit node as a primary next hop node of the second transit node, set the first transit node as a standby next hop node of the second transit node, and when the third transit node is interrupted, may switch to the first transit node to maintain effective communication connection. The stability of data transmission is improved.
Therefore, in this example, the internet of things gateway updates the networking structure in time through locally updating the network topology of the edge network, and does not need to update the network structure from top to bottom by higher-level equipment, so that the situation that data transmission is disordered due to untimely updating of the networking structure can be avoided, and the updating instantaneity of the networking structure can be improved.
In one possible example, after the internet of things gateway updates the network topology of the edge network according to the determined neighboring node and the third transit node, the method further includes: and the gateway of the internet of things sends a node update message to the first transit node and the second transit node, wherein the node update message is used for indicating that the first transit node updates the adjacent node to be the third transit node and indicating that the second transit node updates the adjacent node to be the third transit node.
Therefore, in this example, the gateway of the internet of things timely indicates the corresponding transfer node to update the neighborhood information through the update message, so as to ensure that the data transmission link is updated timely, avoid data transmission confusion, and be beneficial to improving the data transmission stability in the internet of things.
In one possible example, the edge network is a ring network, and the ring network includes at least one transit node directly communicating with the internet of things gateway.
In a possible example, the network access request is used to forward the network access request to the gateway of the internet of things when each transit node of the at least one transit node receives the network access request and determines that a distance between the transit node and the third transit node is smaller than the preset distance according to the location information.
The preset distance may be, for example, 10 meters, 20 meters, 50 meters, 100 meters, and the like, and may be flexibly set in combination with an actual networking requirement of the internet of things, which is not limited herein.
As can be seen, in this example, when receiving the network access request of the third relay broadcast, the relay node can intelligently calculate the distance between the relay node and the third relay node, and only forward the network access request when the distance is smaller than the preset distance, so as to effectively control the number of network access requests forwarded to the gateway of the internet of things, and reduce the signaling overhead of the internet of things.
Referring to fig. 3, fig. 3 is a schematic flow chart of another network node adding method provided in the embodiment of the present application, and is applied to the internet of things, where the internet of things includes a plurality of internet of things devices, a plurality of relay nodes, an internet of things gateway, and a server, the plurality of relay nodes include a first relay node and a second relay node, the plurality of relay nodes form an edge network, the edge network connects the internet of things devices and the internet of things gateway, and the internet of things gateway is connected to the server. As shown, the method includes:
s301, the internet of things gateway receives a network access request forwarded by at least one transit node of the edge network, where the network access request is broadcast by a third transit node requesting to access the edge network, and the network access request includes a device identifier and location information of the third transit node.
S302, the gateway of the Internet of things determines the distance between each transfer node in the edge network and the third transfer node according to the position information.
S303, the internet of things gateway detects that a first distance between the first transit node and the third transit node is smaller than a distance between a fourth transit node and the third transit node, and determines that the first transit node is an adjacent node to the third transit node, and the fourth transit node is any transit node except the first transit node in the edge network.
S304, the internet of things gateway detects that a second distance between the second transit node and the third transit node is smaller than a distance between a fifth transit node and the third transit node, and determines that the second transit node is an adjacent node of the third transit node, where the fifth transit node is any transit node in the edge network except for the first transit node and the second transit node.
And S305, when detecting that the transmission link of the edge network is in an idle state, the gateway of the Internet of things adds the third transit node in the pre-stored network topology of the edge network, updates the adjacent node of the first transit node from the second transit node to the third transit node, and updates the adjacent node of the second transit node from the first transit node to the third transit node.
S306, the internet of things gateway sends a node update message to the first transit node and the second transit node, where the node update message is used to indicate that the first transit node updates the neighboring node to be the third transit node, and is used to indicate that the second transit node updates the neighboring node to be the third transit node.
It can be seen that, in the embodiment of the present application, the gateway of the internet of things first receives a network access request forwarded by at least one transit node from the edge network, where the network access request is broadcast by a third transit node requesting to access the edge network, and the network access request includes a device identifier and location information of the third transit node, then, according to the location information, it is determined that the first transit node and the second transit node in the edge network are neighboring nodes of the third transit node, and finally, the network topology of the edge network is updated according to the determined neighboring nodes and the third transit node. It can be seen that, because the transit nodes in the internet of things form an edge network, the networking range governed by a single internet of things gateway is expanded, the transit nodes to be networked may not be in direct communication with the internet of things gateway, and the new broadcast messages of the transit nodes are intelligently monitored through the transit nodes in the edge network, on one hand, the broadcast messages of the new transit nodes can be rapidly forwarded to the internet of things gateway, and on the other hand, part of the transit nodes in the signal coverage range can both receive and forward the broadcast messages to the internet of things gateway, so that the success rate of forwarding the broadcast messages to the internet of things gateway is improved, and the stability and the real-time performance of updating the internet of things network architecture are improved.
In addition, because the signal transmission quality between physically adjacent transfer nodes is often better, the adjacent nodes determined based on the position information are beneficial to improving the stability of networking and data transmission.
In addition, the gateway of the internet of things updates the networking structure in time through the network topology of the local updating edge network, and does not need higher-layer equipment to update the network structure from top to bottom, so that the situation that the data transmission is disordered due to untimely updating of the networking structure can be avoided, and the updating instantaneity of the networking structure can be improved.
In addition, the internet of things gateway timely indicates the corresponding transfer node to update the neighborhood information through the update message so as to ensure that the data transmission link is updated timely, avoid disordered data transmission and be beneficial to improving the stability of data transmission in the internet of things.
Consistent with the embodiments described in fig. 2 and fig. 3, the embodiments of the present application further provide a computer-readable storage medium storing a computer program for electronic data exchange, where the computer program is applied to an internet of things gateway, the internet of things gateway is applied to the internet of things, the internet of things includes a plurality of internet of things devices, a plurality of transit nodes, an internet of things gateway and a server, the plurality of transit nodes include a first transit node and a second transit node, the plurality of transit nodes constitute an edge network, the edge network connects the internet of things devices and the internet of things gateway, the internet of things gateway connects the server, where the computer program causes the internet of things gateway to perform the following operations:
receiving a network access request forwarded by at least one transit node of the edge network, the network access request being broadcast by a third transit node requesting access to the edge network, the network access request including a device identification and location information of the third transit node;
determining, according to the location information, that the first transit node and the second transit node in the edge network are adjacent nodes to the third transit node;
and updating the network topology of the edge network according to the determined adjacent node and the third transit node.
It can be seen that, in the embodiment of the present application, the gateway of the internet of things first receives a network access request forwarded by at least one transit node from the edge network, where the network access request is broadcast by a third transit node requesting to access the edge network, and the network access request includes a device identifier and location information of the third transit node, then, according to the location information, it is determined that the first transit node and the second transit node in the edge network are neighboring nodes of the third transit node, and finally, the network topology of the edge network is updated according to the determined neighboring nodes and the third transit node. It can be seen that, because the transit nodes in the internet of things form an edge network, the networking range governed by a single internet of things gateway is expanded, the transit nodes to be networked may not be in direct communication with the internet of things gateway, and the new broadcast messages of the transit nodes are intelligently monitored through the transit nodes in the edge network, on one hand, the broadcast messages of the new transit nodes can be rapidly forwarded to the internet of things gateway, and on the other hand, part of the transit nodes in the signal coverage range can both receive and forward the broadcast messages to the internet of things gateway, so that the success rate of forwarding the broadcast messages to the internet of things gateway is improved, and the stability and the real-time performance of updating the internet of things network architecture are improved.
In one possible example, in the aspect that the determining that the first transit node and the second transit node in the edge network are neighboring nodes of the third transit node according to the location information, the computer program causes an internet of things gateway to specifically perform the following operations:
determining the distance between each transit node in the edge network and the third transit node according to the position information;
detecting that a first distance between the first transit node and the third transit node is smaller than a distance between a fourth transit node and the third transit node, and determining that the first transit node is an adjacent node of the third transit node, where the fourth transit node is any transit node except the first transit node in the edge network;
detecting that a second distance between the second transit node and the third transit node is smaller than a distance between a fifth transit node and the third transit node, and determining that the second transit node is an adjacent node of the third transit node, where the fifth transit node is any transit node in the edge network except for the first transit node and the second transit node.
In one possible example, in terms of the updating of the network topology of the edge network according to the determined neighboring node and the third transit node, the computer program causes the gateway of the internet of things to specifically perform the following operations:
when detecting that a transmission link of the edge network is in an idle state, adding the third transit node in a pre-stored network topology of the edge network, updating the neighboring node of the first transit node from the second transit node to the third transit node, and updating the neighboring node of the second transit node from the first transit node to the third transit node.
In one possible example, the computer program further causes the internet of things gateway to: after updating the network topology of the edge network according to the determined neighboring node and the third transit node, sending a node update message to the first transit node and the second transit node, where the node update message is used to indicate that the first transit node updates the neighboring node to be the third transit node, and to indicate that the second transit node updates the neighboring node to be the third transit node.
In one possible example, the edge network is a ring network, and the ring network includes at least one transit node directly communicating with the internet of things gateway.
In accordance with the foregoing embodiments, please refer to fig. 4, fig. 4 is a block diagram of functional units of an internet of things gateway, which is applied to the internet of things and includes a plurality of internet of things devices, a plurality of transit nodes, an internet of things gateway and a server, where the plurality of transit nodes include a first transit node and a second transit node, the plurality of transit nodes form an edge network, the edge network connects the internet of things devices and the internet of things gateway, the internet of things gateway connects the server, the internet of things gateway includes a receiving unit 401, a determining unit 402 and an updating unit 403, where,
the receiving unit 401 is configured to receive a network access request forwarded by at least one transit node of the edge network, where the network access request is broadcast by a third transit node requesting to access the edge network, and the network access request includes a device identifier and location information of the third transit node.
The determining unit 402 is configured to determine, according to the location information, that the first transit node and the second transit node in the edge network are neighboring nodes of the third transit node.
The updating unit 403 is configured to update the network topology of the edge network according to the determined adjacent node and the third transit node.
It can be seen that, in the embodiment of the present application, the gateway of the internet of things first receives a network access request forwarded by at least one transit node from the edge network, where the network access request is broadcast by a third transit node requesting to access the edge network, and the network access request includes a device identifier and location information of the third transit node, then, according to the location information, it is determined that the first transit node and the second transit node in the edge network are neighboring nodes of the third transit node, and finally, the network topology of the edge network is updated according to the determined neighboring nodes and the third transit node. It can be seen that, because the transit nodes in the internet of things form an edge network, the networking range governed by a single internet of things gateway is expanded, the transit nodes to be networked may not be in direct communication with the internet of things gateway, and the new broadcast messages of the transit nodes are intelligently monitored through the transit nodes in the edge network, on one hand, the broadcast messages of the new transit nodes can be rapidly forwarded to the internet of things gateway, and on the other hand, part of the transit nodes in the signal coverage range can both receive and forward the broadcast messages to the internet of things gateway, so that the success rate of forwarding the broadcast messages to the internet of things gateway is improved, and the stability and the real-time performance of updating the internet of things network architecture are improved.
In a possible example, in the aspect that the determining that the first transit node and the second transit node in the edge network are neighboring nodes of the third transit node according to the location information, the determining unit 402 is specifically configured to: determining the distance between each transit node in the edge network and the third transit node according to the position information; detecting that a first distance between the first transit node and the third transit node is smaller than a distance between a fourth transit node and the third transit node, and determining that the first transit node is an adjacent node of the third transit node, and the fourth transit node is any transit node except the first transit node in the edge network; and determining that the second transit node is an adjacent node of a third transit node when detecting that a second distance between the second transit node and the third transit node is smaller than a distance between a fifth transit node and the third transit node, where the fifth transit node is any transit node except the first transit node and the second transit node in the edge network.
In a possible example, in terms of the updating the network topology of the edge network according to the determined neighboring node and the third transit node, the determining unit 402 is specifically configured to: when detecting that a transmission link of the edge network is in an idle state, adding the third transit node in a pre-stored network topology of the edge network, updating the neighboring node of the first transit node from the second transit node to the third transit node, and updating the neighboring node of the second transit node from the first transit node to the third transit node.
In a possible example, the internet of things gateway further includes a sending unit, configured to send, after the updating unit 403 updates the network topology of the edge network according to the neighboring node and the third transit node determined by the determining unit 402, a node update message to the first transit node and the second transit node, where the node update message is used to indicate that the first transit node updates the neighboring node to be the third transit node, and to indicate that the second transit node updates the neighboring node to be the third transit node.
In one possible example, the edge network is a ring network, and the ring network includes at least one transit node directly communicating with the internet of things gateway.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above embodiments. The computer program product may be a software installation package.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (6)

1. The network node adding method is applied to the Internet of things, the Internet of things comprises a plurality of Internet of things devices, a plurality of transfer nodes, an Internet of things gateway and a server, the plurality of transfer nodes comprise first transfer nodes and second transfer nodes, the plurality of transfer nodes form an edge network, the edge network is an annular network, the edge network connects the Internet of things devices and the Internet of things gateway, the Internet of things gateway connects the server, and the method comprises the following steps:
the gateway of the internet of things receives a network access request forwarded by at least one transit node of the edge network, wherein the network access request is broadcasted by a third transit node requesting to access the edge network, and the network access request comprises equipment identification and position information of the third transit node;
the gateway of the internet of things determines that the first transfer node and the second transfer node in the edge network are adjacent nodes of the third transfer node according to the position information;
the gateway of the Internet of things updates the network topology of the edge network according to the determined adjacent node and the third transfer node;
wherein, the updating, by the gateway of the internet of things, the network topology of the edge network according to the determined adjacent node and the third transit node includes: when detecting that a transmission link of the edge network is in an idle state, the gateway of the internet of things adds the third transit node in a prestored network topology of the edge network, updates the adjacent node of the first transit node from the second transit node to the third transit node, and updates the adjacent node of the second transit node from the first transit node to the third transit node;
if the first transit node is a next hop node of the second transit node, after accessing the third transit node, the third transit node becomes a next hop node of the second transit node, the gateway of the internet of things sets the third transit node as a main next hop node of the second transit node, sets the first transit node as a standby next hop node of the second transit node, and can switch to the first transit node to maintain effective communication connection when the third transit node is out of work;
wherein, the determining, by the internet of things gateway according to the location information, that the first transit node and the second transit node in the edge network are adjacent nodes to the third transit node includes:
the gateway of the internet of things determines the distance between each transfer node in the edge network and the third transfer node according to the position information;
the gateway of the internet of things detects that a first distance between the first transit node and the third transit node is smaller than a distance between a fourth transit node and the third transit node, and determines that the first transit node is an adjacent node of the third transit node, and the fourth transit node is any transit node except the first transit node in the edge network;
the gateway of the internet of things detects that a second distance between the second transit node and the third transit node is smaller than a distance between a fifth transit node and the third transit node, and determines that the second transit node is an adjacent node of the third transit node, and the fifth transit node is any transit node except the first transit node and the second transit node in the edge network.
2. The method of claim 1, wherein after the IOT gateway updates the network topology of the edge network according to the determined neighboring nodes and the third transit node, the method further comprises:
and the gateway of the internet of things sends a node update message to the first transit node and the second transit node, wherein the node update message is used for indicating that the first transit node updates the adjacent node to be the third transit node and indicating that the second transit node updates the adjacent node to be the third transit node.
3. The method of claim 2, wherein the edge network is a ring network comprising at least one transit node in direct communication with the internet of things gateway.
4. A computer-readable storage medium storing a computer program for electronic data exchange, the computer program being applied to an internet of things gateway, the internet of things gateway being applied to the internet of things, the internet of things including a plurality of internet of things devices, a plurality of transit nodes, the internet of things gateway and a server, the plurality of transit nodes including a first transit node and a second transit node, the plurality of transit nodes constituting an edge network, the edge network being an annular network, the edge network connecting the internet of things devices and the internet of things gateway, the internet of things gateway connecting the server, wherein the computer program causes the internet of things gateway to perform the following operations:
receiving a network access request forwarded by at least one transit node of the edge network, the network access request being broadcast by a third transit node requesting access to the edge network, the network access request including a device identification and location information of the third transit node;
determining, according to the location information, that the first transit node and the second transit node in the edge network are adjacent nodes to the third transit node;
updating the network topology of the edge network according to the determined adjacent node and the third transit node;
wherein, the updating, by the gateway of the internet of things, the network topology of the edge network according to the determined adjacent node and the third transit node includes: when detecting that a transmission link of the edge network is in an idle state, the gateway of the internet of things adds the third transit node in a prestored network topology of the edge network, updates the adjacent node of the first transit node from the second transit node to the third transit node, and updates the adjacent node of the second transit node from the first transit node to the third transit node;
if the first transit node is a next hop node of the second transit node, after accessing the third transit node, the third transit node becomes a next hop node of the second transit node, the gateway of the internet of things sets the third transit node as a main next hop node of the second transit node, sets the first transit node as a standby next hop node of the second transit node, and can switch to the first transit node to maintain effective communication connection when the third transit node is out of work;
wherein, in the aspect of determining that the first transit node and the second transit node in the edge network are adjacent nodes to the third transit node according to the location information, the computer program causes the gateway of the internet of things to specifically execute the following operations:
determining the distance between each transit node in the edge network and the third transit node according to the position information;
detecting that a first distance between the first transit node and the third transit node is smaller than a distance between a fourth transit node and the third transit node, and determining that the first transit node is an adjacent node of the third transit node, where the fourth transit node is any transit node except the first transit node in the edge network;
detecting that a second distance between the second transit node and the third transit node is smaller than a distance between a fifth transit node and the third transit node, and determining that the second transit node is an adjacent node of the third transit node, where the fifth transit node is any transit node in the edge network except for the first transit node and the second transit node.
5. The computer-readable storage medium of claim 4, wherein the computer program further causes the IOT gateway to: after updating the network topology of the edge network according to the determined neighboring node and the third transit node, sending a node update message to the first transit node and the second transit node, where the node update message is used to indicate that the first transit node updates the neighboring node to be the third transit node, and to indicate that the second transit node updates the neighboring node to be the third transit node.
6. The computer-readable storage medium of claim 5, wherein the edge network is a ring network comprising at least one transit node in direct communication with the IOT gateway.
CN201710803472.4A 2017-09-08 2017-09-08 Network node adding method and storage medium Active CN107612724B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710803472.4A CN107612724B (en) 2017-09-08 2017-09-08 Network node adding method and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710803472.4A CN107612724B (en) 2017-09-08 2017-09-08 Network node adding method and storage medium

Publications (2)

Publication Number Publication Date
CN107612724A CN107612724A (en) 2018-01-19
CN107612724B true CN107612724B (en) 2020-11-13

Family

ID=61062770

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710803472.4A Active CN107612724B (en) 2017-09-08 2017-09-08 Network node adding method and storage medium

Country Status (1)

Country Link
CN (1) CN107612724B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107645756B (en) * 2017-09-08 2021-04-30 深圳市盛路物联通讯技术有限公司 Network node adding system and internet of things gateway
CN108597511A (en) * 2018-04-28 2018-09-28 深圳市敢为特种设备物联网技术有限公司 Information displaying method, control terminal based on Internet of Things and readable storage medium storing program for executing
CN113905349A (en) * 2021-09-29 2022-01-07 中国铁道科学研究院集团有限公司 Networking method, device and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103781094A (en) * 2012-10-19 2014-05-07 中国科学院沈阳自动化研究所 A networking optimization method for wireless networks for industrial automation
CN106302787A (en) * 2016-08-31 2017-01-04 四川云农高地智能科技有限公司 A kind of internet of things networking method based on high in the clouds configuration
CN106341858A (en) * 2016-08-30 2017-01-18 天津光电华典科技有限公司 Dynamic self-networking protocol system and method for Internet of Things and industrial intelligence
CN107645756A (en) * 2017-09-08 2018-01-30 深圳市盛路物联通讯技术有限公司 Network node add-on system and things-internet gateway

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103781094A (en) * 2012-10-19 2014-05-07 中国科学院沈阳自动化研究所 A networking optimization method for wireless networks for industrial automation
CN106341858A (en) * 2016-08-30 2017-01-18 天津光电华典科技有限公司 Dynamic self-networking protocol system and method for Internet of Things and industrial intelligence
CN106302787A (en) * 2016-08-31 2017-01-04 四川云农高地智能科技有限公司 A kind of internet of things networking method based on high in the clouds configuration
CN107645756A (en) * 2017-09-08 2018-01-30 深圳市盛路物联通讯技术有限公司 Network node add-on system and things-internet gateway

Also Published As

Publication number Publication date
CN107612724A (en) 2018-01-19

Similar Documents

Publication Publication Date Title
CN109392092B (en) Method and related equipment for sending paging message
EP1278387B1 (en) System and apparatus for location registration of a mobile terminal
CN107612724B (en) Network node adding method and storage medium
CN113301511B (en) Node joining method, interphone, system and storage medium
CN113259864B (en) Narrow-band communication method, interphone, equipment, storage medium and ad hoc network system
JP2007214713A (en) Wireless lan system, access point and channel control method and program for use therein
CN102177746B (en) Channel switching in mesh-type networks
US11470536B2 (en) Multi-hop relaying in a mobile communication network
EP3319370B1 (en) Method and apparatus for establishing wireless backhaul connection
CN111586602B (en) Policy management method and device
CN106879039B (en) Channel switching method and device
KR20200103079A (en) Data transmission method, terminal device and network device
JP2008193136A (en) Communication terminal and communication control method
CN105519230A (en) Communication methods and network element equipment
JP2008017419A (en) Radio communication system, radio base station, communication control method, and communication control program
CN106537953A (en) Method for improving or enabling radio coverage for a user equipment with respect to a mobile communication network, user equipment adapted for having an improved radio coverage, relay user equipment adapted for providing an improved radio coverage to a user equipment, system for improving or enabling radio coverage for a user equipment, mobile communication network, program and computer program product
CN102742337A (en) Method, device and mobile terminal for data transmission
EP3562235A1 (en) Service data transmission method, first communication node and base station
CN107579896B (en) Internet of things data transmission method based on ring network and storage medium
CN107809782B (en) Internet of things data transmission method and storage medium
CN107645756B (en) Network node adding system and internet of things gateway
CN111182581B (en) Flow control method, target node, node and donor node
CN113543238B (en) Data transmission method and base station
CN110636586A (en) Cell selection method, relay node and network node
CN105050197A (en) Wireless communication method, related devices for wireless communication, wireless communication system

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