The Medium Access Control Sublayer

Slides:



Advertisements
Similar presentations
The Medium Access Control Sublayer
Advertisements

Medium Access Control Sublayer Chapter 4 CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Channel Allocation Problem.
Channel Allocation Protocols. Dynamic Channel Allocation Parameters Station Model. –N independent stations, each acting as a Poisson Process for the purpose.
EECC694 - Shaaban #1 lec #5 Spring Data Link In Broadcast Networks: The Media Access Sublayer Broadcast networks with multi-access (or random.
Fundamentals of Computer Networks ECE 478/578
CS 5253 Workshop 1 MAC Protocol and Traffic Model.
Wireless Networks.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 17 Introduction to Computer Networks.
Data Link Layer Switching
CSC 450/550 Part 3: The Medium Access Control Sublayer.
The Protocol Stack Part of the protocol stack.
The Medium Access Control Sublayer Chapter 4. Ethernet Cabling The most common kinds of Ethernet cabling.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 16 Introduction to Computer Networks.
CS 5253 Workshop 1 MAC Protocol and Traffic Model.
16 February 2003 TU/e Computer Science, System Architecture and Networking 1 Communication media Thanks to A. Tanenbaum.
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The Medium Access Control Sublayer Chapter.
1 Chapter 5 The Medium Access Sublayer. 2 Chapter 5 The Medium Access Layer 5.1 The Channel Allocation problem - Static and dynamic channel allocation.
The Medium Access Control Sublayer Chapter 4. The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation in.
Infrastructure de Communications – CR 4107Chapter 41 The Medium Access Control Sublayer Chapter 4.
1 ECE453 – Introduction to Computer Networks Lecture 7 – Multiple Access Control (I)
Computer Networks 1 (Mạng Máy Tính 1)
A.S.Tanenbaum, Computer networks, ch4 MAC 1 The Medium Access Control Sublayer Medium Access Control: a means of controlling access to the medium to promote.
Medium Access Control. Channel Allocation Static channel allocation in LANs and MANs FDMA, TDMA, CDMA Dynamic channel allocation in LANs and MANs MAC.
Computer Networks NYUS FCSIT Spring 2008 Igor TRAJKOVSKI, Ph.D. Associate Professor
CSMA with Collision Detection CSMA/CD can be in one of three states: contention, transmission, or idle.
The Medium Access Control Sublayer Chapter 4. The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation in.
The Medium Access Control Sublayer طبقة ولوج الوسط الجزئية Chapter 4.
The Medium Access Control Sublayer Chapter 4 10/1/2015www.noteshit.com1.
CHAPTER 4: THE MEDIUM ACCESS SUBLAYER 4.1: The Channel Allocation Problem 4.2: Multiple Access Protocols.
جلسه دهم شبکه های کامپیوتری به نــــــــــــام خدا.
10/18/2007 EETS Bluetooth Bluetooth Architecture Bluetooth Applications The Bluetooth Protocol Stack The Bluetooth Radio Layer The Bluetooth Baseband.
Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of frames and layer 2 transmission protocols are dependent.
The Medium Access Control Sublayer Chapter 4. The Channel Allocation Problem Static Channel Allocation Dynamic Channel Allocation  Delay for the divided.
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The Medium Access Control Sublayer Chapter.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Medium Access Control Sublayer.
The Medium Access Control Sublayer Chapter 4. The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation in.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Local Area Networks.
The Medium Access Control Sublayer Chapter 4. The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation in.
CEN 4500 Data Communications Instructor: S. Masoud Sadjadi sadjadi At cs Dot fiu Dot edu Chapter 4: The Medium.
جلسه یازدهم شبکه های کامپیوتری به نــــــــــــام خدا.
17 - Winter 2005 ECE ECE 766 Computer Interfacing and Protocols 1 Local Area Networks Need for high performance communications for physically close devices.
C H 4 T HE M EDIUM A CCESS C ONTROL S UBLAYER 1 Medium Access Control: a means of controlling access to the medium to promote orderly and efficient use.
Medium Access Control Sub Layer
The Medium Access Control Sublayer Chapter 4 12/13/2015www.ishuchita.com1.
The Medium Access Control Sublayer Chapter 4. The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation in.
The Medium Access Control Sublayer
The Medium Access Control (MAC) Sublayer. The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation in LANs.
Chapter 4 The Medum Access Sublayer. MA Sublayer Additional Reference –Local and Metropolitan Area Networks, William Stallings, Prentice Hall, 2000, 6th.
THE MEDIUM ACCESS CONTROL SUBLAYER 4.1 THE CHANNEL ALLOCATION PROBLEM 4.2 MULTIPLE ACCESS PROTOCOLS.
COMPUTER NETWORKS Data-link Layer (The Medium Access Control Sublayer) MAC Sublayer.
Wireless LAN Protocols This talk is based on the course: CPSC Networks and Distributed Processing Spring2006/
Wireless LAN Protocols This talk is based on the course: CPSC Networks and Distributed Processing Spring2006/
CS 5253 Workshop 1 MAC Protocol and Traffic Model.
Example DLL Protocols 1. High-Level Data Link Control (HDLC).
Week3 The Medium Access Sublayer
The Data Link Layer Chapter
Introduction to Queueing Theory
The Medium Access Control Sublayer
Module 3 Medium Access Control.
Services of DLL Framing Link access Reliable delivery
The Medium Access Control Sublayer
THE IEEE MAC SUB-LAYER – chapter 14
The Medium Access Control (MAC) Sublayer
Overview Jaringan Komputer (3)
The Medium Access Control Sublayer
Channel Allocation Problem/Multiple Access Protocols Group 3
Channel Allocation Problem/Multiple Access Protocols Group 3
Computer Interfacing and Protocols
Chapter 6 Multiple Radio Access.
Distributed Systems 6. Medium Access Control Sublayer
Presentation transcript:

