The Wayback Machine - https://web.archive.org/web/20241009191303/https://www.geeksforgeeks.org/mac-protocol-used-in-wireless-sensor-networks/
Open In App

MAC Protocol Used in Wireless Sensor Networks

Last Updated : 28 Mar, 2023
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Pre-requisites: Classification of MAC Protocols

In Wireless Sensor Networks (WSNs), the Medium Access Control (MAC) protocol is a set of guidelines that dictate how each node should transmit data over the shared wireless medium. The primary objective of the MAC protocol is to minimize the occurrence of idle listening, over-hearing, and collisions of data packets. By efficiently managing access to the wireless medium, the MAC protocol helps to reduce energy consumption and optimize the use of network resources.

MAC Protocol Categories 

  • Contention based MAC
  • Scheduled based MAC
  • Hybrid MAC
  • Cross-Layer MAC

Contention-based MAC 

Contention-based MAC protocol is also known as a random access MAC protocol. It allows all nodes to transmit data on the shared medium, but they have to compete with each other to access the medium. One example of contention-based MAC is CSMA/CA.

In CSMA/CA, each node senses the medium before transmitting the data. If the medium is idle, the node can transmit data immediately. However, if the channel is busy the node has to wait for a random time also known as back-off time. This back-off time reduces the chances of collisions.

Contention-based MAC Used in Wireless Sensor Networks

Sensor MAC (SMAC) is a contention-based MAC protocol that is specifically designed for wireless sensor networks. The primary objective of SMAC is to minimize idle listening, over-hearing, and collisions of data packets. To achieve this goal, SMAC adopts a duty-cycle approach, also known as a sleep-wakeup cycle. In this approach, each node alternates between a fixed length of active and sleeping periods based on its schedule.

To prevent collisions among packets, SMAC utilizes the Request to Send (RTS) and Clear to Send (CTS) packets before transmitting data packets. This helps to ensure that only one node is transmitting data at a time, reducing the likelihood of collisions and improving overall network efficiency.

Scheduled-based MAC 

Scheduled-based MAC is also known as a deterministic MAC protocol. Where each node follows a predetermined schedule and transmits the data according to its given time slot. The data collision is completely nullified in scheduled-based MAC. An example of Scheduled based MAC is TDMA(Time Division Multiple Access).

In TDMA the time is divided into fixed slots and each node is allocated a specific time frame in which they can transmit the data. During this time slot, other nodes remain silent.

Scheduled-based MAC Used in Wireless Sensor Networks 

LEACH (Low Energy Adaptive Clustering Hierarchy) is a TDMA-based protocol that utilizes a clustering mechanism in wireless sensor networks. A cluster comprises sensor nodes grouped together, with one node designated as the cluster head and the others serving as members. The cluster head is selected based on a probabilistic algorithm, which ensures that power consumption is evenly distributed among the nodes. 

Once the cluster is formed, a schedule is created for nodes to transmit data within the cluster. Additionally, to mitigate inter-cluster interference, each cluster head assigns a unique CDMA code to its cluster.

Hybrid MAC

Hybrid MAC is a combination of different protocols such as contention-based MAC and scheduled-based MAC to optimize the performance of wireless sensor networks. For example, contention-based MAC protocols, such as CSMA/CA (Carrier Sense Multiple Access with Collision Avoidance), allow nodes to access the medium based on a random backoff interval, which reduces collisions but may result in inefficient utilization of the medium. On the other hand, scheduled-based MAC protocols, such as TDMA (Time Division Multiple Access), divide the medium into time slots and assign them to different nodes, which can achieve high utilization but may not be flexible enough to adapt to changing network conditions. Hybrid MAC solved the issue by using other MAC protocols, During transmission of data if the channel is idle or the channel has low traffic then Hybrid MAC switches to contention-based MAC. If the traffic in the channel increases then it is switched to scheduled-based MAC such as TDMA.

Hybrid MAC Used in Wireless Sensor Networks

The IEEE developed 802.15.4 as a standard for low-rate WPANs, which outlines the PHY and MAC layers for low-power wireless communication in the 2.4 GHz ISM band. It was specifically created for applications that require low data rates, low power consumption, and cost-effectivenesses, such as sensor networks, home automation, and industrial automation. 

