Abstract
The medium access control protocol plays an important role to decrease access collisions in dense wireless sensor networks where multiple sensors in the same vicinity attempt to transmit a packet simultaneously. In this article, we propose a distributed medium access control protocol that uses successive multiple collision detection phases for dense wireless sensor network environments by enhancing the typical carrier sense multiple access with collision resolution protocol that uses only a single collision detection phase. In the proposed medium access control protocol, colliding stations are filtered in each collision detection phase and only surviving stations compete again in the next collision detection phase. Therefore, the collision detection probability becomes higher as the collision detection phases proceed. Utilizing the successive multiple collision detection phases, we analyze the throughput numerically and find optimal operating parameters—such as the number of collision detection phases and the number of collision detection slots per phase—that maximize the throughput. Analysis and simulation results show that the proposed medium access control protocol using the successive collision detection technique significantly outperforms the conventional carrier sense multiple access with collision resolution protocol.
Keywords
Introduction
With the rapid growth of various Internet of Things (IoT) applications, massive IoT devices will form a dense wireless sensor network (WSN) in future. One of the most performance-effective factors in a dense WSN is the medium access control (MAC) protocol, which efficiently and fairly distributes the limited radio resources to a number of users by controlling the random access from them. The MAC protocol should be designed to minimize access collisions, which occur when two or more stations attempt to transmit a packet at the same time. The access collision results in the retransmission or loss of packets and deteriorates network performances in terms of throughput, delay, and energy efficiency. Many carrier sense multiple access (CSMA)-based MAC protocols have been proposed in WSNs to avoid collisions.1,2 These protocols can efficiently reduce collisions, but inherently cannot eliminate all collisions because of hidden terminal problems as well as collisions when multiple nodes sense the medium free at the same time. Previous studies3–5 demonstrate that CSMA-based MAC protocols dramatically deteriorate its performance when the number of simultaneous transmitting nodes increases. Such collisions become severe in dense WSNs for two reasons. First, many dense WSNs are event-driven and generate bursty spatially correlated traffic, where a plurality of sensors in the same vicinity have messages to send simultaneously in response to the same event. 6 Second, WSNs are typically established with few sink nodes to which packets from many sensors converge. Such convergence causes many collisions around sink nodes, which is known as funneling effect. 7 Therefore, it becomes more important to reduce the access collision in dense WSNs.
A representative MAC protocol widely used in WSNs is the carrier sensing multiple access with collision avoidance (CSMA/CA) protocol because of its operational simplicity. However, it is well known that the efficiency of CSMA/CA is reduced by the successive collisions of retransmitted packet as the number of contending stations increases.3–5 To improve the efficiency of CSMA-based MAC protocols, recently the CSMA with collision detection (CSMA/CD)-like behavior has been emulated in wireless environments.8–11 This attempt is due to the fact that the CSMA/CD enables the transmitter to detect a collision while transmitting data and to stop the transmission immediately if a collision is detected. 12 However, the original CSMA/CD protocol is designed for wired networks and thus infeasible in a wireless channel, because the wireless transmitter cannot simultaneously transmit and listen on the same channel as the receiver of the transmitting station is overwhelmed by its own transmission power (a.k.a. the deafness problem).
As the first attempt to overcome the deafness problem and allow the CSMA/CD operation in a wireless network, CSMA with time-split collision detection (CSMA-TCD) has been proposed under assuming a long propagation delay. 8 In CSMA-TCD, the transmitter pauses after transmitting a preamble with a fixed length and briefly executes carrier sensing. Because of the discriminating radio propagation delay, simultaneously transmitting stations can detect the other preamble signals and thus pause their data transmissions. As another reasonable approach to collision detection (CD) in wireless channels, a wireless CSMA/CD (WCSMA/CD) protocol has been proposed.9,10 In WCSMA/CD, all stations define a CD period equally and each transmitting station randomly determines a short CD slot within the CD period after starting the data transmission. The transmitting station then senses the channel during the selected CD slot to check whether a collision has occurred. If colliding stations are present and they all do not choose the same CD slot, each station senses a higher energy level than the threshold during the CD slot (i.e. a collision is detected). In this case, the colliding stations abort their transmission within the CD period and perform a backoff procedure; thus, the wasted time is reduced. By enhancing the WCSMA/CD, the CSMA with collision resolution (CSMA/CR) protocol has been proposed recently. 11 Upon detecting a collision during the CD period in CSMA/CR, the transmitter immediately aborts its own transmission and broadcasts a jam signal to inform the other stations that they must stop their transmissions. After the station has transmitted the jam signal during the CD period, it is allowed to retransmit the data promptly without backoff, whereas the other stations automatically defer access. This eventually resolves a next collision that might occur, thereby leading to more performance improvement.
Although the previous CSMA/CD-based MAC protocols improve the MAC efficiency considerably, the access collision still exists and the throughput degrades due to the collision, backoff time, and additional protocol overhead. These problems become severe particularly when the number of accessing stations increases significantly in a highly dense WSN environment. In this article, we propose an advanced MAC protocol that employs successive multiple CD phases by extending the typical CSMA/CR protocol, in order to further decrease the probability of access collision when a large number of stations attempt to access. Multiple CD phases can filter out the colliding station successively and thus the number of contending stations decreases in each CD phase. We explain the operation of the proposed MAC protocol in detail and analyze its throughput numerically with respect to the number of CD phases and the number of stations. Thereafter, we investigate optimal operating parameters, such as the number of CD phases and the number of CD slots per phase, to maximize the throughput. Finally, we discuss implementation issues and present feasible solutions from the practical point of view.
The rest of this article is organized as follows. Section “Original CSMA/CR protocol” reviews the operation of the original CSMA/CR protocol. Section “Proposed MAC protocol” explains the operation of the proposed MAC protocol in detail. Section “Performance analysis” analyzes the performance of the proposed scheme numerically and section “Results and discussion” shows the throughput performance by considering various operating parameters. Section “Implementation issue” indicates some implementation issues for the practical use of the proposed MAC protocol. Finally, section “Conclusion” presents the conclusions drawn in this article.
Original CSMA/CR protocol
The CSMA/CR protocol adopts the CD process of WCSMA/CD but adds distinct operations in which a station can transmit or detect a jam signal when a collision is detected. More specifically, the transmitting station in CSMA/CR can detect not only the energy, but also the jam signal during the randomly selected CD slot. This operation divides CSMA/CR into possible four event cases, as shown in Figure 1.

