Chapter 1. Introduction to Data Communications

Download Report

Transcript Chapter 1. Introduction to Data Communications

Chapter 3. Physical Layer
Business Data Communications and
Networking Fitzgerald and Dennis,
7th Edition
Copyright © 2002 John Wiley & Sons, Inc.
1
Copyright John Wiley & Sons, Inc. All rights reserved.
Reproduction or translation of this work beyond that named in
Section 117 of the United States Copyright Act without the
express written consent of the copyright owner is unlawful.
Requests for further information should be addressed to the
Permissions Department, John Wiley & Sons, Inc. Adopters of
the textbook are granted permission to make back-up copies for
their own use only, to make copies for distribution to students of
the course the textbook is used in, and to modify this material to
best suit their instructional needs. Under no circumstances can
copies be made for resale. The Publisher assumes no
responsibility for errors, omissions, or damages, caused by the
use of these programs or from the use of the information
contained herein.
2
Chapter 3. Learning Objectives
• Be familiar with different types of network
circuits and media
• Understand digital transmission of digital data
• Understand analog transmission of digital data
• Understand digital transmission of analog data
• Be familiar with analog/digital modems
• Be familiar with multiplexing
3
Chapter 3. Outline
• Introduction
• Circuits
– Circuit Configuration, Data Flow, Communication Media, Media
Selection
• Digital Transmission of Digital Data
– Coding, transmission modes, Dig. Trans., Ethernet data transmission
• Analog Transmission of Digital Data
– Modulation, Voice Circuit Capacity, How Modems Transmit Data
• Digital Transmission of Analog Data
– Pulse Amplitude Modulation, How Telephones Transmit Voice Data,
How Instant Messenger Transmits Voice Data
• Analog/Digital Modems
• Multiplexing
– FDM, TDM, STDM, WDM, Inverse Multiplexing, DSL transmission
• Summary
4
Introduction
5
The Physical Layer
• The physical layer includes network hardware and
circuits.
• Network circuits include physical media (e.g., cables)
and special purposes devices (e.g., routers and hubs).
Networks are made of both physical and logical
circuits.
– Physical circuits connect devices & include actual wires.
– Logical circuits refer to the transmission characteristics of
the circuit, such as a T-1 connection.
• Sometimes the physical and logical circuits are the
same, but they can be different. For example, in
multiplexing, one wire carries several logical circuits.
6
Analog and Digital Data
• Another fundamental physical layer distinction is
between digital and analog forms of data.
• Sounds waves, which vary continuously over time are
analog data.
• Computers produce digital data that is in binary form,
that is, it is represented as a series of ones and zeros.
7
Analog vs. Digital Transmission
• Transmissions can also be either analog or digital.
– Analog transmissions, like analog data, vary continuously.
Examples of analog data being sent using analog
transmissions are broadcast TV and radio.
– Digital transmissions are made of square waves with a
clear beginning and ending. Computer networks send digital
data using digital transmissions.
• Data can be converted between analog and digital
formats.
– When digital data is sent as an analog transmission modem
(modulator/demodulator) is used.
– When analog data is sent as a digital transmission, a codec
(coder/decoder) is used.
8
Data Type vs. Transmission Type
Analog
Transmission
Digital
Transmission
Analog
Data
Radio, Broadcast PCM & Video
TV
standards using
codecs
Digital Data
Modem-based
LAN Cable
Communications Standards
9
Advantages of Digital Transmission
• Digital transmission:
– produces fewer errors than analog transmission. Because
the transmitted data is binary (only two distinct values), it is
easier to detect and correct errors.
– permits higher transmission rates. Fiber optic cable, for
example, is designed for digital transmission.
– is more efficient. It is possible to send more data through a
given circuit using digital rather than analog transmission.
– is more secure since it is easier to encrypt.
• Integrating voice, video and data on the same circuit is
also far simpler with digital transmission since signals
made up of digital data are easier to combine.
10
Circuits
11
Circuit Configuration
• Two basic circuit configurations:
• Point-to-point connects just one sender and
receiver together (Figure 3-1)
• Multipoint (also called a shared circuit)
connects a number of senders and receivers
together (Figure 3-2)
– The advantage of multipoint is that it is cheaper
and simpler to wire
– The disadvantage is that only one computer can
use the circuit at a time
12
Figure 3-1
13
Figure 3-2
14
Data Flow (Figure 3-3)
• Data can move in one direction or both directions.
• Simplex data flows move in one direction only,
such as radio or cable television broadcasts.
• Half Duplex data flows both ways, but only one
direction at a time. As with CB radio, some kind
of control information must also be included so
that sender and receiver don’t send at the same
time.
• Full Duplex data can flow in both directions at the
same time.
15
Figure 3-3
16
Communications Media
• Medium: the physical matter that carries the
transmission. Two basic categories of media:
• With Guided media the transmission flows along
a physical guide. The three main types of guided
media: twisted pair wiring, coaxial cable and
optical fiber cable.
• With Wireless media there is no waveguide and
the transmission just flows through the air (or
space). The main forms of wireless
communications are radio, infrared, microwave
and satellite communications.
17
Guided Media: Twisted Pair Wires
• Twisted pair wire cables are commonly used for
telephones and local area networks.
• Twisting two wires together reduces
electromagnetic interference.
• TP cables have a number of pairs of wires.
– Telephone lines have two pairs (4 wires, usually only
one pair is used by the telephone)
– LAN cables have 4 pairs (8 wires)
• Shielded twisted pair also exists, but is more
expensive.
• TP cables are also used in telephone trunk lines
and can have up to several thousand pairs.
18
Insert Figure 3-4 (old 3-10) Here
19
Guided Media: Coaxial Cable
• Formerly common on LANs, but now
disappearing (but still used on other comm.
Equipment, e.g., CATV).
• More expensive than twisted pair, but coax is
shielded, so it’s less prone to interference than
twisted pair.
• Coaxial Cable Structure (Figure 3-5):
–
–
–
–
Inner conductor
Insulator
Wire mesh ground
Outer protective jacket or shell
20
Figure 3-5 Coaxial Cable
21
Guided Media: Fiber Optic Cable
• Widely used and has extremely high capacity.
• Light created by an LED (light-emitting diode) or
laser is sent down a thin glass or plastic fiber.
• Ideal for broadband. Most observers feel that fiber
will be used more and more extensively in the
future.
• Fiber optic cable structure (from center):
– Core (v. small, 5-50 microns, ~ the size of a
single hair)
– Cladding, which reflects the signal
– Protective outer jacket
22
Guided Media: Fiber Optic Cable
• Types of Optical Fiber:
– Multimode is cheap, but the signal spreads
out over short distances (up to ~500m).
– Graded index multimode reduces the
spreading problem by changing the
refractive properties of the fiber to refocus
the signal can be used over distances of up
to about 1000 meters.
– Single mode is expensive because difficult
to manufacture, but signal can be sent over
many kilometers without spreading.
23
Figure 3-6 Optical Fiber
24
Wireless Media
• Wireless media signals are sent without a guide.
Becoming popular for LAN use. The three main
forms are:
– Radio: wireless transmission of electrical. Includes AM
and FM radio bands. Microwave is also a form of radio
transmission.
– Infrared: “invisible” electromagnetic waves whose
frequency is below that of red light. Requires line of
sight and general subject to interference from heavy
rain. Used in remote control units (e.g., TV).
– Microwave: high frequency form of radio with
extremely short wavelength (1 cm to 1 m). Often used
for long distance terrestrial transmissions and cellular
telephones. Requires line-of-sight.
25
Guided Media: Satellite Communications
• Satellite communications are a special form of
microwave communications.
• Instead of transmitting from one terrestrial
microwave dish to another, satellite
communications are sent from the ground to a
satellite, usually in geosynchronous orbit, about
23,000 miles above the earth. The satellite then
relays the signal to its destination ground station.
• Even with signals traveling at light speed, the
great distance between from ground station to
satellite means a relatively large propagation delay
occurs between sending and receiving a signal.
26
Figure 3-8
27
Media Selection depends on many
factors including:
•
•
•
•
•
•
Type of network
Cost
Transmission distance
Security
Error rates
Transmission speeds
28
Insert Figure 3-9 (old 3-16) Here
29
Digital Transmission of Digital
Data
30
Coding
• Any written language uses symbols but computers
send signals in 1s and 0s (bits).
• So each written character needs a bit code in order to
be used by a computer. Together, a set of these bit
codes for a language is called a coding scheme.
• The two main character codes in use in North
America are ASCII and EBCDIC.
– ASCII: American Standard Code for Information
Interchange, originally used a 7-bit code (128
combinations), but an 8-bit version is now in use.
– EBCDIC: Extended Binary Coded Decimal Interchange
Code, an 8-bit code developed by IBM.
31
Transmission Modes
• Data can be sent either in serial or in parallel
• Parallel mode (Figure 3-10): uses several wires,
each wire sending one bit at the same time as the
others.
– A parallel printer cable sends 8 bits together.
– Your computers processor and motherboard also use a
parallel bus to move data around.
• Serial Mode (Figure 3-11): sends but by bit over a
single line. Serial mode is slower than parallel, but
can be used over longer distances because the bits
stay in the order they were sent, while bits sent in
parallel mode tend to spread out over long
distances.
32
Figure 3-10
33
Figure 3-11
34
Digital Transmission (Figure 3-12)
• Digital signals are sent as a series of “square waves”
of either positive or negative voltage. Voltages vary
between +3/-3 and +24/-24 depending on the circuit.
• Each digital transmission standard then defines what
voltage levels correspond to a bit value of 0 or 1.
• Unipiolar signal voltages either vary between 0 and a
positive value or between 0 and some negative value.
• Figure 3-12 shows a unipolar signal for which 5 volts
means a binary 1 and 0 volts mean a binary 0.
35
Digital Transmission (cont.)
• With bipolar signals, signals are sent using both
positive and negative voltages.
• A second digital transmission factor, called return
to zero (RZ) means the signal returns to the 0
voltage level after sending a bit. In non return to
zero (NRZ), the signals maintains its voltage at
the end of a bit.
• Ethernet uses Manchester encoding in which the
bit value is defined by the mid-bit transition. A
high to low voltage transition is a binary 0 and a
low-high mid-bit transition defines a binary 1.
36
Fig. 3-12 (Note: old figure. Pls change
37
Analog Transmission of Digital
Data
38
The Telephone Network
• Originally designed as an analog
communications network.
• Today, that standard analog telephone is
called POTS (Plain Old Telephone Service).
• Modem communications use the telephone
network to send digital data which has been
converted into an analog format.
39
Carrier Waves
• Modems use carrier waves to send information
(Figure 3-13).
• Each wave has three fundamental characteristics:
– Amplitude, meaning the height (intensity) of the wave
– Frequency, which is the number of waves that pass in a
single second and is measured in Hertz (cycles/second).
– Wavelength is a related characteristic is a, and means
the length of the wave from crest to crest.
– Phase is a third characteristic that describes point at
which the wave begins and is measured in degrees.
(From example, changing a wave’s cycle from crest to
trough corresponds to a 180 degree phase shift).
40
Figure 3-13 A Carrier Wave
41
Modulation
• Definition: Modulation is the modification of a
carrier wave’s fundamental characteristics in
order to encode information.
• There are three basic ways to modulate a
carrier wave:
– Amplitude Modulation
– Frequency Modulation
– Phase Modulation
42
Amplitude Modulation
• Amplitude Modulation (AM) is also called
Amplitude Shift Keying (ASK) means changing
the height of the wave to encode data.
• The AM dial on the radio uses amplitude
modulation to encode analog information.
• Figure 3-14 shows a simple case of amplitude
modulation in which one bit is encoded for each
carrier wave change.
– A high amplitude means a bit value of 1
– Zero amplitude means a bit value of 0
43
Figure 3-14 Amplitude Modulation
44
Frequency Modulation
• Frequency Modulation (FM) is also called
Frequency Shift Keying (FSK) means changing
the frequency of the carrier wave to encode data.
• The FM dial on the radio uses frequency
modulation to encode analog information.
• Figure 3-15 shows a simple case of frequency
modulation in which one bit is encoded for each
carrier wave change.
– Changing the carrier wave to a higher frequency
encodes a bit value of 1
– No change in the carrier wave frequency means a bit
value of 0
45
Figure 3-15 Frequency Modulation
46
Phase Modulation
• Phase refers to the point in each wave cycle at
which the wave begins.
• Phase Modulation (PM) is also called Phase Shift
Keying (PSK) means changing the phase of the
carrier wave to encode data.
• Figure 3-16 shows a simple case of phase
modulation in which one bit is encoded for each
carrier wave change.
– Changing the carrier wave’s phase by 180o corresponds
to a bit value of 1
– No change in the carrier wave’s phase means a bit value
of 0
47
Figure 3-16 Phase Modulation
48
Sending Multiple Bits Simultaneously
• Each modification of the carrier wave to encode
information is called a symbol.
• By introducing a more complicated system of coding
information, it is possible to encode more than 1
bit/symbol.
• Figure 3-17 gives an example of amplitude modulation
using 4 amplitude levels, corresponding to 2 bits/symbol.
• Increasing the possible number of symbols from 4 to 8
corresponds to encoding 3 bits/symbol, 16 levels to 4 bits,
and so on.
• Likewise, multiple bits per symbol might be encoded using
phase modulation, say using phase shifts of 0o, 90o, 180o,
and 270o.
49
Figure 3-17 Amplitude Modulation
50
Quadrature Amplitude Modulation (QAM)
• QAM refers to a family of encoding schemes that
are widely used for encoding multiple bits per data
that combines Amplitude and Phase Modulation.
• 16QAM is a common form of that uses 8 different
phase shifts and 2 different amplitude levels. Since
there are 16 possible symbols, each symbol
encodes 4 bits.
• QAM and related techniques are commonly used
for voice modems with a data rate of up to about
28 kilobits/second.
51
Bit Rate vs. Baud Rate (Symbol Rate)
• Bit rate (or data rate) is the number of bits transmitted
per second.
• Baud rate (same as symbol) refers to the number of
symbols transmitted per second.
• As we have just seen, since multiple bits can be
encoded per symbol, the two terms are not the same.
• For the example in Figure 3-17, the bit rate is twice
the baud rate. The general formula is:
Data Rate (bits/second)= Symbol Rate (symbols/sec.) x No. of bits/symbol
52
Capacity of a Voice Circuit
• The capacity of the telephone network is
constrained by the limitations of the telephone
lines and equipment used to transmit voice.
• Human hearing has a freq. range of 20 Hz to 1420 kHz, but the voice circuit range is 0-4000 Hz.
• Using QAM with 6 bits per symbol and the
maximum possible carrier wave frequency then
corresponds to a data rate of 6 * 4000 = 24 kbps.
• Phone lines have a far higher transmission
capacity of 1 MHz for lines up to 2 miles (3 km)
from a telephone exchange and 300 kHz for lines
2-3 miles (3 km) away (see DSL slide below).
53
How Modems Transmit Data
• Modem means modulator/demodulator. It is the device that
encodes and decodes data by manipulating the carrier wave.
• The V-series of modem standards are those approved by the
ITU-T standards group.
– V.22, an early standard had a 2400 bps bit rate
– V.34, one of the robust V standard includes multiple data
rates (up to 28.8 kbps) and a handshaking sequence that
test the circuit and determines the optimum data rate.
V.34+ increases the max. to 33.6 kbps
• Modems also use data compression, which looks for more
efficient ways to encode redundant data strings, such as
Lempel-Ziv encoding which builds a dictionary of character
patterns which it transmits in compressed form.
54
Insert Figure 3-18 (old 4-13)
Here
55
Digital Transmission of Analog
Data
56
Pulse Amplitude Modulation (PAM)
• An analog voice signal can be converted
into digital form using a device called a
codec (coder/decoder) which then converts
it back to analog data at the receiving end.
• The used is, called Pulse Amplitude
Modulation (PAM), involves 3 steps (see
Figures 3-19a-c):
– Measuring the signal,
– Taking samples of the signal,
– Encoding the signal as a binary data sample.
57
Figure 3-19a
58
Figure 3-19b
59
Figure 3-19c
60
How Telephones Transmit Voice
• The line from your phone to the first phone switch
is called the local loop, still uses the analog
techniques developed over a century ago by Bell.
• Today’s switches are now almost completely
digital and convert these analog signals to digital
data using a technique called Pulse Code
Modulation (PCM).
• PCM (similar to PAM) specifies a sample rate of
8000 samples/second and 8 bits/sample. The basic
digital communications unit used by the phone
network, the DS-0, has a data rate of 64 kbps,
corresponding to 1 digital voice signal.
61
How Instant Messenger Transmits Voice
• Instead of PCM, IM uses an alternative technique
called ADPCM, adaptive differential pulse code
modulation.
• ADPCM encodes the differences between
samples. Instead of an 8 bits/sample, ADPCM
uses only 4 bits/sample, general at 8000
samples/second this allows a voice signal to be
sent at 32 kbps, which it possible to for IM to send
voice signals as digital signals using POTS-based
analog phone lines.
• ADPCM can also use lower sampling rates, at 8 or
16 kbps, but these produce lower quality voice
signals.
62
Analog/Digital Modems
63
56k Modems
• 56k modems, the fastest possible on voice grade
lines, are based on the V.90 and V.92 standards.
• Downstream transmissions (from phone switch to
the user’s computer) use a technique based on
recognizing the 8-bit digital symbol.
• With the V.90 standard, upstream transmissions
are still based on the V.34+ standard. The V.92
standard uses this PCM symbol recognition
technique for both up and downstream channels.
• The technique is very sensitive to noise and both
V.90 and V.92 modems often must use lower data
rates. The max. V.92 upstream rate is 48 kbps.
64
Multiplexing
65
Multiplexing
• Multiplexing means breaking up a higher
speed circuit into several slower circuits.
• The main advantage of multiplexing is cost;
it’s multiplexing is cheaper because fewer
network circuits are needed.
• There are four categories of multiplexing:
–
–
–
–
Frequency division multiplexing (FDM)
Time division multiplexing (TDM)
Statistical time division multiplexing (STDM)
Wavelength division multiplexing (WDM)
66
Frequency Division Multiplexing (FDM)
• FDM works by making a number of smaller channels from
a larger frequency band (Figure 3-21). FDM is sometimes
referred to as dividing the circuit “horizontally”.
• In order to prevent interference between channels, unused
frequency bands called guardbands are used to separate the
channels. Because of the guardbands, there is some wasted
capacity on an FDM circuit.
• CATV uses FDM. FDM was also commonly used to
multiplex telephone signals before digital transmission
became common and is still used on some older
transmission lines.
67
Figure 3-21
68
Time Division Multiplexing (TDM)
• TDM allows multiple channels to be used by allowing the
channels to send data by taking turns. TDM is sometimes
referred to as dividing the circuit “vertically”
• Figure 3-22 shows an example of 4 terminals sharing a
circuit, with each terminal sending one character at a time.
• With TDM, Time on the circuit is shared equally with each
circuit getting a specified time slot, whether or not it has
any data to send.
• TDM is more efficient than FDM, since TDM doesn’t use
guardbands, so the entire capacity can be divided up
between the data channels.
69
Figure 3-22
70
Statistical Time Division Multiplexing
(STDM)
• STDM is designed to use the idle time created when terminals
are not using the multiplexed circuit (Figure 3-23).
• Like regular TDM, STDM uses time slots, but the time slots
are not fixed. Instead, they are used as needed by the different
terminals on the multiplexed circuit.
• Since the source of a data sample is not identified by the time
slot it occupies, additional addressing information must be
added to each sample.
• If all terminals try to use the multiplexed circuit intensively,
response time delays can occur. The Multiplexer also needs to
include some memory in case more data samples come in than
its circuit capacity can handle.
71
Figure 3-23 Statistical Time
Division Multiplexing
72
Wavelength Division Multiplexing (WDM)
• Optical fiber originally used lasers or LEDs which transmit
at a single frequency, with a typical transmission rate being
around 622 Mbps.
• With WDM, data is transmitted at several of different
frequencies over the same fiber.
• The data transmission capacity of optical continues to
increase dramatically. A new version of WDM, Dense
WDM or DWDM promises data rates in the terabits, with
over a hundred channels per fiber, each transmitting at a
rate of 10 Gbps, making aggregate data rates in the low
Terabit range possible.
• Future versions of DWDM will make Petabit aggregate
transmission rates possible as per channel data rates and
the total number of channels both continue to rise.
73
Inverse Multiplexing (Figure 3-24)
• Instead of using a single line, an inverse
multiplexer (IMUX) shares the load by sending
multiplexed data over two or more lines.
• For example, two T-1 lines can be used to send
data, creating a combined multiplexed capacity of
2 x 1.544 = 3.088 Mbps.
• A recent IMUX standard is the Bandwidth ON
Demand Network Interoperability Group
(BONDING) standard, which is typically used for
videoconferencing applications. Using the
BONDING standard, 6 64 kbps lines can be
combined to create an aggregate line of 384 kbps
for transmitting video.
74
Figure 3-24. Inverse Multiplexing
75
How DSL Transmits Data
• Digital Subscriber Line is becoming popular as a way to
increase data rates in the local loop.
• Instead of using the 0-4000 kHz voice channel, DSL uses the
physical capacity of the copper phone lines of up to 1 MHz.
• The 1 MHz capacity is split into: 1) a 4 kHz voice channel, 2)
an upstream and 3) a downstream channels.
• Several versions of DSL exist, with the main differences
being how much of the bandwidth is allocated between the
upstream and downstream channels.
• One form of DSL, G.Lite provides a 4 Khz voice channel,
384 kbps upstream and 1.5 Mbps downstream (provided line
conditions are optimal).
76
Next Day Air Service Case Study
77
Figure 3-25
78
End of Chapter 3
79