CSCD 433 Network Programming

Slides:



Advertisements
Similar presentations
Signal Encoding Techniques
Advertisements

Physical Layer – Part 2 Data Encoding Techniques
Computer Communication & Networks Lecture # 06 Physical Layer: Analog Transmission Nadeem Majeed Choudhary
Chapter 5 Analog Transmission.
EE302 Lesson 21: Transmission of Binary Data in Communication Systems
Physical Layer CHAPTER 3. Announcements and Outline Announcements Credit Suisse – Tomorrow (9/9) Afternoon – Student Lounge 5:30 PM Information Session.
DIGITAL COMMUNICATIONS.  The modern world is dependent on digital communications.  Radio, television and telephone systems were essentially analog in.
Multiplexing Multiplexing is the set of techniques that allows the simultaneous transmission of multiple signals across a single data link. A Multiplexer.
© Kemal AkkayaWireless & Network Security 1 Department of Computer Science Southern Illinois University Carbondale CS591 – Wireless & Network Security.
6.1 Chapter 6 Bandwidth Utilization: Multiplexing and Spreading Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Modulation                                                                 Digital data can be transmitted via an analog carrier signal by modulating one.
Lecture 3 Data Encoding and Signal Modulation
Modulation Modulation => Converts from digital to analog signal.
IT-101 Section 001 Lecture #15 Introduction to Information Technology.
Data Communication and Networking 332 Hardware Components of Data Communication.
331: STUDY DATA COMMUNICATIONS AND NETWORKS.  1. Discuss computer networks (5 hrs)  2. Discuss data communications (15 hrs)
Multiplexing and Demultiplexing. Question Why cannot Verizon users get an iPhone from AT&T and get it work in Verizon's network?
McGraw-Hill©The McGraw-Hill Companies, Inc., 2001 Data Transmission Techniques Data to be transmitted is of two types 1.Analog data 2.Digital data Therefore,
Data Transmission The basics of media, signals, bits, carries, and modems (Part II)
CS3502, Data and Computer Networks: the physical layer-3.
Review: The application layer. –Network Applications see the network as the abstract provided by the transport layer: Logical full mesh among network end-points.
Signaling and Switching Chapter 6. Objectives In this chapter, you will learn to: Define modulation and explain its four basic versions Explain the different.
Analog Transmission of Digital Data. The Telephone Network Originally designed for analog communications only. Today, standard analog telephone service.
Multiplexing.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Modulation, Multiplexing, & Public Switched Telephone.
William Stallings Data and Computer Communications 7 th Edition Chapter 8 Multiplexing.
1 CSCD 433 Network Programming Fall 2013 Lecture 4 Physical Layer Line Coding Continued.
Digital Transmission Outlines:- Multiplexing FDM TDM WDM
1 CSCD 433 Network Programming Fall 2012 Lecture 5 Physical Layer Line Coding.
3-2008UP-Copyrights reserved1 ITGD4103 Data Communications and Networks Lecture-11:Data encoding techniques week 12- q-2/ 2008 Dr. Anwar Mousa University.
1 Chapter 2 Fundamentals of Data and Signals Data Communications and Computer Networks: A Business User’s Approach.
Encoding How is information represented?. Way of looking at techniques Data Medium Digital Analog Digital Analog NRZ Manchester Differential Manchester.
Introduction to Communication Lecture (07) 1. Bandwidth utilization Bandwidth utilization is the wise use of available bandwidth to achieve specific goals.
Multiplexing and Demultiplexing
CHAPTER 4. OUTLINES 1. Digital Modulation Introduction Information capacity, Bits, Bit Rate, Baud, M- ary encoding ASK, FSK, PSK, QPSK, QAM 2. Digital.
IT-101 Section 001 Lecture #15 Introduction to Information Technology.
Bandwidth Utilization: Multiplexing and Spreading
Bandwidth Utilization (Multiplexing and Spectrum Spreading)
Bandwidth Utilization: Multiplexing and Spreading
KOMUNIKASI DATA Materi Pertemuan 10.
Bandwidth Utilization
Bandwidth Utilization: Multiplexing and Spreading
Bandwidth Utilization
Multiplexing : Sharing a Medium
Multiplexing and Demultiplexing
UNIT – III I: Digital Transmission.
CHAPTER 3 Physical Layer.
Introduction to electronic communication systems
Overview Communication is the transfer of information from one place to another. This should be done - as efficiently as possible - with as much fidelity/reliability.
Chapter 4: Digital Transmission
CHAPTER 3 Physical Layer.
Bit rate Baud rate Goal in data communication is to increase the bit rate while decreasing the baud rate. Increasing the data rate increases the speed.
Physical Layer (Part 2) Data Encoding Techniques
Lecture 8: Multiplexing
Physical Layer – Part 2 Data Encoding Techniques
Lecture 4 Continuation of transmission basics Chapter 3, pages 75-96
Physical Layer
MODULATION AND DEMODULATION
Signal Encoding Techniques
Physical Layer Digital Signals Lecture 5.
Dr. Clincy Professor of CS
Chapter 10. Digital Signals
Modulation Modulation => Converts from digital to analog signal.
DATA COMMUNICATION.
Physical Layer – Part 2 Data Encoding Techniques
Analog Transmission Example 1
Multiplexing and Demultiplexing
Multiplexing Simultaneous transmission of multiple signals across a single data link As data & telecomm use increases, so does traffic Add individual links.
Bandwidth Utilization: Multiplexing
Business Data Communications & Networking
Presentation transcript:

CSCD 433 Network Programming Winter 2019 Lecture 4 Physical Layer Continued 1 1

Topics Digital World Definitions Analog Transmission of Digital Data Digital Transmission of Analog Data Multiplexing 2

Last time … Digital Communication Analog Communication Objective is to transform waveform Varies continuously with time Distortions unavoidable More difficult to reproduce signal at receiver Digital Communication Objective is to transmit a symbol Binary is 0 or 1 Done by transmitting positive voltage for 1, negative voltage for 0 (other schemes too ….) Receiver interprets symbol Can handle lots of distortion and still discern symbol

Data Communication Used to be Analog Analog World World around us has changed Before first microprocessor appeared in the ’70s, nearly all technology was “analog” From sound vibrations imprinted in the groove of a vinyl record, to the light intensity and color captured by 35 mm film, to television programs magnetically stored in the iron oxide molecules of videotapes, everything was based on technology that worked in an analog fashion “Analog” means that the information processed or stored was represented in a manner that was “similar” or “comparable” to its original counterpart

Data Communication Used to be Analog Why the move to Digital? Digital technology is cheaper to buy and operate Easy manipulation and storage of digital data So, developed techniques to convert Analog to digital and back … Digital to Analog Converters (DAC) and Analog to Digital Converters (ADC)

Different Types of Channels Intended use of communication channel dictates whether Analog, Digital, Modulated or Unmodulated transmission is needed Radio and Cellular communications require modulating signal to fit within specific frequency ranges Telephone lines for digital data transmission requires different type of modulation for digital over traditionally analog lines Look at the telephone system as an example

Analog and Digital Transmissions The use of both analog and digital transmissions for a computer to computer call … Conversion is done by the modems and codecs

Data Encoding Techniques Digital Data, Analog Signals [modem] Digital Data, Digital Signals [wired LAN] Analog Data, Digital Signals [codec] Frequency Division Multiplexing (FDM) Wave Division Multiplexing (WDM) [fiber] Time Division Multiplexing (TDM) Pulse Code Modulation (PCM) [T1] Delta Modulation

Digital Data, Analog Signals [Example – modem] Basis for analog signaling is a continuous, constant-frequency signal known as a carrier frequency or carrier wave Digital data is encoded by modulating one of the three characteristics of the carrier: Amplitude, Frequency, or Phase or some combination of these Modems use carrier waves to send information Look at different types of modulation above to send digital data over analog lines

Carrier Wave Carrier wave is pure wave of constant frequency, like a sine wave … By itself it doesn’t carry information To include speech or data information, another wave needs to be imposed, called an input signal on top of the carrier wave Imposing an input signal onto carrier wave is called “modulation” Modulation changes shape of carrier wave to encode data we need to encode

Modulation Defined Modulation is modification of carrier wave’s fundamental characteristics in order to encode information There are three basic ways to modulate an analog carrier wave: Amplitude Modulation Frequency Modulation Phase Modulation

Amplitude Modulation Amplitude Modulation (AM) Amplitude Shift Keying (ASK), means changing height of wave to encode data AM dial on radio uses amplitude modulation to encode analog information Next Slide shows 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

Amplitude Modulation

