# Optimizing the performance of non-fading and fading networks using CSMA with joint transmitter and receiver sensing

- Mariam Kaynia
^{1}Email author and - Geir E Øien
^{1}

**2012**:271

https://doi.org/10.1186/1687-1499-2012-271

© Kaynia and Øien; licensee Springer. 2012

**Received: **1 August 2011

**Accepted: **28 July 2012

**Published: **23 August 2012

## Abstract

We consider a mobile ad hoc network where packets belonging to specific transmitters arrive randomly in space and time according to a 3-D Poisson point process, and are upon arrival transmitted to their intended destinations using the carrier sensing multiple access (CSMA) MAC protocol. A packet transmission is considered successful if the received SINR is above a predefined threshold for the duration of the packet. A simple fully-distributed joint transmitter-receiver sensing scheme is proposed for the CSMA protocol to improve its performance in both non-fading and fading networks. The outage probability of this enhanced version of CSMA is derived and optimized with respect to the sensing thresholds. In order to derive a mathematical expression for the optimal sensing thresholds, the inherent hidden and exposed node problems of CSMA are considered and efficiently balanced. The performance of this improved CSMA protocol is compared to the other flavors of CSMA, and shown to bring about significant performance gain.

## Keywords

## Introduction

Medium access control (MAC) layer design is commonly applied to address the problem of allocating scarce resources in a wireless network. Various MAC protocols are proposed in order to share the communication channel in the most efficient manner, in order to minimize the destructive interference. One such protocol that has gained great popularity is carrier sensing multiple access (CSMA). This protocol is successfully employed in the IEEE 802.11 standard family, and many enhancements have been proposed and implemented in order to minimize the inherent hidden and exposed node problems [1–3]. Nevertheless, there is still room for improvement, in particular in networks with high density of simultaneous transmissions. This provides the motivation behind our study.

Numerous studies have evaluated the performance of the CSMA protocol, evaluating its performance in terms of throughput and bit error rate [4–6]. Much of this study confirms CSMA’s superiority over other protocols, such as ALOHA, with natural tradeoffs in other domains such as transmission rate and delay [1, 6]. Also, many extensions have been proposed to improve the performance of CSMA [7–9]. However, the conventional model used in most of these studies assumes that the topology of the network is known, and that multiple links cannot communicate simultaneously. Such assumptions are not realistic for mobile ad hoc networks (MANETs). The closest model to a real-life ad hoc network is that used in [10, 11], where users are assumed to be Poisson distributed in space and each transmitter communicates with its own receiver using ALOHA, while allowing for simultaneous communication between links. This model was embraced in [12], and is also applied in our study.

Choosing the right value for CSMA’s sensing threshold (which the backoff decision is based on) is of great importance for the performance of this protocol. Many studies have proposed various adaptation schemes to find the optimal carrier sensing threshold of CSMA to enhance the throughput and the transmission reliability in dynamically changing networks [13–15]. In [2], a novel analytical model was introduced for determining the optimal carrier sensing range in ad hoc networks by minimizing the sum of the hidden and exposed terminal areas. The optimization is done in terms of aggregate throughput, yielding that the optimal carrier sensing range is approximately equal to the interference range. The study of [16] further improves the carrier sensing capability of CSMA by adding fairness to the equation, while retaining the throughput performance. The shortcoming of this study is that only six node pairs are considered in the performance evaluation, limiting the applicability of the results to a randomly distributed ad hoc network with high density of simultaneous transmissions. Moreover, it is shown in [7] that the optimal algorithm is for the senders to keep the product of their transmit power and carrier sensing threshold equal to a constant. However, this algorithm is not distributed, and is dependent on the estimation of signal powers. Another algorithm for maximizing the throughput is to decrease the sensing range as long as the network remains sufficiently connected [17]. An improved carrier sensing threshold adaptation algorithm was proposed in [8], where each node chooses the sensing threshold that maximizes the number of successful transmissions in its neighborhood. The drawback of this technique is that it relies on the collection of information over a period of time, which entails higher complexity, and introduces delays. Zhu et al. derive in [9] the optimal sensing threshold of the conventional CSMA protocol to be *β*_{
t
}=*ρ*(1 +*β*^{1/α})^{
α
}, where *ρ* represents the transmitted signal strength, *α* is the path loss exponent, and *β*is the minimum required signal-to-interference-plus-noise ratio (SINR) threshold for correct reception of packets. The optimized CSMA protocol was evaluated on a real test-bed in [18].

In [12], a new version of the CSMA protocol is proposed, denoted CSMA_{RX}, where the receiver (as opposed to the transmitter in CSMA_{TX}) performs the channel sensing and makes the backoff decision. The sensing thresholds of both CSMA_{TX} and CSMA_{RX}are optimized in a non-fading ad hoc network. It is shown that for lower densities, applying a sensing threshold may not provide any improvement compared to having no sensing at all. For higher densities, however, significant reduction in the outage probability can be obtained by setting the sensing threshold of the transmitter in CSMA_{TX}, *β*_{
t
}, or of the receiver in CSMA_{RX}, *β*_{
r
}, equal to the communication threshold, *β*, i.e., ${\beta}_{t}^{\text{opt}}\approx {\beta}_{r}^{\text{opt}}\approx \beta $.

Having considered the performance of CSMA_{TX}and CSMA_{RX}, a natural question then becomes: Can we improve the performance of CSMA further if we allow *both* the transmitter and its receiver to sense the channel, and subsequently let them *collectively* decide whether or not to initiate transmission of each packet? And moreover, what are the optimal sensing thresholds that minimize the outage probability of this new flavor of CSMA both in the absence and presence of fading?

Hence, in the following, we will analyze the impact of a joint backoff decision making on the performance of the CSMA protocol. Following the same style of notation as in [12], we refer to this modified flavor of CSMA as CSMA_{TXRX}. The analytical framework used in the present study is inspired from [12], with the addition of allowing for a *joint* backoff decision making mechanism, and adding fading effects to the network model. The concept of a joint backoff decision making was first introduced in [19], where only a non-fading network was considered, and the MAC protocols did not allow for multiple backoffs and retransmissions, something that simplified the analysis significantly. Not only is the analysis of the present article useful for future improvements made to CSMA, it also provides us with a fundamental understanding of the *hidden* and *exposed node problems*, which are the main sources of imperfection of this protocol. This in-depth understanding is used to derive the optimal sensing thresholds of CSMA_{TXRX}, something that would otherwise be too complicated to achieve. The hidden node problem occurs whenever a new node is unable to detect an ongoing transmission, so that it initiates its transmission and thereby causes outage for an already active packet. The exposed node problem is characterized by transmissions being prevented even though they could have taken place without harm to other ongoing transmissions. A decrease in one of these two problems, results in an increase in the other, and vice versa. Choosing optimal values for the sensing thresholds *β*_{
t
} and *β*_{
r
} will provide a balance between the hidden and exposed node problems, thus improving the network performance.

## System model

*λ*

^{ s }[nodes/m

^{2}]. At each transmitter, a series of packets, each with a fixed duration

*T*, arrives according to an independent 1-D PPP in time with intensity

*λ*

^{ t }[packets/sec/node]. If we only consider the arrival of new packets in space, the packet density is

*λ*=

*λ*

^{ s }

*λ*

^{ t }

*T*. As this network model entails two independent Poisson distributions, we would have to average over both the spatial and temporal statistics to obtain the outage probability, making the mathematical analysis infeasible. Thus, we consider our wireless network from an alternative point of view: Upon the arrival of each packet, it is assigned to a transmitter node, which is then randomly placed on a 2-D plane (uniformly distributed in area

*A*), as illustrated in Figure 1. Upon the formation of each packet and according to the specified MAC protocol, it is transmitted with constant power

*ρ*to its intended receiver a fixed distance

*R*away. When the packet has been served (successfully or not), the corresponding transmitter-receiver pair disappears from the plane. As long as the maximum number of backoffs,

*M*, and retransmissions,

*N*, is not reached, the packet is placed back in the packet arrival queue, with a new transmission time. The retransmitted packet will be located in a new position, which is justified by our assumption of high mobility.

*single*random process describing both the temporal and spatial variations of the system, something that facilitates analyses that previously have been perceived as too complicated to perform. Note that the temporal PPP of packet arrivals at each node is independent of the PPP of transmitter locations in space. Due to the high mobility assumption in our network, different sets of packets are active between times

*t*

_{0}and

*t*

_{0}+

*T*. Since the waiting time from one transmission attempt to the next is set to be greater than

*T*, we have that there are no spatial and temporal correlations between retransmission attempts. Moreover, note that the fixed distance of

*R*between each transmitter-receiver pair does not affect the Poisson distribution of the interferers. That is, from the point of view of each node (receiver or transmitter), the interfering transmitters have a random topology following a PPP, meaning that many of the interfering transmitters could be at a random distance less than

*R*away. Also, setting the distance between each transmitter-receiver pair to a fixed value, does not impact our analysis and results, as we are considering the

*lower bound*to the outage probability. To prove this claim, consider the general expression for the probability of an erroneous packet reception in an interference-limited PPP network, where

*d*denoting the distance between a transmitter and its own receiver, is a random variable:

where we have used: ${\mathbb{E}}_{d}\left[{d}^{2}\right]=\text{var}\left(d\right)+{\mathbb{E}}_{d}{\left[d\right]}^{2}$. Replacing ${\mathbb{E}}_{d}\left[d\right]$ by a fixed value *R* yields the error expression we use in our analyses and thereby confirms that our assumption on the fixed transmitter-receiver distance does not impact the lower bound outage probability analysis significantly. Also, it is worthwhile noting that the whole network with a fixed *R* could be viewed as a snapshot of a multi-hop wireless network, where *R* is the bounded *average* inter-relay distance. For more details on this 3-D model, please refer to [12].

Our traffic model has the following main attributes, which will be significant in our derivations;

Our network is highly mobile, meaning that different and independent sets of nodes are observed on the plane from one slot (of duration *T*) to the next.

The waiting time between each retransmission attempt, *t*_{
wait
}, is by design ensured to be more than *T*. Because of the high mobility assumption, new channel instances are observed between transmission attempts, and thus there are no temporal correlations between retransmissions.

Upon retransmission of a packet, it is treated as a new packet arrival and placed in a new location, resulting are no spatial correlations between retransmission attempts.

*α*>2. Each receiver potentially sees interference from all transmitters, and these independent interference powers are added to the channel noise

*η*to cause signal degradation. The introduction of fading adds a new source of randomness to the model, namely the channel coefficients

*h*

_{ ij }. The SINR in a non-fading network and the SINR

^{ f }in a fading network are given respectively as

where *r*_{
i
}is the distance between the node under observation and the *i* th interfering transmitter; *h*_{00}represents the fading effects between the receiver under observation, RX_{0}, and its designated transmitter; *h*_{0i} is the fading coefficient between RX_{0} and the *i* th interfering transmitter. The summation is over all active interferers on the plane at a given time instant *t*.

### MAC protocol

The channel access is driven by the CSMA_{TXRX}protocol. This protocol operates as follows: When the transmitter has a packet to transmit, it performs physical carrier sensing of the interference power, *P*_{int}, in the channel (i.e., the radio measures the energy received on its available radio channel). Based on this measurement, and its knowledge on the distance *R* to its own receiver, the transmitter calculates the expected received SINR by using Equation (2), where the denominator is replaced by the measured *P*_{int}. If this expected received SINR is below the required threshold *β*_{
t
}, the channel is considered busy and the transmitter refrains from transmission. If it is above *β*_{
t
}, a request-to-send (RTS) signal is sent to the receiver, which then performs a similar channel sensing of the interference power around itself. If this measured SINR at the receiver is below the required sensing threshold *β*_{
r
}, it informs its transmitter to cancel the transmission; if the measured SINR is above *β*_{
r
}, a clear-to-send (CTS) signal is sent to the transmitter, which then initiates the packet transmission.

Once a transmission is initiated, there is still a probability that the packet is received in error at its destination, i.e., the received SINR is below *β*at some *t*∈(0,*T*). In this case, the packet is retransmitted. Each packet is given *M* backoffs and *N* retransmissions before it is dropped and counted to be in outage.

Note that the main difference between the proposed CSMA_{TXRX} protocol and the CSMA/CA protocol used in the IEEE 802.11 standard is that in the latter, all nodes hear the RTS and CTS signals, whereas in CSMA_{TXRX}, the communication of control signals occurs between a transmitter and its own receiver only (e.g., by using coding or separate frequency bands). Such isolated signaling scheme has a few benefits: (a) collision between the control signals is avoided, (b) delays in the decision-making stage are reduced, and (c) the situation where nodes unnecessarily decide to back off due to the detected RTS/CTS signal (even though their packets would have been received correctly at their own receivers) is mitigated.

### Performance metric

*outage probability*, which is defined as the probability that a packet is received erroneously at its receiver after

*M*backoffs and

*N*retransmissions. Outage probability is closely related to the ubiquitous metric

*Transmission Capacity*, given as

where *b* is the average rate that a successful packet achieves, with units [bits/s/Hz per packet]. The unit of $\mathcal{S}$ is [bits/s/Hz/m^{2}]. In the following sections, we derive the outage probability of CSMA_{TXRX}both in the absence and in the presence of fading. In Section 5, the sensing threshold of the transmitter, *β*_{
t
}, and that of the receiver, *β*_{
r
}, are both optimized.

## Performance in the absence of fading

In this section, we assume no fading effects in the channel, i.e., the signal degradation is due to path loss only, as described in Section 2. First, we explain the method of analysis as well as the key steps of the mathematical derivations, before the result of the analysis is presented in Subsection 3.2.

### Method of analysis

_{ t }, and that based on the receiver’s sensing by SINR

_{ r }, the outage probability of CSMA

_{TXRX}is given as

*s*

_{ r }to be the distance between the receiver under observation, RX

_{0}, and its closest interferer, TX

_{ i }, that causes the SINR to fall just below the threshold

*β*

_{ r }, yields

*β*

_{ t }corresponds to

*s*

_{ t }and

*β*to

*s*. Denote the circle of radius

*s*

_{ r }around RX

_{0}by

*B*(RX

_{0},

*s*

_{ r }), and the circle of radius

*s*

_{ t }around TX

_{0}by

*B*(TX

_{0},

*s*

_{ t }). Following Equation (4) and the concept of guard zones, we have that if there exists at least one transmission inside

*B*

_{1}=

*B*(TX

_{0},

*s*

_{ t })∪

*B*(RX

_{0},

*s*

_{ r }) upon the arrival of TX

_{0}-RX

_{0}, this transmitter-receiver pair would back off from transmission. The area of

*B*

_{1}is shown as the lightly shaded area in Figure 2, and is given as $\Pi {s}_{t}^{2}+\Pi {s}_{r}^{2}-{A}_{\mathit{ol}}({s}_{t},{s}_{r})$, where

*A*

_{ ol }(

*s*

_{ t },

*s*

_{ r }) denotes the area of overlap

*B*(TX

_{0},

*s*

_{ t })∩

*B*(RX

_{0},

*s*

_{ r }), and is simply derived to be

_{0}and RX

_{0}jointly decide to transmit, there is still a probability that their packet is in error upon its arrival due to an ongoing transmission inside

*B*(RX

_{0},

*s*) that was not detected in the backoff decision-making stage. That is, the packet is in error at the start, if an active transmission is detected inside $B({\text{RX}}_{0},s)\cap \overline{B({\text{TX}}_{0},{s}_{t})\cup B({\text{RX}}_{0},{s}_{r})}$. This area is marked as the darkly shaded region in Figure 2, and is given by

Now, given the packet transmission of TX_{0}-RX_{0} is initiated and it is not in error at the start of its transmission, there is a probability that a new interferer, TX_{
i
}, enters the plane at some *t*∈(0,*T*), is located inside *B*(RX_{0},*s*), and thus causes error for the packet of RX_{0}. Since TX_{
i
}would back off if it or its receiver detect the transmission of TX_{0}, this means that in order for TX_{
i
} to cause outage for RX_{0}, it must be placed inside ${B}_{2}=B({\text{RX}}_{0},s)\cap \overline{B({\text{TX}}_{0},{s}_{t})}$, while its receiver RX_{
i
} is located outside of *B*(TX_{0},*s*_{
r
}). This probability is denoted as *P*_{during}, and is given in the following subsection.

*P*

_{error}= 1 − exp{ −

*λ*

_{csma}

*A*}, where

*A*is the detection area depending on the particular error probability to be calculated. Moreover, the density

*λ*

_{csma}is given as

where *P*_{
b
} is the backoff probability, *P*_{rt 1}is the probability that the packet is received in error at its first transmission attempt, and *P*_{
rt
} is the probability that the packet is received erroneously in a retransmission attempt. The reason we distinguish between *P*_{rt 1} and *P*_{
rt
} is that due to the backoff decision making stage, the area where there is a probability of detecting an active interferer during a transmission is smaller in the first transmission than in the following retransmissions.

### Outage probability in non-fading networks

Based on the above derivations, we are now able to mathematically express the outage probability of CSMA_{TXRX} in a non-fading network. This is given by the following theorem.

#### Theorem 1

_{TXRX}in the absence of fading with varying sensing thresholds is given by

where:

*P*

_{ b }is the backoff probability, approximated by the solution to

where *A*_{
ol
}(*s*_{
t
},*s*_{
r
})is given by Equation (6).

*P*

_{ rt }=

*P*

_{ rx }+ (1 −

*P*

_{ rx })

*P*

_{during}is the probability that a packet is received in error in a retransmission attempt.

*P*

_{ rx }is the probability that the packet is in error at the start of each of its retransmissions, approximated by

*P*

_{during}is the probability that an error occurs at some

*t*∈(0,

*T*), approximated by

*G*

_{active}(

*s*

_{ t },

*s*

_{ r }) is given as

*ν*(

*r*) and

*P*(active|

*r*,

*ϕ*), which is the probability that the RX

_{ i }is not in error upon its arrival, are given as

*P*

_{rt 1}=

*P*

_{rx|active}+ (1−

*P*

_{rx|active})

*P*

_{during}is the probability that the packet is received in error at its first transmission attempt.

*P*

_{rx|active}is the probability that the receiver is in outage at the start of the packet, although it decides to initiate its transmission, approximated by

with *A*_{rx|active}(*s*_{
t
},*s*_{
r
},*s*)given by Equation (7).

For more details on the derivation of Equations (10) and (14), please refer to [12]. Optimization of the sensing thresholds is carried out in Section 5, and comparison between CSMA_{TXRX}with the other CSMA versions is performed in Section 6.

## Performance in the presence of fading

In this section, we add fading effects to the path loss attenuation, as described in Section 2. Due to the independence of the channel fading coefficients on distance, we can no longer operate with the closest interferer for the derivation of the outage probability. Instead, we must consider the *dominant* interferer, which is a single interferer whose received interference power (affected by the distance and the random channel coefficients) *alone* is strong enough to result in outage for the packet under observation.

Similar to Section 3, we first explain the method of analysis as well as the key steps of the mathematical derivations, before the result of the analysis is presented in Subsection 4.2.

### Method of analysis

*P*

_{ b },

*P*

_{rt 1}, and

*P*

_{ rt }are replaced by their average values with respect to the fading coefficients, namely ${\overline{P}}_{b}$, ${\overline{P}}_{\mathit{rt}1}$, and ${\overline{P}}_{\mathit{rt}}$. Based on the same reasoning as in the non-fading case in Section 3, the density of packets attempting to access the channel is

_{0}-RX

_{0}, backs off is given by the probability that the SINR at the start of the packet is below

*β*

_{ t }at the transmitter, or below

*β*

_{ r }at the receiver, or both. Hence,

*β*∈(

*β*

_{ t },

*β*

_{ r }), define the distance to the dominant interferer (given

*h*

_{00}and

*h*

_{0i}) as

*s*

^{ f }(

*h*

_{00},

*h*

_{0i}) away and with arrival time during (−

*T*,0)is approximated by

*Π*

*λ*

_{csma}

*s*

^{ f }(

*h*

_{00},

*h*

_{0i})

^{2}. Due to the Poisson distribution of packets, the backoff probability then becomes

*η*≈0) with Poisson distributed packets, we have

*λ*

_{active}only the first term of Equation (8) is multiplied by $(1-{\overline{P}}_{b})$, because once a packet transmission is initiated (the second term in Equation (8)), no further decision-making is performed for each retransmission attempt. Furthermore, knowing that for Rayleigh fading channels, $\mathbb{E}\left[{h}_{00}^{-2/\alpha}\right]$ and $\mathbb{E}\left[{h}_{0i}^{2/\alpha}\right]$ are Gamma functions, we may apply the result [20]

which is inserted back into Equation (20).

_{0}beg.∩TX

_{0}beg.)is derived to be

Inserting this expression back into Equation (17), yields the backoff probability of CSMA_{TXRX}.

Once a transmission has been initiated, there is a probability that the packet is in error at the start of its first transmission attempt. This is denoted by *P*_{rx|active}(*h*_{00},*h*_{0i}). Using geometry again, this probability is given as the probability that an active interferer already exist on the plane inside *B*(RX_{0},*s*^{
f
}), that was not detected during the backoff decision-making stage. That is, the interferer TX_{
i
} must be located inside ${A}_{\mathit{rx}|\text{active}}({s}_{t}^{f},{s}_{r}^{f},{s}^{f})$, which is shown as the darkly shaded area in Figure 2 and is approximated by Equation (7).

*μ*

^{ f }is the expected density of dominant interferers, TX

_{ i }, for the packet at RX

_{0}. This is given as

### Outage probability in fading networks

Based on the derivations given above, we arrive at the following theorem.

#### Theorem 2

_{TXRX}in the presence of Rayleigh fading with varying sensing thresholds is given by

where:

*P*

_{during}(

*h*

_{00}) is the probability that an error occurs at some

*t*∈(0,

*T*), approximated by

*n*

*P*

_{during}(

*h*

_{00})]is the probability that the packet is received in error at its first transmission attempt, with

*P*

_{rx|active}(

*h*

_{00})approximated by

where ${s}_{t}^{f}({h}_{00},{h}_{0i})$ is given by Equation (18).

Optimization of the sensing thresholds is carried out in the next section, and comparison between CSMA_{TXRX}with the other CSMA versions is performed in Section 6.

## Optimizing the sensing thresholds

In order to find the optimal sensing thresholds of CSMA_{TXRX}, ${\beta}_{t}^{\text{opt}}$, and ${\beta}_{r}^{\text{opt}}$, such that the outage probability is minimized, we must in principle differentiate the outage probability expressions given in Theorems 1 and 2 with respect to *s*_{
t
}and *s*_{
r
}, and set each equal to 0. However, because of the complexity of our equations, this turns out to be a nontrivial task. Hence, we attack our optimization problem from another angle; we evaluate the total outage probability of CSMA_{TXRX}based on the change in the exposed and hidden node problems.

*hidden node problem*of CSMA occurs during an active packet transmission when a newly arriving transmitter, TX

_{ i }, is located too close to the receiver under observation, RX

_{0}, while TX

_{ i }and RX

_{ i }are simultaneously too far away from TX

_{0}to detect its transmission. That is, TX

_{ i }initiates its transmission and causes outage for RX

_{0}because TX

_{0}is

*hidden*to it and its receiver. The probability of such an event occurring is

*exposed node problem*occurs when a packet transmission is backed off even though its transmission would not have contributed to any outages. This is the case when the interferer TX

_{ i }or its receiver RX

_{ i }are located too close to the active transmission of TX

_{0}, but far enough from RX

_{0}to not cause any errors for it. That is,

The exposed node problem is a direct consequence of the transmitter making the backoff decision.

### Optimization in the absence of fading

*P*

_{out}(CSMA

_{TXRX})is a convex function of

*s*

_{ t }and

*s*

_{ r }for low densities. As a simplified proof for this claim, we note that the total outage probability of CSMA

_{TXRX}may for high densities be approximated by the summation of error probability expressions, which are of the form ${P}_{\text{error}}=1-{e}^{-{\lambda}_{\text{csma}}\phantom{\rule{0.3em}{0ex}}\Pi \phantom{\rule{0.3em}{0ex}}{s}^{2}}$. Differentiating this expression twice with respect to

*s*={

*s*

_{ t },

*s*

_{ r }}yields

For 2*Π* *λ*_{csma}*s*^{2}<1, we have that $\frac{{d}^{2}{P}_{\text{error}}}{d{s}^{2}}>0$, indicating convexity. Hence, we may conclude that for low enough values of the density (where our approximate expressions are more accurate), *P*_{error} (and thereby *P*_{out}(CSMA_{TXRX})) is a convex function of *s*.

*M*and

*N*with respect to the sensing radius

*s*

_{ t }(equivalently

*s*

_{ r }) is

where *P*_{
rt
}=*P*_{
rx
} + (1−*P*_{
rx
}) *P*_{during}. The optimal value for *s*_{
t
} is then the solution to $\frac{d{P}_{\text{out}}\left({\text{CSMA}}_{\text{TXRX}}\right)}{d{s}_{t}}=0$, which must be solved numerically.

*s*

_{ t }and

*s*

_{ r }, we consider the particular case of

*M*=1and

*N*=0. This yields

First set *s*_{
t
}to be a fixed value (e.g., *s*_{
t
}=0as in [12]). We know from [12] that the optimal *s*_{
r
}that minimizes the outage probability of CSMA_{RX}is ${s}_{r}^{\text{opt}}=s$, which corresponds to ${\beta}_{r}^{\text{opt}}=\beta $. The intuition behind this is as follows:

●For *s*_{
r
}<*s*⇒*B*(RX_{0},*s*_{
r
})<*B*(RX_{0},*s*)⇒lower probability of backoff ⇒higher probability that outage occurs during an active transmission. Note that the reduction in the backoff probability does in fact not result in a reduction in the probability that outage occurs during a transmission, because even though *B*(RX_{0},*s*_{
r
})<*B*(RX_{0},*s*), any active transmissions inside *B*(RX_{0},*s*)upon the arrival of TX_{0}-RX_{0} will contribute to the outage. Hence, if *s*_{
r
}<*s*, the total outage probability will be higher than its minimum value.

●For *s*_{
r
}>*s*⇒*B*(RX_{0},*s*_{
r
})>*B*(RX_{0},*s*)⇒higher probability of backoff ⇒lower probability that outage occurs during an active transmission. However, this decrease is less than the increase in the backoff probability, because the change in the area of *B*(RX_{0},*s*_{
r
})is larger than the decrease in the circumference of the circle around TX_{
i
}where RX_{
i
}can be located. Hence, the total outage probability increases as *s*_{
r
}increases beyond *s*.

*P*

_{out}(CSMA

_{TXRX}) is a function of

*s*

