Traffic Priority-Aware Adaptive Slot Allocation for Medium Access Control Protocol in Wireless Body Area Network

Biomedical sensors (BMSs) monitor the heterogeneous vital signs of patients. They have diverse Quality of Service (QoS) requirements including reduced collision, delay, loss, and energy consumption in the transmission of data, which are non-constrained, delay-constrained, reliability-constrained, and critical. In this context, this paper proposes a traffic priority-aware adaptive slot allocation-based medium access control (TraySL-MAC) protocol. Firstly, a reduced contention adaptive slot allocation algorithm is presented to minimize contention rounds. Secondly, a low threshold vital signs criticality-based adaptive slot allocation algorithm is developed for high priority data. Thirdly, a high threshold vital signs criticality-based adaptive slot allocation algorithm is designed for low priority data. Simulations are performed to comparatively evaluate the performance of the proposed protocol with state-of-the-art MAC protocols. From the analysis of the results, it is evident that the proposed protocol is beneficial in terms of lower packet delivery delay and energy consumption, and higher throughput in realistic biomedical environments.


Introduction
Wireless body area networks (WBANs) have attracted researcher communities due to the growing significance of monitoring heterogeneous vital signs in the domain of medical and health-care, sports and entertainments, and rehabilitation systems.The vital signs include temperature, blood pressure, heartbeat rate, respiration, electrocardiogram (ECG), electroencephalogram (EEG), and glucose level [1].These vital signs are monitored using biomedical sensors (BMSs), which are deployed on the patient's body in three methods as shown in Figure 1.The implantation is the first method, which is used to deploy BMSs inside the patient's body for monitoring internal organs [2].The second deployment method is wearing BMSs, whereby BMSs are attached to the skin or sewn onto a patient's shirt.They externally monitor organ conditions, including temperature, blood pressure, and heartbeat [3].In the third method, BMSs are deployed near the patient's body to monitor body positions, including sleep duration, arm direction, and handshaking [4].The monitored sensory data are then transmitted to the body coordinator, and the body coordinator transmits data to the medical doctors for analysis and treatments.The monitored data are categorized into non-emergency and emergency data considering delay and reliability constraints.The non-emergency data are composed of a normal reading of vital signs such as temperature and glucose level [5].The emergency data are composed of abnormal readings of vital signs such as low respiratory rate and high blood pressure [6].IEEE 802.15.4 has been used as the medium access control (MAC) protocol for WBANs.The MAC Superframe structure of IEEE 802.15.4 has 16 channels.The allocation of channels to BMSs is based on the contention in the contention-access period (CAP) [7,8].Each BMS performs contention in rounds to access the channel, and the values of contention of previous rounds are repeated in the current round.The body coordinator allocates guaranteed timeslots of contention-free period (CFP) to the BMSs, obtaining a channel access in CAP.The increment in contention for accessing the channel during CAP causes collision, delay, packets loss, and retransmission of the lost packet.These degrade performance of 802.15.4 MAC resulting in higher energy consumption.Due to the limited channels, non-dedicated channels are allocated, beacon interval (BI) time becomes insufficient resulting in channels interferences, and thus, BMSs need to wait for the transmission of data in the next session of BI [9,10].
Due to these challenging issues, various MAC protocols for WBANs have been suggested by extending IEEE 802.15.4 MACs.In [11], dedicated slots in the CFP period were provided.The allocation of the slots is based on the contention.The removal of data from the allocated slots on the arrival of emergency data was considered.This degrades the performance of the MAC protocol resulting in terms of collision, delay, and higher energy consumption due to the retransmission of loss packets.The dedicated slots were considered in [10] for all types of BMSs described in [11].In case of emergency, the body coordinator calculates the criticalities of the data and allocates the dedicated slots of the CFP period after contention.Additionally, this suggested MAC scheme has not resolved the conflict of slot allocation between the same types of emergency data a body coordinator receives at the same time.The CFP period has been divided into different GTS slots and allocated channels based on the contention in [12] as described in [10,11].This scheme broadcasts a beacon for stopping contention, which causes of dropping of data when all slots are non-empty.In [13], the MAC Superframe structure was re-designed, and dedicated slots were allocated to each type of patient data.The emergency-based BMSs drop the patient's data in contention because other BMSs also contend to access the channel.The same concept of re-designing the MAC Superframe structure was considered in [14].In emergency situations, other BMSs are informed to stop contention using a flag The monitored data are categorized into non-emergency and emergency data considering delay and reliability constraints.The non-emergency data are composed of a normal reading of vital signs such as temperature and glucose level [5].The emergency data are composed of abnormal readings of vital signs such as low respiratory rate and high blood pressure [6].IEEE 802.15.4 has been used as the medium access control (MAC) protocol for WBANs.The MAC Superframe structure of IEEE 802.15.4 has 16 channels.The allocation of channels to BMSs is based on the contention in the contention-access period (CAP) [7,8].Each BMS performs contention in rounds to access the channel, and the values of contention of previous rounds are repeated in the current round.The body coordinator allocates guaranteed timeslots of contention-free period (CFP) to the BMSs, obtaining a channel access in CAP.The increment in contention for accessing the channel during CAP causes collision, delay, packets loss, and retransmission of the lost packet.These degrade performance of 802.15.4 MAC resulting in higher energy consumption.Due to the limited channels, non-dedicated channels are allocated, beacon interval (BI) time becomes insufficient resulting in channels interferences, and thus, BMSs need to wait for the transmission of data in the next session of BI [9,10].
Due to these challenging issues, various MAC protocols for WBANs have been suggested by extending IEEE 802.15.4 MACs.In [11], dedicated slots in the CFP period were provided.The allocation of the slots is based on the contention.The removal of data from the allocated slots on the arrival of emergency data was considered.This degrades the performance of the MAC protocol resulting in terms of collision, delay, and higher energy consumption due to the retransmission of loss packets.The dedicated slots were considered in [10] for all types of BMSs described in [11].In case of emergency, the body coordinator calculates the criticalities of the data and allocates the dedicated slots of the CFP period after contention.Additionally, this suggested MAC scheme has not resolved the conflict of slot allocation between the same types of emergency data a body coordinator receives at the same time.The CFP period has been divided into different GTS slots and allocated channels based on the contention in [12] as described in [10,11].This scheme broadcasts a beacon for stopping contention, which causes of dropping of data when all slots are non-empty.In [13], the MAC Superframe structure was re-designed, and dedicated slots were allocated to each type of patient data.The emergency-based BMSs drop the patient's data in contention because other BMSs also contend to access the channel.The same concept of re-designing the MAC Superframe structure was considered in [14].In emergency situations, other BMSs are informed to stop contention using a flag value "set".The dedicated slots were considered in [15] as used in [10,11].In contention, the emergency-based BMS uses a slot of different data when there is a non-empty slot available in the designated slots.This causes data of other BMSs to drop.
In this context, this paper proposes a traffic priority-aware adaptive slot allocation-based medium access control (TraySL-MAC) protocol, which prioritizes patient data for appropriate slot allocation.Specifically, the contributions of the paper are listed below:

•
Firstly, a reduced contention adaptive slot allocation algorithm is presented, to minimize contention rounds during the transmission of data from BMSs to the body coordinator.

•
Secondly, a low threshold vital signs criticality-based adaptive slot allocation algorithm is developed to resolve slot allocation conflicts among high priority data.

•
Thirdly, a high threshold vital signs criticality-based adaptive slot allocation algorithm is designed to resolve slot allocation conflicts among low priority data.

•
Simulations are performed in realistic biomedical environments, to comparatively evaluate the performance of the proposed protocol with state-of-the-art MAC protocols.
The rest of this paper is organized as follows.Section 2 reviews related literature on MAC protocols for WNANs focusing on the extensions of IEEE 802.15.4.Section 3 presents the detail of the proposed TraySL-MAC protocol focusing on the network model, super-frame structure, and three slot allocation algorithms.Section 4 discusses comparative performance evaluation considering simulation environments and analysis of results, followed by conclusion made in Section 5.

