Introdu Introductio ctionn to Commun Communica icatio tionn System Systemss
Showcasin Showcasing g the essential essential principles principles behind modern communication communication systems, systems, this accessible undergraduate textbook provides a solid introduction to the foundations of communication theory. • Carefully selected topics introduce students to the most important and fundamental concepts, giving them a focused, in-depth understanding of core material, and preparing them for more advanced study. • Abstract concepts are introduced “just in time” and reinforced by nearly 200 end-ofchapter exercises, alongside numerous M ATLAB code fragments, software problems, and practical lab exercises, firmly linking the underlying theory to real-world problems, and providing additional hands-on experience. • An accessible lecture-style organisation makes it easy for students to navigate to key passages, and quickly identify the most relevant material.
Containing material suitable for a one- or two-semester course, and accompanied online by a password-protected solutions manual and supporting instructor resources, this is the perfect introductory textbook for undergraduate students studying electrical and computer engineering.
Upamanyu Madhow is Professor of Electrical and Computer Engineering at the University of California, Santa Barbara. His research interests broadly span communications, signal processing and networking, with current emphasis on next-generation wireless and bioinspired approaches to networking and inference. He is a recipient of the NSF CAREER Award and the IEEE Marconi prize paper award in wireless wireless communication, communication, author of the graduate-level textbook Fundamentals Fundamentals of Digital Communication (2008), and a Fellow of the IEEE.
“Madhow does it again: Introduction to Communication Systems is an accessible yet rigorous new text that does for undergraduates what his digital communications book did for graduate students. It provides a superior treatment of not only the fundamentals of analog and digital communication, but also the theoretical underpinnings needed to understand them, including frequency domain analysis and probability. The book is unusual in that it also includes newer topics of pressing current relevance like multiple antenna communication and OFDM. I strongly recommend this book for faculty teaching senior level courses on communication systems.” Jeffrey G. Andrews The University of Texas at Austin “This is an excellent undergraduate text on analog and digital communications. It covers everything from classic analog techniques to recent wireless systems. Students will enjoy the inclusion of advanced topics such as channel coding and MIMO.” David Love Purdue University “ Introduction to Communication Systems by Madhow is truly unique in the vast landscape of introductory books on communication systems. From the basics of signal processing, probability, and communications, to the advanced topics of coding, multipath mitigation, and multiple antenna systems, the book deftly interweaves abstract theory, design principles, and applications in a highly effective and insightful manner. This masterfully-written book will play a key role in teaching and inspiring the next generation of communication system engineers.” Andrea Goldsmith Stanford University “This is the textbook on communications I have wanted for a while. Crisply written, it forms the basis for an ideal two semester sequence. It nicely balances rigor, concepts and practice.” Saoura Dasgupta University of Iowa “This is a unique introduction to the basic principles of communication system design, with a remarkable combination of rigour and accessibility. The MATLAB exercises are expertly weaved together with theoretical principles making it an excellent textbook for training undergraduate communication systems engineers.” Suhas Diggavi University of California, Los Angeles “This is a valuable addition to the current set of textbooks on communication systems. It is comprehensive, and offers a modern perspective shaped by the author’s research that has pushed the state of the art. The software labs enhance the practicality of the text and serve to illustrate more advanced material in an accessible way.” Michael Honig Northwestern University
Introduction to Communication Systems Upamanyu Madhow Universityof California, SantaBarbara
University Printing House, Cambridge CB2 8BS, United Kingdom Cambridge University Press is part of the University of Cambridge. It furthers the University’s mission by disseminating knowledge in the pursuit of education, learning and research at the highest international levels of excellence. www.cambridge.org Information on this title: www.cambridge.org/9781107022775 c Cambridge University Press 2014 This publication is in copyright. Subject to statutory exception and to the provisions of relevant collective licensing agreements, no reproduction of any part may take place without the written permission of Cambridge University Press. First published 2014 Printed in the United States of America by Sheridan Books, Inc. A catalog record for this publication is available from the British Library Library of Congress Cataloging in Publication data
Madhow, Upamanyu. Introduction to communication systems / Upamanyu Madhow, University of California, Santa Barbara. pages cm Includes bibliographical references. ISBN 978-1-107-02277-5 1. Telecommunication. I. Title. TK5101.M273 2014 621.382–dc23 2014004974 ISBN 978-1-107-02277-5 Hardback Additional resources for this publication at www.cambridge.org/commnsystems Cambridge University Press has no responsibility for the persistence or accuracy of URLs for external or third-party internet websites referred to in this publication, and does not guarantee that any content on such websites is, or will remain, accurate or appropriate.
To my family and students
Contents
Preface Acknowledgements
1
Introduction Chapter plan 1.1 Analog or digital? 1.1.1 Analog communication 1.1.2 Digital communication 1.1.3 Why digital? 1.1.4 Why analog design remains important 1.2 A technology perspective 1.3 The scope of this textbook 1.4 Why study communication systems? 1.5 Concept summary 1.6 Notes
2
Signals and systems Chapter plan 2.1 Complex numbers 2.2 Signals 2.3 Linear time-invariant systems 2.3.1 Discrete-time convolution 2.3.2 Multi-rate systems 2.4 Fourier series 2.4.1 Fourier-series properties and applications 2.5 The Fourier transform 2.5.1 Fourier-transform properties 2.5.2 Numerical computation using DFT 2.6 Energy spectral density and bandwidth 2.7 Baseband and passband signals 2.8 The structure of a passband signal 2.8.1 Time-domain relationships 2.8.2 Frequency-domain relationships 2.8.3 The complex-baseband equivalent of passband filtering 2.8.4 General comments on complex baseband 2.9 Wireless-channel modeling in complex baseband
page xiii xviii
1 1 2 2 3 7 8 9 12 13 13 14 16 16 17 20 26 33 35 37 40 42 45 50 53 55 57 57 63 67 69 71
viii
Contents
2.10 Concept summary 2.11 Notes 2.12 Problems Software Lab 2.1: signals and systems computations using M ATLAB Software Lab 2.2: modeling carrier-phase uncertainty Software Lab 2.3: modeling a lamppost-based broadband network
3
Analog communication techniques Chapter plan 3.1 Terminology and notation 3.2 Amplitude modulation 3.2.1 Double-sideband (DSB) suppressed carrier (SC) 3.2.2 Conventional AM 3.2.3 Single-sideband modulation (SSB) 3.2.4 Vestigial-sideband (VSB) modulation 3.2.5 Quadrature amplitude modulation 3.2.6 Concept synthesis for AM 3.3 Angle modulation 3.3.1 Limiter–discriminator demodulation 3.3.2 FM spectrum 3.3.3 Concept synthesis for FM 3.4 The superheterodyne receiver 3.5 The phase-locked loop 3.5.1 PLL applications 3.5.2 A mathematical model for the PLL 3.5.3 PLL analysis 3.6 Some analog communication systems 3.6.1 FM radio 3.6.2 Analog broadcast TV 3.7 Concept summary 3.8 Notes 3.9 Problems Software Lab 3.1: amplitude modulation and envelope detection Software Lab 3.2: frequency-modulation basics
4
Digital modulation Chapter plan 4.1 Signal constellations 4.2 Bandwidth occupancy 4.2.1 Power spectral density 4.2.2 The PSD of a linearly modulated signal 4.3 Design for bandlimited channels 4.3.1 Nyquist’s sampling theorem and the sinc pulse 4.3.2 The Nyquist criterion for ISI avoidance
74 75 75 80 83 84 87 88 88 90 90 93 99 104 106 106 108 111 113 116 117 121 124 125 126 131 132 133 135 138 138 149 151 155 155 156 160 160 162 166 166 169
ix
5
Contents
4.3.3 Bandwidth efficiency 4.3.4 Power–bandwidth tradeoffs: a sneak preview 4.3.5 The Nyquist criterion at the link level 4.3.6 Linear modulation as a building block 4.4 Orthogonal and biorthogonal modulation 4.5 Proofs of the Nyquist theorems 4.6 Concept summary 4.7 Notes 4.8 Problems Software Lab 4.1: linear modulation over a noiseless ideal channel Appendix 4.A Power spectral density of a linearly modulated signal Appendix 4.B Simulation resource: bandlimited pulses and upsampling
175 175 178 179 179 184 186 188 189 196 200 202
Probability and random processes
207 207 208 214 220 228 233 237 238 245 254 255 256 258 259 260 266 268 273 274 277 280 281 282 297 298 299 302 303 304 304
Chapter plan 5.1 Probability basics 5.2 Random variables 5.3 Multiple random variables, or random vectors 5.4 Functions of random variables 5.5 Expectation 5.5.1 Expectation for random vectors 5.6 Gaussian random variables 5.6.1 Joint Gaussianity 5.7 Random processes 5.7.1 Running example: a sinusoid with random amplitude and phase 5.7.2 Basic definitions 5.7.3 Second-order statistics 5.7.4 Wide-sense stationarity and stationarity 5.7.5 Power spectral density 5.7.6 Gaussian random processes 5.8 Noise modeling 5.9 Linear operations on random processes 5.9.1 Filtering 5.9.2 Correlation 5.10 Concept summary 5.11 Notes 5.12 Problems Q function bounds and asymptotics Appendix 5.A Appendix 5.B Approximations using limit theorems Appendix 5.C Noise mechanisms Appendix 5.D The structure of passband random processes Appendix 5.D.1 Baseband representation of passband white noise Appendix 5.E SNR computations for analog modulation Appendix 5.E.1 Noise model and SNR benchmark
x
6
Contents
Appendix 5.E.2 SNR for amplitude modulation Appendix 5.E.3 SNR for angle modulation
305 308
Optimal demodulation
315 316 317 318 319 326 328 329 334 335 337 342 343 344 345 348 353 362 366 368 374 377 378 393
Chapter plan 6.1 Hypothesis testing 6.1.1 Error probabilities 6.1.2 ML and MAP decision rules 6.1.3 Soft decisions 6.2 Signal-space concepts 6.2.1 Representing signals as vectors 6.2.2 Modeling WGN in signal space 6.2.3 Hypothesis testing in signal space 6.2.4 Optimal reception in AWGN 6.2.5 Geometry of the ML decision rule 6.3 Performance analysis of ML reception 6.3.1 The geometry of errors 6.3.2 Performance with binary signaling 6.3.3 M -ary signaling: scale-invariance and SNR 6.3.4 Performance analysis for M -ary signaling 6.3.5 Performance analysis for M -ary orthogonal modulation 6.4 Bit error probability 6.5 Link-budget analysis 6.6 Concept summary 6.7 Notes 6.8 Problems Software Lab 6.1: linear modulation with two-dimensional constellations Software Lab 6.2: modeling and performance evaluation on a wireless fading channel Appendix 6.A The irrelevance of the component orthogonal to the signal space
7
Channel coding Chapter plan 7.1 Motivation 7.2 Model for channel coding 7.3 Shannon’s promise 7.3.1 Design implications of Shannon limits 7.4 Introducing linear codes 7.5 Soft decisions and belief propagation 7.6 Concept summary 7.7 Notes 7.8 Problems Software Lab 7.1: belief propagation
396 399 401 402 402 405 407 414 415 427 431 433 434 441
xi
8
Contents
Dispersive channels and MIMO Chapter plan 8.1 The single-carrier system model 8.1.1 The signal model 8.1.2 The noise model and SNR 8.2 Linear equalization 8.2.1 Adaptive MMSE equalization 8.2.2 Geometric interpretation and analytical computations 8.3 Orthogonal frequency-division multiplexing 8.3.1 DSP-centric implementation 8.4 MIMO 8.4.1 The linear array 8.4.2 Beamsteering 8.4.3 Rich scattering and MIMO-OFDM 8.4.4 Diversity 8.4.5 Spatial multiplexing 8.5 Concept summary 8.6 Notes 8.7 Problems Software Lab 8.1: introduction to equalization in single-carrier systems Software Lab 8.2: simplified simulation model for an OFDM link Software Lab 8.3: MIMO signal processing
Epilogue References Index
446 447 448 449 452 453 454 459 467 469 474 474 477 480 483 487 491 493 494 502 505 508 512 519 522
Preface
Progress in telecommunications over the past two decades has been nothing short of revolutionary, with communications taken for granted in modern society to the same extent as electricity. There is therefore a persistent need for engineers who are well-versed in the principles of communication systems. These principles apply to communication between points in space, as well as communication between points in time (i.e., storage). Digital systems are fast replacing analog systems in both domains. This book has been written in response to the following core question: what is the basic material that an undergraduate student with an interest in communications should learn, in order to be well prepared for either industry or graduate school? For example, some institutions teach only digital communication, assuming that analog communication is dead or dying. Is that the right approach? From a purely pedagogical viewpoint, there are critical questions related to mathematical preparation: how much mathematics must a student learn to become wellversed in system design, what should be assumed as background, and at what point should the mathematics that is not in the background be introduced? Classically, students learn probability and random processes, and then tackle communication. This does not quite work today: students increasingly (and, I believe, rightly) question the applicability of the material they learn, and are less interested in abstraction for its own sake. On the other hand, I have found from my own teaching experience that students get truly excited about abstract concepts when they discover their power in applications, and it is possible to provide the means for such discovery using software packages such as M ATLAB . Thus, we have the opportunity to get a new generation of students excited about this field: by covering abstractions “just in time” to shed light on engineering design, and by reinforcing concepts immediately using software experiments in addition to conventional pen-andpaper problem solving, we can remove the lag between learning and application, and ensure that the concepts stick. This textbook represents my attempt to act upon the preceding observations, and is an outgrowth of my lectures for a two-course undergraduate elective sequence on communication at UCSB, which is often also taken by some beginning graduate students. Thus, it can be used as the basis for a two-course sequence in communication systems, or a single course on digital communication, at the undergraduate or beginning graduate level. The book also provides a review or introduction to communication systems for practitioners, easing the path to study of more advanced graduate texts and the research literature. The prerequisite is a course on signals and systems, together with an introductory course on probability. The required material on random processes is included in the text. A student who masters the material here should be well-prepared for either graduate school or the telecommunications industry. The student should leave with an understanding
xiv
Preface
of baseband and passband signals and channels, modulation formats appropriate for these channels, random processes and noise, a systematic framework for optimum demodulation based on signal-space concepts, performance analysis and power–bandwidth tradeoffs for common modulation schemes, a hint of the power of information theory and channel coding, and an introduction to communication techniques for dispersive channels and multiple antenna systems. Given the significant ongoing research and development activity in wireless communication, and the fact that an understanding of wireless link design provides a sound background for approaching other communication links, material enabling hands-on discovery of key concepts for wireless system design is distributed throughout the textbook. I should add that I firmly believe that the utility of this material goes well beyond communications, important as that field is. Communications systems design merges concepts from signals and systems, probability and random processes, and statistical inference. Given the broad applicability of these concepts, a background in communications is of value in a large variety of areas requiring “systems thinking,” as I discuss briefly at the end of Chapter 1. The goal of the lecture-style exposition in this book is to clearly articulate a selection of concepts that I deem fundamental to communication system design, rather than to provide comprehensive coverage. “Just in time” coverage is provided by organizing and limiting the material so that we get to core concepts and applications as quickly as possible, and by sometimes asking the reader to operate with partial information (which is, of course, standard operating procedure in the real world of engineering design). However, the topics that we do cover are covered in sufficient detail to enable the student to solve nontrivial problems and to obtain hands-on involvement via software labs. Descriptive material that can easily be looked up online is omitted.
Organization • Chapter 1 provides a perspective on communication systems, including a discussion of the transition from analog to digital communication and how it colors the selection of material in this text. • Chapter 2 provides a review of signals and systems (biased towards communications applications), and then discusses the complex-baseband representation of passband signals and systems, emphasizing its critical role in modeling, design, and implementation. A software lab on modeling and undoing phase offsets in complex baseband, while providing a sneak preview of digital modulation, is included. Chapter 2 also includes a section on wireless-channel modeling in complex baseband using ray tracing, reinforced by a software lab that applies these ideas to simulate link time variations for a lamppost-based broadband wireless network. • Chapter 3 covers analog communication techniques that remain relevant even as the world goes digital, including superheterodyne reception and phase-locked loops. Legacy analog modulation techniques are discussed to illustrate core concepts, as well as in
xv
Preface
recognition of the fact that suboptimal analog techniques such as envelope detection and limiter–discriminator detection may have to be resurrected as we push the limits of digital communication in terms of speed and power consumption. Software labs reinforce and extend concepts in amplitude and angle modulation. • Chapter 4 discusses digital modulation, including linear modulation using constellations such as pulse amplitude modulation (PAM), quadrature amplitude modulation (QAM), and phase-shift keying (PSK), and orthogonal modulation and its variants. The chapter includes discussion of the number of degrees of freedom available on a bandlimited channel, the Nyquist criterion for avoidance of intersymbol interference, and typical choices of Nyquist and square-root Nyquist signaling pulses. We also provide a sneak preview of power–bandwidth tradeoffs (with detailed discussion postponed until the effect of noise has been modeled in Chapters 5 and 6). A software lab providing a hands-on feel for Nyquist signaling is included in this chapter.
The material in Chapters 2 through 4 requires only a background in signals and systems. • Chapter 5 provides a review of basic probability and random variables, and then introduces random processes. This chapter provides detailed discussion of Gaussian random variables, vectors and processes; this is essential for modeling noise in communication systems. Examples giving a preview of receiver operations in communication systems, and computation of performance measures such as error probability and signal-to-noise ratio (SNR), are provided. A discussion of the circular symmetry of white noise, and noise analysis of analog modulation techniques, are placed in an appendix, since this is material that is often skipped in modern courses on communication systems. • Chapter 6 covers classical material on optimum demodulation for M -ary signaling in the presence of additive white Gaussian noise (AWGN). The background on Gaussian random variables, vectors, and processes developed in Chapter 5 is applied to derive optimal receivers, and to analyze their performance. After discussing error probability computation as a function of SNR, we are able to combine the materials in Chapters 4 and 6 for a detailed discussion of power–bandwidth tradeoffs. Chapter 6 concludes with an introduction to link-budget analysis, which provides guidelines on the choice of physical link parameters such as transmit and receive antenna gains, and distance between transmitter and receiver, using what we know about the dependence of error probability as a function of SNR. This chapter includes a software lab that builds on the Nyquist signaling lab in Chapter 4 by investigating the effect of noise. It also includes another software lab simulating performance over a time-varying wireless channel, examining the effects of fading and diversity, and introduces the concept of differential demodulation for avoidance of explicit channel tracking.
Chapters 2 through 6 provide a systematic lecture-style exposition of what I consider core concepts in communication at an undergraduate level. • Chapter 7 provides a glimpse of information theory and coding whose goal is to stimulate the reader to explore further using more advanced resources such as graduate courses and textbooks. It shows the critical role of channel coding, provides an initial exposure
xvi
Preface
to information-theoretic performance benchmarks, and discusses belief propagation in detail, reinforcing the basic concepts through a software lab. • Chapter 8 provides a first exposure to the more advanced topics of communication over dispersive channels, and to multiple antenna systems, often termed space–time communication, or multiple-input, multiple-output (MIMO) communication. These topics are grouped together because they use similar signal processing tools. We emphasize lab-style “discovery” in this chapter using three software labs, one on adaptive linear equalization for single-carrier modulation, one on basic orthogonal frequency-division multiplexing (OFDM) transceiver operations, and one on MIMO signal processing for space–time coding and spatial multiplexing. The goal is for students to acquire hands-on insight that should motivate them to undertake a deeper and more systematic investigation. • Finally, the epilogue contains speculation on future directions in communications research and technology. The goal is to provide a high-level perspective on where mastery of the introductory material in this textbook could lead, and to argue that the innovations which this field has already seen set the stage for many exciting developments to come. The role of software. Software problems and labs are integrated into the text, with “code fragments” implementing core functionalities provided in the text. While code can be provided online, separate from the text (and, indeed, sample code is made available online for instructors), code fragments are integrated into the text for two reasons. First, they enable readers to immediately see the software realization of a key concept as they read the text. Second, I feel that students learn more by putting in the work of writing their own code, building on these code fragments if they wish, rather than using code that is easily available online. The particular software that we use is MATLAB , because of its widespread availability, and because of its importance in design and performance evaluation both in academia and in industry. However, the code fragments can also be viewed as “pseudocode,” and can be easily implemented using other software packages or languages. Block-based packages such as Simulink (which builds upon M ATLAB ) are avoided here, because the use of software here is pedagogical rather than aimed at, say, designing a complete system by putting together subsystems as one might do in industry.
Suggestions for using this book I view Chapter 2 (complex baseband), Chapter 4 (digital modulation), and Chapter 6 (optimum demodulation) as core material that must be studied to understand the concepts underlying modern communication systems. Chapter 6 relies on the probability and random processes material in Chapter 5, especially the material on jointly Gaussian random variables and white Gaussian noise (WGN), but the remaining material in Chapter 5 can be skipped or covered selectively, depending on the students’ background. Chapter 3 (analog communication techniques) is designed such that it can be completely skipped if one
xvii
Preface
wishes to focus solely on digital communication. Finally, Chapter 7 and Chapter 8 contain glimpses of advanced material that can be sampled according to the instructor’s discretion. The qualitative discussion in the epilogue is meant to provide the student with perspective, and is not intended for formal coverage in the classroom. In my own teaching at UCSB, this material forms the basis for a two-course sequence, with Chapters 2–4 covered in the first course, and Chapters 5 and 6 covered in the second course, with the dispersive channels portion of Chapter 8 providing the basis for the labs in the second course. The content of these courses is constantly being revised, and it is expected that the material on channel coding and MIMO may displace some of the existing material in the future. UCSB is on a quarter system, hence the coverage is fast-paced, and many topics are omitted or skimmed. There is ample material here for a two-semester undergraduate course sequence. For a one-semester course, one possible organization is to cover Chapter 2 (focusing on the complex envelope), Chapter 4, a selection of Chapter 5, Chapter 6, and, if time permits, Chapter 7. The slides accompanying the book are intended not to provide comprehensive coverage of the material, but rather to provide an example of selections from the material to be covered in the classroom. I must comment in particular on Chapter 5. While much of the book follows the format in which I lecture, Chapter 5 is structured as a reference on probability, random variables, and random processes that the instructor must pick and choose from, depending on the background of the students in the class. The particular choices I make in my own lectures on this material are reflected in the slides for this chapter.
Acknowledgements
This book is an outgrowth of lecture notes for an undergraduate elective course sequence in communications at UCSB, and I am grateful to the succession of students who have used, and provided encouraging comments on, the evolution of the course sequence and the notes. I would also like to acknowledge faculty in the communications area at UCSB who were kind enough to give me a “lock” on these courses over the past few years, as I was developing this textbook. The first priority in a research university is to run a vibrant research program, hence I must acknowledge the extraordinarily capable graduate students in my research group over the years during which this textbook was developed. They have done superb research with minimal supervision from me, and the strength of their peer interactions and collaborations is what gave me the mental space, and time, needed to write this textbook. Current and former group members who have directly helped with aspects of this book include Andrew Irish, Babak Mamandipoor, Dinesh Ramasamy, Maryam Eslami Rasekh, Sumit Singh, Sriram Venkateswaran, and Aseem Wadhwa. I gratefully acknowledge the funding agencies which have provided support for our research group in recent years, including the National Science Foundation (NSF), the Army Research Office (ARO), the Defense Advanced Research Projects Agency (DARPA), and Systems on Nanoscale Information Fabrics (SONIC), a center supported by DARPA and Microelectronics Advanced Research Corporation (MARCO). One of the primary advantages of a research university is that undergraduate education is influenced, and kept up to date, by cutting-edge research. This textbook embodies this paradigm both in its approach (an emphasis on what one can do with what one learns) and in its content (emphasis of concepts that are fundamental background for research in the area). I thank Phil Meyler and his colleagues at Cambridge University Press for encouraging me to initiate this project, and for their blend of patience and persistence in getting me to see it through despite a host of other commitments. I also thank the anonymous reviewers of the book proposal and sample chapters sent to Cambridge several years back for their encouragement and constructive comments. I am also grateful to a number of faculty colleagues who have given encouragement, helpful suggestions, and pointers to alternative pedagogical approaches: Professor Soura Dasgupta (University of Iowa), Professor Jerry Gibson (UCSB), Professor Gerhard Kramer (Technische Universität München, Munich), Professor Phil Schniter (Ohio State University), and Professor Venu Veeravalli (University of Illinois at Urbana-Champaign).
xix
Acknowledgements
Finally, I thank the anonymous reviewers of the almost-final manuscript for their helpful comments. Finally, I would like to thank my wife and children for always being the most enjoyable and interesting people to spend time with. Recharging my batteries in their company, and that of our many pets, is what provides me with the energy needed for an active professional life.