Energy-sensitive TSCH scheduling method and system in low-power lossy network

By designing a unicast time slot frame and resource binary tree mechanism that adapts to energy state and traffic load, the energy constraint problem in TSCH scheduling is solved, adaptive on-demand scheduling and channel jump are realized, time slot conflict is avoided, and network energy is improved Utilization and working life.

CN115515241BActive Publication Date: 2024-11-22XIAMEN SHUYU TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211130554.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-15
Publication Date
2024-11-22
Estimated Expiration
2042-09-15

AI Technical Summary

Technical Problem

The existing TSCH scheduling method fails to effectively consider the energy constraints of low-power lossy network nodes, resulting in scheduling failure and resource waste.

Method used

Three types of unicast time slot frames (PTS, PRS, autonomous unicast time slot frames) and resource binary tree mechanisms are designed to calculate the adaptive frame size based on the energy state and traffic load of the LLN network, and adaptive on-demand scheduling is completed through interaction, and Implement periodic jumps of channels to avoid time slot conflicts.

Benefits of technology

It effectively avoids time slot conflicts, improves the energy utilization rate and scheduling success rate of the LLN network, and extends the working life of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115515241B_ABST
    Figure CN115515241B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of low-power lossy network, and discloses an energy-sensitive TSCH scheduling method and system in a low-power lossy network, including the following steps: S1. Design three unicast time slot frames, and use the three unicast time slot frames as the sending node, receiving node, and traffic processing frame of the link of the LLN network respectively; S2. Calculate and adapt the size of the time slot frame according to the sending node of each link of the network; After calculating the size of the sending frame, each node establishes and maintains a resource binary tree to avoid time slot conflicts of adjacent nodes; The receiving node selects idle resources to return through the resource binary tree; Thus, the frame configuration of each link in the next cycle is completed through interaction, and adaptive on-demand TSCH scheduling is realized; S3. Based on the direction of each link and the current cycle, the transmission channel of the link in the current cycle is calculated to realize the periodic hopping of the channel. The present invention solves the problem that the prior art does not consider the energy constraints of LLN network nodes, and has the characteristic of avoiding time slot conflicts.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of low-power lossy networks, and more specifically, to an energy-sensitive TSCH scheduling method and system in a low-power lossy network. Background Art

[0002] Low-power lossy networks are regarded as the cornerstone of the Internet of Things and cyber-physical systems. They connect multiple low-power and resource-constrained devices through wireless links and are widely used in environmental monitoring, industrial automation, and smart buildings. In response to the increasing traffic demand and strict energy constraints of LLN networks, the TSCH (Time Slotted Channel Hopping) link layer protocol proposed by the IEEE 802.15.4e standard is considered to be a promising method for applying LLN networks. TSCH has two main contributions: 1. It uses enhanced beacons (EB) to maintain time synchronization across the entire network and avoid energy waste caused by redundant transmission and idle listening by allocating accurate scheduling time slots to nodes; 2. It uses multiple channels to achieve frequency hopping, which is more robust to wireless interference and multipath fading.

[0003] TSCH defines a time-slot frequency-hopping communication mechanism, but does not define time slot and channel allocation methods for control traffic, including EB traffic and RPL routing protocol traffic used in LLN networks, and application data traffic, which leads to the TSCH resource scheduling problem. Many methods have been proposed to address this problem, which can be roughly divided into three categories: autonomous, distributed, and centralized. The distributed scheduling method is a compromise solution. On the one hand, it expands local information for scheduling calculations through interactions between neighboring nodes, avoiding the problem that autonomous scheduling methods cannot solve load balancing problems; on the other hand, information interaction is only carried out in a local range, avoiding the control overhead brought by centralized scheduling methods. Therefore, the distributed scheduling method is more flexible in design and has a wider range of application scenarios.

[0004] To alleviate the energy constraints of wireless sensor network nodes, energy harvesting, or EH technology, is applied to various wireless sensor networks, where EH nodes harvest ambient energy, such as solar energy, wind energy, radio frequency, etc., to achieve sustainable operation. Introducing energy harvesting technology into LLN networks will further alleviate energy challenges, and under the same scheduling method, LLN networks will have a longer working life.

[0005] The challenge of applying the TSCH scheduling method to the energy harvesting LLN network is that the energy harvesting and data collection of the EH node are coupled and random. For example, in the transmission time slot scheduled by the node, the scheduling may fail due to insufficient node energy or due to the lack of data cache. Most of the TSCH scheduling methods proposed previously do not consider the energy constraints of the LLN network nodes.

[0006] The existing method has a time slot scheduling and channel allocation algorithm for a wireless communication protocol with an access method of TSCH, which is used to generate a time slot scheduling and channel allocation plan for each superframe and optimize the communication delay. The algorithm adopts a hop-by-hop optimization method for all data streams in the superframe. The stream link, channel and time slot are first combined into a four-dimensional tuple, and then a multidimensional conflict graph is established based on the four-dimensional tuple to describe the constraints in the time slot scheduling and channel allocation process. Under the model of the multidimensional conflict graph, the time slot scheduling and channel allocation are converted into a problem of finding the maximum weighted independent subset, so that it can be solved.