The physical layer employs DSSS modulation with a data rate of 250 kbps and works in the 2.4 GHz ISM band that has 16 channels with 5 MHz bandwidth. Additionally, it uses FHSS to prevent interference from other wireless devices. 

On the other hand, the media access control layer implements a CSMA-CA protocol to avoid device collisions. It supports different data packet sizes, ranging from 9 to 127 bytes, and also offers error detection and correction mechanisms.

Cross-Layer MAC

Cross-layer MAC allows the different layers in the protocol stack, typically including physical, MAC, and network layers, to interact and share information with one another. Firstly MAC layers gather information about the state of the channel whether the channel is busy or not. This information will be further used to control the other parameters such as data transmission rate, packet loss rate, and delay.

Once the parameters have been determined, the MAC layer sends the data packets to the PHY layer for transmission over the wireless channel. After the data transmission, the PHY layer sends feedback to the MAC layer about the success or failure of the transmission. If the transmission was unsuccessful. Based on the feedback MAC layer repeats the transmission

Overall, the working of Cross-Layer MAC involves the interaction between the MAC and PHY layers to improve the efficiency of data transmission and energy consumption in WSNs. By optimizing the transmission parameters

Cross-Layer MAC Used in Wireless Sensor Networks

The IEEE 802.11e standard expands on the existing IEEE 802.11 WLAN standard by incorporating Quality of Service (QoS) support. It utilizes a cross-layer approach, allowing the MAC layer to collaborate with higher layers such as the network and application layers, to provide specific services based on the application’s needs.

On the other hand, IEEE 802.16, or WiMAX, is intended for broadband wireless access and utilizes a cross-layer design as well. This design allows the MAC layer to communicate with the physical layer to adjust to the changing channel conditions, such as interference, noise, and fading.



Similar Reads

