cis 725

25
CIS 725 Media Access Layer

Upload: davina

Post on 23-Feb-2016

33 views

Category:

Documents


0 download

DESCRIPTION

CIS 725. Media Access Layer. Medium Access Control Sublayer. MAC sublayer resides between physical and data link layer Broadcast/multiacess channels N independent stations - each station generates traffic independently - if two transmit at the same time, both frames - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: CIS 725

CIS 725

Media Access Layer

Page 2: CIS 725

Medium Access Control Sublayer

• MAC sublayer resides between physical and data link layer

• Broadcast/multiacess channels• N independent stations - each station generates traffic independently - if two transmit at the same time, both frames are garbled

Page 3: CIS 725

Medium Access Control Sublayer

• MAC sublayer resides between physical and data link layer

• Broadcast/multiacess channels• N independent stations - each station generates traffic independently - if two transmit at the same time, both frames are garbled

Page 4: CIS 725

Static Allocation

• Frequency division multiplexing• Time division multiplexing

Page 5: CIS 725

Pure ALOHA

• A station transmits whenever it wants• Sender detects collision and retransmits

after random time

Page 6: CIS 725

Pure ALOHA

In pure ALOHA, frames are transmitted at completely arbitrary times.

Page 7: CIS 725

Pure ALOHA

Vulnerable period for the shaded frame.

Page 8: CIS 725

Slotted Aloha

• Time is divided into slots• Each station waits until beginning of next

slot before transmitting

Page 9: CIS 725

Pure ALOHA (3)

Throughput versus offered traffic for ALOHA systems.

Page 10: CIS 725

Carrier Sensing

• Ability to detect if channel is busy• CSMA Protocols (Carrier Sense Multi

Access)• Messages must be long enough to detect

collision

Page 11: CIS 725

1-persistent CSMA

• Listen to the channel• If busy then wait until channel is idle• When idle, transmit frame• If collision then start again after random

time

Page 12: CIS 725

Non-persistent CSMA

• Sense the channel • If idle then transmit else start over again after random time If collision then start again after random time

Page 13: CIS 725

p-persistent CSMA

• Listen to the channel• If idle then transmit with probability p else wait for random amount of time

Page 14: CIS 725

Persistent and Nonpersistent CSMA

Page 15: CIS 725

Collision-free protocols

• Stations are numbered 0..N-1 - 1-bit contention slots are used to

determine who wants to transmit

Page 16: CIS 725
Page 17: CIS 725

CAN (Controller area network) protocol

• Priority-based arbitration mechanism• Message id = priority• For each message, the id is first transmitted Message with the lowest id wins

M1 = 0 1 0 0M2 = 1 1 0 1M3 = 0 0 1 0

M1 = 0M2 = 1 M3 = 0

1

0

0

Page 18: CIS 725

Token Ring

• Stations are arranged in a ring• A token circulates in the ring

Page 19: CIS 725

• To send data, acquire the token; place data on the ring; when data comes back, insert token back• Listen mode: copy input bit to output

token address

1-bit delay

Page 20: CIS 725

Node failures - sender fails

Corruption - Full empty 1 0 - empty Full 0 1

* cannot include parity/checksum

Page 21: CIS 725

token New/old

Full, oldFull, new

Full, new

Empty, *

Master node

Empty, *

Page 22: CIS 725

token New/old

Full, oldFull, new

Full, new

Full, new

Sender fails

Full, new

Page 23: CIS 725

token New/old

Full, newFull, new

Full, new

Empty, old

Full, old

Corruption: empty full

Full, new

Page 24: CIS 725

token New/old

Full, oldempty, old

empty, old

Empty, old

empty, old

Corruption: Full empty

Page 25: CIS 725

token New/old

Full, oldFull, new

Full, new

Empty, new

empty, oldFull, old

Full, old