COMMUNICATION NETWORKS NETW 501

Similar documents
Chapter 6 Medium Access Control Protocols and Local Area Networks

Random Access. 1. Aloha. 2. Slotted Aloha 3. CSMA 4. CSMA/CD

CHAPTER 7 MAC LAYER PROTOCOLS. Dr. Bhargavi Goswami Associate Professor & Head Department of Computer Science Garden City College

ECE 4450:427/527 - Computer Networks Spring 2017

Data Link Layer: Collisions

LANs. Local Area Networks. via the Media Access Control (MAC) SubLayer. Networks: Local Area Networks

CS 716: Introduction to communication networks. - 9 th class; 19 th Aug Instructor: Sridhar Iyer IIT Bombay

Data Link Layer. Goals of This Lecture. Engineering Questions. Outline of the Class

Aloha and slotted aloha

Data Link Layer -2- Network Access

Ethernet. Introduction. CSE 3213 Fall 2011

EITF25 Internet Techniques and Applications L4: Network Access. Stefan Höst

Data Link Layer -2- Network Access

Multiple Access. Data Communications and Networking

Chapter 12 Multiple Access 12.1

LAN PROTOCOLS. Beulah A AP/CSE

Topics. Link Layer Services (more) Link Layer Services LECTURE 5 MULTIPLE ACCESS AND LOCAL AREA NETWORKS. flow control: error detection:

CSMA/CD (Collision Detection)

Redes de Computadores. Medium Access Control

CS 43: Computer Networks. 27: Media Access Contd. December 3, 2018

Access Technologies! Fabio Martignon

High Level View. EE 122: Ethernet and Random Access protocols. Medium Access Protocols

Data Communications. Automatic Repeat Request Medium Access Control

1-1. Switching Networks (Fall 2010) EE 586 Communication and. November 8, Lecture 30

Data Link Layer, Part 3 Medium Access Control. Preface

The Link Layer and LANs. Chapter 6: Link layer and LANs

COS 140: Foundations of Computer Science

EE 122: Ethernet and

CS 43: Computer Networks Media Access. Kevin Webb Swarthmore College November 30, 2017

Jaringan Komputer. Broadcast Network. Outline. MAC (Medium Access Control) Channel Allocation Problem. Dynamic Channel Allocation

Outline. Introduction to Networked Embedded Systems - Embedded systems Networked embedded systems Embedded Internet - Network properties

Local Area Networks (LANs) SMU CSE 5344 /

Data Link Layer, Part 5. Medium Access Control

CMPE 257: Wireless and Mobile Networking

Chapter 4. The Medium Access Control Sublayer

Unit 7 Media Access Control (MAC)

Link Layer and LANs 안상현서울시립대학교컴퓨터 통계학과.

Multiple Access (1) Required reading: Garcia 6.1, 6.2.1, CSE 3213, Fall 2010 Instructor: N. Vlajic

The MAC layer in wireless networks

CSE 461: Multiple Access Networks. This Lecture

Physical Layer. Medium Access Links and Protocols. Point-to-Point protocols. Modems: Signaling. Modems Signaling. Srinidhi Varadarajan

Multiple Access Protocols

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 16

MAC Sublayer(1) Principal service of the Medium Access Control Sublayer: Allocating a single broadcast channel (mostly a LAN) among competing users

Computer Network Fundamentals Spring Week 3 MAC Layer Andreas Terzis

LANs Local Area Networks LANs provide an efficient network solution : To support a large number of stations Over moderately high speed

CMPE 257: Wireless and Mobile Networking

Lecture 4: Wireless MAC Overview. Hung-Yu Wei National Taiwan University

Chapter 6 Medium Access Control Protocols and Local Area Networks

Medium Access Control. CSCI370 Lecture 5 Michael Hutt New York Institute of Technology

EITF25 Internet- - Techniques and Applica8ons Stefan Höst. L5 Data link (part 2)

Real-Time (Paradigms) (47)

The MAC layer in wireless networks

Lecture 9: Bridging. CSE 123: Computer Networks Alex C. Snoeren

COS 140: Foundations of Computer Science

COMP476 Networked Computer Systems. Polling. Sharing the Wire. LAN Technologies. COMP476 Networked Computer Systems 1

Data and Computer Communications

Computer Networks Medium Access Control. Mostafa Salehi Fall 2008

ECEN 5032 Data Networks Medium Access Control Sublayer

Packet multiple access and the Aloha protocol

Data Link Layer: Multi Access Protocols

The Medium Access Control Sublayer

Goals. Fundamentals of Network Media. More topics. Topics. Multiple access communication. Multiple access solutions

MULTIPLE ACCESS PROTOCOLS 2. 1

Random Assignment Protocols

Chapter 4. The Medium Access Control Sublayer. Points and Questions to Consider. Multiple Access Protocols. The Channel Allocation Problem.

Chapter 5 Link Layer and LANs

LECTURE PLAN. Script. Introduction about MAC Types o ALOHA o CSMA o CSMA/CD o CSMA/CA

Chapter 6 Local Area Networks and Media Access Control. School of Info. Sci. & Eng. Shandong Univ.

ECE453 Introduction to Computer Networks. Broadcast vs. PPP. Delay. Lecture 7 Multiple Access Control (I)

Chapter 5 Link Layer and LANs

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061/1110. Lecture 8. Medium Access Control Methods & LAN

Local Networks. Lecture 4 6-Apr-2016

The Link Layer II: Ethernet

CSE 461 Multiple Access. David Wetherall

CSC 4900 Computer Networks: The Link Layer

Protocols for Multiaccess Networks

CS 455/555 Intro to Networks and Communications. Link Layer

Lecture 6. Data Link Layer (cont d) Data Link Layer 1-1

12.2. Figure 12.1 Data link layer divided into two functionality-oriented sublayers

Computer Networks. Today. Principles of datalink layer services Multiple access links Adresavimas, ARP LANs Wireless LANs VU MIF CS 1/48 2/48

ICE 1332/0715 Mobile Computing (Summer, 2008)

Data Link Layer: Overview, operations

Intelligent Transportation Systems. Medium Access Control. Prof. Dr. Thomas Strang

Medium Access Control Sublayer Chapter 4

COMP/ELEC 429/556 Introduction to Computer Networks

Review. Error Detection: CRC Multiple access protocols. LAN addresses and ARP Ethernet. Slotted ALOHA CSMA/CD

COMMUNICATION NETWORKS NETW 501

Data Link Layer Technologies

Goals of Today s Lecture. Adaptors Communicating

The Medium Access Control Scheme (MAC Layer) Reference: Andrew S. Tanenbaum, Computer Networks, 3rd Edition, Prentice Hall, 1996.

Data and Computer Communications. Chapter 11 Local Area Network

CSE 461: Multiple Access. Homework: Chapter 2, problems 1, 8, 12, 18, 23, 24, 35, 43, 46, and 58

Multiple Access Channels

Medium Access Control Sublayer Chapter 4

Link layer, LANs: outline. Chapter 5-1 Link Layer. Link layer: introduction. Link layer services

Chapter 5: Link layer

Lecture 6: Example LAN: Ethernet

CS 3516: Computer Networks

Chapter 1 Basic concepts of wireless data networks (cont d)

Transcription:

COMMUNICATION NETWORKS NETW 501 TUTORIAL 6 Presented by: Eng. Hana Hesham Eng. Mohamed Atef

Data Link Layer Data Link Layer is split into 2 sublayers which are the Logical Link Control (LLC) and the Medium Access Control (MAC) Logical Link Control: is responsible for error detection and correction and also flow control. Medium Access Control: is responsible for controlling the access of the shared medium between users. The problem in packet switching networks is that many users share the same medium. So if they all decide to access the medium at the same time the packets will collide. This is why we need to control accessing the medium using MAC protocols.

Medium Access Control Protocols Contention Based Protocols : Two or more nodes want to transmit over the same medium at the same time, examples: ALOHA Slotted ALOHA CSMA CSMA/CD CSMA/CA MACA MACA W Contention Free Protocols : Avoid collisions, MAC protocol should be able to bring the network from an arbitrary state to a collisionfree stable state, examples: FDMA TDMA CDMA Polling Token Passing Reservation Based

Carrier Sense Multiple Access (CSMA) Low throughput of ALOHA is due to waste of bandwidth due to collisions CSMA: Sense (i.e., Listen) the medium for presence of a carrier signal before transmission A terminal transmit only if a sense an idle channel Widely used in LAN with Bus Topology Vulnerable period = t prop Network Diameter A B C Station A starts transmission at time t=0 A B C At time t prop (for electrical energy to propagate from A to C) all network terminals would have listened to the transmission from A. Terminal A is said to have captured the channel

Carrier Sense Multiple Access (CSMA) Transmitter behavior when busy channel is sensed 1-persistent CSMA (most greedy [trial and error]) Start transmission as soon as the channel becomes idle Low delay and low efficiency 2-Non-persistent CSMA (least greedy) If channel is busy, immediately run the backoff algorithm to set a time to resense the channel High delay and high efficiency 3-p-persistent CSMA (adjustable/adaptive greedy) If the channel is busy, wait till channel becomes idle, transmit with prob. p; or wait one mini-slot time & re-sense with probability 1-p Delay and efficiency can be balanced

P Persistent CSMA P is a predefined value by the network administrator depending on the application requirements. In the probability outcome step we choose a random number from 0 to 1 (as flipping weighted coin), if the outcome is smaller than or equal P (this happens with probability P) then transmit, otherwise wait for another time slot (This happens with a probability 1-P) and try flipping the coin again and repeat the same criterion.

CSMA 3 persistent methods

Carrier Sense Multiple Access (CSMA)

Carrier Sense Multiple Access with collision Detection (CSMA/CD) In both ALOHA and CSMA, when collision occurs we lose at least a full transmission time for nothing TIME: t=0 Station A starts transmission TIME: t=t prop -ε Station B sense an idle channel and starts transmission A A B B CSMA/CD Abort transmission when a collision is detected TIME: t=t prop Station B detects a collision and aborts transmission TIME: t=2t prop - ε Even though Station B has aborted transmission, its initial signal arrives at A. A detects a collision and aborts transmission A A B B

Carrier Sense Multiple Access with collision Detection (CSMA/CD) A starts transmission at time t1 Z starts transmission at time t2, where t1 < t2 < t1+tp, thus a collision occurs. Collided signal (jammed) from A arrives to Z at time t4 = starting time (t1) + propagation time (tp), Then Z can detect the collision at that time. Collided signal (jammed) from Z arrives to A at time t5 = starting time (t2) + propagation time (tp), Then A can detect the collision at that time.

Carrier Sense Multiple Access with collision Detection (CSMA/CD)

P Persistent CSMA/CD analysis Assume nodes B, C and D are using P persistent CSMA. At time t they will start sensing the channel and find it busy so they keep sensing the channel until it is idle again at time ( starting time for A (=0) + Tp (=t) + Tt). They all see the channel idle at the same time so every node can transmit with probability P and wait with probability (1-P) Ta=0 A Tp=t B C Tc=t Tb=t D Td=t

P Persistent CSMA/CD analysis Here we have (n=3) stations that try to access the medium at the same time slot with probability P for each (this slot is called contention slot) Thus the probability that one node acquires the slot and transmits successfully happens when only one node choose to transmit and the (n-1) other nodes choose to wait for the next slot, this case is given as: P success = n p (1 P) n 1 (This rule comes from Binomial Distribution) P collision = 1 P success (1 p) n Ta=0 A Tp=t B C Tc=t Tb=t D Td=t Probability that only one node sends Probability that no node sends (The probability of collision in a given contention slot)

P Persistent CSMA/CD analysis Busy Contention Busy Idle Contention Busy Time Channel can be in three states: Idle: no one is transmitting on it Busy transmitting: A given node captured the channel and is transmitting on it Contention period: The time when multiple nodes can see the channel idle and compete to access the channel at the same time slot (as in the previous slide example), so nodes transmit during mini-slots with probability P and listen whether they have successfully captured the channel or not. Once one node successfully captured the channel (this happens with probability P success ) the channel moves from the contention mode to the Busy mode. Each contention mini-slot size = 2*t prop (Why? Because it is the time required for a given node to know if it successfully captured the channel or a collision happened)