The Medium Access Control Sublayer Chapter 4 The Medium Access Control Sublayer 11/12/2018 CS522 Tanenbaum

The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation in LANs and MANs 11/12/2018 CS522 Tanenbaum

Dynamic Channel Allocation in LANs and MANs Station Model. Single Channel Assumption. Collision Assumption. (a) Continuous Time. (b) Slotted Time. (a) Carrier Sense. (b) No Carrier Sense. 11/12/2018 CS522 Tanenbaum

Multiple Access Protocols ALOHA Carrier Sense Multiple Access Protocols Collision-Free Protocols Limited-Contention Protocols Wavelength Division Multiple Access Protocols Wireless LAN Protocols 11/12/2018 CS522 Tanenbaum

In pure ALOHA, frames are transmitted at completely arbitrary times. 11/12/2018 CS522 Tanenbaum

Vulnerable period for the shaded frame. Pure ALOHA (2) Vulnerable period for the shaded frame. 11/12/2018 CS522 Tanenbaum

Pure ALOHA (3) λn = mean new frame arrival rate (frame/sec), A station transmits a frame whenever it has data to send. When the frame collides with other frame(s), retransmit it by waiting a random amount of time. What is the throughput (or efficiency) of an ALOHA channel? Let N (no. of stations using an ALOHA channel) = ∞ , assume infinite population, new arrival is a Poisson process, λn = mean new frame arrival rate (frame/sec), µ = channel capacity (frame/sec), T=1/ µ=frame time (sec/frame) S = λn/µ= λn (frame/sec). 1/µ (sec/frame) = mean new frames per frame time, S is traffic density or channel utilization, λr = mean retransmitted frame rate. The combined traffic of new and old (retransmission) traffic is still a Poisson process with G= mean departure frames per frame time=(λn+λr)/µ=λT. G is actual traffic density. G can be controlled by adjusting retransmission time. Can S be controlled? What is the system throughput? S or G? Analysis: If S>1, almost every frame will collide. For reasonable throughput, 0<S<1. G > S. At low load, S ≈ 0 → G ≈ S. At high load, G>S. 11/12/2018 CS522 Tanenbaum

