 Research
 Open Access
 Published:
Evaluation of a dutycycled asynchronous XMAC protocol for vehicular sensor networks
EURASIP Journal on Wireless Communications and Networking volume 2017, Article number: 95 (2017)
Abstract
An asynchronous medium access control (MAC) dutycycled protocols have higher energy efficiency and lower packet latency than synchronized ones due to reduced idle listening. Moreover, they provide efficient utilization of energy supplied to mobile sensors. They are considered very important in MAC protocols due to the adverse effects of hidden terminals which causes energy consumption in sensor networks. Therefore, in this paper, the impact of hidden terminals on the performance of an asynchronous dutycycled MAC protocol XMAC for vehiclebase sensor is investigated via analysis and simulations. We propose a Markov model to analyze the qualityofservice (QoS) parameters in terms of energy consumption, delay, and throughput. Our analytical model provides QoS parameter values that closely match the simulation results under various network conditions. Our model is more computationally efficient and provides accurate results quickly compared with simulations. More importantly, our model enables the designers to obtain a better understanding of the effects of different numbers of mobile sensor nodes and data arrival rates on the performance of an asynchronous MAC dutycycled protocol.
Introduction
Vehicular sensor networks (VSNs) allow limited range sensor devices to communicate with each other [1]. VSNs are promising solutions for specific cases of the Internet of things (IoTs), which allow the integration of different objects to communicate with each other in dynamic environments [2]. The current trends in VSNs allow different deployment architectures for vehicular networks in highways, urban, and rural environments to support many applications with different QoS requirements [3]. Basically, VSNs came to allow the communication among nearby vehicles as well as fixed roadside equipments which leads to three different configures: vehicletovehicle (V2V), vehicletoinfrastructure (V2I), and, hybrid networks’ architectures as illustrated in Fig. 1 [4]. Features of these configurations encounter new challenges in order to expand from being a network of computers to a network of both computers and things.
Devices in the IoT connect with each other using a variety of protocols, and there still exist a large amount of devices that use older communication protocols but have diverse realtime needs. Therefore, VSNs offers integrated communication protocols for effectively monitoring the physical world, especially in urban areas where a high concentration of vehicles equipped with onboard sensors is expected [5, 6]. Despite this, integration have benefits such as increasing revenue, reducing costs, and energy efficiency. However, there exists a serious problem with traffic congestion in decision making for vehicular traffic which is a challenge due to the particular characteristics, such as the highly dynamic topology and the intermittent connectivity [4]. Consequently, VSN has challenges in supporting the realtime traffic information that can significantly improve the safety of the transportation and can reduce the traffic congestion [7]. This information will help drivers to make smarter decisions in timely manner to prevent accidents, improve the efficiency of the selected route, and provide a safer distance among other vehicles. Therefore, the duty of the embedded sensor is to capture images and measure distance all around a vehicle in order to monitor traffic in an allocated area, while utilizing different devices that can measure several physical traffic parameters [5]. Hence, the view of the vehicle as a sensor platform can improve the traffic flow, via supporting communication with the roadside infrastructure in order to provide ubiquitous coverage [8]. The relative velocities of vehicles are fairly much higher in than 50 km/h in urban environments and more than 100 km/h on the highway [4]. Vehicles also move at different directions. Thus, vehicles can quickly access or leave the network in a very short period of time. This results in more frequent changes in the network topology which affects the network design significantly. For example, the routing protocol design will be more difficult due to hidden/exposed terminal problem in MAC protocols [9]. Vehicles are typically not affected by strict energy constraints and can be easily equipped with sensor platforms [10]. Meanwhile, VSNs represent a significantly novel and challenging deployment scenario, which considerably differs from the traditional Wireless Sensor Network (WSN) and thus requires innovative solutions in the MAC layer [11]. However, designing an integrated architecture for both WSNs and VSNs often starts with the definition of a MAC protocol since it is a fundamental issue in determining the energy consumption properties and the basic data transport capabilities of the network [12].
This design of an efficient and effective sensory MAC protocol providing QoS requirements for realtime traffic management is considered as the most important step in endtoend QoS provisioning over VSNs [13] since it regulates nodes’ access to a shared channel and has become a major active research in recent years [14]. This regulation explicates as duty cycling approach that is considered as one of the primary mechanisms for providing QoS in VSNs [15].
Particularly, duty cycling means that every node in the network is periodically alternating between an awake and a sleep state [16]. Therefore, the duration of a duty cycle is equivalent to the time of an awake state plus the time of sleep state [17]. Whereas the idle state has been founded in IEEE 802.11p standard for vehicular communication that consumes substantial energy to transmit up to 1000 messages with 32 dBm and therefore should be avoided in VSNs [4].
To understand the performance of VSNs and in order to optimize the designed routing protocol [18], an accurate analytical framework for MAC protocol is required. The main idea of this framework provides an analytical scheme that dynamically adapt the vehicles’ rate of transmission according to their priority. The analytical model shall describe the effects of assigning various values including the density and transmission range of vehicle to protocol parameter under given specific scenarios in order to achieve the QoS requirements.
The remainder of the paper is organized as follows: section 2 discusses some related works devoted entirely to analytical modeling of MAC protocols. Section 3 introduces the synchronous XMAC protocol, through overview of problem definition of hidden terminal and analyzing power consumption, delay, and network throughput. Section 4 introduces the behavior of XMAC protocol under specific network conditions through using the proposed Markov model. Meanwhile section 5 introduces the performance analysis of synchronized XMAC protocol. Furthermore, section 6 introduces detailed simulation and analysis for the performance of a synchronized XMAC protocol of various scenarios. Finally, section 7 concludes the current.
Related works
To better understand the mechanism of a MAC protocol, it is useful to realize that MAC protocols consists usually of three main logical components [19]. First, a collision avoidance (CA) algorithm which uses physical carriersensing to register and/or reserve the channel for the duration of the data transmission. Second, a contention resolution algorithm which uses mechanisms such as backoff to regulate the access to the channel [19]. Third, distributed coordination function (DCF) which is not specifically designed for high mobility network [7].
Various MAC protocols have been proposed to mitigate the adverse effects of hidden terminals through CA, since the hidden problem has demonstrated its energysaving capabilities [11]. However, in a heterogeneous wireless networks, a hidden problem should be defined as a node out of the range of the sender which covers the receiver. Most CA algorithms are based on senderinitiated, including an exchange of short requesttosend (RTS) and cleartosend (CTS) messages between a pair of sending and receiving nodes before the transmissions of the actual data packet and the optional acknowledgment packet [8]. Whereas in receiverinitiated, a receiver broadcasts a probing packets whenever it wakes up from sleeping state, while a sender with data packet to transmit waits in the listening state until the probing packets from the receiver is received. Therefore, receiverinitiated MAC protocol degrades the network performance with asymmetric links, due to several experienced sender failures in receiving the probing packets from the receiver. And hence, the asymmetric links waste energy, increase delay, and degrade the packet receive ratio (PRR). Meanwhile, RTS and CTS message exchange mechanism could not be the solution for VSNs since these exchange messages may not be able to arrive to all hidden nodes [20].
MAC protocols can be divided into two main categories of dutycycled MAC protocols [17]. One is synchronized protocols, like SMAC [21] and TMAC [22]. The other is asynchronous protocols, like XMAC [17] and BMAC [23]. Asynchronous dutycycled MAC protocols remove the energy overhead for synchronization and are easier to implement as they do not require local synchronization [24]. XMAC protocol uses data packets as preambles and suits it for sparse networks as the energy and collision increase linearly with the node density. And thus, the performance of XMAC protocol is evaluated in this work when equipped with CA algorithm to address the performance degradation of wireless multihop communications with hidden terminals, and their impact on MAC protocols. Additionally, the XMAC contentionbased protocol does not perform well in asymmetric scenarios due to the quality of the link from the receiver to the sender which causes the hidden terminal problems and can be avoided if the communication was not receiverinitiated [25].
Many researchers evaluated the performance of various network protocols through simulations [26]. However, the simulation environment/software is usually too expensive and/or timeconsuming, especially while considering a huge network size/capacity [27]. Meanwhile, the analytical models can be more effective in such cases, since the scale of modern networks and the degree of complexity often necessitate the use of simplified assumptions, e.g., Markov, Poisson traffic, or other models. Furthermore, it is hard to capture the dynamic nature of a network without an analytical model; therefore, an analytical model is needed to provide insight into the performance of both routing and MAC protocols [27].
Bianchi [28] proposed an accurate analytical model to analyze the performance of singlehop IEEE 802.11. Ziouva [28] improved Bianchi’s model by adding a deriving saturation delay beside throughput. In an area other than IEEE 802.11 specifically in WSNs the author in [29] proposed a radio model to compute the lower bound of XMAC protocol. A new hybrid MAC scheme called Zebra MAC (ZMAC) is proposed in [30] for sensor networks which combine the strengths of TDMA and CSMA while offsetting their weaknesses. The authors in [31] implements an efficient TDMA protocol that apply dutycycling function for multihop WSNs using semiMarkov chain. Authors tries to avoid channel access problems such as over hearing and hidden terminal by adapting the wakeup/sleep state of each node to the actual operational conditions such as traffic demand and node density. Short range V2V communication was investigated in [32]. The authors present a study in which effective information such as the message size, transmission range, and velocity of vehicles is exchanged. Such exchanged parameters are considered as factors in analytical model to evaluate the performance of communication. Meanwhile, the authors in [33] presents a study of connectivity in vehicular ad hoc network in traffic freeflow. Actually, the authors use the analytical model in describing the distribution of distances between the vehicles, traffic flow on the highway to evaluate the effects of various system’s parameters (such as distribution of velocity, traffic flow, and transmission range of vehicles) the network on connectivity.
BMAC [23] considers the default MAC protocol for Mica2 that allows an application to implement its own MAC through a welldefined interface. To achieve channel utilization and low power operations, the authors adopt low power listening (LPL) and scheduling the clear channel sensing (CCA) technique to reduce duty cycle and to minimize idle listening. Yang in [34] modeled and analyzed the throughput of a synchronized dutycycle SMAC protocol for WSNs. SMAC protocol has different rules for accessing the media as compared against other MAC protocols such as XMAC or BMAC. Yang also proposed a Markov model to analyze the throughput of XMAC. It should be emphasized that our proposed model is fundamentally different from the one proposed by Yang [29]. Our proposed model analyzes the performance of XMAC protocol when it is equipped with CA algorithm and aimed of addressing the performance degradation of VSNs with hidden terminal. However, none included the hidden terminal problem in their analytical models. The paper focuses on the evaluate of an adaptive energyefficient XMAC protocol for dutycycled VSNs. A Markov queuing model is proposed for modeling the behavior of the XMAC contention based on the specific sleep/wakeup pattern in the duty cycle. Our proposed model quantifies the desirable QoS metrics for contentionbased MAC protocols in multihop fashion to address the hidden terminal problem and to provide fairness in medium sharing among the vehicles.
Overview of XMAC protocol
Asynchronous protocols have is promising applications in WSNs since they avoid synchronization overhead, and hence provide higher energy efficiency than synchronized MAC protocols [29]. Many variations asynchronous dutycycled MAC protocols have been proposed to improve energy efficiency and packet latency by allowing each node to independently and periodically sleep to save energy [35]. Additionally, asynchronous protocols use a series of short preamble packets to avoid synchronous overheads and hence have higher energy efficiency than synchronized MAC protocols [36]. These short preamble packets carry the address information of the sink node. As a results the intermediate nodes can go to sleep as soon as they hear the first short preamble. Moreover, the sink can reply with an ACK message in between two successive short preambles to stop the timeline and to start transfering the data packets [17].
Figure 2 indicates the timelines’ LPL of short preamble packets of XMAC protocol that effectively constitutes a single long preamble [17]. Whereas a node wakes up periodically to send and receive a short preamble packet to sink node which is still sleeping, it looks at the ID of sink node included in the packet. If the other nodes are not the intended recipient, they go to sleep quickly to avoid the overhearing problem; otherwise, they remain awake for the subsequent packet. Hence, the interval between two successive wakeup periods called a cycle denoted as T for every node. Every node begins its duty with a fixedcycle length determined with an arbitrary offset and continues its duty cycling as if the medium had been idle. For each successfully delivered data packet, the average communication time is \(\frac {T}{2}\) pulsing the length of data packet L _{DATA} [29].
XMAC also has collision related within increasing the network density, i.e., the number of senders increases, and they wake up and begin to send their preamble at the same time since. Thus, all nodes including sinknodes cannot determine the destination address information in preamble when collision occurs among nodes. In this case, the sender continues sending preambles until next wakeup time [17]. Hence, for each colliding data packet, the average communication of sending data packet is also T.
This paper proposes a mathematical model for XMAC protocol which to includes the effects of CA algorithm. Our proposed model focuses onto two main contributions which are: (1) solving the problem of medium contention such as hidden or exposed terminal problem, and (2) providing resource reservation for realtime traffic control system in a distributed vehiclebased sensor environment. Moreover, supporting QoS in the routing or transport layer cannot be provided unless the assumption of MAC protocols solves the problems of medium contention and supports reliable communication [37].
Our proposed model acts as analyzer for the performance of XMAC since the Markov model is used to describe the behavior of accessing of synchronized dutynodes to the channel. The proposed model elaborates on which type of low dutycycled MAC protocols should be selected in order to resource the wireless channel reservation that assures the desirable QoS level in realtime traffic control systems.
Markov model of XMAC
We propose a Markov model to describe the behavior of XMAC and investigate the QoS parameters under various network and channel conditions. However, to estimate the effect of the hidden problem, it is necessary to examine the transmission among onehop neighbor nodes at region where possible hidden problem occurs as depicted in Fig. 3 in which node A transmits a frame to node B, and node D transmits to node B. Thus, node D will be able to do it, as it is unable to detect the transmission of node A or node C. This means that both nodes C and D are hidden to each other resulting in a collision at node B that causes a serious QoS degradation especially in highdatarate sensor applications [29, 38].
In order to satisfy the QoS requirements for realtime traffic control systems, a Markov discretetime stochastic process M/M/1 queuing model is proposed under realistic conditions for duty cycling with scheduledriven operation in VSNs. We consider a simple traffic model for vehicle moving along a straight road with random velocity. The arrival and departure of the data packets are regulated under a realistic assumption of a finite queue size. Therefore, the proposed model makes the following assumptions:

