WO2024082804A1 - 一种无线低功耗有损网络的节点模式设置方法及其装置 - Google Patents
一种无线低功耗有损网络的节点模式设置方法及其装置 Download PDFInfo
- Publication number
- WO2024082804A1 WO2024082804A1 PCT/CN2023/114277 CN2023114277W WO2024082804A1 WO 2024082804 A1 WO2024082804 A1 WO 2024082804A1 CN 2023114277 W CN2023114277 W CN 2023114277W WO 2024082804 A1 WO2024082804 A1 WO 2024082804A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- node
- mode setting
- data
- success rate
- routing mode
- 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.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0212—Power saving arrangements in terminal devices managed by the network, e.g. network or access point is leader and terminal is follower
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/04—Arrangements for maintaining operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0225—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
- H04W52/0248—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the present application relates to the field of computer technology, and in particular to a node mode setting method, a node mode setting device, a terminal device, and a non-volatile readable storage medium for a wireless low-power lossy network.
- DODAG Denssion-Oriented DAG, a destination-oriented directed acyclic graph
- ETX packet transmission success rate
- Rank network level
- the purpose of this application is to provide a node mode setting method, a node mode setting device, a terminal device and a non-volatile readable storage medium for a wireless low-power lossy network to avoid network instability problems and improve network reliability.
- the present application provides a node mode setting method for a wireless low-power lossy network, comprising:
- the root node receives the feedback data sent by the child node
- a corresponding routing mode setting message is sent to the child node based on the reporting success rate, so that the child node sets the corresponding routing mode based on the routing mode message;
- Optional calculation methods for reporting success rate include:
- the success rate is calculated based on the receiving status data of the reporting data to obtain the reporting success rate.
- a success rate calculation is performed based on the receiving status data of the feedback data to obtain the feedback success rate, including:
- the success rate is calculated based on the receiving status data of the reporting data within the reporting rate time interval to obtain the reporting success rate.
- a corresponding routing mode setting message is sent to the child node based on the reporting success rate, including:
- the setting information of the root node mode is used as a confirmation message and a confirmation message is sent to the child node.
- a corresponding routing mode setting message is sent to the child node based on the reporting success rate, including:
- the setting information of the leaf node mode and the target parent node are used as confirmation messages, and a confirmation message is sent to the child node.
- the root node records the parent node used by the child node to report data.
- the method for determining the target parent node includes:
- the root node determines the number of times each parent node corresponding to the child node is adopted
- the parent node with the largest number of adoptions will be used as the target parent node.
- the root node records the time when the child node sends the report data.
- the child node parses the routing mode setting message to obtain the routing mode setting information
- the routing mode is set based on the routing mode setting information.
- the routing mode is set based on the routing mode setting information, including:
- the routing mode setting information is leaf node mode
- the child node is set to a state where adding new nodes is prohibited.
- the routing mode is set based on the routing mode setting information, including:
- the child node determines whether the routing mode setting information contains the parent node information
- the child node determines that the routing mode setting information contains the parent node information, it sends the target object instruction to the corresponding target parent node based on the parent node information setting;
- the child node determines that the routing mode setting information does not include the parent node information, it receives new reporting data.
- the child node parses the routing mode setting message to obtain routing mode setting information, including:
- the child node checks the routing mode setting message
- the routing mode setting message is parsed to obtain the routing mode setting information.
- the present application also provides a node mode setting device for a wireless low-power lossy network, comprising:
- a report data receiving module used for receiving report data sent by a child node
- a report data judgment module used to judge whether the time interval between the report data and the first received report data is greater than a preset time length
- a mode message sending module configured to send a corresponding routing mode setting message to a child node based on a reporting success rate when a time interval between the reporting data and the first received reporting data is greater than a preset time length, so that the child node sets a corresponding routing mode based on the routing mode message;
- the success message sending module is used to send a confirmation message to the child node when the time interval between the reported data and the first received reported data is less than or equal to a preset time length.
- the present application also provides a terminal device, including:
- a processor is used to implement the steps of the above node mode setting method when executing a computer program.
- the present application also provides a non-volatile readable storage medium, on which a computer program is stored.
- a computer program is stored on which a computer program is stored.
- a node mode setting method for a wireless low-power lossy network includes: a root node receives report data sent by a child node; judging whether a time interval between the report data and the report data received for the first time is greater than a preset time length; if the time interval between the report data and the report data received for the first time is greater than the preset time length, sending a corresponding routing mode setting message to the child node based on the report success rate, so that the child node sets the corresponding routing mode based on the routing mode message; if the time interval between the report data and the report data received for the first time is less than or equal to the preset time length, sending a confirmation message to the child node.
- the time interval of the report data is greater than the preset time length. If the time interval of the report data is greater than the preset time length, it means that the report time is too long, and the corresponding routing mode setting message needs to be sent to set the routing mode of the child node, so as to change different routing modes to improve the stability of the network and improve the reliability of the network.
- the present application also provides a node mode setting device, terminal equipment and non-volatile readable storage medium for a wireless low-power lossy network, which have the above beneficial effects and are not elaborated here.
- FIG1 is a flow chart of a method for setting a node mode of a wireless low-power lossy network provided in an embodiment of the present application
- FIG2 is a schematic diagram of a network architecture of a method for setting a node mode of a wireless low-power lossy network provided in an embodiment of the present application;
- FIG3 is a flow chart of another method for setting a node mode of a wireless low-power lossy network provided in an embodiment of the present application
- FIG4 is a schematic diagram of the structure of a device for setting a node mode of a wireless low-power lossy network provided in an embodiment of the present application;
- FIG5 is a schematic diagram of the structure of a terminal device provided in the present application.
- the core of this application is to provide a node mode setting method, a node mode setting device, a terminal device and a non-volatile readable storage medium for a wireless low-power lossy network to avoid network instability problems and improve network reliability.
- the present application provides a node mode setting method for a wireless low-power lossy network, which receives report data from a child node and then determines whether the time interval of the report data is greater than a preset duration. If the time interval of the report data is greater than the preset duration, it means that the report time is too long, and a corresponding routing mode setting message needs to be sent to set the routing mode of the child node, so as to change different routing modes to improve the stability of the network and improve the reliability of the network.
- the following describes a method for setting a node mode of a wireless low-power lossy network provided by the present application through an embodiment.
- FIG. 1 is a flow chart of a method for setting a node mode of a wireless low-power lossy network provided in an embodiment of the present application.
- the method may include:
- the root node receives the feedback data sent by the child node
- this step is intended for the root node to receive the feedback data sent by the child node.
- the feedback data is the reply data sent by the child node to the root node in the wireless low-power lossy network so that the root node can receive the status information of each child node.
- the role of the root node is to collect the data reported by all nodes under the same network topology.
- the reply ACK Acknowledge character, confirmation character
- the reply ACK is a transmission control character sent by the receiving station to the sending station in data communication. It indicates that the sent data has been confirmed to be received correctly.
- the operation mode of the sub-node is set based on the feedback data replied by the sub-node, so as to avoid the problem of unreliable operation status of the sub-node in the network.
- the content of the report data can be set in any manner provided by the prior art, and is not specifically limited here. Further, the child node sends the report data and the root node receives the report data in any manner provided by the prior art.
- this step is intended to determine whether the time interval between the report data and the report data received for the first time is greater than the preset time length. It can be seen that this step is intended to determine the time interval between the report data received this time and the report data received for the first time, that is, whether the time interval is greater than the preset time length. If it is greater than the preset time length, it means that the time to receive the report data is long, and there is a network problem in the path or method of the child node returning the report data, and the routing mode of the child node needs to be set for subsequent network problems. If it is less than or equal to the preset time length, it means that the time delay of returning the report data is short, and the method or path of the child node returning data is relatively stable, and there is no need to set the routing mode.
- the preset duration can be set based on the state in the network, can also be set based on the experience of the technician, and can also be set based on the operating heat of the network.
- the process of setting based on the state of the network may include: when the network is in a high reliability state, setting the preset duration to a lower value to maintain the reliability of the network. When the network is in a low reliability state, setting the preset duration to a higher value to reduce power consumption and improve performance while maintaining reliability.
- when setting based on the operating heat of the network it may include: when the operating heat of the network is high, setting the preset duration to a lower value to improve the reliability of the network under the influence of high heat. When the operating heat of the network is low, setting the preset duration to a higher value to improve the reliability of the network without affecting power consumption.
- this embodiment may also include:
- the root node records the time when the child node sends the report data.
- this optional solution mainly explains how to determine the time interval of the report data.
- the time when the child node sends the report data can be recorded. It can be seen that based on the time recording of the report data, the time interval between the report data can be accurately determined to determine whether the time delay is greater than the threshold and greater than the preset duration.
- this step aims to send a corresponding routing mode setting message to the child node based on the reporting success rate when the time interval is greater than the preset duration, so that the child node sets the corresponding routing mode based on the routing mode message.
- the routing mode setting message of different routing modes is sent to the child node mainly based on the reporting success rate.
- the reporting success rate refers to the success rate of reporting data sending and receiving. Different success rate sizes can illustrate the success rate of the child node in data transmission in the network, that is, the state of the link determined by the child node. When the success rate is greater than the threshold, it means that the reliability state of the link connected to the child node is good, and other child nodes can be connected based on this link.
- the success rate is less than the threshold, it means that the reliability state of the link connected to the child node or the connected parent node is poor, and it is necessary to stop connecting other new child nodes after the link or parent node. It can be seen that different routing modes can be set for child nodes at different reporting success rates to further improve the reliability of the network and the effect of child node operation.
- calculation method of the return success rate in this step may include:
- the success rate is calculated based on the receiving status data of the reporting data to obtain the reporting success rate.
- this optional solution mainly explains how to calculate the reporting success rate.
- the success rate is calculated based on the receiving status data of the reporting data to obtain the reporting success rate. That is to say, in this embodiment, the success rate of the reporting data can be calculated in the background of the system operation, so as to obtain the corresponding reporting success rate.
- the method for calculating the success rate in the previous optional solution may include:
- Step 1 determine the time interval of return rate
- Step 2 Calculate the success rate within the reporting rate time interval based on the receiving status data of the reporting data to obtain the reporting rate. Report success rate.
- this optional solution mainly explains how to improve the accuracy of the reporting success rate.
- the reporting success rate is calculated within a certain reporting rate time interval to avoid inaccuracy caused by network fluctuations and improve the accuracy of calculating the reporting success rate.
- this step may include:
- the setting information of the root node mode is used as a confirmation message and a confirmation message is sent to the child node.
- the setting information of the leaf node mode and the target parent node are used as confirmation messages, and a confirmation message is sent to the child node.
- this optional solution mainly explains how to send the corresponding routing mode setting message under different success rates.
- the routing mode setting message is sent in the form of a confirmation message, so there is no need to change the original message sending process, only the content in the confirmation message needs to be changed, so as to avoid affecting the performance of the network and improve the sending effect.
- this step also includes:
- the root node records the parent node used by the child node to report data.
- the corresponding parent node can also be set. Therefore, in order to accurately set the appropriate parent node, in this embodiment, the parent node of each return data returned by the child node can also be historically recorded, so as to determine the most appropriate parent node from the historical records.
- the method for determining the target parent node may include:
- Step 1 the root node determines the number of times each parent node corresponding to the child node is adopted;
- Step 2 The parent node with the largest number of adoptions is used as the target parent node.
- this optional solution mainly explains how to determine the target parent node.
- the root node determines the number of times each parent node corresponding to the child node is adopted, and the parent node with the largest number of adoptions is used as the target parent node.
- the parent node with the largest number of uses is used for connection to improve the reliability of the network.
- the front-end node of the root node in the RPL (Routing Protocol for Low Power and Lossy Networks) network can be called the parent node.
- this step aims to send a confirmation message to the child node when the time interval is less than or equal to the preset duration.
- this embodiment may also include:
- Step 1 the child node parses the routing mode setting message to obtain routing mode setting information
- Step 2 Perform routing mode settings based on the routing mode setting information.
- this optional solution mainly describes how the child node operates.
- the child node parses the routing mode setting message, obtains the routing mode setting information, and performs routing mode setting based on the routing mode setting information.
- step 2 may include:
- Step 1 If the routing mode is set to leaf node mode, the child node is set to prohibit adding new nodes. state;
- Step 2 If the routing mode setting information is the root node mode, the child node determines whether the routing mode setting information contains the parent node information;
- Step 3 If the routing mode setting information includes parent node information, a target object instruction is sent to the corresponding target parent node based on the parent node information setting;
- Step 4 If the routing mode setting information does not include the parent node information, new reporting data is received.
- this optional solution mainly explains how to set the routing mode.
- the routing mode setting information is a leaf node mode
- the child node is set to a state where adding new nodes is prohibited; if the routing mode setting information is a root node mode, the child node determines whether the routing mode setting information contains parent node information; if the routing mode setting information contains parent node information, the target object instruction is sent to the corresponding target parent node based on the parent node information setting; if the routing mode setting information does not contain parent node information, new feedback data is received. It can be seen that the child node can set the routing mode based on the received message so that data can be transmitted under different routing modes to improve the reliability of the network.
- routing mode setting information which may include:
- Step 1 the child node checks the routing mode setting message
- Step 2 When the check is passed, the routing mode setting message is parsed to obtain routing mode setting information.
- this optional solution mainly describes how the child node performs the correctness check.
- the routing mode setting message is checked; when the check passes, the routing mode setting message is parsed to obtain the routing mode setting information.
- this embodiment receives the report data from the child node, and then determines whether the time interval of the report data is greater than the preset time length. If the time interval of the report data is greater than the preset time length, it means that the report time is too long, and it is necessary to send a corresponding routing mode setting message to set the routing mode of the child node, so as to change different routing modes to improve the stability of the network and improve the reliability of the network.
- RPL Ring Protocol for Low Power and Lossy Networks
- DODAG Destination-Oriented DAG (Directed Acyclic Graph, directed acyclic graph), a destination-oriented directed acyclic graph) topology, which originates from a designated RPL root node, which is also typically used as a border router for the Internet. Routing information is disseminated irregularly using a trickle timer via broadcast beacons.
- the topology is constructed according to certain goals through an objective function.
- wireless low-power lossy networks generally do not predefine the target of a certain sending node. Nodes in the network must discover other nodes by themselves and establish communication according to RPL rules.
- RPL routing collects the outward channels of all nodes in the network topology to the designated root node. External information also enters from the root node and is distributed to the nodes in the network. This forms the DODAG in RPL.
- each node in RPL has an attribute DODAG Version, which increases when the DODAG is reconstructed. For example, when a node moves or the signal strength changes, the DODAG will be reconstructed. Topology diagram, which leads to the increase of DODAG Version.
- an RPL Instance is a combination of one or more DODAGs sharing an RPL Instance ID (Identity document).
- An RPL node belongs to at most one DODAG in an RPL Instance.
- Each RPL Instance runs independently of other RPL Instances.
- DODAGs in the same RPL Instance all use the same OF (Objective Function).
- FIG. 2 is a schematic diagram of a network architecture of a method for setting a node mode of a wireless low-power lossy network provided in an embodiment of the present application.
- the RPL root node in the network architecture diagram is mainly used to collect data reported by all nodes under the same DODAG; after receiving the reported data, it can send ACK back to the node that sent the data; and broadcast DIO (DODAG Information Object).
- DODAG DODAG Information Object
- the RPL child node is mainly used to actively report data to the root node; the node mode can be set to RPL router (RPL root node) mode and leaf (leaf node) mode; the parent node is determined based on the received DIO; DAO (Destination Advertisement Object) is sent to the parent node and forwarded to the root node.
- RPL router RPL root node
- leaf leaf node
- DAO Destination Advertisement Object
- FIG. 3 is a flowchart of another method for setting a node mode of a wireless low-power lossy network provided in an embodiment of the present application.
- this embodiment can be divided into a root node process and a sub-node process, which can stabilize and optimize the network hierarchy and topology.
- the type of sub-node report data, the report success rate P, the calculation interval T and other related parameters will vary according to the field and application scenario, and are not specifically limited here.
- the child node will first return the report data according to the preset report interval. After receiving the data, the root node will first record which parent node the child node used to report this time (this parent node refers to the previous node of the child node) and the time point of this report data. Then it will determine whether the time point of this report data is greater than the time point of the first report data, if it is not greater than this interval, the root node will directly return ACK. If the report interval is greater than interval T and the report success rate is less than the set success rate P, the setting data of the RPL mode Leaf and the parent node (the parent node with the most times used in the interval) will be added to the reply ACK packet.
- the child node receives the ACK packet reported by the parent node and parses its content. If the ACK requires the child node to be set to Leaf mode, the child node must set its own rank (node level value) to the highest 65535 (the highest value of rank) and suppress the broadcast or unicast of DIO. It cannot respond to DIS (DODAG Information Solicitation) received from other nodes. If the parent node setting data in the ACK is not empty, the child node must immediately send DAO to the specified parent node and then reply to the report data through this parent node. Except for the specified parent node and root node DIO, all other DIOs received are directly filtered. Then wait for the next report time and report data.
- rank node level value
- DIS DODAG Information Solicitation
- Setting all child nodes with too low success rate to Leaf mode can ensure that other nodes will not be connected to this node, and this node can be kept as a terminal node. Fixing the parent node of the child node can also ensure that the child node will not keep switching parent nodes when there are multiple parent nodes to choose from, which will cause the DODAGversion to continue to increase, causing the root node to constantly perform network repairs to maintain the DODAGversion, which will cause a burden on the network.
- this embodiment receives the report data from the child node, and then determines whether the time interval of the report data is greater than the preset time length. If the time interval of the report data is greater than the preset time length, it means that the report time is too long, and it is necessary to send a corresponding routing mode setting message to set the routing mode of the child node, so as to change different routing modes to improve the stability of the network and improve the reliability of the network.
- the following is an introduction to the node mode setting device of the wireless low-power lossy network provided in an embodiment of the present application.
- the node mode setting device of the wireless low-power lossy network described below and the node mode setting method of the wireless low-power lossy network described above can be referenced to each other.
- FIG. 4 is a schematic diagram of the structure of a node mode setting device for a wireless low-power lossy network provided in an embodiment of the present application.
- the device may include:
- the report data receiving module 100 is used to receive the report data sent by the child node
- the report data determination module 200 is used to determine whether the time interval between the report data and the first received report data is greater than a preset time length
- the mode message sending module 300 is used to send a corresponding routing mode setting message to the child node based on the reporting success rate when the time interval between the reporting data and the first received reporting data is greater than a preset time length, so that the child node sets the corresponding routing mode based on the routing mode message;
- the success message sending module 400 is used to send a confirmation message to the child node when the time interval between the reported data and the first received reported data is less than or equal to a preset time length.
- the device may also include:
- the success rate calculation module is used to calculate the success rate based on the receiving status data of the reporting data each time the reporting data is received to obtain the reporting success rate.
- the success rate calculation module is specifically used to determine the reporting rate time interval; based on the receiving status data of the reporting data, the success rate calculation is performed within the reporting rate time interval to obtain the reporting success rate.
- the mode message sending module 300 is specifically configured to use the setting information of the root node mode as a confirmation message and send the confirmation message to the child node if the reporting success rate is greater than a preset success rate.
- the mode message sending module 300 is specifically used to use the setting information of the leaf node mode and the target parent node as a confirmation message, and send a confirmation message to the child node if the reporting success rate is less than or equal to a preset success rate.
- the device may also include:
- the parent node recording module is used to record the parent node used by the child node to report data.
- the device may also include:
- the target parent node determination module is used to determine the number of times each parent node corresponding to the child node is adopted; the parent node with the largest number of adoptions is used as the target parent node.
- the device may also include:
- the reporting time recording module is used to record the time when the child node sends the reporting data.
- the device may also include:
- the routing mode setting module located in the child node is used to parse the routing mode setting message to obtain the routing Mode setting information; performing routing mode setting based on the routing mode setting information.
- routing mode setting module performs routing mode setting based on the routing mode setting information, including:
- the routing mode setting information is leaf node mode
- the child node is set to a state where adding new nodes is prohibited.
- routing mode setting module performs routing mode setting based on the routing mode setting information, including:
- the child node determines whether the routing mode setting information contains the parent node information; if the routing mode setting information contains the parent node information, the target object instruction is sent to the corresponding target parent node based on the parent node information setting; if the routing mode setting information does not contain the parent node information, new report data is received.
- the sub-node in the routing mode setting module parses the routing mode setting message to obtain routing mode setting information, including:
- the child node checks the routing mode setting message; when the check passes, the child node parses the routing mode setting message to obtain the routing mode setting information.
- the present application also provides a terminal device. Please refer to FIG5 , which is a schematic diagram of the structure of a terminal device provided by the present application.
- the terminal device may include:
- a processor when used to execute a computer program, can implement the steps of any of the above-mentioned node mode setting methods.
- FIG5 it is a schematic diagram of the structure of the terminal device, which may include: a processor 10, a memory 11, a communication interface 12 and a communication bus 13.
- the processor 10, the memory 11 and the communication interface 12 communicate with each other through the communication bus 13.
- the processor 10 may be a central processing unit (CPU), an application specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic devices, etc.
- CPU central processing unit
- application specific integrated circuit a digital signal processor
- field programmable gate array a field programmable gate array or other programmable logic devices, etc.
- the processor 10 may call a program stored in the memory 11. Specifically, the processor 10 may execute operations in an embodiment of the abnormal IP identification method.
- the memory 11 is used to store one or more programs, which may include program codes, and the program codes include computer operation instructions.
- the memory 11 at least stores programs for implementing the following functions:
- the root node receives the feedback data sent by the child node
- a corresponding routing mode setting message is sent to the child node based on the reporting success rate, so that the child node sets the corresponding routing mode based on the routing mode message;
- the memory 11 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function, etc.; the data storage area may store data created during use.
- the memory 11 may include a high-speed random access memory and may also include a non-volatile memory, such as Less a disk storage device or other volatile solid-state storage device.
- the communication interface 12 may be an interface of a communication module, and is used to connect to other devices or systems.
- the structure shown in FIG. 5 does not constitute a limitation on the terminal device in the embodiment of the present application.
- the terminal device may include more or fewer components than those shown in FIG. 5 , or combine certain components.
- the present application also provides a non-volatile readable storage medium, on which a computer program is stored.
- a computer program is stored on which a computer program is stored.
- the steps of any of the above-mentioned abnormal IP identification methods can be implemented.
- the non-volatile readable storage medium may include: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
- the steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two.
- the software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
- the node mode setting method, node mode setting device, terminal device and non-volatile readable storage medium of a wireless low-power lossy network provided by the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本申请公开了一种无线低功耗有损网络的节点模式设置方法,包括:根节点接收到子节点发送的回报数据;判断回报数据与首次接收的回报数据之间的时间区间是否大于预设时长;若回报数据与首次接收的回报数据之间的时间区间大于预设时长,则基于回报成功率向子节点发送对应的路由模式设置消息,以便子节点基于路由模式消息设置对应的路由模式;若回报数据与首次接收的回报数据之间的时间区间小于等于预设时长,则向子节点发送确认消息。当回报时间过长,需要发送对应的路由模式设置消息以便将该子节点的路由模式进行设置,以改变不同的路由模式提高网络的稳定性,提高网络的可靠性。本申请还公开了一种无线低功耗有损网络的节点模式设置装置、终端设备以及非易失性可读存储介质,具有以上有益效果。
Description
相关申请的交叉引用
本申请要求于2022年10月18日提交中国专利局,申请号为202211270160.9,申请名称为“一种无线低功耗有损网络的节点模式设置方法及其装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及计算机技术领域,特别涉及一种无线低功耗有损网络的节点模式设置方法、节点模式设置装置、终端设备以及非易失性可读存储介质。
随着信息技术的不断发展,为了降低通信网络的能耗,提高能源利用率,出现了低功耗有损网络。
相关技术中,现有的无线低功耗有损网络大部分都是由功率、储存空间和处理能力受到限制的嵌入式装备组成,其节点之前的传输不可靠,所以当一个DODAG(Destination-Oriented DAG,面向目标的有向无环图)的网络规模过大和阶层数过高时,末端节点的资料回报成功率会变得很低。由于节点选择父节点和DODAG的方式是取决于ETX(封包传送成功率)和Rank(网络层级),所以当节点传送成功率过低时,节点会因为不断的切换父节点和DODAG而造成封包传送延迟,网络拓扑变更时也会因广播封包产生而造成DODAG内的节点传输上的不稳定。
发明内容
本申请的目的是提供一种无线低功耗有损网络的节点模式设置方法、节点模式设置装置、终端设备以及非易失性可读存储介质,以避免网络的不稳定问题,提高网络的可靠性。
为解决上述技术问题,本申请提供一种无线低功耗有损网络的节点模式设置方法,包括:
根节点接收到子节点发送的回报数据;
判断回报数据与首次接收的回报数据之间的时间区间是否大于预设时长;
若回报数据与首次接收的回报数据之间的时间区间大于预设时长,则基于回报成功率向子节点发送对应的路由模式设置消息,以便子节点基于路由模式消息设置对应的路由模式;
若回报数据与首次接收的回报数据之间的时间区间小于等于预设时长,则向子节点发送确认消息。
可选的,回报成功率的计算方式,包括:
每次接收到回报数据时,基于回报数据的接收状态数据进行成功率计算,得到回报成功率。
可选的,基于回报数据的接收状态数据进行成功率计算,得到回报成功率,包括:
确定回报率时间区间;
基于回报数据的接收状态数据在回报率时间区间内进行成功率计算,得到回报成功率。
可选的,基于回报成功率向子节点发送对应的路由模式设置消息,包括:
若回报成功率大于预设成功率,将根节点模式的设置信息作为确认消息,并向子节点发送确认消息。
可选的,基于回报成功率向子节点发送对应的路由模式设置消息,包括:
若回报成功率小于等于预设成功率,将叶子节点模式的设置信息和目标父节点作为确认消息,并向子节点发送确认消息。
可选的,还包括:
根节点记录子节点上报数据采用的父节点。
可选的,目标父节点的确定方式,包括:
根节点确定子节点对应的每个父节点的采用次数;
将采用次数最大的父节点作为目标父节点。
可选的,还包括:
根节点记录子节点发送回报数据的时间。
可选的,还包括:
子节点对路由模式设置消息进行解析,得到路由模式设置信息;
基于路由模式设置信息进行路由模式设置。
可选的,基于路由模式设置信息进行路由模式设置,包括:
若路由模式设置信息为叶子节点模式时,子节点设置为禁止添加新节点状态。
可选的,基于路由模式设置信息进行路由模式设置,包括:
若路由模式设置信息为根节点模式时,子节点判断路由模式设置信息中是否包含父节点信息;
若子节点判断路由模式设置信息中包含父节点信息,则基于父节点信息设置发送目标对象指令到对应的目标父节点;
若子节点判断路由模式设置信息中不包含父节点信息,则接收新的回报数据。
可选的,子节点对路由模式设置消息进行解析,得到路由模式设置信息,包括:
子节点对路由模式设置消息进行检查;
当检查通过时,对路由模式设置消息进行解析,得到路由模式设置信息。
本申请还提供一种无线低功耗有损网络的节点模式设置装置,包括:
回报数据接收模块,用于接收到子节点发送的回报数据;
回报数据判断模块,用于判断回报数据与首次接收的回报数据之间的时间区间是否大于预设时长;
模式消息发送模块,用于当回报数据与首次接收的回报数据之间的时间区间大于预设时长,基于回报成功率向子节点发送对应的路由模式设置消息,以便子节点基于路由模式消息设置对应的路由模式;
成功消息发送模块,用于当回报数据与首次接收的回报数据之间的时间区间小于等于预设时长,向子节点发送确认消息。
本申请还提供一种终端设备,包括:
存储器,用于存储计算机程序;
处理器,用于执行计算机程序时实现如上的节点模式设置方法的步骤。
本申请还提供一种非易失性可读存储介质,非易失性可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上的节点模式设置方法的步骤。
本申请所提供的一种无线低功耗有损网络的节点模式设置方法,包括:根节点接收到子节点发送的回报数据;判断回报数据与首次接收的回报数据之间的时间区间是否大于预设时长;若回报数据与首次接收的回报数据之间的时间区间大于预设时长,则基于回报成功率向子节点发送对应的路由模式设置消息,以便子节点基于路由模式消息设置对应的路由模式;若回报数据与首次接收的回报数据之间的时间区间小于等于预设时长,则向子节点发送确认消息。
通过接收到子节点的回报数据,然后判断该回报数据的时间区间是否大于预设时长,若该回报数据的时间区间大于预设时长,则说明回报时间过长,需要发送对应的路由模式设置消息以便将该子节点的路由模式进行设置,以改变不同的路由模式提高网络的稳定性,提高网络的可靠性。
本申请还提供一种无线低功耗有损网络的节点模式设置装置、终端设备以及非易失性可读存储介质,具有以上有益效果,在此不作赘述。
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。
图1为本申请实施例所提供的一种无线低功耗有损网络的节点模式设置方法的流程图;
图2为本申请实施例所提供的一种无线低功耗有损网络的节点模式设置方法的网络架构示意图;
图3为本申请实施例所提供的另一种无线低功耗有损网络的节点模式设置方法的流程图;
图4为本申请实施例所提供的一种无线低功耗有损网络的节点模式设置装置的结构示意图;
图5为本申请所提供的一种终端设备的结构示意图。
本申请的核心是提供一种无线低功耗有损网络的节点模式设置方法、节点模式设置装置、终端设备以及非易失性可读存储介质,以避免网络的不稳定问题,提高网络的可靠性。
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技
术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
相关技术中,现有的无线低功耗有损网络大部分都是由功率、储存空间和处理能力受到限制的嵌入式装备组成,其节点之前的传输不可靠,所以当一个DODAG的网络规模过大和阶层数过高时,末端节点的资料回报成功率会变得很低。由于节点选择父节点和DODAG的方式是取决于ETX和Rank,所以当节点传送成功率过低时,节点会因为不断的切换父节点和DODAG而造成封包传送延迟,网络拓扑变更时也会因广播封包产生而造成DODAG内的节点传输上的不稳定。
因此,本申请提供一种无线低功耗有损网络的节点模式设置方法,通过接收到子节点的回报数据,然后判断该回报数据的时间区间是否大于预设时长,若该回报数据的时间区间大于预设时长,则说明回报时间过长,需要发送对应的路由模式设置消息以便将该子节点的路由模式进行设置,以改变不同的路由模式提高网络的稳定性,提高网络的可靠性。
以下通过一个实施例,对本申请提供的一种无线低功耗有损网络的节点模式设置方法进行说明。
请参考图1,图1为本申请实施例所提供的一种无线低功耗有损网络的节点模式设置方法的流程图。
本实施例中,该方法可以包括:
S101,根节点接收到子节点发送的回报数据;
可见,本步骤旨在根节点接收到子节点发送的回报数据。
其中,回报数据是在无线低功耗有损网络中子节点向根节点发送的回复数据,以便该根节点接收到各个子节点的状态信息。进一步的,该根节点的作用就是收集同一个网络拓扑图下的所有节点回报的数据。在一般情况根节点获取到对应的回报数据后,向对应的子节点发送确认消息,即回复ACK(Acknowledge character,确认字符)即是确认字符,在数据通信中,接收站发给发送站的一种传输类控制字符。表示发来的数据已确认接收无误。
但是,在本实施例中基于子节点回复的回报数据,对子节点的运行模式进行设置,避免子节点在网络中出现运行状态不可靠的问题。
其中,回报数据的内容可以采用现有技术提供的任意一种设置方式,在此不做具体限定。进一步的,子节点发送回报数据以及根节点接收回报数据的方式均可以采用现有技术中提供的任意一种回报数据的发送方式和接收方式。
S102,判断回报数据与首次接收的回报数据之间的时间区间是否大于预设时长;
在S101的基础上,本步骤旨在判断回报数据与首次接收的回报数据之间的时间区间是否大于预设时长。可见,本步骤旨在判断本次接收到回报数据和首次接收回报数据之间的时间隔,即时间区间是否大于预设时长。若大于预设时长则说明接收回报数据的时间较长,该子节点返回回报数据的路径或方式存在网络问题,需要对子节点的路由模式进行设置,以便后续的网络问题。若小于或等于预设时长则说明返回回报数据的时间延迟较短,该子节点返回数据的方式或路径较为稳定,不需要对路由模式进行设置。
其中,预设时长可以基于网络中的状态进行设置,也可以基于技术人员的经验进行设置,还可以基于网络的运行热度进行设置。其中,基于网络的状态进行设置的过程可以包括:当网络为高可靠性状态时,将预设时长设置为较低的值,以保持网络的可靠性。当网络为低可靠性状态时,将预设时长设置为较高的值,在保持可靠性的同时降低功耗提高性能。其中,当基于网络的运行热度进行设置时,可以包括:当网络的运行热度较高时,将预设时长设置为较低的值,在高热度影响的情况下提高网络的可靠性。当网络的运行热度较低时,将预设时长设置为较高的值,以便在不影响功耗的情况下提高网络的可靠性。
进一步的,本实施例中还可以包括:
根节点记录子节点发送回报数据的时间。
可见,本可选方案中主要是说明如何确定回报数据的时间区间。本可选方案中,可以在根节点接收到该回报数据时,记录子节点发送回报数据的时间。可见,基于对回报数据进行时间的记录,可以准确确定回报数据之间的时间区间进而判断时间延迟是否大于阈值,及大于预设时长。
S103,若回报数据与首次接收的回报数据之间的时间区间大于预设时长,则基于回报成功率向子节点发送对应的路由模式设置消息,以便子节点基于路由模式消息设置对应的路由模式;
在S102的基础上,本步骤旨在当时间区间大于预设时长,基于回报成功率向子节点发送对应的路由模式设置消息,以便子节点基于路由模式消息设置对应的路由模式。
其中,由于子节点的路由模式包括多种路由模式。因此,需要基于不同的情况对子节点设置不同的路由模式。本实施例中主要是基于回报成功率对子节点发送不同路由模式的路由模式设置消息。其中,回报成功率是指回报数据发送并接收的成功率。不同的成功率大小可以说明该子节点在网络中进行数据传输的成功率,也即代表该子节点所确定的链路的状态。当成功率大于阈值时说明该子节点所连接的链路的可靠性状态较好,可以基于在该链路连接其他子节点。当成功率小于阈值时说明该子节点所连接的链路或连接的父节点的可靠性状态较差,需要停止在该链路或父节点后连接其他新的子节点。可见,在不同的回报成功率对子节点可以进行不同的路由模式的设置,以便进一步的提高网络的可靠性以及子节点运行的效果。
进一步的,本步骤中的回报成功率的计算方式,可以包括:
每次接收到回报数据时,基于回报数据的接收状态数据进行成功率计算,得到回报成功率。
可见,本可选方案中主要是说明如何计算得到回报成功率。本可选方案中,每次接收到回报数据时,基于回报数据的接收状态数据进行成功率计算,得到回报成功率。也就是说,在本实施例中可以在系统运行的后台对回报数据的成功率进行计算,从而得到对应的回报成功率。
进一步的,上一可选方案中计算成功率的方式,可以包括:
步骤1,确定回报率时间区间;
步骤2,基于回报数据的接收状态数据在回报率时间区间内进行成功率计算,得到回
报成功率。
可见,本可选方案中主要是说明如何提高回报成功率的准确性。本可选方案中,在确定的回报率时间区间内计算回报成功率,避免由于网络波动造成的不准确的问题,提高计算回报成功率的准确性。
进一步的,本步骤可以包括:
若回报成功率大于预设成功率,将根节点模式的设置信息作为确认消息,并向子节点发送确认消息。
若回报成功率小于等于预设成功率,将叶子节点模式的设置信息和目标父节点作为确认消息,并向子节点发送确认消息。
可见,本可选方案中主要是说明如何在不同的成功率下发送对应的路由模式设置消息。其中,无论是什么情况该路由模式设置消息均以确认消息的方式进行发送,也就无需改动原有的发送消息的流程,仅仅需要改变确认消息中的内容即可,避免对网络的性能进行影响,提高发送的效果。
进一步的,本步骤还包括:
根节点记录子节点上报数据采用的父节点。
其中,对子节点进行设置的过程中还可以设置对应的父节点。因此,为了准确设置合适的父节点,本实施例中还可以对子节点每次返回回报数据的父节点进行历史记录,以便从历史的记录中确定到最合适的父节点。
在上一可选方案的基础上,该目标父节点的确定方式,可以包括:
步骤1,根节点确定子节点对应的每个父节点的采用次数;
步骤2,将采用次数最大的父节点作为目标父节点。
可见,本可选方案中主要是说明如何确定目标父节点。本可选方案中,根节点确定子节点对应的每个父节点的采用次数,将采用次数最大的父节点作为目标父节点。也就是,采用使用次数最多的父节点进行连接,提高网络的可靠性。
其中,在RPL(Routing Protocol for Low Power and Lossy Networks,低功耗有损网络路由协议)网络中的根节点的最前端的节点可以称为父节点。
S104,若回报数据与首次接收的回报数据之间的时间区间小于等于预设时长,则向子节点发送确认消息。
在S102的基础上,本步骤旨在当时间区间小于等于预设时长,向子节点发送确认消息。
进一步的,本实施例还可以包括:
步骤1,子节点对路由模式设置消息进行解析,得到路由模式设置信息;
步骤2,基于路由模式设置信息进行路由模式设置。
可见,本可选方案中主要是说明子节点如何操作。本可选方案中,子节点对路由模式设置消息进行解析,得到路由模式设置信息,基于路由模式设置信息进行路由模式设置。
进一步的,本实施例中该步骤2可以包括:
步骤1,若路由模式设置信息为叶子节点模式时,子节点设置为禁止添加新节点状
态;
步骤2,若路由模式设置信息为根节点模式时,子节点判断路由模式设置信息中是否包含父节点信息;
步骤3,若路由模式设置信息中包含父节点信息,则基于父节点信息设置发送目标对象指令到对应的目标父节点;
步骤4,若路由模式设置信息中不包含父节点信息,则接收新的回报数据。
可见,本可选方案中主要是说明如何进行路由模式设置。本可选方案中,若路由模式设置信息为叶子节点模式时,子节点设置为禁止添加新节点状态;若路由模式设置信息为根节点模式时,子节点判断路由模式设置信息中是否包含父节点信息;若路由模式设置信息中包含父节点信息,则基于父节点信息设置发送目标对象指令到对应的目标父节点;若路由模式设置信息中不包含父节点信息,则接收新的回报数据。可见,该子节点基于接收到的消息可以对路由模式进行设置,以便在不同的路由模式下进行数据传输,提高网络的可靠性。
进一步的,上一可选方案中的子节点对路由模式设置消息进行解析,得到路由模式设置信息,可以包括:
步骤1,子节点对路由模式设置消息进行检查;
步骤2,当检查通过时,对路由模式设置消息进行解析,得到路由模式设置信息。
可见,本可选方案中主要是说明子节点如何进行正确性的检查。本可选方案中,对路由模式设置消息进行检查;当检查通过时,对路由模式设置消息进行解析,得到路由模式设置信息。
可见,本实施例通过接收到子节点的回报数据,然后判断该回报数据的时间区间是否大于预设时长,若该回报数据的时间区间大于预设时长,则说明回报时间过长,需要发送对应的路由模式设置消息以便将该子节点的路由模式进行设置,以改变不同的路由模式提高网络的稳定性,提高网络的可靠性。
以下通过另一具体的实施例,对本申请提供的一种节点模式设置方法做进一步说明。
本实施例中,RPL(Routing Protocol for Low Power and Lossy Networks,低功耗有损网络路由协议),构建并维护一个面向目的地的有向无环图(DODAG,Destination-Oriented DAG(Directed Acyclic Graph,有向无环图),面向目标的有向无环图)拓扑,该拓扑源自指定的RPL根节点,该根节点通常也用作Internet(互联网)的边界路由器。路由信息通过广播信标使用涓流定时器不定期地传播。拓扑是通过目标函数按照一定的目标构建的。
其中,无线低功耗有损网络一般没有预先规定好某个发送节点的目标,网络内的节点必须自己去发现其它的节点并按RPL规则建立通信。RPL路由把网络拓扑内所有节点向外的通道汇集到指定的根节点。外部的信息也从根节点进入并分发给网络里面的节点。由此形成了RPL中的DODAG。
进一步的,RPL中的每个节点有一个属性DODAG Version(版本),当DODAG重构时DODAG Version会跟着增加,比如节点发生移动、信号强度互相有变化时DODAG会重构
拓扑图,从而引发DODAG Version增加。
进一步的,RPL Instance(实例)是一个或多个DODAG共享RPL Instance ID(Identity document,身份证标识号)的组合。一个RPL节点最多属于一个RPL Instance中的DODAG。每个RPL Instance的运行皆独立于其他RPL Instance。在同一个RPL Instance内的DODAG都使用同一种OF(Objective Function,目标函数)。
进一步的,请参考图2,图2为本申请实施例所提供的一种无线低功耗有损网络的节点模式设置方法的网络架构示意图。
该网络架构示意图中的RPL根节点,主要用于收集同个DODAG下所有节点回报的数据;收到回报数据后,可以对送数据的节点回送ACK;广播DIO(DODAG Information Object,DODAG信息对象)。
其中,RPL子节点主要用于主动对根节点回报数据;节点模式可以设定为RPL router(RPL根节点)模式和leaf(叶子节点)模式;根据收到的DIO决定父节点;对父节点发送DAO(Destination Advertisement Object,目的广告对象)并转发到根节点。
进一步的,请参考图3,图3为本申请实施例所提供的另一种无线低功耗有损网络的节点模式设置方法的流程图。
可见,本实施例中可以分为根节点流程和子节点流程,可以稳定以及优化网络阶层和拓扑结构。其中,子节点的回报数据的类型、回报成功率P以及计算区间T等相关参数会根据场域以及应用场景而有不同,在此不做具体限定。
参考图3,首先子节点会根据预设的回报区间返回回报数据,根节点收到数据后会先记录此次回报是子节点是通过哪个父节点回报(此父节点单指子节点的上一个节点)和纪录此次回报数据的时间点,接着判断此次回报数据的时间点跟首次的回报数据的时间点是否已经大于区间T,如果没有大于此区间,根节点直接回传ACK。如果回报间隔已经大于区间T且回报成功率小于设定的成功率P,对回复的ACK封包中加入RPL模式为Leaf和父节点(区间内采用次数最多的父节点)的设定数据。
进一步的,子节点收到父节点回报的ACK封包并解析其内容,如果ACK要求子节点设定为Leaf模式,子节点必须将自身的rank(节点等级值)设定为最高65535(rank的最高值)并且抑制DIO的广播或者单播,收到其他节点的DIS(DODAG Information Solicitation,DODAG信息征集)也不能做出回应。如果ACK内的父节点设定数据不为空,子节点必须立刻发送DAO到指定的父节点并之后都通过此父节回复回报数据,除了指定的父节点跟根节点DIO外,收到其他的DIO都直接进行过滤。接着就等待下一次的回报时间并回报数据。
将所有回报成功率过低的子节点设定为Leaf模式可以保证其他节点不会再接到此节点的下方,可以保持此节点为终端节点。将子节点的父节点固定,也能保证子节点在有多个父节点可以选择时不会一直切换父节点,而导致DODAGversion不断增加,而造成根节点为了维护DODAGversion而不断进行网络修复而造成网络的负担。
可见,通过动态改变节点RPL模式以及锁定父节点的方式稳定网络拓扑,改善了原先在多节点场域下,网络拓扑容易因为通讯不良而改变的问题,本实施例只透过RPL本身的机制以及特性去维护网络拓扑,除了定期回报数据外,不通过额外的广播或单播封包增
加无线低功耗有损网络的负担。
可见,本实施例通过接收到子节点的回报数据,然后判断该回报数据的时间区间是否大于预设时长,若该回报数据的时间区间大于预设时长,则说明回报时间过长,需要发送对应的路由模式设置消息以便将该子节点的路由模式进行设置,以改变不同的路由模式提高网络的稳定性,提高网络的可靠性。
下面对本申请实施例提供的无线低功耗有损网络的节点模式设置装置进行介绍,下文描述的无线低功耗有损网络的节点模式设置装置与上文描述的无线低功耗有损网络的节点模式设置方法可相互对应参照。
请参考图4,图4为本申请实施例所提供的一种无线低功耗有损网络的节点模式设置装置的结构示意图。
本实施例中,该装置可以包括:
回报数据接收模块100,用于接收到子节点发送的回报数据;
回报数据判断模块200,用于判断回报数据与首次接收的回报数据之间的时间区间是否大于预设时长;
模式消息发送模块300,用于当回报数据与首次接收的回报数据之间的时间区间大于预设时长,基于回报成功率向子节点发送对应的路由模式设置消息,以便子节点基于路由模式消息设置对应的路由模式;
成功消息发送模块400,用于当回报数据与首次接收的回报数据之间的时间区间小于等于预设时长,向子节点发送确认消息。
进一步的,该装置还可以包括:
成功率计算模块,用于每次接收到回报数据时,基于回报数据的接收状态数据进行成功率计算,得到回报成功率。
进一步的,该成功率计算模块,具体用于确定回报率时间区间;基于回报数据的接收状态数据在回报率时间区间内进行成功率计算,得到回报成功率。
进一步的,该模式消息发送模块300,具体用于若回报成功率大于预设成功率,将根节点模式的设置信息作为确认消息,并向子节点发送确认消息。
进一步的,该模式消息发送模块300,具体用于若回报成功率小于等于预设成功率,将叶子节点模式的设置信息和目标父节点作为确认消息,并向子节点发送确认消息。
进一步的,该装置还可以包括:
父节点记录模块,用于记录子节点上报数据采用的父节点。
进一步的,该装置还可以包括:
目标父节点确定模块,用于确定子节点对应的每个父节点的采用次数;将采用次数最大的父节点作为目标父节点。
进一步的,该装置还可以包括:
回报时间记录模块,用于记录子节点发送回报数据的时间。
进一步的,该装置还可以包括:
位于子节点中的路由模式设置模块,用于对路由模式设置消息进行解析,得到路由
模式设置信息;基于路由模式设置信息进行路由模式设置。
进一步的,该路由模式设置模块中基于路由模式设置信息进行路由模式设置,包括:
若路由模式设置信息为叶子节点模式时,子节点设置为禁止添加新节点状态。
进一步的,该路由模式设置模块中基于路由模式设置信息进行路由模式设置,包括:
若路由模式设置信息为根节点模式时,子节点判断路由模式设置信息中是否包含父节点信息;若路由模式设置信息中包含父节点信息,则基于父节点信息设置发送目标对象指令到对应的目标父节点;若路由模式设置信息中不包含父节点信息,则接收新的回报数据。
进一步的,该路由模式设置模块中子节点对路由模式设置消息进行解析,得到路由模式设置信息,包括:
子节点对路由模式设置消息进行检查;当检查通过时,对路由模式设置消息进行解析,得到路由模式设置信息。
本申请还提供了一种终端设备,请参考图5,图5为本申请所提供的一种终端设备的结构示意图,该终端设备可包括:
存储器,用于存储计算机程序;
处理器,用于执行计算机程序时可实现如上述任意一种节点模式设置方法的步骤。
如图5所示,为终端设备的组成结构示意图,终端设备可以包括:处理器10、存储器11、通信接口12和通信总线13。处理器10、存储器11、通信接口12均通过通信总线13完成相互间的通信。
在本申请实施例中,处理器10可以为中央处理器(Central Processing Unit,CPU)、特定应用集成电路、数字信号处理器、现场可编程门阵列或者其他可编程逻辑器件等。
处理器10可以调用存储器11中存储的程序,具体的,处理器10可以执行异常IP识别方法的实施例中的操作。
存储器11中用于存放一个或者一个以上程序,程序可以包括程序代码,程序代码包括计算机操作指令,在本申请实施例中,存储器11中至少存储有用于实现以下功能的程序:
根节点接收到子节点发送的回报数据;
判断回报数据与首次接收的回报数据之间的时间区间是否大于预设时长;
若回报数据与首次接收的回报数据之间的时间区间大于预设时长,则基于回报成功率向子节点发送对应的路由模式设置消息,以便子节点基于路由模式消息设置对应的路由模式;
若回报数据与首次接收的回报数据之间的时间区间小于等于预设时长,则向子节点发送确认消息。
在一种可能的实现方式中,存储器11可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统,以及至少一个功能所需的应用程序等;存储数据区可存储使用过程中所创建的数据。
此外,存储器11可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至
少一个磁盘存储器件或其他易失性固态存储器件。
通信接口12可以为通信模块的接口,用于与其他设备或者系统连接。
当然,需要说明的是,图5所示的结构并不构成对本申请实施例中终端设备的限定,在实际应用中终端设备可以包括比图5所示的更多或更少的部件,或者组合某些部件。
本申请还提供了一种非易失性可读存储介质,该非易失性可读存储介质上存储有计算机程序,计算机程序被处理器执行时可实现如上述任意一种异常IP识别方法的步骤。
该非易失性可读存储介质可以包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
对于本申请提供的非易失性可读存储介质的介绍请参照上述方法实施例,本申请在此不做赘述。
说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。
以上对本申请所提供的一种无线低功耗有损网络的节点模式设置方法、节点模式设置装置、终端设备以及非易失性可读存储介质进行了详细介绍。本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以对本申请进行若干改进和修饰,这些改进和修饰也落入本申请权利要求的保护范围内。
Claims (20)
- 一种无线低功耗有损网络的节点模式设置方法,其特征在于,包括:根节点接收到子节点发送的回报数据;判断所述回报数据与首次接收的回报数据之间的时间区间是否大于预设时长;若所述回报数据与首次接收的回报数据之间的时间区间大于预设时长,则基于回报成功率向所述子节点发送对应的路由模式设置消息,以便所述子节点基于所述路由模式消息设置对应的路由模式;若所述回报数据与首次接收的回报数据之间的时间区间小于等于预设时长,则向子节点发送确认消息。
- 根据权利要求1所述的节点模式设置方法,其特征在于,所述回报成功率的计算方式,包括:每次接收到回报数据时,基于所述回报数据的接收状态数据进行成功率计算,得到所述回报成功率。
- 根据权利要求2所述的节点模式设置方法,其特征在于,基于所述回报数据的接收状态数据进行成功率计算,得到所述回报成功率,包括:确定回报率时间区间;基于所述回报数据的接收状态数据在所述回报率时间区间内进行成功率计算,得到所述回报成功率。
- 根据权利要求1所述的节点模式设置方法,其特征在于,基于回报成功率向所述子节点发送对应的路由模式设置消息,包括:若所述回报成功率大于预设成功率,将根节点模式的设置信息作为确认消息,并向所述子节点发送所述确认消息。
- 根据权利要求1所述的节点模式设置方法,其特征在于,基于回报成功率向所述子节点发送对应的路由模式设置消息,包括:若所述回报成功率小于等于预设成功率,将叶子节点模式的设置信息和目标父节点作为确认消息,并向所述子节点发送所述确认消息。
- 根据权利要求1所述的节点模式设置方法,其特征在于,还包括:所述根节点记录所述子节点上报数据采用的父节点。
- 根据权利要求5所述的节点模式设置方法,其特征在于,所述目标父节点的确定方式,包括:所述根节点确定所述子节点对应的每个父节点的采用次数;将采用次数最大的父节点作为所述目标父节点。
- 根据权利要求1所述的节点模式设置方法,其特征在于,还包括:所述根节点记录所述子节点发送所述回报数据的时间。
- 根据权利要求1所述的节点模式设置方法,其特征在于,还包括:所述子节点对所述路由模式设置消息进行解析,得到路由模式设置信息;基于所述路由模式设置信息进行路由模式设置。
- 根据权利要求9所述的节点模式设置方法,其特征在于,基于所述路由模式设置信息进行路由模式设置,包括:若所述路由模式设置信息为叶子节点模式时,所述子节点设置为禁止添加新节点状态。
- 根据权利要求9所述的节点模式设置方法,其特征在于,基于所述路由模式设置信息进行路由模式设置,包括:若所述路由模式设置信息为根节点模式时,所述子节点判断所述路由模式设置信息中是否包含父节点信息;若所述路由模式设置信息中包含父节点信息,则基于所述父节点信息设置发送目标对象指令到对应的目标父节点;若所述路由模式设置信息中不包含父节点信息,则接收新的回报数据。
- 根据权利要求9所述的节点模式设置方法,其特征在于,所述子节点对所述路由模式设置消息进行解析,得到路由模式设置信息,包括:所述子节点对所述路由模式设置消息进行检查;当所述检查通过时,对所述路由模式设置消息进行解析,得到所述路由模式设置信息。
- 根据权利要求1所述的节点模式设置方法,其特征在于,包括:在对所述子节点进行设置的过程中设置对应的父节点。
- 根据权利要求13所述的节点模式设置方法,其特征在于,所述对所述子节点进行设置的过程中设置对应的父节点,包括:对所述子节点每次返回回报数据的所述父节点进行历史记录。
- 根据权利要求1所述的节点模式设置方法,其特征在于,所述预设时长基于以下任一项进行设置:网络中的状态、技术人员的经验、网络的运行热度。
- 根据权利要求6所述的节点模式设置方法,其特征在于,所述父节点的确定方式,包括:将低功耗有损网络路由协议网络中的根节点的最前端的节点作为所述父节点。
- 根据权利要求2所述的节点模式设置方法,其特征在于,所述基于所述回报数据的接收状态数据进行成功率计算,得到所述回报成功率,包括:在系统运行的后台对回报数据的成功率进行计算,得到对应的所述回报成功率。
- 一种无线低功耗有损网络的节点模式设置装置,其特征在于,包括:回报数据接收模块,用于接收到子节点发送的回报数据;回报数据判断模块,用于判断所述回报数据与首次接收的回报数据之间的时间区间是否大于预设时长;模式消息发送模块,用于当所述回报数据与首次接收的回报数据之间的时间区间大于预设时长,基于回报成功率向所述子节点发送对应的路由模式设置消息,以便所述子节点基于所述路由模式消息设置对应的路由模式;成功消息发送模块,用于当所述回报数据与首次接收的回报数据之间的时间区间小于等于预设时长,向子节点发送确认消息。
- 一种终端设备,其特征在于,包括:存储器,用于存储计算机程序;处理器,用于执行所述计算机程序时实现如权利要求1至17任一项所述的节点模式设置方法的步骤。
- 一种非易失性可读存储介质,其特征在于,所述非易失性可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至17任一项所述的节点模式设置方法的步骤。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211270160.9 | 2022-10-18 | ||
| CN202211270160.9A CN115348652B (zh) | 2022-10-18 | 2022-10-18 | 一种无线低功耗有损网络的节点模式设置方法及其装置 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2024082804A1 true WO2024082804A1 (zh) | 2024-04-25 |
Family
ID=83957096
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2023/114277 Ceased WO2024082804A1 (zh) | 2022-10-18 | 2023-08-22 | 一种无线低功耗有损网络的节点模式设置方法及其装置 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN115348652B (zh) |
| WO (1) | WO2024082804A1 (zh) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115348652B (zh) * | 2022-10-18 | 2023-03-24 | 苏州浪潮智能科技有限公司 | 一种无线低功耗有损网络的节点模式设置方法及其装置 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120117208A1 (en) * | 2010-11-09 | 2012-05-10 | Cisco Technology, Inc. | Dynamic Address Assignment for Address Aggregation in Low Power and Lossy Networks |
| CN110233709A (zh) * | 2019-06-11 | 2019-09-13 | 南方电网科学研究院有限责任公司 | 一种rpl路由方法及相关装置 |
| US20190288939A1 (en) * | 2018-03-19 | 2019-09-19 | Futurewei Technologies, Inc. | Named data routing protocol for low-power and lossy wide-area networks (nrpl) |
| US20220053405A1 (en) * | 2018-12-04 | 2022-02-17 | Chongqing University Of Posts And Telecommunications | Ipv6 node mobility management method based on rpl routing protocol |
| CN115348652A (zh) * | 2022-10-18 | 2022-11-15 | 苏州浪潮智能科技有限公司 | 一种无线低功耗有损网络的节点模式设置方法及其装置 |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8937886B2 (en) * | 2010-12-17 | 2015-01-20 | Cisco Technology, Inc. | Dynamic reroute scheduling in a directed acyclic graph (DAG) |
| CN104243339B (zh) * | 2014-09-25 | 2017-06-23 | 北京交通大学 | 一种基于RPL的多个sink节点的负载均衡方法 |
| CN105357730B (zh) * | 2015-12-14 | 2019-06-07 | 新开普电子股份有限公司 | 一种无线路由方法和无线抄表系统 |
| CN107566280A (zh) * | 2016-06-30 | 2018-01-09 | 上海诺基亚贝尔股份有限公司 | 验证组播数据路径的方法和路由器设备 |
-
2022
- 2022-10-18 CN CN202211270160.9A patent/CN115348652B/zh active Active
-
2023
- 2023-08-22 WO PCT/CN2023/114277 patent/WO2024082804A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120117208A1 (en) * | 2010-11-09 | 2012-05-10 | Cisco Technology, Inc. | Dynamic Address Assignment for Address Aggregation in Low Power and Lossy Networks |
| US20190288939A1 (en) * | 2018-03-19 | 2019-09-19 | Futurewei Technologies, Inc. | Named data routing protocol for low-power and lossy wide-area networks (nrpl) |
| US20220053405A1 (en) * | 2018-12-04 | 2022-02-17 | Chongqing University Of Posts And Telecommunications | Ipv6 node mobility management method based on rpl routing protocol |
| CN110233709A (zh) * | 2019-06-11 | 2019-09-13 | 南方电网科学研究院有限责任公司 | 一种rpl路由方法及相关装置 |
| CN115348652A (zh) * | 2022-10-18 | 2022-11-15 | 苏州浪潮智能科技有限公司 | 一种无线低功耗有损网络的节点模式设置方法及其装置 |
Non-Patent Citations (1)
| Title |
|---|
| ZHANG, HONGXIN: "Research on Experimental Evaluation of RPL Protocol of WSN", WIRELESS INTERNET TECHNOLOGY, no. 21, 1 November 2015 (2015-11-01), pages 151 - 154, XP093160815 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115348652B (zh) | 2023-03-24 |
| CN115348652A (zh) | 2022-11-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN114867065B (zh) | 基站算力负载均衡方法、设备及存储介质 | |
| EP3386152B1 (en) | Method, device and system for realizing heartbeat mechanism | |
| JP7661629B2 (ja) | データ伝送制御方法、装置、コンピュータ機器、及びコンピュータプログラム | |
| US12395366B2 (en) | Traffic charging method, network device and storage medium | |
| US20030088679A1 (en) | Proxy reply method and apparatus | |
| EP4175333A1 (en) | Information collection method and apparatus, storage medium, and electronic apparatus | |
| CN110881006B (zh) | 发送报文的方法、网络设备及计算机存储介质 | |
| US10136375B2 (en) | Method for service data management, apparatus, and system | |
| WO2024082804A1 (zh) | 一种无线低功耗有损网络的节点模式设置方法及其装置 | |
| CN106464670A (zh) | 网络实体及服务策略管理方法 | |
| CN120166074A (zh) | 流量调度方法、装置、电子设备及程序产品 | |
| CN115996443B (zh) | 一种无线mesh组网方法及系统 | |
| CN107548543A (zh) | 返修概率预测方法、装置、服务器、终端及存储介质 | |
| WO2024164822A1 (zh) | 联合学习方法、装置、相关设备及存储介质 | |
| WO2024093876A1 (zh) | 一种通信方法及装置 | |
| US20210105662A1 (en) | Network service device, session management device and operation methods thereof | |
| CN118353811B (zh) | 网络状态的检测方法、装置、计算机设备及存储介质 | |
| Ansari et al. | Routing-oriented update scheme (ROSE) for link state updating | |
| US12101251B2 (en) | Method and apparatus for switching length of bidirectional forwarding detection packet and storage medium | |
| EP4554180A1 (en) | Routing information processing method and system, and network device and storage medium | |
| US20220353142A1 (en) | Data Obtaining Method and Apparatus | |
| CN116056149B (zh) | 一种iab宿主节点的单工作业方法、装置、设备及介质 | |
| US20260052071A1 (en) | Control and model training for wireless network | |
| CN111083066B (zh) | 物联网系统、设备消息流转方法及装置 | |
| CN117499929A (zh) | 5g核心网用户面网元的业务处理系统 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23878799 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 23878799 Country of ref document: EP Kind code of ref document: A1 |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 19/09/2025) |