Possible event cases in the original CSMA/CR operation. (a) First success case: only one station accesses the channel, (b) second success case: collision is resolved because only one station selects the earliest CD slot, (c) first failure case: all stations select the same CD slot, and (d) second failure case: two or more (not all) stations select the earliest CD slot.
Figure 1(a) illustrates the first success case in which no simultaneously accessing stations are present (i.e. no collision occurs); therefore, neither energy nor jam is not detected during the CD slot. The station continues its data transmission right after the brief sensing during the allocated CD slot and successfully completes transmission.
Figure 1(b) illustrates the second success case in which the station that selects the earliest CD slot among the colliding stations (i.e. Station 1) detects the energy but not a jam signal. Being the first station to detect a collision, Station 1 subsequently transmits a jam signal, instead of a data signal, for the remainder of the CD period. This allows the stations that select a later CD slot (i.e. Stations 2 and 3) to detect both the energy and jam signal, causing their ongoing transmissions to stop immediately. Once the CD period ends, only the station that transmitted the jam signal is allowed to retransmit its data promptly without backoff while the other stations automatically defer their access. This collision resolution (CR) technique ensures successful data retransmission of one station if a collision is detected during the CD period.
Figure 1(c) shows the first failure case in which all colliding stations select the same CD slot. Thus, they are unable to detect the energy and therefore continue transmission, leading to transmission failure. When transmission failure occurs, the transmitter identifies it by the lack of receipt of the acknowledgement (ACK) packet and then retries to access after backoff.
Figure 1(d) shows another transmission failure case where two or more stations (but not all) select the same earliest CD slot. Hence, the stations detect only the energy and therefore transmit the jam signal equally during the remaining CD period and also transmit the new data simultaneously after the CD period. This action also leads to transmission failure. In this case, the station that selects the later CD slot (i.e. Station 3) detects the overlapped jam signal. Because an overlapped signal with the same pattern is generally detectable,
13
Station 3 can recognize the jam signal and stop its transmission. Here, we denote the lengths of the CD slot, CD period, and transmitted data by
Proposed MAC protocol
In the CSMA/CR protocol, collision can be resolved by one random slot selection in one CD period. However, there is still a chance of collision in CSMA/CR, as shown in Figure 1(c) and (d). To decrease these collisions, we try to repeat the CD period to provide more opportunities for random slot selection, thus utilizing the successive multiple CD phases.
To facilitate to understand the operation of the proposed protocol using multiple CD phases, we first try to illustrate the possible event cases when only two CD phases are used and three stations access simultaneously, as shown in Figure 2. There are three successful transmission cases and three failure cases. Figure 2(a) shows the case when only one station accesses the channel and no collision occurs. Figure 2(b) shows the case when only one station chooses the earliest CD slot at the first CD phase, and CD is successful at the first CD phase. Figure 2(c) shows the case when CD fails as two stations of the total three stations choose the earliest CD slot at the first CD phase. However, at the second CD phase, these two colliding stations continue the CR process and only one station among them chooses the earliest CD slot and eventually collision is resolved. As shown, in each CD phase, only the stations that select the earliest CD slot are filtered and they compete again in the next CD phase. In this way, as the CD phase proceeds, the number of contending stations decreases and the CD probability (i.e. the probability that only one station selects the earliest CD slot in each CD phase) increases. Note that each case has a different channel usage time. In other words, each case is classified according to the channel usage time.

