Top Banner
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Medium Access Control Sublayer
26

CS 313 Introduction to Computer Networking & Telecommunication

Mar 17, 2016

Download

Documents

Jin

CS 313 Introduction to Computer Networking & Telecommunication. Medium Access Control Sublayer. Topics. Introduction Channel Allocation Problem Multiple Access Protocols CDMA. Introduction. Broadcast networks Key issue: who gets to use the channel when there is competition - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: CS 313 Introduction to  Computer Networking & Telecommunication

Chi-Cheng Lin, Winona State University

CS 313 Introduction to Computer Networking &

Telecommunication

Medium Access Control Sublayer

Page 2: CS 313 Introduction to  Computer Networking & Telecommunication

2

Topics Introduction

Channel Allocation Problem

Multiple Access Protocols

CDMA

Page 3: CS 313 Introduction to  Computer Networking & Telecommunication

3

Introduction Broadcast networks

Key issue: who gets to use the channel when there is competition

Referred to asMultiaccess channelsRandom access channels

MAC (Medium Access Control) sublayerLANsWireless networksSatellite networks

Page 4: CS 313 Introduction to  Computer Networking & Telecommunication

4

Channel Allocation Problem Channel Allocation

StaticDynamic

Performance factorsMedium access delay

Time between a frame is ready and the frame can be transmitted

Throughput#frames can be transmitted in unit time

interval

Page 5: CS 313 Introduction to  Computer Networking & Telecommunication

5

Static Channel Allocation FDM

Bandwidth divided into N equal sized portions for N users

Problems#senders large#senders continuously variesbursty traffic

Discussion: #users > N ? < N ? = N ?N times worse than all frames queued in one big

queue

Page 6: CS 313 Introduction to  Computer Networking & Telecommunication

6

Static Channel Allocation TDM

Each user is statically allocated every Nth time slot

Same problems as FDM

Under what circumstances are static channel allocation schemes efficient?

Page 7: CS 313 Introduction to  Computer Networking & Telecommunication

7

Dynamic Channel Allocation Key assumptions

1. Station modelIndependentWork is generated constantlyOne program per stationStation is blocked once a frame has been

generated until the frame has been successfully transmitted

2. Single channel assumption

Page 8: CS 313 Introduction to  Computer Networking & Telecommunication

8

Dynamic Channel Allocation Key assumptions

3. Collision AssumptionCollision:

Two frames are transmitted simultaneously, overlapped in time and resulting signal garbled

Can be detected by all stationsNo other errors

Page 9: CS 313 Introduction to  Computer Networking & Telecommunication

9

Dynamic Channel Allocation Key assumptions

4. Time: either continuous or discrete (slotted)Continuous

Frame transmission can begin at any instant No "master clock" needed

Slotted Time divided into discrete intervals (slots) Frame transmissions begin at the start of a slot #frames contained in a slot: 0 ? 1 ? >1 ?

Page 10: CS 313 Introduction to  Computer Networking & Telecommunication

10

Dynamic Channel Allocation Carrier sense ("carrier" refers to

electrical signal): either Y or NYes

A station can check channel before transmission

If busy, station idleWired LANs

No“Just do it"Can tell if transmission successful laterWireless networks, cable modems

Page 11: CS 313 Introduction to  Computer Networking & Telecommunication

11

Multiple Access Protocols ALOHA Carrier sense multiple access

protocols (CSMA) CSMA w/ collision detection

(CSMA/CD) Collision-free protocols Limited-contention protocols

Page 12: CS 313 Introduction to  Computer Networking & Telecommunication

12

ALOHA Applicable to any contention

systemSystem in which uncoordinated users

are competing for the use of a single shared channel

Two versionsPure ALOHASlotted ALOHA

Page 13: CS 313 Introduction to  Computer Networking & Telecommunication

13

Pure ALOHA Let users transmit whenever they have data to

be sent Colliding frames are destroyed Sender can always find out destroyed or not

Feedback (property of broadcasting) or ACKLANs: immediatelySatellites: propagation delay (e.g., 270msec)

By listening to the channelIf frame is destroyed wait a random amount of time and retransmit (why "random"?)

Page 14: CS 313 Introduction to  Computer Networking & Telecommunication

14

Pure ALOHA

Where are the collisions?

Page 15: CS 313 Introduction to  Computer Networking & Telecommunication

15

Slotted ALOHA Discrete time Agreed slot boundaries Synchronization needed Performance

Which ALOHA has a shorter medium access delay?

Which ALOHA has a higher throughput?

Page 16: CS 313 Introduction to  Computer Networking & Telecommunication

16

Performance of ALOHA Slotted ALOHA can double the

throughput of pure ALOHA

Throughput versus offered traffic for ALOHA systems.

Page 17: CS 313 Introduction to  Computer Networking & Telecommunication

17

Carrier Sense Multiple Access (CSMA) Protocols

Stations can listen to the channel (i.e., sense a carrier in the channel)

Types1-persistent CSMANonpersistent CSMAp-persistent CSMA

Page 18: CS 313 Introduction to  Computer Networking & Telecommunication

18

Comparison of the channel utilization versus load for various random access protocols.

Performance of MAC Protocols

Page 19: CS 313 Introduction to  Computer Networking & Telecommunication

19

CSMA w/ Collision Detection (CSMA/CD)

Can listen to the channel and detect collisionStop transmitting as soon as collision

detected Widely used on LANs (e.g.,

Ethernet) Collision detection

Analog processSpecial encoding is used

Page 20: CS 313 Introduction to  Computer Networking & Telecommunication

20

CSMA w/ Collision Detection (CSMA/CD)

Conceptual model3 states

ContentionTransmissionIdle

Minimum time to detect collision determines time slotDepends on propagation delay of

medium

Page 21: CS 313 Introduction to  Computer Networking & Telecommunication

21

CSMA/CD Model

Page 22: CS 313 Introduction to  Computer Networking & Telecommunication

22

CSMA/CD Algorithm

Source: http://www.10gea.org/gigabit-ethernet/

Page 23: CS 313 Introduction to  Computer Networking & Telecommunication

23

Collision-Free Protocols Model

N Stations: 0,1, ..., (N-1) Question

Which station gets the channel after a successful transmission?

ProtocolsBit-map (i.e., reservation) protocolToken passing protocol

Example: Token ring

Page 24: CS 313 Introduction to  Computer Networking & Telecommunication

Collision-Free Protocol

Token ring

Station

Direction oftransmission

Token

Page 25: CS 313 Introduction to  Computer Networking & Telecommunication

25

Performance of Contention and Collision-Free Protocols

ContentionLow load => low medium access delay

:)High load => low channel efficiency :(

Collision-FreeLow load => high medium access

delay :(High load => high channel

efficiency :)

Page 26: CS 313 Introduction to  Computer Networking & Telecommunication

26

Summary of Channel Allocation Methods/Systems

*

*******

* | Token Passing | Contention-free protocol |