[0007] However, the existing methods do not consider the energy constraints of LLN network nodes. Therefore, how to invent a TSCH scheduling method that can consider the energy constraints of LLN network nodes is an urgent problem to be solved in the field of this technology. Summary of the invention

[0008] In order to solve the problem that the prior art does not consider the energy constraints of LLN network nodes, the present invention provides an energy-sensitive TSCH scheduling method and system in a low-power lossy network, which has the characteristic of avoiding time slot conflicts.

[0009] In order to achieve the above-mentioned purpose of the present invention, the technical scheme adopted is as follows:

[0010] An energy-sensitive TSCH scheduling method in a low-power lossy network comprises the following steps:

[0011] S1. Design three unicast time slot frames, and use the three unicast time slot frames as the sending node, receiving node, and traffic processing frame of the link of the LLN network respectively;

[0012] S2. Calculate and adapt the time slot frame size according to the sending node of each link of the LLN network; after calculating the sending frame size, each node in the LLN network sets up and maintains a resource binary tree to avoid time slot conflicts of adjacent nodes; the receiving node selects idle resources through the resource binary tree and returns; thus, the frame configuration of each link in the next cycle is completed through interaction, realizing adaptive on-demand TSCH scheduling;

[0013] S3. Based on the direction of each link and the current period, the transmission channel of the link in the current period is calculated to achieve periodic hopping of the channel.

[0014] Preferably, in step S1, three unicast time slot frames are designed, specifically:

[0015] A periodically configured transmission time slot frame is designed, and the periodically configured transmission time slot frame is called a PTS frame, and the PTS frame is used for a transmitting node of each link in the LLN network;

[0016] A periodically configured receiving time slot frame is designed, and the periodically configured receiving time slot frame is called a PRS frame, and the PRS frame is used for a receiving node of each link in the LLN network;

[0017] An autonomous unicast time slot frame is designed. The autonomous unicast time slot frame is used to process the RPL frame unicast control traffic of the LLN network and temporarily process the unicast data traffic when the link is not configured with PTS / PRS.

[0018] Furthermore, the LLN network also includes EB frames for processing TSCH control traffic. When a node of the LLN network is scheduled to perform multiple actions in a time slot, the selection is based on the following priority: EB frame>RPL frame>autonomous unicast time slot frame>PTS / PRS frame.

[0019] Furthermore, in the step S2, the size of the time slot frame is calculated and adapted according to the sending node of each link of the LLN network; after calculating the sending frame size, each node in the LLN network establishes and maintains a resource binary tree to avoid time slot conflicts of adjacent nodes; the receiving node selects idle resources through the resource binary tree to return; thus, the frame configuration of each link in the next cycle is completed through interaction, and the specific steps are:

[0020] S201. Calculate the PTS / PRS frame size of the adapted sending node according to the traffic load and energy cache status of each link of the LLN network;

[0021] S202. Send the configuration request of the PTS / PRS frame adapted to the sending node to the receiving node. Each node in the LLN network establishes and maintains a binary resource tree to avoid time slot conflicts between adjacent nodes. The receiving node selects idle resources through the binary resource tree to return and complete the time slot frame transmission.

[0022] Furthermore, in the step S201, the PTS / PRS frame size of the adapted sending node is calculated according to the traffic load and energy buffer state of each link of the LLN network, and the specific steps are:

[0023] A1. For the sending node i of the link of the LLN network, suppose it has n neighbor nodes; node i counts the number of energy packets arriving in the last period T and the number of data packets arriving to each neighbor; use E i represents the number of energy packets arriving at node i, D i,jrepresents the number of data packets arriving from node i to neighbor j;

[0024] A2. At the beginning of the cycle, the variable data and the number of energy group arrivals are initialized to 0. Each time an energy group is collected within T time, E i Add 1, and collect each data packet sent to j. i,j Add 1; Node i determines a set of PTS frame sizes based on the packet arrival rate of the previous cycle and the number of currently cached packets Used to schedule data transmission to each neighbor in the current cycle;

[0025] A3. S according to traffic load T Initialize with D′ i,j Indicates the number of data packets sent to node j in the cache of node i at the beginning of the cycle. The size of each frame is satisfy Ensure that the number of scheduling times for each link in the current cycle matches the traffic load, and avoid scheduling failure due to insufficient data; adjust S according to the energy cache status T ;

[0026] A4. Use S R represents a set of PRS frame sizes currently maintained by the node, and the average scheduling interval ISS of all PTS / PRS frames is calculated by equation Calculate; use E′ i represents the number of energy packets cached by node i at the beginning of the period;

[0027] A5. Determine whether ISS meets If it is satisfied, according to the average scheduling interval configured by the current PTS / PRS frame, there will be no scheduling failure due to insufficient energy in the current cycle, and output S T If you cannot satisfy Continuously increasing S T The frame size in until the condition is met;

[0028] A6. Order That is, the current S T The difference between the number of scheduling times per unit time and the number of energy group arrivals; judge CDV, if CDV≤0, output S T , otherwise, in S T Select the smallest one satisfy If no such frame size exists, select the current S T The maximum frame size in the selected frame is increased to 2 times the original size and updated Then re-judge CDV; repeat this process until it satisfies

