les liens de communication et...

99
Les liens de communication et l’accès multiple Bloc 2, INF 586 Bloc 2, INF 586 Walid Dabbous Walid Dabbous INRIA Sophia Antipolis INRIA Sophia Antipolis

Upload: others

Post on 14-Apr-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Les liens de communication et l’accès multiple

Bloc 2, INF 586Bloc 2, INF 586

Walid DabbousWalid Dabbous

INRIA Sophia AntipolisINRIA Sophia Antipolis

Page 2: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Contenu du bloc

�� La La couchecouche physiquephysique�� notions de base notions de base sursur la transmissionla transmission

�� numériquenumérique�� analogiqueanalogique

�� L’accèsL’accès multiplemultiple�� les techniques de baseles techniques de base�� les les protocolesprotocoles

�� Le Le contrôlecontrôle de liaisonde liaison�� fera partie du 4fera partie du 4èmeème blocbloc

Page 3: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Portée de ce bloc

Nœud réseauAmplificateur

Répéteur

…………………

Canal partagé

Page 4: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

La couche physique

Page 5: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Transmission: some definitions

�� Data: entities that convey informationData: entities that convey information

�� Analog: take continuous values in some intervalAnalog: take continuous values in some interval

�� Digital: take discrete valuesDigital: take discrete values

�� Analog data: voice, video, temperature, etc.Analog data: voice, video, temperature, etc.

�� Digital data: character strings, digitized audio or video, etc.Digital data: character strings, digitized audio or video, etc.

�� Signal: Electric or electromagnetic representation of dataSignal: Electric or electromagnetic representation of data

�� Signaling Signaling (here)(here): physical propagation of the signal along suitable : physical propagation of the signal along suitable mediummedium

�� Transmission: communication of data by the propagation and Transmission: communication of data by the propagation and processingprocessing of signalsof signals

Page 6: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

More definitions

�� Analog signal: a continuously varying electromagnetic wave that Analog signal: a continuously varying electromagnetic wave that may be propagated over a variety of (wired or wireless) mediamay be propagated over a variety of (wired or wireless) media

�� Digital signal: a discrete or discontinuous signal such as voltaDigital signal: a discrete or discontinuous signal such as voltage ge pulses that may be propagated over a pulses that may be propagated over a wiredwired mediummedium

�� Wired media: guided transmission media e.g. twisted pair, coaxiaWired media: guided transmission media e.g. twisted pair, coaxial l cable, optical fiber cable, optical fiber (only transmits analog signal(only transmits analog signal--encoded beam of light)encoded beam of light)

�� Wireless (unguided) media: radio, terrestrial or satellite Wireless (unguided) media: radio, terrestrial or satellite microwave, infraredmicrowave, infrared

�� Analog signaling: propagation of analog signalAnalog signaling: propagation of analog signal

�� Digital signaling: propagation of digital signalDigital signaling: propagation of digital signal

�� Analog transmission: a means of transmitting analog signals Analog transmission: a means of transmitting analog signals without regard to their content (analog or digital data); amplifwithout regard to their content (analog or digital data); amplifiers iers are used to boost the (analog) signal.are used to boost the (analog) signal.

Page 7: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

More definitions

�� Digital transmission: Digital transmission: thethe transmission of digital data, transmission of digital data, usingusing eithereitheran an analoganalog or a digital signal, in or a digital signal, in whichwhich thethe digital data are digital data are recoveredrecovered and and repeatedrepeated atat intermediateintermediate points (points (repeatersrepeaters) to ) to reducereduce thethe effectseffects of noise.of noise.

�� coder (sampler+coder (sampler+quantizerquantizer++digitizedigitize): ): transformstransforms analoganalogdata/signal to a digital signaldata/signal to a digital signal

�� ModulatorModulator : : transformstransforms a digital bit a digital bit streamstream intointo an an analoganalog signal signal suitablesuitable for transmission for transmission overover analoganalog mediamedia

�� absoluteabsolute bandwidthbandwidth : : widthwidth of of thethe frequencyfrequency spectrumspectrum ; ; FFmaxmax--FFminmin

�� bandwidthbandwidth: : frequencyfrequency band band wherewhere «« mostmost » of » of thethe signal signal energyenergyisis containedcontained (e.g. (e.g. halfhalf--powerpower bandwidthbandwidth, 3dB , 3dB belowbelow peakpeak value)value)

Page 8: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Data rate and signal elements

�� Signal Signal elementelement: : thethe part of a signal part of a signal thatthat occupiesoccupies thethe shortestshortestintervalinterval of a of a signalingsignaling codecode�� Digital signal Digital signal elementelement: a voltage pulse of constant amplitude: a voltage pulse of constant amplitude�� AnalogAnalog signal signal elementelement: a pulse of constant : a pulse of constant frequencyfrequency, phase and , phase and

amplitudeamplitude�� Data Data elementelement: a single : a single binarybinary oneone or or zerozero (bit).(bit).

�� Data rate (R in Data rate (R in bpsbps): rate ): rate atat whichwhich data data elementselements are are transmittedtransmitted

�� SignalingSignaling or «or « modulationmodulation » rate (D in baud): rate » rate (D in baud): rate atat whichwhich signal signal elementselements are are transmittedtransmitted..

�� MultilevelMultilevel signal modulation techniques: signal modulation techniques: reducesreduces D because D because eacheach signal signal elementelement representsrepresents b=Logb=Log22((numbernumber of of levelslevels) bits.) bits.

Page 9: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

[next] [prev] [prev-tail] [tail] [up]

2.2 Mathematical Modeling

Periodic functions g(t) = g(t + T) for some constant T, called period, and all t. Frequency f = (1/T)--the number of times a repetition occures in a fixed time interval (e.g., cycles per second or Hertz).

Phase

Data Transmitted by varying some physical property. Possible representations for the character whose binary code is `01110010': Binary data from frequency 0's are represented by low frequencies; 1's by high frequencies.

Binary data from amplitude 0's and 1's are represented by voltage level

Low frequency High frequency

Page 1 of 3Mathematical Modeling

13/01/2010mhtml:file://C:\Documents and Settings\dabbous\Mes documents\Mathematical Modeling.mht

Page 10: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Fourier analysis Any reasonably behaved periodic function can be represented by sums of sine and cosine functions

where , and an and bn are computable from g by integration.

Example: The character 'b' The bit pattern to be submitted is `01100010'. The voltage output can be the function g(t) with the coefficients a0 = 3/8, an = (1/ n)[...], and bn = (1/ n)[...]. Example: square waves Can be approximated by

n = 1 sin(2 ft)

n = 3

n = 1, 3

n = 1, 3, 5

Page 2 of 3Mathematical Modeling

13/01/2010mhtml:file://C:\Documents and Settings\dabbous\Mes documents\Mathematical Modeling.mht

Page 11: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Observation The larger the bandwidth (of frequencies) the easier the interpretation is, and so also the data rate can be increased. Cost The energy to transmit frequency nf is proportional to an 2 + bn 2 . Hence, larger bandwidth implies higher cost.

[next] [prev] [prev-tail] [front] [up]

Page 3 of 3Mathematical Modeling

13/01/2010mhtml:file://C:\Documents and Settings\dabbous\Mes documents\Mathematical Modeling.mht

Page 12: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Relation between data rate and bandwidth (an example)

�� Square Square wavewave s(t) s(t) withwith amplitudes A and amplitudes A and --A, A, periodperiod T=1/fT=1/f

�� s(t) = A.4/s(t) = A.4/ππ..ΣΣ1/1/kk.sin.sin(2(2ππkf.tkf.t) () (kk oddodd, , kk=1=1-->inf)>inf)

�� limitlimit bandwidthbandwidth to to firstfirst threethree frequencyfrequency components, T = 1 components, T = 1 µµss�� BwBw = 5MHz = 5MHz --1MHz=4MHz, R = 2 1MHz=4MHz, R = 2 MbpsMbps (1 bit (1 bit everyevery 0.5 0.5 µµs)s)

�� limitlimit to to firstfirst twotwo frequencyfrequency components, T=0.5 components, T=0.5 µµss�� BwBw = 6MHz = 6MHz -- 2MHz = 4MHz, R = 4Mbps (1 bit 2MHz = 4MHz, R = 4Mbps (1 bit everyevery 0.25 0.25 µµs)s)

�� TheorticallyTheortically unboundedunbounded, but , but economicaleconomical andand practicalpractical limitations limitations --> > distortiondistortion

tA

BW = 4 MHz

Page 13: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

[next] [prev] [prev-tail] [tail] [up]

4.2 Digital Data, Digital Signal

Receiver needs to determine bit information from the signal level, for instance, by sampling the signal level at the middle if the time interval and comparing the value to a threshold.

� Receiver needs to know the timing of each bit in transmitter through a � A common clock (expensive) � Mechanism based on the encoding of the transmitted signal