Related Works
The channel allocation is the basic requirement to transmit heterogeneous nature of a patient's data in WBANs.The MAC Superframe structures of IEEE 802.11 [16] and IEEE 802.15 [17] do not support and allocate channels to a patient's data.IEEE 802.15.4 is suitable for channel allocation for patient data and thus preferred in WBANs.The features and limitations of 802.15.4 are explored below.IEEE 802.15.4 classifies the patient's data into normal, periodic, and emergency data.The normal data is comprised of a temperature.The periodic data contains the reading of glucose and blood pressure.The emergency data contains life threatening vital signs information.The Superframe structure of IEEE 802.15.4 MAC [7,8] is comprised of a beacon, CAP, CFP, and a lower power listening (LPL)/inactive period (IP).At the beginning of communication, the body coordinator broadcasts a beacon to all BMSs in the network, which contains information about synchronization, the address of the body coordinator, and the next announcement of the beacon interval (BI).In synchronization, BMSs transmit the request for channel association and dissociation to the body coordinator.The address of the body coordinator is broadcasted to BMSs for remembering it as the head/coordinator to allocate channels and transmit data.The BI is the time period, whereas each BMS contends and transmits sensory data in the specified amount of time.The IP is used to save energy when a BMS is not busy for transmitting sensory data.In contention, each BMS performs many back-offs and clear channel assessment (CCA) to access the channel [18,19].The body coordinator allocates channels of the CFP period to those BMSs that obtained a channel access in the CAP period [20].The followings are the limitations of the Superframe structure of IEEE 802.15.4 MAC [12] as follows: IEEE 802.15.4 provides limited 16 (0-15) channels.All BMSs perform contention and repeats the previous rounds of contention in the current rounds to access the channel in the CAP period.Allocation of the CFP channels only to those BMSs that obtained a channel access in the CAP period.
During contention to access the channel, there is no priority-basis slot allocated to emergency data, and there is no differentiation between normal, periodic, and emergency data to assign the first slot based on priority during life critical situations.Due to contention, BMSs consume a higher amount of energy and drop patient data by exceeding the threshold values of contention.In TDMA, each BMS transmits sensory data in the fixed length of time and drops data if it has a large amount of data (frame).For instance, the report of the ECG is comprised of long sensory information.
These limitations severely reduce the performance of the MAC Superframe structure in terms of a higher collision.BMSs retransmit the lost data packets causing a delay with lower reliability and a higher amount of energy consumption, which is not tolerable in emergency situations.Due to these challenges, the Superframe structure of IEEE 802.15.4 MAC has been modified in recent works, which are discussed as follows.
The emergency data (ED), periodic data (PD), and normal data (ND) [21] are considered the patient's data, and the allocation of the CAP channel to these data is based on the contention.The proposed MAC Superframe structure of this scheme uses an emergency beacon in emergency situations for ED data, but the allocation of slots is based on the contention.In addition, this scheme [21] does not resolve the conflict of slot allocation when the body coordinator receives ED data at the same time.The same contention process of slot allocation is followed in this Preemptive and Non-Preemptive MAC (PNP-MAC) [11].However, this PNP-MAC was introduced by allocating dedicated Emergency Data Transfer slots (ETSs) and Data Transfer Slots (DTSs) to a patient's data.The second limitation of this scheme is that it preempts the non-emergency data on the arrival of emergency data from DTS or ETS slots.However, the slot allocation policy based on the contention and preemption of data is the drawback by reducing the performance of the MAC protocol in terms of a higher collision, delay, retransmission of the lost packets, and high-energy consumption of BMSs.
Similarly, the suggested priority-based load adaptive MAC (PLA-MAC) protocol [10] provides 128 channels and categorizes the patient's data into four classes: critical data packet (CP), reliability data packet (RP), delay data packet (DP), and ordinary packet (OP).Additionally, PLA-MAC provides the same dedicated DTS and ETS slots for non-emergency and emergency data, respectively, as mentioned in the PNP-MAC.However, the contention is used to allocate the channel of the CAP period, which greatly reduces the performance of the MAC protocol as aforementioned and consumes a high amount of energy of BMSs.Further, this PLA-MAC uses an equation which decides whether to assign DTS or ETS slots based on the nature of the data when a BMS obtains channel access in the CAP period.Another limitation is the conflict of slot allocation occurs when a body coordinator receives data of the same threshold values.The low-delay traffic-adaptive medium access control (LTD-MAC) [12] is the same contention-based channel allocation in that the size of the CFP period is extended.This scheme also claims that all BMSs contend and transmit data in the same beacon interval (BI) using BI = 6 and SO = 5, which is not possible for 14 BMSs.Another limitation of this LTD-MAC is the stopping contention and transmission of data when all channels are occupied, whereby BMSs drop data.The service differentiation and GTS slot allocation are introduced in the adaptive and real-time GTS allocation (ART-GAS) [22].The service differentiation is associated with data-based priority and rate-based priority.However, these introduced processes of slot allocation to BMSs are based on the contention and has the same challenges found in this ART-GAS scheme as aforementioned.This MAC [13] allocates dedicated emergency-TDMA (ETDMA), medical contention access periods (MCAP), normal-TDMA (NTDMA), CAP, and emergency slots (ESs) to emergency and non-emergency data.The emergency-based BMS drop the patient's data under two conditions: (1) when they perform the contention to access the channel in the CAP period, but cannot access the channel because other BMSs are also contending the same channel; and (2), with failure in (1), these BMSs try an ES by informing the body coordinator with the assistance of an alert signal in which the body coordinator receives multiple alert signals from other BMSs and drops the packets of BMSs.
Clearly, this scheme [13] creates overhead by changing positions of the periods in emergency and contention, which is not an appropriate solution to allocate slots in this way.
The suggested fuzzy control medium access (FCMA) [23] uses acquisition, fuzzy logic control, and implementation phases.Sensory data of a patient's are collected and sent to the body coordinator by using the acquisition phase.Afterwards, the decision of slot allocation is either CAP or CFP period following the rules in the fuzzy logic control phase, which is based on the data rate and priority data.The same contention process is noticed in this FCMA scheme.The priority-based adaptive timeslot allocation (PTA) [24] classifies the CAP channels into different phases.Each BMS contends to access and transmit data in the dedicated slots of phases.The contention and limited channel are the challenges in this PTA scheme as aforementioned.Moreover, the proposed MAC [14] introduces slots: an emergency contention period (ECP), an advertisement beacon (AB), a periodic contention access period (PCAP), a notification beacon (NB), and a data transmission period (DTP) for emergency and non-emergency data.In emergency situations, the emergency-based BMSs contend to access a channel in the ECP period and the body coordinator informs the whole network about the emergency data by setting the value of a flag as "set" with the support of an AB message.The patient's data uses PCAP and DTP periods based on the contention.Additionally, this scheme does not resolve the conflict of slot allocation between BMSs.This priority-adaptive MAC (PA-MAC) [15] divides the CAP channels into four phases.It has the same process of contention-based channel allocation.The emergency data can access all four phases of channels, on-demand data can access Phases 2 to 4, normal data can access Phases 3 and 4; and non-medical data can access only Phase 4. The same contention process does not allocate dedicated slots to emergency data without contention, as noticed in this scheme, which is a limitation for emergency data.The multi-channel MAC (MC-MAC) [25] introduces flags concept in the contention.The contention permission is broadcasted in a beacon frame to all BMSs whether they can perform contention or they need to wait for the next announcement of BI.Similarly, this token-based two-round reservation MAC (TTR-MAC) [26] divides the slots of the Superframe structure into first-round reservation period (FRRP), second-round reservation Period (SRRP), and sleep period (SP).The FRRP contains three-way handshaking in the contention with the body coordinator.The BMSs need to wait for SRRP if they do not access the channel in the FRRP.Clearly, the existing MAC schemes have not considered the contention-based channel allocation in their designs.The contention degrades the performance of the MAC protocol, resulting in a higher collision.The BMS retransmits the lost/collided packets, causing delay, lower data reliability, and high energy consumption.Therefore, there is a need for a MAC protocol that should address the limitations of the existing MAC schemes.