1.
Event arrivals denote a stochastic process {A(t)t≥0} that represents the total number of arrivals that have occurred from time 0 to time t; this procedure creates an independent Poisson process at each node, and the number of packet arrivals in any time slot is distributed with a Poisson process with parameter λ τ, for time of arrival t τ≥0.

2.
Let π _{ ı }(t) denote the steady state of power for the node at time t; the interarrival δ≥0 times (that is, the distribution of time at state ı before marking the transition) are independent and exponentially distributed with the λ, where o(δ) is defined as a function of δ such that \({\lim }_{\delta \longrightarrow 0}\frac {o(\delta)}{\delta }\).

3.
The queueing discipline of data packets is firstcome, firstserved (FCFS).

4.
The queueing system assumes equilibrium under the condition that the probability of arrival is less than the independent probability of transmitting the information packet or λ<β.

5.
The processing and radiotransmission times are independent and identical (ı.ı.d.) with an arbitrary distribution.

6.
Retransmission is supported.

7.
When an event is sensed, the node processes it and sends the information packet with a probability of transmission per node per cycle, and every sensor node in the network has an independent probability of transmitting information packet β in the duty cycle.
These assumptions are made based on [39] which have been verified as valid approximations of realistic scenarios. The proposed Markov model shows that the power transition of each sensor node in the network may be modeled by a discretetime M/M/1 Markov chain, which represents a different predefined status for a node for an event at the wakeup/sleep mode of the duty cycle. The proposed model considers the following assumptions: (a) The vehicles are equipped with sensor nodes in a network and are assumed to be twodimensionally Poisson distributed over a domain with density ρ. Therefore, the probability of finding n neighboring nodes in an area S is given by [34].
(b) If each node has the same transmission range T _{ R } for transmission and receiving in timeslotted mode, then the number of n neighbors within a circular region of T _{ R } is given as [40].
(c) All nodes are assumed to be saturated, i.e., they always have some data packet in queue waiting for transmission, and all the data packets have the same length. (d) The time step value T is assumed not just the propagation delay, but also the transmission delays (SYNC, RTS, CTS, DATA, and ACK), processing delay, carrier sense delay and queuing delay. (e) Each sensor node has transmission range T _{ R } defined as [38]
T _{ S } is sensing range, and the interference range is defined as \(T_{I}=T_{R}\sqrt [\beta ]{TR_{CP}}\), where T R _{ CP } and Sen are defined threshold of capture ratio, and the receive sensitivity in Watt, respectively [38]. (f) The propagation model is defined as
and
where d defined the distance between two transmission nodes. This model cover with freespace model is defined by
where both G _{ t } and G _{ r } are defined by the antenna gain, γ is the wavelength, and β is defined by the pathloss exponent [38].
Table 1 lists all assumption that are used throughout the paper.
A node may exchange its status slot by slot, which corresponds to the transition from one state to another in the Markov chain as depicted in Fig. 4 a. Figure 4 b shows that the proposed Markov model has limited queuing capacity denoted as M with finite state slots from left to right, which corresponds to 0 state for processing packets in the queue and so on to m packets in the queue (full queue). Specifically, if a packet arrives and the queue is full, then the packet is simply dropped; nevertheless, the packets are removed from the queue when they are successfully transmitted. By contrast, when the queue is neither full nor empty, then a node may obtain access to the media to transmit packets with an independent probability. The analysis of the Markov discretetime M/M/1 queuing model offers insights into the traffic behavior of vehiclebased sensor networks in general and points to an idea for a control algorithm.
The steady state probability and the transition probabilities of moving from one state to another can be described as follows:
If an abnormal event of interest is detected during the specified operations, then Eqs. 7a and 7b describe all transitions from an emptyqueue status to a nonempty status according to the Poisson process probability of new packet arrival λ. The typical scheduledriven operation for vehiclebased sensor node operates with two timers: one for the wakeup mode and another for sleep mode, for each node in the network [37]. Therefore, if an abnormal event is detected by a sensor node and needs to be transmitted to another node or to the sink, the node stops the sleepmode timer, turns on its radio, and starts processing the event; otherwise, the node remains in sleep mode. Equations 7c and 7f describe the transition probability of the scheduledriven dutycycle node operation, including the processing and transmission of information packets.
Equations 7d and 7e also describe the nontransition probability state (i.e., the probability of having a nondecreasing queue), which can be obtained from two terms depending on the oldest information packets still in the queue and winning the contention to access the media (first term) or otherwise (second term) [35, 38].
The hidden problem formulation
According to the heavytraffic assumption [41], each node in the network always has a packet in its buffer to be sent. Suppose a node is ready to transmit with probability p _{ s }, the probability of collision is p _{ f },A _{ ı } defines the probability that ı of data packet arrives at node during a cycle, and A _{≥ı } is the probability that no less than ı data packets arrive at a node during a cycle. Then, p _{ s } is considered as a protocolspecific parameter that is slot independent. This means that the probability of transmission and the collision varies from another time slot, depending on the behavior of both dutycycled node which modeled as Markovchain and the state of channel which is depicted in Fig. 4, where π _{0} indicate the steady state of a node. Because of a node may transmit or not in the slot depending to the mechanism that is used to avoid and resolve the collision as well as the current state of the channel [39]. Therefore, there is an exact relationship between p _{ s } and p _{ f } and should be derive to investigate the effects of p _{ s } and p _{ f } on performance of multihop network.
Generally, for singlehop IEEE 802.11, Bianchi [28] has proposed a multidimensional Markov chainmodel to derive the probability of successful packet transmission as a node always has a packet in its buffer ready to send and that the next hop is randomly selected as
where W is the minimum contention window size and m is the retry limit. Suppose that the sensor node is in a steady state, then the probability of an arbitrary sensor node transmitting in time slot denoted by τ is [42].
where λ defines the average event inter arrival rate, T _{tran} is the transmission time, and Y defines the processing time per event.
In general, τ depends on the conditional transmission probability p _{ s } and collision probability p _{ f }, which is still unknown as shown in Eq. 3. Therefore, to find the value τ, it should be first assumed successfully received value as the probability that only one node of the n neighboring nodes is transmitting [43]. Because each node n transmits with probability τ, therefore,
Moreover, to find the value of p _{ f } in a time slot at least one n still transmit this yields as [44]
Equations 5 and 6 represent a nonlinear system in the two unknowns τ and p _{ s } that solved using GregoryNewton Forward Difference Approach [45].
Consequently, it can use a similar approach to build the Markov chain model for dutycycle MAC protocol of a saturated node to obtain the relationship between p _{ s } and p _{ f } because of low dutycycle MAC protocols used the same factors like IEEE802.11 protocols to quantify the QoS parameters. Expect that there is extra delay in low dutycycle MAC protocol which is caused by the sleep period of each node [46].
Media access rules of XMAC
The hidden problem considers the first MAC problem that should be solved to investigate the network performance and to provide resource reservation and fulfill QoS requirements. Suppose that the transmission in sensor networks begins from node A that transmits data packets to node B as depicted in Fig. 5. Then, the propagation model between nodes A and B is given as
Therefore, the set of sensor nodes that are able to detect the transmission of node A is denoted as N _{tx}(A) and defined as
where R is the transmission range defined as
where the sensor nodes are distributed inside the dotted circle, the set of nodes N _{rx} that is distributed outside E transmission range is defined as \(E=\sqrt [\beta ]{\frac {P_{\text {tx}}(A)}{\alpha Sen}}\) cannot detect the transmission of node A [38]. This set is delimited by the shaded area and is calculated using the geometry equations as [1].
Assume that A _{ x }(T _{ R }) be the common shaded area that illustrates the locations at which possible hidden terminals reside. These circles of radius of E and T _{ I } intersect at two points \(\left (u,\sqrt {E^{2}u^{2}}\right)\) and \(\left (u,\sqrt {E^{2}u^{2}}\right)\) where \(u=\frac {E^{2}+T_{R}^{2}T_{I}^{2}}{2T_{R}}\). Therefore,
where
where \(a_{2}=\arccos \frac {uT_{R}}{I_{R}}\) and \(a_{3}=\arccos \frac {u}{E}\). The average value of the hidden nodes are calculated as [47]
Hidden sensor nodes distributed inside the shaded area that illustrates the locations at which possible hidden terminals reside may limit the performance of contentionbased MAC protocols. Because of their transmission results in collisions, the proposed model quantified the problem by deriving the probability of collision for avoiding this limitation.
The axioms of probability used to estimate the collision probability are performed by evaluating the dimensions of probabilistic of combination of events that might occur within A _{ x } and A _{ h } areas. Therefore, the derivation of collision probability depends on two rules: the addition rule which deals with the probability of union of more events; and the multiplication rule which deals with the probability of intersection of two events.
Suppose that E _{ x } be an event which collision occurs by one or more nodes within A _{ x } area, and E _{ h } be an event which collision occurs by one or more nodes within A _{ h } area. Then, the collision probability p _{ f } is calculated as [1]
where \(p_{E_{x}}\) is the probability of the event E _{ x } which is given as [1]
where \(p(\imath,A_{x})=\frac {(\rho A_{x})^{\imath }}{\imath !}\exp ^{\rho A_{x}}\) [1]. Likewise, \(p_{E_{h}}\) is define as the probability of the event E _{ h } that can be obtained as in [1] by
QoS parameter analysis of XMAC protocol
QoS parameters expressed in terms of energy consumption, delay, and throughput can be calculated within a cycle time, since XMAC works in dutycycled fashion. Therefore, an active period of a wakeup node is defined in cycle time as T _{awake} time units. During this active period, the preamble packets data packet has size S, and an ACK message are assumed as T _{pre},T _{Data}, and T _{ACK} time slot units to transmit, hence, Markov model has a unique stationary distribution π=π _{0},…,π _{ M } [29].
Usually, XMAC uses a fixedpreamble size carrying the address of the sink to transmit the data packet. Suppose that a sensor network is fully connected with n nodes, and then each node wakes up periodically for successful transmission of a data packet with probability (1−π _{0})p _{ s } which takes time on average \(\frac {T}{2}+T_{\text {Data}}\). Each node uses \(\frac {T}{2}\) periodically to send preamble packets and then a node starts to listen to the ACK messages between two successive preamble packets, whereas T _{Data} is used periodically to successfully transmit a data packet with specific probability. Hence, the average time it takes to send preamble packets is \(\frac {T}{2}\left (\frac {T_{\text {pre}}}{T_{\text {pre}}+T_{\textrm {ACK}}}\right)\). The average time a node takes to listen to the media is \(\frac {T}{2}\left (\frac {T_{\textrm {ACK}}}{T_{\text {pre}}+T_{\textrm {ACK}}}\right)\). Finally, the amount of energy that is consumed in this case is calculated as [18]
In similar case, a node wakes up periodically to unsuccessful transmission of a data packet with probability (1−π _{0})p _{ f } that implies other node synchronizes to send preamble packets. However, in this case, there is no preamble packets that may be received correctly because of collision, and then the node continues sending preamble packets with average time \(T\left (\frac {T_{\text {pre}}}{T_{\text {pre}}+T_{\textrm {ACK}}}\right)\), and the average time of listen to media between two successive preambles is \(T\left (\frac {T_{\text {ACK}}}{T_{\text {pre}}+T_{\text {ACK}}}\right)\). The amount of energy consumed in this case is [18]
Suppose that the node has received complete preamble packets, then it sends back T _{ACK} message to receive the data packet. However, any intermediate nodes may wake up to send a preamble packet or listen to receive T _{ACK} message from the sink. As a result, the time on average of the receiving node is \(\frac {T_{\text {pre}}+T_{\textrm {ACK}}}{2}\). Therefore, the amount of energy consumed is
\(\frac {T_{\text {pre}}+T_{ACK}}{2+T_{pre}}\) because it cannot detect the collision until it hears the next colliding preamble packets. Hence, the amount of energy consumed is
Totally, the energy consumption per hop per second can be obtained as
The analysis of the delay of data packet depends on the probability of successful transmission p _{ s } for each node that wins the contention and the steady state of the Markov model π _{0} during the cycle. Therefore, a node starts to send contends for the media during the cycle until win the contention with probability p _{ s } and the probability 1−p _{ s } to lose the contention. Hence, the delay is given along cycle length T.
The derivation of the probability of successful transmission and collision in XMAC protocol depends on the status of the queue and the channel. This means that a node have \(empty/\overline {empty}\) queue according to the steady state free/busy of the proposed Markov chain model. Further, the status of channel is free/busy according to detection of collision occurring by event. Suppose that A defines an event that occurs by one or more two node winners in the contention within the area A _{ x }. And B is defined as an event that occurs by two or multiple node winners in the contention with area A _{ h }. Then [9],
To solve for P _{ r }(A,freeempty) and P _{ r }(B,freeempty), assume that a node has an empty queue and directly wakes up and detects the event and transmit a data packet for its neighbors. At the same time, other nodes wake up but do not have any data packet for transmission. Therefore,
Similarly, when one other node wakes up and has data packet for transmission then a collision occurs, therefore, the collision probability is
P _{ r }(freeempty) is defined as the probability of a free channel when a node wakes up and has data packet in its queue ready for transmission. As mentioned, each node in XMAC protocol periodically wakes up and sends preamble packets and then a node starts to listen to channel; the channel have the same probability of being free or busy in every time slot [18]. Hence, when a node wakes up, no matter whether its queue is empty or not, the node sees the channel with the same probability of being free or busy. Therefore,
The probability of free channel is determined by two parameters: (a) the average length of the free channel; and (b) the average length of the busy channel. Therefore, the probability of free channel is expressed as
To calculate C _{free}, assume that the interval of time transmission ends, and the free channel begins, there are number of cycles cycle that could define the free channel until some nodes begin to transmit at t ^{th} slot. Thus, the average length of free channel is c y c l e T+t, and the probability of transmission event is [18]
Therefore, the average length of free channel can be obtained as [18]
The successful transmission probability P _{suc} could be similar as the obtained probability of collision P _{col} as long as the channel is free for cycle cycles and t slots.
Therefore, both successful transmission and collision are calculated as [18]
The average length of a busy channel can be calculated according to the successful transmission data packet which takes on average time \(\frac {T}{2}+T_{\text {Data}}+P_{\text {suc}}\). Therefore,
Substituting Eqs. 38 and 35 into 33, then P _{ r }(free) is obtained. Plugging 30 and 32 into 28, and then plugging 31 and 32 into 29, the successful transmission probability for each node p _{ s } the probability of collision p _{ f } are obtained. Therefore, the throughput per second per hop of XMAC protocol can be calculated as
Simulation results
Consider that a vehicle is equipped with wireless devices; therefore, they can communicate with each other. However, the primary application is to let vehicles exchange about their current context in order to detect abnormal events in an urban environment. The network topology is shown in Fig. 6; our proposed model provides detailed analysis for the performance of a synchronized XMAC protocol under the impact of the hidden problem as well as under unicast traffic for various network configuration, conditions, and other assumptions for specific scenarios. The analytical correctness of the proposed model was validated through implementation using MATLAB [48].
In all the simulations to be presented in the paper, the network setup is a fully connected with varying number of connected nodes, i.e., vehicles. The transmission range of each vehicle is 18 m, and the cycle length of time period is 50 s. For each set of simulation, energy consumption, delay, and throughput are investigated under varying network parameters of the vehicle. The values of the network parameters used are summarized in Table 2. These parameters are set to comply with the XMAC protocol specifications. All vehicles are distributed rating using a twodimensional Poisson distribution within an area of 50 × 50 m ^{2}.
Figure 7 shows the performance of XMAC protocol for multihop communication fashion under varying cycle length T from 50 to 200 ms as shown in Fig. 8. Figure 9 shows the performance of XMAC protocol under varying vehicle densities in the network and transmission range of each vehicle varying from 18 to 29 m as shown in Fig. 10. From these results, it can be seen that the analytical results of the proposed model match the simulation results.
Varying the cycle length
In this experiment, we vary the cycle length, Fig. 7 a shows the power consumption of the XMAC protocol obtained from simulations and from our power consumption analysis using the Markov model. Our analytical results match the simulation results with percentage difference or max difference in power consumption. The power consumption decreases as the length of cycle period increases which means that whenever the cycle length increases, the unsuccessful data transmission increases due to increase in the rate of collision probability. Consequently, as the cycle length increases and as the number of vehicles increases, the power consumed in data transmission increases, and the active period in each cycle is fixed. Therefore, all vehicles in the network expect the source vehicle and the sink node in either successful transmission or unsuccessful transmission to go to the sleep state as long as the cycle length increases. Thus, the power saving in this longer sleep period is more than in longer transmission period, the power consumption of XMAC protocol decreases as the cycle length increases.
Figure 7 b shows that the average delay of the XMAC protocol increases as the length of cycle period increases. Usually, before the XMAC protocol saturates and the cycle length starts from small value with a few vehicles in the network. XMAC protocol can deliver all the incoming data packets as soon as they arrive in the network, hence, the delay is nearly zero. Once XMAC protocol saturates and the cycle length increases, both the contention and queue delay increases proportional to the increases of the cycle length and the number of nodes. Since the XMAC protocol can no longer deliver all the incoming data packets, the queue at each vehicle overflows and data packets are dropped.
Figure 7 c reveals that the average throughput of the XMAC protocol decreases as the cycle length increases and as the number of vehicles in the network increases. This means that before XMAC saturates, the amount of incoming data packet delivered remains in the queue and slightly decreases when XMAC protocol saturates and as the number of vehicles in network increases further. As the XMAC protocol can no longer deliver all the incoming data packets because of the increasing collisions at the following specified period.
Varying the number of nodes
In this experiment, we vary the number of vehicles. Figure 9 shows that the power consumption of XMAC protocol increases under varying vehicle densities in the network and transmission range of each vehicle in the network as seen in Fig. 10. Whenever the transmission range increases, the unsuccessful data transmission increases since the rate of collision probability increases and hence more power is consumed. Consequently, as the transmission range increases and as the number of vehicles increases, the power consumed in data transmission increases, as the active period in each cycle is fixed. Therefore, all vehicles in the network expect the main vehicle source and the main sink node in either successful transmission or unsuccessful transmission wakeup as longer as the cycle length increases. Thus, power savings in this longer sleep period became more than in longer transmission period, the power consumption of XMAC protocol decreases as the cycle length increases.
Figure 9 b shows the delay of the XMAC protocol. Before XMAC saturates, the delay slowly increases with lower node density and with fewer variation in the transmission range vehicle in cycle. Moreover, as the number of vehicles increases, a vehicle tends to have a higher probability of successful transmission leading to saturation state. Therefore, the delay dramatically increases as XMAC saturates because of the increases in the rate of collision probability in a cycle. This means that the more vehicles in the network leads to decreasing the probability of successful transmission of packets when XMAC saturates. Hence, according to the main parts of XMAC protocol data packets delay (the queue delay and contention delay) this increase is obvious when the number of vehicles and the transmission range increase.
Figure 9 c shows the throughput of XMAC protocol. Before XMAC saturates, the amount of incoming data packet in cycle remains, the node can deliver all incoming data packets in cycle. Once the transmission range of vehicle in a cycle increases, the throughput decreases as well as the vehicle density increases. This means that XMAC can no longer deliver all incoming data packets, because of increasing the transmission range leading a vehicle tends to have higher probability of successful packet transmission leading to saturation state. Therefore, the throughput shrinks dramatically because of the increase in the probability of collision.
Discussion
The proposed Markov model for asynchronous dutycycled MAC protocols has been applied in XMAC protocol to optimize some protocol parameters to achieve desirable performance. Conceptually, XMAC is considered as higher efficient protocol than synchronized SMAC protocol because of the avoidance synchronization overheads. Therefore, asynchronous XMAC can achieve more desirable performance than synchronized SMAC for the delay and throughput [49]. But this does not mean that asynchronous XMAC does not suffer from hidden terminals especially when varying the vehicles and density. As the vehicles and density increases, more than one vehicle wake up and begin to send their preambles simultaneously. Therefore, other vehicles cannot determine the information in preambles and collisions occur. Consequently, and based on the assumption used in Markov model in synchronous MAC protocol, our proposed model uses two different values of probabilities for transmission and collision, p _{ s } and p _{ f }, respectively, to handle the hidden terminal problem and to estimate the communication links performance. Finally, we should distinguish between the effect of asymmetric and symmetric links in order to provide the adequate functionality to routing protocols. Asymmetric links are caused by several factors like node mobility, heterogeneous radio technologies, and irregularities in radio ranges. Although it is difficult to achieve high network connectivity, high data rate transmission, and low latencies, but according to our observations, it is expected that asymmetric links will be more common in the future VSNs. Actually, the hidden terminal problem will be more complicated with the existence of asymmetric links, where the receiver and the sender do not share the channel feedback and hidden nodes may interfere with the on going transmissions [50]. Furthermore, because of the feedback from the receiver in RTS/CTS, exchanged messages may have to pass through several relay nodes before being delivered to all others nodes. However, MAC protocols might need to exploit asymmetric links to solve the hidden terminal problem while maintaining the lowest cost. In fact the network utilization and cost are weights derived and constrained by the network resource management (NRM) approach, where some routing or MAC protocols based on QoS parameters such as (power consumption, throughput, and latency) are applicationdependent and imposed by the node specification. Therefore, to optimize these parameters in order to achieve the desirable benefits and network performance, the NRM approach shall be chosen based on the desire QoS parameters. As a result, the inclusion of asymmetric links in the MAC protocol design can further improve the network performance.
Conclusions
In this paper, the QoS parameters of XMAC are modeled and analyzed using Markov chain model. Our model presents analytical results which have been validated by simulation results for the selected QoS parameters under various network conditions and traffic loads. It provides sufficient information about the links between the vehicles to determine the optimal path and to select the intermediate nodes for packet routing from source to distention. Our future work will focus on analyzing the QoS parameters for synchronized protocols and extending the model to multihop networks.
References
 1