_{ t }only. In order to find the optimal sensing radius of the transmitter, ${s}_{t}^{\text{opt}}$, we use the outage probability of CSMA

_{RX}

^{ a }as a reference. The probability that TX

_{0}is hidden to both TX

_{ i }and RX

_{ i }is lower than the probability that it is hidden only to RX

_{ i }, which is the case in CSMA

_{RX}. Hence, the transmitter sensing of CSMA

_{TXRX}reduces the hidden node problem, as the area around RX

_{0}where the activation of an interferer will and cause outage, is reduced. For a non-fading network, this yields the following approximation:

*A*

_{ ol }(

*s*

_{ t }

*s*

_{ r }) is the area of overlap between

*B*(TX

_{0}

*s*

_{ t })and

*B*(RX

_{0}

*s*

_{ r }), as illustrated in Figure 2 and given by Equation (6). The exposed node problem occurs when TX

_{ i }-RX

_{ i }are located inside

*B*(TX

_{0}

*s*

_{ t }), but outside of

*B*(RX

_{0}

*s*). Compared to CSMA

_{RX}, we have

where ${\stackrel{~}{P}}_{b}^{\text{RX}}$ is the backoff probability of CSMA_{RX}as derived in [12], and *A*_{
ol
}(*s*_{
t
}*s*_{
r
})is given by Equation (6).

*s*and

*s*

_{ r }only (and not of

*s*

_{ t }), which yields:

*s*

_{ r }=

*s*≈

*R*. For

*s*≤

*R*(i.e., for small values of

*β*), we have that ${s}_{t}^{\text{opt}}=0$, i.e., it is beneficial to have no transmitter sensing at all, as is the case in CSMA

_{RX}. For

*s*>

*R*, ${s}_{t}^{\text{opt}}$ is found numerically as the nonzero solution to Equation (37), which is plotted in Figure 3 for

*β*=10 dB. The reason we apply a high value for

*β*(compared to the value of 0 dB that has been applied before), is to emphasize the benefit of the transmitter sensing.

The point where the outage probability is decreasing at its highest rate, i.e., the minimum point of $\frac{d{P}_{\text{out}}\left({\text{CSMA}}_{\text{TXRX}}\right)}{d{s}_{t}}$, occurs for *s*_{
t
}=*s*−*R*^{
b
}. This corresponds to *β*_{
t
}=(*β*^{1/α}−1)^{
α
}. For this value of *β*_{
t
}, *B*(RX_{0},*s*) covers *B*(TX_{0},*s*_{
t
}) completely, meaning that the transmitter sensing of CSMA_{TXRX}introduces no additional exposed node problems, while at the same time providing some protection for its receiver, thus reducing the hidden node problem. That is, for *s*>*R*, *s*_{
t
} can be increased up to (*s*−*R*)without introducing any exposed node problems, meaning that in CSMA_{TXRX} it is always valid that ${\beta}_{t}^{\text{opt}}\ge {\left({\beta}^{1/\alpha}-1\right)}^{\alpha}$.

### Optimization in the presence of fading

In the case of fading, the optimization problem becomes more complicated, as we can no longer translate it to a distance problem. Intuitively, we would expect CSMA_{TXRX}to yield an optimal performance when *β*_{
r
}=*β*and *β*_{
t
}=0. The reason for this is as follows:

If *β*_{
r
}>*β*, the exposed node problem is increased, while the hidden node problem is not reduced (this is partly because we do not consider the aggregate interference power in our derivations). On the other hand, if *β*_{
r
}<*β*, there is no exposed node problem, but the hidden node problem is higher than when *β*_{
r
}=*β*. Hence, ${\beta}_{r}^{\text{opt}}=\beta $.

Next, we evaluate the benefit that the transmitter sensing of CSMA_{TXRX}provides. Since the channel coefficient from TX_{
i
}to TX_{0} is independent from the channel coefficient from TX_{0} to RX_{
i
}, the decision-making of the TX_{
i
}based on its own channel does not provide much benefit for the packet reception at its receiver (in terms of the hidden node problem). In fact, the transmitter’s decision to back off from transmission when its receiver wishes to activate it, is only adding to the exposed node problem. Hence, ${\beta}_{t}^{\text{opt}}=0$.

*M*=1and

*N*=0;

*M*,

*N*)=(1,0), ${\overline{P}}_{b1}\left({\beta}_{t}\right)$ may be expressed by the Lambert function ${\mathcal{W}}_{0}(\xb7)$, as given below;

*β*

_{ t }can be found numerically. This is shown in Figure 4, where $\frac{d{P}_{\text{out}}\left({\text{CSMA}}_{\text{TXRX}}\right)}{d{\beta}_{t}}$ is plotted as a function of

*β*

_{ t }for various values of

*β*

_{ r }. ${\beta}_{t}^{\text{opt}}$ is potentially the point where the derivative of

*P*

_{out}(CSMA

_{TXRX}) crosses 0. As expected, $\frac{d{P}_{\text{out}}\left({\text{CSMA}}_{\text{TXRX}}\right)}{d{\beta}_{t}}$ is positive for all

*β*

_{ t }, meaning that it is always an increasing function of

*β*

_{ t }. In other words, the outage probability of CSMA

_{TXRX}in the presence of fading is minimized for ${\beta}_{r}^{\text{opt}}=\beta $ and ${\beta}_{t}^{\text{opt}}=0$.

## Numerical results

_{TXRX}(and CSMA

_{RX}for the sake of comparison) are plotted as a function of the packet arrival density

