10/11/2007 EETS 73041 The Medium Access Control Sublayer Chapter 4.

Slides:



Advertisements
Similar presentations
The Medium Access Control Sublayer
Advertisements

Ethernet Risanuri Hidayat. Ethernet The term Ethernet refers to the family of local-area network (LAN) products covered by the IEEE standard. Three.
Networks: Wireless LANs1 Wireless Local Area Networks.
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.
1 The Medium Access Control Sublayer Chapter 4. 2 The Medium Access Control Sublayer This chapter deals with broadcast networks and their protocols. In.
– Wireless PHY and MAC Stallings Types of Infrared FHSS (frequency hopping spread spectrum) DSSS (direct sequence.
© Kemal AkkayaWireless & Network Security 1 Department of Computer Science Southern Illinois University Carbondale CS591 – Wireless & Network Security.
1 K. Salah Module 4.2: Media Access Control The Media Access Control (MAC) sublayer –Random Access (CSMA), IEEE –Token Passing, IEEE Ch 13-
Network Technology CSE Network Technology CSE3020 Week 9.
1 CSE401n:Computer Networks Lecture 16 Wireless Link & LANs WS: ch-14 KR: 5.7.
Wireless Networks.
Networks: Wireless LANs1 Wireless Local Area Networks.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 17 Introduction to Computer Networks.
CSC 450/550 Part 3: The Medium Access Control Sublayer.
The Medium Access Control Sublayer Chapter 4. Ethernet Cabling The most common kinds of Ethernet cabling.
Networks: Wireless LANs1 Wireless Local Area Networks.
EEC-484/584 Computer Networks Lecture 13 Wenbing Zhao
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.
1 ECE453 – Introduction to Computer Networks Lecture 8 – Multiple Access Control (II)
IEEE Wireless LAN Standard Chapter 14. IEEE 802 Protocol Layers.
The Medium Access Control Sublayer Chapter 4. The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation in.
Network Security Wireless LAN. Network Security About WLAN  IEEE standard  Use wireless transmission medium such as radio, microwave, infrared.
Infrastructure de Communications – CR 4107Chapter 41 The Medium Access Control Sublayer Chapter 4.
Chapter 5 outline 5.1 Introduction and services
Lecture #2 Chapter 14 Wireless LANs.
1 ECE453 – Introduction to Computer Networks Lecture 7 – Multiple Access Control (I)
Computer Networks 1 (Mạng Máy Tính 1)
جلسه دوازدهم شبکه های کامپیوتری به نــــــــــــام خدا.
Ethernet. Ethernet Goals Simplicity Low Cost Compatibility Address flexibility Fairness –All nodes have equal access to the network High speed Stability.
Medium Access Control.
Medium Access Control. Channel Allocation Static channel allocation in LANs and MANs FDMA, TDMA, CDMA Dynamic channel allocation in LANs and MANs MAC.
CIS 725 Media Access Layer. Medium Access Control Sublayer MAC sublayer resides between physical and data link layer Broadcast/multiacess channels N independent.
Ethernet, MAC podvrstva
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.
CSC4220/6220 Computer Networks
The Medium Access Control Sublayer طبقة ولوج الوسط الجزئية Chapter 4.
The Medium Access Control Sublayer Chapter 4 10/1/2015www.noteshit.com1.
IEEE Wireless LAN Standard
The Medium Access Control Sublayer Chapter 4. The Channel Allocation Problem Static Channel Allocation Dynamic Channel Allocation  Delay for the divided.
IEEE Wireless LAN Standard. Medium Access Control-CSMA/CA IEEE defines two MAC sublayers Distributed coordination function (DCF) Point coordination.
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.
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.
Medium Access Control Sub Layer
Data Communications, Kwangwoon University12-1 Chapter 12. Multiple Access 1.Random Access 2.Controlled Access 3.Channelization.
Chapter 6 Medium Access Control Protocols and Local Area Networks Wireless LAN.
The Medium Access Control Sublayer Chapter 4 12/13/2015www.ishuchita.com1.
Department of Computer Science, University of Peshawar Multiple Access.
MAC Sublayer MAC layer tasks: – Control medium access – Roaming, authentication, power conservation Traffic services – DCF (Distributed Coordination.
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.
CS440 Computer Networks 1 Wireless LAN (IEEE ) Neil Tang 10/01/2008.
THE MEDIUM ACCESS CONTROL SUBLAYER 4.1 THE CHANNEL ALLOCATION PROBLEM 4.2 MULTIPLE ACCESS PROTOCOLS.
Wireless LAN Protocols This talk is based on the course: CPSC Networks and Distributed Processing Spring2006/
Example DLL Protocols 1. High-Level Data Link Control (HDLC).
Week3 The Medium Access Sublayer
Lecture 27 WLAN Part II Dr. Ghalib A. Shah
The Medium Access Control Sublayer
The Medium Access Control Sublayer
The Medium Access Control (MAC) Sublayer
Chapter 6 Medium Access Control Protocols and Local Area Networks
Presentation transcript:

10/11/2007 EETS The Medium Access Control Sublayer Chapter 4

10/11/2007 EETS MAC Layer LAN WAN router Manch MAC PPP QAM IP Manch MAC IP QAM PPP IP

10/11/2007 EETS The Channel Allocation Problem Static AllocationDynamic Allocation Tc = Ts/(1 –  )      Tn = (Ts/N)/(1 –  ) Tn Ts/N N Tc Ts Example T1 carrier: N = 24, 6400 bits/frame. Ts = 6400/64000 = 0.1 s. For  = 0.8 Tc = 0.5 s, Tn = 0.5/24 s for the same traffic.

10/11/2007 EETS Dynamic Channel Allocation in LANs Station Model: N independent stations sending messages according to Poisson distribution. Single Channel: A single channel is available to all stations to transmit to and receive from. Carrier Sense: Stations sense if the channel is in use and wait vs. stations cannot tell if the channel is in use. Collision Assumption: If stations transmit at the same time, frames will collide and garbled. All stations can detect collision and retransmit frame later. Frame beginning: Pure Aloha (frame can start transmission at any time) vs. slotted Aloha (frame can start transmission only at a given time instance).

10/11/2007 EETS Multiple Access Protocols ALOHA Carrier Sense Multiple Access Protocols Collision-Free Protocols Wavelength Division Multiple Access Protocols

10/11/2007 EETS Pure ALOHA (1970) In pure ALOHA, frames are transmitted at completely arbitrary times.

10/11/2007 EETS Collision conditions in pure Aloha period is 2t If another frame starts here we will have collision All frames are of the same size. Frame transmission can start at any time instant.

10/11/2007 EETS Throughput versus offered traffic for ALOHA systems. Max throughputs: 18% at G = 0.5 for pure 37% at G = 1 for slotted. (throughput per packet time)

10/11/2007 EETS (1-p) carr ->random back off CSMA: Persistent and Non-persistent no carr -> transmit carr -> check after random time nonpersistent no carr -> transmit with prob p. p-persistent is slotted carr ->check next slot

10/11/2007 EETS CSMA with Collision Detection CSMA/CD can be in one of three states: contention, transmission, or idle. Minimum contention slot is 2  where  ( 5  s/km) is the propagation delay between the two most remote stations.

10/11/2007 EETS Reservation protocols: basic bit-map protocol

10/11/2007 EETS The binary countdown protocol

Wavelength Division Multiple Access 10/11/2007 EETS Station A Station B tunable control transmit fixed data transmit tunable data receive fixed control receive A wants to send data to B 1. A tunes to listen B status S. S tells B control slots #3 is free. 2. A tunes transmit control and sends to B “data for you in my slot 4” in B control slot #3. 3. B tunes to A output and receives data from slot 4. Fiber LAN implementation Channel allocations per station

10/11/2007 EETS 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

10/11/2007 EETS Ethernet MHz Segment length in hundredths meters Base band Vampire taps T conn.

10/11/2007 EETS Ethernet Cabling Three kinds of Ethernet cabling. (a) 10Base5, (b) 10Base2, (c) 10Base-T.

10/11/2007 EETS Ethernet coding (+/ V) (a) Binary encoding, (b) Manchester encoding, (c) Differential Manchester encoding.

10/11/2007 EETS Ethernet MAC Sublayer Protocol Frame formats. (a) DIX (DEC, Intel Xerox) (b) IEEE Address bit 46 determines local or global address. Min frame is 64 bytes from dest. address to checksum.

Ethernet Preamble (PRE). The PRE is an alternating pattern of ones and zeros. Start-of-frame delimiter (SOF). The SOF is an alternating pattern of ones and zeros, ending with two consecutive 1-bits. Destination address (DA). Source addresses (SA). Length/Type indicates either the number of MAC-client data bytes that are contained in the data field of the frame, or the frame type ID if the frame is assembled using an optional format. Data n bytes (46=< n =<1500) of any value. (The total frame minimum is 64bytes.) Frame check sequence (FCS) 32-bit cyclic redundancy check (CRC) value, which is created by the sending MAC and is recalculated by the receiving MAC to check for damaged frames. FCDataLength/typeSADASOFPre

10/11/2007 EETS Collision detection can take as long as 2  This is to sense a collision before end of the frame reach far end. In 10 Mbps LAN 1 bit is 100 nsec, and max segment 2500 m round trip delay is 2  = 50 mksec = 500 bits = 64 bytes.

10/11/2007 EETS Binary exponential backoff Simplified version with persistance p: If k stations contend for a channel the probability that any of k gets a channel is: A = kp(1 – p) k-1 p = 1/k gives A max -> 1/e for k -> inf. Average number of contention slots =    jA(1 – A) j-1 = 1/A. Therefore, channel efficiency = P/(P + 2  /A) Frame first collision second collision for i-th collision station randomly chooses between 0 and 2 i - 1 contention slots until P sec

10/11/2007 EETS Efficiency of Ethernet at 10 Mbps with 512- bit slot times

10/11/2007 EETS Switched Ethernet Plug-in card handles collision domain either usual way or w/out collision. Frames destined outside plug-in domain are switched over backplane to the destined plug-in card.

10/11/2007 EETS Gigabit Ethernet (a) A two-station Ethernet. (b) A multistation Ethernet.

10/11/2007 EETS Gigabit Ethernet cabling

10/11/2007 EETS IEEE 802.2: Logical Link Control (a) Position of LLC. (b) Protocol formats. When reliable service is required the LLC (Logical Link Control) layer is added on the top of MAC layer. LLC is HDLC based (frame sequencing etc.).

10/11/2007 EETS Wireless LANs (WiFi) The Protocol Stack The Physical Layer The MAC Sublayer Protocol The Frame Structure Services

10/11/2007 EETS Part of the protocol stack FHSS - Frequency Hopping Spread Spectrum DSSS - Direct Sequence Spread Spectrum OFDM - Orthogonal Frequency Division Multiplexing HR-DSSS - High Rate DSSS MAC: PCF - Point Coordin. Funct.: Base Station Polls mobiles within its cell. DCF - Distributed Coordination Function further discussed.

10/11/2007 EETS Wireless LAN (bandwidth is 11 to 54 MHz) (a) A transmitting: C is out of range and cannot hear A. (b) B transmitting: C hears B and falsely concludes that it cannot transmit to D. Before transmitting the transmitting station wants to know whether is any activity around receiver. CSMA tells only activity around transmitter. Solution is that sender stimulate receiver to transmit short frame.

10/11/2007 EETS DCF: wireless MACA (Multiple Access with Collision Avoidance) C hears RTS A to B (30 bytes) frame with the length of the frame to follow. D hears B responding to A with a CTS (copying the length of the next frame). A starts transmitting.

10/11/2007 EETS The use of virtual channel sensing using CSMA/CA NAV - Network Allocation Vector

10/11/2007 EETS A fragment burst Due to the noisy wireless channels data packets are split into short fragments.

10/11/2007 EETS Interframe spacing in

10/11/2007 EETS The Data Frame Structure Frames must process in order Encrypted using WEP More frames to follow Toggle bit to put receiver to sleep Retransmitted frame Data, Control, Mngmnt. RTS, CTS Frame out of Cell More fragments to follow For NAV For Base Station 12 bit frame, 4 bits fragment

10/11/2007 EETS Distribution Services Association (Attach) Disassociation (Detach) Reassociation (Handoff) Distribution (Frame routing) Integration (Protocol conversion)

10/11/2007 EETS Intracell Services Authentication (of mobile) Deauthentication (on leave) Privacy (encryption) Data Delivery (data exchange)

10/11/2007 EETS Broadband Wireless (WiMax) Comparison of and The Protocol Stack The Physical Layer The MAC Sublayer Protocol The Frame Structure

vs environment indooroutdoor mobility mobilefixed access point-to-multipointpoint-to-point distance meterskm spectrum ISM (900 MHz-5.7 GHz) GHz (mm waves) QoS internetmultimedia (con orient) errors detection correction (Hamming) securityoptionalmandatory bit rate10 Mbps100 Mbps

10/11/2007 EETS The Protocol Stack

10/11/2007 EETS The Physical Layer

10/11/2007 EETS The Physical Layer (2) Frames and time slots for time division duplexing.

10/11/2007 EETS The MAC Sublayer Protocol Service Classes Constant bit rate service (for T1) Real-time variable bit rate service (for multimedia) Non-real-time variable bit rate service (file transfer) Best efforts service (for contended upstream traffic)

10/11/2007 EETS The Frame Structure (a) A generic frame. (b) A bandwidth request frame.