� Interference and distortion can be reduced by � Avoiding direct current (dc) components � Concentrating the transmission power at the center of the bandwidth

� Bit error rate increases with: Data rate, and (noise strength) / (signal strength) ratio � Data rate can be increased with: Bandwidth and Encoding

Nonreturn-to-Zero-Level (NRZ-L) Signal Encoding

Positive and negative voltage levels for binary digits.

Page 1 of 6Digital Data, Digital Signal

13/01/2010mhtml:file://C:\Documents and Settings\dabbous\Mes documents\Digital Data, Digital Signal.mht

Page 14: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

� Easy to engineer � Suffers from the presence of dc component � Lack of synchronization capabilities due to potential of long runs of unchanged voltage levels. � Attractive for digital magnetic recording, but not for signal transmissions. � The spectral density graph shows that most of the energy spent between dc and half the bit rate

Nonreturn-to-Zero-Inverted (NRZI) Signal Encoding

NRZI is a differential encoding in which the signal is decoded by comparing the polarity of adjacent signal levels: 1 encoded by transition between levels and 0 encoded by a lack of transition.

Similar advantages and disadvantages as NRZ-L.

Bipolar-AMI Signal Encoding

A multilevel binary approach in which binary 0 is represented by a lack of pulse, and a binary 1 is represented by a positive or a negative pulse. The

Page 2 of 6Digital Data, Digital Signal

13/01/2010mhtml:file://C:\Documents and Settings\dabbous\Mes documents\Digital Data, Digital Signal.mht

Page 15: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

binary 1 pulses must alternate in polarity.

� Each 1 introduces a transition that can be used for synchronization � Error detection is possible for a single added or lost pulse. � Since 1 signals alternate in voltage, there is no dc component. � Bandwidth considerable smaller that in the NRZ encodings. � Long runs of 0's don't allow synchronization.

For low data-rate transmissions in ISDN the problem is overcome by inserting extra bits that force transmissions. At high rates, scrambling is used.

� The multilevel binary encoding has its overhead � Three levels can represent log 2 3 = 1.58 bits � Receivers need to distinguish more levels of signals, requiring 3dB more signal power for three-valued signals compared to two-valued

signals with the same error probability. � The spectral density graph shows that the bandwidth is smaller than for NRZ

AMI stands for alternate mark inversion, whereas mark and space historical references to binary digits 1 and 0.

Pseudoternary Signal Encoding

A multilevel binary encoding that complements the bipolar-AMI encoding: binary 1 is represented by a lack of pulse, and a binary 0 is represented by a positive or a negative pulse. The binary 0 pulses must alternate in polarity.

Page 3 of 6Digital Data, Digital Signal

13/01/2010mhtml:file://C:\Documents and Settings\dabbous\Mes documents\Digital Data, Digital Signal.mht

Page 16: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Manchester Signal Encoding

Manchester encoding is a biphase encoding in which the transition takes place in the middle of the bit period: a low-to-high transition for 1, and a high-to-low transition for 0.

� Allows for clocking mechanism for both kinds of bits. � Modulation rate twice than that of NRZ, implying a greater bandwidth � The spectral density graph shows that there is not a dc component and the bandwidth is relatively narrow � Noise on the line has to invert the signal before and after the inverted bit to avoid detection. � Has been specified for the IEEE 802.3 standard for baseband coaxial cable and twisted-pair CSMA/CD bus LAN's. � Require high signaling rate relative to data rate, making it too costly for long-distance applications.

Differential Signal Encoding

A biphase encoding in which transition at the start of the bit period represents 0, and a lack of transition at the start of the bit represents 1. In addition, a transition occurs at the middle of each bit period just for the purpose of clocking.

� Has been specified for the IEEE 802.5 token ring LAN, using shielded twisted pair.

Bipolar with 8-zeros Substitution (B8ZS) Signal Encoding

The bipolar-AMI encoding supplemented with a scrambling scheme, which uses two code violations to ensure synchronization in runs of 0's.

Page 4 of 6Digital Data, Digital Signal

13/01/2010mhtml:file://C:\Documents and Settings\dabbous\Mes documents\Digital Data, Digital Signal.mht

Page 17: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

� Replace `00000000' with `000+-0-+', if the preceding voltage pulse was positive � Replace `00000000' with `000-+0+-', if the preceding voltage pulse was not positive

� The amount of data remains unchanged. � The spectrum graph shows that there is no dc component, with most of the energy concentrating in a relative sharp spectrum. Making the

encoding suitable for high-rate transmissions. � Used mainly in North America.

High-Density Bipolar 3-Zeros (HDB3) Signal Encoding

The bipolar-AMI encoding supplemented with the following substitution scheme for `0000' runs.

Number of bipolar pulses (ones) since last substitution

Polarity of preceding pulse Odd even

- 000- +00++ 000+ -00-

Page 5 of 6Digital Data, Digital Signal

13/01/2010mhtml:file://C:\Documents and Settings\dabbous\Mes documents\Digital Data, Digital Signal.mht

Page 18: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

� Used in Europe and Japan � Successive violations are of alternate polarity to avoid dc component.

[next] [prev] [prev-tail] [front] [up]

Page 6 of 6Digital Data, Digital Signal

13/01/2010mhtml:file://C:\Documents and Settings\dabbous\Mes documents\Digital Data, Digital Signal.mht

Page 19: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

[next] [prev] [prev-tail] [tail] [up]

4.3 Digital Data, Analog Signal

Amplitude-Shift Keying (ASK) Encoding

� On voice-grade lines, typically used for up to 1200 bps.

Frequency-Shift Keying (FSK) Encoding

� On voice-grade line is typically used up to 1200 bps. � On radio is used in the range 3-30 MHz � On local area with coaxial cables it can be used with higher frequencies.

Page 1 of 3Digital Data, Analog Signal

13/01/2010mhtml:file://C:\Documents and Settings\dabbous\Mes documents\Digital Data, Analog Signal.mht

Page 20: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

� A voice-grade line uses frequencies in the range of 300-3400 Hz To achieve full-duplex transmission, the bandwidth can be split ted at 1700 Hz.

Frequencies centered on 1200 Hz and 2200 Hz may be used for representing binary digits through frequency shifts of 100 Hz.

Phase-Shift Keying (PSK) Encoding

A two-phase system may use a shift in phase to represent the value 1, and no shift in phase to represent the digit 0.

� The frequency fc depends on the carrier. it is not part of the encoding scheme.

� With smaller phase shifts more bits can be represented. In particular, quadrature phase-shift keying (QPSK) represents two bits.

Page 2 of 3Digital Data, Analog Signal

13/01/2010mhtml:file://C:\Documents and Settings\dabbous\Mes documents\Digital Data, Analog Signal.mht

Page 21: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

� Each angle can get more than one amplitude. In particular, a standard 9600 bps modem uses 12 angles, four of which have two amplitude values.

It is not difficult to extend the encoding to cover more bits, but with that comes a requirement for a more complex hardware.

[next] [prev] [prev-tail] [front] [up]

Page 3 of 3Digital Data, Analog Signal

13/01/2010mhtml:file://C:\Documents and Settings\dabbous\Mes documents\Digital Data, Analog Signal.mht

Page 22: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

[next] [prev] [prev-tail] [tail] [up]

4.4 Analog Data, Digital Signal

Pulse Code Modulation (PCM)

Pulse code modulation relies on the following result.

Sampling Theorem. A signal can be reconstructed from a sample taken at

� regular time intervals � a rate higher than twice the highest significant frequency

The conversion has three stages

Sampling of amplitude signals (PAM pulses) Digitizing of the amplitude signals (PCM pulses) Encoding of the stream of bits

Page 1 of 3Analog Data, Digital Signal

13/01/2010mhtml:file://C:\Documents and Settings\dabbous\Mes documents\Analog Data, Digital Signal.mht

Page 23: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

� The quantization of the PAM pulse introduces quantization error, not allowing the recovery of the original pulse.

� A reduction in the signal distortion can be obtained by adding bits. The quantizing noise satisfies S/N = 6n + 1.8 dB.

� A reduction in the signal distortion can be obtained by nonuniform quantization which is finer at low amplitudes.

� For voice signals, nonlinear encoding improved the PCM S/N ratio by 24-30 dB.

Performance

Digital techniques are getting popular due to

� Use of repeaters, instead of amplifiers, implying no additive noise.

signal bandwidth no of samples per second bits per code rate in bits rate in Hz

voice 4 kHz 8000 7 8000 × 7 = 56 kbps 28 kHzcolor TV 4.6 MHz 10 92 Mbps

Page 2 of 3Analog Data, Digital Signal

13/01/2010mhtml:file://C:\Documents and Settings\dabbous\Mes documents\Analog Data, Digital Signal.mht

Page 24: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