Pure ALOHA (4) What is the relationship between G and S? S = GP0 P0 = the probability that a frame does not suffer a collision. How to find P0? Note that the combined frame traffic is a Poisson process, therefore, Pr[k] = the probability that k frames are generated during a frame time T = (λ=λn+λr, T=1/µ → λT=G substitute λT with G ) = But observe Figure 4-2, the vulnerable period of a frame is 2 frame time. Pr’[k] = (T’=2T, λT’=2G) P0 = Pr’[0] = . Observation: S depends on incoming traffic. G depends on S. For each S, there are two G values in Figure 4-3. 11/12/2018 CS522 Tanenbaum

What is the max. throughput of Pure ALOHA? How to control G to get maximum S? Let  , Smax = The best we can hope for the channel utilization is 18.4%. Is 18.4% channel utilization for the ALOHA system too low? For a terminal user sends 60 character/msg every 2 min., input rate is 0.5 char/sec = 5 bits/sec (assume 10 bit async. transmission) For 4800 bps channel and 10% utilization, it can support 96 interactive users. For bursty, interactive traffic, pure ALOHA is sufficient and simple. 11/12/2018 CS522 Tanenbaum

Slotted ALOHA Pr[k] = P0 = Pr[0] = e-G S=GP0=Ge–G. Let  , Smax = Transmission time is divided into slots. Stations with data to transmit will wait until the starting time of a slot. Time of vulnerable period is reduced to 1 frame (slot) time. (Require synchronization devices, e.g., a central station broadcasts the clock signal to all stations for synchronizing the slots.) Pr[k] = P0 = Pr[0] = e-G S=GP0=Ge–G. Let  , Smax = 11/12/2018 CS522 Tanenbaum

PURE ALOHA vs. Slotted ALOHA Throughput versus offered traffic for ALOHA systems. 11/12/2018 CS522 Tanenbaum

Carrier Sense MA protocols Protocols in which stations listen for a carrier (i.e. a transmission medium) and act accordingly, e.g. MA protocols used by LANs. 1-Persistent CSMA When a station has data to send, it listens to the channel. If the channel is busy, it waits until channel idle. When the channel is idle, it transmits a frame (with probability = 1). Propagation delay effect: At t0, station 1 detects idle and sends a frame. At t0+τ−ε, station 2 detects idle and sends a frame.2 At t0+τ, station 2 detects collision. 11/12/2018 CS522 Tanenbaum

Carrier Sense MA Protocols(2) At t0+τ−ε+τ, station 1 detects collision. In worst case, only about 2τ time later can station 1 detect the collision. The longer the cable, the longer stations have to wait to be sure that there is no collision. Non-persistent CSMA If the channel is busy, it waits for random period then sense the channel again. Better channel utilization but longer delays than 1-persistent CSMA. p-persistent CSMA (applies to slotted channel) If the channel is idle, it transmits with prob = p (with 1-p, it defers until next slot). If the next slot is idle again, do the same thing. 11/12/2018 CS522 Tanenbaum

Persistent and Nonpersistent CSMA Comparison of the channel utilization versus load for various random access protocols. Smaller p has better throughput but at what cost? 11/12/2018 CS522 Tanenbaum

CSMA with Collision Detection CSMA/CD can be in one of three states: contention, transmission, or idle. 11/12/2018 CS522 Tanenbaum

Collision-Free Protocols The basic bit-map protocol. 11/12/2018 CS522 Tanenbaum

Collision-Free Protocols (2) The binary countdown protocol. A dash indicates silence. 11/12/2018 CS522 Tanenbaum

Limited-Contention Protocols Acquisition probability for a symmetric contention channel. 11/12/2018 CS522 Tanenbaum

Adaptive Tree Walk Protocol The tree for eight stations. 11/12/2018 CS522 Tanenbaum

Wavelength Division Multiple Access Protocols 11/12/2018 CS522 Tanenbaum

Wireless LAN Protocols A wireless LAN. (a) A transmitting. (b) B transmitting. 11/12/2018 CS522 Tanenbaum

Wireless LAN Protocols (2) The MACA protocol. (a) A sending an RTS to B. (b) B responding with a CTS to A. 11/12/2018 CS522 Tanenbaum

Ethernet Ethernet Cabling Manchester Encoding The Ethernet MAC Sublayer Protocol The Binary Exponential Backoff Algorithm Ethernet Performance Switched Ethernet Fast Ethernet Gigabit Ethernet IEEE 802.2: Logical Link Control Retrospective on Ethernet 11/12/2018 CS522 Tanenbaum

The most common kinds of Ethernet cabling. 11/12/2018 CS522 Tanenbaum

Ethernet Cabling (2) Three kinds of Ethernet cabling. (a) 10Base5, (b) 10Base2, (c) 10Base-T. 11/12/2018 CS522 Tanenbaum

Cable topologies. (a) Linear, (b) Spine, (c) Tree, (d) Segmented. Ethernet Cabling (3) Cable topologies. (a) Linear, (b) Spine, (c) Tree, (d) Segmented. 11/12/2018 CS522 Tanenbaum

Ethernet Cabling (4) (a) Binary encoding, (b) Manchester encoding, (c) Differential Manchester encoding. 11/12/2018 CS522 Tanenbaum

Ethernet MAC Sublayer Protocol Frame formats. (a) DIX Ethernet, (b) IEEE 802.3. 11/12/2018 CS522 Tanenbaum

Ethernet MAC Sublayer Protocol (2) 11/12/2018 CS522 Tanenbaum

Efficiency of Ethernet at 10 Mbps with 512-bit slot times. Ethernet Performance Efficiency of Ethernet at 10 Mbps with 512-bit slot times. 11/12/2018 CS522 Tanenbaum

A simple example of switched Ethernet. 11/12/2018 CS522 Tanenbaum

The original fast Ethernet cabling. 11/12/2018 CS522 Tanenbaum

Gigabit Ethernet (a) A two-station Ethernet. (b) A multistation Ethernet. 11/12/2018 CS522 Tanenbaum

Gigabit Ethernet cabling. 11/12/2018 CS522 Tanenbaum

IEEE 802.2: Logical Link Control (a) Position of LLC. (b) Protocol formats. 11/12/2018 CS522 Tanenbaum

Wireless LANs The 802.11 Protocol Stack The 802.11 Physical Layer The 802.11 MAC Sublayer Protocol The 802.11 Frame Structure Services 11/12/2018 CS522 Tanenbaum

Part of the 802.11 protocol stack. 11/12/2018 CS522 Tanenbaum

The 802.11 MAC Sublayer Protocol (a) The hidden station problem. (b) The exposed station problem. 11/12/2018 CS522 Tanenbaum

The 802.11 MAC Sublayer Protocol (2) The use of virtual channel sensing using CSMA/CA. 11/12/2018 CS522 Tanenbaum

The 802.11 MAC Sublayer Protocol (3) A fragment burst. 11/12/2018 CS522 Tanenbaum

The 802.11 MAC Sublayer Protocol (4) Interframe spacing in 802.11. 11/12/2018 CS522 Tanenbaum

The 802.11 Frame Structure The 802.11 data frame. 11/12/2018 CS522 Tanenbaum

802.11 Services Distribution Services Association Disassociation Reassociation Distribution Integration 11/12/2018 CS522 Tanenbaum

802.11 Services Intracell Services Authentication Deauthentication Privacy Data Delivery 11/12/2018 CS522 Tanenbaum

Broadband Wireless Comparison of 802.11 and 802.16 The 802.16 Protocol Stack The 802.16 Physical Layer The 802.16 MAC Sublayer Protocol The 802.16 Frame Structure 11/12/2018 CS522 Tanenbaum

The 802.16 Protocol Stack The 802.16 Protocol Stack. 11/12/2018 CS522 Tanenbaum

The 802.16 transmission environment. The 802.16 Physical Layer The 802.16 transmission environment. 11/12/2018 CS522 Tanenbaum