F AlTurjman, H Hassanein, M Ibnkahla, Quantifying connectivity in wireless sensor networks with gridbased deployments. Elsevier: J. Netw. Comput. Appl. 36(1), 368–377 (2013).
 2
F AlTurjman, Informationcentric sensor networks for cognitive IoT: an overview. Ann. Telecommun. 72(1), 3–18 (2017).
 3
GT Singh, FM AlTurjman, Learning data delivery paths in QoIaware informationcentric sensor networks. IEEE Internet Things J. 3(4), 572–580 (2016).
 4
F Cunha, et al, Data communication in VANETs. Ad Hoc Netw. 44(C), 90–103 (2016).
 5
K Nellore, GP Hancke, A survey on urban traffic management system using wireless sensor networks. Sensors. 16(2), 157 (2016).
 6
F AlTurjman, M Gunay, CAR Approach for the internet of things. Can. J. Electr. Comput. Eng. 39(1), 11–18 (2016).
 7
W Xiang, et al, Wireless access in vehicular environments. EURASIP J. Wirel. Commun. Netw. 2009(1), 1–2 (2009).
 8
GP Hancke, GP Hancke Jr, The role of advanced sensing in smart cities. Sensors. 13(1), 393–425 (2012).
 9
T Asha, N Muniraj, Energy efficient topology control approach for mobile ad hoc network. Int. J. Comput. Sci. Issues (IJCSI). 10(4), 289 (2013).
 10
U Lee, M Gerla, A survey of urban vehicular sensing platforms. Comput. Netw. 54(4), 527–544 (2010).
 11
U Lee, et al, Dissemination and harvesting of urban data using vehicular sensing platforms. IEEE Trans. Veh. Technol. 58(2), 882–901 (2009).
 12
P Suriyachai, U Roedig, A Scott, A survey of MAC protocols for missioncritical applications in wireless sensor networks. IEEE Commun. Surv. Tutor. 14:, 240–264 (2012).
 13
N Saxena, A Roy, J Shin, Dynamic duty cycle and adaptive contention window based QoSMAC protocol for wireless multimedia sensor networks. Comput. Netw. 52:, 2532–2542 (2008).
 14
P Mohapatra, AD HOC NETWORKS: technologies and protocols (Springer Science & Business Media, 2005).
 15
MZ Hasan, H AlRizzo, F AlTurjman, A survey on multipath routing protocols for QoS assurances in realtime multimedia wireless sensor networks. IEEE Commun. Surv. Tutor (2017). doi:10.1109/COMST.2017.2661201.
 16
P Park, et al, Dutycycle optimization for IEEE 802.15.4 wireless sensor networks. ACM Trans. Sensor Netw. (TOSN). 10(1), 12 (2013).
 17