[0029] A7. The node carries S on the data packet sent to neighbor j T The corresponding frame size N j , for node j to configure PRS frame.

[0030] Furthermore, in the step S202, the configuration request of the PTS / PRS frame adapted to the sending node is sent to the receiving node, each node in the LLN network establishes and maintains a resource binary tree to avoid time slot conflicts of adjacent nodes, and the receiving node selects idle resources through the resource binary tree to return, and the specific steps are:

[0031] B1. After the PTS / PRS frame configuration request, select a transmission time slot for the link that does not conflict with other links of this node;

[0032] B2. Establish and maintain a resource binary tree at each node of the link, select conflict-free resource nodes for different links on the resource binary tree, and schedule different associated links of each node and its neighboring nodes without conflict;

[0033] B3. Through the resource binary tree, the link receiving node selects idle resources, configures the PRS receiving frame corresponding to the link resource, and returns the confirmation packet with the time offset. After receiving the confirmation, the sending node completes the configuration of the PTS frame, thereby completing the periodic configuration process.

[0034] Furthermore, each node of the resource binary tree represents a periodic time slot resource and can be equally divided into two larger conflict-free frames; if a node has been allocated, its descendant nodes will partially conflict with the node, and the associated ancestor nodes will completely conflict with the node and cannot be allocated again, while other nodes except the descendant nodes and the associated ancestor nodes can still be allocated to other links without conflict.

[0035] Furthermore, in the step S202, after the receiving node receives the PTS / PRS frame configuration request N, if no idle resource node is found in the corresponding layer of the resource binary tree, a request failure notification is returned during confirmation; if the link already has a frame configuration, both parties maintain the old PTS / PRS frame communication; the sending node increases the parameter N by 1 when requesting the frame configuration next time, reducing the demand to request a larger frame;

[0036] After the sending node receives the confirmation, if the time offset returned by the receiving node is not available on the local resource binary tree, the sending node revokes the old PTS frame and sets the resource unavailable bit the next time it unicasts data through the autonomous unicast time slot frame, requiring the receiving node to reselect the time offset until the sending node successfully configures the PTS.

[0037] Furthermore, in step S3, the hopping on different channels is changed over time according to the transmission channel, specifically:

[0038]

[0039] Among them, offset channel is the channel offset of a unidirectional link, and ASFN represents the absolute time slot frame number, which is defined as S PTS / PRS Indicates the link PTS / PRS frame size; MAC i represents the physical address of the receiving node i, and the number of available channels for the PTS / PRS frame is

[0040] A second aspect of the present invention provides an energy-sensitive TSCH scheduling system in a low-power lossy network, comprising a time slot frame design module, an adaptive on-demand scheduling module, and a hopping channel calculation module;

[0041] The time slot frame design module is used to design three unicast time slot frames, and the three unicast time slot frames are used as the sending node, receiving node, and traffic processing frame of the link of the LLN network respectively;

[0042] The adaptive on-demand scheduling module is used to calculate and adapt the size of the time slot frame according to the sending node of each link of the LLN network; after calculating the sending frame size, each node in the LLN network establishes and maintains a resource binary tree to avoid time slot conflicts of adjacent nodes; the receiving node selects idle resources according to the resource binary tree and returns; thus, the frame configuration of each link in the next cycle is completed through interaction, and adaptive on-demand TSCH scheduling is realized;

[0043] The hopping channel calculation module is used to calculate the transmission channel of the link in the current period based on the direction of each link and the current period, so as to realize the periodic hopping of the channel.

[0044] The beneficial effects of the present invention are as follows:

[0045] The present invention designs three unicast time slot frames, and uses the three unicast time slot frames as the sending node, receiving node, and traffic processing frame of the link of the LLN network respectively; and calculates and adapts the size of the time slot frame according to the sending node of each link of the LLN network; after calculating the sending frame size, each node in the LLN network establishes and maintains a resource binary tree to avoid time slot conflicts of adjacent nodes; the receiving node selects idle resources to return through the resource binary tree; thereby completing the frame configuration of each link in the next cycle through interaction, and realizing adaptive on-demand TSCH scheduling; and calculating the transmission channel of the link in the current cycle based on the direction of each link and the current cycle, and realizing periodic hopping of the channel; thereby, the present invention solves the problem that the energy constraints of the LLN network nodes are not considered in the prior art, and has the characteristic of avoiding time slot conflicts. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 It is a flow chart of an energy-sensitive TSCH scheduling method in a low-power lossy network of the present invention.

[0047] Figure 2 This is a diagram showing an example of TSCH time slot-channel allocation.

[0048] Figure 3 It is a resource binary tree instance graph.

[0049] Figure 4 It is a time slot scheduling instance diagram.

[0050] Figure 5 This is a flow chart of periodic configuration of PTS / PRS frames. DETAILED DESCRIPTION

[0051] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0052] Example 1