Frames and time slots for time division duplexing. The 802.16 Physical Layer (2) Frames and time slots for time division duplexing. 11/12/2018 CS522 Tanenbaum

The 802.16 MAC Sublayer Protocol Service Classes Constant bit rate service Real-time variable bit rate service Non-real-time variable bit rate service Best efforts service 11/12/2018 CS522 Tanenbaum

(a) A generic frame. (b) A bandwidth request frame. The 802.16 Frame Structure (a) A generic frame. (b) A bandwidth request frame. 11/12/2018 CS522 Tanenbaum

Bluetooth Bluetooth Architecture Bluetooth Applications The Bluetooth Protocol Stack The Bluetooth Radio Layer The Bluetooth Baseband Layer The Bluetooth L2CAP Layer The Bluetooth Frame Structure 11/12/2018 CS522 Tanenbaum

Bluetooth Architecture Two piconets can be connected to form a scatternet. 11/12/2018 CS522 Tanenbaum

Bluetooth Applications The Bluetooth profiles. 11/12/2018 CS522 Tanenbaum

The Bluetooth Protocol Stack The 802.15 version of the Bluetooth protocol architecture. 11/12/2018 CS522 Tanenbaum

The Bluetooth Frame Structure A typical Bluetooth data frame. 11/12/2018 CS522 Tanenbaum

Data Link Layer Switching Bridges from 802.x to 802.y Local Internetworking Spanning Tree Bridges Remote Bridges Repeaters, Hubs, Bridges, Switches, Routers, Gateways Virtual LANs 11/12/2018 CS522 Tanenbaum

Data Link Layer Switching Multiple LANs connected by a backbone to handle a total load higher than the capacity of a single LAN. 11/12/2018 CS522 Tanenbaum

Operation of a LAN bridge from 802.11 to 802.3. Bridges from 802.x to 802.y Operation of a LAN bridge from 802.11 to 802.3. 11/12/2018 CS522 Tanenbaum

The IEEE 802 frame formats. The drawing is not to scale. Bridges from 802.x to 802.y (2) The IEEE 802 frame formats. The drawing is not to scale. 11/12/2018 CS522 Tanenbaum

Local Internetworking A configuration with four LANs and two bridges. 11/12/2018 CS522 Tanenbaum

Two parallel transparent bridges. Spanning Tree Bridges Two parallel transparent bridges. 11/12/2018 CS522 Tanenbaum

Spanning Tree Bridges (2) (a) Interconnected LANs. (b) A spanning tree covering the LANs. The dotted lines are not part of the spanning tree. 11/12/2018 CS522 Tanenbaum

Remote bridges can be used to interconnect distant LANs. 11/12/2018 CS522 Tanenbaum

Repeaters, Hubs, Bridges, Switches, Routers and Gateways (a) Which device is in which layer. (b) Frames, packets, and headers. 11/12/2018 CS522 Tanenbaum

Repeaters, Hubs, Bridges, Switches, Routers and Gateways (2) (a) A hub. (b) A bridge. (c) a switch. 11/12/2018 CS522 Tanenbaum

A building with centralized wiring using hubs and a switch. Virtual LANs A building with centralized wiring using hubs and a switch. 11/12/2018 CS522 Tanenbaum

Virtual LANs (2) (a) Four physical LANs organized into two VLANs, gray and white, by two bridges. (b) The same 15 machines organized into two VLANs by switches. 11/12/2018 CS522 Tanenbaum

The IEEE 802.1Q Standard Transition from legacy Ethernet to VLAN-aware Ethernet. The shaded symbols are VLAN aware. The empty ones are not. 11/12/2018 CS522 Tanenbaum

The 802.3 (legacy) and 802.1Q Ethernet frame formats. The IEEE 802.1Q Standard (2) The 802.3 (legacy) and 802.1Q Ethernet frame formats. 11/12/2018 CS522 Tanenbaum

Channel allocation methods and systems for a common channel. Summary Channel allocation methods and systems for a common channel. 11/12/2018 CS522 Tanenbaum