Вы находитесь на странице: 1из 77

INTRODUCTION:

Data Communication &


Networking

Mahan Institute of Technologies,


New Delhi
@ 2006 mit

Organization

• Communication
• Signal Representation
• Analog Vs. Digital
• Digital Transmission
• Channel Capacity
• Data Communication System
• Networking Overview
12/08/21 2
@ 2006 mit

Simple Communication Model

Source Destination

Transmission

media

12/08/21 3
@ 2006 mit

Terminology

• Transmitter
• Receiver
• Medium
– Guided medium
• e.g. twisted pair, optical fiber
– Unguided medium
• e.g. air, water, vacuum

12/08/21 4
@ 2006 mit

Example

client program server

communications
channel

12/08/21 5
@ 2006 mit

Communication System

Noise

Carrier

Source Modulator Demodulator Sink/


Destination

Transmission
media
12/08/21 6
@ 2006 mit

Signal Types

• Time domain concepts


– Continuous signal
• Various in a smooth way over time
– Discrete signal
• Maintains a constant level then changes to another constant
level
– Periodic signal
• Pattern repeated over time
– Aperiodic signal
• Pattern not repeated over time

12/08/21 7
@ 2006 mit

Frequency, Spectrum and


Bandwidth
Signal bandwidth
(fupper-flower)
Amplitude
(or power)

Frequency

flower fupper

Attenuation (dB)

Signal bandwidth

3 dB
Frequency

12/08/21 8
@ 2006 mit

Bandwidth
Attenuation (dB)

Signal bandwidth

3 dB

Frequency

12/08/21 9
@ 2006 mit

Continuous & Discrete Signals

12/08/21 10
@ 2006 mit

Periodic Signals

12/08/21 11
@ 2006 mit

Sine Wave

• Peak Amplitude (A)


– maximum strength of signal
– volts
• Frequency (f)
– Rate of change of signal
– Hertz (Hz) or cycles per second
– Period = time for one repetition (T)
– T = 1/f
• Phase ()
– Relative position in time

12/08/21 12
@ 2006 mit

Varying Sine Waves

12/08/21 13
@ 2006 mit

Amplitude Amplitude

V max

T (1/f) V max
0

-V max
f (1/T)

Time domain Frequency domain

12/08/21 14
@ 2006 mit

Wavelength

• Distance occupied by one cycle


• Distance between two points of corresponding
phase in two consecutive cycles

• Assuming signal velocity v
  = vT
 f = v
– c = 3*108 ms-1 (speed of light in free space)

12/08/21 15
@ 2006 mit

Frequency Domain Concepts

• Signal usually made up of many


frequencies
• Components are sine waves
• Can be shown (Fourier analysis) that any
signal is made up of component sine waves
• Can plot frequency domain functions

12/08/21 16
@ 2006 mit

Addition of Frequency Components

12/08/21 17
@ 2006 mit

Frequency Domain

12/08/21 18
@ 2006 mit

Spectrum & Bandwidth

• Spectrum
– range of frequencies contained in signal
• Absolute bandwidth
– width of spectrum
• Effective bandwidth
– Often just bandwidth
– Narrow band of frequencies containing most of the energy
• DC Component
– Component of zero frequency

12/08/21 19
@ 2006 mit

Signal with DC Component

12/08/21 20
@ 2006 mit

Data Rate and Bandwidth

• Any transmission system has a limited band


of frequencies
• This limits the data rate that can be carried

12/08/21 21
@ 2006 mit

Analog and Digital Data


Transmission
• Data
– Entities that convey meaning
• Signals
– Electric or electromagnetic representations of
data
• Transmission
– Communication of data by propagation and
processing of signals

12/08/21 22
@ 2006 mit

Data

• Analog
– Continuous values within some interval
– e.g. sound, video
• Digital
– Discrete values
– e.g. text, integers

12/08/21 23
@ 2006 mit

Acoustic Spectrum (Analog)

12/08/21 24
@ 2006 mit

Signals

• Means by which data are propagated


• Analog
– Continuously variable
– Various media
• wire, fiber optic, space
– Speech bandwidth 100Hz to 7kHz
– Telephone bandwidth 300Hz to 3400Hz
– Video bandwidth 4MHz
• Digital
– Use two DC components

12/08/21 25
@ 2006 mit

Data and Signals

• Usually use digital signals for digital data


and analog signals for analog data
• Can use analog signal to carry digital data
– Modem
• Can use digital signal to carry analog data
– Compact Disc audio

12/08/21 26
@ 2006 mit

Analog Signals Carrying Analog


and Digital Data

