• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 10 pages
Class notes

Data Link Layer: MAC Address, IP Address, CSMA, Channelization & Controlled Access Protocols – Complete CS Notes

Document preview thumbnail
Preview 2 out of 10 pages

Complete and easy-to-understand Computer Science notes covering important Data Link Layer and Medium Access Control topics. Topics Covered: • MAC Address & IP Address • CSMA (Carrier Sense Multiple Access) • Channelization • Controlled Access Protocols • Important concepts and explanations • Exam-focused study material These notes are useful for BSCS, Computer Science, IT, and networking students for exam preparation, assignments, revision, and understanding core networking concepts. Simple and organized notes designed to help students revise important topics quickly and effectively.

Content preview

MAC stands for Media Access Control. It represents the lower sublayer of the Data
Link Layer (Layer 2) in the OSI model.

While the upper sublayer (Logical Link Control) handles error checking and flow
control, the MAC sublayer is responsible for the actual "traffic rules" of the physical
medium.

CSMA
Carrier Sense Multiple Access (CSMA) is a Media Access Control (MAC) protocol
used in networking to control how multiple devices share a single communication
channel. It is based on the "listen before talk" principle to minimize the chances of
data collisions.

How CSMA Works
In a standard CSMA environment, any station that wants to transmit data must first
"sense" the medium (the cable or the air) to check its state:

Idle State: If the channel is sensed as clear, the station can transmit its data frame.



Busy State: If the channel is sensed as occupied, the station must wait and apply a
specific persistence strategy to determine when to try again.


Persistence Strategies
These strategies define exactly how a station reacts when it finds the line busy or
idle.
1. 1-Persistent CSMA
This is the most aggressive approach. The "1" stands for a probability of 1—meaning
the station transmits immediately whenever it finds the line idle.

The Process: * The station continuously senses the channel.



If the channel is busy, it keeps sensing and waits until it becomes idle.



As soon as the channel becomes idle, the station transmits immediately.

, The Catch: If two stations are both waiting for the same busy channel to clear, they
will both transmit the instant it becomes idle, leading to a guaranteed collision.


2. 0-Persistent CSMA
This is a more "patient" approach designed to reduce collisions, though it can lead to
longer delays.

The Process:



The station senses the channel.



If the channel is idle, it transmits immediately.



If the channel is busy, the station does not keep sensing. Instead, it waits for a
random amount of time and then starts the sensing process all over again.



The Catch: This reduces collisions because two stations waiting for the line will likely
pick different random back-off times. However, the channel might sit idle for a while
even if someone has data to send, which reduces efficiency.


3. p-Persistent CSMA
This is a compromise used in slotted channels (like CSMA/CD or CSMA/CA). It uses a
probability $p$ to decide whether to transmit.

The Process:



The station senses the channel.



If the channel is busy, it continues to sense until it becomes idle.



When the channel becomes idle, the station:

Document information

Uploaded on
September 22, 2026
Number of pages
10
Written in
2026/2027
Type
Class notes
Professor(s)
Sir ali
Contains
All classes
CA$5.42

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
0
Items
43
Last sold
-



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions