6.450: Principles of Digital Communication
Chapters 1 to 3
Robert G. Gallager, M.I.T.
August 21, 2005
6.450: Principles of Digital Communication
Chapters 1 to 3
Robert G. Gallager, M.I.T.
August 21, 2005
ii
The digital communication industry is an enormous and rapidly growing industry, roughly comparable in size to the computer industry. The objective of this course is to study those aspects of digital communication systems that are unique to these systems. That is, rather than focusing on hardware and software for these systems, which is much like hardware and software for many other kinds of systems, we focus on the fundamental system aspects of modern digital communication.
This is the first subject in the two-term sequence, 6.450 and 6.451. Our intention is that 6.450 may be taken on a stand-alone basis and be accessible to well-prepared undergraduates. It is also a prerequisite for 6.452 (Principles of Wireless Communication), and an alternate prerequisite for 6.432 (Stochastic processes, detection, and estimation). It is a useful preparation for 6.441 (Transmission of Information) and 6.442 (Optical networks), but can be taken either before or after either of these. It should be taken by any student seriously interested in the digital communication field.
Digital communication is a field in which theoretical ideas have had an unusually powerful impact on actual system design. The basis of the theory was developed 55 years ago by Claude Shannon, and is called information theory. For the first 25 years or so of its existence, information theory served as a rich source of academic research problems and as a tantalizing suggestion that communication systems could be made more efficient and more reliable by using these approaches. By the mid 1970’s, mainstream systems using information theoretic ideas began to be widely implemented. The first reason for this was the increasing number of engineers who understood both information theory and communication system development. The second reason was that the low cost and increasing processing power of digital hardware made it possible to implement the sophisticated algorithms suggested by information theory.
As you learn about digital communication systems and their conceptual basis in information theory, you will come to appreciate that these ideas require a fairly deep understanding of somewhat abstract concepts. Doing the problem sets is an important part of developing this understanding, but it is not sufficient. In many undergraduate engineering subjects, the emphasis (reinforced by the grading policy) is on learning to grind through the solutions of a set of problem types represented by prescribed equations (“plug and chug”). The student uses pattern matching to find the correct type of problem and then plugs the data into the prescribed equations.
Here, as is appropriate for a graduate class, the focus is much more on the connections between engineering and theory. We focus more on the general properties of the models than on manipulating equations (which can be done better by a computer).
The relationship between theory, problem sets, and engineering/design is rather complex. The theory deals with relationships and analysis for models of real systems. A good theory (and information theory is one of the best) allows for simple analysis of simplified models. It also provides structural principles that allow insights from these simple models to be applied to more complex and realistic models. Problem sets provide students with an opportunity to analyze these highly simplified models, and, with patience, to start to understand the general principles. Engineering deals with making the approximations and judgment calls to create simple models that focus on the critical elements of a situation, and from there to design workable systems.
The important point here is that engineering (at this level) cannot really be separated from theory. Engineering is necessary to choose appropriate theoretical models, and theory is necessary
iii
to find the general properties of those models. To oversimplify it, engineering determines what the reality is and theory determines the consequences and structure of that reality. At a deeper level, however, the engineering perception of reality heavily depends on the perceived structure (all of us carry oversimplified models around in our head). Similarly, the structures created by theory depend on engineering common sense to focus on important issues. Engineering sometimes becomes overly concerned with detail, and theory overly concerned with mathematical niceties, but we shall try to avoid both these excesses here.
In this course, we start each topic with highly oversimplified toy models. We then relate the results about these toy models to communication systems and use this to generalize the models. We then iterate back and forth between analysis of models and creation of models.
We urge you, when you finish an exercise, to spend some time thinking about what it means, how the solution technique might be extended to more general problems, whether the model used in the exercise makes much sense physically, etc. We will try to encourage this both by keeping the number of exercises limited and by making it necessary to achieve this deeper understanding about one exercise in order to do the next.
In terms of depth, this subject is more like a graduate subject than undergraduate. However, it requires only a knowledge of elementary probability (6.041) and linear systems (6.003), so it can be understood at the undergraduate level. Learning to think more deeply about the material, in addition to solving the exercises, will be invaluable both in the workplace and in graduate work.
Most undergraduate communication courses aim at familiarity with a large variety of different systems that have been implemented historically. In our opinion such an approach does not help much in understanding the new systems being designed currently, and provides little insight into the different design choices that might be made. Our objective here is to develop the relatively small number of underlying principles guiding all of these systems. With these principles, you can understand the details of any system of interest on your own.
Most graduate communication courses focus more on the analysis of problems with less focus on the modeling, approximation, and insight needed to see how these problems arise. Our objective here is to use simple models and approximations as a way to understand general principles. We will use quite a bit of mathematics in the process, but the mathematics will be used to establish general results precisely rather than to carry out detailed analyses of special cases.
Both the content and approach in this course are still in a state of evolution. We need your help in this evolution. Let us know, by direct comment or by email, what interests you most, what turns you off, what is too hard, what seems too easy, etc. We think we know what is important in understanding communication systems, but are less certain about how to help you in developing this understanding.
iv
| 1 Intr |
oduct | ion to digital communication | 1 |
|---|---|---|---|
| 1.1 | Netwo | rks and layering . . . . . . . . . . . . . . . . . . . . . . . . . . | . . . . . . . 1 |
| 1.2 | Block | diagram of a digital communication system . . . . . . . . . . . | . . . . . . . 3 |
| 1.3 | Comm | unication sources . . . . . . . . . . . . . . . . . . . . . . . . . |
. . . . . . . 4 |
| 1.3.1 | Source coding . . . . . . . . . . . . . . . . . . . . . . . . . . . | . . . . . . . 4 |
|
| 1.4 | Digita | l interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . | . . . . . . . 5 |
| 1.5 | Comm | unication channels . . . . . . . . . . . . . . . . . . . . . . . . . | . . . . . . . 7 |
| 1.5.1 | Channel coding . . . . . . . . . . . . . . . . . . . . . . . . . . | . . . . . . . 8 |
|
| 1.5.2 | Error correction . . . . . . . . . . . . . . . . . . . . . . . . . |
. . . . . . . 9 |
|
| 2 Co |
ding fo | r Discrete Sources | 11 |
| 2.1 | Introd | uction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . | . . . . . . . 11 |
| 2.2 | Fixed | -length codes for discrete sources . . . . . . . . . . . . . . . . . | . . . . . . . 12 |
| 2.3 | Varia | ble-length codes for discrete sources . . . . . . . . . . . . . . . |
. . . . . . . 14 |
| 2.3.1 | Unique decodability . . . . . . . . . . . . . . . . . . . . . . . |
. . . . . . . 15 |
|
| 2.3.2 | Prefix-free codes for discrete sources . . . . . . . . . . . . . . | . . . . . . . 16 |
|
| 2.3.3 | The Kraft inequality for prefix-free codes . . . . . . . . . . . |
. . . . . . . 18 |
|
| 2.4 | Proba | bility models for discrete sources . . . . . . . . . . . . . . . . . | . . . . . . . 20 |
| 2.4.1 | Discrete memoryless sources . . . . . . . . . . . . . . . . . . . | . . . . . . . 21 |
|
| 2.5 | Minim | um L for prefix-free codes . . . . . . . . . . . . . . . . . . . . |
. . . . . . . 22 |
| 2.5.1 | Lagrange multiplier solution for the minimum L . . . . . . . |
. . . . . . . 23 |
|
| 2.5.2 | Entropy bounds on L . . . . . . . . . . . . . . . . . . . . . . |
. . . . . . . 24 |
|
| 2.5.3 | Huffman’s algorithm for optimal source codes . . . . . . . . |
. . . . . . . 25 |
|
| 2.6 | Entro | py and fixed-to-variable-length codes . . . . . . . . . . . . . . . | . . . . . . . 29 |
| 2.6.1 | Fixed-to-variable-length codes . . . . . . . . . . . . . . . . . . | . . . . . . . 31 |
|
| 2.7 | The A | EP and the source coding theorems . . . . . . . . . . . . . . . | . . . . . . . 32 |
| 2.7.1 | The weak law of large numbers . . . . . . . . . . . . . . . . . | . . . . . . . 33 |
|
| 2.7.2 | The asymptotic equipartition property . . . . . . . . . . . . . | . . . . . . . 34 |
v
CONTENTS
vi
| 2.7.3 | Source coding theorems . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 |
|
|---|---|---|
| 2.7.4 | The entropy bound for general classes of codes . . . . . . . . . . . . . . . 38 |
|
| 2.8 | Mark | ov sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 |
| 2.8.1 | Coding for Markov sources . . . . . . . . . . . . . . . . . . . . . . . . . . 41 |
|
| 2.8.2 | Conditional entropy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 |
|
| 2.9 | Lemp | el-Ziv universal data compression . . . . . . . . . . . . . . . . . . . . . . . . 43 |
| 2.9.1 | The LZ77 algorithm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 |
|
| 2.9.2 | Why LZ77 works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 |
|
| 2.9.3 | Discussion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 |
|
| 2A | Appe | ndix: Review of discrete probability . . . . . . . . . . . . . . . . . . . . . . 47 |
| 2.E | Exerc | ises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 |
| 3 Qu |
antizat | ion 57 |
| 3.1 | Introd | uction to quantization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 |
| 3.2 | Scalar | quantization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 |
| 3.2.1 | Choice of intervals for given representation points . . . . . . . . . . . . . 59 |
|
| 3.2.2 | Choice of representation points for given intervals . . . . . . . . . . . . . 59 |
|
| 3.2.3 | The Lloyd-Max algorithm . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 |
|
| 3.3 | Vecto | r quantization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 |
| 3.4 | Entro | py-coded quantization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 |
| 3.5 | High- | rate entropy-coded quantization . . . . . . . . . . . . . . . . . . . . . . . . 64 |
| 3.6 | Differ | fential entropy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 |
| 3.7 | Perfor | mance of high-rate scalar quantizers . . . . . . . . . . . . . . . . . . . . . . 66 |
| 3.8 | High- | rate two-dimensional quantizers . . . . . . . . . . . . . . . . . . . . . . . . . 69 |
| 3A | Appe | ndix A: Nonuniform scalar quantizers . . . . . . . . . . . . . . . . . . . . . 71 |
| 3B | Appe | ndix B: Nonuniform 2D quantizers . . . . . . . . . . . . . . . . . . . . . . . 74 |
| 3.E | Exerc | ises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 |
The communication systems that you use every day— e.g. , the telephone system, the Internet— are networks of incredible complexity, made up of an enormous variety of equipment made by different manufacturers at different times following different design principles. Such complex networks need to be based on some simple architectural principles in order to be understood, managed, and maintained.
Two fundamental architectural principles of communication networks are standardized interfaces and layering .
A standardized interface allows the user or equipment on one side of the interface to ignore all details about the other side of the interface except for certain specified characteristics. For example, a standard interface in the telephony system for decades has been the 4 KHz voice channel. You can plug any modern telephone handset into any wall plug, and expect to be able to send a nominal 4 KHz voice signal anywhere in the Public Switched Telephone Network (PSTN). Other standardized interfaces are defined at various levels within the telephone network.
The trend in recent decades has been to make most standardized interfaces digital, at least inside the telephone and other networks, and increasingly at the user interface as well. Increasingly, inside a network, bits are sent and received, regardless of the ultimate application. Thus electronic communication is becoming synonymous with digital communication.
The idea of layering in communication systems is to break up communication functions into a string of separate layers as illustrated in Figure 1.1.
Each layer consists of an input module and an output module. The input module at layer k processes the information received from layer k +1 and sends the processed information on to layer k− 1. The output module at layer k (known as the peer to the layer k input module) works in the opposite direction, processing the received information from layer k− 1 and sending it on to layer k .
As an example, an input module might receive an audio voice waveform from the next higher layer and convert the waveform into a binary sequence of data that is passed on to the next lower layer. The output peer module would receive a binary sequence from the next lower layer
1
CHAPTER 1. INTRODUCTION TO DIGITAL COMMUNICATION
2
input - input - input - · · · - input
module n module n− 1 module 1
?
interface interface
channel
n to n− 1 n− 1 to n− 2
output output output output
module n module n− 1 · · · module 1
Figure 1.1: Layers and interfaces: The interface between layers n and n− 1 specifies how input module n communicates with input module n− 1, how the corresponding output modules communicate, and, most important, the input/output behavior of the system to the right of the interface. The designer of layer n− 1 uses the input/output behavior of the layers to the right of n− 1 to produce the required input/output performance to the right of layer n .
at the output and convert it back to a speech waveform.
As another example, a modem consists of an input module (the modulator) and an output module (the demodulator). The modulator receives a binary sequence from the next higher input layer and generates from it a modulated waveform for transmission over a channel. The demodulator receives from the channel a waveform that is a more-or-less faithful replica of that transmitted by a remote modem. From the received waveform, it generates a demodulated bit sequence that is a more-or-less faithful replica of the bit sequence that entered the remote modem. Thus a modem is an input module for communication in one direction and an output module for independent communication in the opposite direction.
We will see many additional examples of layering in what follows. In fact, each chapter corresponds to the study of one or more layers in a layered hierarchy. The subject becomes manageable because, in studying a layer, all the lower layers can be viewed in aggregate as a simple communication channel, such as the toy models discussed before. Similarly, the higher layers can be viewed in aggregate as a simple source and destination.
The above discussion of layering implicitly assumed a point-to-point communication system with one source, one channel, and one destination. Network situations can be considerably more complex. With broadcasting, an input module at one layer may have multiple peer output modules. Similarly, in multiaccess communication a multiplicity of input modules have a single peer output module. It is also possible in network situations for a single module at one level to interface with multiple modules at the next lower layer or the next higher layer. The network control issues that arise in such cases are outside the scope of this course; different aspects of these issues are addressed in, e.g. , 6.263 (Data Networks) and 6.441 (Information Theory).
1.2. BLOCK DIAGRAM OF A DIGITAL COMMUNICATION SYSTEM
3
This course focuses on two fundamental problems of data communication: source coding and channel coding.
The source coding problem is the problem of efficient representation of source signals— e.g. , speech waveforms, image waveforms, text files— as a sequence of bits for transmission through a digital network. Of course we must keep in mind the paired problem of source decoding: conversion of the bit sequence (possibly corrupted) back into a more-or-less faithful replica of the original source signal.
The channel coding problem is the problem of efficient transmission of a sequence of bits through a lower-layer channel— e.g. , a 4 KHz telephone channel or a wireless channel. Again we must keep in mind how we intend to recover a more-or-less faithful replica of the original bit sequence from the channel output in the remote receiver, despite the distortions that may be introduced by the channel.
In a simple point-to-point channel, illustrated below in the Figure 1.2, these are the only two layers. The output bit sequence of the source encoder is the input bit sequence of the channel encoder, and the output bit sequence of the channel decoder is the input bit sequence of the source decoder. The astute student may ask at this point whether anything is lost by separate
Source Channel
- -
Input Encoder Encoder
?
Binary
Interface Channel
Output Source Channel
Decoder Decoder
Figure 1.2: Separation of source and channel coding.
source and channel coding as shown in Figure 1.2. Could joint source/channel coding achieve better performance or reduced complexity?
One of the remarkable basic theorems of information theory is that, in a sense, nothing is lost in terms of performance. If a source signal can be communicated through a given point-to-point channel within some level of distortion by any means whatsoever, then separate source and channel coding can also be designed to stay within that same level of distortion. We will give some insight into this source/channel separation theorem during this course; 6.441 (Information Theory) explains it more fully.
The source/channel separation theorem does not rule out the possibility of smaller delay or lower complexity using joint source/channel coding. Also, there are more complex network scenarios in which this theorem does not hold.
CHAPTER 1. INTRODUCTION TO DIGITAL COMMUNICATION
4
However, the advantages of standardized binary interfaces and of layering, discussed in the previous section, are so overwhelming that joint source/channel coding is rarely attempted in practice.
We now discuss the various elements of Figure 1.2 in more detail.
The input is the source signal. It might be a discrete source, i.e. , a sequence of discrete symbols, such as letters from the English or Chinese alphabet, binary symbols from a computer file, etc. Alternatively, the input might be analog, i.e. , a waveform, such as a voice signal from a microphone, the output of a sensor, a video waveform, etc. Or, it might be a sequence of images such as X rays, photographs, etc.
Whatever the source signal is, we will model it as a sample function of a random process. This is one of the reasons why probability is an essential prerequisite for this subject. It is not obvious why inputs to communication systems should be modeled as random, and in fact this was not appreciated before Shannon developed information theory in 1948.
The study of communication before that time (and well after that time) was based on Fourier analysis, which basically studies the effect of passing sine waves through various kinds of systems and components. We will start our study of channels with this kind of analysis (often called Nyquist theory in the context of digital communication) to develop basic results about sampling, intersymbol interference, and bandwidth.
However, Shannon’s view was that if the recipient knows that a sine wave of a given frequency is to be communicated, why not simply regenerate it at the output rather than send it over a long distance? Or, if the recipient knows that a sine wave of unknown frequency is to be communicated, why not simply send the frequency rather than the entire waveform?
The essence of Shannon’s viewpoint is that we should focus on the set of possible inputs from the source rather than any particular input. The objective then is to transform each possible input into a transmitted signal in such a way that each possible transmitted signal can be distinguished from the others at the output. A probability measure is needed on this set of possible inputs to distinguish typical inputs from abnormal inputs. We shall see in the rest of this subject how this point of view drives the processing of the inputs as they pass through a communication system.
The source encoder in Figure 1.2 has the function of converting the input from its original form into a sequence of bits. We have already discussed many of the reasons for conversion to a bit sequence: standardized interfaces, layering, and the source/channel separation theorem.
The simplest source coding techniques apply to discrete sources and simply involve representing each succesive source symbol by a sequence of binary digits. For example, letters from the 27symbol English alphabet (including a space symbol) may be encoded into 5-bit blocks. Since there are 32 distinct 5-bit blocks, each letter may be mapped into a distinct 5-bit block with a few blocks left over for control or other symbols. Similarly, upper-case letters, lower-case letters, and a great many other special symbols may be converted into 8-bit blocks (“bytes”) using the standard ASCII code.
预览结束 · 共 344 页