� Use of time-division multiplexing, instead of frequency-division multiplexing, implying no intermodulation noise. � Availability of efficient digital switching techniques. � Development of more efficient coding techniques. For instance, taking into account that large portions remain unchanged between consecutive

video frames.

Delta Modulation (DM)

� The time and amplitude axes are quantized

� A staircase function approximation is derived, going up when the approximation is below the signal and going down otherwise.

� The output modulation signal represents upward stair by 1 and downward stair by 0.

� The receiver may use smoothing algorithm when reconstructing the input signal.

� Finer division on time slot provides better approximation with the cost of extra data.

� Finer amplitude division reduces the quantizing noise for small slops. Coarser amplitude division reduces the slope-overload noise for high slops.

� DM is easier than PCM to implement, but it exhibits worse signal to noise ratio for the same data rate.

[next] [prev] [prev-tail] [front] [up]

Page 3 of 3Analog Data, Digital Signal

13/01/2010mhtml:file://C:\Documents and Settings\dabbous\Mes documents\Analog Data, Digital Signal.mht

Page 25: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

[prev] [prev-tail] [tail] [up]

4.5 Analog Data, Analog Signal

Modulation is the process of combining an input signal m(t) and a carrier at frequency fc to produce a signal s(t) whose bandwidth is centered at fc . Motivation for conversion

� The data frequencies may not allow for effective transmission � Frequency-division multiplexing

Amplitude Modulation (AM)

Called also double-sideband transmitted carrier (DSBTC).

� The outcome is a multiplication of the carrier amplitude by the amplitude of the envelope � The dc component prevents loss of information that would be cause if the envelope boundaries cross one another

Frequency Modulation (FM) and Phase Modulation (PM)

Variants of the amplitude modulation which modifies the angle of carrier signal instead of its amplitude.

[prev] [prev-tail] [front] [up]

data carrying signal (modulating wave)

envelope with dc components

carrier

Amplitude modulated wave

Page 1 of 1Analog Data, Analog Signal

13/01/2010mhtml:file://C:\Documents and Settings\dabbous\Mes documents\Analog Data, Analog Signal.mht

Page 26: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Digital encoding techniques -comparison criteria�� EncodingEncoding schemescheme: : mappingmapping ofof data data elementselements to signal to signal elementselements

�� Signal Signal spectrumspectrum�� lacklack of of highhigh frequencyfrequency and and dcdc componentscomponents�� concentratedconcentrated spectral spectral densitydensity

�� ClockingClocking�� provideprovide synchronisation synchronisation withwith suitablesuitable encodingencoding

�� ErrorError detectiondetection�� builtbuilt in in errorerror detectiondetection, , fasterfaster thanthan data data linklink controlcontrol

�� signal signal interferenceinterference and noise and noise immunityimmunity

�� CostCost and and complexitycomplexity ((increasesincreases withwith signallingsignalling rate)rate)

Page 27: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Digital signal encoding formats

0 000001 1111NRZ-L

NRZI

Bipolar-AMI

Pseudoternary

Manchester

DifferentialManchester

Page 28: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Encoding digital data to digital signals

�� NonReturnNonReturn to to ZeroZero--LevelLevel (NRZ(NRZ--L): 0=+V, 1= L): 0=+V, 1= -V

�� NRZ NRZ InvertInvert on 1s (NRZI): 0=no transition, 1=on 1s (NRZI): 0=no transition, 1=transitiontransition((differentialdifferential encodingencoding))

�� BipolarBipolar--AMIAMI: 0=no : 0=no lineline signal, 1= positive or signal, 1= positive or negativenegative levellevelalternatingalternating for successive for successive onesones

�� PseudoternaryPseudoternary: positive or : positive or negativenegative levellevel alternatingalternating for for successive successive zeroszeros, 1=no , 1=no lineline signalsignal

�� Manchester: 0=transition Manchester: 0=transition fromfrom highhigh to to lowlow in middle of bit in middle of bit intervalinterval, 1=transition , 1=transition fromfrom lowlow to to highhigh

�� DifferentialDifferential manchestermanchester ((alwaysalways a transition in middle of a transition in middle of intervalinterval): 0: transition ): 0: transition atat beginningbeginning of of intervalinterval, 1=no transition, 1=no transition

�� HDB3: HDB3: basedbased on on BipolarBipolar--AMIAMI (four (four zeroszeros replacedreplaced by code by code violation (signal pattern violation (signal pattern notnot allowedallowed))))

Page 29: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Encoding schemes characteristics

�� NRZI uses NRZI uses differentialdifferential encodingencoding�� to to detectdetect a transition a transition isis easiereasier to compare to a to compare to a thresholdthreshold in in

presencepresence of noiseof noise�� immune to (immune to (accidentalaccidental) ) polaritypolarity inversion inversion

�� NRZ codes are NRZ codes are easyeasy to to enginneerenginneer andand mostmost energyenergy isis betweenbetweenDC DC andand halfhalf thethe bit ratebit rate�� but but dcdc component and component and lacklack of of synchronizationsynchronization

�� MultilevelMultilevel binarybinary ((AlternateAlternate Mark Inversion) Mark Inversion) (mark (mark meansmeans 1, 1, spacespace meansmeans 0)0)

�� no no dcdc component & component & providesprovides betterbetter synchronizationsynchronization�� howeverhowever long string of 0s (AMI) or 1s (long string of 0s (AMI) or 1s (pseudoternarypseudoternary) ) stillstill a a pbpb

�� lessless efficient efficient thanthan NRZ NRZ (1 signal (1 signal elementelement carriescarries 1 bit 1 bit insteadinstead of logof log223 bits )3 bits )

�� BiphaseBiphase�� alwaysalways a transition a transition --> «> « self self clockedclocked » » mechanismmechanism�� no no dcdc component, but component, but bandwidthbandwidth widerwider thanthan multilevelmultilevel binarybinary

Page 30: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Encoding schemes characteristics

�� ScramblingScrambling techniques (e.g. HDB3)techniques (e.g. HDB3)�� no no dcdc component, no long component, no long sequencesequence of of zerozero--levellevel lineline signalssignals�� no no reductionreduction in data rate (in data rate (suitablesuitable for long distance transmission)for long distance transmission)�� errorerror detectiondetection capabilitiescapabilities

�� NormalizedNormalized signal transition rate of signal transition rate of variousvarious schemesschemes D =R/bD =R/b

Min. Mod Rate ������… Max. Mod Rate

NRZ-L ��(all �s or �s) �.� �.�NRZI ��(all �s) �.� �.��(all �s)Bipolar-AMI ��(all �s) �.� �.�Pseudoternary ��(all �s) �.� �.�Manchester �.��(����..) �.� �.��(all �s or �s)

D-Manchester �.��(all �s) �.� �.��(all �s)

Page 31: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Digital data to analog signals

�� For transmission For transmission overover thethe public public telephonetelephone or or microwavemicrowave linkslinks

�� ThreeThree encodingencoding or or modualtionmodualtion techniquestechniques

�� Amplitude shift Amplitude shift keyingkeying (ASK): (ASK): �� s(t) = s(t) = A.cosA.cos(2(2ππffcctt) for ) for binarybinary 1, 0 for 1, 0 for binarybinary 00

�� FrenquencyFrenquency shift shift keyingkeying (FSK):(FSK):�� s(t) = s(t) = A.cosA.cos(2(2ππff11tt) for ) for binarybinary 1, 1, A.cosA.cos(2(2ππff22tt) for ) for binarybinary 00

�� Phase shift Phase shift keyingkeying (PSK):(PSK):�� s(t) = s(t) = A.cosA.cos(2(2ππffcct + t + ππ) for ) for binarybinary 1, 1, A.cosA.cos(2(2ππffcctt) for ) for binarybinary 00

�� QPSK (signal QPSK (signal elementelement representsrepresents 2 bits)2 bits)�� s(t) = A. s(t) = A. cos(b1b2 π).coscos(2πfct + 5π/4 + (b2-b1)π/2) for binary b1b2

Page 32: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Digital transmission of analog data

�� DigitizeDigitize data data thenthen eithereither::�� transmit transmit usingusing NRZNRZ--LL�� encode as a digital signal encode as a digital signal usingusing code code otherother thanthan NRZNRZ--LL�� convertconvert digital data digital data intointo an an analoganalog signal signal usingusing modulationmodulation

�� allowsallows digital transmission of digital transmission of voicevoice on on analoganalog media e.g. media e.g. microwavemicrowave

�� PCMPCM

�� Delta ModulationDelta Modulation

Page 33: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Analog transmission

�� Modulation for Modulation for analoganalog signalssignals isis usefuluseful�� higherhigher frequencyfrequency neededneeded for effective transmission (for effective transmission (unguidedunguided

transmission), transmission), basebandbaseband signalssignals wouldwould requirerequire hugehuge antennasantennas�� allowsallows FrequencyFrequency division division multiplexingmultiplexing