M Buettner, GV Yee, E Anderson, R Han, in presented at the Proceedings of the 4th international conference on Embedded networked sensor systems. XMAC: a short preamble MAC protocol for dutycycled wireless sensor networks (Boulder, Colorado, USA, 2006), pp. 307–320.
 18
Y Ou, W Heinzelman, Modeling and performance analysis for dutycycled MAC protocols with applications to SMAC and XMAC. IEEE Trans. Mob. Comput. 11(6), 905–921 (2012).
 19
A Iyer, C Rosenberg, Understanding the key performance issues with MAC protocols for multihop wireless networks. Wirel. Commun. Mob. Comput. 6:, 745–760 (2006).
 20
G Wang, et al, A MAC layer protocol for wireless networks with asymmetric links. Ad Hoc Netw. 6(3), 424–440 (2008).
 21
Y Wei, J Heidemann, D Estrin, in Proc. of the IEEE Int. Conf. on Computer and Communications Societies INFOCOM ’02. An energyefficient MAC protocol for wireless sensor networks (New York, 2002), pp. 1567–1576.
 22
KL Dam, in proceedings of the 1st Int. Conf. on embedded networked sensor systems. An adaptive energyefficient MAC protocol for wireless sensor networks (Los Angeles, 2003), pp. 171–180.
 23
