1 / 163

Chapter 6 Medium Access Control Protocols and Local Area Networks

Chapter 6 Medium Access Control Protocols and Local Area Networks. Part I: Medium Access Control Part II: Local Area Networks. Switched Networks Interconnection services by means of transmission, multiplexing, and switching/routing Broadcast Networks All information sent to all users

eilis
Download Presentation

Chapter 6 Medium Access Control Protocols and Local Area Networks

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 6 Medium Access Control Protocols and Local Area Networks Part I: Medium Access Control Part II: Local Area Networks

  2. Switched Networks Interconnection services by means of transmission, multiplexing, and switching/routing Broadcast Networks All information sent to all users No routing Shared media Radio: Cellular telephony, Wireless LANs Copper & Optical: Ethernet LANs, Cable Modem Access Local Area Networks High-speed, low-cost communications between co-located computers Typically based on broadcast networks Simple & cheap Limited number of users Medium Access Control To coordinate the access to shared medium Information can get through the broadcast network from source to destination Chapter Overview

  3. Chapter 6 Medium Access Control Protocols and Local Area Networks Part I: Medium Access Control Multiple Access Communications Random Access Scheduling Channelization Delay Performance

  4. Chapter 6 Medium Access Control Protocols and Local Area Networks Part II: Local Area Networks Overview of LANs LAN Standards: Ethernet LAN * LAN Standards: Token Ring and FDDI LAN LAN Standards: 802.11 Wireless LAN * LAN Bridges

  5. Chapter 6Medium Access Control Protocols and Local Area Networks 6.1 Multiple Access Communications

  6. 3 2 4 1 Shared multiple access medium 5 M Multiple Access Communications • Shared media basis for broadcast networks • Inexpensive: radio over air; copper or coaxial cable • M users communicate each other by broadcasting into medium • Key issue: How to share and access the medium?

  7. Approaches to Media Sharing Medium sharing techniques Dynamic medium access control Static channelization • Centralized • FDMA/TDMA/CDMA • Dedicated allocation of channels to users • Satellite communication systems • Cellular communication systems Scheduling Random access • Centralized/Distributed • Polling: take turns • Request for slot in transmission schedule • Token ring • Wireless LANs • Distributed • Loose coordination • Send, wait, retry if necessary • Aloha • Ethernet

  8. Satellite Communication Systems Satellite Channel: Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA) uplink fin downlink fout

  9. Cellular Communication Systems Multiple Access Methods: 1G: FDMA (Frequency Division Multiple Access) 2G: TDMA (Time Division Multiple Access) 3G: CDMA (Code Division Multiple Access) uplink f1 ; downlink f2 uplink f3 ; downlink f4

  10. Inbound line Outbound line Host computer Stations Scheduling: Polling Data from 1 Data from 2 Poll 1 Data to M Poll 2 M 2 1 3

  11. Scheduling: Token-Passing token Ring networks Data to M token • Station that holds token transmits data into the ring

  12. Crash!! Random Access Multi-tapped Bus • Transmit when ready • Collision may occur; need transmission and re-transmission strategy

  13. Wireless LAN • AdHoc: station-to-station • Infrastructure: stations to base station (Access Point) • Random access and polling

  14. Selecting a Medium Access Control • Applications • What type of traffic? • Voice streams? Steady traffic, low delay/jitter • Data? Short messages? Web page downloads? • Enterprise or Consumer market? Reliability, cost • Scale • How much traffic can be carried? • How many users can be supported? • Current Examples: • Design MAC to provide wireless DSL-equivalent access to rural communities (Fixed Wireless Access) • Design MAC to provide Wireless-LAN-equivalent access to mobile users (user in car travelling at 130 km/hr)

  15. Delay-Bandwidth Product • Delay-bandwidth product: key parameter • Delay-bandwidth product affects the performance of the random access protocol • Difficulty of coordination commensurate with delay-bandwidth product • Consider a simple example: two-station case • Station with frame to send listens to the channel (medium) and transmits if the medium is found idle • Station continues monitoring the medium to avoid collision • There is a capture effect, meaning that the station captures the medium channel if there is no collision and its entire message can through the medium channel

  16. B does not transmit before t = tprop and A captures the channel Case 1 A B B transmits before t = tprop and detectscollision soon thereafter Case 2 A B A detects collision at t = 2 tprop A B Two-Station MAC Example Two stations are trying to share a common medium Distance d meters tprop = d / v seconds A transmits at t = 0 A B

  17. Efficiency of the Two-Station MAC • Each frame transmission requires 2tprop of quiet time to detect collision • Approximately 2tprop is required to coordinate the success for each frame transmitted • R transmission bit rate • L bits/frame Propagation delay Normalized Delay-Bandwidth Product Time to transmit a frame

  18. Typical MAC Efficiencies Two-Station Example: • If a<<1, then efficiency close to 100% • As a approaches 1, the efficiency becomes low CSMA-CD (Ethernet) protocol: Token-ring network a΄= latency of the ring (bits)/average frame length = sum of bit delays at every ring adapter + the delay-bandwidth product

  19. Typical Delay-Bandwidth Products • Max size Ethernet frame: 1500 bytes = 12000 bits

  20. MAC protocol features • Delay-bandwidth product • Efficiency • Transfer delay • Fairness • Reliability • Capability to carry different types of traffic • Quality of service • Cost

  21. MAC Delay Performance • Frame transfer delay: from first bit of frame arrives at source MAC to last bit of frame delivered at destination MAC • Throughput: actual transfer rate through the shared medium measured in frames/sec or bits/sec • Parameters R bits/sec: Transmission rate and L bits/frame: Frame length X = L/R seconds/frame: frame transmission time λ frames/second: average arrival rate Load ρ = λ X= λ L/R < 1, rate at which “work” arrives

  22. Normalized Delay versus Load E[T]/X E[T] = average frame transfer delay • At low arrival rate, only frame transmission time • At high arrival rates, increasingly longer waits to access channel • Max efficiency typically less than 100% X = average frame transmission time Transfer delay 1 ρ ρ max 1 Load

  23. Dependence on Rtprop/L a’ > a E[T]/X a a’ Transfer Delay 1 r ρmax ρ’ max 1 Load

  24. Chapter 6Medium Access Control Protocols and Local Area Networks 6.2 Random Access

  25. 6.2.1 ALOHA • Wireless link to provide data transfer between main campus & remote campuses of University of Hawaii • Simplest solution: just do it • A station transmits whenever it has data to transmit • If more than one stations have data to transmit, they interfere with each other (collide) and data are lost • If ACK not received within timeout, then a station picks random backoff time (to avoid repeated collision) • Station retransmits frame after backoff time Retransmission First transmission t t0 t0+X t0-X t0+X+2tprop + B t0+X+2tprop Backoff period B Vulnerable period Retransmission if necessary Time-out Fig. 6.10: ALOHA random access scheme

  26. X X Prior interval frame transmission ALOHA Model • Definitions and assumptions • X: frame transmission time (assume constant) • S: throughput (average number of successful frame transmissions per X seconds) • G: load (average number of transmission attempts per X sec.) • Psuccess : probability a frame transmission is successful • Any transmission that begins during vulnerable period leads to collision • Assume Poisson arrival of data in each station • Success if no arrivals during 2X seconds

  27. Abramson’s Assumption • What is probability of no arrivals in vulnerable period? • Abramson assumption: The backoff algorithm spreads the retransmissions so that frame transmissions, new and repeated, are equally likely to occur at any time instant • This implies that the number of frames transmitted in a time interval has a Poisson distribution with the average number of arrivals of 2G/2X • G is the total arrival rate of frames (new arrivals + retransmission arrivals) per X seconds

  28. Throughput of ALOHA • Collisions are means for coordinating access • Max throughput is rmax=1/2e (18.4%) at G=0.5 WHY ? • Bimodal behavior: Small G, S≈G Large G, S↓0 • Collisions can snowball and drop throughput to zero e/2 = 0.184

  29. 6.2.2 Slotted ALOHA • Time is slotted in X seconds slots • Stations are synchronized to frame times • Stations having frame arrivals will transmit frames immediately at the first slot after the frame arrival • Backoff intervals in multiples of slots, depending on the number of collisions First transmission Retransmission t0+X t0 t (k+1)X t0 +X+2tprop kX t0 +X+2tprop+ B Time-out Collision Detection Retransmission If necessary Backoff period B Vulnerableperiod Only frames that arrive during the vulnerable period will make collision

  30. 0.368=1/e Ge-G S 0.184 Ge-2G G Throughput of Slotted ALOHA • The maximum throughput happens at G=1 • The maximum throughput of ALOHA system is not sensitive to the reaction time because stations act independently

  31. Reservation ALOHA cycle • Reservation protocol allows a large number of stations with infrequent traffic to reserve slots to transmit their frames in future cycles • Each cycle has mini-slots allocated for making reservations • Stations use slotted ALOHA during mini-slots to request slots . . . . . . Reservation mini-slots X-second slot

  32. Station A begins transmission at t = 0 A Station A captures channel at t = tprop A 6.2.3 Carrier Sense Multiple Access (CSMA) • A station senses the medium channel before it starts transmission to avoid too many collisions • If sensing idle, start transmission • If busy, either wait or schedule backoff (different options) • ACK is sent by the receiver • Vulnerable period is reduced to tprop • When collisions occur they involve entire frame transmission times • If tprop >X (or if a>1), no gain compared to ALOHA or slotted ALOHA

  33. CSMA Options • CSMA differs when the channel is sensed busy • 1-persistent CSMA (most greedy) • Start transmission as soon as the channel becomes idle again • Low delay and low efficiency • Non-persistent CSMA (least greedy) • Wait a backoff period, then sense the carrier again • High delay and high efficiency • p-persistent CSMA (adjustable greedy) • Wait till channel becomes idle, transmit with probability p; or wait one propagation delay tprop and re-sense with probability 1-p • Delay and efficiency can be balanced Sensing

  34. S a = 0.01 0.53 0.45 a =0.1 a = 1 0.16 G 1-Persistent CSMA Throughput • Better than Aloha & slotted Aloha for small a • Worse than Aloha for a > 1

  35. Non-Persistent CSMA Throughput S a = 0.01 • Higher maximum throughput than 1-persistent for small a • Worse than Aloha for a > 1 0.81 0.51 a = 0.1 0.14 a = 1 G

  36. 6.2.4 CSMA with Collision Detection (CSMA/CD) • Monitor for collisions & abort transmission • Stations with frames to send, first do carrier sensing • After beginning transmissions, stations continue listening to the medium to detect collisions • If a collision is detected during transmission, a short jamming signal is transmitted to ensure all other stations to know that collision has occurred before aborting the transmission, and then adopts a backoff algorithm to reschedule the future transmission • In CSMA, collisions result in wastage of X seconds spent transmitting an entire frame. But CSMA-CD reduces wastage to a time (2 propagation time) to detect collision and abort transmission

  37. A begins to transmit at t = 0 A B B begins to transmit at t = tprop- δ; B detects collision at t = tprop B A A detects collision at t= 2 tprop- δ A B CSMA/CD reaction time • Station A takes about 2 tpropto find out if it has been successfully captured the channel. • Question: minimum frame size ?

  38. (a) Busy Contention Busy Idle Contention Busy Time CSMA-CD Model • Assumptions • Collisions can be detected and resolved in 2tprop • Each contention interval takes 2tprop seconds, which is regarded as one minislot • Assume n stations are contending for the channel, and each may transmit with probability p in each contention time slot • Once the contention period is over (a station successfully occupies the channel), it takes X seconds for a frame to be transmitted • It takes tprop before the next contention period starts.

  39. Contention Resolution • How long does it take to resolve contention? • Contention is resolved (“success’) if exactly 1 station transmits in a minislot: • By taking derivative of Psuccess we find max occurs at p=1/n • The average number of minislots that elapse until a station successfully captures the channel is 1/Pmax = e = 2.718 time slots

  40. Busy Contention Busy Contention Busy Contention Busy CSMA/CD Throughput Time • At maximum throughput, systems alternates between contention periods and frame transmission times • where: R bits/sec, L bits/frame, X=L/R seconds/frame a = tprop/X nmeters/sec. speed of light in medium d meters is diameter of system 2e+1 = 6.44

  41. CSMA-CD Application: Ethernet • First Ethernet LAN standard used CSMA-CD • 1-persistent Carrier Sensing • R = 10 Mbps • tprop = 51.2 microseconds • 512 bits = 64 byte slot • accommodates 2.5 km + 4 repeaters • Truncated Binary Exponential Backoff • After nth collision, select backoff from {0, 1,…, 2k – 1}, where k=min(n, 10)

  42. For small a: CSMA-CD has best throughput For larger a: Aloha & slotted Aloha better throughput CSMA/CD 1-P CSMA Non-P CSMA ρmax Slotted ALOHA ALOHA a Maximum Achievable Throughputs for Random Access Schemes

  43. Carrier Sensing and Priority Transmission • Certain applications require faster response than others, e.g. real-time services and ACK messages • Impose different interframe times • High priority traffic sense channel for time t1 • Low priority traffic sense channel for time t2>t1 • High priority traffic, if present, seizes channel first • This priority mechanism is used in IEEE 802.11 wireless LAN

  44. Problems for Sections 6.1 and 6.2 • 6.1 (10%) • 6.6 (10%) • 6.8 (10%) • 6.10 (20%) • 6.13 (20%)

  45. Chapter 6Medium Access Control Protocols and Local Area Networks 6.3 Scheduling Approaches to Medium Access Control

  46. Scheduling for Medium Access Control • Schedule frame transmissions (assignment) to avoid collision in shared medium • More efficient channel utilization • Less variability in delay • Fairness provisioning to stations • Increased computational or procedural complexity • Two main approaches • Reservation • Polling

  47. M 1 2 3 6.3.1 Reservation Systems Reservation interval r Frame transmissions = d r d d r d d d Time Cycle n Cycle (n + 1) • Transmissions organized into cycles • Cycle: reservation interval + frame transmissions • Reservation interval has a minislot for each station to request reservations for frame transmissions Fig. 6.19 Basic reservation system: each station has own minislot for making reservation

  48. Reservation System Options • Centralized or distributed system • Centralized systems: A central controller listens to reservation information, decides order of transmission, issues grants • Distributed systems: Each station determines its slot for transmission from the reservation information • Single or Multiple Frames • Single frame reservation: Only one frame transmission can be reserved within a reservation cycle • Multiple frame reservation: More than one frame transmission can be reserved within a frame • Channelized or Random Access Reservations • Channelized (typically TDMA) reservation: Reservation messages from different stations are multiplexed without any risk of collision • Random access reservation: Each station transmits its reservation message randomly until the message goes through

  49. (a) 5 r 3 5 3 3 r 3 5 r 3 r 5 r 8 8 t (b) 8 5 r 3 5 3 3 r 3 5 r 3 r 5 r 8 8 t Example • Initially stations 3 & 5 have reservations to transmit frames • Station 8 becomes active and makes reservation • Cycle now also includes frame transmissions from station 8

  50. Efficiency of Reservation Systems • Assume minislot duration = vX • TDM single frame reservation scheme • If propagation delay is negligible, a single frame transmission requires (1+v)X seconds • Link is fully loaded when all M stations transmit, maximum efficiency is: • TDM k frame reservation scheme • If k consecutive frame transmissions can be reserved with a reservation message and if there are M stations, as many as Mk frames can be transmitted in XM(k+v) seconds • Maximum efficiency is:

More Related