*λ*, for a non-fading and a fading network, respectively. Firstly, our analytical expressions are validated as they follow the simulation results tightly. Note that in the presence of fading, some discrepancies can be observed between the analytical results and simulations; this is due to the additional source of randomness coming from the channel coefficients, making the “dominant interferer” approximation used in the derivations less accurate. However, these deviations occur at high densities corresponding to a high outage probability (>0.3), which is at least an order of magnitude higher than what is often applied in practical networks.

Second, we observe that as the density increases, so does the outage probability, until the network reaches a point of saturation, where *P*_{out}≈1. By increasing the number of backoffs and retransmissions, significant performance gain can be obtained. For low densities with (*M*,*N*)=(2,1), the outage probability is up to 10 times lower than when (*M*,*N*)=(1,0). Thirdly, the addition of transmitter sensing in CSMA_{TXRX}does not appear to provide any improvement compared to CSMA_{RX}. In fact, CSMA_{RX} outperforms CSMA_{TXRX} by up to 20% in non-fading networks and up to 50% when fading is present. This is due to the exposed node problem caused by the transmitter sensing in CSMA_{TXRX}. That is, when *M* is small, the protection that the transmitter sensing provides does not counterbalance the backoff probability increase it generates.

_{TXRX}is plotted as a function of the sensing thresholds

*β*

_{ t }and

*β*

_{ r }, for a fixed low density of

*λ*=0.01,

*β*=10 dB, and (

*M*,

*N*)=(1,0). The plot shows that ${\beta}_{r}^{\text{opt}}=\beta =10$ and ${\beta}_{t}^{\text{opt}}=5.7$ dB, which is also obtained by numerically solving Equation (37), thus confirming our conclusions from Subsection 5.1. Similarly, in Figure 8, the outage probability of CSMA

_{TXRX}is considered in a fading network with

*λ*=0.03,

*β*=0 dB, and (

*M*,

*N*)=(1,0). Again, our derivations from Subsection 5.2 are confirmed, i.e., ${\beta}_{r}^{\text{opt}}=\beta =0$ dB and ${\beta}_{t}^{\text{opt}}=0$.

*M*, is illustrated in Figure 9, where the receiver sensing threshold is assumed to be constant,

*β*

_{ r }=

*β*=0 dB, while

*M*and the transmitter sensing threshold

*β*

_{ t }are optimized jointly. As expected, the outage probability decreases monotonically with

*M*. For each

*M*, there is a different value for ${\beta}_{t}^{\text{opt}}$, although the range of this is very small. Hence, we conclude that the result of Equation (37) to find ${s}_{t}^{\text{opt}}$ analytically for

*M*=1, can be applied as an approximation for greater values of

*M*as well. The fact that outage probability reduces monotonically as

*M*increases is reinforced in Figure 10, which has the same parameter values as Figure 9.

*M*on the outage probability of CSMA

_{TXRX}, as compared to CSMA

_{TX}and CSMA

_{RX}. In this plot, we set

*N*=0 and a high density of

*λ*=0.1 is chosen. When only

*M*=1 channel sensing is allowed before the packet is dropped, CSMA

_{TXRX}exhibits up to 10% higher outage probability than CSMA

_{RX}and up to 20% lower outage probability than CSMA

_{TX}. As

*M*increases, the benefit of the joint channel sensing of CSMA

_{TXRX}becomes more evident; for

*M*=4, CSMA

_{TXRX}outperforms CSMA

_{RX}by 40% and CSMA

_{TX}by a factor 2. Hence, we conclude that by applying joint transmitter-receiver sensing in a network with

*M*>1, the outage performance of CSMA can be improved beyond that of CSMA

_{RX}. Moreover, the optimal sensing thresholds are ${\beta}_{r}^{\text{opt}}=\beta $ and ${\beta}_{t}^{\text{opt}}$ is found approximately as the solution to Equation (37).

*λ*=0.03 and

*M*=2 backoffs, the outage probability of CSMA

_{RX}reduces below that of CSMA

_{TXRX}as the number of retransmissions,

*N*, increases, e.g., when (

*M*,

*N*)=(2,0), CSMA

_{TXRX}outperforms CSMA

_{RX}by 10%, while for (

*M*,

*N*)=(2,3), we have 20% higher outage probability for CSMA

_{TXRX}than for CSMA

_{RX}. While significant gain is obtained by increasing

*N*from 0 to 2, little benefit is observed for

*N*>2. Note that we have included results on the impact of

*M*and

*N*only in non-fading networks, as similar conclusions are drawn in fading networks.

## Conclusions

In this article, we improve the performance of CSMA in wireless ad hoc networks by introducing joint transmitter-receiver sensing and simultaneously optimizing the sensing thresholds of both the transmitter and the receiver. This protocol is denoted as CSMA_{TXRX}. Within a Poisson distributed ad hoc network, approximate analytical expressions are derived for the outage probability of CSMA_{TXRX}with respect to the transmission density and the sensing thresholds. The optimal sensing thresholds for both the transmitter and receiver are obtained both in non-fading and fading networks, and an understanding is provided for how these optimal thresholds balance between the hidden and exposed node problems of CSMA. It is shown that using optimal sensing thresholds can provide significant performance gain for all transmission densities. Moreover, when multiple backoffs are allowed, CSMA_{TXRX} outperforms CSMA_{RX}[12], which was previously shown to provide the best performance in unslotted systems, e.g., when *M*=4, this improvement is 40%.

