Professional Documents
Culture Documents
MAC
MAC
Learning Objective
Identify the importance of MAC
Explain types of MAC :
Carrier Sense Multiple Access/Collision Detection
(CSMA/CD)
Carrier Sense Multiple Access/Collision Avoidance
(CSMA/CA)
Token Passing
Introduction to MAC
Medium Access Control (MAC) is refers to technology or technique
that controls access to media or channel.
It is a sublayer of the data link layer (DLL ; layer 2 ) in the seven-layer
OSI network reference model.
MAC is responsible for the transmission of data packets.
Application
Presentation
Session
Transport
Network
Data Link
Physical
Responsible for
error and flow
control
Responsible for
framing, addressing
and channel access
Types of MAC
CSMA/CD :
Carrier Sense
Multiple Access
with Collision
Detection
CSMA/CA :
Carrier Sense
Multiple Access
with Collision
Avoidance
Token
Passing
CARRIER SENSE
DO NOT
TRANSMIT
NO
TRANSMIT DATA
Animation csma/cd
File ni ade dalam record camtasia
so yang ni pun cuba buat sendiritapi x pandai
Algorithm of CSMA/CD
Station waiting to
transmit
yes
Is another
station
transmit?
no
Transmit the frame
Collision
detected?
no
Transmit another frame
yes
Illustration of CSMA/CD
At time t=0, a frame is sent on the idle medium by station A.
Algorithm of CSMA/CA
Station waiting to
transmit
Is the channel
idle?
no
yes
Wait for random period
Is the
channel
busy?
no
Transmit
yes
Token Passing
In a token-passing method, the station in a network are organized in a
logical ring.
Token is a special control frame on token ring networks that determines
which stations can transmit data.
A station wishing to transmit must wait until it detects a token passing by.
It then seizes or captures the token by changing one bit in the token, which
transforms it from a token to a start-of-frame sequence for a data frame
When a station begins to transmit a data frame, there is no token on the
ring, so other stations wishing to transmit must wait.
The frame on the ring will make a round trip until be absorbed by the
transmitting station.
Then the transmitting station will insert a new token on the ring , enable
the next station wishing to transmit the data, seizes the token and
transmit the data.
Algorithm of a Token
Passing
Start
Wait for the token
Send a frame
Yes
Yes
Data frame
to send ?
No
Summary
Well, we have come to the end of the learning session, I do hope this
will enhanced your knowledge in Medium Access Control especially
on:
1) identifying the importance of MAC
2) explaining 3 types of MAC : which are
Carrier Sense Multiple Access/Collision Detection (CSMA/CD)
Carrier Sense Multiple Access/Collision Avoidance (CSMA/CA)
Token Passing.