Traffic Priority-Aware Adaptive Slot Allocation for Medium Access Control
In this section, the detail of traffic priority aware slot allocation is proposed, focusing on the network model, the super-frame structure, and three slot allocation algorithms.

Network Model
The proposed TraySL-MAC provides 128 slots in the Superframe structure, comprised of a beacon (B), a CAP, a notification (N), an on-demand (OD) slot, a non-emergency data transfer slot (NTDS), an emergency beacon for a low threshold value (EB_Low), an emergency beacon for a high threshold value (EB_High), a critical low threshold transfer slot (CLTTS), and a critical high threshold transfer slot (CHTTS).For the CAP period, the body coordinator assigns 24 slots and the non-emergency-based BMSs perform contention to access the channel.The B, N, OD, EB_Low, and EB_High periods occupy single slot.Similarly, the body coordinator assigns 32 slots to the NDTS period, and 33 slots each to the CLTTS and CHTTS periods.The N, OD, NDTS, EB_Low, CLTTS, EB_High, and CHTTS are grouped in the CFP period.Moreover, it is assumed that several tiny BMSs are installed inside and outside of a patient's body to monitor vital signs.Thus, the contributions are as follows: i.
This study proposes Superframe structure of the TraySL-MAC protocol and provides sufficient channels by classifying the operating frequency into sub-frequencies.ii.
The sub-frequencies avoid the channel interferences, and BMSs transmit the long report of ECG with a sufficient time period of BI. iii.
The proposed ReCAL-CSMA/CA mechanism reduces the repetition in rounds of contention of non-emergency-based BMSs and does not drop the patient's data.iv.
Emergency-based BMSs do not contend to access the CAP channel, but they transmit alert signals to the dedicated emergency beacons.For this purpose, this study proposes a delay-aware mechanism, known as VSCAS.v.
The proposed TraySL-MAC protocol and other mechanisms improve throughput and packet delivery ratio (PDR), and reduces energy consumption and packet delivery delay.
The heterogeneous nature of a patient's data needs to transmit immediately to the body coordinator without collision, delay, packet loss, and minimum energy of consumption of BMSs.Based on these delays and reliability constraints, this paper classifies frequency bands, and patient data; the working steps of the proposed Superframe structure of the TraySL-MAC, ReCAL-CSMA/CA, and VSCAS schemes.

Frequency Bands
The operating frequency 2.4 GHz of the PHY layer in IEEE 802.15.4 provides 16 channels [27,28].The challenging issue is that the provided 16 channels are not sufficient for the heterogeneous nature of a patient's data to transmit without loss or delay, or consume a minimum energy of BMSs.In this paper, we classify the operating frequency spectrum 2.4 GHz into 16 sub-frequency spectrums: 2401 MHz, 2403 MHz, 2405 MHz, . . ., and 2431 MHz, as shown in Figure 2.Each sub-frequency spectrum provides eight channels and the bandwidth of each channel is 9.375 MHz.This higher bandwidth transmits a larger amount of data within a minimum time period.Further, the channel interferences/overlapping are avoided with the support of a guard band, and its gap between channels is 0.1 MHz.The guard band protects the channels from interference in assisting not to corrupt and collide data [29].Similarly, the guard band between the main channels is 2.0 GHz.Hence, the proposed Superframe structure of the TraySL-MAC is designed with 128 channels.
Emergency-based BMSs do not contend to access the CAP channel, but they transmit alert signals to the dedicated emergency beacons.For this purpose, this study proposes a delay-aware mechanism, known as VSCAS.v.
The proposed TraySL-MAC protocol and other mechanisms improve throughput and packet delivery ratio (PDR), and reduces energy consumption and packet delivery delay.
The heterogeneous nature of a patient's data needs to transmit immediately to the body coordinator without collision, delay, packet loss, and minimum energy of consumption of BMSs.Based on these delays and reliability constraints, this paper classifies frequency bands, and patient data; the working steps of the proposed Superframe structure of the TraySL-MAC, ReCAL-CSMA/CA, and VSCAS schemes.

Frequency Bands
The operating frequency 2.4 GHz of the PHY layer in IEEE 802.15.4 provides 16 channels [27,28].The challenging issue is that the provided 16 channels are not sufficient for the heterogeneous nature of a patient's data to transmit without loss or delay, or consume a minimum energy of BMSs.In this paper, we classify the operating frequency spectrum 2.4 GHz into 16 sub-frequency spectrums: 2401 MHz, 2403 MHz, 2405 MHz, …, and 2431 MHz, as shown in Figure 2.Each sub-frequency spectrum provides eight channels and the bandwidth of each channel is 9.375 MHz.This higher bandwidth transmits a larger amount of data within a minimum time period.Further, the channel interferences/overlapping are avoided with the support of a guard band, and its gap between channels is 0.1 MHz.The guard band protects the channels from interference in assisting not to corrupt and collide data [29].Similarly, the guard band between the main channels is 2.0 GHz.Hence, the proposed Superframe structure of the TraySL-MAC is designed with 128 channels.

Patient's Traffic Classification
The patient's data are classified into non-constrained data (NCD), delay-constrained data (DCD), reliability-constrained data (RCD), and critical data (CD) as described in [30].These classification of a patient's data assist to fulfill the requirements for real time healthcare applications.The NCD does not impose delay or constrain reliability, and is comprised of physiological vital signs, i.e., temperature and glucose level.The DCD contains audio/video-based information of a patient's body via motion sensing and telemedicine video imaging.It accepts a certain amount of the packet loss without a reliability constraint.RCD contains high threshold values of a high heartbeat and respiratory rate, and need to be delivered with minimum packet loss, though they can tolerate delay.CD contains readings of the low threshold values of a low respiratory rate and blood pressure.This

Patient's Traffic Classification
The patient's data are classified into non-constrained data (NCD), delay-constrained data (DCD), reliability-constrained data (RCD), and critical data (CD) as described in [30].These classification of a patient's data assist to fulfill the requirements for real time healthcare applications.The NCD does not impose delay or constrain reliability, and is comprised of physiological vital signs, i.e., temperature and glucose level.The DCD contains audio/video-based information of a patient's body via motion sensing and telemedicine video imaging.It accepts a certain amount of the packet loss without a reliability constraint.RCD contains high threshold values of a high heartbeat and respiratory rate, and need to be delivered with minimum packet loss, though they can tolerate delay.CD contains readings of the low threshold values of a low respiratory rate and blood pressure.This data does not accept latency or low reliability.Thus, the proposed ReCAL-CSMA/CA and VSCAS schemes allocate dedicated channels to these four types of patient data with reduced contention and an alert signal, respectively.

The Superframe Structure of TraySL-MAC
The TraySL-MAC Superframe structure of the body coordinator is shown in Figure 3.In the beginning of communication, the body coordinator broadcasts a beacon (B) to all BMSs.The B contains synchronization information between the body coordinator and BMSs before data transmission, the address of the body coordinator, and the next announcement of BI.In the synchronization, each BMS actively contends in the scanning of channels and occupies channels in the CAP period since the body coordinator allocates the CFP period to those BMSs that obtained a channel in CAP.However, the contention increases collision, causing a higher delay of the delay-sensitive data and consumes a higher energy by retransmitting lost/collided data packets.To improve performance of the contention-based BMSs, the ReCAL-CSMA/CA scheme is proposed by reducing the repetitive rounds of the contention.Additionally, it does not drop a patient's data.CD-and RCD-based BMSs do not contend to access the channel, but they transmit alert signals to the designated emergency beacons (EB_Low and EB_High) in emergency situations.In this way, the body coordinator allocates channels without affecting the contention performance of other BMSs.For this purpose, the VSCAS scheme is introduced.Both proposed schemes are explained in the following subsections.

