Lecture 13: Medium Access Control I

Lecture 13: Medium Access Control I

ECE333:IntroductiontoCommunicationNetworks Fall2002 Lecture13:MediumAccessControlI Introduction ñ StaticAllocations 1 In Lecture 1, we classified links as either broadcast or point-to-point. With a broadcastlink,morethantwouserssharethesametransmissionmedia.Attimesan entirenetwork,inparticularaLAN,willconsistofasinglebroadcastlinkconnecting agroupofusers1.Inthiscasewerefertothenetworkitselfasabroadcastnetwork. Abroadcastlinkisalsocalledamultiaccesschannel.Insuchachannel, 1.Atransmittercanbeheardbymultiplereceivers 2.Areceivercanhearmultipletransmitters. The first point implies that a technique is needed to decide which receiver(s) a transmitted packet was meant for. A direct way to accomplish this is through addressing, i.e., each receiver is assigned an address in the form of a unique bit sequence,andthisaddressisthenaddedtotheheaderfield,beforesendingapacket. Regarding the second point, if two transmitters transmit at the same time, their signalsmayinterfereorcollideandnotberecoverableatthereceiver.Amethodis needed to share the broadcast link among the various transmitters and avoid such collisions; this is called the medium access control (MAC) problem. We will examine various solutions to this problem in the next several lectures. Before discussing these solutions in detail, we first describe several situations where broadcast links arise. We then look at where the medium access control problem is commonly addressed in a layered network architecture. Next we categorize the possiblesolutionapproaches,andbegindiscussingsomespecificapproaches. 1TheprimaryreasonLANshavebeendesignedthiswayisthatitisaverycosteffectiveapproachforconnectingtogetheragroupofusers inasmallgeographicalarea. 2 Examplesofbroadcastlinks: Inthefollowingwementionafewrepresentativeexamplesofbroadcastlinks,several otherexampleswillbeprovidedinlaterlectures. SharedBus:Asharedbusconsistsofasinglecable(e.g.acoaxialcable)towhichall usersareconnected.Asignaltransmittedbyoneuserwillpropagateinbothdirections onthecableandcanbereceivedbyanyotheruser.SeveralversionsofEthernetusea sharedbus,asdoestheLocalTalkLANdevelopedbyAppleComputerCorp. "Bent-pipe" Satellite Link: In a common form of satellite communication, users transmitmessagestoasatelliteinonefrequencybandandthesatellitesimplyrelay's anyreceivedsignalbackdowntoallusersinasecondfrequencyband. Sharedbus Satellitechannel 3 Cable TV Networks: In lecture 4, the cable TV distribution network is described. When this network is used for data communication, upstream communication from userstothehead-endisoverasharedlink,whichcanalsobeviewedasabroadcast medium. (Terrestrial) Wireless Networks: In wireless networks users communicate over a sharedwirelesschannel,forexampleagivenfrequencybandspecifiedbytheFCC.By natureawirelesschannelisabroadcastmedium.Oneofthemostwidespreadtypesof wireless networks is acellulartelephonenetwork.Anothertypeofwirelessnetwork that is increasinglycommonisawirelessLAN.AnumberofdifferentwirelessLAN standards have been defined including the IEEE 802.11 (Wi-Fi) wireless LAN standardandtheBluetoothstandard. 4 MACSublayer In the OSI protocol stack, channel allocation is addressed in the Medium access control(MAC)sublayer.ThisisasublayeroftheDataLinkLayer-consideredtobe below the Logical Link Control (LLC) sub-layer. Many LAN technologies, such as Ethernetarebasedonthistypeofarchitecture.TheMAClayerprovidesanunreliable connectionless service; if required, the LLC layer can convert this into a reliable servicebyusinganARQprotocol. virtualreliable LLC packetlink NetworkLayer LogicalLink MAC LLC LLC ControlSublayer virtualbitpipe MediumAccess ControlSublayer MAC modem MAC Physicallayer modem modem physical multiaccess medium 5 ChannelAllocation Basic problem: How to allocate a multiaccess channel among competing users. Inotherwords,weneedasetofrules(i.e.aprotocol)toalloweachuserto communicateandavoidinterference.Thereareavarietyofsolutionstothis problemthatareusedinpractice.Thesesolutionscanbeclassifiedaseither static or dynamic. With a static approach, the channel's capacity is essentiallydividedintofixedportions;eachuseristhenallocatedaportion for all time. If the user has no traffic to use in its portion, then it goes unused. With a dynamic approach the allocation of the channel changes based on the traffic generated by the users. Generally, a static allocation performsbetterwhenthetrafficispredictable.Adynamicchannelallocation tries to get better utilization and lower delay on a channel when the trafficisunpredictable. 6 StaticChannelAllocationTechniques TwocommonstaticchannelallocationtechniquesareTDMAandFDMA. Time Division Multiple Access (TDMA) – With TDMA the time axis is dividedintotimeslotsofafixedlength.Eachuserisallocatedafixedset of time slots at which it can transmit. TDMA requires that users be synchronized to a common clock. Typically extra overhead bits are requiredforsynchronization. Frequency Division Multiple Access (FDMA) – With FDMA the availablefrequencybandwidthisdividedintodisjointfrequencybands. Afixedbandisallocatedtoeachuser.FDMArequiresaguardband betweenuserfrequencybandstoavoidcross-talk. Another static allocation technique is Code Division Multiple Access (CDMA), this technique is used in many wireless networks (you can learn moreaboutCDMAinECE380). To a first approximation, if a channel has a capacity of R bps, and either FDMAorTDMAisused,theneachuserwillgetaneffectiverateofR/Nbps, whereNisthenumberofusers.(Thisisanapproximation,becausewehave neglected the overhead required for timing or guard bands as discussed above.) 7 Theperformanceofstaticchannelallocationdependson: Thevariationinthenumberofusersovertime ñ Thenatureofthetrafficsentbytheuser If the traffic on a shared medium is from a fixed number of sources each transmittingatafixedrate,staticchannelallocationcanbeveryefficient. VoiceandVideo(intheirfixedrateforms)havethispropertyandcommonly areplacedinasharedchannelusingastaticchannelallocation. Thevariationinthenumberofusersovertimeimpactstheperformanceofa staticallocationbecausesomemethodisneededtoallocatetheslottousers astheycomeandgo. Whenthetrafficsentbyauserisbursty,then,underastaticallocation,a user'sportionofthechannelmaybeemptywhenanotherusercoulduseit. Thisleadsonetothinkthatadynamicallocationwillperformbetterinsuch cases.Thisideaismadepreciseinthefollowingexample(thisisrelatedto problem6fromProblemSet4). 8 Example: ConsiderKuserstransmittingoveracommonsharedlinkwithcapacityC. AssumebyTDMA,orFDMAeachuserisstaticallyallocatedaportionofthe linkwithcapacityC/K. PacketsforeachuserarriveaccordingtoaPoissonprocesswithratell and areplacedintoabufferuntiltheyaretransmitted. Assume that packets for each user have lengths that are exponentially distributed with mean 1/mm , and thus have an average transmission time of K/mmmm C.Inthiscaseeachuser'spacketswaitinaseparateM/M/1queue. Theaveragedelayinsuchasystemis 1 T = TDMA m C / K - l Suppose that instead the packets from all K users could be placed into a singlebufferandservedFCFS. ThenthetotalarrivingtrafficstreamwouldbeaPoissonprocesswithrate Kllll .Theaveragetransmissiontimeofapacketwouldnowbe1/mm C. 9 Thustheaveragedelayinthesystemsisnow 1 ≈ 1 ’ 1 T = = ∆ ÷ ∂ = (1/ K)TTDMA m C - Kl « K ◊ m C / K - l Ω ByservingthepacketsFCFS,theaveragedelayisreducedbyafactorof 1/K. (Whenusedtocombinepacketsfromvarioussessionsonapoint-to-pointlink servingpacketsFCFSinthethiswayiscalledstatisticalmultiplexing.) The above suggests that to minimize delay with bursty traffic, thechannel shouldbeallocatedFCFStothevarioususers.However,thereisaproblem indoingthisinamultiaccesschannel.Specifically,thepacketsofthevarious usersarenotplacedintoasinglebuffer,butarebufferedateachsource.The varioususersareunawareofthearrivalsattheotherusers.Thefactthat thisinformationisdistributedamongtheusersisthemainchallengetobe overcomebyadynamicchannelallocationstrategy. 10.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    5 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us