03-signals.ppt

Upload: hafiz-fizul

Post on 14-Apr-2018

214 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/27/2019 03-Signals.ppt

    1/33

    1

    Physical Layer:

    Data and Signals

    01204325: Data Communication

    and Computer Networks

    Asst. Prof. Chaiporn Jaikaeo, [email protected]

    http://www.cpe.ku.ac.th/~cpj

    Computer Engineering DepartmentKasetsart University, Bangkok, Thailand

    mailto:[email protected]:[email protected]
  • 7/27/2019 03-Signals.ppt

    2/33

    2

    Outline

    Analog and digital data/signals Time and frequency domain views of signals

    Bandwidth and bit rate

    Transmitting digital signals as analog

    Theoretical data rate

    Signal impairment

  • 7/27/2019 03-Signals.ppt

    3/33

    3

    Analog vs. Digital Data

    Analog data Data take on continuous values

    E.g., human voice, temperature reading

    Digital data Data take on discrete values

    E.g., text, integers

  • 7/27/2019 03-Signals.ppt

    4/33

    4

    Analog vs. Digital Signals

    Analog signals

    have an infinite number ofvalues in a range

    Digital signals Have a limited number of

    values

    value

    time

    value

    time

    To be transmi tted, data must betransformed to electromagnetic signals

  • 7/27/2019 03-Signals.ppt

    5/33

    5

    Data and Signals

    Telephone

    Analog Data Analog Signal

    Modem

    Digital Data Analog Signal

    Codec

    Analog Data Digital Signal

    Digitaltransmitter

    Digital Data Digital Signal

  • 7/27/2019 03-Signals.ppt

    6/33

    6

    Simplest form of periodic signal

    General form:x(t) =Asin(2ft+ )

    periodT= 1/f

    peakamplitude

    time

    signal strength

    Sine Waves

    phase / phase shift

  • 7/27/2019 03-Signals.ppt

    7/337

    -3

    -2

    -1

    0

    1

    2

    3

    0 0.5 1 1.5 2 2.5 3

    A = 1,f= 1, = 0 -3

    -2

    -1

    0

    1

    2

    3

    0 0.5 1 1.5 2 2.5 3

    A = 2,f= 1, = 0

    -3

    -2

    -1

    0

    1

    2

    3

    0 0.5 1 1.5 2 2.5 3

    A = 1,f= 2, = 0 -3

    -2

    -1

    0

    1

    2

    3

    0 0.5 1 1.5 2 2.5 3

    A = 1,f= 1, = /4

    Varying Sine Waves

  • 7/27/2019 03-Signals.ppt

    8/338

    Bandwidth of a Medium

    Transmission medium

    1

    (low-pass channel)gain

    freq

    t t

    0 f0 3f0 5f0 f0 f0 3f0 5f0 7f0...

    9f0 f

  • 7/27/2019 03-Signals.ppt

    9/339

    Digital Signals

    Properties: Bit rate number of bits per second

    Bit interval duration of 1 bit

    1 0 0 1 1 10 0

    ...

    time

    amplitude

    bit interval

  • 7/27/2019 03-Signals.ppt

    10/3310

    Two digi tal signals: one with two signal levels and the other

    with four signal levels

  • 7/27/2019 03-Signals.ppt

    11/3311

    Baseband transmission

    Baseband transmission Sending a digital signal over a channelwithout changing it to an analog signal

    Baseband transmission requires a low-pass channel

  • 7/27/2019 03-Signals.ppt

    12/3312

    A digital signal is a composite analogsignal with an infinite bandwidth.

    Note

  • 7/27/2019 03-Signals.ppt

    13/3313

    Baseband transmission using a dedicated medium

  • 7/27/2019 03-Signals.ppt

    14/3314

    Digital vs. Analog

    Using one harmonic

    1 1 1 1 1 1

    1 sec

    Bit rate = 6

    Digital

    1 0 1 0 1 0

    Bit rate = 6

    Digital

    1 0 1 0 1 0

    f = 3

    Analog

    1 1 1 1 1 1

    f = 0

    Analog

  • 7/27/2019 03-Signals.ppt

    15/3315

    Digital vs. Analog

    Using more harmonicsAdding 3rd harmonic to improve quality

    1 0 1 0 1 0

    f0 = 3, fmax= 9

    Analog

    1 0 1 0 1 0

    Bit rate = 6

    Digital

  • 7/27/2019 03-Signals.ppt

    16/3316

    Digital vs. Analog Bandwidth

    Digital bandwidth Expressed in bits per second (bps)

    Analog bandwidth

    Expressed in Hertz (Hz)

    Bit rate and bandwidth are proportional to each other

  • 7/27/2019 03-Signals.ppt

    17/3317

    Low-Pass and Band-Pass Channels

    Low-pass channel

    Band-pass channel

    frequencyf1 f2

    gain

    frequencyf1

    gain

  • 7/27/2019 03-Signals.ppt

    18/3318

    Modulation of a digital signal for transmission on a bandpass channel

  • 7/27/2019 03-Signals.ppt

    19/3319

    Transmission Impairment

    Attenuation Distortion

    Noise

  • 7/27/2019 03-Signals.ppt

    20/3320

    Signal Attenuation

    Attenuation

    Loss of energy

    Signal strength falls off with distance

    Attenuation depends on medium

    Attenuation is an increasing function offrequency

    Transmission medium

  • 7/27/2019 03-Signals.ppt

    21/3321

    Relative Signal Strength

    Measured in Decibel (dB)

    P1 andP2 are signal powers at points 1 and 2,

    respectively

    Positive dB signal is amplified (gains strength)

    Negative dB signal is attenuated (loses strength)

    dB = 10 log10 (P2/P1)

    Point 1 Point 2

  • 7/27/2019 03-Signals.ppt

    22/33

    22

    Signal Distortion

    Distortion Change in signal shape

    Only happens in guided media

    Propagation velocity varies with frequency

  • 7/27/2019 03-Signals.ppt

    23/33

    23

    Noise

    Noise

    Undesirable signals addedbetween the transmitter and the receiver

    Types of noise Thermal

    Due to random motion of electrons in a wire

  • 7/27/2019 03-Signals.ppt

    24/33

    24

    Noise

    Types of noise (contd) Crosstalk

    Signal from one line picked up by another

    Impulse Irregular pulses or spikes E.g., lightning

    Short duration

    High amplitude

    Wire 1

    Wire 2

  • 7/27/2019 03-Signals.ppt

    25/33

    25

    Data Rate: Noiseless Channels

    Nyquist Theorem

    Bit rate in bps

    Bandwidth in Hz

    L number of signal levels

    Bit Rate = 2 Bandwidth log2LHarry Nyquist(1889-1976)

  • 7/27/2019 03-Signals.ppt

    26/33

    26

    Data Rate: Noisy Channels

    Shannon Capacity

    Capacity (maximum bit rate) in bps Bandwidth in Hz

    SNR Signal-to-Noise Ratio

    Capacity = Bandwidth log2(1+SNR)

    Claude Elwood Shannon(1916-2001)

  • 7/27/2019 03-Signals.ppt

    27/33

    27

    The Shannon capacity gives us the

    upper limit; the Nyquist formula tells ushow many signal levels we need.

    Note

  • 7/27/2019 03-Signals.ppt

    28/33

    28

    Network Performance

    Bandwidth Hertz

    Bits per second (bps)

    ThroughputActual data rate

    Latency (delay)

    Time it takes for an entire message tocompletely arrive at the destination

  • 7/27/2019 03-Signals.ppt

    29/33

    29

    Latency

    Composed of Propagation time

    Transmission time

    Queuing time

    Processing time

    Entiremessage

    transmission

    time

    propagationtime

  • 7/27/2019 03-Signals.ppt

    30/33

    30

    Data bits

    Latency

    Time Time

    First bit leaves

    Last bit leaves

    First bit arrives

    Last bit arrives

    Sender Receiver

    Propagation time

    Transmission time

  • 7/27/2019 03-Signals.ppt

    31/33

    31

    Bandwidth-Delay Product

    The link is seen as a pipe Cross section = bandwidth

    Length = delay

    Bandwidth-delay product defines thenumber of bits that can fill the link

  • 7/27/2019 03-Signals.ppt

    32/33

    32

    Figure Fill ing the link with bits for case 1

  • 7/27/2019 03-Signals.ppt

    33/33

    Summary Data need to take form of signal to be

    transmitted

    Frequency domain representation of signalallows easier analysis Fourier analysis

    Medium's bandwidth limits certainfrequencies to pass

    Bit rate is proportional to bandwidth Signals get impaired by attenuation,

    distortion, and noise