�� Input signal m(t) = Input signal m(t) = nnaa.x.x(t)(t)

�� Amplitude ModulationAmplitude Modulation�� s(t) = [1 + m(t)] cos(2s(t) = [1 + m(t)] cos(2ππffcctt))

�� Angle modulationAngle modulation�� s(t) = s(t) = AAcccoscos[2[2ππffcct + t + φφ(t)](t)]�� Phase modulation: Phase modulation: φφ(t) = (t) = nnpp.m.m(t)(t)�� FrequencyFrequency modulation: modulation: φφ'(t) = (t) = nnf f .m(t) .m(t)

Page 34: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

L’accès multiple

Page 35: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

What is it all about?

�� Consider an Consider an audioconferenceaudioconference wherewhere�� if one person speaks, all can hearif one person speaks, all can hear�� if more than one person speaks at the same time, both voices areif more than one person speaks at the same time, both voices are

garbledgarbled�� How should participants coordinate actions so thatHow should participants coordinate actions so that

�� the number of messages exchanged per second is the number of messages exchanged per second is maximizedmaximized�� time spent waiting for a chance to speak is time spent waiting for a chance to speak is minimizedminimized

�� This is the This is the multiple access problemmultiple access problem

Page 36: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Some simple solutions

�� A (simple) centralized solution: use a moderatorA (simple) centralized solution: use a moderator�� a speaker must wait for moderator to “poll” him or her, even if a speaker must wait for moderator to “poll” him or her, even if no no

one else wants to speakone else wants to speak�� what if the moderator’s connection breaks?what if the moderator’s connection breaks?

�� Distributed solutionDistributed solution�� speak if no one else is speakingspeak if no one else is speaking�� but if two speakers are waiting for a third to finish, guaranteebut if two speakers are waiting for a third to finish, guaranteed d

collisioncollision�� Designing good schemes is surprisingly hard!Designing good schemes is surprisingly hard!

Page 37: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Outline

�� Contexts for the problemContexts for the problem

�� Choices and constraints Choices and constraints

�� Performance metricsPerformance metrics

�� Base technologiesBase technologies

�� Centralized schemesCentralized schemes

�� Distributed schemesDistributed schemes

Page 38: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Contexts for the multiple access problem

�� Broadcast Broadcast transmission mediumtransmission medium�� message from any “station” is received by all receivers in its message from any “station” is received by all receivers in its

listening arealistening area�� Colliding messages are garbledColliding messages are garbled

�� GoalGoal�� maximize message throughputmaximize message throughput�� minimize mean waiting timeminimize mean waiting time

�� Shows up in five main contextsShows up in five main contexts

Page 39: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Contexts

Page 40: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Contexts

Page 41: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Solving the problem

�� First, choose a First, choose a base technologybase technology

�� to isolate traffic from different stationsto isolate traffic from different stations�� can be in time domain or frequency domaincan be in time domain or frequency domain

�� But: not enough time slots or frequencies to exclusively dedicatBut: not enough time slots or frequencies to exclusively dedicate e to each userto each user

�� Then, choose how to allocate a limited number of transmission Then, choose how to allocate a limited number of transmission resources to a larger set of contending usersresources to a larger set of contending users

Page 42: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Outline

�� Contexts for the problemContexts for the problem

�� Choices and constraintsChoices and constraints

�� Performance metricsPerformance metrics

�� Base technologiesBase technologies

�� Centralized schemesCentralized schemes

�� Distributed schemesDistributed schemes

Page 43: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Choices

�� Centralized vs. distributed designCentralized vs. distributed design�� is there a moderator or not?is there a moderator or not?�� in a centralized solution one of the stations is a in a centralized solution one of the stations is a mastermaster (e.g. base (e.g. base

station in cellular telephony) and the others are station in cellular telephony) and the others are slavesslaves�� mastermaster-->slave = downlink>slave = downlink�� slaveslave-->master = uplink>master = uplink

�� in a distributed solution, all stations are peersin a distributed solution, all stations are peers�� CircuitCircuit--mode vs. packetmode vs. packet--modemode

�� do stations send steady streams or bursts of packets?do stations send steady streams or bursts of packets?�� with streams, doesn’t make sense to contend for every packetwith streams, doesn’t make sense to contend for every packet�� allocate resources to streams allocate resources to streams -- analogy to long “speeches”analogy to long “speeches”�� with packets, makes sense to contend for every packet to avoid with packets, makes sense to contend for every packet to avoid

wasting bandwidth wasting bandwidth -- analogy to brainstorming sessionanalogy to brainstorming session

Page 44: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Constraints

�� Spectrum scarcitySpectrum scarcity�� radio spectrum is hard to come byradio spectrum is hard to come by�� only a few frequencies available for longonly a few frequencies available for long--distance (few miles) data distance (few miles) data

communication communication �� multiple access schemes must be careful not to waste bandwidthmultiple access schemes must be careful not to waste bandwidth

�� Radio link propertiesRadio link properties�� radio links are error proneradio links are error prone

�� fading (signal degradation because of hills, foliage, trucks, etfading (signal degradation because of hills, foliage, trucks, etc.)c.)�� multipathmultipath interferenceinterference

�� hidden terminalshidden terminals�� transmitter heard only by a subset of receiverstransmitter heard only by a subset of receivers

�� capturecapture�� station with higher power overpowers the other station with higher power overpowers the other --> > no “collision” no “collision”

is detectedis detected�� lower powered station may never get a chance to be heardlower powered station may never get a chance to be heard

Page 45: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

The parameter ‘a’

�� The number of packets sent by a source before the farthest The number of packets sent by a source before the farthest station receives the first bitstation receives the first bit

�� D: max propagation delay between any two stations D: max propagation delay between any two stations

�� T: time taken to transmit an average size packetT: time taken to transmit an average size packet

�� a = D/T (around 10a = D/T (around 10--22 for LANs, 1 for for LANs, 1 for HSLANsHSLANs, 10, 1022 for satellite for satellite links)links)

Page 46: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Outline

�� Contexts for the problemContexts for the problem

�� Choices and constraints Choices and constraints

�� Performance metricsPerformance metrics

�� Base technologiesBase technologies

�� Centralized schemesCentralized schemes

�� Distributed schemesDistributed schemes

Page 47: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Performance metrics

�� Normalized throughputNormalized throughput�� fraction of link capacity used to carry nonfraction of link capacity used to carry non--retransmitted packetsretransmitted packets�� exampleexample

�� Ideally (with no collisions) a 1 Mbps link can carry 1000 “125 Ideally (with no collisions) a 1 Mbps link can carry 1000 “125 byte” packets/secbyte” packets/sec

�� with a particular scheme and workload, we might have 250 with a particular scheme and workload, we might have 250 packets/secpackets/sec

�� => goodput = 0.25=> goodput = 0.25�� Mean delayMean delay

�� amount of time a station has to wait before it successfully tranamount of time a station has to wait before it successfully transmits smits a packeta packet�� depends on the MAC protocol, the load and the characteristics depends on the MAC protocol, the load and the characteristics

of the mediumof the medium

Page 48: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Performance metrics

�� StabilityStability�� with heavy load, is all the time spent on resolving contentions?with heavy load, is all the time spent on resolving contentions?�� => unstable=> unstable�� with a stable algorithm, throughput does not decrease with offerwith a stable algorithm, throughput does not decrease with offered ed

loadload�� if huge number of “uncontrolled” stations share a link, then if huge number of “uncontrolled” stations share a link, then

instability is guaranteedinstability is guaranteed�� but if sources reduce load when overload is detected, can achievbut if sources reduce load when overload is detected, can achieve e

stabilitystability�� FairnessFairness

�� no single definitionno single definition�� ‘no‘no--starvation’: source eventually gets a chance to sendstarvation’: source eventually gets a chance to send�� stricter metric: each station gets an equal share of the transmistricter metric: each station gets an equal share of the transmission ssion

bandwidthbandwidth

Page 49: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Limitation of analytical modeling

�� AssumptionsAssumptions on source on source traffictraffic�� workwork of of queuingqueuing theorytheory isis onlyonly indicative and indicative and notnot an an absoluteabsolute metricmetric

�� OtherOther factors factors maymay have have greatergreater impact impact thanthan whatwhat models models predictpredict�� batterybattery strengthstrength�� weatherweather conditionsconditions�� presencepresence or absence of or absence of foliagefoliage or plantsor plants�� workloadworkload differentdifferent fromfrom assumptionsassumptions

�� WillWill onlyonly focusfocus on on qualitativequalitative descriptiondescription

Page 50: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Outline

�� Contexts for the problemContexts for the problem

�� Choices and constraints Choices and constraints

�� Performance metricsPerformance metrics

�� Base technologiesBase technologies

�� Centralized schemesCentralized schemes

�� Distributed schemesDistributed schemes

