Docsity

Medium Access Control in Data Communication: MAC Protocols and Access Mechanisms, Slides of Data Communication Systems and Computer Networks

Partial preview of the text

Download Medium Access Control in Data Communication: MAC Protocols and Access Mechanisms and more Slides Data Communication Systems and Computer Networks in PDF only on Docsity!

Data Link Layer

Data Communication

Transport Layer 3-

THE NETWORK LAYER

»Outline » Data Link Layer Revisited » LLC and MAC sublayers » Channel Allocation Problem » MAC Protocols

MEDIUM ACCESS CONTROL

5

MEDIUM ACCESS CONTROL

»Usually for shared network like LAN »Devices need to know » Can multiple devices send at the same time? » When to transmit the data? » For how long it can transmit the data? »Devices require access control mechanism [MAC-protocol] »How to control the access? » Synchronous Access Control Specific capacity is dedicated to each device Same as circuit switching, packet switching, TDM and FDM Not Optimal for LANs as requirements are unpredictable » Asynchronous Access Control Can handle immediate demands for medium access Round Robin Reservation Contention

7

MEDIUM ACCESS CONTROL..CONT..

»Where to implement Access Control Mechanism

» Centralized Control A central controller is used like hub or switch Stations ask permission from the controller » Distributed Control Each station contributes to implement the control mechanism Mutual co-ordination » Which one is better Centralized or Distributed ..????? Greater control, priorities are possible [Centralized ] Simple logic for stations [Centralized ] No co-ordination is required [Centralized ] Single point of failure [Centralized ] Bottlenecks [Centralized ]

8

MAC-FRAME FORMAT

»MAC layer performs medium access control for higher layers

»The access control is implemented through MAC-PDU called MAC-Frame

»A general MAC-Frame

» The Control Field contains protocol control information like priority » Destination MAC address » Source Destination MAC address » LLC: Data from LLC » CRC – Cyclic Redundancy Check for error control

MAC-Control Destination MAC-Address Source MAC-Address LLC-PDU CRC

CHANNEL ALLOCATION PROBLEM

11

THE CHANNEL ALLOCATION PROBLEM

»Broad cast network

  • Medium is shared, also termed as broadcast channel or multi access channel
  • MAC (Medium Access Control) is needed for proper access

»Channel Allocation Schemes

  • Static Channel Allocation in LANs and MANs The channel is not utilized properly Example- - A Telephone exchange with N channel - In case number of users < N , the channels are under utilized - In case number of users > N , some users may not get the channel Example- - FDM - Same reasonng

13

CHANNEL ALLOCATION-

» Dynamic channel Allocation Assumptions

  1. Station Model.
    1. N independent stations / terminals , frame arrival rate = λ
  2. Single Channel Assumption.
    1. For all stations there is only one shared medium / channel
  3. Collision Assumption.
    1. If two frames overlap in time the both will be damaged and it is a collision
  4. (a) Continuous Time:
    1. stations can transmit at any time (b) Slotted Time:  Time is divided in slots and transmission can start at start or end of a time slot » (a) Carrier Sense. (b) No Carrier Sense.

14

MULTIPLE ACCESS PROTOCOL

»ALOHA

» Carrier Sense Multiple Access Protocols » Collision-Free Protocols » Limited-Contention Protocols » Wavelength Division Multiple Access Protocols » Wireless LAN Protocols

16

ALOHA

»When station has frame, it sends

» Station listens (for max round trip time)plus small increment » Wait for ACK,

» If ACK, fine. If not, retransmit

»If no ACK after repeated transmissions, give up

»Frame check sequence (as in HDLC)

»If frame OK and address matches receiver, send ACK

»Frame may be damaged by noise or by another station transmitting at the same time (collision)

»Any overlap of frames causes collision

»Max utilization 18%

17

PURE ALOHA

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

19

PURE ALOHA -

Throughput versus offered traffic for ALOHA systems.

20

SLOTTED ALOHA

»Time in uniform slots equal to frame transmission time

»Need central clock (or other sync mechanism)

»Transmission begins at slot boundary

»Frames either miss or overlap totally

»Max utilization 37%