The Superframe Structure of TraySL-MAC
The TraySL-MAC Superframe structure of the body coordinator is shown in Figure 3.In the beginning of communication, the body coordinator broadcasts a beacon (B) to all BMSs.The B contains synchronization information between the body coordinator and BMSs before data transmission, the address of the body coordinator, and the next announcement of BI.In the synchronization, each BMS actively contends in the scanning of channels and occupies channels in the CAP period since the body coordinator allocates the CFP period to those BMSs that obtained a channel in CAP.However, the contention increases collision, causing a higher delay of the delay-sensitive data and consumes a higher energy by retransmitting lost/collided data packets.To improve performance of the contention-based BMSs, the ReCAL-CSMA/CA scheme is proposed by reducing the repetitive rounds of the contention.Additionally, it does not drop a patient's data.CD-and RCD-based BMSs do not contend to access the channel, but they transmit alert signals to the designated emergency beacons (EB_Low and EB_High) in emergency situations.In this way, the body coordinator allocates channels without affecting the contention performance of other BMSs.For this purpose, the VSCAS scheme is introduced.Both proposed schemes are explained in the following subsections.

Reduced Contention Adaptive Slot Allocation CSMA/CA Scheme
To address the aforementioned issues, Algorithm 1 is proposed for the beacon-enabled ReCAL-CSMA/CA scheme to reduce the repetition in rounds of the contention as reflected in Equation (1).
where is the number of backoff for accessing the channel, while is backoff exponential.The proposed scheme divides the contention into five rounds.Round 2 is denoted by MACb = 2, Round 3 is denoted by MACMinb = 3, Round 4 is denoted by MACMedb = 4, and Round 5 is denoted by aMaxb = 5.These four rounds of the contention are implemented using Equation (1).However, Round 1 is denoted by MacMinBe = 1, and is implemented by using the standard Equation [Nb = 0 To 2 B e − 1] [7] of the CSMA/CA scheme.Moreover, the default parameters = 2, = 0, and Be are configured as shown in Step 1 of the proposed Algorithm 1.The CSMA/CA scheme first verifies whether a BMS uses fixed battery or extended life-time battery.We consider that BMSs use the extended life-time batteries and set MacMinBe = 1 is tested in simulation for ReCAL-CSMA/CA scheme as shown in Step 2 of Algorithm 1. Figure 4 shows the contention of BMSs, whereas each BMS contends in the five rounds (R1, R2, R3, R4, R5) to access the channel.

Reduced Contention Adaptive Slot Allocation CSMA/CA Scheme
To address the aforementioned issues, Algorithm 1 is proposed for the beacon-enabled ReCAL-CSMA/CA scheme to reduce the repetition in rounds of the contention as reflected in Equation (1).
where N b is the number of backoff for accessing the channel, while B e is backoff exponential.The proposed scheme divides the contention into five rounds.if   In this second round of the contention, BMSs contend to access the channel in ranges between 2 and 3 times using Equation (1) and transfers the control for obtaining channel access towards Step 4. In this way, the body coordinator assigns NDTS slots of the CFP's period as shown in Figure 4.However, the CSMA/CA-based BMSs contend in ranges between 0 and 3 times.Moreover, it is assumed that BMSs have not obtained channel access and are contending in the third round.The value of N b is incremented by one and sets the value of MACMin b = 3.The ReCAL-CSMA/CA-based BMSs contend to access the channel of the CAP period in ranges between 4 and 7 times, while the CSMA/CA-based BMSs contend for accessing the channel in ranges between 0 and 7 times.Similarly, Round 4-and Round 5-based BMSs contend to access the channel in ranges between 8 and 15 times and between 16 and 31 times, respectively.The CSMA/CA-based BMSs contend to access the channels in the fourth and fifth rounds in ranges between 0 and 15 and between 0 and 31 times, respectively.
Clearly, the CSMA/CA scheme repeats the values of the contention in each round and drops the delay-sensitive patient data by exceeding values of the contention.However, the proposed ReCAL-CSMA/CA does not drop the patient's data by allocating OD slot in the proposed Superframe structure of the TraySL-MAC, as shown in Step 6 of the algorithm.

Complexity Analysis
The body coordinator provides enough slots in the proposed Superframe structure of the TraySL-MAC.Additionally, it allocates a sufficient time period for BI and Superframe duration (SD).Let N_ BMS_i be the number of BMSs to actively scanning channels in the CAP period, using maximum contention value N _aMaxb .Using these notations, the complexity of the ReCAL-CSMA/CA algorithm can be expressed as O(N_ BMS_i , N _aMaxb ).The values of the N _aMaxb can be determined using Equation (1).

Slot Allocation Based on the Criticalities of Threshold Values
This paper proposes VSCAS mechanisms allocating slots based on the alert signals to BMSs.For this purpose, we categorize the threshold values of the heartbeat rate (HR) [31,32], respiratory rate (RR) [33,34], blood pressure (BP) [35,36], and temperature (temp) [37,38] into different classes of high and low threshold values, as shown in Table 1.The criticality of Low1 threshold values is more in dangerous than Low2 because Low1 is approaching towards zero value.Similarly, the High1 threshold value is in the extreme boundaries as compared to High2.RCD-based BMSs contain high threshold values of vital signs, while CR-based BMSs contain low threshold values of vital signs.In the detection of a low threshold value of a vital sign, the BMS transmits an alert signal to the EB_Low slot as shown in Figure 5.The body coordinator replies back by sending an acknowledgment (ACK) to that BMS, and the BMS sends the reading of the low threshold to CLTTS slots.The same process of slot allocation is followed for high threshold values using EB_High for an alert signal, and CHTTS slots are used for data transmission as shown in Figure 5.
threshold values of vital signs.In the detection of a low threshold value of a vital sign, the BMS transmits an alert signal to the EB_Low slot as shown in Figure 5.The body coordinator replies back by sending an acknowledgment (ACK) to that BMS, and the BMS sends the reading of the low threshold to CLTTS slots.The same process of slot allocation is followed for high threshold values using EB_High for an alert signal, and CHTTS slots are used for data transmission as shown in Figure 5.The allocation of these slots in emergency situations is based on the criticalities of vital signs, when the body coordinator receives threshold values of two BMSs at the same time.Equation ( 2) is introduced to help resolve the conflict of slots between BMSs: where Slot_Allocation_Priority is the allocation of the CFP's period slot based on the priority,

Explanation of Steps of LT_VSCAS Algorithm
We have classified low threshold values into Criticality Low1 (C_L1) and Criticality Low2 (C_L2).Low1 data is more critical than those of Low2, because Low1 approaches a zero value.The E a and R e are associated with the low threshold values and assists in the decision of slot allocation to BMSs.The LT_VSCAS Algorithm 2 presents two scenarios and considers n of the BMS vital signs of a patient, as shown in Steps 1-3.The first scenario consists of a single BMS, as shown in Step 4, while the second scenario presents two BMSs, as shown in Step 5.If a single BMS detects and transmits low threshold values using EB_Low slot of the Superframe structure.In this situation, the body coordinator assigns CLTTS slots without checking the other two parameters.In the second scenario, the body coordinator takes decision of slot allocation based on the priority between two low threshold values of BMSs, which assists in removing the conflict of slot allocation between them.In Step 5, both BMS_m and BMS_n detect Low1 with E a .The body coordinator allocates slots in ascending first to BMS_n and then to BMS_n.In Step 6, BMS_m generates data with E a and BMS_n generates data with R e , but both BMSs detect Low1.In this situation, the body coordinator assigns the first slot to BMS_m and the second slot to BMS_n.In Step 7, BMS_m generates data with R e and BMS_n generates data with E a , but both BMSs detect Low1.In this situation, the body coordinator assigns the first slot to BMS_n and the second slot to BMS_m.In Step 8, both BMS_m and BMS_n detect Low1 with the same R e .The decision of slot allocation is followed as used in Step 5. BMS_m detects Low1 and BMS_n detects Low2, but their generation rates are E a as shown in Step 9.The body coordinator allocates the first slot to BMS_m and the second slot to BMS_n.Step

