Communication and Networks Assignment

profileTubekbay001
0_Lesson7AnalogueandDigitalSignals.pptx

Communications and Networks

version 1.0

Diploma in Information Technology

Copyright © 2020 by Singapore Institute of Management Pte Ltd. All rights reserved.

Lesson 7: Analogue and Digital Signals

1

Lesson 7 Learning Outcomes

Distinguish between analogue and digital signal

Distinguish between periodic and aperiodic signals

Define sine waves

Identify the four important characteristics of signals

Define composite signals

2

Lesson 7 Learning Outcomes

Discuss the time and frequency domain representation of signals

Use Shannon law and Nyquist theorem to calculate the channel theoretical capacity

3

Lesson 7 Outline

Data Communications

Communication Model

Physics of Transmission

Types of Signal

Representing Signals

4

Information Source & Destination

Communication system accepts input from one or more sources and delivers to a destination

On the Internet, source and destination of information are pair of application programs

Source: generate data

Destination: consume data

Source: Bing, licensed under CC BY-SA

5

Data Communications

Data communications theory concentrates on low-level communications systems

Sources: microphones, sensors, measuring devices like thermometers and scales and computer peripherals like keyboards, mice

Destinations: audio output devices like earphones and loud-speakers, LEDs that emit light

6

Data vs Computer Communications

In most cases, the terms are interchangeable

To be specific:

Data communication: for lower layer aspects like signaling, device interfaces, hardware related issues

Computer communication: for higher layer aspects such as network protocols, applications, software related issues

7

Communication Model

Provides an understanding of how information is transferred

Shows how information is sent and received

Shows the parties and factors involved in a communication

8

Claude Shannon & Warren Weaver

In 1948, Shannon and Weaver came up with an idea

Successful communication requires:

Information source: generates data

Messages: data transmitted

Transmitter: converts information to signals

Channel: medium in which signal are transmitted

Receiver: translate signal back to original message

Destination: consume data

9

Shannon’s Communications Model

Information

Source

Transmitter

Channel

Receiver

Destination

Noise Source

Noise

Message

Signal

Received Signal

Message

10

Complicating Factor

Transmission of signal can be disrupted by noise

Noise could be caused by the medium/channel used

Noise source: generates noise

Increase the signal, increase the noise

If signal is amplified, noise is amplified too

11

Amplifying Signal

Source: Douglas, C (2016) Computer Networks and Internets

Signal to noise ratio will remain constant

P1 : N1 = P2 : N2

Noise level N1

Noise level N2

12

Communication Model

Source: https:// www.youtube.com / watch?v =OY1JsGFZprc

13

Practice 7.1

Describe the SIX components in the Shannon’s communication model.

14

Lesson 7 Outline

Data Communications

Communication Model

Physics of Transmission

Types of Signal

Representing Signals

15

Physics of Transmission

Most functions on physical layer depends on characteristics of physical medium

Each physical medium requires own physical layer

Before looking into the functions, we need to consider some basic physics

like electromagnetism including electric conduction and electromagnetic radiation

16

Transmitting Information

Data communications deals with two types of signals to transmit information:

analog

digital

Analog signal is characterized by continuous signal levels

When input changes from one value to next, it does so by moving through all possible intermediate values

17

Analog vs Digital Signal

A digital signal has a fixed set of valid levels

Each change consists of an instantaneous move from one valid level to another

Source: Douglas, C (2016) Computer Networks and Internets

Analog

Digital

18

Signal Classification

Signals are broadly classified as

periodic - repeated

aperiodic - sometimes called nonperiodic

Classification depends on whether they repeat

Left: aperiodic as the signal does not repeat

Right: periodic as the signal repeats

Source: Douglas, C (2016) Computer Networks and Internets

19

Sine Waves

Much analysis in data communications involves the use of sinusoidal trigonometric functions

Especially sine, abbreviated sin

Sine wave: periodic wave that oscillates regularly and smoothly between negative and positive value

Source: Bing, licensed under CC BY-SA

20

Sine Waves: Superimposed

Two sine waves are superimposed exactly on each other

If they are in the same phase

Two sine waves cannot superimpose on each other

If one of the waves of the same frequency has crest slightly later than the other

They are said to be out of phase

21

Sine Waves Importance

Sine waves are especially important in information sources

Natural phenomena produce sine waves

A microphone picks up an audible tone, the output is a sine

Electromagnetic radiation can be represented as sine wave

We are interested in sine waves that correspond to a signal that oscillates in time

22

Sine Waves Shape

Importance of sine waves is not just that signals often carried by them

Like in fibre optics, wireless transmission and communications using modems

The shapes are also important

Square shaped digital signal can be represented by a series of sine waves of different frequencies

Help engineers to analyse and design transmission systems

23

Signal Characteristics

Frequency: the number of oscillations per unit time (usually seconds)

Amplitude: the difference between the maximum and minimum signal heights

Phase: how far the start of the sine wave is shifted from a reference time

Wavelength: length of a cycle as a signal propagates across a medium

Determined by speed which signal propagates

24

Speed of Waves

25

Electromagnetic Spectrum

Source: Douglas, C (2016) Computer Networks and Internets

26

Visualising Signal Characteristics

Signal characteristics can be expressed mathematically

Source: Douglas, C (2016) Computer Networks and Internets

27

Signal Observations (1/3)

Frequency can be calculated as inverse of the time required for one cycle, which is known as period

The example (a) has:

Period T = 1 seconds

Frequency of 1 / T or 1 Hertz

The example (b) has

Period T = 0.5 seconds

Frequency of 2 Hertz

Source: Douglas, C (2016) Computer Networks and Internets

28

Signal Observation (2/3)

Both (a) and (b) are extremely low frequencies