12/08/21 27
@ 2006 mit

Digital Signals Carrying Analog


and Digital Data

12/08/21 28
@ 2006 mit

Analog Transmission

• Analog signal transmitted without regard to


content
• May be analog or digital data
• Attenuated over distance
• Use amplifiers to boost signal
• Also amplifies noise

12/08/21 29
@ 2006 mit

Digital Transmission

• Concerned with content


• Integrity endangered by noise, attenuation etc.
• Repeaters used
• Repeater receives signal
• Extracts bit pattern
• Retransmits
• Attenuation is overcome
• Noise is not amplified

12/08/21 30
@ 2006 mit

Advantages of Digital Transmission


• Digital technology
– Low cost LSI/VLSI technology
• Data integrity
– Longer distances over lower quality lines
• Capacity utilization
– High bandwidth links economical
– High degree of multiplexing easier with digital techniques
• Security & Privacy
– Encryption
• Integration
– Can treat analog and digital data similarly

12/08/21 31
@ 2006 mit

‘1’ ‘0’

12/08/21 32
@ 2006 mit

Bit stream
to be
transmitted 0 1 1 0 1 1 1 1 1 0 0 0 1

Manchester
encoding

Extracted
receiver
clock

Receiver
bit stream
0 1 1 0 1 1 1 1 1 0 0 0 1

12/08/21 33
@ 2006 mit

digital
threshold

digital signal noise digital signal


+ noise

+
- digital
threshold

comparator

12/08/21 34
@ 2006 mit

+V
0V
-V

0 1 1 0 0 1 0 0 1 1 1 1

12/08/21 35
@ 2006 mit

No timing information

+V
0V
-V

0 1 1 0 0 0 0 0 0 1 1 1

12/08/21 36
@ 2006 mit

DAC output
Analogue

Signal

Slope overload

PCM 1111111000100011000010101

12/08/21 37
@ 2006 mit

signal

Ts

samples

12/08/21 38
@ 2006 mit

1111
1110
1101
1100
1011
1010
1001
1000
0111
0110
0101
0100
0011
0010
0001
0000

Encoded 1110 1100 0001 1110 1100 0001 1110 1100


data 1101 0000 0001 1101 0000 0001 1101

12/08/21 39
@ 2006 mit

Digital code Digital code


FS - Full scale voltage

111 111
110 110
101 101
100 100
011
011
010
010
001 Voltage 001
000
000
FS/4 FS/2 3FS/4 FS

Unipolar coding Bipolar coding

12/08/21 40
@ 2006 mit

Quantization noise

Soft
speech Quantization noise noticeable

Quantization noise

Loud Quantization noise less


speech noticeable because signal
strength swamps quantization
noise

12/08/21 41
@ 2006 mit

Amplitude Amplitude

V max

V max
T (1/f)
0

-V max
f (1/T)
Time domain Frequency domain

12/08/21 42
@ 2006 mit

V
0.9

1
0
T
0.3
0.2
-0.9
1/T 3/T 5/T f

Time domain Frequency domain

12/08/21 43
@ 2006 mit

Transmission Impairments

• Signal received may differ from signal


transmitted
• Analog - degradation of signal quality
• Digital - bit errors
• Caused by
– Attenuation and attenuation distortion
– Delay distortion
– Noise

12/08/21 44
@ 2006 mit

Attenuation

• Signal strength falls off with distance


• Depends on medium
• Received signal strength:
– must be enough to be detected
– must be sufficiently higher than noise to be
received without error
• Attenuation is an increasing function of
frequency

12/08/21 45
@ 2006 mit

Delay Distortion

• Only in guided media


• Propagation velocity varies with frequency

12/08/21 46
@ 2006 mit

Noise (1)

• Additional signals inserted between transmitter


and receiver
• Thermal
– Due to thermal agitation of electrons
– Uniformly distributed
– White noise
• Intermodulation
– Signals that are the sum and difference of original
frequencies sharing a medium

12/08/21 47
@ 2006 mit

Noise (2)

• Crosstalk
– A signal from one line is picked up by another
• Impulse
– Irregular pulses or spikes
– e.g. External electromagnetic interference
– Short duration
– High amplitude

12/08/21 48
@ 2006 mit

Channel Capacity

• Data rate
– In bits per second
– Rate at which data can be communicated
• Bandwidth
– In cycles per second of Hertz
– Constrained by transmitter and medium

12/08/21 49
@ 2006 mit

Data Communication Model

DTE DCE DCE DTE

Computer Modem Modem Computer

12/08/21 50
@ 2006 mit

Data Communications Model