J Polastre, J Hill, D Culler, in Proc.SenSys’04. Versatile low power media access for wireless sensor networks, (2004), pp. 95–107.
 24
F AlTurjman, H Hassanein, M Ibnkahla, in Proc. of the IEEE Local Computer Networks (LCN). Quantifying Connectivity of Gridbased Wireless Sensor Networks under Practical Errors (Denver, 2010), pp. 224–227.
 25
A Razaque, KM Elleithy, Energyefficient boarder node medium access control protocol for wireless sensor networks. Sensors. 14:, 5074–5117 (2014).
 26
S Oteafy, F AlTurjman, H Hassanein, in Proc. of the IEEE International Global Communications Conf. (GLOBECOM). Pruned Adaptive Routing in the Heterogeneous Internet of Things (Anaheim, 2012), pp. 232–237.
 27
H Wu, RM Fujimoto, G Riley, in Proceedings of the winter conference in simulation. Experiences parallelizing a commercial network simulator (Arlington, 2001), pp. 1353–1360.
 28
G Bianchi, Performance analysis of the IEEE 802.11 distributed coordination function. IEEE J. Sel. Areas Commun. 18:, 535–547 (2000).
 29
Y Ou, WB Heinzelman, in Global Telecommunications Conference (GLOBECOM 2010), 2010. Modeling and throughput analysis for XMAC with a finite queue capacity (IEEE, 2010), pp. 1–5.
 30