[0053] In a specific embodiment, TSCH divides time into equal-length time slots. The length of each time slot is sufficient for both communicating parties to complete a data transmission and confirmation reception. Several time slots are combined into a time slot frame, namely, a slot frame. A cell is composed of (offset time ,offset channel ) definition, time offset, i.e. offset time Indicates the relative position of the time slot in the time slot frame, channel offset (offset channel ) represents the channel offset.

[0054] like Figure 2 As shown in the figure, in a cell allocation example, the absolute time slot number, i.e. ASN, represents the current synchronization time slot number of the network. Each time slot has multiple channels used, and the channels scheduled at a specific ASN are offset by channel The transmission channel is calculated as List c is a set of available channels, is List c The number of channels included; for fixed offset channel The transmission will jump on different channels as the ASN changes; different offsets are assigned to different transmissions in the same time slot. channel , the transmission will be done on different channels.

[0055] In a specific embodiment, each node has an energy storage device for storing collected energy to provide sustainable operation. "Energy packets" are used to represent the energy units required for one transmission. The node consumes one energy packet when it is scheduled to send or receive. Each node also has a data buffer to store data to be forwarded and locally generated data. The node's energy packets and data packets arrive at a random rate. When a node is scheduled to send, the scheduling can only be successful if the node has at least one energy packet and data packet; when a node is scheduled to receive, the scheduling can be successful as long as it has at least one energy packet.

[0056] In a specific embodiment, the TSCH scheduling algorithm indicates the action of the node in each time slot, including transmission, reception or sleep, and the channel offset needs to be additionally specified for the transmission or reception time slot.

[0057] In this embodiment, adaptive TSCH scheduling includes 6 design requirements:

[0058] 1. Treat each unidirectional link independently; the basic unit of transmission in the LLN network is the unidirectional link. Each unidirectional link has different and time-varying traffic loads and should be considered separately to accurately meet the link requirements.

[0059] 2. Rapid response to time-varying traffic demands. When traffic bursts occur, timely processing is performed to avoid queue overflow. When the load decreases, scheduling is reduced in time to avoid energy waste.

[0060] 3. Fast response to time-varying energy states. When the energy cache is small or the energy collection rate is low and insufficient to meet the current traffic load, the scheduling time slot should be reduced to avoid redundant transmission and idle listening.

[0061] 4. Distributed operation with moderate control overhead. The advantage of autonomous scheduling is zero control overhead, but the lack of information will lead to more time slot conflicts. In order to provide adaptive scheduling, appropriate distributed operation should be adopted.

[0062] 5. Avoid time slot conflicts. It should be avoided that a node is scheduled to perform multiple actions in one time slot, because multiple operations cannot be completed at the same time, which will lead to reduced network reliability and delay performance. In addition, it should be avoided that adjacent nodes are scheduled in the same time slot. Although TSCH provides multi-channel access, conflicts still occur under high load.

[0063] 6. Close interaction with routing. LLN has a dynamic topology. When routing changes occur, control traffic must be transmitted reliably and respond quickly to topology changes.

[0064] Based on the above design requirements, in this embodiment, an energy-sensitive TSCH scheduling method in a low-power lossy network is designed, including the following steps:

[0065] S1. Design three unicast time slot frames, and use the three unicast time slot frames as the sending node, receiving node, and traffic processing frame of the link of the LLN network respectively;

[0066] S2. Calculate and adapt the time slot frame size according to the sending node of each link of the LLN network; after calculating the sending frame size, each node in the LLN network sets up and maintains a resource binary tree to avoid time slot conflicts of adjacent nodes; the receiving node selects idle resources through the resource binary tree and returns; thus, the frame configuration of each link in the next cycle is completed through interaction, realizing adaptive on-demand TSCH scheduling;

[0067] S3. Based on the direction of each link and the current period, the transmission channel of the link in the current period is calculated to achieve periodic hopping of the channel.

[0068] Example 2

[0069] More specifically, in a specific embodiment, in step S1, three types of unicast time slot frames are designed, specifically:

[0070] A periodically configured transmission time slot frame is designed, and the periodically configured transmission time slot frame is called a PTS frame, and the PTS frame is used for a transmitting node of each link in the LLN network;

[0071] A periodically configured receiving time slot frame is designed, and the periodically configured receiving time slot frame is called a PRS frame, and the PRS frame is used for a receiving node of each link in the LLN network;

[0072] An autonomous unicast time slot frame is designed. The autonomous unicast time slot frame is used to process the RPL frame unicast control traffic of the LLN network and temporarily process the unicast data traffic when the link is not configured with PTS / PRS.

[0073] In a specific embodiment, the LLN network also includes an EB frame for processing TSCH control traffic. When a node of the LLN network is scheduled to perform multiple actions in a time slot, the following priority is selected: EB frame>RPL frame>autonomous unicast time slot frame>PTS / PRS frame.

[0074] In this embodiment, the present invention combines different scheduling technologies and retains the EB frame and RPL shared time slot frame used by the Orchestra algorithm and the ALICE algorithm; the EB frame processes the TSCH control traffic and has a constant dedicated channel offset. Each node schedules two time slots in each EB frame, one time slot broadcasts EB and the other time slot receives EB from its time source node; the EB broadcast time slot of node i is locally calculated as t EB,Tx =mod(hash(MAC i ),S EB ), where MACi is the physical address of node i, S EB The EB frame size is unified. RPL shared time slot frames handle RPL broadcast control traffic such as DIO, without dedicated channel offset, and all network nodes wake up in the same scheduling time slot to listen to the broadcast.

[0075] In this embodiment, the autonomous unicast time slot frame is called an AUS frame. The AUS frame has a dedicated channel offset and works based on the reception-based Orchestra algorithm, which is a node-based autonomous algorithm. The reception time slot of node i is locally calculated as t UC ,Rx =mod(haxh(MAC i ),S UC ), S UC It is a unified unicast frame size. The sending time slot is calculated based on the MAC addresses of all routing neighbor nodes, and the number is the same as the number of neighbor nodes.

[0076] In this embodiment, the frame sizes of the PTS and PRS frames are related to the traffic load and local energy status of the sending node and the receiving node.

[0077] In a specific embodiment, in step S2, the size of the time slot frame is calculated and adapted according to the sending node of each link of the LLN network; after calculating the sending frame size, each node in the LLN network establishes and maintains a resource binary tree to avoid time slot conflicts of adjacent nodes; the receiving node selects idle resources through the resource binary tree to return; thus, the frame configuration of each link in the next cycle is completed through interaction, and the specific steps are:

[0078] S201. Calculate the PTS / PRS frame size of the adapted sending node according to the traffic load and energy cache status of each link of the LLN network;

[0079] S202. Send the configuration request of the PTS / PRS frame adapted to the sending node to the receiving node. Each node in the LLN network establishes and maintains a binary resource tree to avoid time slot conflicts between adjacent nodes. The receiving node selects idle resources through the binary resource tree to return and complete the time slot frame transmission.

[0080] Furthermore, in the step S201, the PTS / PRS frame size of the adapted sending node is calculated according to the traffic load and energy buffer state of each link of the LLN network, and the specific steps are:

[0081] A1. For the sending node i of the link of the LLN network, suppose it has n neighbor nodes; node i counts the number of energy packets arriving in the last period T and the number of data packets arriving to each neighbor; use E i represents the number of energy packets arriving at node i, D i,jrepresents the number of data packets arriving from node i to neighbor j;

[0082] A2. At the beginning of the cycle, the variable data and the number of energy group arrivals are initialized to 0. Each time an energy group is collected within T time, E i Add 1, and collect each data packet sent to j. i,j Add 1; Node i determines a set of PTS frame sizes based on the packet arrival rate of the previous cycle and the number of currently cached packets Used to schedule data transmission to each neighbor in the current cycle;

[0083] A3. S according to traffic load T Initialize with D′ i,j Indicates the number of data packets sent to node j in the cache of node i at the beginning of the cycle. The size of each frame is satisfy Ensure that the number of scheduling times for each link in the current cycle matches the traffic load, and avoid scheduling failure due to insufficient data; adjust S according to the energy cache status T ;

[0084] A4. Use S R represents a set of PRS frame sizes currently maintained by the node, and the average scheduling interval ISS of all PTS / PRS frames is calculated by equation Calculate; use E′ i represents the number of energy packets cached by node i at the beginning of the period;

[0085] A5. Determine whether ISS meets If it is satisfied, according to the average scheduling interval configured by the current PTS / PRS frame, there will be no scheduling failure due to insufficient energy in the current cycle, and output S T If you cannot satisfy Continuously increasing S T The frame size in until the condition is met;

[0086] A6. Order That is, the current S T The difference between the number of scheduling times per unit time and the number of energy group arrivals; judge CDV, if CDV≤0, output S T , otherwise, in S T Select the smallest one satisfy If no such frame size exists, select the current S T The maximum frame size in the selected frame is increased to 2 times the original size and updated Then re-judge CDV; repeat this process until it satisfies

[0087] A7. The node carries S on the data packet sent to neighbor j T The corresponding frame size N j , for node j to configure PRS frame.

[0088] Furthermore, in the step S202, the configuration request of the PTS / PRS frame adapted to the sending node is sent to the receiving node, each node in the LLN network establishes and maintains a resource binary tree to avoid time slot conflicts of adjacent nodes, and the receiving node selects idle resources through the resource binary tree to return, and the specific steps are:

[0089] B1. After the PTS / PRS frame configuration request, select a transmission time slot for the link that does not conflict with other links of this node;

[0090] B2. Establish and maintain a resource binary tree at each node of the link, select conflict-free resource nodes for different links on the resource binary tree, and schedule different associated links of each node and its neighboring nodes without conflict;

[0091] B3. Through the resource binary tree, the link receiving node selects idle resources, configures the PRS receiving frame corresponding to the link resource, and returns the confirmation packet with the time offset. After receiving the confirmation, the sending node completes the configuration of the PTS frame, thereby completing the periodic configuration process.

[0092] Furthermore, each node of the resource binary tree represents a periodic time slot resource and can be equally divided into two larger conflict-free frames; if a node has been allocated, its descendant nodes will partially conflict with the node, and the associated ancestor nodes will completely conflict with the node and cannot be allocated again, while other nodes except the descendant nodes and the associated ancestor nodes can still be allocated to other links without conflict.