Frequency Modulation Frequency Modulation (FM) Frequency Shift Keying (FSK), change frequency of carrier wave to encode data FM radio uses frequency modulation to encode analog information Next slide shows frequency modulation in which one bit is encoded for each carrier wave change Changing carrier wave to a higher frequency encodes a bit value of 1 No change in carrier wave frequency means a bit value of 0

Frequency Modulation

Phase Modulation Phase refers to point in each wave cycle at which the wave begins Phase Modulation (PM) Phase Shift Keying (PSK) means changing phase of carrier wave to encode data Next slide shows 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

Phase Modulation

Sending Multiple Bits Simultaneously Each modification of carrier wave to encode information is called a symbol By using more complicated coding system, possible to encode more than 1 bit/symbol Next slide shows amplitude modulation using 4 amplitude levels, corresponding to 2 bits/symbol Can increase number of symbols from 4 to 8 by encoding 3 bits/symbol, 16 levels to 4 bits, and so on Likewise, multiple bits per symbol might be encoded using phase modulation, using phase shifts of 0o, 90o, 180o, and 270o

Two-bit Amplitude Modulation

Quadrature Amplitude Modulation (QAM) QAM is family of encoding schemes widely used for encoding multiple bits per symbol that combine Amplitude and Phase Modulation 16QAM uses 8 different phase shifts and 2 different amplitude levels Since 16 possible symbols, each symbol encodes 4 bits QAM and related techniques are commonly used for modems

Bit Rate vs. Baud Rate (Symbol Rate) Bit rate (or data rate) is number of bits transmitted per second Baud rate (same as symbol rate) refers to number of symbols transmitted per second Since multiple bits can be encoded per symbol, the two terms are not the same !!!! General formula: Data Rate (bits/second)= Symbol Rate (symbols/sec.) x No. of bits/symbol

How Modems Transmit Data Modem means modulator/demodulator. Device that encodes and decodes data by manipulating 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 rate V.34, includes multiple data rates (up to 28.8 kbps) and a handshaking sequence that tests 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. For example, Lempel-Ziv encoding, compresses data by creating a dictionary of character patterns and then transmitting compressed versions of those patterns

Digital Transmission of Analog Data

How Telephones Transmit Voice Line from your phone to first phone switch (called the local loop), still uses analog techniques developed 100 years ago by Bell Today’s switches now almost completely digital and convert these analog signals to digital data using a technique Pulse Code Modulation (PCM) PCM specifies a sample rate of 8000 samples/second and 8 bits/sample Coding and decoding using PCM is known as a codec

Analog Signal Over Digital System How to transform voice into digits? Three steps Sampling Quantizing Encoding Of interest to us, is how many samples and how many bits to represent the samples ...

Sampling Theory for Signals Nyquist Sampling Theorem Turns out there is another theorem for sampling an analog signal It is two times the signal’s maximum frequency If fewer samples are taken can't reconstruct signal very well fs ≧ 2 x fmax

Figure 4.24 Recovery of a sampled sine wave for different sampling rates 4.27 27

Enough Bits to Represent Signal Recall the Nyquist Theorem Bit Rate = 2 X Bandwidth X log2 L L = number of signal levels Signal samples can still be large mathematical numbers Quantization makes range of signal discrete, so that quantized signal takes on only discrete, usually finite, set of values, has fixed number of bits per sample For sound, this is usually good enough for human ear to pick up sound

Quantized View of Signal – 3 bit For a real signal digitizing this with 3 bit values gives a very poor representation of the signal.

Quantized View of Signal – 5 bit Increase the size to 5 bits and the digital representation is much closer to the original signal.

Quantifying Analog Signals with PCM Pulse-code modulation (PCM) is one method used to digitally represent sampled analog signals It is standard form of digital audio in computers, Compact Discs, telephony and other digital audio applications In PCM stream, amplitude of signal is sampled regularly at uniform intervals, Each sample is quantized to nearest value within a range of digital steps

Pulse Code Modulation (PCM) Want to take several times maximum frequency of the analog waveform in cycles per second or hertz Amplitude of analog signal at each sampling is rounded off to nearest of several specific, predetermined levels Quantization of the signal Encoding Samples are encoded into 8 bit binary words and compressed at the same time

Components of PCM Encoder 33 33

Components of a PCM Decoder To recover original signal from sampled data, a decoder can apply the procedure of encoding in reverse. After each sampling period, the decoder reads the next value and transitions the output signal to the new value Eliminates frequencies outside original signal 34 34

Multiplexing