I Rhee, A Warrier, M Aia, J Min, ML Sichitiu, ZMAC: a hybrid MAC for wireless sensor networks. IEEE/ACM Trans. Netw. (TON). 16:, 511–524 (2008).
 31
MZ Hasan, F AlTurjman, H AlRizzo, in International wireless communications and mobile computing conference (IWCMC). Evaluation of a dutycycled protocol for TDMAbased Wireless Sensor Networks, (2016), pp. 964–969.
 32
G Yan, DB Rawat, Vehicletovehicle connectivity analysis for vehicular adhoc networks. Ad Hoc Netw. 58(1), 25–35 (2017).
 33
F AlTurjman, in 2016 IEEE 41st Conference on local computer networks (LCN). Hybrid Approach for Mobile Couriers Election in SmartCities (Paris, 2016), pp. 507–510.
 34
O Yang, W Heinzelman, in 5th International Conference on Intelligent Sensors, Sensor Networks and Information Processing (ISSNIP). Modeling and throughput analysis for SMAC with a finite queue capacity (Melbourne, 2009), pp. 409–414.
 35
MR Ahmad, E Dutkiewicz, X Huang, in Emerging communications for wireless sensor networks. InTech. A survey of low duty cycle MAC protocols in wireless sensor networks, (2011), pp. 69–90. https://www.intechopen.com/books/emergingcommunicationsforwirelesssensornetworks/asurveyoflowdutycyclemacprotocolsinwirelesssensornetworks.
 36