Page 51: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Base technologies

�� Isolates data from different sourcesIsolates data from different sources

�� Three basic choicesThree basic choices�� Frequency division multiple access (FDMA)Frequency division multiple access (FDMA)�� Time division multiple access (TDMA)Time division multiple access (TDMA)�� Code division multiple access (CDMA)Code division multiple access (CDMA)

Page 52: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

FDMA

�� Simplest, best suited for analog linksSimplest, best suited for analog links�� Each station has its own frequency band, separated by guard Each station has its own frequency band, separated by guard

bandsbands

�� Receivers tune to the right frequencyReceivers tune to the right frequency

�� Common for TV and radio broadcast (at most few hundred Common for TV and radio broadcast (at most few hundred transmitters in a listening area) transmitters in a listening area) -- Not in wireless telephonyNot in wireless telephony

�� Number of frequencies is limitedNumber of frequencies is limited�� reduce transmitter power; reuse frequencies in nonreduce transmitter power; reuse frequencies in non--adjacent cells adjacent cells

requiring “complex” handoffrequiring “complex” handoff�� trade off complexity for increased number of userstrade off complexity for increased number of users

�� simplistic example: voice channel = 30 KHzsimplistic example: voice channel = 30 KHz�� 833 channels in 25 MHz band833 channels in 25 MHz band�� with 7with 7--cell pattern, partition into 119 channels eachcell pattern, partition into 119 channels each�� but with N cells in a city, can get 119N calls => win if patternbut with N cells in a city, can get 119N calls => win if pattern repeatedrepeated

Page 53: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

GSM frequency reuse

�� Pattern: Pattern: smallestsmallest cellcell set set containingcontaining onlyonly once once allall radio radio channelschannels((repeatedrepeated on on allall zones to zones to covercover))

�� RegularRegular pattern pattern sizesize: 3,4,7,9, 12 & 21: 3,4,7,9, 12 & 21

�� DDruru isis rere--use distanceuse distance

�� R R isis cellcell radiusradius

�� K K isis pattern pattern sizesize (7 in (7 in thisthis exampleexample))

�� DDruru/R = /R = sqrtsqrt(3.K)(3.K)A

B

C

FE

G

D

AB

C

FE

G

D AB

C

FE

G

D

AB

C

FE

G

D

DDruruRR

Page 54: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

TDMA

�� All stations transmit data on same frequency, but at different tAll stations transmit data on same frequency, but at different timesimes

�� Needs time synchronizationNeeds time synchronization

�� supposes that stations resolve contention for access to a time supposes that stations resolve contention for access to a time slot slot and and limit their transmission to a single slotlimit their transmission to a single slot

�� roughly same number of users than FDMAroughly same number of users than FDMA

�� ProsPros�� users can be given different amounts of bandwidth (time slots)users can be given different amounts of bandwidth (time slots)�� mobiles can use idle times to determine best base station (and hmobiles can use idle times to determine best base station (and handoff andoff

to nearer base station to save battery)to nearer base station to save battery)�� can switch off power when not transmittingcan switch off power when not transmitting

�� ConsCons�� synchronization overhead (one of the stations emit sync signal)synchronization overhead (one of the stations emit sync signal)�� greater problems with greater problems with multipathmultipath interference on wireless links (because interference on wireless links (because

of wider frequency band of wider frequency band --> smaller transmission duration > smaller transmission duration --> need for > need for adaptive equalization circuit in each receiver)adaptive equalization circuit in each receiver)

Page 55: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

CDMA

�� Users separated both by time and frequencyUsers separated both by time and frequency�� AkaAka spread spectrum techniquesspread spectrum techniques

�� Colliding “frames” are not necessarily totally garbled Colliding “frames” are not necessarily totally garbled

�� Send at a different frequency at each time slot (Send at a different frequency at each time slot (frequency frequency hoppinghopping))

�� Or, convert a single bit to a code (Or, convert a single bit to a code (direct sequencedirect sequence))�� receiver can decipher bit by inverse process even in presence ofreceiver can decipher bit by inverse process even in presence of

narrowband noisenarrowband noise�� assumes that multiple signals add linearlyassumes that multiple signals add linearly

Page 56: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

CDMA/DS example

�� EachEach station station hashas itsits «« chipchip--sequencesequence » or » or codewordcodeword ((bipolarbipolarrepsentationrepsentation))�� EA: (EA: (--11--11--1+1+11+1+1--1+1+1) (1+1+1) (binarybinary 00011011)00011011)�� EB: (EB: (--11--1+11+1--1+1+1+11+1+1+1--1) (1) (binarybinary 00101110)00101110)�� EC: (EC: (--1+11+1--1+1+1+11+1+1+1--11--1) (1) (binarybinary 01011100)01011100)�� ED: (ED: (--1+11+1--11--11--11--1+11+1--1) (1) (binarybinary 01000010)01000010)

�� SendSend codewordcodeword E for a 1 E for a 1 bitbit and and itsits negationnegation --E for a 0 E for a 0 bitbitA B C D- - � -- � � -� � - -� � � -� � � �

� � � �

E�= (EC) (-��+��-��+��+��+��-��-�)E��= (EB+EC) (-��������+��+����-�)E��= (EA-EB) ( ����-��+����-����+�)E��= (EA-EB+EC) (-��+��-��+��-��-��-��-��+�)E��= (EA+EB+EC+ED) (-����-����+����+��-�)E��= (EA+EB-EC+ED) (-��-����-����-��+���)

E�.EC (�+�+�+�+�+�+�+�)/�= �E�.EC (�+�+�+�+�+�+�+�)/�= �E�.EC (�+�+�+�+�-�+�-�)/�= �E�.EC (�+�+�+�+�-�+�-�)/�= �E�.EC (�+�+�+�+�+�-�+�)/�= �E�.EC (�-�+�-�+�-�-�-�)/�= -�

Page 57: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

CDMA�� ProsPros

�� hard to spyhard to spy�� immune from narrow band noiseimmune from narrow band noise�� Unlike TDMA, no need for all stations to synchronize (only sendeUnlike TDMA, no need for all stations to synchronize (only sender r

and receiver)and receiver)�� no hard limit on capacity of a cell, but noise increases and effno hard limit on capacity of a cell, but noise increases and effective ective

bitbit--rate per station decreases with the number of stationsrate per station decreases with the number of stations�� all cells can use all frequencies, no need for frequency planninall cells can use all frequencies, no need for frequency planningg

�� ConsCons�� implementation complexity implementation complexity (receiver perfectly synchronized with (receiver perfectly synchronized with

senders)senders)�� need for complicated power control to avoid need for complicated power control to avoid capturecapture

�� hard because of multiple moving receivershard because of multiple moving receivers�� need for a large contiguous frequency band (for direct sequence)need for a large contiguous frequency band (for direct sequence) --> >

problems installing in the fieldproblems installing in the field

Page 58: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

FDD and TDD

�� Two ways of converting a wireless medium to a duplex channelTwo ways of converting a wireless medium to a duplex channel

�� In Frequency Division Duplex, uplink and downlink use different In Frequency Division Duplex, uplink and downlink use different frequenciesfrequencies

�� In Time Division Duplex, uplink and downlink use different time In Time Division Duplex, uplink and downlink use different time slotsslots

�� Can combine with FDMA/TDMACan combine with FDMA/TDMA

�� ExamplesExamples�� TDD/FDMA in secondTDD/FDMA in second--generation cordless phonesgeneration cordless phones�� FDD/TDMA/FDMA in digital cellular GSM phonesFDD/TDMA/FDMA in digital cellular GSM phones

Page 59: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Outline

�� Contexts for the problemContexts for the problem

�� Choices and constraints Choices and constraints

�� Performance metricsPerformance metrics

�� Base technologiesBase technologies

�� Centralized schemesCentralized schemes

�� Distributed schemesDistributed schemes

Page 60: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Centralized access schemes

�� One station is master, and the other are slavesOne station is master, and the other are slaves�� slave can transmit only when master allowsslave can transmit only when master allows

�� Natural fit in some situationsNatural fit in some situations�� wireless LAN, where base station is the only station that can sewireless LAN, where base station is the only station that can see e

everyoneeveryone�� cellular telephony, where base station is the only one cellular telephony, where base station is the only one

�� with a wired connection to the network and with a wired connection to the network and �� capable of high transmit powercapable of high transmit power

Page 61: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Centralized access schemes

�� ProsPros�� simplesimple�� master provides single point of coordinationmaster provides single point of coordination

�� ConsCons�� master is a single point of failuremaster is a single point of failure

�� need a reneed a re--election protocol => complicates the system!election protocol => complicates the system!�� master is involved in every single transfer => added delaymaster is involved in every single transfer => added delay

�� Circuit mode schemes: cellular telephonyCircuit mode schemes: cellular telephony