Explanation of Steps of HT_VSCAS Algorithm
The proposed HT_VSCAS Algorithm 3 classifies high threshold values of vital signs into the highest criticality High1 (C_H1) and the second highest criticality High2 (C_H2).The C_H1 is beyond the threshold values of C_H2.In this situation, the first slot of CHTTS allocation is to CH1 and second is to CH2, if both BMSs have the same generation rates E a or R e .Further, Step 1 shows that BMSs monitor different vital signs.In the detection of high threshold, the particular BMS transmits an alert signal about the detected high threshold, as shown in Steps 2 and 3, respectively.The body coordinator allocates CHTTS slots of the MAC Superframe structure if the body coordinator receives an alert signal from a single BMS, as shown in Steps 4 and 5.
Step 6 shows a scenario of two BMSs.Steps 7-10 show the same High1 with different generation rates.In Step 7, both BMSs generate data with E a .In this situation, the body coordinator assigns the first slot to BMS_m and the second slot to BMS_n.The BMS_m generates data with E a and BMS_n generates data with R e , as shown in Step 8.The same decision is used for slot allocation, as shown in Step 7. In Step 9, the generation rates of BMS_m are R e , and BMS_n is E a .The decision of the first slot is to BMS_n and the second is to BMS_m.In Step 10, Step 20.In this situation, the body coordinator allocates first to BMS_n and second to BMS_m.In Step 21, the generation rates of data of BMSs are the inverse of Step 20.The decision of slot allocation is first to BMS_n and second to BMS_m.In Step 22, both BMSs generate data with R e and the decision of slot allocation is used as shown in Step 20.If these are not the conditions related to the vital signs, BMSs go into a mode of monitoring of vital signs or sleep mode.