[0093] In this embodiment, Figure 3 As shown, each node represents a periodic time slot resource (n, t), that is, the frame size, time offset, which can be divided into (n+1, t) and (n+1, t+2 n )Two smaller resources.

[0094] In this example, if Figure 3As shown, assume that there are 4 nodes 1, 2, 3 and 4, node 1 is the parent node of node 2, and nodes 3 and 4 are two child nodes of node 2, forming 6 unidirectional links. Among them, the five unidirectional links [1→2], [2→1], [3→2], [2→3] and [2→4] use resources (2,0), (2,1), (3,2), (3,6), (4,3) respectively, and link [4→2] has not yet been configured with PTS / PRS frames. If node 4 sends a frame configuration request N=3 to node 2, in the N=3 resource layer of the node 2 resource binary tree, the parent nodes of (3,0), (3,4), (3,1) and (3,5) are allocated, (3,2) and (3,6) are directly allocated, and the child node of (3,3) is allocated. These nodes cannot be allocated again, otherwise all or part of the time slot conflicts will occur. Therefore, the conflict-free (3,7) is selected to allocate a new link. In this embodiment, Figure 4 The time slot scheduling of the four nodes in this example is given.

[0095] In a specific embodiment, in step S202, after the receiving node receives the PTS / PRS frame configuration request N, if no idle resource node is found in the corresponding layer of the resource binary tree, a request failure notification is returned during confirmation; if the link already has a frame configuration, both parties maintain the old PTS / PRS frame communication; the sending node increases the parameter N by 1 when requesting the frame configuration next time, reducing the demand to request a larger frame;

[0096] After the sending node receives the confirmation, if the time offset returned by the receiving node is not available on the local resource binary tree, the sending node revokes the old PTS frame and sets the resource unavailable bit the next time it unicasts data through the autonomous unicast time slot frame, requiring the receiving node to reselect the time offset until the sending node successfully configures the PTS.

[0097] In this embodiment, Figure 5 As shown, when performing a complete periodic configuration, at the beginning of the cycle, the node calculates the size S of all PTS frames sent on the link in this cycle T ; Then there are active cells to schedule node operations;

[0098] If the node operation is to send, when the node is scheduled to send a unicast data packet to a neighboring node, T Get the neighbor's PTS frame size, if it exists, write a frame configuration request to the data packet; if the offset returned by the request time When the local resource tree is idle, the PTS frame of the neighbor node is updated according to the resource node. T Delete the neighbor frame size; if the offset returned by the request timeIf the neighbor frame size is not available locally, delete the neighbor frame size if it exists. The next request uses an AUS frame to inform that the resource is unavailable and request a reselection. If the request fails, if the old PTS frame exists, keep the old PTS frame and replace S T The neighbor frame size is doubled;

[0099] If the node operation is receiving, when the node is scheduled to receive unicast data packets, if a frame configuration request is received, an idle node is found in the corresponding layer of the resource tree according to the requested frame size. If there is an idle node, the PRS frame of the neighbor node is updated according to the selected resource node, and the offset of the resource node is returned. time If there is no idle node, if the old PRS frame exists, the old PRS frame is kept and a request failure flag is returned.

[0100] Furthermore, in step S3, the hopping on different channels is changed over time according to the transmission channel, specifically:

[0101]

[0102] Among them, offset channel is the channel offset of a unidirectional link, and ASFN represents the absolute time slot frame number, which is defined as S PTS / PRS Indicates the link PTS / PRS frame size; MAC i represents the physical address of the receiving node i, and the number of available channels for the PTS / PRS frame is

[0103] The present invention designs three unicast time slot frames, and uses the three unicast time slot frames as the sending node, receiving node, and traffic processing frame of the link of the LLN network respectively; and calculates and adapts the size of the time slot frame according to the sending node of each link of the LLN network; after calculating the sending frame size, each node in the LLN network establishes and maintains a resource binary tree to avoid time slot conflicts of adjacent nodes; the receiving node selects idle resources to return through the resource binary tree; thereby completing the frame configuration of each link in the next cycle through interaction, and realizing adaptive on-demand TSCH scheduling; and calculating the transmission channel of the link in the current cycle based on the direction of each link and the current cycle, and realizing periodic hopping of the channel; thereby, the present invention solves the problem that the energy constraints of the LLN network nodes are not considered in the prior art, and has the characteristic of avoiding time slot conflicts.

[0104] Example 3

[0105] An energy-sensitive TSCH scheduling system in a low-power lossy network includes a time slot frame design module, an adaptive on-demand scheduling module, and a hopping channel calculation module;

[0106] The time slot frame design module is used to design three unicast time slot frames, and the three unicast time slot frames are used as the sending node, receiving node, and traffic processing frame of the link of the LLN network respectively;