Possible event cases in the proposed scheme using two CD phases when three stations access simultaneously. (a) First success case: only one station accesses the channel, (b) second success case: collision is resolved at the first CD phase, (c) third success case: collision is resolved at the second CD phase, (d) first failure case: all stations choose the same CD slot in all CD phases, (e) second failure case: some stations choose the earliest CD slot at the first CD phase and all the surviving stations choose the same CD slot at the second CD phase, and (f) third failure case: some stations choose the earliest CD slot at the second CD phase after any failure at the first CD phase.
As shown in Figure 1(c) and (d), transmission fails when all stations select the same CD slot or some stations select the earliest CD slot. In each case, the wasted channel time is different. By an appropriate arrangement of two such cases in two CD phases, we get three cases of transmission failure based on wasted channel times. Figure 2(d) shows the case when all stations choose the same CD slot in every CD phase. Figure 2(e) shows the case when some stations choose the earliest CD slot at the first CD phase and all the surviving stations choose the same CD slot at the second CD phase. Figure 2(f) shows the case when some stations choose the earliest CD slot at the second CD phase after any failure at the first CD phase. Note that in the latter case more channel time is wasted.
Next, we consider the event cases when three CD phases are employed. As illustrated in Figure 3, there are four successful transmission cases and four failure cases. Although Figure 3 might be a simple extension of Figure 2, we add it here to clarify the operation of the proposed scheme and to facilitate the numerical analysis for an arbitrary number of CD phases, which will be presented in section “Performance analysis.”

Possible event cases in the proposed scheme using three CD phases when four stations access simultaneously: (a) first success case, (b) second success case, (c) third success case, (d) fourth success case, (e) first failure case, (f) second failure case, (g) third failure case, and (h) fourth failure case.
It is worth noting that the proposed MAC protocol using successive CD phases has two strong points that contribute to performance improvement. The first one is the only stations that choose the earliest CD slot are filtered in each CD phase and have a chance to retry at the next CD phase. This makes the number of contending stations decreases as the CD phase proceeds, eventually increasing the probability of successful transmission. The second point is that if the collision is resolved at a certain CD phase (i.e. only one station chooses the earliest CD slot), then all the data transmitted during the following CD phases is valid (not corrupted), and just one CD slot in each CD phase is added as the overhead. This advantage hardly causes a transmission overhead although the CD phases remain after a collision is successfully resolved.
The flowchart of the proposed MAC protocol using an arbitrary number of CD phases (h) is described in Figure 4. First, a station tries to access if it has data in buffer and the channel is idle. In each CD phase, it selects a CD slot number with a random integer between 1 and the number of CD slots per CD phase (m) and starts to transmit data. Thereafter, the station pauses its transmission at the selected CD slot and senses the channel again. The following operation depends on the sensing results: (1) if neither energy nor jam is detected, the station continues data transmission; (2) if the energy is detected but the jam is not, the station transmits a jam signal until the current CD period ends and retransmits data from the beginning; and (3) if both the energy and jam are detected, the station stops data transmission immediately and performs a backoff procedure. This CD process is repeated as many times as the predetermined number of CD phases (h). Then, the station waits the ACK packet from its receiver. If the ACK is received, the transmission is successful. Otherwise, the station retries to access after the backoff.