Complexity Analysis of LT_VSCAS and HT_VSCAS Algorithms
The working procedures of algorithms LT_CSCAS and HT_VSCAS are the same, except when allocating CLTTS and CHTTS slots to low and high threshold values, respectively.Due to these, the complexity analysis is the same.Let N_ BMS_i be the number of BMSs to monitor various vital signs of a patient.In the detection of threshold values, the particular BMS requests dedicated (CLTTS or CHTTS) slots of the CFP period using an alert signal (EB_Low or EB_High).Using these notations, the complexity of the LT_VSCAS algorithm can be expressed as O(N_ BMS_i log(N_ BMS_i (CLTTS)).Similarly, the complexity of the HT_VSCAS algorithm can be expressed as O(N_ Node_i log(N_ BMS_i (CHTTS)).The process of these slot allocation, whether it is CLTTS or CHTTS to BMSs, can be determined using Equation (2).

Performance Evaluation
The simulation is performed in NS-2, and the results are categorized into two phases.Phase 1 compares the performance of each rounds of the contention of the proposed ReCAL-CSMA/CA scheme with the standard CSMA/CA scheme.The performance is compared in terms of the packet delivery delay, throughput, and energy consumption of the BMSs.In the second phase of simulation, the performance of the proposed TraySL-MAC protocol is compared with state-of-the-art MAC protocols-IEEE 802.15.4 MAC [7], LTDA-MAC [12], and PLA-MAC [10].Table 2 shows the parameter list for both phases of simulation, which are used in NS-2.Moreover, 14 BMSs are deployed and connected with a body coordinator in the star topology to monitor various vital signs of a patient's body.All these BMSs are static and the simulation coverage area is 3 × 2 m.The simulation runs for 2000 s.The low energy consumption model [30] is used in the implementation for the ReCAL-CSMA/CA.The reduced round-based energy consumption of the ReCAL-CSMA/CA scheme is minimal because dedicated and sufficient bandwidth of the slots is allocated to various BMSs.In addition, the proposed TraySL-MAC provides a sufficient time period of BI, and BMSs transmit data in the same BI.However, these features are the limitations of the MAC Superframe structure of IEEE 802.15.4 and CSMA/CA.In the first round of contention, the ReCAL-CSMA/CA needs 27 mW energy for data transmission, which is the minimum, as compared to a CSMA/CA.The achieved minimum energy consumption is 20% in the first round of the contention of the ReCAL-CSMA/CA as shown in Figure 8.Moreover, the repetition of rounds in the CSMA/CA increases the contention for accessing the channels in the CAP period.These increasing numbers in rounds of contention consume more energy due to the limited channels.In this way, the performance of the MAC Superframe structure of IEEE 802.15.4 is degraded, causing a higher collision, and BMSs retransmit the collided packets with a higher delay.Hence, the average energy consumption of BMSs in the Superframe structure is reduced and saves energy up to 43%, 49%, 46%, and 58% in Round 2, Round 3, Round 4, and Round 5, respectively.The low energy consumption model [30] is used in the implementation for the ReCAL-CSMA/CA.The reduced round-based energy consumption of the ReCAL-CSMA/CA scheme is minimal because dedicated and sufficient bandwidth of the slots is allocated to various BMSs.In addition, the proposed TraySL-MAC provides a sufficient time period of BI, and BMSs transmit data in the same BI.However, these features are the limitations of the MAC Superframe structure of IEEE 802.15.4 and CSMA/CA.In the first round of contention, the ReCAL-CSMA/CA needs 27 mW energy for data transmission, which is the minimum, as compared to a CSMA/CA.The achieved minimum energy consumption is 20% in the first round of the contention of the ReCAL-CSMA/CA as shown in Figure 8.Moreover, the repetition of rounds in the CSMA/CA increases the contention for accessing the channels in the CAP period.These increasing numbers in rounds of contention consume more energy due to the limited channels.In this way, the performance of the MAC Superframe structure of IEEE 802.15.4 is degraded, causing a higher collision, and BMSs retransmit the collided packets with a higher delay.Hence, the average energy consumption of BMSs in the Superframe structure is reduced and saves energy up to 43%, 49%, 46%, and 58% in Round 2, Round 3, Round 4, and Round 5, respectively.The low energy consumption model [30] is used in the implementation for the ReCAL-CSMA/CA.The reduced round-based energy consumption of the ReCAL-CSMA/CA scheme is minimal because dedicated and sufficient bandwidth of the slots is allocated to various BMSs.In addition, the proposed TraySL-MAC provides a sufficient time period of BI, and BMSs transmit data in the same BI.However, these features are the limitations of the MAC Superframe structure of IEEE 802.15.4 and CSMA/CA.In the first round of contention, the ReCAL-CSMA/CA needs 27 mW energy for data transmission, which is the minimum, as compared to a CSMA/CA.The achieved minimum energy consumption is 20% in the first round of the contention of the ReCAL-CSMA/CA as shown in Figure 8.Moreover, the repetition of rounds in the CSMA/CA increases the contention for accessing the channels in the CAP period.These increasing numbers in rounds of contention consume more energy due to the limited channels.In this way, the performance of the MAC Superframe structure of IEEE 802.15.4 is degraded, causing a higher collision, and BMSs retransmit the collided packets with a higher delay.Hence, the average energy consumption of BMSs in the Superframe structure is reduced and saves energy up to 43%, 49%, 46%, and 58% in Round 2, Round 3, Round 4, and Round 5, respectively.

Analysis of Packet Delivery Delay
Each BMS is given a specific amount of time to transmit a data packet to the body coordinator.As more BMSs transmit data packets, the collision increases in IEEE 802.15.4 MAC, as shown in Figure 9.The reason is that IEEE 802.15.4 provides only 16 slots, and 14 BMSs repeat the rounds of the contention in accessing the channel in the fixed seven slots of the CAP period.During the repetition in rounds of contention, the body coordinator announces the next BI after 49 s, which does not provide sufficient time for all BMSs to contend and access a channel.The body coordinator allocates seven guaranteed timeslots (GTSs) of the CFP period to those BMSs that obtained channel access in the CAP.With limited slots, increased contention, and the frequent announcement of a new BI, the patient's data confronts the highest delay as the number of data packets increase for transmission, as depicted in Figure 9. Additionally, the same situation is noticed in LTD-MAC, where few data packets are transmitted in the same BI, and the maximum number of data packets are transmitted in the subsequent BI.As the number of BMSs for data packets transmission increases, the collision rate increases because of the 32 slots provided in LTD-MAC and the increased contention.In the PLA-MAC protocol, the delay increases gradually after data transmission of the fifth BMS, because all four types of data perform contention in the fixed slots of the CAP period.The allocation of CFP slots in the PLA-MAC takes a considerably higher amount of time because the body coordinator cannot allocate slots to all data packets in the same SD due to the contention and the fixed slots in the CAP period.The collision increases and BMSs retransmit the collided data packets by degrading the performance of the PLA-MAC protocol.The lowest average packet delivery delay is noticed in the TraySL-MAC protocol.The judgment is that the CAP period provides 24 slots and reduces the contention of BMSs, whereas the body coordinator allocates NDTS slots of the CFP period in the same BI without waiting for the next BI.Thus, the TraySL-MAC reduces the packet delay and

Analysis of Packet Delivery Delay
Each BMS is given a specific amount of time to transmit a data packet to the body coordinator.As more BMSs transmit data packets, the collision increases in IEEE 802.15.4 MAC, as shown in Figure 9.The reason is that IEEE 802.15.4 provides only 16 slots, and 14 BMSs repeat the rounds of the contention in accessing the channel in the fixed seven slots of the CAP period.During the repetition in rounds of contention, the body coordinator announces the next BI after 49 s, which does not provide sufficient time for all BMSs to contend and access a channel.The body coordinator allocates seven guaranteed timeslots (GTSs) of the CFP period to those BMSs that obtained channel access in the CAP.With limited slots, increased contention, and the frequent announcement of a new BI, the patient's data confronts the highest delay as the number of data packets increase for transmission, as depicted in Figure 9. Additionally, the same situation is noticed in LTD-MAC, where few data packets are transmitted in the same BI, and the maximum number of data packets are transmitted in the subsequent BI.As the number of BMSs for data packets transmission increases, the collision rate increases because of the 32 slots provided in LTD-MAC and the increased contention.In the PLA-MAC protocol, the delay increases gradually after data transmission of the fifth BMS, because all four types of data perform contention in the fixed slots of the CAP period.The allocation of CFP slots in the PLA-MAC takes a considerably higher amount of time because the body coordinator cannot allocate slots to all data packets in the same SD due to the contention and the fixed slots in the CAP period.The collision increases and BMSs retransmit the collided data packets by degrading the performance of the PLA-MAC protocol.The lowest average packet delivery delay is noticed in the TraySL-MAC protocol.The judgment is that the CAP period provides 24 slots and reduces the contention of BMSs, whereas the body coordinator allocates NDTS slots of the CFP period in the same BI without waiting for the next BI.Thus, the TraySL-MAC reduces the packet delay and achieves improvement by 83%, 81%, and 57%, as compared to IEEE 802.15.4 MAC, LTDA-MAC, and PLA-MAC, respectively.1).Based on the criticalities, the body coordinator assigns the particular CLTTS or CHTTS slots based on the priority to BMSs.The dedicated slot allocation to each BMS resolves conflict of the slot allocation based on the priority between BMSs.The sufficient and dedicated slots, the allocation of slots without contention based on the criticalities, the sufficient time of BI, the slot duration, and the SD reduce the delivery delay of the delay-driven packets of the VSCAS scheme and perform better, as shown in Figure 10.The PLA-MAC provides the same number of slots in the Superframe structure as provided in the TraySL-MAC.It uses the same equation to calculate the criticalities of vital signs.However, the PLA-MAC-based BMSs first perform contention to access the channel in the CAP period and does not allocate slots to CP-and RP-based BMSs without contention in emergency situations.Afterwards, the body coordinator allocates DTS slots of the CFP period to BMSs that obtained channel access in the CAP period.If DTS slots are not empty, then that BMS requests allocating ETS slots.Thus, the delay for delay-driven packets is increased in the PLA-MAC, as shown in Figure 10; as compared to the VSCAS schemes perform better and improve the delivery of delay-sensitive packets by 70%.IEEE 802.15.4 MAC provides 16 channels and allocates them, regardless of whether it is an emergency or a non-emergency-based BMS performing contention.As mentioned above, the reasons of the contention-based channel allocation, the performance of IEEE 802.15.4 MAC for delay-driven packets are minimum compared to VSCAS schemes.The proposed schemes improve delivery of delaysensitive packets by 90%, as compared to IEEE 802.15.4 MAC as shown in Figure 10.  1).Based on the criticalities, the body coordinator assigns the particular CLTTS or CHTTS slots based on the priority to BMSs.The dedicated slot allocation to each BMS resolves the conflict of the slot allocation based on the priority between BMSs.The sufficient and dedicated slots, the allocation of slots without contention based on the criticalities, the sufficient time of BI, the slot duration, and the SD reduce the delivery delay of the delay-driven packets of the VSCAS scheme and perform better, as shown in Figure 10.The PLA-MAC provides the same number of slots in the Superframe structure as provided in the TraySL-MAC.It uses the same equation to calculate the criticalities of vital signs.However, the PLA-MAC-based BMSs first perform contention to access the channel in the CAP period and does not allocate slots to CP-and RP-based BMSs without contention in emergency situations.Afterwards, the body coordinator allocates DTS slots of the CFP period to BMSs that obtained channel access in the CAP period.If DTS slots are not empty, then that BMS requests allocating ETS slots.Thus, the delay for delay-driven packets is increased in the PLA-MAC, as shown in Figure 10; as compared to the VSCAS schemes perform better and improve the delivery of delay-sensitive packets by 70%.IEEE 802.15.4 MAC provides 16 channels and allocates them, regardless of whether it is an emergency or a non-emergency-based BMS performing contention.As mentioned above, the reasons of the contention-based channel allocation, the performance of IEEE 802.15.4 MAC for delay-driven packets are minimum compared to VSCAS schemes.The proposed schemes improve delivery of delay-sensitive packets by 90%, as compared to IEEE 802.15.4 MAC as shown in Figure 10.

Analysis of Throughput
As the number of BMSs increase for data transmission, the throughput of all protocols increases up to certain levels.The throughput of IEEE 802.15.4 MAC Superframe structure grows gradually in increasing order up to BMS 7 because this standard provides seven slots in the CAP period as shown in Figure 11.However, the throughput of IEEE 802.15.4 MAC becomes constant and does not grow in increasing order because of the limited channels and contention, and most of the BMSs wait for the next BI.The LTDA-MAC provides fixed slots in the CAP period and supports the maximum throughput for nine BMSs.The throughput of LTDA-MAC also becomes invariant as more BMSs contend and transmit data, whereas they exceed the traffic load in the allocated slots of the CAP period.The throughput of the PLA-MAC protocol is improved compared to IEEE 802.15.4 and LTDA-MAC, as shown in Figure 11, because the PLA-MAC protocol provides 20 slots in the CAP period and the throughput gradually increases up to 12 BMSs.However, the throughput of this protocol goes down when the repetition in rounds of the contention increase due to the fixed slots in the CAP period.The proposed TraySL-MAC provides 24 slots and in the non-emergency situations, i.e., NCD-and DCD-based BMSs perform contention in the CAP period.The throughput of ReCAL-CSMA/CA and VSCAS schemes perform better against the addressed MAC protocols because they do not drop the patient's data by providing sufficient slots and introducing the OD slot.The achieved throughput of the TraySL-MAC is 70% against IEEE 802.15.4 MAC, 56% is achieved against LTDA-MAC, and 30% is achieved against the PLA-MAC protocol.

Analysis of Throughput
As the number of BMSs increase for data transmission, the throughput of all protocols increases up to certain levels.The throughput of IEEE 802.15.4 MAC Superframe structure grows gradually in increasing order up to BMS 7 because this standard provides seven slots in the CAP period as shown in Figure 11.However, the throughput of IEEE 802.15.4 MAC becomes constant and does not grow in increasing order because of the limited channels and contention, and most of the BMSs wait for the next BI.The LTDA-MAC provides fixed slots in the CAP period and supports the maximum throughput for nine BMSs.The throughput of LTDA-MAC also becomes invariant as more BMSs contend and transmit data, whereas they exceed the traffic load in the allocated slots of the CAP period.The throughput of the PLA-MAC protocol is improved compared to IEEE 802.15.4 and LTDA-MAC, as shown in Figure 11, because the PLA-MAC protocol provides 20 slots in the CAP period and the throughput gradually increases up to 12 BMSs.However, the throughput of this protocol goes down when the repetition in rounds of the contention increase due to the fixed slots in the CAP period.The proposed TraySL-MAC provides 24 slots and in the non-emergency situations, i.e., NCD-and DCD-based BMSs perform contention in the CAP period.The throughput of ReCAL-CSMA/CA and VSCAS schemes perform better against the addressed MAC protocols because they do not drop the patient's data by providing sufficient slots and introducing the OD slot.The achieved throughput of the TraySL-MAC is 70% against IEEE 802.15.4 MAC, 56% is achieved against LTDA-MAC, and 30% is achieved against the PLA-MAC protocol.

Analysis of Throughput
As the number of BMSs increase for data transmission, the throughput of all protocols increases up to certain levels.The throughput of IEEE 802.15.4 MAC Superframe structure grows gradually in increasing order up to BMS 7 because this standard provides seven slots in the CAP period as shown in Figure 11.However, the throughput of IEEE 802.15.4 MAC becomes constant and does not grow in increasing order because of the limited channels and contention, and most of the BMSs wait for the next BI.The LTDA-MAC provides fixed slots in the CAP period and supports the maximum throughput for nine BMSs.The throughput of LTDA-MAC also becomes invariant as more BMSs contend and transmit data, whereas they exceed the traffic load in the allocated slots of the CAP period.The throughput of the PLA-MAC protocol is improved compared to IEEE 802.15.4 and LTDA-MAC, as shown in Figure 11, because the PLA-MAC protocol provides 20 slots in the CAP period and the throughput gradually increases up to 12 BMSs.However, the throughput of this protocol goes down when the repetition in rounds of the contention increase due to the fixed slots in the CAP period.The proposed TraySL-MAC provides 24 slots and in the non-emergency situations, i.e., NCD-and DCD-based BMSs perform contention in the CAP period.The throughput of ReCAL-CSMA/CA and VSCAS schemes perform better against the addressed MAC protocols because they do not drop the patient's data by providing sufficient slots and introducing the OD slot.The achieved throughput of the TraySL-MAC is 70% against IEEE 802.15.4 MAC, 56% is achieved against LTDA-MAC, and 30% is achieved against the PLA-MAC protocol.The contention of all BMSs reaches the highest peak because of the limited slots, the activation of the full channels in the MAC Superframe structure, and the increased contention, causing a high degree of collision.In addition, the body coordinator announces a new BI after 49 s and does not provide sufficient time for BMSs to contend and transmit data in the same BI.Thus, the energy consumption of the body coordinator is the highest in IEEE 802.15.4 MAC as shown in Figure 12.The energy consumption of the LTDA-MAC gradually increases due to limited slots in the CAP period, high traffic load, and the repetitive contention for accessing the channel.Additionally, the body coordinator announces a new BI after 98 s, which is not sufficient timing for all BMSs to contend and transmit their data in the CFP period.The PLA-MAC and the proposed TraySL-MAC consume minimum energy as compared to the aforementioned MAC protocols.The PLA-MAC provides 20 slots in the CAP period, and the energy consumption is high due to the increased contention of four types of BMSs.The body coordinator keeps all slots of the MAC Superframe structure active.As the traffic load exceeds the certain thresholds, the energy consumption becomes high in the PLA-MAC.The TraySL-MAC provides sufficient slots in the CAP period and the energy consumption is the lowest as compared to the addressed MAC protocols.The reasons are that the reduced contentions using the ReCAL-CSMA/CA scheme, the alert-based slot allocation, the sufficient time periods of BI, SD, and sufficient and dedicated slots.The energy consumption of the body coordinator of the TraySL-MAC is reduced by 72%, 68%, and 36% as compared against IEEE 802.15.4 MAC, LTDA-MAC, and PLA-MAC, respectively, as shown in Figure 12.As compared to the energy consumption of PLA-MAC, the proposed TraySL-MAC reduces the energy consumption of BMSs and achieves the improvement of energy consumption by 10%, as shown in Figure 13.These improvements in the energy consumption of BMSs in the proposed solutions are due to the provision of sufficient channels, the sufficient time period of BI, reduced contention, and the activation of particular slots.

Conclusions
In this paper, a traffic priority-aware adaptive slot allocation based medium access control protocol has been presented.Three slot allocation algorithms have been developed including a reduced contention adaptive slot allocation, low threshold vital sign criticality-based adaptive slot allocation, and high threshold vital sign criticality-based adaptive slot allocation.
From the design, implementation, and analysis, the following conclusions can be made.TraySL-MAC provides dedicated and sufficient channels along with an adequate period for BI, and avoids channel interference.The repetition in contention rounds of BMSs is reduced by the second algorithm for accessing CAP channels.It also reduces collision, delay, and energy consumption.The slot allocation conflicts among BMSs are resolved via low and high threshold value-based in the send and third algorithms.As compared to the state-of-the-art MAC protocols, the average packet delivery delay is reduced by 73.66%, the average throughput is increased by 52%, and the average energy consumption is minimized by 53%.

Figure 2 .
Figure 2. The proposed frequency spectrums for the traffic priority-aware adaptive slot allocation-based medium access control (TraySL-MAC).

Figure 2 .
Figure 2. The proposed frequency spectrums for the traffic priority-aware adaptive slot allocation-based medium access control (TraySL-MAC).

Figure 4 .
Figure 4.The process of slot allocation contention-based BMSs.

3. 5 . 1 .
Explanation of Steps of ReCal-CSMA/CA Algorithm In the first round of contention, BMSs use an equation of the CSMA/CA and contend to access the CAP channels between 0 and 1 as shown in Step 3 of this algorithm.If the BMS gets a channel access idle, then that particular BMS re-confirms channel allocation by performing a CCA activity twice, until the value of S cw becomes zero, as shown in Steps 3 and 4. The control is transferred back if the CCA expires.In case the channel is busy, the values of S cw = 2, N b = N b + 1 and B e = B e + 1 are set as shown in Step 5. Here, the value of N b is verified whether it is greater than aMax b or not, as shown in Step 6.If it does not exceed, then the control is transferred to the condition N b = MAC b as shown in Step 7.
in terms of packet delivery delay, delivery delay for delay-driven packets, throughput, and energy consumption.The values of BO = 10 and SO = 9 are configured in NS-2 under the package ns-2.34 for all MAC protocols.IEEE 802.15.4 MAC provides BI = 49.152s (983040 symbols), an SD of 24.576 s, and a slot duration of 1.536 s.The LTDA-MAC provides BI = 98.307 s (1966080 symbols), an SD of 49.152 s, and a slot duration of 1.536 s.The proposed TraySL-MAC and PLA-MAC provide 128 slots in the MAC Superframe structure.Both MAC Superframe structures announce a new BI after 393.216 s (7864320 symbols), an SD of 196.608 s, and a slot duration of 1.536 s.However, their provided functionalities and working procedures of the slot allocation to different types of a patient's data are different.
in terms of packet delivery delay, delivery delay for delay-driven packets, throughput, and energy consumption.The values of BO = 10 and SO = 9 are configured in NS-2 under the package ns-2.34 for all MAC protocols.IEEE 802.15.4 MAC provides BI = 49.152s (983040 symbols), an SD of 24.576 s, and a slot duration of 1.536 s.The LTDA-MAC provides BI = 98.307 s (1966080 symbols), an SD of 49.152 s, and a slot duration of 1.536 s.The proposed TraySL-MAC and PLA-MAC provide 128 slots in the MAC Superframe structure.Both MAC Superframe structures announce a new BI after 393.216 s (7864320 symbols), an SD of 196.608 s, and a slot duration of 1.536 s.However, their provided functionalities and working procedures of the slot allocation to different types of a patient's data are different.

Figure 9 .
Figure 9. Average packet delivery delay vs. the number of BMSs.

Figure 9 .
Figure 9. Average packet delivery delay vs. the number of BMSs.

Figure 10 .
Figure 10.Average delivery delay for delay driven packets vs. number of BMSs.

Figure 10 .
Figure 10.Average delivery delay for delay driven packets vs. number of BMSs.

Figure 12 .
Figure 12.Body coordinator energy consumption vs. number of BMSs.Figure 12. Body coordinator energy consumption vs. number of BMSs.

Figure 12 .
Figure 12.Body coordinator energy consumption vs. number of BMSs.Figure 12. Body coordinator energy consumption vs. number of BMSs.

Figure 12 .
Figure 12.Body coordinator energy consumption vs. number of BMSs.
2. if (BMS_i ∈ operates on Fixed Battery Power OR Not operates on Fixed Battery) else // in case of channel busy Set ← 2 Set B e ← B e + 1; Set B e ← min ( B e + 1, aMaxb) end if 6. if ( > aMaxb) //Here to add OD slot to access NDTS slots of CFP period Set B e ← B e + 1; Set B e ← min ( B e + 1, aMax b ) is available in CAP period) Transmit else CCA expires and Go to [Step 4] Minimization in rounds of contentions, delay, packet loss, energy consumption and allocation of CAP slots to BMSs To 2 B e -1] Backoffs Go To & Perform CCA [Step 4] else Set aMax b ← 5 Set B e ← aMax b Delay for random [Compute N b =2 (B e -1) To 2 B e -1] Backoffs

Table 1 .
Threshold ranges of vital signs.
f _Th_Values is the criticality of the detected threshold values, Generation Rate is the time of detection of the threshold value that can be early (E a ) or recent (R e ), and the Pkt_Size is the size of the packet in bytes.Equation (2) assists in the calculation of the criticalities of the threshold values of vital signs and allocates the dedicated slots based on the priority to BMSs without contention.For this purpose, this paper proposes two algorithms.The first algorithm is the low threshold vital signs criticalities-based adaptive slot allocation (LT_VSCAS) for low threshold values.The second algorithm is the high threshold vital signs criticalities-based adaptive slot allocation (HT_VSCAS) for high threshold values.

Allocation of CLTTS slots to low threshold values based on the criticalities of vital signs
10 contains the same low thresholds as shown in Step 9, but BMS_m generates data with E a and BMS_n generates data with R e .The same decision of slot allocation is used as shown in Step 9.Both BMSs detect the same low threshold values as shown in Step 11 and are similar to those in Step 10, but BMS_m generates with R e and BMS_n generates with E a .The decision of slot allocation is first to BMS_n and secondly to BMS_m.Step 12 shows that both BMSs detect the same low thresholds as shown in Step 11.Additionally, their generation rates of data are same R e .The same decision of slot allocation is used as described in Step 10.The BMS_m detects Low2 and BMS_n detects Low1, but their generation rates are the same E a , as shown in Step 13.The decision of slot allocation is employed as described in Step 11.Step 14 shows the same detected threshold values as described in Step 13, but BMS_m generates data with E a and BMS_n generates data with R e .The same decision of slot allocation is made as shown in Step 12.The generation rates of data are the inverse of both BMSs as shown in Step 15, as compared to Step 14, but their detected threshold values are the same.The same slot allocation decision is used as shown in Step 13.In Step 16, both BMSs detect the same threshold values as shown in Step 15, but their generation rates of data are same that is R e .Similar decisions of slot allocation are made as shown in Step 15.In Steps 17-20, both BMSs detect Low2 with different generation rates.For Step 17, both BMSs generate data with E a and the decision of slot allocation is the same as that shown in Step 15.In Step 18, BMS_m generates data with E a and BMS_n generates data with R e .The same decision of slot allocation is made, as shown in Step 17.The generation rates of data in Step 19 are the inverse of Step 18, but the decision of slot allocation is the same as that made in Step 16.In Step 20, both BMSs generate data with R e , but the slot allocation decision is followed as shown in Step 18. BMSs go into a mode of monitoring vital signs or sleep mode if these are not the conditions related to the vital signs as shown in algorithm.The complexity analysis of Algorithm 2 is presented in Section 3.6.5.3.6.3.High Threshold Vital Signs Criticalities-Based Adaptive Slot AllocationThe proposed Algorithm 3 of HT_VSCAS shows the allocation of CHTTS slots between BMSs when they transmit alert signals at the same time to the slot of EB_High of the body coordinator as follows:

Allocation of CHTTS slots to high threshold values based on the criticalities of vital signs
both BMSs generate data with R e , but the slot allocation decision is as shown in Step 8. From Steps 11-14, BMS_m detects High1 and BMS_n detects High2 with different generation rates.In Step 11, both BMSs generate data with E a and the decision of slot allocation is used as shown in Step 8.In Step 13, BMS_m generates data with E a , while BMS_n generates data with R e .The same decision of slot allocation is used as shown in Step 11.The generation rates of data of the BMSs in Step 13 are the inverse of Step 12. Due to these rates, the body coordinator allocates first to BMS_n and second to BMS_m.In Step 14, both BMSs generate data with R e .In this situation, the same decision for slot allocation is considered as shown in Step 12. From Steps 15-18, BMS_m detects High2, and BMS_n detects High1 with different generation rates.In Step 15, both BMSs generate data with E a and the decision of slot allocation is used as shown in Step 13.In Step 16, BMS_m generates data with E a , while BMS_n generates data with R e .The same decision of slot allocation is used as shown in Step 14.The generation rates of data of the BMSs in Step 17 are the inverse of Step 16.Due to these rates, the body coordinator allocates first to BMS_n and second to BMS_m.In Step 18, both BMSs generate data with R e .In this situation, the same decision for slot allocation is used as shown in Step 13.From Steps 19-22, both BMSs detect the High2 threshold with different generation rates.In Step 18, both BMSs generate data with R e , and the decision of slot allocation is used as shown Step 17.In Step 19, both BMSs generate data with E a , and the decision of slot allocation is used as shown in Step 16.The generation rate of data of BMS_m is E a , and that of BMS_n is R e as shown in