Differences between Wireless Adhoc Network and Wireless Sensor Network
1. Wireless Adhoc Network: A wireless ad-hoc network is a wireless network deployed without any framework or infrastructure. This incorporates wireless mesh networks, mobile ad-hoc networks, and vehicular ad-hoc networks. Its history could be traced back to the Defense Advanced Research Project Agency (DARPA) and Packet Radio Networks (PRNET) which
3 min read
Wormhole Attack in Wireless Sensor Networks
This is a type of network layer attack which is carried out using more than one malicious node. The nodes used to carry out this attack are superior to normal nodes and are able to establish better communication channels over long ranges. The idea behind this attack is to forward the data from one compromised node to another malicious node at the o
4 min read
Sinkhole Attack in Wireless Sensor Networks
Sinkhole attacks are carried out by either hacking a node in the network or introducing a fabricated node in the network.The malicious node promotes itself as the shortest path to the base station and tries to guide the traffic from other nodes towards itself. This not only lures all the nodes near the sinkhole but also each and every node closer t
4 min read
Cryptography in Wireless Sensor Networks
Wireless Sensor Networks (WSNs) have turned out to be indispensable in diverse programs, along with environmental tracking, healthcare, industrial automation, and clever cities. However, those networks are regularly deployed in hard and potentially opposed environments, making statistics safety a pinnacle precedence. Cryptography, the science of se
6 min read
Selective forwarding Attack in wireless Sensor Network
A selective forwarding attack is a type of security attack that can occur in wireless sensor networks (WSNs). In this attack, a malicious node in the network selectively forwards some data packets to the base station while dropping others, with the goal of compromising the integrity and availability of the network. The attacker can use various tech
8 min read
Data Dissemination In Wireless Sensor Network
Data Dissemination is a procedure where the server initiates and manages transfer of data as well as updates. It also helps in maintaining data consistency and cache management. It is defined as "Pushing data to mobile devices from a server or some other computer." Mobile devices can select time and cache required data. In ad-hoc network, traffic i
6 min read
Wireless Sensor Network (WSN)
Wireless Sensor Network (WSN), is an infrastructure-less wireless network that is deployed in a large number of wireless sensors in an ad-hoc manner that is used to monitor the system, physical, or environmental conditions. Sensor nodes are used in WSN with the onboard processor that manages and monitors the environment in a particular area. They a
8 min read
How To Modify MAC address in Windows 10 (Both Wired and Wireless Adapter)?
Prerequisite - Introduction of MAC Address, and Difference between MAC Address and IP Address A Media Access Control address is unique in nature which is doled out to a Network Interface Card to be utilized as a network address in communications within a network. In the Open Systems Interconnection network model, these addresses are utilized under
5 min read
MAC Address and Random MAC Address
MAC Addresses are the address which are specified by the Manufacturer.MAC address help in communicating with the devices with communicating with other devices over the network. They are 12 digit hexadecimal numbers in which first three set bits specify the manufacturer of the device and last 3 specify the specific device. Random MAC Address They ar
3 min read
Wireless Application Protocol
The Wireless Application Protocol (WAP) is a set of communication protocols and an application programming model based on the World Wide Web (WWW). Its hierarchical structure is quite similar to the TCP/IP protocol stack design. What is Wireless Application Protocol (WAP)?WAP stands for Wireless Application Protocol. It is a protocol designed for m
4 min read
S-MAC Protocol in WSNs
S-MAC (Sensor MAC) is a low-power, duty-cycled MAC (medium access control) protocol designed for wireless sensor networks. It tries to save energy by reducing the time a node spends in the active (transmitting) state and lengthening the time it spends in the low-power sleep state. S-MAC achieves this by implementing a schedule-based duty cycling me
11 min read
Responsibilities and Design issues of MAC Protocol
Ad hoc wireless networks are included portable nodes that trade packets by sharing a typical communicate radio channel. Because of the constraints of this channel, the data transmission to be shared among the nodes is constrained. In this manner, the point in these networks is to have the option to use the transmission capacity effectively, and ens
2 min read
What is WCDMA in Wireless Networks?
Prerequisite: CDMA, Difference between WCDMA and GSM Wideband Code Division Multiple Access (WCDMA) is a type of cellular technology that was developed as a third-generation (3G) mobile communications standard. It is based on the Code Division Multiple Access (CDMA) technologies that were developed in the 1980s, but it uses a wider frequency band a
3 min read
Collision Avoidance in wireless networks
We take a close look at so-called WiFi which is also known as IEEE standard 802.11 Consider the situation depicted in the figure, where each of the four nodes is able to send and receive signals that reach just the nodes to its immediate left and right. For example, B can exchange frames with A and C but it cannot reach D, while C can reach B and D
6 min read
How Wireless Mesh Networks Work?
Answer: The Wireless Mesh Networks basically function by interconnecting multiple devices or nodes to create a robust and flexible network infrastructure.Below is the working of Wireless Mesh Networks Node formationThe nodes in wireless mesh networks basically communicate wirelessly, which forms a mesh topology where each node rely data to and from
2 min read
Hot Standby Router Protocol (HSRP) and Virtual Router Redundancy Protocol (VRRP)
Hot Standby Router Protocol (HSRP) is a CISCO proprietary protocol used to provide redundancy in a network. Only one router is the active router while others will be in standby state i.e the standby router will be responsible for forwarding the traffic when the active router fails. Virtual Router Redundancy Protocol (VRRP) is an open standard proto
3 min read
Cisco Discovery Protocol (CDP) and Link Layer Discovery Protocol (LLDP) in Data Link Layer
Layer 2 or the Datalink layer provides physical addressing and access to media. It defines how data is to be formatted for transmission and how access to the network is to be controlled. It also provides error detection, ensuring data on higher layers is formatted correctly for transmission. Cisco Discovery Protocol (CDP) and Link Layer Discovery P
2 min read
Difference between Stop and Wait protocol and Sliding Window protocol
Both the Stop and Wait protocol and the Sliding Window protocol are the techniques to the solution of flow control handling. The main difference between the Stop-and-wait protocol and the Sliding window protocol is that in the Stop-and-Wait Protocol, the sender sends one frame and waits for acknowledgment from the receiver whereas in the sliding wi
5 min read
Difference between Border Gateway Protocol (BGP) and Routing Information Protocol (RIP)
When dealing with network routing, it's crucial to understand the various protocols that help direct traffic across complex networks. Two significant protocols in this space are the Border Gateway Protocol (BGP) and the Routing Information Protocol (RIP). Each serves different purposes and operates under different principles. This article explores
5 min read
Difference between File Transfer Protocol (FTP) and Secure File Transfer Protocol (SFTP)
Data transfer is the most common task in network and system communications, and they involve transfer of files using two means i.e the File Transfer Protocol (FTP) and the Secure File Transfer Protocol (SFTP). FTP is a commonly applied protocol that enables files to be transferred through a network from one computer to another, but FTP is unsecure
5 min read
Difference between Spanning Tree Protocol (STP) and Rapid Spanning Tree Protocol (RSTP)
Spanning Tree Protocol (STP) and Rapid Spanning Tree Protocol (RSTP), are designed to avoid network loops in Ethernet. It provide loop-free logical topology. They were both designed to provide network reliability and particularly avoid broadcast radiation, but the major differences are on the rate, functionality and versatility. In this article we
5 min read
Difference between Serial Line Internet Protocol (SLIP) and Point-to-Point Protocol (PPP)
SLIP and PPP, which are the widely used serial connection techniques, help to connect the distant devices of the network. The fullform of SLIP is Session Layer Internetworking Protocol. SLIP being a primitive protocol put into use during the early connections to the Internet, when there was not much overhead. PPP is slightly more complex as the pro
6 min read
Which Protocol Is Used to Automatically Assign IP Addresses to Hosts?
Answer : The Dynamic Host Configuration Protocol (DHCP) is used to automatically assign IP addresses to hosts.Purpose of DHCPDHCP is designed to reduce the administrative burden and complexity of manually configuring IP addresses for networked devices. How DHCP WorksA device connects to the network and broadcasts a DHCP discovery message.A DHCP ser
1 min read
Protocol and Standard in Computer Networks
Protocols and standards are important in computer networks. They are like the rules and guidelines that allow different devices and systems to communicate and work together smoothly. Protocols define how data is sent, received, and processed, while standards ensure that various technologies are compatible with each other. This coordination is criti
9 min read
Sensor Network Architecture
Sensor Network Architecture is used in Wireless Sensor Network (WSN). It can be used in various places like schools, hospitals, buildings, roads, etc for various applications like disaster management, security management, crisis management, etc. There are 2 types of architecture used in WSN: Layered Network Architecture, and Clustered Architecture.
2 min read
Data Gathering in Sensor Network
Pre-requisites: WSN, Sensor Network Architecture The objective of data gathering in the sensor network is to transmit the sensed data from each sensor node to a base station. In other words, data gathering is used to maximize the number of rounds before the node dies and the network becomes inoperable. Here one round indicates the base station coll
4 min read
Modes of Wireless Connectivity
The transition from wired networks to wireless networks is very much evident in the past 2-3 years. Advanced wireless networks are used to run Offices, Schools, Colleges, and many more places. Connections to these wireless networks are usually maintained by a Network Interface Card (NIC) or Network adapters. A wireless network adapter is a device t
4 min read
Spatial Filtering (Beamforming) in Wireless Communications
Beamforming is a strategy that centers a wireless signal towards a particular accepting gadget, instead of having the radio waves spread every way from a broadcast antenna, as it ordinarily would. The subsequent more straightforward connectivity is quicker and more dependable than it would be without beamforming. Today, beamforming is pivotal to th
6 min read
Types of Wireless and Mobile Device Attacks
Wireless and mobile devices have become ubiquitous in today's society, and with this increased usage comes the potential for security threats. Wireless and mobile device attacks are a growing concern for individuals, businesses, and governments. Below are some of the most common types of Wireless and Mobile Device Attacks: SMiShing: Smishing become
5 min read
Wireless Local Loop
Local loop is a circuit line from a subscriber's phone to the local central office (LCO). But the implementation of local loop of wires is risky for the operators, especially in rural and remote areas due to less number of users and increased cost of installation. Hence, the solution for it is the usage of wireless local loop (WLL) which uses wirel
3 min read
Article Tags :