Multiplexing Defined Multiplexing means breaking up a higher speed circuit into several slower circuits The main advantage of multiplexing is cost; multiplexing is cheaper because fewer network circuits are needed There are four categories of multiplexing: Frequency division multiplexing (FDM) Time division multiplexing (TDM) Wavelength division multiplexing (WDM) Code division multiplexing (CDM)

Multiplexing Frequency division multiplexing (FDM): Use different frequency ranges for different signals Wave division multiplexing (WDM): Same as FDM, but with optical signals Time division multiplexing (TDM): Each signal is allocated to a periodic time slot Code division multiplexing (CDM): is mathematical approach used in cell phone and wireless 37

Frequency Division Multiplexing (FDM) FDM works by making number of smaller channels from larger frequency band FDM is sometimes referred to as dividing the circuit “horizontally” In order to prevent interference between channels, unused frequency bands called guardbands separate channels Because of guardbands, there is some wasted capacity on an FDM circuit

Frequency Division Multiplexing

Frequency Division Multiplexing Example: Suppose have three phone signals want to combine onto one line with higher bandwidth. Allocate 4 KHz of bandwidth to each signal, which includes a “guard band” of unused frequency range so signals don’t overlap. Each signal originally uses range 0.3 – 3.3 KHz. Transform each signal to a different frequency range. Just learned this ... Signal 1: 20 – 24 KHz channel Use 20.5 KHz to 23.5 KHz, with 0.5 KHz of guard band on each end. Signal 2: 24 – 28 KHz Signal 3: 28 – 32 KHz At receiver, filters are used to isolate each channel, and then the frequency is transformed back to its original range. 40

FDM 41

FDM applications High capacity phone lines AM radio: 530 KHz to 1700 KHz, 10 KHz bandwidth per station FM radio: 88 MHz to 108 MHz, 200 KHz bandwidth per station TV broadcasts: 6 MHz bandwidth per TV channel First generation cell phones: each user got two 30 KHz channels (sending, receiving). 42

Wave Division Multiplexing Essentially same as FDM, except signals are optical and prisms are used to combine/split signals instead of electrical components. Used to combine signals of different frequencies (i.e. colours) onto one fibre-optic cable 43

Time Division Multiplexing (TDM) TDM allows multiple channels by allowing channels to send data by “taking turns” TDM is sometimes referred to as dividing circuit “vertically” Next slide shows 4 terminals sharing a circuit, with each terminal sending one character at a time With TDM, time on circuit is shared equally each channel gets a time slot, whether or not it has any data to send TDM is more efficient than FDM, since TDM doesn’t use guardbands, so entire capacity can be divided between channels

Time Division Multiplexing Disadvantage of TDM?

Code Division Multiplexing (CDM) CDM used in parts of cellular telephone system and for some satellite communication CDM relies on an interesting mathematical idea values from orthogonal vector spaces can be combined and separated without interference Each sender is assigned a unique binary code Ci that is known as a chip sequence chip sequences are selected to be orthogonal vectors Means dot product of any two chip sequences is zero 46

Code Division Multiplexing (CDM) Example: Each sender has value to transmit, Vi Senders each multiply Ci x Vi and transmit the results Senders transmit at same time and the values are added together To extract value Vi, a receiver multiplies sum by Ci Example Make example easy to understand, use chip sequence that's only two bits long and data values that are four bits long think of the chip sequence as a vector Next slide lists the values 47

Code Division Multiplexing 48

Code Division Multiplexing The first step consists of converting the binary values into vectors that use -1 to represent 0: If we think of the resulting values as a combined signal to be transmitted at the same time the resulting signal will be the sum of the two signals 49

Code Division Multiplexing A receiver treats the sequence as a vector computes product of vector and the chip sequence treats result as a sequence, and converts the result to binary by interpreting positive values as binary 1 and negative values as 0 Thus, Receiver 1 computes: Interpreting the result as a sequence produces: (2 -2 2 -2) which becomes the binary value: (1 0 1 0) note that 1010 is the correct value of V1 Receiver 2 will extract V2 from the same transmission C1 Received data Code division multiple access (CDMA) is a channel access method utilized by various radio communication technologies. 50

Summary Many types of encoding techniques for sending data over a channel Other than LAN or switch connections, most communications require signal transformation Multiplexing allows sharing for efficient use of physical media Many interesting ways to make physical network communications more efficient

HW 2 is up 52