P Suriyachai, U Roedig, A Scott, A Survey of MAC Protocols for MissionCritical Applications in Wireless Sensor Networks. IEEE Commun. Surv. Tutor. 14(2), 240–264 (2012).
 37
MA Yigitel, OD Incel, C Ersoy, QoSaware MAC protocols for wireless sensor networks: a survey. Comput. Netw. 55:, 1982–2004 (2011).
 38
A Bachir, D Barthel, M Heusse, A Duda, in International conference on in wireless networks, Communications and Mobile Computing. Hidden nodes avoidance in wireless sensor networks (Maui, 2005), pp. 612–617.
 39
J GarciaLunaAceves, Y Wang, in Ad Hoc Networks. Collision avoidance protocols in ad hoc networks (Springer, 2005), pp. 23–61. https://link.springer.com/chapter/10.1007%252F0387226907_2.
 40
F AlTurjman, H Hassanein, M Ibnkahla, in Proc. of the IEEE Queen’s Biennial Symposium on Communications (QBSC). Quantifying the Effects of Placement Errors on WSN Connectivity in Gridbased Deployments (Kingston, 2010), pp. 59–62.
 41
A Redondi, et al, CompressthenAnalyze vs Analyzethencompress: what is best in visual sensor networks?IEEE Trans.Mob. Comput. PP(99), 1–1 (2016).
 42
F AlTurjman, H Hassanein, M Ibnkahla, Towards prolonged lifetime for deployed WSNs in outdoor environment monitoring. Elsevier Ad Hoc Netw. J. 24(A), 172–185 (2015).
 43
Y Kim, C Yang, CH Liu, in IEEE GLOBECOM in Global telecommunications conference. Throughput analysis of randomized sleep scheduling with constrained connectivity in wireless sensor networks (IEEE, 2008), pp. 1–6.
 44
D RodenasHerraiz, AJ GarciaSanchez, F GarciaSanchez, J GarciaHaro, On the improvement of wireless mesh sensor network performance under hidden terminal problems. Futur. Gener. Comput. Syst. 45:, 95–113 (2015).
 45
Z Chu, HX Nguyen, TA Le, M Karamanoglu, et al., in Proc. of teh Int. Conf. on Wireless Days. Game theory based secure wireless powered D2D communications with cooperative jamming (Portugal, 2017), pp. 95–98.
 46
MZ Hasan, F AlTurjman, H AlRizzo, Optimized MultiConstrained QualityofService Multipath Routing Approach for Multimedia Sensor Networks. IEEE Sensors J. 17(7), 2298–2309 (2017).
 47
TE Salti, D Stacy, et al., in Proc. of the International Wireless Communications and Mobile Computing Conference. Packet delivery significance and metrics improvements in protocols for 3D routing in Wireless Sensor Networks (Nicosia, 2014), pp. 1130–1135.
 48
G Singh, F AlTurjman, in Proc. of the International Wireless Communications and Mobile Computing Conference (IWCMC). Cognitive Routing for InformationCentric Sensor Networks in Smart Cities (Nicosia, 2014), pp. 1124–1129.
 49
E Ziouva, T Antonakopoulos, CSMA/CA performance under high traffic conditions: throughput and delay analysis. Comput. Commun. 25:, 313–321 (2002).
 50
G Wang, et al, in Proceedings of the international conference on wireless communications and mobile computing. A simulation study of a MAC layer protocol for wireless networks with asymmetric links (ACMVancouver, British Columbia, Canada, 2006), pp. 929–936.
Acknowledgements
The authors extend their appreciation to the anonymous reviewers for their helpful and supportive comments towards improving our paper.
Author information
Additional information
Funding
The authors declare that they depend on their own personal fund in order to publish this article.
Authors’ contributions
MZH and FAT conceived the idea and wrote the paper. MZH performed the experiments and analyzed the data. FAT gave valuable suggestions on the motivation of this work and assisted in revising and proofreading the paper. Both authors read and approved the final manuscript.
Competing interests
Both authors declare that they have no competing interests.
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.
About this article
Cite this article
Hasan, M., AlTurjman, F. Evaluation of a dutycycled asynchronous XMAC protocol for vehicular sensor networks. J Wireless Com Network 2017, 95 (2017). https://doi.org/10.1186/s1363801708827
Received:
Accepted:
Published:
Keywords
 XMAC
 Markov model
 Qualityofservice analysis