Study Unit 5 - Chapter Five Making Connections Efficient: Multiplexing and Compression Flashcards

1
Q

Introduction

A

Introduction
* Under simplest conditions, medium can carry only one signal
at any moment in time
* For multiple signals to share a medium, medium must
somehow be divided, giving each signal a portion of the total
bandwidth
* Current techniques include:
– Frequency division multiplexing
– Time division multiplexing
– Code division multiplexing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Frequency Division Multiplexing

A

Frequency Division Multiplexing
* Assignment of nonoverlapping frequency ranges to each
“user” or signal on a medium
– Thus, all signals are transmitted at the same time, each using
different frequencies
* A multiplexor accepts inputs and assigns frequencies to each
device

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Frequency Division Multiplexing
(continued)

A

Frequency Division Multiplexing
(continued)
* Each channel is assigned a set of frequencies and is
transmitted over the medium
* A corresponding multiplexor, or demultiplexor, is on the
receiving end of the medium and separates the multiplexed
signals
* A common example is broadcast radio

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Frequency Division Multiplexing
(continued)

A

Frequency Division Multiplexing
(continued)
* Analog signaling is used in older systems; discrete analog
signals in more recent systems
* Broadcast radio and television, cable television, and cellular
telephone systems use frequency division multiplexing
* This technique is the oldest multiplexing technique
* Since it involves a certain level of analog signaling, it may be
susceptible to noise

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Time Division Multiplexing

A

Time Division Multiplexing
* Sharing of the signal is accomplished by dividing available
transmission time on a medium among users
* Digital signaling is used exclusively
* Time division multiplexing comes in two basic forms:
– Synchronous time division multiplexing
– Statistical time division multiplexing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Synchronous Time Division Multiplexing

A

Synchronous Time Division Multiplexing
* The original time division multiplexing
* The multiplexor accepts input from attached devices in a
round-robin fashion and transmits the data in a never -ending
pattern
* T-1 and SONET telephone systems are common examples
of synchronous time division multiplexing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Synchronous Time Division Multiplexing
(continued)

A

Synchronous Time Division Multiplexing
(continued)
* So that the receiver may stay synchronized with the
incoming data stream, the transmitting multiplexor can insert
alternating 1s and 0s into the data stream

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Synchronous Time Division Multiplexing
(continued)

A

Synchronous Time Division Multiplexing
(continued)
* If one device generates data at faster rate than other
devices, then the multiplexor must either sample the
incoming data stream from that device more often than it
samples the other devices, or buffer the faster incoming
stream
* If a device has nothing to transmit, the multiplexor must still
insert something into the multiplexed stream

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

SONET/SDH Multiplexing

A

SONET/SDH Multiplexing
* Similar to T-1, SONET incorporates a continuous series of
frames
* SONET is used for high-speed data transmission
* Telephone companies have traditionally used a lot of SONET
but this may be giving way to other high-speed transmission
services
* SDH is the European equivalent to SONET

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

T-1 Multiplexing

A

T-1 Multiplexing
* The T-1 multiplexor stream is a continuous series of frames
* Note how each frame contains the data (one byte) for
potentially 24 voice-grade telephone lines, plus one sync bit
* It is possible to combine all 24 channels into one channel for
a total of 1.544 Mbps

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Statistical Time Division Multiplexing

A

Statistical Time Division Multiplexing
* A statistical multiplexor transmits the data from active
workstations only
* If a workstation is not active, no space is wasted in the
multiplexed stream

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Statistical Time Division Multiplexing
(continued)

A

Statistical Time Division Multiplexing
(continued)
* A statistical multiplexor accepts the incoming data streams
and creates a frame containing the data to be transmitted
* To identify each piece of data, an address is included

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Statistical Time Division Multiplexing

A

Statistical Time Division Multiplexing
(continued)
* If the data is of variable size, a length is also included

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Statistical Time Division Multiplexing
(continued)

A

Statistical Time Division Multiplexing
(continued)
* More precisely, the transmitted frame contains a collection of
data groups

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Wavelength Division Multiplexing

A

Wavelength Division Multiplexing
* Wavelength division multiplexing multiplexes multiple data
streams onto a single fiber-optic line
* Different wavelength lasers (called lambdas) transmit the
multiple signals

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Wavelength Division Multiplexing
(continued)

A

