medium access control
play

Medium Access Control Guevara Noubir CS4700 CS5700 - PowerPoint PPT Presentation

Medium Access Control Guevara Noubir CS4700 CS5700 Fundamentals of Computer Networks Direct Link Networks - MAC Mul;ple Access Schemes: Summary Sta;ons can communicate if they


  1. Medium ¡Access ¡Control ¡ Guevara ¡Noubir ¡ CS4700 ¡CS5700 ¡ Fundamentals of Computer Networks Direct Link Networks - MAC

  2. Mul;ple ¡Access ¡Schemes: ¡ Summary ¡ • Sta;ons ¡can ¡communicate ¡if ¡they ¡use ¡different ¡combina;ons ¡ of: ¡frequency, ¡;me ¡slot, ¡code, ¡loca;on, ¡polariza;on ¡ – Note: ¡it ¡is ¡not ¡always ¡possible ¡to ¡implement ¡all ¡these ¡access ¡schemes ¡ • An ¡atomic ¡resource ¡can ¡be ¡defined ¡as: ¡ ¡ – (freq, ¡;me-­‑slot, ¡code, ¡loca;on, ¡polariza;on) ¡ – The ¡simultaneous ¡use ¡of ¡an ¡atomic ¡resource ¡results ¡in ¡a ¡“collision” ¡and ¡ loss ¡of ¡packets ¡ • Medium ¡Access ¡Protocols ¡define ¡the ¡rules ¡for ¡sta;ons ¡to ¡share ¡ these ¡resources ¡ • Algorithms ¡for ¡MAC ¡can ¡be ¡used ¡in ¡other ¡contexts ¡ – distributed ¡systems ¡( e.g., ¡databases) ¡ Fundamentals of Computer Networks Direct Link Networks - MAC

  3. Medium ¡Access ¡Control ¡Protocols ¡ Fundamentals of Computer Networks Direct Link Networks - MAC

  4. MAC ¡Protocols: ¡Evalua;on ¡ • Throughput ¡ • Delay ¡ • Buffering ¡ • Stability ¡ We ¡also ¡generally ¡assume ¡that: ¡ – channel ¡is ¡errorless ¡ – a ¡feedback ¡is ¡available ¡ Fundamentals of Computer Networks Direct Link Networks - MAC

  5. SloUed ¡Aloha ¡[Abramson1970] ¡ • History: ¡developed ¡by ¡the ¡University ¡of ¡Hawaii ¡to ¡connect ¡data ¡ terminals ¡to ¡a ¡central ¡computer ¡using ¡radio ¡channels ¡ • Assump;ons ¡on ¡an ¡ideal ¡ slo(ed ¡ mul;-­‑access ¡model: ¡ – SloUed ¡system ¡(discrete ¡system, ¡no ¡sensing) ¡ – Poisson ¡arrivals ¡on ¡each ¡node: ¡ λ /m ¡( m ¡is ¡the ¡number ¡of ¡nodes) ¡ • Prob(i ¡arrivals ¡within ¡t ¡units ¡of ¡;me) ¡= ¡( λ t) i e -­‑ λ i /i! ¡ • Poisson ¡process ¡is ¡basically ¡a ¡Bernouilli ¡trial ¡in ¡the ¡limit ¡ – Collision ¡or ¡perfect ¡recep;on ¡ – Feedback: ¡0, ¡1, ¡collision; ¡no ¡sensing ¡ – Retransmissions: ¡colliding ¡packets ¡are ¡retransmiUed ¡un;l ¡successfully ¡ received ¡( ¡=> ¡backlogged ¡nodes) ¡ – Buffering ¡op;ons: ¡ • No ¡buffering: ¡packets ¡arriving ¡at ¡backlogged ¡nodes ¡are ¡discarded ¡ • Infinite ¡set ¡of ¡nodes ¡( m →∞ ¡ ): ¡packets ¡always ¡arrive ¡at ¡new ¡nodes ¡ Fundamentals of Computer Networks Direct Link Networks - MAC

  6. SloUed ¡Aloha ¡Algorithm ¡ • Unbacklogged ¡nodes ¡transmit ¡a ¡newly ¡arriving ¡packet ¡ in ¡the ¡first ¡slot ¡ader ¡the ¡packet ¡arrival ¡ • When ¡a ¡collision ¡occurs, ¡each ¡node ¡sending ¡one ¡of ¡the ¡ colliding ¡packets ¡becomes ¡backlogged. ¡Backlogged ¡ nodes ¡wait ¡for ¡a ¡random ¡number ¡of ¡slots ¡before ¡ retransmifng. ¡Full ¡analysis ¡considers ¡separate ¡ retransmissions ¡probability ¡ Fundamentals of Computer Networks Direct Link Networks - MAC

  7. Performance ¡of ¡SloUed ¡Aloha ¡ • Simplified ¡analysis: ¡ – Assump;on: ¡retransmissions ¡from ¡backlogged ¡nodes ¡are ¡sufficiently ¡ randomized ¡to ¡approximate ¡the ¡total ¡transmission ¡by ¡a ¡Poisson ¡process ¡ of ¡rate ¡ G ¡> ¡ λ . ¡ – Probability ¡of ¡successful ¡transmission: ¡ Ge -­‑ G ¡ – In ¡equilibrium: ¡arrival ¡rate ¡should ¡be ¡equal ¡to ¡departure ¡rate ¡ – Maximum ¡possible ¡departure ¡rate ¡occurs ¡at ¡ G ¡= ¡1 ¡=> ¡departure ¡rate ¡= ¡1/ e . ¡ • This ¡analysis ¡doesn’t ¡take ¡into ¡account ¡the ¡dynamic ¡of ¡the ¡ system: ¡ G ¡changes ¡as ¡a ¡func;on ¡of ¡the ¡number ¡of ¡backlogged ¡ nodes. ¡However ¡it ¡correctly ¡iden;fies ¡the ¡maximum ¡achievable ¡ throughput, ¡and ¡op;mum ¡value ¡for ¡ G . ¡ Fundamentals of Computer Networks Direct Link Networks - MAC

  8. Pure ¡Aloha ¡Protocol ¡ ¡ • Packets ¡arrive ¡according ¡to ¡a ¡Poisson ¡process ¡ • Throughput ¡= ¡Ge -­‑2G ¡ • Maximum: ¡1/2e ¡ Fundamentals of Computer Networks Direct Link Networks - MAC

  9. Carrier ¡Sense ¡Protocols ¡ ¡ ¡ ¡Use ¡the ¡fact ¡that ¡in ¡some ¡networks ¡you ¡can ¡ sense ¡the ¡medium ¡to ¡ check ¡whether ¡it ¡is ¡currently ¡free ¡ – 1-­‑persistent ¡CSMA ¡ – non-­‑persistent ¡CSMA ¡ – p-­‑persistent ¡protocol ¡ – CSMA ¡with ¡collision ¡Detec;on ¡(CSMA/CD) ¡ • 1-­‑persistent ¡CSMA ¡ – when ¡a ¡sta;on ¡has ¡a ¡packet: ¡ • it ¡waits ¡un;l ¡the ¡medium ¡is ¡free ¡to ¡transmit ¡the ¡packet ¡ • if ¡a ¡collision ¡occurs, ¡the ¡sta;on ¡waits ¡a ¡random ¡amount ¡of ¡;me ¡ – first ¡transmission ¡results ¡in ¡a ¡collision ¡if ¡several ¡sta;ons ¡are ¡wai;ng ¡for ¡the ¡ channel ¡ Fundamentals of Computer Networks Direct Link Networks - MAC

  10. Carrier ¡Sense ¡Protocols ¡( Cont’d ) ¡ • non-­‑persistent ¡CSMA ¡ – when ¡a ¡sta;on ¡has ¡a ¡packet: ¡ • if ¡the ¡medium ¡is ¡free, ¡transmit ¡the ¡packet ¡ • otherwise ¡wait ¡for ¡a ¡random ¡period ¡of ¡;me ¡and ¡repeat ¡the ¡algorithm ¡ – higher ¡delays, ¡but ¡beUer ¡performance ¡than ¡pure ¡ALOHA ¡ • p-­‑persistent ¡protocol ¡ – when ¡a ¡sta;on ¡has ¡a ¡packet ¡wait ¡un;l ¡the ¡medium ¡is ¡free: ¡ • transmit ¡the ¡packet ¡with ¡probability ¡ p ¡ • wait ¡for ¡next ¡slot ¡with ¡probability ¡1-­‑ p ¡ – beUer ¡throughput ¡than ¡other ¡schemes ¡but ¡higher ¡delay ¡ • CSMA ¡with ¡collision ¡Detec;on ¡(CSMA/CD) ¡ – sta;ons ¡abort ¡their ¡transmission ¡when ¡they ¡detect ¡a ¡collision ¡ – e.g., ¡Ethernet, ¡IEEE802.3 ¡ Fundamentals of Computer Networks Direct Link Networks - MAC

  11. Comparison ¡ Load Fundamentals of Computer Networks Direct Link Networks - MAC

  12. Throughputs ¡of ¡Some ¡ ¡ Random ¡Access ¡Protocols ¡ Protocol Throughput Pure-ALOHA S = Ge - 2 G Slotted-ALOHA S = Ge -G Non slotted 1-persistent Slotted 1-persistent CSMA Nonpersistent non slotted CSMA Nonpersistent slotted CSMA G: ¡ load ¡(includes ¡both ¡successful ¡transmissions ¡and ¡retransmissions) ¡ S : ¡successful ¡transmission ¡ ¡ a: ¡ ra;o ¡of ¡propaga;on ¡delay ¡to ¡the ¡packet ¡transmission ¡delay ¡ Fundamentals of Computer Networks Direct Link Networks - MAC

  13. Ethernet ¡ • History: ¡evolu;on ¡from ¡Aloha, ¡CSMA, ¡CSMA/CD ¡(by ¡Xerox ¡PARC) ¡ => ¡Ethernet, ¡=> ¡IEEE802.3 ¡(Digital, ¡Intel, ¡Xerox) ¡ – There ¡are ¡slight ¡differences ¡between ¡Ethernet ¡and ¡802.3 ¡(e.g., ¡802.3 ¡length ¡ field ¡is ¡used ¡for ¡packet ¡type ¡in ¡Ethernet, ¡various ¡transmission ¡speeds ¡for ¡ 802.3 ¡from ¡1 ¡Mbps ¡to ¡beyond ¡10 ¡Gbps) ¡ • Physical ¡layer ¡(10Mbps ¡Ethernet): ¡ ¡ – Manchester ¡encoding ¡(bit ¡syncro, ¡no-­‑dc ¡component) ¡ – Cabling: ¡maximum ¡500 ¡meters ¡with ¡up ¡to ¡4 ¡repeaters ¡(max ¡2500m) ¡ • Physical ¡layer ¡evolved ¡to ¡ ¡ – 100Mbps, ¡1Gbps, ¡10Gbps, ¡… ¡100Gbps ¡ – Auto-­‑nego;a;on ¡capability ¡ – Can ¡also ¡carry ¡power ¡ Fundamentals of Computer Networks Direct Link Networks - MAC

  14. Frame ¡Format ¡(IEEE802.3) ¡ • Preamble ¡: ¡7x10101010… ¡( allows ¡the ¡receiver’s ¡clock ¡to ¡synchronize) ¡ • SF: ¡10101011 ¡ • 10Mbps ¡has ¡only ¡6 ¡bytes ¡addresses: ¡ – Unicast: ¡unique ¡per ¡adaptor ¡(ranges ¡are ¡allocated ¡to ¡manufacturers) ¡ – Broadcast: ¡FF:FF:FF:FF:FF:FF ¡ – Mul;cast: ¡first ¡address ¡bit ¡= ¡1 ¡ – Internet ¡Mul;cast: ¡01:00:5e:00:00:00 ¡-­‑to-­‑ ¡01:00:5e:7f:ff:ff ¡ • Pad: ¡minimum ¡frame ¡length ¡of ¡64 ¡bytes ¡ Fundamentals of Computer Networks Direct Link Networks - MAC

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend