Download presentation
Presentation is loading. Please wait.
Published byLee Primrose Lamb Modified over 9 years ago
1
Computer Communication and Distributed Algorithms 202-2-1131 Second presentation – The physical layer ©Computer Communication and Distributed Algorithms (2012-13) 1
2
©2 The OSI Model (7 layers) Application Physical Link Network Transport Session Presentation The 7-layer OSI Model Computer Communication and Distributed Algorithms (2012- 13)
3
©3 Data transfer. How to we move bits? Understanding the basics: Physical aspect Energy Electromagnetic waves Mathematical aspect Code theory Computer Communication and Distributed Algorithms (2012- 13)
4
©4 Signals In order to send data electro-magnetic signals are used. The communication channels transfer electromagnetic energy between the source and the destination. The channel may convert the electro- magnetic energy to analog and digital signals. Analog signals may have infinite number of values. Digital signals include only a limited number of values. Computer Communication and Distributed Algorithms (2012- 13)
5
©5 Analog vs. Digital Vertical – Value or strength (e.g. Volts) Horizontal - Time Computer Communication and Distributed Algorithms (2012- 13)
6
©6 Analog Signals Simple – Cannot be decomposed to simpler signals Complex – Composed of many sinus waves. Represented by: S(t) = A sin (2 ft + ) A – peak amplitude ( גודל ההפרעה המקסימלי ) f – frequency ( מספר המחזורים ליחידת זמן ) - phase ( הפרש מופע הנמדד ברדיאנים ) Computer Communication and Distributed Algorithms (2012- 13)
7
©7 Amplitude Power – Electric signals (Volts / Watts) Computer Communication and Distributed Algorithms (2012- 13)
8
©8 Period and frequency f = 1/T T = 1/f Period – The time it takes to do one cycle. Frequency – The number of periods done per second. The wave frequency is the change rate in time. A short Period means high frequency. A long period means low frequency.
9
©9 Phase The Phase describes the state of the waveform compared to a waveform starting at zero. Measured in degrees or radians. Computer Communication and Distributed Algorithms (2012- 13)
10
©10 Example 1 Computer Communication and Distributed Algorithms (2012- 13)
11
©11 Example 2 Computer Communication and Distributed Algorithms (2012- 13)
12
©12 Example3 Computer Communication and Distributed Algorithms (2012- 13)
13
©13 Analog signal Computer Communication and Distributed Algorithms (2012- 13) Analog signal represented in the frequency domain.
14
©14 Signals The frequency of a sinus signal by itself is unusable for data communication. We need to control one or more of its properties in order to make it usable When we manipulate one or more of the signal properties it becomes a multiple frequency signal. According to Fourier analysis, every complex signal may be represented by a composition of simple sinus waves with different frequency, amplitude and phase. Computer Communication and Distributed Algorithms (2012- 13)
15
©15 Square wave In order to use an electromagnetic signal for digital communication we need to change it to a square wave. Computer Communication and Distributed Algorithms (2012- 13)
16
© Three harmonics Description of a harmonic wave -The waveform, Voltage or current A -Amplitude - Angular frequency - Phase Computer Communication and Distributed Algorithms (2012- 13) 16
17
©17 Adding first three harmonics By adding the three harmonics we create the square wave. Computer Communication and Distributed Algorithms (2012- 13)
18
Modulation of an analog signal In order to transfer information or data over a communication line different modulation techniques were developed. Three analog techniques: אפנון משרעת (amplitude modulation). אפנון תדירות (frequency modulation). אפנון מופע (phase modulation). In addition, a digital modulation was developed for digital channels. The analog techniques require a carrier signal and create a complex wave combining the carrier wave and the data. Every modulation technique requires a matching demodulation technique to be used by the receiver. 18Computer Communication and Distributed Algorithms (2012- 13)
19
AM – Amplitude Modulation Amplitude modulation is a transmission method over electromagnetic waves in radio frequency. It changes the amplitude of the wave according to the signal while the frequency of the wave remains unchanged. This method is usually used to transmit sound waves. It may also transmit codes and data. This method is common in the long, medium and short wave radio bands. An example of AM: The red wave Is the signal to be modulated, and the carrier wave (green). The lower plot shows the result of the modulation. ©19Computer Communication and Distributed Algorithms (2012- 13) Carrier wave Signal Power
20
FM – Frequency modulation Frequency modulation is a method used by controlling the frequency of the carrier wave. The frequency of the carrier changes according to the power of the data signal. Two major advantages over AM: Bigger bandwidth (allows stereo broadcast) Durability of noise. Noise usually destroys the amplitude, and not the frequency. The amplitude of the data signal (red) is sent. The carrier (green) is a high frequency wave. The modulation adds The data signal to the frequency of the carrier. The modulated signal (blue) is not periodic. The momentary frequency changes according to the data signal amplitude. 20
21
PM – Phase modulation Phase modulation requires two waves, a carrier and a modulating signal with a constant amplitude. ©21Computer Communication and Distributed Algorithms (2012- 13) הגל הנושא תוצאת אפנון המשרעת בין שני הגלים האות המידע
22
©22 Digital Signals Computer Communication and Distributed Algorithms (2012- 13)
23
Digital modulation Modulation techniques above do not apply on digital data. A digital wave holds a constant bit value 0 or 1 until an abrupt change occurs. The modulation should hold a high amplitude wave to allow weak digital signal. The modulation do not amplify noise and therefore efficiently enlarge the broadcast distance. Common modulation techniques: Amplitude shift key modulation (ASK) Frequency shift key modulation (FSK) Binary-phase shift key modulation (BPSK) Quadrature-phase shift key modulation (QPSK) Quadrature amplitude modulation (QAM) ©23Computer Communication and Distributed Algorithms (2012- 13)
24
Digital modulation methods ASK Amplitude-shift keying – just like AM, this method controls the amplitude of the signal. The data bit “1” is represented as the wave, while the data “0” is a break in the transmission. More complex implementations are represented by different combinations of different amplitudes. FSK Frequency-shift keying – Bits are represented by controlling the frequency of the wave. Every frequency represents a bit or a set of bits. 24 © ASK FSK Computer Communication and Distributed Algorithms (2012- 13)
25
© 25 Modulations A binary signal Amplitude Modulation Frequency Modulation Phase Modulation Computer Communication and Distributed Algorithms (2012-13)
26
Digital channel capacity A digital communication channel has limits to the amount of state changes for a given time. These set the maximum data capacity. Every given time the channel has a capacity that allows it to send a constant number of bits for a given time. A digital system switch the signal between two energy or voltage states. The data has a sudden and sharp voltage changes. It is different than analog system where the voltage changes gradually and continously. ©26Computer Communication and Distributed Algorithms (2012- 13)
27
©27 Bit rate and bit interval Bit interval – The time needed to send one bit Bit rate – the number of bits sent in one second (bps – Bit per second). Computer Communication and Distributed Algorithms (2012- 13)
28
©28 Bandwidth The bandwidth is a property of the medium: it is the difference between the highest and the lowest frequency that the medium can transmit. We use the term bandwidth referring the medium. Bandwidth: The highest rate that the hardware may change the signal. Measured in cycles per second (Hz) Bit rate and Bandwidth are proportional. Computer Communication and Distributed Algorithms (2012- 13)
29
©29 Standard Transmission Rates Low Rates – 300 bps and multiplies – 1200, 2400, 9600, 19200, 54K LANs – 2, 4, 10, 16, 100, 1000 Mbps Wireless LANS – 11 Mbps, 54 Mbps Wireless MAN – 32 Mbps Computer Communication and Distributed Algorithms (2012- 13)
30
©30 Propagation delay and transmission time Propagation delay: The time needed for a signal to move through the medium. For example: A speed of electric signal in vacuum C=3x10 8 m/s In copper wires the speed of the signal V=2x10 8 Transmission time The time needed to transmit N bits in a given transmission rate. Transmission time = Message length / Transmission rate Computer Communication and Distributed Algorithms (2012- 13)
31
©31 Calculating delay and transmission times Example Message length: 500 Bytes Bit transmission Rate: 4 Mb/s Optical fiber length: 2 Km Speed of information in the fiber: 66% C ~ 2*10 8 m/s Transmission time=(Message length)/(Bit transmission Rate)= (500*8bits) / (4*10 6 b/s) = 10 -3 s = 1 ms Propagation delay=d/(propagation speed)= (2000 m) / (2*10 8 m/s) = 0.01 ms Computer Communication and Distributed Algorithms (2012- 13)
32
©32 Throughput The data transmission rate for a given channel Units: bits/second. Considering the bandwidth Data transfer rate = 1000 bits/second = 6 bits/6ms Computer Communication and Distributed Algorithms (2012- 13)
33
©33 Communication methods A multilevel signal using one channel Data transfer over a channel must not be confined to a binary format- a number of voltage levels may be used. For example, 4 voltage levels allows to code 2 bits into the levels (level A=00, level B=01, level C=10, level D=11). A symbol state change sends two bits of data as opposed to one bit in binary systems. Twice the throughput for a given bandwidth. A multilevel signal using parallel channels. We may use multilevel signals with many channels. This enlarges the throughput. Computer Communication and Distributed Algorithms (2012- 13)
34
©34 Multilevel representations We may use any number of symbols to transmit digital data. For example 1024 voltage levels sends: log 2 1024 = 10 bits. The limit depends on our technical ability to identify the individual state accurately by the receiver. It depends on the noise and distortion levels. Computer Communication and Distributed Algorithms (2012- 13)
35
©35 Multilevel representation The relation between bits and symbols: The number of symbols need to singularly represent every pattern of n bits given by: M = 2 n symbol states 3 bits may be represented by: M = 2 3 = 8 symbol states 4 bits by M = 2 4 = 16 symbol states 5 bits by M = 2 5 = 32 symbol states Computer Communication and Distributed Algorithms (2012- 13)
36
©36 Maximum Data Rate of a Channel Simple Nyquist rule The relation between a bandwidth to the throughput: D = 2*B*log 2 K Where: D: Maximal data transfer rate (b/s). B: Bandwidth. K: Possible voltage values. Computer Communication and Distributed Algorithms (2012- 13)
37
©37 Examples For RS-232: K = 2 because RS-232 uses only 2 values +15V or -15V to code data bits. log 2 2=1. D = 2*B For phase-shift encoding Assume K is 8. log 2 8=log 2 2 3 =3. D = 6*B Computer Communication and Distributed Algorithms (2012- 13)
38
©38 Noise An unwanted noise combined with the data transmission may fault the data. Noise levels: Signal to Noise ratio (SNR) S: A signal intensity level N: A noise intensity level Measured in decibels : 10log 10 S/N. Computer Communication and Distributed Algorithms (2012- 13)
39
©39 Noise effects Shannon rule: The capacity of a noisy channel C = B*log 2 (1 + S/N) Where: C: a limit for the capacity B: The bandwidth of the channel S/N: Signal to noise ratio Computer Communication and Distributed Algorithms (2012- 13)
40
©40 Summary Shannon and Nyquist rules: Engineering cannot overcome the basic and physical limits of a real transmission system. We refer the data throughput as the bandwidth. We encourage engineers to complex the signal coding. Enlarging K. Look for ways to encode more bits per cycle to enhance the throughput Lowering noise Detailing the limits of a real transmission systems. Computer Communication and Distributed Algorithms (2012- 13)
41
©41 Example 1 Question: We can calculate the theoretic capacity of a standard phone line. A standard phone line has a bandwidth of (300 Hz to 3300 Hz) 3000 Hz and the signal to noise ratio is about 1000. Solution: According to Shannon the capacity is, C = B log 2 (1 + SNR) = 3000 log 2 (1 + 10 3 ) C = 29.901 kbps Computer Communication and Distributed Algorithms (2012- 13)
42
©42 Example 2 Question: We have a communication channel with a bandwidth of 1MHz, and signal to noise ratio of 63. What is the bit rate and how many levels are used. First we use Shannon to find the maximum capacity the transmission channel. We use Nyquist to find the number of level used. C = B log 2 (1 + SNR) = 10 6 log 2 (1 + 63) = 10 6 log 2 (64) = 6 Mbps 6 Mbps = 2 1 MHz log 2 L L = 8 D = 2*B*log 2 K Computer Communication and Distributed Algorithms (2012- 13)
43
© 43 Coding Schemes RZ & NRZ RZ(Return to Zero) A signal returns to zero after every coded bit 0 / 1: positive / negative pulse NRZ(Non-return to Zero) The voltage level during a bit interval. NRZ-L(NRZ Level) positive voltage :0 negative voltage :1 NRZ-I(NRZ Inverted) Differential coding scheme 0: no transition 1: transition NRZ - simple and efficient. Computer Communication and Distributed Algorithms (2012-13)
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.