Wavelength Division Multiplexing
(continued)
* Each signal carried on the fiber can be transmitted at a
different rate from the other signals
* Dense wavelength division multiplexing combines many (30,
40, 50 or more) onto one fiber
* Coarse wavelength division multiplexing combines only a
few lambdas

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Discrete Multitone

A
  • Discrete Multitone (DMT) – a multiplexing technique
    commonly found in digital subscriber line (DSL) systems
  • DMT combines hundreds of different signals, or
    subchannels, into one stream
  • Interestingly, all of these subchannels belong to a single
    user, unlike the previous multiplexing techniques
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Discrete Multitone (continued)

A

Discrete Multitone (continued)
* Each subchannel is quadrature amplitude modulated (recall
eight phase angles, four with double amplitudes)
* Theoretically, 256 subchannels, each transmitting 60 kbps,
yields 15.36 Mbps
* Unfortunately, there is noise, so the subchannels back down
to slower speeds

16
Q

Code Division Multiplexing

A

Code Division Multiplexing
* Also known as code division multiple access
* An advanced technique that allows multiple devices to
transmit on the same frequencies at the same time
* Each mobile device is assigned a unique 64-bit code

17
Q

Code Division Multiplexing (continued)

A

Code Division Multiplexing (continued)
* To send a binary 1, a mobile device transmits the unique code
* To send a binary 0, a mobile device transmits the inverse of the code
* To send nothing, a mobile device transmits zeros

18
Q

Code Division Multiplexing (continued)

A

Code Division Multiplexing (continued)
* Receiver gets summed signal, multiplies it by receiver code,
adds up the resulting values
– Interprets as a binary 1 if sum is near +64
– Interprets as a binary 0 if sum is near -64

19
Q

Code Division Multiplexing (continued)

A

Code Division Multiplexing (continued)
* For simplicity, assume 8-bit code
* Example
– Three different mobile devices use the following codes:
* Mobile A: 11110000
* Mobile B: 10101010
* Mobile C: 00110011
– Assume Mobile A sends a 1, B sends a 0, and C sends a 1
– Signal code: 1-chip = +N volt; 0-chip = -N volt

20
Q

Code Division Multiplexing (continued)

A

Code Division Multiplexing (continued)
* Example (continued)
– Three signals transmitted:
* Mobile A sends a 1, or 11110000, or ++++—-
* Mobile B sends a 0, or 01010101, or -+-+-+-+
* Mobile C sends a 1, or 00110011, or –++–++
– Summed signal received by base station: -1, +1, +1, +3, -3, -1, -1, +1

21
Q

Code Division Multiplexing (continued)

A

Code Division Multiplexing (continued)
* Example (continued)
– Base station decode for Mobile A:
* Signal received: -1, +1, +1, +3, -3, -1, -1, +1
* Mobile A’s code: +1, +1, +1, +1, -1, -1, -1, -1
* Product result: -1, +1, +1, +3, +3, +1, +1, -1
– Sum of Products: +8
– Decode rule: For result near +8, data is binary 1

22
Q

Code Division Multiplexing (continued)

A

Code Division Multiplexing (continued)
* Example (continued)
– Base station decode for Mobile B:
* Signal received: -1, +1, +1, +3, -3, -1, -1, +1
* Mobile B’s code: +1, -1, +1, -1, +1, -1, +1, -1
* Product result: -1, -1, +1, -3, -3, +1, -1, -1
– Sum of Products: -8
– Decode rule: For result near -8, data is binary 0

23
Q

Compression–Lossless versus Lossy

A

Compression–Lossless versus Lossy
* Compression is another technique used to squeeze more
data over a communications line
– If you can compress a data file down to one half of its original size, file
will obviously transfer in less time
* Two basic groups of compression:
– Lossless – when data is uncompressed, original data returns
– Lossy – when data is uncompressed, you do not have the original
data

24
Q

Compression–Lossless versus Lossy
(continued)

A

Compression–Lossless versus Lossy
(continued)
* Compress a financial file?
– You want lossless
* Compress a video image, movie, or audio file?
– Lossy is OK
* Examples of lossless compression include:
– Huffman codes, run-length compression, and Lempel-Ziv
compression
* Examples of lossy compression include:
– MPEG, JPEG, MP3

25
Q

Run-length encoding

A

Run-length encoding
– Replaces runs of 0s with a count of how many 0s.
00000000000000100000000011000000000000000000001…11000000000001
^
(30 0s)
14 9 0 20 30 0 11