• Source
– generates data to be transmitted
• Transmitter
– Converts data into transmittable signals
• Transmission System
– Carries data
• Receiver
– Converts received signal into data
• Destination
– Takes incoming data

12/08/21 51
@ 2006 mit

Model vs. Example

12/08/21 52
@ 2006 mit

Key Communications Tasks


• Transmission System Utilization
• Interfacing
• Signal Generation
• Synchronization
• Exchange Management
• Error detection and correction
• Addressing and routing
• Recovery
• Message formatting
• Security
• Network Management

12/08/21 53
@ 2006 mit

Simplified Data Communications


Model

12/08/21 54
@ 2006 mit

DTE-DCE Interface

Transmit (T)

Control (C)

Receive (R) Data Circuit


Data Termination Termination
Equipment (DTE) Indication (I) Equipment (DCE)

Signal timing

GND

12/08/21 55
@ 2006 mit

Terminology

• Simplex
– One direction
• e.g. Television
• Half duplex
– Either direction, but only one way at a time
• e.g. police radio
• Full duplex
– Both directions at the same time
• e.g. telephone

12/08/21 56
@ 2006 mit

Modes of Communication

Simplex
communications

Half-duplex (HDX)
or
communications

Full-duplex (FDX)
communications

12/08/21 57
@ 2006 mit

Communication Ports

9-pin D-type 9-pin or 25-pin D-type


male connector (COM1:) male connector (COM2:)
12/08/21 58
@ 2006 mit

transmitter receiver
buffer buffer
transmitted
characters

Receiver
reads from
buffer

Receiver has
failed to read the
buffer before another
character has been
received

Transmitter Receiver

12/08/21 59
@ 2006 mit

Data
transmission
Transmitter

Receiver
X-OFF
X-ON

Data
transmission

12/08/21 60
@ 2006 mit

RTS Are you ready


to receive ?
Transmitting CTS
node
RTS
No
CTS
RTS
Yes
CTS Receiving
TD node

Send
character RD

12/08/21 61
@ 2006 mit

First bit sent

01100010 01001111 10100111 00100011

‘F’ ‘r’ ‘e’ ‘d’

12/08/21 62
@ 2006 mit

+12V

-12V

0 1 0 0 1 1 0
Inactive condition

12/08/21 63
@ 2006 mit

1 1 0 1 0

ASK

PSK

FSK

12/08/21 64
@ 2006 mit

Tx Character Tx Character Tx Character

Inactive condition

12/08/21 65
@ 2006 mit

0 b0 b1 b2 b3 b4 b5 b6 P S1 S2 1

start ASCII parity stop


bit character bit bit(s)

0 1 0 0 0 0 0 1 1 1 1

‘A’ (100 0001)

12/08/21 66
@ 2006 mit

B0
B1

B2

B3
Parity
Even/Odd Parity

12/08/21 67
@ 2006 mit

+12 V
Start Stop
0 1 1 0 1 0 1 bit
-12 V bit

120 S
ASCII ‘V’ 101 0110
Baud rate: 9600 baud

12/08/21 68
@ 2006 mit

+12V

-12V

0 1 0 0 1 1 0
Inactive condition

12/08/21 69
@ 2006 mit

Pin Signal
2 TxData
13 12 11 10 9 8 7 6 5 4 3 2 1 3 RxData
4 RTS
5 CTS
25 24 23 22 21 20 19 18 17 16 15 14 6 DSR
7 GND
20 DTR

12/08/21 70
@ 2006 mit

Transmission Media

• Wired
– Twisted pair, Coaxial cable, FO
• Wireless
– Short range
• Infrared
– Long Range
• Microwave
• Satellite

12/08/21 71
@ 2006 mit

Electromagnetic spectrum
(its uses for communication)

12/08/21 72
@ 2006 mit

Transmission Media
Insulating outer conductor
Inner Metal sheath
conductor

Coaxial
cable

Outer cladding
Inner cladding
(PVC)
Inner fibre (glass)
Fibre
(glass)
optic
cable

Twisted-pair
cable

12/08/21 73
@ 2006 mit

Terminology

• Direct link
– No intermediate devices
• Point-to-point
– Direct link
– Only 2 devices share link
• Multi-point
– More than two devices share the link

12/08/21 74
@ 2006 mit

Telephone Network

12/08/21 75
@ 2006 mit

Cable TV Network

12/08/21 76
@ 2006 mit

Suggested Reading

• William Stallings
Data and Computer Communications
chapter 3
• B. Forouzan
Data Communication & Networks
chapter 2

12/08/21 77

Вам также может понравиться