Professional Documents
Culture Documents
(LAN) part 2
MEDIA ACCESS CONTROL (MAC)
INTRODUCTION:
MEDIA ACCESS CONTROL (MAC)
TYPES OF MAC:
IMPORTANCE OF MAC
Local Area Networks differ, depending on which MAC technique
is used, which describes how devices share access to the LAN.
MAC technique is necessary, because every LAN uses
broadcasting, which means that independent devices can start
sending data at the same time.
Networking tasks becomes critical especially main
responsibility of LAN that allows users from different types of
data processing equipments to enter the network without
having problem of compatibility.
The protocol access can be done only if all equipments follow
the same set of protocol which control communications
between each other on bus network.
TYPES OF MAC
CARRIER SENSE MULTIPLE ACCESS/
COLLISION AVOIDANCE (CSMA/CA)
CARRIER SENSE MULTIPLE ACCESS/
COLLISION DETECTION (CSMA/CD)
TOKEN PASSING
CSMA/CA
CSMA/CA
CSMA/CA
cont
CSMA/CA
cont
CSMA/CA PROCESS
In this process, station will counts start of sending time for a
data to minimize the probability of two stations receives (or use)
network at one time.
Every station must hear (check) the carrier (at channel) before
executing a transmission.
If the channel is not used, thus station can send data. If the
channel is used, then station will wait until the channel is free.
CSMA/CA
cont
CSMA/CA CHARACTERISTICS
1) Instead of detecting data collisions, CSMA/CA method attempts
to avoid them altogether.
2) On a network that uses the CSMA/CA access method, when a
computer has data to transmit, its Network Interface Card (NIC)
first checks cable to determine if there is already data on wire.
3) So far, the process is identical to CSMA/CD. However, if the NIC
senses that cable is not in use, it still does not send its data
packet.
4) Instead, it send a signal of intent indicating that it is about to
transmit data out of the cable.
CSMA/CA
cont
CSMA/CA
ADVANTAGES
Cheaper than CSMA/CD
Effective in avoiding data
collisions and can be
operated in high data rate
A reliable data transmission
service because intent
signals are sent until cable is
clear.
cont
DISADVANTAGES
Inappropriate for large or
active networks.
Distance limitations since it
must listen for signals of
intent.
Slow in speed because intent
signal
must
be
sent
everytime a computer wants
to transmit data.
CSMA/CD
Stands for Carrier Sense Multiple Access with
Collision Detection.
Each device listens to media for transmissions. When
media is clear, initiates transmission and listens for
collision.
If collision occurs, device waits for random amount of
time before attempting transmission again.
Commonly used on physical networks.
CSMA/CD
CSMA/CD
cont
CSMA/CD
cont
CSMA/CD
cont
CSMA/CD PROCESS
At first level where station A acts as a Sender station:Station A will detects line before transmission to determines the
line is not used by other station at that time.
If another station use the line for transmission, then station A has
to wait for a while and detects the line again.
When another station has finished using the line, then station A
can send its message.
CSMA/CD
cont
CSMA/CD PROCESS
At second level is where message is heading to destination:Station A will detects message and make sure there is no
collision. Collision occurs when 2 stations send data at similar
time.
This situation happens because both stations detect line is not
used and both stations send message.
When collision happens, both stations have to send message
again after waiting for a while. Waiting time for both stations
are different to avoid another collision from occurs.
CSMA/CD
cont
ADVANTAGES
DISADVANTAGES
TOKEN PASSING
The following is configuration of Token Passing:
TOKEN
PASSING
DISADVANTAGES
CSMA/CD
CSMA/CA
TOKEN PASSING
LAN Standards
Standards are required so that different manufacturers can create equipment
that will interoperate without special configuration.
Standards will allow different computers to communicate.
Standards will increase the market for products adhering (mematuhi) to the
standard, resulting in mass production and cheaper prices .
Standards groups include:
ISO. International Organization for Standardization establishes standards for
networking operation.
ANSI. American National Standards Institute is the US representative to ISO.
EIA/TIA. Electronics Industries Alliance/Telecommunications Industry Association
is an industry based standards group.
IEEE. Institute of Electrical and Electronics Engineers is an international
professional organization that sets communications standards. IEEE Project 802
sets standards for cabling and data transmission on local area networks.
OSI Model
OSI Model
TCP/IP Model
Application
Presentation
Application
Session
Transport
Host-to-Host
Network
Internet
Data Link
Network Access
Physical
IEEE 802
FTP
Application
ASCII/Binary
Session
Transport
Network
TCP
Transport
IP
Network
Ethernet
Link
Link
Physical
OSI Layers
OSI Model
Data unit
Host
layers
Media
layers
Data
Layer
Function
7. Application
6. Presentation
5. Session
Interhost communication
Segments 4. Transport
Packet
3. Network
Frame
2. Data Link
Physical addressing
Bit
1. Physical
TCP/IP Layers
OSI
Application Layer
Presentation Layer
Session Layer
Transport Layer
Network Layer
Data Link Layer
Physical Layer
TCP/IP
Application Layer
TELNET, FTP, SMTP, POP3, SNMP,
NNTP, DNS,NIS, NFS, HTTP, ...
Transport Layer
TCP , UDP , ...
Internet Layer
IP , ICMP, ARP, RARP, ...
Link Layer
FDDI, Ethernet, ISDN, X.25,...
802.2:
802.3:
802.4:
802.5:
802.6:
802.7:
802.8:
802.9:
802.10:
Wireless Networks
Demand Priority Access LANs
Ex: 100BaseVG-AnyLAN
Wireless Personal Area Network
Wireless Mertopolitan Area Network
Mobile Broadband Wireless Access
Header
Payload
Trailer
Header
Payload
Trailer
cont
Header
Preamble (PRE) - This is seven bytes long and it consists of a pattern
of alternating ones and zeros, and this informs the receiving
stations that a frame is starting as well as enabling synchronisation.
Start Of Frame delimiter (pemisah) (SOF) - This consists of one byte
and contains an alternating pattern of ones and zeros but ending in
two ones.
Destination Address (DA) - This field contains the address of station
for which the data is intended.
The left most bit indicates whether the destination is an individual
address or a group address.
An individual address is denoted by a zero, while a one indicates a
group address.
The next bit into the DA indicates whether the address is globally
administered, or local. If the address is globally administered the bit
is a zero, and a one of it is locally administered. There are then 46
remaining bits. These are used for the destination address itself.
cont
Header cont
Source Address (SA) - The source address consists of six
bytes, and it is used to identify the sending station.
As it is always an individual address the left most bit is
always a zero.
Length / Type - This field is two bytes in length. It
provides MAC information and indicates the number of
client data types that are contained in the data field of
the frame. It may also indicate the frame ID type if the
frame is assembled using an optional format.(IEEE 802.3
only).
cont
Payload
Data - This block contains the payload data and it may be up
to 1500 bytes long. If the length of the field is less than 46
bytes, then padding data is added to bring its length up to the
required minimum of 46 bytes.
Trailer
Frame Check Sequence (FCS) - This field is four bytes long. It
contains a 32 bit Cyclic Redundancy Check (CRC). A 32-bit CRC
provides error detection in the case where line errors (or
transmission collisions in Ethernet) result in corruption of the
MAC frame. Any frame with an invalid CRC is discarded by the
MAC receiver without further processing.
MAC Client
Data
PAD
Description
Contains 7 octet field that is used to allow the PLS circuitry to reach its
steady state synchronization with the received frames timing.
Sequence of 10101011. It immediately follows the preamble pattern and
indicates the start of a frame.
Specify the destination addressee(s) for which the frame is intended. It
may be an individual or multicast (including broadcast) address.
Identify the station from which the frame was initiated. The Source
Address field is not interpreted by the CSMA/CD MAC sublayer.
This two-octet field takes one of two meanings, depending on its numeric
value. For numerical evaluation, the first octet is the most significant octet
of this field.
Contains the original Length/Type field from the MAC frame prior to
insertion of the QTag Prefix. The QTag Prefix offsets this field exactly 4
octets from its position in an untagged MAC frame.
Data field is extended by appending extra bits (refers to pad) in units of
octets after data field but prior to calculating and appending FCS.
Frame Check
Sequence (FCS)
Extension
Characteristic
MAN
Geographical Covers an area of between 5 and 50 km
spread
diameter. Many MANs cover an area size of a
city, a group of buildings or as large as the North
of Scotland.
Speed
High speed network to allow sharing of regional
resources.
WAN
Large geographical range generally
spreading across boundaries and
need leased telecommunication.
Data Transfer
Rate
Technology
Connection
Ownership
REFERENCES:
Main:
Forouzan, B.A. (2012). Data Communications and
Networking (5th edision). Mc Graw Hill. (ISBN: 978-0-07131586-9)
Additional:
William Stallings. (2011). Data And Computer
Communication (9th edition). Prentice Hall. (ISBN-10:
0131392050)