�� Packet mode schemes: polling/probing and reservationPacket mode schemes: polling/probing and reservation

Page 62: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Circuit mode: the cellular telephony example

�� When station wants to transmit, it sends a message to master When station wants to transmit, it sends a message to master using simple (ALOHA) packet mode multiple access protocolusing simple (ALOHA) packet mode multiple access protocol

�� Master allocates transmission resources to slaveMaster allocates transmission resources to slave

�� Slave uses the resources until it is doneSlave uses the resources until it is done

�� No contention during data transferNo contention during data transfer

�� Used primarily in cellular phone systemsUsed primarily in cellular phone systems�� EAMPS: analog FDD/FDMAEAMPS: analog FDD/FDMA�� GSM : FDD/TDMA/FDMAGSM : FDD/TDMA/FDMA�� ISIS--95: CDMA95: CDMA

Page 63: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Polling and probing�� PacketPacket--mode: station must contend for medium access for each mode: station must contend for medium access for each

packetpacket

�� Centralized controller mediates this contentionCentralized controller mediates this contention

�� PollingPolling�� master asks each station in turn if it wants to send (rollmaster asks each station in turn if it wants to send (roll--call polling)call polling)�� inefficient if (a) inefficient if (a) time to query a station is longtime to query a station is long, (b) overhead for , (b) overhead for

polling messages is high, or (c) system has many terminalspolling messages is high, or (c) system has many terminals�� ProbingProbing

�� stations are numbered with consecutive logical addressesstations are numbered with consecutive logical addresses�� assume station can listen both to its own address and to a set oassume station can listen both to its own address and to a set of f

multicast or “group” addressesmulticast or “group” addresses�� master does a binary search to locate next active stationmaster does a binary search to locate next active station

�� skip chunks of address space with no active stationskip chunks of address space with no active station�� But repeated polls in sections with more than one active stationBut repeated polls in sections with more than one active station

�� Efficient if few stations are active, doubles polls if all activEfficient if few stations are active, doubles polls if all activee

Page 64: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Reservation-based schemes

�� When ‘a’ is large, collisions are expensiveWhen ‘a’ is large, collisions are expensive�� polling overhead is too highpolling overhead is too high�� better use reservation than pollingbetter use reservation than polling�� mainly for satellite linksmainly for satellite links

�� Master coordinates access to link using reservationsMaster coordinates access to link using reservations

�� Some time slots devoted to reservation messagesSome time slots devoted to reservation messages�� can be smaller than data slots => can be smaller than data slots => minislotsminislots

�� Stations contend for a Stations contend for a minislotminislot (PDAMA) (or own one FPODA)(PDAMA) (or own one FPODA)

�� Master decides winners and grants them access to linkMaster decides winners and grants them access to link

�� Packet collisions are only for Packet collisions are only for minislotsminislots, so overhead on , so overhead on contention is reducedcontention is reduced

Page 65: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Outline

�� Contexts for the problemContexts for the problem

�� Choices and constraints Choices and constraints

�� Performance metricsPerformance metrics

�� Base technologiesBase technologies

�� Centralized schemesCentralized schemes

�� Distributed schemesDistributed schemes

Page 66: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Distributed schemes

�� Compared to a centralized schemeCompared to a centralized scheme�� more reliablemore reliable�� have lower message delayshave lower message delays�� often allow higher network utilizationoften allow higher network utilization�� but are more complicatedbut are more complicated

�� e.g. to synchronize stations to the same time basee.g. to synchronize stations to the same time base

�� Almost all distributed schemes are packet modeAlmost all distributed schemes are packet mode�� difficult to establish and maintain circuits without a central cdifficult to establish and maintain circuits without a central controller ontroller

(the one(the one--time coordination is amortized over many packets for time coordination is amortized over many packets for circuitcircuit--mode in centralized schemes)mode in centralized schemes)

Page 67: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Decentralized polling

�� Just like centralized polling, except there is no masterJust like centralized polling, except there is no master

�� But, all stations must share a time baseBut, all stations must share a time base

�� Each station is assigned a slot that it usesEach station is assigned a slot that it uses�� if nothing to send, slot is wastedif nothing to send, slot is wasted�� this is just TDMA :this is just TDMA :--))

Page 68: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Decentralized probing

�� Also called Also called tree based multiple accesstree based multiple access

�� All stations in left All stations in left subtreesubtree of root allowed to place packet on of root allowed to place packet on medium in first slotmedium in first slot

�� If a collision, root <If a collision, root <-- root root -->left_son, and try again in next slot>left_son, and try again in next slot

�� On success, everyone in rootOn success, everyone in root-->right_son contend for access etc.>right_son contend for access etc.

�� Works well if ‘a’ is smallWorks well if ‘a’ is small�� otherwise: either introduce idle time to wait for possible colliotherwise: either introduce idle time to wait for possible collision sion

(inefficient) or roll back state if collision detected later (co(inefficient) or roll back state if collision detected later (complex)mplex)

Page 69: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Carrier Sense Multiple Access (CSMA)

�� Polling/probing may waste time if number of stations is large buPolling/probing may waste time if number of stations is large but t number of simultaneously active stations is smallnumber of simultaneously active stations is small

�� A fundamental advance: check whether the medium is active A fundamental advance: check whether the medium is active before sending a packet (i.e before sending a packet (i.e carrier sensingcarrier sensing))

�� Unlike polling/probing a node with something to send doesn’t Unlike polling/probing a node with something to send doesn’t have to wait for a master, or for its turn in a schedulehave to wait for a master, or for its turn in a schedule

�� If medium idle, then can sendIf medium idle, then can send�� just like a participant in a meetingjust like a participant in a meeting

�� If collision happens, detect and resolveIf collision happens, detect and resolve

�� Works when ‘a’ is small (0.1 or smaller)Works when ‘a’ is small (0.1 or smaller)

�� In slotted version, time In slotted version, time slotslot is chosen to be the maximum is chosen to be the maximum propagationpropagation delay (considered small comparing to T)delay (considered small comparing to T)

Page 70: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Simplest CSMA scheme

�� Send a packet as soon as medium becomes idleSend a packet as soon as medium becomes idle

�� If, on sensing busy, wait for idle If, on sensing busy, wait for idle --> > persistentpersistent

�� If, on sensing busy, set a timer and try later If, on sensing busy, set a timer and try later --> > nonnon--persistentpersistent

�� Problem with persistent: two stations waiting to speak will collProblem with persistent: two stations waiting to speak will collideide

Page 71: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

How to solve the collision problem

�� Two solutionsTwo solutions

�� pp--persistentpersistent: : when media becomes idle, transmit with probability when media becomes idle, transmit with probability p:p:

�� hard to choose hard to choose p p (< 1/Number of stations waiting)(< 1/Number of stations waiting)�� balance message delay with higher utilization under heavy loadsbalance message delay with higher utilization under heavy loads

�� if if pp small, then wasted time (if media idle)small, then wasted time (if media idle)�� if if pp large, more collisionslarge, more collisions

�� exponential exponential backoffbackoff

�� need to detect collisions: explicit ACK or need to detect collisions: explicit ACK or collision detect circuitcollision detect circuit => => CSMA/CDCSMA/CD

�� on collision detection, choose retransmission timeout randomly on collision detection, choose retransmission timeout randomly from doubled range; on success reset timeout valuefrom doubled range; on success reset timeout value

�� backoffbackoff range adapts to number of contending stationsrange adapts to number of contending stations�� no need to choose no need to choose p p (even 1(even 1--persistent CSMA with persistent CSMA with backoffbackoff is stable)is stable)

Page 72: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Summary of CSMA schemes

Page 73: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Ethernet

�� The most widely used LANThe most widely used LAN

�� Standard is called IEEE 802.3Standard is called IEEE 802.3

�� Uses 1Uses 1--persistent CSMA/CD with exponential persistent CSMA/CD with exponential backoffbackoff

�� Also, on collision, place a Also, on collision, place a jamjam signal on wire, so that all stations signal on wire, so that all stations are aware of collision and can increment are aware of collision and can increment backoffbackoff timeout rangetimeout range

�� ‘a’ small =>time wasted in collision is around 50 microseconds‘a’ small =>time wasted in collision is around 50 microseconds

�� Ethernet requires packet to be long enough that a collision is Ethernet requires packet to be long enough that a collision is detected before packet transmission completes (a <= 1)detected before packet transmission completes (a <= 1)�� packet should be at least 64 bytes long for longest allowed packet should be at least 64 bytes long for longest allowed

segmentsegment�� Max packet size is 1500 bytes Max packet size is 1500 bytes

�� prevents hogging by a single stationprevents hogging by a single station

Page 74: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

More on Ethernet

�� First version ran at 3 MbpsFirst version ran at 3 Mbps

�� Early versions ran at 10 Mbps, and uses ‘thick’ or ‘thin’ coax, Early versions ran at 10 Mbps, and uses ‘thick’ or ‘thin’ coax, or or twisted pairtwisted pair

�� Ethernet types are coded as <Speed><Ethernet types are coded as <Speed><BasebandBaseband or or broadband><physical medium>broadband><physical medium>�� Speed = 3, 10, 100 MbpsSpeed = 3, 10, 100 Mbps�� BasebandBaseband = within building, broadband = on cable TV infrastructure= within building, broadband = on cable TV infrastructure�� Physical medium: Physical medium:

�� “5” is thick coax, up to 500 meters“5” is thick coax, up to 500 meters�� “2” is cheap 50 Ohm cable, up to 200 meters“2” is cheap 50 Ohm cable, up to 200 meters�� “T” is unshielded twisted pair (also used for telephone wiring)“T” is unshielded twisted pair (also used for telephone wiring)

Page 75: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Enhancing Ethernet

�� EaseEase of maintenanceof maintenance�� use a use a hubhub as in 10BaseTas in 10BaseT

�� addadd//removeremove�� IncreaseIncrease performanceperformance

�� dividedivide in multiple «in multiple « contention contention domainsdomains »»�� use bridgesuse bridges�� or (or (eveneven) ) switchesswitches : : SwitchedSwitched EthernetEthernet

�� increaseincrease speedspeed�� 100BaseT100BaseT

Page 76: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Some definitions

�� Contention or collision Contention or collision domaindomain: : sum total of devices thatcompete with each other for access to the transmission media

�� HubHub: : a centrally-located device in a star topology thatpropagates the signal transmitted by each node to ALL otherports. Nodes still constitute a single contention domain. Collision is detected by simultaneous activity on the Data Out (DO) and Receive Data (RD) circuits

�� Bridge: Bridge: device connecting « segments » with level 2 filteringcapability. Splits LAN to N contention domains (N=number of ports). Packets are usually stored then forwarded.

�� SwitchSwitch: : a « bridge » with N=number of nodes. If switch is full duplex capable, no collision will occur. Each pair gets 20Mbps

Page 77: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Recent developments

�� Switched EthernetSwitched Ethernet�� each station is connected to switch by a separate UTP wireeach station is connected to switch by a separate UTP wire

�� as in 10BaseTas in 10BaseT�� however, line card of switch has a buffer to hold incoming packehowever, line card of switch has a buffer to hold incoming packetsts�� fast backplane switches packet from one line card to othersfast backplane switches packet from one line card to others�� simultaneously arriving packets do not collide (until buffers simultaneously arriving packets do not collide (until buffers

overflow)overflow)�� higher intrinsic capacity than 10BaseT (and more expensive)higher intrinsic capacity than 10BaseT (and more expensive)

Page 78: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Comparison

Topology Cable Max distance Nodes Advantages HalfDpX/FDX��Base� bus Thick coax ����x�seg ���/seg backbones HDX��Base� bus Thin coax ��x�seg ��/seg cheap HDX��BaseT logical bus ��UTPs ����(Hub to Node ) few���s/CD maintenance HDXBridged scalable "bus" / port No per segment multiple CDs HDX in each CD

Switched crossbar UTPs ����(btw swt.) __ No contention FDX

Page 79: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Fast Ethernet variants

�� Fast Ethernet (IEEE 802.3u)Fast Ethernet (IEEE 802.3u)�� same as 10BaseT, except that line speed is 100 Mbpssame as 10BaseT, except that line speed is 100 Mbps�� spans only 205 mspans only 205 m�� big winnerbig winner�� most current cards support both 10 and 100 Mbps cards (10/100 most current cards support both 10 and 100 Mbps cards (10/100

cards) for about $80cards) for about $80�� 100VG 100VG AnylanAnylan (IEEE 802.12)(IEEE 802.12)

�� station makes explicit service requests to masterstation makes explicit service requests to master�� master schedules requests, eliminating collisionsmaster schedules requests, eliminating collisions�� not a success in the marketnot a success in the market

�� Gigabit Ethernet Gigabit Ethernet �� aims to continue the trendaims to continue the trend�� works over 4works over 4--pair UTPpair UTP

�� 10Gigabit Ethernet10Gigabit Ethernet�� No CSMA, only over optical fiberNo CSMA, only over optical fiber

Page 80: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Evaluating Ethernet

�� ProsPros�� easy to setupeasy to setup�� requires no configurationrequires no configuration�� robust to noiserobust to noise

�� ProblemsProblems�� at heavy loads, users see large delays because of at heavy loads, users see large delays because of backoffbackoff�� nonnon--deterministic servicedeterministic service�� doesn’t support prioritiesdoesn’t support priorities�� big overhead on small packetsbig overhead on small packets

�� But, very successful becauseBut, very successful because�� problems only at high loadproblems only at high load

�� loads rarely exceed 30%loads rarely exceed 30%�� can segment LANs to reduce loadcan segment LANs to reduce load

Page 81: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

CSMA/CA

�� Used in wireless LANsUsed in wireless LANs

�� Can’t detect collision because transmitter overwhelms Can’t detect collision because transmitter overwhelms colocatedcolocatedreceiverreceiver

�� So, need explicit So, need explicit acksacks

�� But this makes collisions more expensiveBut this makes collisions more expensive�� => try to reduce number of collisions=> try to reduce number of collisions

�� Standardized as IEEE 802.11Standardized as IEEE 802.11

Page 82: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

CSMA/CA algorithm

�� First check if medium is busyFirst check if medium is busy

�� If so, wait for medium to become idleIf so, wait for medium to become idle

�� if idle: wait for interif idle: wait for inter--frame spacing before contending for a slot frame spacing before contending for a slot (low IFS means higher priority)(low IFS means higher priority)

�� then, set a then, set a contention timercontention timer to an interval randomly chosen in to an interval randomly chosen in the range [0, CW] (CW predefined contention window)the range [0, CW] (CW predefined contention window)

�� On timeout, send packet and wait for On timeout, send packet and wait for ackack

�� If no If no ackack, assume packet is lost, assume packet is lost�� try again, after doubling CWtry again, after doubling CW

�� If another station transmits while counting down, freeze CW and If another station transmits while counting down, freeze CW and unfreeze when packet completes transmissionunfreeze when packet completes transmission

�� station will get higher priority in next round of contentionstation will get higher priority in next round of contention

Page 83: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Dealing with hidden terminals

�� CSMA/CA works when every station can receive transmissions CSMA/CA works when every station can receive transmissions from every other stationfrom every other station

�� Not always trueNot always true

�� Hidden terminalHidden terminal�� some stations in an area cannot hear transmissions from others, some stations in an area cannot hear transmissions from others,

though base can hear both (C cannot sense A is sending to B)though base can hear both (C cannot sense A is sending to B)�� Exposed terminalExposed terminal

�� some (but not all) stations can hear transmissions from stationssome (but not all) stations can hear transmissions from stations not not in the local area in the local area (B should be able to send to D, while A sending to C)(B should be able to send to D, while A sending to C)

A CB DC BA D

EExposed terminal

Hidden terminal

Page 84: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Dealing with hidden and exposed terminals

�� In both cases, CSMA/CA doesn’t workIn both cases, CSMA/CA doesn’t work�� with hidden terminal, collision because carrier not detectedwith hidden terminal, collision because carrier not detected�� with exposed terminal, idle station because carrier incorrectly with exposed terminal, idle station because carrier incorrectly

detected detected �� what matters is collision “at the receiver”what matters is collision “at the receiver”

�� Two solutionsTwo solutions

�� Busy Tone Multiple Access (BTMA)Busy Tone Multiple Access (BTMA)�� assumes symmetric wireless linksassumes symmetric wireless links�� uses a separate “busyuses a separate “busy--tone” channeltone” channel�� when station is receiving a message, it places a tone on this chwhen station is receiving a message, it places a tone on this channelannel�� everyone who might want to talk to a station knows that it is bueveryone who might want to talk to a station knows that it is busysy

�� even if they cannot hear transmission that this station hearseven if they cannot hear transmission that this station hears�� this avoids both problems of hidden and exposed terminalsthis avoids both problems of hidden and exposed terminals

�� transmitters ignore their carriertransmitters ignore their carrier--sense circuit and sends only if busysense circuit and sends only if busy--tone channel is idletone channel is idle

Page 85: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Multiple Access Collision Avoidance

�� BTMA requires us to split frequency bandBTMA requires us to split frequency band�� more complex receivers (need two tuners)more complex receivers (need two tuners)

�� Separate bands may have different propagation characteristicsSeparate bands may have different propagation characteristics�� scheme fails!scheme fails!

�� Instead, use a single frequency band, but use explicit messages Instead, use a single frequency band, but use explicit messages to tell others that receiver is busyto tell others that receiver is busy

�� In MACA, before sending data, send a Request to Sent (RTS) to In MACA, before sending data, send a Request to Sent (RTS) to intended receiverintended receiver

�� Station, if idle, sends Clear to Send (CTS)Station, if idle, sends Clear to Send (CTS)

�� Sender then sends dataSender then sends data

�� If station overhears RTS, it waits for other transmission to endIf station overhears RTS, it waits for other transmission to end

�� Solves both problemsSolves both problems

Page 86: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Token passing

�� In distributed polling, every station has to wait for its turnIn distributed polling, every station has to wait for its turn

�� Time wasted because idle stations are still given a slotTime wasted because idle stations are still given a slot

�� What if we can quickly skip past idle stations?What if we can quickly skip past idle stations?

�� This is the key idea of token ringThis is the key idea of token ring

�� Special packet called ‘token’ gives station the right to transmiSpecial packet called ‘token’ gives station the right to transmit t datadata�� analogy with “right to speak or microphone”analogy with “right to speak or microphone”

�� When done, it passes token to ‘next’ stationWhen done, it passes token to ‘next’ station�� => stations form a logical ring=> stations form a logical ring

�� No station will starveNo station will starve

�� In addition, stations no longer need precise time synchronizatioIn addition, stations no longer need precise time synchronizationn

Page 87: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Logical rings

�� Can be on a nonCan be on a non--ring physical topologyring physical topology

Page 88: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Ring operation

�� During normal operation, copy packets from input buffer to During normal operation, copy packets from input buffer to outputoutput

�� If packet is a token, check if packets ready to sendIf packet is a token, check if packets ready to send

�� If not, forward tokenIf not, forward token

�� If so, delete token, and send packetsIf so, delete token, and send packets

�� Receiver copies packet and sets ‘Receiver copies packet and sets ‘ackack’ flag’ flag

�� Sender removes packet from the ringSender removes packet from the ring

�� When done, reinserts tokenWhen done, reinserts token

�� If ring idle and no token for a long time, regenerate tokenIf ring idle and no token for a long time, regenerate token

Page 89: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Single and double rings

�� With a single ring, a single failure of a link or station breaksWith a single ring, a single failure of a link or station breaks the the network => fragilenetwork => fragile

�� With a double ring, on a failure, go into With a double ring, on a failure, go into wrap modewrap mode

�� Used in FDDIUsed in FDDI

Page 90: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Hub or star-ring

�� Simplifies wiringSimplifies wiring

�� Active hub is predecessor and successor to every stationActive hub is predecessor and successor to every station�� can monitor ring for station and link failurescan monitor ring for station and link failures

�� Passive hub only serves as wiring concentratorPassive hub only serves as wiring concentrator�� but provides a single test pointbut provides a single test point

�� Because of these benefits, hubs are practically the only form ofBecause of these benefits, hubs are practically the only form ofwiring used in real networkswiring used in real networks�� even for Ethernet even for Ethernet

Page 91: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Evaluating token ring�� ProsPros

�� medium access protocol is simple and explicitmedium access protocol is simple and explicit�� no need for carrier sensing, time synchronization or complex no need for carrier sensing, time synchronization or complex

protocols to resolve contentionprotocols to resolve contention�� guarantees zero collisionsguarantees zero collisions�� can give some stations priority over otherscan give some stations priority over others

�� ConsCons�� token is a single point of failuretoken is a single point of failure

�� lost or corrupted token trashes networklost or corrupted token trashes network�� need to carefully protect and, if necessary, regenerate tokenneed to carefully protect and, if necessary, regenerate token

�� all stations must cooperateall stations must cooperate�� network must detect and cut off unresponsive stations network must detect and cut off unresponsive stations

�� stations must actively monitor network stations must actively monitor network �� to detect token loss and duplicationto detect token loss and duplication�� usually elect one station as usually elect one station as monitormonitor

Page 92: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Fiber Distributed Data Interface

�� FDDI is the most popular tokenFDDI is the most popular token--ring base LANring base LAN

�� Dual counterDual counter--rotating rings, each at 100 Mbpsrotating rings, each at 100 Mbps

�� Uses both copper (CDDI) and fiber linksUses both copper (CDDI) and fiber links

�� Supports both nonSupports both non--realtimerealtime and and realtimerealtime traffictraffic�� token is guaranteed to rotate once every Target Token Rotation token is guaranteed to rotate once every Target Token Rotation

Time (TTRT)Time (TTRT)�� station is guaranteed a station is guaranteed a synchronous allocationsynchronous allocation within every TTRT

�� Supports both Supports both single attachedsingle attached and dual attached stations�� single attached (cheaper) stations are connected to only one of single attached (cheaper) stations are connected to only one of the the

ringsrings

Page 93: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

ALOHA and its variants

�� ALOHA is one of the earliest multiple access schemesALOHA is one of the earliest multiple access schemes

�� Just send it!Just send it!

�� Wait for an Wait for an ackack

�� If no If no ackack, try again after a random waiting time, try again after a random waiting time�� no no backoffbackoff

Page 94: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Evaluating ALOHA

�� ProsPros�� useful when ‘a’ is large, so carrier sensing doesn’t helpuseful when ‘a’ is large, so carrier sensing doesn’t help

�� satellite linkssatellite links�� simplesimple

�� no carrier sensing, no token, no no carrier sensing, no token, no timebasetimebase synchronizationsynchronization�� independent of ‘a’independent of ‘a’

�� ConsCons�� under some mathematical assumptions, goodput is at most .18under some mathematical assumptions, goodput is at most .18

�� much higher goodput is achievable (e.g. a single user much higher goodput is achievable (e.g. a single user TrxTrx))�� at high loads, collisions are very frequentat high loads, collisions are very frequent�� sudden burst of traffic can lead to instabilitysudden burst of traffic can lead to instability

�� unless unless backoffbackoff is exponentialis exponential

Page 95: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Slotted ALOHA

�� A simple way to double A simple way to double ALOHA’sALOHA’s capacitycapacity

�� Make sure transmissions start on a slot boundaryMake sure transmissions start on a slot boundary�� synchronize to a broadcast pulsesynchronize to a broadcast pulse

�� Halves Halves window of vulnerabilitywindow of vulnerability

�� Used in cellular phone uplink (to request a frequency)Used in cellular phone uplink (to request a frequency)�� stations need to synchronize for TDMA anyway stations need to synchronize for TDMA anyway --> little additional overhead> little additional overhead

Page 96: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

ALOHA schemes summarized

Page 97: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Reservation ALOHA

�� Similar to FPODA but no master, slot time = time to transmit a Similar to FPODA but no master, slot time = time to transmit a (constant length)(constant length) packetpacket

�� Contend for implicit reservation using slotted ALOHAContend for implicit reservation using slotted ALOHA

�� Stations independently examine reservation requests and come Stations independently examine reservation requests and come to consistent conclusionsto consistent conclusions�� all stations have same priorityall stations have same priority

�� Simplest versionSimplest version�� divide time into frames = fixed length set of slots (spans prop divide time into frames = fixed length set of slots (spans prop delay)delay)�� station that successfully transmit in a slot using Sstation that successfully transmit in a slot using S--ALOHA ALOHA (this is (this is

known implicitly in satellite Aloha and with explicit ACK with cknown implicitly in satellite Aloha and with explicit ACK with cellular Aloha)ellular Aloha)makes implicit reservation and can keep slot as long as it wantsmakes implicit reservation and can keep slot as long as it wants

�� station that loses keeps track of idle slots and contends for thstation that loses keeps track of idle slots and contends for them in em in next framenext frame

Page 98: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Evaluating R-ALOHA

�� ProsPros�� supports both circuit and packet mode transfersupports both circuit and packet mode transfer�� works with large ‘a’works with large ‘a’�� simplesimple

�� ConsCons�� arriving packet has to wait for entire frame before it has a chaarriving packet has to wait for entire frame before it has a chance to nce to

send (frame length is at least ‘a’)send (frame length is at least ‘a’)�� cannot preempt hogscannot preempt hogs�� variants of Rvariants of R--ALOHA avoid these problemsALOHA avoid these problems

Page 99: Les liens de communication et l’accèsmultipleplanete.inria.fr/dabbous/INF566/bloc2.notsoold.pdf · Similar advantages and disadvantages as NRZ-L. Bipolar-AMI Signal Encoding A

Classification of multiple access schemes

Basetechnologies

FDMATDMACDMAFDDCDD

Accessschemes

CentralizedCircuitmode

Packetmode

EAMPSGSMIS-95Polling and probing

Reservationbased

PDAMA

FPODA

PacketmodeDistributed

Polling and probing

CSMACSMA/CD

CSMA/CA

MACA

MACAW

FDDI

P-ALOHA

S-ALOHA

R-ALOHA

BTMA

Tokenring

ALOHA

Cellulartelephony

Wired LAN

satellite

WirelessLAN

Wired LAN

Wired LAN

satellite