26
Q

Run-length encoding (continued)

A

Run-length encoding (continued)
– Now replace each decimal value with a 4-bit binary value (nibble)
* Note: If you need to code a value larger than 15, you need to use two
consecutive 4-bit nibbles
– The first is decimal 15, or binary 1111, and the second nibble is the
remainder
» For example, if the decimal value is 20, you would code 1111
0101 which is equivalent to 15 + 5

27
Q

Run-length encoding (continued)

A

Run-length encoding (continued)
– If you want to code the value 15, you still need two nibbles: 1111
0000
* The rule is that if you ever have a nibble of 1111, you must follow it with
another nibble

28
Q

Relative or differential encoding

A

Relative or differential encoding
– Video does not compress well using run-length encoding
– In one color video frame, not much is alike
– But what about from frame to frame?
* Send a frame, store it in a buffer
* Next frame is just difference from previous frame
* Then store that frame in buffer, etc.

29
Q

Image Compression

A

mage Compression
– One image (JPEG) or continuous images (MPEG)
– A color picture can be defined by red/green/blue, or
luminance/chrominance/chrominance which are based on RGB
values
* Either way, you have 3 values, each 8 bits, or 24 bits total (224 colors!)

30
Q
  • Image Compression (continued)
A
  • Image Compression (continued)
    – A VGA screen is 640 x 480 pixels
  • 24 bits x 640 x 480 = 7,372,800 bits – Ouch!
  • And video comes at you 30 images per second – Double Ouch!
  • We need compression!
31
Q

JPEG (Joint Photographic Experts Group)

A

JPEG (Joint Photographic Experts Group)
– Compresses still images
– Lossy
– JPEG compression consists of 3 phases:
* Discrete cosine transformations (DCT)
* Quantization
* Run-length encoding

32
Q

JPEG Step 1 – DCT

A

JPEG Step 1 – DCT
– Divide image into a series of 8x8 pixel blocks
– If the original image was 640x480 pixels, the new picture would be 80
blocks x 60 blocks (next slide)
– If B&W, each pixel in 8x8 block is an 8-bit value (0-255)
– If color, each pixel is a 24-bit value (8 bits for red, 8 bits for blue, and
8 bits for green)

33
Q

JPEG Step 1 – DCT (continued)

A

JPEG Step 1 – DCT (continued)
– So what does DCT do?
* Takes an 8x8 array (P) and produces a new 8x8 array (T) using cosines
* T matrix contains a collection of values called spatial frequencies
* These spatial frequencies relate directly to how much the pixel values
change as a function of their positions in the block

34
Q

JPEG Step 1 – DCT (continued)

A

JPEG Step 1 – DCT (continued)
– An image with uniform color changes (little fine detail) has a P array
with closely similar values and a corresponding T array with many
zero values
– An image with large color changes over a small area (lots of fine
detail) has a P array with widely changing values, and thus a T array
with many non-zero values

35
Q

JPEG Step 2 -Quantization

A

JPEG Step 2 -Quantization
– The human eye can’t see small differences in color
* So take T matrix and divide all values by 10
– Will give us more zero entries
» More 0s means more compression!
– But this is too lossy
– And dividing all values by 10 doesn’t take into account that upper left
of matrix has more action (the less subtle features of the image, or
low spatial frequencies)

36
Q

Business Multiplexing In Action

A

Business Multiplexing In Action
* Bill’s Market has 10 cash registers at the front of their store
* Bill wants to connect all cash registers together to collect
data transactions
* List some efficient techniques to link the cash registers

36
Q

JPEG Step 3 – Run-length encoding

A

JPEG Step 3 – Run-length encoding
– Now take the quantized matrix Q and perform run-length encoding on
it
* But don’t just go across the rows
– Longer runs of zeros if you perform the run-length encoding in a
diagonal fashion

37
Q

How do you get the image back?

A

How do you get the image back?
– Undo run-length encoding
– Multiply matrix Q by matrix U yielding matrix T
– Apply similar cosine calculations to get original P matrix back

38
Q

Business Multiplexing In Action
(continued)

A

Business Multiplexing In Action
(continued)
* Possible solutions
– Connect each cash register to a server using point-to-point lines
– Transmit the signal of each cash register to a server using wireless
transmissions
– Combine all the cash register outputs using multiplexing, and send
the multiplexed signal over a conducted-medium line

39
Q
A
40
Q
A