CN115038192B - Improved non-time slot CSMA/CA optimization method and evaluation method - Google Patents
Improved non-time slot CSMA/CA optimization method and evaluation method Download PDFInfo
- Publication number
- CN115038192B CN115038192B CN202210958171.XA CN202210958171A CN115038192B CN 115038192 B CN115038192 B CN 115038192B CN 202210958171 A CN202210958171 A CN 202210958171A CN 115038192 B CN115038192 B CN 115038192B
- Authority
- CN
- China
- Prior art keywords
- backoff
- medical data
- data packet
- probability
- terminal node
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W74/00—Wireless channel access, e.g. scheduled or random access
- H04W74/08—Non-scheduled or contention based access, e.g. random access, ALOHA, CSMA [Carrier Sense Multiple Access]
- H04W74/0808—Non-scheduled or contention based access, e.g. random access, ALOHA, CSMA [Carrier Sense Multiple Access] using carrier sensing, e.g. as in CSMA
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/18—Self-organising networks, e.g. ad-hoc networks or sensor networks
-
- 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
Abstract
The invention discloses an improved non-time slot CSMA/CA optimization method, which is used for grading medical data; setting the size of an initial backoff window; setting a back-off window and a back-off time slot; carrying out channel detection, adjusting the length of a contention window, and accessing an end node into a channel; and performing backoff according to the setting of the backoff times, and performing retransmission according to the setting of the retransmission times. The invention also discloses an improved non-time slot CSMA/CA optimization evaluation method.
Description
Technical Field
The invention belongs to the technical field of wireless sensor networks, and particularly relates to an improved non-time slot CSMA/CA optimization method, and an improved non-time slot CSMA/CA optimization evaluation method, which is suitable for improving the transmission performance of a ZigBee network system.
Background
In a low-speed wireless personal area network, there may be a separation into a beacon-enabled network and a non-beacon-enabled network according to whether a coordinator node among the networks generates a network beacon. In the beacon-enabled network, a common device first needs to listen to a beacon frame in a receiving network, if the beacon frame is received, the common device synchronizes with a node of a superframe which starts to transmit a beacon, and after synchronization, the common device uses a time slot CSMA/CA algorithm to compete for a channel. In the non-beacon-enabled network, when a common node sends data to a coordinator node, a non-slotted CSMA/CA algorithm is used for competing a channel to transmit data packets.
In a MAC protocol based on a non-slotted CSMA/CA algorithm, the purpose of a back-off algorithm is to give nodes the ability to perform a back-off operationAnd the moderate back-off time can accurately reflect the channel competition situation near the node. Most wireless communication protocols adopt binary exponential Backoff, and the process of the algorithm is mainly determined by three variables, namely Backoff times NB (Number of Backoffs), contention Window length CW (Content Window length) and Backoff index BE (Backoff exponents). BE has a minimum value of 3, a maximum value of 8, and a backoff counter of 0,2 under the standard setting BE -1]CW value of 2 by default.
With the rapid development of wireless sensor networks, the flow rate of network communication is also getting larger and larger, and the situation of serious packet loss rate, high delay and the like due to too large flow rate cannot be tolerated by the medical industry, so stable transmission of data, especially important data, is required to be ensured, most programs require high reliability and low delay, and even some programs require high reliability and low delay at the same time.
Disclosure of Invention
The invention aims to provide an improved non-time slot CSMA/CA optimization method and an improved non-time slot CSMA/CA optimization evaluation method aiming at the problems of the non-time slot CSMA/CA algorithm of the IEEE 802.15.4 network.
In order to achieve the purpose, the invention adopts the following technical scheme:
an improved non-slotted CSMA/CA optimization method comprises the following steps:
Initial backoff window size in step 2 as described aboveWhich isIn the above description, macMinBE is the minimum value of the backoff index, and the initial backoff number value is set to 0 as the minimum value macMinBE of the backoff index corresponding to the higher priority medical packet is smaller.
As described above, the backoff window corresponding to the ith backoff in step 3,For the initial back-off window size,wherein, in the step (A),is the maximum value of the backoff index macMaxBE,is the minimum value of the backoff index, macMinBE,
the back-off time slots corresponding to the medical data packets with different priorities are set as,For the cache occupancy rate of the medical data packet in the cache queue of the ZigBee gateway,is a priority factor, X isAn integer within the interval.
An improved non-slotted CSMA/CA optimized evaluation method, comprising the steps of:
Wherein the content of the first and second substances,indicates the number of back-offs at time t,indicates the state of the backoff counter at time t, the backoff counter having a value ofA random value in between, and a random value,representing the retransmission times at the time t, defining m to represent the maximum backoff times, and r to represent the maximum retransmission times;
wherein the content of the first and second substances,denoted as backoff i, backoff window j, probability at retransmission k,expressed as the i-th backoff, the probability of CCA on the k-th retransmission,expressed as the probability of successful receipt of the medical data packet,indicating the probability that the terminal node does not receive the ACK acknowledgement frame after successfully sending the medical data packet,representing the probability of discarding the medical data packet as a transmission failure of the medical data packet;
wherein the content of the first and second substances,probability of random backoff being completed for the first time by the terminal node,a probability is generated for the medical data packet,as is the probability of a CCA failure,in order to be the probability of retransmission,,,indicating the time slot length corresponding to the length of the medical data packet,indicating the ACK acknowledgement frame latency time and,indicating the length of the time slot corresponding to the length of the ACK acknowledgment frame,indicating the time slot length corresponding to the medical data packet interval,indicating ACK timeout time, parameter,,
wherein the content of the first and second substances,n represents the number of terminal nodes for the probability of transmission errors;
= delay of backoff stage+ delay of successful transmission of data packet+ delay of retransmission procedure;
Wherein the content of the first and second substances,is a unit time of a time slot and,in order to initiate the back-off window,indicating the delay in the failure of the transmission of the medical data packet at the k-th retransmission,。
compared with the prior art, the invention has the following beneficial effects:
1. the hardware transmission module selected by the invention is a ZigBee module chip CC2530, the ZigBee module adopts a default CSMA/CA algorithm to avoid collision, important data can not be transmitted in time, even serious packet loss occurs, according to the non-time slot CSMA/CA optimization method provided by the invention, the MAC layer protocol in the ZigBee protocol stack is changed, and the medical data packet can be transmitted more stably.
2. Due to the particularity of the medical system, the priority of the medical data packets is set through the priority factor and the cache proportion, so that the transmission proportion of the high-priority data packets is increased in the transmission process, and the transmission of the high-priority data packets is in line with the actual situation.
Drawings
Figure 1 is a diagram of a three-dimensional markov chain model;
FIG. 2 is a graph of the effect of retransmission times on reliability versus comparison;
FIG. 3 is a graph of the effect of maximum backoff number on reliability versus comparison;
FIG. 4 is a graph of the effect of backoff index minimum values on reliability versus comparison;
FIG. 5 is a graph of the effect of retransmission times on delay versus comparison;
fig. 6 is a graph of the effect of maximum backoff number on delay versus comparison;
figure 7 is a graph of the effect of backoff index minimum values on delay versus comparison;
FIG. 8 is a graph of channel access probability for different priority data;
fig. 9 is a graph of different priority packet throughput.
Detailed Description
The present invention will be described in further detail with reference to examples for the purpose of facilitating understanding and practice of the invention by those of ordinary skill in the art, and it is to be understood that the present invention has been described in the illustrative embodiments and is not to be construed as limited thereto.
In the non-beacon-enabled network, when the terminal node sends medical data to the coordinator node, the non-time slot CSMA/CA algorithm is used for competing the channel to transmit the medical data packet. The default CSMA/CA algorithm can not meet the condition that high reliability and low delay are required to be met under the medical condition, and the existing CSMA/CA algorithms only can meet the high reliability and only can meet the low delay, so that the invention optimizes the prior art and provides an improved non-time slot CSMA/CA optimization method, which comprises the following steps:
the medical data are classified by a terminal node, the judgment of the medical data grade mainly depends on the importance of each body index in the treatment process, the main medical data in the medical field are classified into physical sign data of a human body, such as heart rate, blood pressure, blood oxygen and the like, alarm signals of emergency situations, distress signals sent by patients and the like, and low-priority medical data are environmental temperature, such as temperature, humidity and the like. According to the importance degree of the medical data, the high-priority data priority factor is usedSet to 0.7, low priority data priority factorSet to 0.3, the end node encapsulates the medical dataAnd packaging the medical data into a medical data packet for transmission.
Scanning slot boundaries atRandomly selecting an integer within the intervalXAnd then according to medical data packets with different priorities in the ZigBee gatewayBuffer occupancy of buffer queueAnd a priority factor corresponding to the priority of the medical data packetDetermining back-off time slots, and setting back-off time slots corresponding to medical data packets with different priorities as. (e.g., the overall buffer queue size is 200, where 150 gives high priority data and 50 gives low priority data, then the buffer occupancy of high priority is high priority medical data packets/150 in the queue, and likewise, the buffer occupancy of low priority data is low priority medical data packets/50 in the queue).
And 4, after the terminal node finishes the backoff, the terminal node performs channel detection, and jumps to the step 5 when the detection channel is idle, and jumps to the step 6 when the detection channel is busy.
And 6, because the channel is busy, the terminal node needs to perform the next backoff, the backoff Number (NB) is added with 1, whether the backoff number NB is greater than the maximum backoff number macmaxCSABackofs or not is judged, if so, the channel competition fails, the medical data packet is discarded, the step 2 is switched to transmit the next medical data packet, and if not, the step 3 is switched to.
And 7, the terminal node is successfully accessed into the channel, the terminal node starts to transmit the medical data packet to the coordinator node, if the transmission is successful, the step 8 is carried out, and if the transmission is failed, the medical data packet is retransmitted, and the step 9 is carried out.
And 8, after the coordinator node successfully receives the medical data packet sent by the terminal node, returning an ACK (acknowledgement) frame to the terminal node, completing the transmission, and turning to the step 2 to transmit the next medical data packet.
And 9, adding 1 to the retransmission times (FR), judging whether the retransmission times FR is greater than the maximum retransmission times macMaxFrameRetries, if so, discarding the medical data packet, returning the error to an upper network, and turning to the step 2 to transmit the next medical data packet. If the retransmission times are not larger than the maximum value macMaxFrameRetries, the step 2 is carried out to continue retransmitting the medical data packet.
Example 2:
establishing a three-dimensional Markov chain model, as shown in FIG. 1Indicates the state of the terminal node at time t, whereinIndicates the number of backoff times at time t,indicates the state of the backoff counter at time t, the backoff counter having a value ofA random value in between, and a random value,representing the number of retransmissions at time t, for convenient notation, defining m to represent the maximum number of backoff, r to represent the maximum number of retransmissions, and a backoff windowIs shown asI is the number of the back-off times,for the initial back-off window size,whereinIs macmaxBE, the maximum value of the backoff index (BE),is macMinBE, the minimum value of the backoff index (BE). In the embodiment, a single-hop star network topology is adopted, wherein the single-hop star network topology comprises a coordinator node and 12 terminal nodes, and the listening range of all the nodes is large enough, so that the problem of hidden nodes is not considered.
In order to ensure the reliable transmission of the data frame, a retransmission mechanism is added for the non-time slot CSMA/CA algorithm, after the terminal node sends the data frame to the coordinator node, if the ACK confirmation frame sent by the coordinator node is not received within the specified time, the terminal node accesses the channel again and sends the data frame, the retransmission time (FR) is added with 1, and when the retransmission time reaches the maximum time macMaxFrameReties, the transmission fails.
Suppose the terminal node is at [ nT, (n + 1) T]In the time interval of (2), T is an interval period, the nth medical data packet is randomly and uniformly generated every time, and the unit cycle time of each time slot is T 0 The value is 320us, and the medical data packet generation rate of the terminal node isThe time interval T, during which,can be calculated as:
the non-time slot CSMA/CA algorithm process can be divided into different stages, namely backoff decrement, CCA, successful reception of data packets, non-reception of ACK acknowledgement frame by the terminal node and discarding of data packets, according to the rule of Markov chain, the probability sum of all stages is 1, and the following equation is given:
wherein the content of the first and second substances,denoted as backoff i, backoff window j, probability at retransmission k,expressed as the i-th backoff, the probability of CCA occurring at the k-th retransmission,expressed as the probability of successful receipt of the medical data packet,indicating the probability that the terminal node does not receive the ACK acknowledgement frame after successfully sending the medical data packet,the probability of discarding the medical data packet is indicated as a failure of the medical data packet transmission.
The probability sum expression for each stage is as follows:
whereinProbability of random backoff being completed for the first time by the terminal node,a probability is generated for the medical data packet,as is the probability of a CCA failure,in order to be a probability of retransmission,,. Here, theIndicating the time slot length corresponding to the length of the medical data packet,indicating the ACK acknowledgement frame latency time,indicating the slot length to which the ACK acknowledgment frame length corresponds,indicating the length of the time slot corresponding to the interval of the medical data packet,indicating an ACK timeout time. To simplify the whole formula, let,。
Defining the probability of the terminal node performing Clear Channel Assessment (CCA) in a random time period asComprises the following steps:
definition ofIf a medical data packet collides with other transmitted medical data packets on the way of transmission or a transmission error is caused by a channel error, the terminal node will try to retransmit the medical data packet until the maximum retransmission number is reached. There are two reasons for packet loss: 1) Packet loss due to collision, 2) transmission error. Is provided withIs the probability of transmission error, and therefore retransmission probabilityIs defined as:
whereinAnd N represents the number of terminal nodes. Similarly, to determine the probability of CCA failureI.e. the probability of detecting that the channel discovery channel is occupied, the CCA failure probability may be defined asDivided into two parts, namely the probability of CCA failure during the transmission of medical data packetAnd probability of CCA failure at ACK acknowledgement frame transmissionHence probability of CCA failureIs defined as:
WhereinIn order to ACK the frame length is acknowledged,Nthe number of the terminal nodes is obtained, and the CCA failure probability can be deducedComprises the following steps:
by combining the above formulas, the normalization can be obtained by Markov chainThen calculating the probability of executing the idle channel estimation by using numerical solutionRetransmission probabilityAnd probability of CCA failureThe value of (c).
In order to analyze the performance of the algorithm, the reliability and delay of the algorithm are calculated, wherein the reliability is defined as the probability that the coordinator node successfully receives the data packet after the terminal node sends the medical data packet. In non-slotted CSMA/CA, there are two main reasons why packet loss occurs: 1) Channel access failure, 2) retransmission limit exceeded at transmission. When the backoff times reach the maximum backoff time, the terminal node still cannot sense the idle channel, and the channel access fails, or the medical data packet still cannot sense the idle channel and is discarded when the maximum retransmission times are reached. Probability of channel access failureComprises the following steps:
whereinExpressed as the probability of experiencing the maximum number of back-offs, the probability of packet loss beyond the retransmission limit when transmittingComprises the following steps:
The delay is defined as the time interval from the generation of a medical data packet by the end node to the reception of an ACK acknowledgement frame by the end node, the discarded medical data packet being without regard to the delay problem. Dividing the total delay into three parts, 1) the delay of the backoff stage,2) And 3) delay of retransmission process when terminal node does not receive ACK acknowledgement frameAnd thus, the total delayThe expression of (a) is:
when the terminal node performs CCA, if the channel is found to be busy, the terminal node enters a backoff state, and the delay of the backoff stageThe expression is as follows:
wherein the content of the first and second substances,is a unit time of a time slot,is the initial backoff window. Since the successfully transmitted data packet length isIt is easy to derive the delay of successful transmission of the data packet. After the medical data packet is sent to the channel, the sending terminal node cannot receive the ACK acknowledgement frame due to collision or transmission error, and then enters a retransmission state, and the retransmission process is delayedThe expression of (a) is:
wherein the content of the first and second substances,indicates a delay of failure in transmission of the medical data packet at the k-th retransmission, anDue to the fact thatIn this embodiment, then,。
according to the technical scheme provided by the invention, an OMNET + + 5.6.2 platform is used for simulation, and the simulation scene is as follows: the simulation topological structure is a star topology, 1 coordinator node and 12 terminal nodes, and the terminal nodes regularly send medical data packets to the coordinator nodes. To compare the effects of MAC parameters on reliability and delay, three key parameters were chosen, respectively the maximum of the number of retransmissionsMaximum value of the number of backoffMinimum value of the backoff indexAnd (5) performing variable analysis. Experimental setupHas a value range of [1,7 ]],Has a value range of [3,6 ]],Has a value range of [1,6 ]]Setting transmission error probabilityThe values of (2) are respectively 0.05,0.1 and 0.2, the probability of transmission error of each node is the same, and the simulation parameters are shown in table 1.
TABLE 1 simulation parameter Table
(one), reliability analysis and comparison
And selecting a Biswas model for comparison, wherein the Biswas model is a non-time slot IEEE 802.15.4 network two-dimensional Markov chain analysis model, considers the probability of transmission errors, has no retransmission mechanism, and only analyzes and compares the reliability of the Biswas model. As shown in the figure 2 of the drawings,the setting is 3, and the setting is,set to 4, it is clear that reliability followsBecomes larger and larger, and the transmission error probabilityHas different values and different reliabilities, whenRelatively small, the reliability isBecomes significantly larger whenWhen the number is more than 5, the reliability becomes larger, because too many retransmissions will cause the probability of collision to become larger, and the packet loss rate becomes larger. Therefore, the temperature of the molten metal is controlled,not the larger the better, but the more network overhead increases. As shown in figure 3 of the drawings,the setting is 3, and the setting is,is set to 3, it can be seen thatThe value of (a) has no significant effect on reliability, as shown in figure 4,the setting is 4, and the setting is,the setting is 3, and the setting is,reliability can be improved becauseThe initial backoff window size is determined to reduce the number of collisions, and the analysis above shows that the main factor affecting reliability is。
(II) delay analysis and comparison
Also, the effect of three key parameters on delay was analyzed, as shown in FIG. 5, whenWhen the comparison is small, the comparison result is that,the effect on the delay is not significant, however whenWhen larger, the delay followsBecome larger and larger because of whenWhen small, most terminal nodes can successfully transmit without retransmission. As shown in fig. 6, again, only ifWhen larger, the delay will followBecomes larger and becomes larger. As shown in fig. 7, withBecomes larger, the delay becomes significantly larger becauseThe initial back-off window is decided upon,the larger the latency before accessing the channel, the longer, and therefore the main parameter affecting the delay is。
Because the CSMA/CA algorithm is adopted in the medical system, in order to ensure that important data can be transmitted preferentially, the optimization algorithm can grade the data, and the judgment of the data grade mainly depends on the importance of each physical index in the treatment process to grade the dataThe medical field comprises main data including first priority data, second priority data, third priority data and the like, wherein the first priority data are physical sign data of a human body, such as heart rate, blood pressure, blood oxygen and the like, the second priority data are environmental temperature, such as temperature, humidity and the like, and the third priority data are other signals, such as an alarm signal of emergency, a distress signal sent by a patient and the like. According to the importance degree of the data, the physical sign data and other signals of the human body are divided into high-priority data, and the environment temperature is divided into low-priority data. As can be seen in the above analysis,is a main parameter affecting the delay, in order to ensure that high priority data is transmitted first, and therefore givenWith initial value set to 2, low priority dataThe initial value is set to 3, thereby allowing high priority data to access the channel preferentially, and through simulation experiments, the high priority data has a higher probability of accessing the channel than the low priority data, as shown in fig. 8.
In order to further ensure the prior transmission of high-priority data, the method sets twice priority screening, namely the cache occupancy rate of the cache queue of the ZigBee gateway for the first time(e.g., a total buffer queue size of 200, where 150 gives high priority data and 50 gives low priority data, then the buffer occupancy of high priority is high priority medical data packets/150 in the queue, and likewise, the buffer occupancy of low priority data is low priority medical data packets/50 in the queue), and the second time is the priority factor of the priority dataTo determine the back-off time slot, the priority factor of the high priority data is 0 in this application7, low priority data priority factor of 0.3, backoff time slot ofRandom value in betweenXAfter prioritization, the backoff time slot isThrough simulation experiments, as shown in fig. 9, the throughput of high priority packets is higher than that of low priority packets.
In summary, the non-time slot CSMA/CA algorithm and the three-dimensional Markov chain model thereof are provided, the expression of reliability and delay is deduced, the influence of three key parameters on the reliability and the delay is verified through simulation experiments, the effectiveness of the provided algorithm is proved, the reliability is increased, the reliable transmission of the whole network is ensured, and the performance of the network is optimized.
Claims (7)
1. An improved non-slotted CSMA/CA optimization method, comprising the steps of:
step 1, classifying medical data by a terminal node;
step 2, the terminal node sets the size of an initial backoff window according to the priority of the medical data packet to be transmitted;
Step 3, setting a backoff window corresponding to the ith backoffSetting back-off time slots corresponding to medical data packets with different priorities;
step 4, after the terminal node retreats, the terminal node performs channel detection, when the detection channel is idle, the step 5 is skipped, and when the detection channel is busy, the step 6 is skipped;
step 5, when the length CW of a competition window corresponding to the terminal node is reduced by 1 and the CW is =0, the channel is successfully competed, the terminal node is allowed to access the channel, and the step 7 is carried out;
step 6, adding 1 to the backoff number NB, if the backoff number NB is greater than the maximum backoff number value macmaxSMABackoffset, discarding the medical data packet, and transferring to step 2 to transmit the medical data packet next time, and if the backoff number NB is not greater than the maximum backoff number value macmaxSMABackoffset, skipping to step 3;
7, the terminal node starts to transmit the medical data packet to the coordinator node, if the transmission is successful, the step 8 is switched to, and if the transmission is failed, the step 9 is switched to;
step 8, after the coordinator node successfully receives the medical data packet sent by the terminal node, an ACK (acknowledgement) frame is returned to the terminal node, and the step 2 is switched to for the next transmission of the medical data packet;
step 9, adding 1 to the retransmission times FR, discarding the medical data packet if the retransmission times FR is greater than the maximum retransmission times macMaxFrameRetries, returning the error to the upper network, and turning to the step 2 to transmit the next medical data packet; the retransmission times FR is not more than the maximum value macMaxFrameRetries of the retransmission times, the step 2 is carried out to continue retransmitting the medical data packet,
the size of the initial backoff window in the step 2Wherein, macminBE is the minimum value of the backoff index, the minimum value macminBE of the backoff index corresponding to the medical data packet with higher priority is smaller, the backoff number initial value is set to 0,
a backoff window corresponding to the ith backoff in the step 3,For the initial back-off window size,wherein, in the process,is the maximum value of the backoff index macMaxBE,is the minimum value of the backoff index, macMinBE,
2. An improved evaluation method for non-slotted CSMA/CA optimization, comprising the steps of:
step S1, classifying medical data by a terminal node;
s2, the terminal node sets the size of an initial backoff window according to the priority of the medical data packet to be transmitted;
Step S3, setting a backoff window corresponding to the ith backoffMedical treatment of setting different priority levelsA back-off time slot corresponding to the data packet;
s4, after the terminal node retreats, the terminal node performs channel detection, when the detection channel is idle, the step S5 is skipped, and when the detection channel is busy, the step S6 is skipped;
s5, when the length CW of a competition window corresponding to the terminal node is reduced by 1 and the CW is =0, the channel is successfully competed, the terminal node is allowed to access the channel, and the step S7 is carried out;
step S6, adding 1 to the backoff number NB, if the backoff number NB is greater than the maximum backoff number value macmaxCSABackofs, discarding the medical data packet, and going to step S2 to transmit the next medical data packet, and if the backoff number NB is not greater than the maximum backoff number value macmaxCSABackofs, going to step S3;
s7, the terminal node starts to transmit the medical data packet to the coordinator node, if the transmission is successful, the step S8 is switched to, and if the transmission is failed, the step S9 is switched to;
s8, after the coordinator node successfully receives the medical data packet sent by the terminal node, an ACK (acknowledgement) frame is returned to the terminal node, and the step S2 is switched to transmit the medical data packet for the next time;
step S9, adding 1 to the retransmission times FR, discarding the medical data packet if the retransmission times FR is greater than the maximum retransmission times macMaxFrameRetries, returning the error to an upper network, and turning to the step S2 to transmit the next medical data packet; the retransmission times FR is not more than the maximum value macMaxFrameRetries of the retransmission times, go to step S2 to continue retransmitting the medical data packet,
the size of the initial backoff window in step S2Wherein macMinBE is the minimum value of the backoff index, the minimum value macMinBE of the backoff index corresponding to the medical data packet with higher priority is smaller, the initial value of the backoff number is set to 0,
a backoff window corresponding to the ith backoff in the step S3,For the initial back-off window size,wherein, in the step (A),is the maximum value of the backoff index macMaxBE,is the minimum value of the backoff index, macMinBE,
the back-off time slots corresponding to the medical data packets with different priorities are set as,The buffer occupancy rate of the medical data packet in the buffer queue of the ZigBee gateway,is a priority factor, X isA random integer within the interval of one,
the improved non-slotted CSMA/CA optimization evaluation method comprises the following steps:
step 1, constructing a three-dimensional Markov chain model;
step 2, constructing a formula:
wherein the content of the first and second substances,denoted as backoff i, backoff window j, probability at retransmission k,expressed as the i-th backoff, the probability of CCA occurring at the k-th retransmission,expressed as the probability of successful receipt of the medical data packet,indicating the probability that the terminal node does not receive the ACK acknowledgement frame after successfully sending the medical data packet,representing the probability of discarding the medical data packet as a transmission failure of the medical data packet;
step 3, defining the generation rate of the medical data packet of the terminal node as,T 0 The unit cycle time of each time slot is T, and the T is an interval cycle;
step 4, establishing the probability of the terminal node for executing the idle channel evaluationThe formula (2);
step 7, solving according to the formula constructed in the steps 2-6 and according to Markov chain normalizationTo calculate the probabilityProbability of retransmissionAnd probability of CCA failureThe value of (a) is set to (b),
Step 9, calculating the probability of packet loss caused by exceeding retransmission limit during transmission;
3. The method of claim 2, wherein the evaluation of non-slotted CSMA/CA optimization is performed by: the three-dimensional Markov chain model in the step 1 is;
Wherein the content of the first and second substances,indicates the number of backoff times at time t,indicates the state of the backoff counter at time t, the value of the backoff counter beingA random value in between, and a random value,denotes the number of retransmissions at time t, and defines m as the maximum number of backoff, and r as the maximum number of retransmissions.
4. The method of claim 3, wherein the evaluation of non-slotted CSMA/CA optimization is performed by: in the step 2:
wherein the content of the first and second substances,probability of random backoff being completed for the first time by the terminal node,a probability is generated for the medical data packet,as is the probability of a CCA failure,in order to be the probability of retransmission,,,indicating the length of the time slot corresponding to the length of the medical data packet,is shown as AThe CK acknowledges the frame latency time and,indicating the slot length to which the ACK acknowledgment frame length corresponds,indicating the time slot length corresponding to the medical data packet interval,indicating ACK timeout time, parameter,。
5. The improved non-slotted CSMA/CA optimized evaluation method of claim 4, wherein: the probability of the terminal node performing the idle channel assessment in the step 4Comprises the following steps:
wherein the content of the first and second substances,n represents the number of terminal nodes for the probability of transmission errors;
6. the method of claim 5, wherein the evaluation of non-slotted CSMA/CA optimization is performed by: probability of channel access failure in the step 8Comprises the following steps:
probability of packet loss due to exceeding retransmission limit during transmission in step 9Comprises the following steps:
7. the method of claim 5, wherein the evaluation of non-slotted CSMA/CA optimization is performed by: in the step 11, the process is carried out,
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210958171.XA CN115038192B (en) | 2022-08-10 | 2022-08-10 | Improved non-time slot CSMA/CA optimization method and evaluation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210958171.XA CN115038192B (en) | 2022-08-10 | 2022-08-10 | Improved non-time slot CSMA/CA optimization method and evaluation method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115038192A CN115038192A (en) | 2022-09-09 |
CN115038192B true CN115038192B (en) | 2022-11-08 |
Family
ID=83130612
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210958171.XA Active CN115038192B (en) | 2022-08-10 | 2022-08-10 | Improved non-time slot CSMA/CA optimization method and evaluation method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115038192B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103857055A (en) * | 2014-03-20 | 2014-06-11 | 南京航空航天大学 | Back-off parameter designing method for realizing fairness of wireless self-organizing network links |
WO2017026937A1 (en) * | 2015-08-13 | 2017-02-16 | Telefonaktiebolaget Lm Ericsson (Publ) | Contention window adaptation in multi-carrier listen-before-talk protocols |
CN107040948A (en) * | 2017-06-13 | 2017-08-11 | 河北工业大学 | A kind of CSMA/CA optimization methods based on priority |
CN113613345A (en) * | 2021-08-11 | 2021-11-05 | 福建工程学院 | Zigbee star networking-based safety condition informatization monitoring method |
CN114554436A (en) * | 2022-01-10 | 2022-05-27 | 华南理工大学 | Passive Internet of things node medium access control method, system, device and medium |
CN114641085A (en) * | 2022-03-23 | 2022-06-17 | 重庆邮电大学 | Self-adaptive back-off optimization method of CSMA/CA mechanism based on IEEE802.15.4 |
-
2022
- 2022-08-10 CN CN202210958171.XA patent/CN115038192B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103857055A (en) * | 2014-03-20 | 2014-06-11 | 南京航空航天大学 | Back-off parameter designing method for realizing fairness of wireless self-organizing network links |
WO2017026937A1 (en) * | 2015-08-13 | 2017-02-16 | Telefonaktiebolaget Lm Ericsson (Publ) | Contention window adaptation in multi-carrier listen-before-talk protocols |
CN107040948A (en) * | 2017-06-13 | 2017-08-11 | 河北工业大学 | A kind of CSMA/CA optimization methods based on priority |
CN113613345A (en) * | 2021-08-11 | 2021-11-05 | 福建工程学院 | Zigbee star networking-based safety condition informatization monitoring method |
CN114554436A (en) * | 2022-01-10 | 2022-05-27 | 华南理工大学 | Passive Internet of things node medium access control method, system, device and medium |
CN114641085A (en) * | 2022-03-23 | 2022-06-17 | 重庆邮电大学 | Self-adaptive back-off optimization method of CSMA/CA mechanism based on IEEE802.15.4 |
Non-Patent Citations (2)
Title |
---|
一种IEEE 802.11接入机制的新退避算法;张强等;《传感技术学报》;20081220(第12期);全文 * |
一种应用于桥载设备监控网络CSMA/CA机制算法;林家泉等;《计算机测量与控制》;20150425(第04期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN115038192A (en) | 2022-09-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4435235B2 (en) | Method and apparatus for controlling wireless medium congestion by adjusting contention window size and separating selected mobile stations | |
Zhai et al. | Performance analysis of IEEE 802.11 MAC protocols in wireless LANs | |
CN110943861B (en) | Multilink concurrent transmission method suitable for underwater acoustic sensor network | |
KR100608914B1 (en) | Media access control apparatus of wireless LAN for VoIP | |
US8320397B2 (en) | Backoff adjustment method for MAC system | |
US7110418B2 (en) | Method to ensure the quality of preferred communication services, a local network, a station, a local network controller and a program module therefor | |
CN112437498B (en) | Data link protocol back-off method based on channel state judgment and priority | |
CN112437497B (en) | Back-off mode design method for data link random access protocol | |
CN108307439B (en) | Self-adaptive back-off method under large number of multi-hop wireless nodes | |
JP2009500883A (en) | Transmission power control in random access method | |
Misic et al. | Avoiding the bottlenecks in the MAC layer in 802.15. 4 low rate WPAN | |
CN115038192B (en) | Improved non-time slot CSMA/CA optimization method and evaluation method | |
US20070217443A1 (en) | Communication apparatus, communication method, and computer program product | |
CN107613570B (en) | Service quality optimization method and system based on ZigBee network | |
NO341951B1 (en) | Operating method of a communication node in a storage system | |
KR101139536B1 (en) | Wireless Multicast retransmissions to adjust contention window in the terminal system and its control method | |
CN103987136B (en) | A kind of intelligent gateway interacted for cable network and wireless network | |
CN111148270A (en) | Long-distance multi-channel communication random access method and system based on service quality | |
KR100733380B1 (en) | Collision solving system in data transmission in wireless network and method thereof and recording medium thereof | |
KR20070078564A (en) | Apparatus and method of processing frame in wireless lan | |
Hung et al. | Access delay analysis of IEEE 802.11 DCF in the presence of hidden stations | |
JP2008060984A (en) | Transmission apparatus and transmission method of wireless communication system | |
Ambigavathi et al. | Saturation throughput analysis of ieee 802.15. 6 under ideal transmission channel condition | |
KR100427485B1 (en) | Method for Ramdon Accessing Packet Data using Persistent-CSMA | |
Sun et al. | Optimized backoff algorithm of IEEE 802.11 DCF for collision resolution |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |