shannon capacity basics

download shannon capacity basics

of 50

Transcript of shannon capacity basics

  • 8/18/2019 shannon capacity basics

    1/50

    Computer Communication &Networks

    Lecture # 04Physical Layer: Signals & Digital Transmission

    Nadeem Majeed [email protected]

    mailto:[email protected]:[email protected]

  • 8/18/2019 shannon capacity basics

    2/50

    Physical Layer Topics to

    Cover Signals Digital Transmission

    Analog Transmission Multiplexing

    Transmission Media

  • 8/18/2019 shannon capacity basics

    3/50

    Analog & Digital Data

    Data can be analog or digital. The termanalog data re ers to in ormation that iscontinuous! digital data re ers to in ormationthat has discrete states. "nalog data take oncontinuous #alues. Digital data take ondiscrete #alues.

  • 8/18/2019 shannon capacity basics

    4/50

    To be transmitted, data must betransformed to electromagnetic signals.

    Note

  • 8/18/2019 shannon capacity basics

    5/50

    Signals can be analog or digital.Analog signals can have an infinitenumber of values in a range; digital

    signals can have only a limitednumber of values.

    Note

  • 8/18/2019 shannon capacity basics

    6/50

    Analog Vs Digital

  • 8/18/2019 shannon capacity basics

    7/50

    Analog Signals

  • 8/18/2019 shannon capacity basics

    8/50

    Sine Wave

  • 8/18/2019 shannon capacity basics

    9/50

    Cont’

    Three parameters to describe a sine $a#e

    %. Peak amplitude. 're(uency and time period

    ). Phase

  • 8/18/2019 shannon capacity basics

    10/50

    The bandwidth of a composite signal isthe difference between the

    highest and the lowest frequenciescontained in that signal.

    Note

  • 8/18/2019 shannon capacity basics

    11/50

  • 8/18/2019 shannon capacity basics

    12/50

    Digital Signals

  • 8/18/2019 shannon capacity basics

    13/50

    Digital Signals

    *n addition to being represented by an analogsignal+ in ormation can also be representedby a digital signal. 'or example+ a % can beencoded as a positi#e #oltage and a , as-ero #oltage. " digital signal can ha#e morethan t$o le#els. *n this case+ $e can send

    more than % bit or each le#el.

  • 8/18/2019 shannon capacity basics

    14/50

    Digital Signal

  • 8/18/2019 shannon capacity basics

    15/50

    Bit Rate & Bit nterval!contd"#

  • 8/18/2019 shannon capacity basics

    16/50

    Bit nterval and Bit Rate

    Example ExampleA digital signal has a bit rate of 2000 bps. What is theduration of each bit (bit interval)

    SolutionSolution

    The bit interval is the inverse of the bit rate.

    Bit interval = 1/ 2000 s = 0.000 00 s= 0.000 00 ! 10 " µ s = 00 µ s

  • 8/18/2019 shannon capacity basics

    17/50

    The bit rate and the bandwidth areThe bit rate and the bandwidth are

    proportional to each other. proportional to each other.

    Note

  • 8/18/2019 shannon capacity basics

    18/50

    Analog Vs Digital

  • 8/18/2019 shannon capacity basics

    19/50

  • 8/18/2019 shannon capacity basics

    20/50

    Low Pass & Band Pass

  • 8/18/2019 shannon capacity basics

    21/50

    Data Rate Li%its

  • 8/18/2019 shannon capacity basics

    22/50

    Data Rate Li%its

    A ver# i$portant consideration in dataco$$unications is ho% fast %e can send data& in bits

    per second& over a channel. 'ata rate depends on

    three factors1. The band%idth available2. The level of the signals %e use

    . The *ualit# of the channel (the level of noise)

  • 8/18/2019 shannon capacity basics

    23/50

  • 8/18/2019 shannon capacity basics

    24/50

  • 8/18/2019 shannon capacity basics

    25/50

    Example 8 Example 8

    +onsider the sa$e noiseless channel& trans$itting a signal%ith four signal levels (for each level& %e send t%o bits).The $a!i$u$ bit rate can be calculated as

    Bit ate = 2 ! 000 ! logBit ate = 2 ! 000 ! log 22 = 12&000 bps = 12&000 bps

  • 8/18/2019 shannon capacity basics

    26/50

    Increasing the levels of a signal mayreduce the reliability of the system.

    Note

  • 8/18/2019 shannon capacity basics

    27/50

  • 8/18/2019 shannon capacity basics

    28/50

    Example Example

    +onsider an e!tre$el# nois# channel in %hich the valueof the signal to noise ratio is al$ost -ero. n other %ords&the noise is so strong that the signal is faint. or thischannel the capacit# is calculated as

    + = B log+ = B log 22 (1 3 45 ) = B log(1 3 45 ) = B log 22 (1 3 0)(1 3 0)

    = B log= B log 22 (1) = B(1) = B ×× 0 = 00 = 0

  • 8/18/2019 shannon capacity basics

    29/50

    Example Example

    We can calculate the theoretical highest bit rate of aregular telephone line. A telephone line nor$all# has a

    band%idth of 000. The signal to noise ratio is usuall#1"2. or this channel the capacit# is calculated as

    + = B log+ = B log 22 (1 3 45 ) = 000 log(1 3 45 ) = 000 log 22 (1 3 1"2)(1 3 1"2)= 000 log= 000 log 22 ( 1" )( 1" )

    + = 000+ = 000 ×× 11."2 = &6"0 bps11."2 = &6"0 bps

  • 8/18/2019 shannon capacity basics

    30/50

    Example ExampleWe have a channel %ith a 1 7,- band%idth. The 45for this channel is " 8 %hat is the appropriate bit rate andsignal level9

    SolutionSolution

    C = B logC = B log 22 (1 + SNR) = 10(1 + SNR) = 10 66 loglog 22 (1 + 63) = 10(1 + 63) = 10 6

    6 loglog 22 (64) = 6 Mbps(64) = 6 Mbps

    Then we use the Nyquist formula to nd thenumber of signal levels.

    66 Mbps = 2Mbps = 2 1 MHz1 MHz loglog 22 L L L = 8 L = 8

    irst& %e use the 4hannon for$ula to find our upperirst& %e use the 4hannon for$ula to find our upperli$it.li$it.

  • 8/18/2019 shannon capacity basics

    31/50

    The Shannon capacity gives us theupper limit; the Nyquist formula tells us

    how many signal levels we need.

    Note

  • 8/18/2019 shannon capacity basics

    32/50

    Trans%ission %pair%ents

  • 8/18/2019 shannon capacity basics

    33/50

    Trans%ission %pair%ents

    Signals tra#el through transmission media+$hich are not per ect. The imper ectioncauses signal impairment. This means that

    the signal at the beginning o the medium isnot the same as the signal at the end o themedium. 7hat is sent is not $hat is recei#ed.Three causes o impairment are attenuationattenuation ,,distortiondistortion ,, and noisenoise ..

  • 8/18/2019 shannon capacity basics

    34/50

  • 8/18/2019 shannon capacity basics

    35/50

    Deci)el8sed to signal gained or lost strength

    d0 2 %, log P 9P% 4Po$er6

    d !oltage " #$ log %!&'!#(d )urrent " #$ log %I&'I#(

    The d0 is not an absolute (uantity+ it is al$ays a *ATI+ ot$o (uantities. The unit can be used to express po$ergain 4P P%6+ or po$er loss 4P ;P%6

  • 8/18/2019 shannon capacity basics

    36/50

    *+a%ple

    Suppose a signal tra#els throughtransmission medium and its po$er isreduced to one hal =. /alculate attenuation

    loss>

  • 8/18/2019 shannon capacity basics

    37/50

    Signal Distortion

    attenuation

    distortion

    noise

  • 8/18/2019 shannon capacity basics

    38/50

  • 8/18/2019 shannon capacity basics

    39/50

    Per,or%ance

    0and$idthThroughputLatency 4Delay60and$idth

  • 8/18/2019 shannon capacity basics

    40/50

    Thro$ghp$t

  • 8/18/2019 shannon capacity basics

    41/50

    Latency

    Latency 2 propagation time5

    transmission time 5

    (ueuing time 5

    processing time

  • 8/18/2019 shannon capacity basics

    42/50

    Propagation Ti%e

  • 8/18/2019 shannon capacity basics

    43/50

    The bandwidth delay product definesthe number of bits that can fill the lin-.

    Note

  • 8/18/2019 shannon capacity basics

    44/50

  • 8/18/2019 shannon capacity basics

    45/50

    Analog To DigitalConversion

  • 8/18/2019 shannon capacity basics

    46/50

    Sa%pling

    Pulse Code Modulation Pulse Code ModulationSampling Rate: Nyquist TheoremSampling Rate: Nyquist Theorem

  • 8/18/2019 shannon capacity basics

    47/50

    PC-

    $anti/ation & *ncoding

  • 8/18/2019 shannon capacity basics

    48/50

    .$anti/ation & *ncodingSa%ples

  • 8/18/2019 shannon capacity basics

    49/50

    According to the Nyquist theorem, thesampling rate must be

    at least # times the highest frequencycontained in the signal.

    Note

  • 8/18/2019 shannon capacity basics

    50/50