TSCH scheduling method applicable to high-density low-power-consumption lossy network and capable of realizing emergency alarm
By introducing load balancing, improved resource trees and hashing methods into the TSCH network, the transmission of emergency data packets is optimized, which solves the delay and conflict problems of emergency transmission in high-density scenarios and achieves more efficient emergency response.
Patent Information
- Application Number
- CN202410651260.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-03
AI Technical Summary
The TSCH network cannot meet the transmission requirements of emergency data packets in high-density scenarios, and has problems with delays and conflicts, making it unable to effectively respond to emergencies.
The load balancing method based on score calculation, improved binary resource tree and NHash method are used to optimize time slot allocation and data transmission, improve the priority and transmission efficiency of emergency data packets, and reduce the probability of conflict.
In high-density scenarios, time delays are reduced by 50%, network reliability is improved by 10%, and emergency response efficiency and orderliness are improved.
Smart Images

Figure CN118590440A
Abstract
Description
Technical Field
[0001] The invention relates to the communication field of low-power lossy networks, and in particular to a TSCH scheduling method for realizing emergency event alarm in a TSCH network. Background Art
[0002] Low-power and lossy networks (LLNs) are widely used in IoT applications such as smart cities, industrial automation, and agricultural monitoring due to their low power consumption, high flexibility, and strong adaptability. Time-slotted channel hopping (TSCH) is a communication protocol designed for LLNs that divides time into small time slots and jumps between different communication channels within each time slot. By synchronizing communication scheduling between multiple nodes, TSCH minimizes conflicts and interference, improves reliability, and reduces latency, providing a reliable and energy-efficient communication method for IoT applications.
[0003] Although TSCH has many advantages mentioned above and is widely used, its scheduling strategy is usually static, and the allocation of time slot resources and channels is predetermined. If it is a sudden emergency data packet, it must wait until the next idle time slot. For example, a large number of smoke and temperature alarms in battery storage need to send emergency data to the gateway to warn when they detect sudden situations such as smoke. However, in the face of similar high-density emergency scenarios with very few idle time slots, TSCH is difficult to meet the transmission requirements of such common emergency data packets. Summary of the invention
[0004] In order to overcome the shortcomings of the previous TSCH time slot allocation strategy being not flexible enough, resulting in the inability to meet the emergency event transmission needs in high-density scenarios commonly used in modern Internet of Things applications, the present invention provides a TSCH scheduling method for realizing emergency event alarms in high-density, low-power and lossy networks.
[0005] Generally speaking, to solve the emergency response problem of high-density LLN, two problems need to be solved: one is to detect and prioritize emergency data packets to avoid unnecessary delays, and the other is to resolve possible conflicts between emergency data packets to ensure the orderliness of emergency response work.
[0006] In order to overcome the fact that the previous TSCH time slot allocation strategy is not flexible enough, resulting in the inability to meet the emergency transmission needs in high-density scenarios commonly used in modern Internet of Things applications. The present invention provides a TSCH scheduling method for realizing emergency alarms in low-power lossy networks under high density. From a general point of view, in order to solve the emergency response problem of high-density LLN, two problems need to be solved. One is that emergency data packets need to be detected and prioritized to avoid unnecessary delays. The other is to resolve possible conflicts between emergency data packets to ensure the orderliness of emergency response work.
[0007] In order to optimize the performance of the algorithm in a high-density network, the present invention proposes a new scheduling method suitable for a multi-gateway network. In order to solve the above problems, the present invention adopts the following technical solutions:
[0008] A TSCH scheduling method for realizing emergency event alarm in a high-density low-power lossy network includes the following steps:
[0009] Step S1: Introduce a method based on score calculation to evaluate network load and perform load balancing when nodes join a sub-network;
[0010] Step S2: Introduce the improved binary resource tree to reasonably schedule the regular data transmission in the queue;
[0011] Step S3: Reduce the possibility of conflict in emergency data transmission and reasonably schedule emergency type data through a method based on NHash.
[0012] As a further description of the above technical solution:
[0013] The step S1 comprises the following steps:
[0014] Step S11: Calculate the score for each node n of the sub-network. The score is calculated as follows:
[0015] Score(n)=0.2*P regular +0.8*P emergency Formula (1)
[0016] Since we tend to prioritize urgent packets, we set its weight to 0.8 to make it more decisive for the result;
[0017] Step S12: Calculate the sum of scores of each sub-network;
[0018] Step S13: The newly added node is added to the sub-network with the smallest total score through the broadcast control information, so as to achieve load balance between each sub-network;
[0019] As a further description of the above technical solution:
[0020] A binary resource tree is introduced in step S2. In this binary resource tree, each tree node represents an available time slot, which is represented by a tuple (m, n), where m is used to determine the length of the TSCH time slot frame as 2 to the power of m, and n is used to determine the offset of the time slot resource. The resources allocated to the node are jointly determined by m and n.
[0021] As a further description of the above technical solution:
[0022] The step S2 comprises the following steps:
[0023] Step S21: The sender makes a specific scheduling selection according to the data type to be sent. If it is a regular data type, the negotiation process is carried out; if it is an emergency data type, the negotiation process is skipped;
[0024] Step S22: The sender and the receiver negotiate the selection of resource nodes. The sender estimates the required value of m based on the number of data packets to be sent and sends it to the receiver to determine the length of the time slot frame.
[0025] Step S23: The receiver selects an idle resource node in the layer m corresponding to the binary tree, and sends the corresponding time slot offset n to the sender.
[0026] Step S24: The sender sends m The receiver sends data at a time slot with an offset of n in the time slot frame, and the receiver receives data at the same time slot.
[0027] As a further description of the above technical solution:
[0028] In step S3, the present invention further divides the time slot frame into smaller segments, three of which are used to send Request-to-Send (RTS) control packets, one segment is used to send Clear-to-Send (CTS) control packets, and the last segment is used for data transmission, and improves its sending and receiving processes for emergency alarm scenarios.
[0029] As a further description of the above technical solution:
[0030] The step S3 comprises the following steps:
[0031] Step S31: The sending node in the network that needs the current time slot resource uses the Nhash function to perform a hash calculation on the node ID and the network ID where the node is located, and after obtaining the time when it should send the RTS control packet in the new segment of the time slot, sends the RTS control information to the gateway, where the formula of NHash is as follows:
[0032] Offset SG (n) = mod (Hash (ID << 16 + NID), L SG) Formula (2)
[0033] Among them, Offset represents the offset in segments, and L represents the length of the segment, for example, 3. The hash function used is SHA-256 to reduce the possibility of conflict.
[0034] Step S32: According to the first-come-first-served principle, the gateway sends a CTS segment broadcast CTS control packet in the corresponding segment to notify each node to obtain the node ID of the current time slot resource.
[0035] Step S33: The node that obtains the resources can bypass the negotiation process, select an idle resource node in the right subtree, and use the remaining segments of the selected time slot to send the emergency data packet.
[0036] The present invention avoids conflicts in high-density scenarios and completes the allocation of time slots for emergency events, thereby realizing emergency event alarms.
[0037] Advantages of the present invention: The present invention is committed to improving the flexibility of the TSCH protocol allocation strategy. Previous work has taken a solid step towards flexible resource allocation, but has not yet solved the emergency response problem in high-density LLNs. The present invention allows nodes in the network to adjust specific scheduling strategies based on the data to be sent and the load in the network, especially in dealing with data transmission and reception problems in emergency scenarios. Compared with previous TSCH solutions, the present invention will reduce time delays by 50% and improve reliability by 10% under various network conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a flow chart of the present invention.
[0039] Figure 2 The invention relates to an improved binary resource tree.
[0040] Figure 3 This is the segmentation of the time slot frame involved in the present invention. DETAILED DESCRIPTION
[0041] The technical solution of the present invention is described in detail below in conjunction with the accompanying drawings.
[0042] A TSCH scheduling method for realizing emergency event alarm in a high-density low-power lossy network includes the following steps:
[0043] Step S1: Introduce a method based on score calculation to evaluate network load and perform load balancing when nodes join a sub-network;
[0044] Step S2: Introduce the improved binary resource tree to reasonably schedule the regular data transmission in the queue;
[0045] Step S3: Reduce the possibility of conflict in emergency data transmission and reasonably schedule emergency data through a method based on NHash;
[0046] Specifically, Figure 1 As shown, step S1 includes the following steps:
[0047] Step S11: Calculate the score for each node n of the sub-network. The score is calculated as follows:
[0048] Score(n)=0.2*P regular +0.8*P emergency Formula (1)
[0049] Since we tend to prioritize urgent packets, we set its weight to 0.8 to make it more decisive for the result;
[0050] Step S12: Calculate the sum of scores of each sub-network;
[0051] Step S13: The newly added node is added to the sub-network with the smallest total score through the broadcast control information, so as to achieve load balance between each sub-network;
[0052] Specifically, Figure 2 As shown, a binary resource tree is introduced in step S2. In this binary resource tree, each tree node represents an available time slot, which is represented by a tuple (m, n), where m is used to determine the length of the TSCH time slot frame as 2 to the power of m, and n is used to determine the offset of the time slot resource. The resources allocated to the node are jointly determined by m and n.
[0053] Specifically, Figure 1 As shown, step S2 includes the following steps:
[0054] Step S21: The sender makes a specific scheduling selection according to the data type to be sent. If it is a regular data type, the negotiation process is carried out; if it is an emergency data type, the negotiation process is skipped;
[0055] Step S22: The sender and the receiver negotiate the selection of resource nodes. The sender estimates the required value of m based on the number of data packets to be sent and sends it to the receiver to determine the length of the time slot frame.
[0056] Step S23: The receiver selects an idle resource node in the layer m corresponding to the binary tree, and sends the corresponding time slot offset n to the sender.
[0057] Step S24: The sender sends m The receiver sends data at a time slot with an offset of n in the time slot frame, and the receiver receives data at the same time slot.
[0058] Specifically, Figure 3As shown, in step S3, the present invention further divides the time slot frame into smaller segments, three of which are used to send Request-to-Send (RTS) control packets, one segment is used to send Clear-to-Send (CTS) control packets, and the last segment is used for data transmission, and improves its sending and receiving processes for emergency alarm scenarios.
[0059] Specifically, Figure 1 As shown, step S3 includes the following steps:
[0060] Step S31: The sending node in the network that needs the current time slot resource uses the Nhash function to perform a hash calculation on the node ID and the network ID where the node is located, and after obtaining the time when it should send the RTS control packet in the new segment of the time slot, sends the RTS control information to the gateway, where the formula of NHash is as follows:
[0061] Offset SG (n) = mod (Hash (ID << 16 + NID), L SG) Formula (2)
[0062] Among them, Offset represents the offset in segments, and L represents the length of the segment, for example, 3. The hash function used is SHA-256 to reduce the possibility of conflict.
[0063] Step S32: According to the first-come-first-served principle, the gateway sends a CTS segment broadcast CTS control packet in the corresponding segment to notify each node to obtain the node ID of the current time slot resource.
[0064] Step S33: The node that obtains the resources can bypass the negotiation process, select an idle resource node in the right subtree, and use the remaining segments of the selected time slot to send the emergency data packet.
[0065] The present invention has been implemented in the contiki operating system and evaluated through simulation, evaluating the performance of the scheduling method in processing emergency data packets and comparing it with previous work to ensure that the nodes in the network have enough slots to send emergency data packets and heartbeat data packets, while allocating different probabilities of emergency events and heartbeat data packet transmission cycles to all nodes, simulating the changes in event probabilities caused by different physical locations of nodes in a real environment.
[0066] The specific evaluation aspects can be divided into the impact of channel load, the impact of channel bursts, and the impact of network density. The experimental results show that compared with the previous TSCH solution, the present invention reduces the time delay by 50% under various network conditions, improves the reliability by 10%, and has better performance in emergency scenarios.
[0067] The contents described in the embodiments of this specification are merely an enumeration of the implementation forms of the inventive concept. The protection scope of the present invention should not be regarded as limited to the specific forms described in the embodiments. The protection scope of the present invention also extends to equivalent technical means that can be conceived by those skilled in the art based on the inventive concept.
Claims
1. A TSCH scheduling method for realizing emergency alarm in a high-density, low-power and lossy network, characterized in that: The steps include: Step S1: Introduce a method based on score calculation to evaluate network load and perform load balancing when nodes join a sub-network; Step S2: Introduce the improved binary resource tree to reasonably schedule the regular data transmission in the queue; Step S3: Reduce the possibility of conflict in emergency data transmission and reasonably schedule emergency type data through a method based on NHash.
2. A TSCH scheduling method for realizing emergency alarm in a high-density, low-power and lossy network according to claim 1, characterized in that: Step S1 includes the following steps: Step S11: Calculate the score of each node n in the sub-network, where: The score is calculated as follows: Score(n)=0.2*P regualar +0.8*P emergency Formula (1) Step S12: Calculate the sum of scores of each sub-network; Step S13: The newly added node is added to the sub-network with the smallest total score through the broadcast control information, so as to achieve load balance among each sub-network.
3. The TSCH scheduling method for realizing emergency alarm in a high-density, low-power and lossy network according to claim 1, characterized in that: A binary resource tree is introduced in step S2. In this binary resource tree, each tree node represents an available time slot, which is represented by a tuple (m, n), where m is used to determine the length of the TSCH time slot frame as 2 to the power of m, and n is used to determine the offset of the time slot resource. The resources allocated to the node are jointly determined by m and n.
4. The TSCH scheduling method for realizing emergency alarm in a high-density, low-power and lossy network according to claim 1, characterized in that: Step S2 includes the following steps: Step S21: The sender makes a specific scheduling selection according to the data type to be sent. If it is a regular data type, the negotiation process is carried out; if it is an emergency data type, the negotiation process is skipped; Step S22: The sender and the receiver negotiate the selection of resource nodes. The sender estimates the required value of m based on the number of data packets to be sent and sends it to the receiver to determine the length of the time slot frame. Step S23: The receiver selects an idle resource node in the layer m corresponding to the binary tree, and sends the corresponding time slot offset n to the sender; Step S24: The sender sends m The receiver sends data at a time slot with an offset of n in the time slot frame, and the receiver receives data at the same time slot.
5. The TSCH scheduling method for realizing emergency alarm in a high-density, low-power and lossy network according to claim 1, characterized in that: In step S3, the time slot frame is further divided into smaller segments, three of which are used to send Request-to-Send (RTS) control packets, one segment is used to send Clear-to-Send (CTS) control packets and the last segment is used for data transmission, and the sending and receiving processes are improved for emergency alarm scenarios.
6. The TSCH scheduling method for realizing emergency event alarm in a high-density, low-power and lossy network according to claim 1, characterized in that: Step S3 includes the following steps: Step S31: The sending node in the network that needs the current time slot resource uses the Nhash function to perform a hash calculation on the node ID and the network ID where the node is located, and after obtaining the time when it should send the RTS control packet in the new segment of the time slot, sends the RTS control information to the gateway, where the formula of NHash is as follows: <h2 style=";text-align:left;direction:ltr">Offset<h2 style=";text-align:left;direction:ltr"> SG <h2 style=";text-align:left;direction:ltr"> (n) = mod(Hash(ID<<16+NID),L<h2 style=";text-align:left;direction:ltr"> SG <h2 style=";text-align:left;direction:ltr"> (2) Among them, Offset represents the offset in segments, L represents the length of the segment, and the hash function used is SHA-256 to reduce the possibility of conflict; Step S32: According to the first-come-first-served principle, the gateway sends a CTS segment broadcast CTS control packet in the corresponding segment to notify each node to obtain the node ID of the current time slot resource; Step S33: The node that obtains the resources can bypass the negotiation process, select an idle resource node in the right subtree, and use the remaining segments of the selected time slot to send the emergency data packet.