Flowchart of the proposed MAC protocol.
Performance analysis
Assumptions and notations
First, we enumerate some assumptions and notations needed for the numerical analysis of the proposed MAC protocol:
We consider a fully connected network topology.9–11 This means that the stations are densely packed, and each station can hear the transmission of any other station in the network so that no hidden node exists. Some commercial IoT applications are deployed in a limited geographical area, such as home, classroom, or building, with several sink nodes. In the vicinity of the sink node, we realistically assume that all stations lie at a single-hop distance of one another and form a fully connected network.
We assume ideal channel conditions, and thus, no channel and sensing errors are present. Therefore, transmission failure is caused only by access collision.14–16
We assume a saturation condition, that is, each station always has data packets in the transmission buffer and always tries to access the channel.16–18
We suppose a slotted p-persistent CSMA for access; hence, each station accesses the channel in the idle slot with the probability
We assume that the propagation delay is much smaller than the slot time, and thus it is neglected.
We assume that all stations transmit data of the same size and denote the data transmission time by
We denote the length of the CD slot by
We denote the number of available CD slots per CD phase by m. For analysis simplicity, we assume that the number of CD slots is fixed in each CD phase. Moreover, we denote the length of one CD period by
We denote the number of CD phases by h.
We denote the number of stations by n.
Probability analysis
First, we calculate the probabilities of all event cases in Figures 1–3. The probability
The probability
When i stations access simultaneously, the probability that j stations select the earliest CD slot in m slots is given by
1. If
2. If
Therefore
When the number of CD phases, h, is 1, 2, or 3, the probability of the kth success and failure cases in Figures 1–3 is expressed as follows
1. When
2. When
3. When
From the developing pattern of equations (6)–(23), we can generalize the probabilities of the kth success and failure cases for any
Throughput analysis
Now, we derive the numerical expression of the throughput of the proposed MAC protocol. In the CSMA protocol, the system state consists of a sequence of regeneration cycles composed of consecutive busy and idle periods.
16
We define the idle period as the time during which all the stations do not transmit and the busy period as the time during which a transmission (successful or not) takes place. If n stations are contending, the expected channel idle time
As indicated in Figures 1–3, when
1. When
2. When
3. When
By extending the pattern of equations (28)–(36), for any
The normalized throughput S is defined as the fraction of time the channel is used to successfully transmit the data packets. Because we assume the saturation condition in this work, the considered throughput means the saturation throughput, which is a fundamental performance figure defined as the limit reached by the system throughput as the offered load increases. 16 As the instants immediately after the end of a transmission are renewal points, analyzing a single renewal interval between two consecutive transmissions is sufficient; thus, the throughput S is defined as 17
Therefore, the throughput of the proposed MAC protocol using h CD phases is expressed as follows
Results and discussions
We compare the proposed MAC protocol using multiple CD phases with the original CSMA/CR protocol using a single CD phase (i.e.
Figure 5 shows the probability of successful transmission versus some

Transmission success probability versus
Figure 6 shows the normalized throughput versus the number of stations for some

Throughput versus number of stations subject to
We now investigate the throughput when one of the parameters h and m is fixed while the other is variable. Figure 7 shows the throughput versus the number of stations (n) when h is fixed as 2 and m is variable. For smaller values of n, it is better to decrease m because of the overhead of the longer CD period. On the contrary, for larger values of n, it is better to increase m in order to decrease access collisions. Therefore, there exists an appropriate m that maximizes the throughput according to n when h is fixed. On the other hand, Figure 8 shows the throughput versus the number of stations when h is variable and m is fixed as 10. As h increases, the throughput improves because multiple CD phases increase the probability of successful transmission. However, an excessively large h decreases the throughput, because it increases the overhead of the total CD period. Similarly, there exists a suitable h that maximizes the throughput when m is fixed.

Throughput versus number of stations when h is fixed as 2 and m is variable.

Throughput versus number of stations when h is variable and m is fixed as 10.
Figure 9 shows the throughput versus the

Throughput versus
Figure 10 shows the optimal

Optimal
Figure 11 shows the throughput versus the number of stations when the optimal

Throughput versus number of stations when the optimal
Implementation issue
We discuss some implementation issues that should be considered for the practical use of the proposed MAC protocol. Most importantly, we need to investigate how to design the jam signal and decide the length of the CD slot for the reliable detection of collision. The IEEE 802.11 or IEEE 802.15.4 standard specifies the clear channel assessment (CCA) method.22,23 This judges that the channel is busy through a energy detection or a carrier sensing or both. The carrier sensing detects a carrier signal with a specific pattern, such as the preamble used in the physical (PHY) layer or the direct sequence spread spectrum (DSSS) signal in the DSSS PHY mode. When this CCA method is utilized, the standard specifies a required CCA time (
where
It is possible for the proposed MAC protocol to detect the jam signal within
where
In addition,
Conclusion
In this article, we proposed a distributed MAC protocol using a successive CD technique in a dense WSN environment. Numerical results showed that the proposed MAC protocol using multiple CD phases significantly improves the conventional CSMA/CR protocol using a single CD phases. The results also showed that under the conditions of the same length of the total CD period, the increase in the number of CD phases (h) is more effective for achieving successful transmission than the increase in the number of CD slots per phase (m). Regarding the parameters h and m, we revealed that there exists an optimal
Footnotes
Academic Editor: Mikhail Gofman
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
This research was supported by Basic Science Research Program through the National Research Foundation of Korea (NRF) funded by the Ministry of Science, ICT & Future Planning (No. 2016R1C1B1016261) and the Human Resources Development (No. 20154030200860) of the Korea Institute of Energy Technology Evaluation and Planning (KETEP) grant funded by the Korea government Ministry of Trade, Industry and Energy.