For future study, we wish to improve the performance of CSMA by investigating more efficient use and exchange of channel information between each transmitter and its receiver. Other possible extensions are to apply adaptive rate and power control to further improve the performance of CSMA in wireless ad hoc networks.

## Endnotes

^{a}This protocol was evaluated in [12]. We assume low density of transmissions, where the outage probability expressions are good approximations.^{b}This assumes that *s*>*R*, which is the case in most networks, as it ensures that the receiver can detect its own transmitter.

## Declarations

## Authors’ Affiliations

## References

- Kleinrock L, Tobagi FA: Packet switching in radio channels: Part I - Carrier sense multiple-access modes and their throughput-delay characteristics.
*IEEE Trans. Commun*1975, 23: 1400-1416. 10.1109/TCOM.1975.1092768View ArticleGoogle Scholar - Ma H, Vijaykumar R, Roy S, Zhu J: Optimizing 802.11 wireless mesh networks performance using physical carrier sensing.
*IEEE/ACM Trans. Network*2009, 17(5):1550-1563.View ArticleGoogle Scholar - Zhou Y, Nettles SM: Balancing the hidden and exposed node problems with power control in csma/ca-based wireless networks. In
*Proc. IEEE Wireless Communications and Networking Conference (WCNC),*. (New Orleans, LA; 2005):683-688.Google Scholar - Ferrari G, Tonguz O: MAC protocols and transport capacity in ad hoc wireless networks: Aloha versus PR-CSMA. In
*Proc. IEEE Military Communications Conference,*. (Boston, MA; 2003):1113-1318.Google Scholar - Gupta P, Kumar PR: The capacity of wireless networks.
*IEEE Trans. Inf. Theory*2000, 46(2):388-404. 10.1109/18.825799MathSciNetView ArticleGoogle Scholar - Xie LL, Kumar PR: On the path-loss attenuation regime for positive cost and linear scaling of transport capacity in wireless networks.
*IEEE Trans. Inf. Theory*2006, 52: 2313-2328.MathSciNetView ArticleGoogle Scholar - Fuemmeler JA, Vaidya NH, Veeravalli VV: Selecting transmit powers and carrier sense thresholds for CSMA protocols.
*University of Illinois at Urbana-Champaign Technical Report*2004.Google Scholar - Fonseca BJB: A distributed procedure for carrier sensing threshold adaptation in CSMA-based mobile ad hoc networks. In
*Proc. Vehicular Technology Conference (VTC),*. (Dublin, Ireland; 2007):66-70.Google Scholar - Zhu J, Guo X, Yang L, Conner W: Leveraging spatial reuse in 802.11 mesh networks with enhanced physical carrier sensing. In
*Proc. IEEE International Conference on Communications (ICC),*. (Budapest, Hungary; 2004):4004-4011.Google Scholar - Hasan A, Andrews JG: The guard zone in wireless ad hoc networks.
*IEEE Trans. Wirel. Commun*2005, 6(3):897-906.View ArticleGoogle Scholar - Weber S, Yang X, Andrews J, de-Veciana G: Transmission capacity of wireless ad hoc networks with outage constraints.
*IEEE Trans. Inf. Theory*2005, 51(12):4091-4102. 10.1109/TIT.2005.858939MathSciNetView ArticleGoogle Scholar - Kaynia M, Jindal N, Øien GE: Performance analysis and improvement of MAC protocols in wireless ad hoc networks.
*IEEE Trans. Wirel. Commun*2011, 10: 240-252.View ArticleGoogle Scholar - Park KJ, Kim L, Hou JC: Coordinating the interplay between physical carrier sense and power control in CSMA/CA wireless networks.
*Department of Computer Science UIUCDCS-R-2007-2884, University of Illinois at Urbana-Champaign*2007.Google Scholar - Ma H, Roy S: Simple and effective carrier sensing adaptation for multi rate ad-hoc MESH networks. In
*IEEE International Conference on Mobile Ad Hoc and Sensor Systems, MASS,*. (Vancouver, Canada; 2006):795-800.Google Scholar - Rossetto F, Zorzi M: Gaussian approximations for carrier sense modeling in wireless ad hoc networks. In
*Proc. IEEE Global Communications Conference (GLOBECOM),*. (Washington, DC; 2007):864-869.Google Scholar - Jeong K, Lim H: Experimental approach to adaptive carrier sensing in IEEE 802.15.4 wireless networks. In
*Proc. AMC CoNEXT,*. (Madrid, Spain; 2008). article no. 47Google Scholar - Muhlethaler P, Najid A: Throughput optimization in multihop CSMA mobile ad hoc networks. In
*Proc. IEEE European Wireless Conference,*. (Barcelona, Spain; 2004).Google Scholar - Zhu J, Metzler B, Guo X, Liu Y: Adaptive CSMA for scalable network capacity in high-density WLAN: a hardware prototyping approach. In
*Proc. IEEE INFOCOM,*. (Barcelona, Spain; 2006:1-10.Google Scholar - Kaynia M, Øien GE, Jindal N: Joint transmitter and receiver carrier sensing capability of CSMA in MANETs. In
*Proc. IEEE International Conference on Wireless Communications and Signal Processing (IC-WCSP),*. (Nanjing, China, (Best Paper Award); 2009):1-5.Google Scholar - Weber S, Andrews J, Jindal N: The effect of fading, channel inversion, and threshold scheduling on ad hoc networks.
*IEEE Trans. Inf. Theory*2007, 53(11):4127-4149.MathSciNetView ArticleGoogle Scholar

## Copyright

This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.