Resource allocation method for coexistence of multiple line topological industrial wireless networks
11528684 · 2022-12-13
Assignee
Inventors
- Wei Liang (Liaoning, CN)
- Jialin Zhang (Liaoning, CN)
- Meng Zheng (Liaoning, CN)
- Sichao Zhang (Liaoning, CN)
- Kai Wang (Liaoning, CN)
- Shuai Liu (Liaoning, CN)
Cpc classification
H04W72/1263
ELECTRICITY
International classification
H04W28/02
ELECTRICITY
H04W28/16
ELECTRICITY
Abstract
A resource allocation method for coexistence of multiple line topological industrial wireless networks is provided. It pertains to the coexistence problem of multiple TDMA-based line topological industrial wireless networks, including three parts: lower bound analysis of scheduling delay, allocation algorithm of inter-network resources and allocation algorithm of intra-network resources. The method uses overall scheduling delay and resource utilization ratio as measurement indexes when analyzing the lower bound of delay and designing resource allocation algorithms, and selects a best node combination in each time slot to occupy as many channel resources as possible to improve the resource utilization ratio and reduce the overall scheduling delay.
Claims
1. A resource allocation method for coexistence of multiple line topological industrial wireless networks, comprising the following steps: obtaining a minimum scheduling delay value required for each network to complete scheduling; allocating resources for the networks based on the minimum scheduling delay value; and allocating intra-network resources of the networks, wherein the step of allocating resources for the networks based on the minimum scheduling delay value further comprises: assessing a priority of each network according to conditions: S.sub.r=T−t+1 and N.sub.d−N.sub.e=N.sub.c−1, S.sub.r being a minimum number of time slots required for completing scheduling, N.sub.d being a set of nodes with data packets in a node buffer, N.sub.e being a set of nodes having data packets in the node buffer and an empty parent node buffer, N.sub.c being a number of nodes with continuous data packets farthest from a gateway, t being current time, and T being a minimum scheduling delay value, when the network satisfies the conditions, accessing the network as a high priority and allocating |N.sub.e| resource blocks the network, when the network fails to sasatisfy the conditions, assessing the network as low priority, and sorting the networks in a descending order of S.sub.r, according to the required minimum number S.sub.r of time slots obtained during priority assessment, and calculating a difference between every two adjacent S.sub.r according to a first scenario in which the difference is not greater than 1 and a second scenario in which the difference is greater than 1; for the networks corresponding to the first scenario: when the difference of S.sub.r is 1, sorting the networks corresponding to S.sub.r in a descending order of S.sub.r, and combining first to N.sub.l node buffers in the networks to form a new network, wherein first N.sub.l in the new network are separated by empty identifiers, and N.sub.l represents a node label of a last node buffer with data packets; when the dif erence S.sub.r is 0, comparing a number R.sub.r of required resources of the networks corresponding to S.sub.r, sorting the corresponding networks in a descending order of R.sub.r; and combining the first to N.sub.l node buffers in the networks to form a new network, wherein the first to N.sub.l node buffers in the new network are separated by empty identifiers, and recording S.sub.r of the new network as a maximum value of S.sub.r in the corresponding networks; for the networks corresponding to the second scenario: sorting the networks in a descending order of S.sub.r and allocating N.sub.p resource blocks to each network in order, until no idle resource block remains or all the networks have the allocated resource blocks, wherein N.sub.p represents a maximum number of parallel transmission nodes.
2. The resource allocation method for coexistence of multiple line topological industrial wireless networks according to claim 1, wherein the minimum scheduling delay value is:
3. The resource allocation method for coexistence of multiple line topological industrial wireless networks according to claim 1, wherein R.sub.r=Σ.sub.k=1.sup.n.sup.
4. The resource allocation method for coexistence of multiple line topological industrial wireless networks according to claim 1, wherein the step of allocating intra-network resources of the networks comprises a data packet filling process and a data packet collecting process, wherein the data packet filling process further comprises: searching for a node set that meets the conditions B.sub.v.sub.
5. The resource allocation method for coexistence of multiple line topological industrial wireless networks according to claim 4, of wherein the step of assessing and allocating resources comprises the following steps: assessing the nodes, wherein when a scheduling node v.sub.ik does not result in that at least two node buffers are empty, transmitting a node k; when the scheduling node v.sub.ik results in that at least two node buffers are empty, not allocating resource blocks for the scheduling node v.sub.ik; and enabling k=k+2 to assess a node again, k being the node label, until the scheduling node v.sub.ik does not result in that the node buffers are continuously empty or v.sub.ik is the last node N.sub.l with data in the node buffer; allocating the resources for the nodes in a reverse order of a node assessment in that k=k−2; allocating resource blocks for the scheduling node v.sub.ik until all the assessed nodes obtain the resource blocks or the number of the resource blocks allocated for the network i is 0; and recording all the nodes having the allocated resource blocks into the scheduling node set V.sub.tr.
6. The resource allocation method for coexistence of multiple line topological industrial wireless networks according to claim 1, wherein the resources are resource blocks and comprise a time slot and an available channel of the time slot.
7. The resource allocation method for coexistence of multiple line topological industrial wireless networks according to claim 1, wherein the resource allocation method is used for line topological industrial wireless networks for any network number and any network size.
8. The resource allocation method for coexistence of multiple line topological industrial wireless networks according to claim 1, wherein the resource allocation method is used for multiple line topological wireless networks.
9. A resource allocation method for coexistence of multiple line topological industrial wireless networks, comprising the following steps: obtaining a minimum scheduling delay value required for each network to complete scheduling; allocating resources for the networks based on the minimum scheduling delay value; and allocating intra-network resources of the networks, wherein the step of allocating intra-network resources of the networks comprises: assessing a plurality of nodes, wherein, when a scheduling node v.sub.ik does not result in that at least two node buffers are empty, transmitting the a node k; when the scheduling node v.sub.ik results in that at least two node buffers are empty, not allocating resource blocks for the scheduling node v.sub.ik ; enabling k=k+2 to assess the scheduling node v.sub.ik again, k being the node label, until the scheduling node v.sub.ik does not result in that the node buffers are continuously empty or v.sub.ik is a last node N.sub.l with data in the node buffer; allocating the resources for the nodes in a reverse order of a node assessment in that k=k−2; allocating resource blocks for the scheduling node v.sub.ik until all the assessed nodes obtain the resource blocks or the number of the resource blocks allocated for the network i is 0; and recording all the nodes having the allocated resource blocks into a scheduling node set V.sub.tr.
Description
DESCRIPTION OF DRAWINGS
(1)
(2)
(3)
(4)
DETAILED DESCRIPTION
(5) To make the purpose, the technical solution and the advantages of the present invention more clear, the present invention will be further described below in detail in combination with practical examples.
(6) The present invention proposes an optimized resource allocation method for coexistence of multiple line topological industrial wireless networks. The main idea of the present invention is: a general expression of the lower bound of the scheduling delay is provided; the minimum time slot required for each network to complete the scheduling is adequately considered to provide guidance for algorithm design; different priorities are allocated for the networks based on the analysis of the lower bound of delay, and then resources are allocated for the networks; nodes in the networks are assessed, a best node combination is selected and the number of parallel transmission nodes in each time slot is maximized, to improve the resource utilization ratio. Therefore, on the whole, the method comprises three stages: lower bound analysis of scheduling delay, allocation algorithm of inter-network resources and allocation algorithm of intra-network resources.
(7) 1. Modeling of coexistence wireless networks
(8) The method considers multiple line topological wireless networks. As shown in
(9) 2. Lower bound analysis of scheduling delay
(10) N wireless networks exist. Each network i(i ∈ N) has n.sub.i nodes, and the number of available channels is C. The current time is t; and R.sub.idle(N) represents the number of idle resources of N wireless network, and can be calculated by the following general formula:
(11)
R.sub.0(i) represents the number of resources occupied by the network i, and can be calculated by the fol lowing formula
(12)
When j satisfies the following situation,
(13)
the general formula of the urn scheduling delay value is:
(14)
(15) 3. The allocation algorithm of inter-network resources comprises the following steps:
(16) Step 1: the purpose of the present invention is to design the allocation algorithm of inter-network resources to minimize the scheduling delay. Firstly, the priority of each network is assessed, and the following two conditions shall be satisfied: S.sub.r=T−t+1; N.sub.d−N.sub.e=N.sub.c−1.
(17) Specifically, the lower bound T of the scheduling delay is used as a benchmark; at the current time t, the number of the remaining time slots is (T−t+1); S.sub.r represents the minimum number of time slots required for completing scheduling; S.sub.r=N.sub.l+2sum(max((B.sub.v.sub.
(18) N.sub.c represents the number of nodes having continuous data packets farthest from the gateway; and |N.sub.d|−|N.sub.e|=N.sub.c−1 represents the situation that nodes with continuous data in the networks only appear in the position farthest from the gateway. Taking
(19) Step 2: if no idle resource remains at this time, the allocation of the inter-network resources is completed in the current time slot. If the idle resources remain, the remaining resources are allocated for the networks with low priority, and step 3 is performed.
(20) Step 3: the remaining networks with low priority are sorted in the descending order of the minimum number of time slots required to complete scheduling, and searched in the descending order. For the network having the difference between the required minimum numbers of the time slots less than or equal to 1, step 4 is performed; otherwise, for the network having the difference between the required minimum numbers of the time slots greater than 1, step 7 is performed.
(21) Step 4: for the network having the difference between the required minimum numbers of the time slots not greater than 1, the node buffers of the network nodes that satisfy the conditions are combined, and different networks are separated by 0 node buffer. Specifically, when the difference is 1, step 5 is performed; otherwise, when the difference is 0, step 6 is performed.
(22) Step 5: when the difference of the minimum number S.sub.r of the time slots required by the networks is 1, the networks are sorted in a descending order of S.sub.r; the node buffers of the node v.sub.i1 to the last node v.sub.iN.sub.
(23) Step 6: when the difference of the minimum number of the time slots required by the networks is 0, the numbers of the resources required by the networks are sorted; the required numbers R.sub.r of the resources are combined in the descending order; the buffers of the node v.sub.i1 to the last node v.sub.iN.sub.
(24) Step 7: the networks having the difference between the required minimum numbers of the time slots greater than 1 (the networks used to calculate the difference) are sorted in the descending order.
(25) Specifically, the sorted networks comprise a combined new network. Therefore, the remaining resources are firstly allocated to the network with large S.sub.r in order, and the maximum number of resources that can be transmitted in parallel is allocated. If the resources remain at this moment, the resources are allocated for the next network until no idle resource remains or all the networks are allocated with the corresponding resources.
(26) 4. Allocation algorithm of intra-network resources
(27) The allocation of the inter-network resources is completed. Each network obtains the corresponding resources. Taking an example that the network i obtains C.sub.i resource blocks at the current time, the allocation of the intra-network resources is divided into the following steps:
(28) Step 1: the nodes are assessed, and the resources are reasonably allocated for the nodes in the networks. Specifically, two situations exist lithe node v.sub.ik is transmitted, two or more node buffers are empty and step 2 is performed; otherwise, the data packet of the node with a label of k is transmitted.
(29) Step 2: the purpose of the present invention is to select an optimal node combination to maximize the resource utilization ration, thereby achieving the purpose of minimizing the scheduling delay. Therefore, before the intra-network resources are allocated, each node to be scheduled is assessed. For the network i., if the scheduling node V.sub.ik results in that two or more node buffers are empty, resource blocks are not allocated for the node V.sub.ik and k=k+2 is held to assess the node again. Until the scheduling node V.sub.ik does not result in that the node buffers are continuously empty or V.sub.ik is the last node N.sub.l with data in the node buffer, the resources are allocated for the assessed nodes in a reverse order of the node assessment, i.e., resource blocks are allocated for V.sub.ik. k=k−2; resource blocks are allocated for the node v.sub.ik until all the assessed nodes obtain the resource blocks or the number of the resource blocks allocated for the network i is C.sub.i=0. All the nodes having the allocated resource blocks are recorded into a scheduling node set V.sub.tr, to avoid repeatedly allocating the resource blocks and simultaneously allocating the resource blocks for adjacent nodes. C.sub.i represents the number of the resource blocks allocated for the network i at the current time t.
(30) Step 3: a data packet filling process: the node set that meets the conditions B.sub.v.sub.
(31) Step 3: a data packet collecting process: the nodes are searched forwards from the node v.sub.iN.sub.