[0107] The adaptive on-demand scheduling module is used to calculate and adapt the size of the time slot frame according to the sending node of each link of the LLN network; after calculating the sending frame size, each node in the LLN network establishes and maintains a resource binary tree to avoid time slot conflicts of adjacent nodes; the receiving node selects idle resources according to the resource binary tree and returns; thus, the frame configuration of each link in the next cycle is completed through interaction, and adaptive on-demand TSCH scheduling is realized;

[0108] The hopping channel calculation module is used to calculate the transmission channel of the link in the current period based on the direction of each link and the current period, so as to realize the periodic hopping of the channel.

[0109] In this embodiment, the pseudo code of the main control program of the energy-sensitive TSCH scheduling system in the low-power lossy network is as follows:

[0110]

[0111]

[0112] In this embodiment, the pseudo code of the algorithm for obtaining the new periodic PTS frame size by the energy-sensitive TSCH scheduling system in the low-power lossy network is as follows:

[0113] Input: the number of energy packets arriving in the last cycle E, the number of data packets arriving to each neighbor D;

[0114] The current energy packet storage number E′, the data packet buffer number D′ sent to each neighbor; the current PRS frame size set S R .

[0115] Output: New period PTS frame size S T

[0116]

[0117]

[0118] In this embodiment, the pseudo code of the energy-sensitive TSCH scheduling system frame configuration request processing algorithm in the low-power lossy network is as follows:

[0119] Input: the sending node of the request sender, the request frame size n, the node resource binary tree resource_tree

[0120] Output: offset of available nodes in level N of the resource binary tree time

[0121]

[0122] In this embodiment, the energy-sensitive TSCH scheduling system in the low-power lossy network obtains the next scheduling cell algorithm pseudo code as follows:

[0123] Input: Current time All frames maintained by the node Slot_frame, number of available channels

[0124] Output: Next schedule

[0125]

[0126] Obviously, the above embodiments of the present invention are only examples for clearly explaining the present invention, and are not intended to limit the implementation methods of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention shall be included in the protection scope of the claims of the present invention.

Claims

1. An energy-sensitive TSCH scheduling method in a low-power lossy network, characterized by: The following steps are involved: S1. Design three unicast time slot frames, and use the three unicast time slot frames as the sending node, receiving node, and traffic processing frame of the link of the LLN network respectively; Three unicast time slot frames are designed, specifically: A periodically configured transmission time slot frame is designed, and the periodically configured transmission time slot frame is called a PTS frame, and the PTS frame is used for a transmitting node of each link in the LLN network; A periodically configured receiving time slot frame is designed, and the periodically configured receiving time slot frame is called a PRS frame, and the PRS frame is used for a receiving node of each link in the LLN network; An autonomous unicast time slot frame is designed, wherein the autonomous unicast time slot frame is used to process RPL frame unicast control traffic of an LLN network and temporarily process unicast data traffic when a link is not configured with a PTS / PRS frame; S2. Calculate and adapt the time slot frame size according to the sending node of each link of the LLN network; after calculating the sending frame size, each node in the LLN network sets up and maintains a resource binary tree to avoid time slot conflicts of adjacent nodes; the receiving node selects idle resources through the resource binary tree and returns; thus, the frame configuration of each link in the next cycle is completed through interaction, realizing adaptive on-demand TSCH scheduling; The size of the time slot frame is calculated and adapted according to the sending node of each link of the LLN network; after calculating the sending frame size, each node in the LLN network establishes and maintains a resource binary tree to avoid time slot conflicts of adjacent nodes; the receiving node selects idle resources through the resource binary tree and returns; thus, the frame configuration of each link in the next cycle is completed through interaction. The specific steps are: S201. Calculate the PTS / PRS frame size of the adapted sending node according to the traffic load and energy cache status of each link of the LLN network; S202. The configuration request of the PTS / PRS frame of the transmission node is sent to the receiving node. Each node in the LLN network establishes and maintains a binary resource tree to avoid time slot conflicts between adjacent nodes. The receiving node selects idle resources through the binary resource tree to return and complete the time slot frame transmission; S3. Based on the direction of each link and the current period, the transmission channel of the link in the current period is calculated to achieve periodic hopping of the channel.

2. The energy-sensitive TSCH scheduling method in a low-power lossy network according to claim 1, characterized in that: The LLN network also includes EB frames for processing TSCH control traffic. When a node in the LLN network is scheduled to perform multiple actions in a time slot, it is selected according to the following priority: EB frame>RPL frame>autonomous unicast time slot frame>PTS / PRS frame.

3. The energy-sensitive TSCH scheduling method in a low-power lossy network according to claim 2, characterized in that: In step S201, the PTS / PRS frame size of the adapted sending node is calculated according to the traffic load and energy buffer status of each link of the LLN network, and the specific steps are: A1. For the sending node i of the link of the LLN network, suppose it has n neighbor nodes; node i counts the number of energy packets arriving in the last period T and the number of data packets arriving to each neighbor; use E i represents the number of energy packets arriving at node i, D i,j represents the number of data packets arriving from node i to neighbor j; A2. At the beginning of the cycle, the number of data and energy packets sent to each neighbor is initialized to 0. Each time an energy packet is collected within T time, E i Add 1, and collect each data packet sent to j. i,j Add 1; Node i determines a set of PTS frame sizes based on the packet arrival rate of the previous cycle and the number of currently cached packets Used to schedule data transmission to each neighbor in the current cycle; A3. S according to traffic load T Initialize with D′ i,j Indicates the number of data packets sent to node j in the cache of node i at the beginning of the cycle. The size of each frame is satisfy Ensure that the number of scheduling times for each link in the current cycle matches the traffic load, and avoid scheduling failure due to insufficient data; adjust S according to the energy cache status T ; A4. Use S R represents a set of PRS frame sizes currently maintained by the node, and the average scheduling interval ISS of all PTS / PRS frames is calculated by equation Calculate; use E′ i represents the number of energy packets cached by node i at the beginning of the period; A5. Determine whether ISS meets If it is satisfied, according to the average scheduling interval configured by the current PTS / PRS frame, there will be no scheduling failure due to insufficient energy in the current cycle, and output S T If you cannot satisfy Continuously increasing S T The frame size in until the condition is met; A6. Order That is, the current S T The difference between the number of scheduling times per unit time and the number of energy group arrivals; judge CDV, if CDV≤0, output S T , otherwise, in S T Select the smallest one satisfy If no such frame size exists, select the current S T The maximum frame in the selection is increased to 2 times the original frame size and updated Then re-judge CDV; repeat this process until it satisfies A7. The node carries S on the data packet sent to neighbor j T The corresponding frame size N j , for node j to configure PRS frame.

4. The energy-sensitive TSCH scheduling method in a low-power lossy network according to claim 3, characterized in that: In the step S202, a configuration request of the PTS / PRS frame adapted to the sending node is sent to the receiving node. Each node in the LLN network establishes and maintains a resource binary tree to avoid time slot conflicts of adjacent nodes. The receiving node selects idle resources through the resource binary tree and returns them. The specific steps are: B1. After the PTS / PRS frame configuration request, select a transmission time slot for the link that does not conflict with other links of this node; B2. Establish and maintain a resource binary tree at each node of the link, select conflict-free resource nodes for different links on the resource binary tree, and schedule different associated links of each node and its neighboring nodes without conflict; B3. Through the resource binary tree, the link receiving node selects idle resources, configures the PRS receiving frame corresponding to the link resource, and returns the confirmation packet with the time offset. After receiving the confirmation, the sending node completes the configuration of the PTS frame, thereby completing the periodic configuration process.

5. The energy-sensitive TSCH scheduling method in a low-power lossy network according to claim 4, characterized in that: Each node of the resource binary tree represents a periodic time slot resource and can be equally divided into two larger conflict-free frames; If a node has been allocated, its descendant nodes will partially conflict with the node, and the associated ancestor nodes will completely conflict with the node and cannot be allocated again. However, other nodes except the descendant nodes and the associated ancestor nodes can still be allocated to other links without conflict.

6. The energy-sensitive TSCH scheduling method in a low-power lossy network according to claim 5, characterized in that: In the step S202, after the receiving node receives the PTS / PRS frame configuration request N, if no idle resource node is found in the corresponding layer of the resource binary tree, a request failure notification is returned during confirmation; if the link already has a frame configuration, both parties maintain the old PTS / PRS frame communication; the sending node increases the parameter N by 1 when requesting the frame configuration next time, reducing the demand to request a larger frame; After the sending node receives the confirmation, if the time offset returned by the receiving node is not available on the local resource binary tree, the sending node revokes the old PTS frame and sets the resource unavailable bit the next time it unicasts data through the autonomous unicast time slot frame, requiring the receiving node to reselect the time offset until the sending node successfully configures the PTS frame.

7. The energy-sensitive TSCH scheduling method in a low-power lossy network according to claim 6, characterized in that: In the step S3, the hopping on different channels is changed over time according to the transmission channel, specifically: Among them, offset channel is the channel offset of a unidirectional link, and ASFN represents the absolute time slot frame number, which is defined as S PTS / PRS Indicates the link PTS / PRS frame size; MAC i represents the physical address of the receiving node i, and the number of available channels for the PTS / PRS frame is 8. An energy-sensitive TSCH scheduling system in a low-power lossy network, characterized in that: Used to execute the energy-sensitive TSCH scheduling method in a low-power lossy network as described in any one of claims 1 to 7, comprising a time slot frame design module, an adaptive on-demand scheduling module, and a hopping channel calculation module; The time slot frame design module is used to design three unicast time slot frames, and the three unicast time slot frames are used as the sending node, receiving node, and traffic processing frame of the link of the LLN network respectively; The adaptive on-demand scheduling module is used to calculate and adapt the size of the time slot frame according to the sending node of each link of the LLN network; after calculating the sending frame size, each node in the LLN network establishes and maintains a resource binary tree to avoid time slot conflicts of adjacent nodes; the receiving node selects idle resources according to the resource binary tree and returns; thus, the frame configuration of each link in the next cycle is completed through interaction, and adaptive on-demand TSCH scheduling is realized; The hopping channel calculation module is used to calculate the transmission channel of the link in the current period based on the direction of each link and the current period, so as to realize the periodic hopping of the channel.