Typical communication systems use high frequencies measured in millions of cycles per second

Source: Douglas, C (2016) Computer Networks and Internets

29

Signal Observation (3/3)

To clarify high frequencies, engineers express time in fractions of a second

OR express frequency in units like megahertz (MHz)

There are other orders of time to express frequency

30

Time & Frequency Units

Source: Douglas, C (2016) Computer Networks and Internets

31

Practice 7.2

Describe the FOUR signal characteristics.

32

Lesson 7 Outline

Data Communications

Types of Signal

Representing Signals

33

Simple Signals

Signals like the ones illustrated below are classified as simple

They consist of a sine wave that cannot be decomposed further

Source: Douglas, C (2016) Computer Networks and Internets

34

Composite Signals

However, most signals are classified as composite

signal can be decomposed into a set of simple sine waves

Source: Douglas, C (2016) Computer Networks and Internets

35

Importance of Composite Signal

Data communications concepts mostly relates to sine functions and composite signals

In modulation and demodulation, one of the primary reasons:

Signals that result from modulation are usually composite signals

36

Fourier Analysis (1/2)

A mathematician named Fourier discovered that

Possible to decompose a composite signal into its constituent parts

Each part is a sine function with frequency amplitude and phase

37

Fourier Analysis (2/2)

Analysis by Fourier shows that if composite signal is periodic, the constituent parts will also be periodic

Most systems use composite signals to carry information

Composite signal is created at the sending end

Receiver decomposes the signal into simple components

38

Fourier Analysis Result

Harmonics: frequencies from multiples of a base frequency

Mathematics behind this is known as Fourier Analysis

Signal of any shape can be represented by series of sine waves of different harmonic frequencies

39

Lesson 7 Outline

Data Communications

Types of Signal

Representing Signals

40

Representing Composite Signals

Several methods have been invented to represent composite signals

Time domain: graph of signal as function of time

Frequency domain: graph of frequency vs amplitude

41

Frequency Domain

Frequency domain graph shows a set of simple sine waves that constitute a composite function

y-axis gives the amplitude

x-axis gives the frequency

Source: Douglas, C (2016) Computer Networks and Internets

Frequency domain of

42

Frequency Domain Benefits

Frequency domain representation can also be used with nonperiodic signals

Compactness: frequency domain graph is small and easy to read as each sine wave occupies a single point along the x-axis

Good when a composite signal contains many simple signals

43

Bandwidth

Range of frequencies that can be effectively carried by the channel

Measures the difference between the upper and lower level frequency of transmission

In other words, it measures the number of times a signal oscillates per second

Unit of measurement: Hertz (Hz)

44

Maximum Bit Rate Achievable

Dependent on ability of receiver to discern level of signals received without errors

Depends on the effects of transmission impairments, particularly noise

There are two useful theorem:

Nyquist’s theorem

Shannon’s law

45

Nyquist Theorem

Nyquist Theorem: considers a noiseless channel when calculating maximum theoretical capacity of a channel

Nyquist Theorem: C = 2B log2V

V is the number of signaling levels used to carry the signals

C is the maximum theoretical capacity in bit/s

B is the bandwidth in Hertz (Hz)

46

Nyquist Theorem Example

Suppose a 3.1 kHz telephone circuit in which signal is carried using 32 signaling levels

Using Nyquist Theorem:

C = 2B log2V

= 2 x 3100 x log232

= 6200 x 5

= 31,000 bit/s

= 31 kbit/s

47

Practice 7.3

A signal making use of 64 separate signaling states is transmitted in a channel between the frequencies of 2kHz and 2.4 kHz.

What is the maximum achievable data rate in this channel?

48

Shannon’s Law

Shannon’s Law: considers a noisy channel by using signal to noise ratio when calculating maximum theoretical capacity of a channel

Shannon’s Law: C = B log2 (1 + S/N)

C is the maximum theoretical capacity in bit/s

B is the bandwidth in Hertz (Hz)

S is the signal power in Watts (W)

N is the noise power in Watts (W)

49

Signal to Noise Ratio

Signal to Noise Ratio (SNR) is calculated using

SNR = 10 log10 (S/N)

S is the power of signal

N is the power of noise

Unit of measurement: deciBel (dB)

50

Shannon’s Law Example (1/2)

Suppose a 3.1 kHz telephone circuit with a signal to noise ratio of 40dB

Converting 40dB to real ratio:

40 = 10 log10 S/N

4 = log10 S/N

104 = S/N

S/N = 10,000

51

Shannon’s Law Example (2/2)

Using Shannon’s law to calculate the theoretical maximum capacity

C = B log2(1 + S/N)

= 3,100 log2 (1 + 10000)

= 3,100 log2 (10,001)

= 3,100 x 13.2879

= 41,192 bit/s

= 41.2 kbit/s

52

Practice 7.4

A microwave radio signal is broadcast between the frequencies of 1 GHz and 1.1 GHz between two radio towers where it is affected by noise of power 2mW.

If the signal must carry 1 Gbit/s of data, calculate minimum level of power that will be required in the transmitter.

53

Extreme Cases to Consider

If signal do not change at all over time, frequency range of the component sine waves is 0

Requires no bandwidth

If the signal change abruptly from one level to another, like a square wave, frequency range of the component sine waves is infinite

Requires infinite bandwidth

54

Infinite Range of Frequencies

No medium can support infinite range of frequencies

All media must remove higher frequency components from the signal

No medium can perfectly carry a square shaped wave

Shape will be distorted when higher frequency components are removed

Shape of the signal received will not have perfectly straight edges

55

Reading

Douglas, C. (2016). Computer Networks and Internets, Global Edition (6th ed.). Pearson Education. ISBN: 978-1292061177 Chapter 6

56

End of Lesson

57