data communications telecommunication: communication at a distance. data: information presented in...

73
DATA COMMUNICATIONS DATA COMMUNICATIONS Telecommunication: communication at a distance. Data: information presented in whatever form is agreed upon by the parties creating and using the data. Data communications Data communications : the exchange : the exchange of data between two devices via of data between two devices via some form of transmission medium some form of transmission medium such as a wire cable. such as a wire cable.

Upload: oswald-brooks

Post on 03-Jan-2016

256 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

DATA COMMUNICATIONSDATA COMMUNICATIONS

Telecommunication: communication at a distance.Data: information presented in whatever form is agreed upon by the parties creating and using the data.Data communicationsData communications: the exchange of : the exchange of data between two devices via some form of data between two devices via some form of transmission medium such as a wire cable.transmission medium such as a wire cable.

Page 2: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Four fundamental characteristics:1. Delivery: correct destination2. Accuracy: correct data3. Timeliness: fast enough4. Jitter: uneven delay

1-1 DATA COMMUNICATIONS1-1 DATA COMMUNICATIONS

Page 3: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 1.1 Five components of data communication

Components

Page 4: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Data Representation

TextEmail, articles, etcCoding (Unicode, ASCII)

NumbersDirect conversion

ImagesPixels, resolution, gray scale, RGB, YCM

AudioContinuous, signal conversion

VideoMovie, continuous/discrete

Page 5: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 1.2 Data flow (simplex, half-duplex, and full-duplex)

Data Flow (Transmission Modes)

Page 6: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

NETWORKSNETWORKS

A A networknetwork is a set of devices (often referred to as is a set of devices (often referred to as nodesnodes) ) connected by communication connected by communication linkslinks. .

Page 7: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 1.3 Types of connections: point-to-point and multipoint

Type of Connections (line configurations)

Page 8: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 1.4 Categories of physical topology

Physical topology

Page 9: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Mesh

Figure 1.5 A fully connected mesh topology (five devices)

1

2

3

4

5

Page 10: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Star

Figure 1.6 A star topology connecting four stations

Page 11: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Bus

Figure 1.7 A bus topology connecting three stations

Page 12: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Ring

Figure 1.8 A ring topology connecting six stations

Page 13: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Network models

Local area network (LAN)Wide area network (WAN)Metropolitan area networks

Page 14: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 1.12 A heterogeneous network made of four WANs and two LANs

Page 15: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

THE INTERNETTHE INTERNET

History of the Internet1. ARPA2. ARPANET3. Transmission control Protocol (TCP)4. Internetworking Protocol (IP)

Internet todayInternet service providers (ISPs)

Page 16: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

1-4 PROTOCOLS AND STANDARDS1-4 PROTOCOLS AND STANDARDS

Protocols (rules)1. Why do we need protocols?2. Key elements of protocols

a) Syntaxb) Semanticsc) Timing

Standards1. De facto vs. De jure2. Organizations3. Internet standards (Internet draft & RFC)

Page 17: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Chapter 2

Network Models

Page 18: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 2.2 Seven layers of the OSI model

Page 19: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 2.3 The interaction between layers in the OSI model

Network support layers

User support layers

Page 20: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 2.4 An exchange using the OSI model

Page 21: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

LAYERS IN THE OSI MODELLAYERS IN THE OSI MODEL

Figure 2.5 Physical layer

The physical layer is responsible for movements ofindividual bits from one hop (node) to the next.

Page 22: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 2.6 Data link layer

The data link layer is responsible for moving frames from one hop (node) to the next.

Page 23: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 2.8 Network layer

The network layer is responsible for the delivery of individual packets from the source host to the

destination host.

Page 24: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 2.10 Transport layer

The transport layer is responsible for the delivery of a message from one process to another.

Page 25: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 2.12 Session layer

The session layer is responsible for dialog control and synchronization.

Page 26: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 2.13 Presentation layer

The presentation layer is responsible for translation, compression, and encryption.

Page 27: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 2.14 Application layer

The application layer is responsible for providing services to the user.

Page 28: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 2.15 Summary of layers

Page 29: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

TCP/IP PROTOCOL SUITETCP/IP PROTOCOL SUITE

1.1. The layers in the The layers in the TCP/IP protocol suiteTCP/IP protocol suite do not do not exactly match those in the OSI model. The original exactly match those in the OSI model. The original TCP/IP protocol suite was defined as having four TCP/IP protocol suite was defined as having four layers: layers: host-to-networkhost-to-network, , internetinternet, , transporttransport, and , and applicationapplication. .

2.2. However, when TCP/IP is compared to OSI, we can However, when TCP/IP is compared to OSI, we can say that the TCP/IP protocol suite is made of five say that the TCP/IP protocol suite is made of five layers: layers: physicalphysical, , data linkdata link, , networknetwork, , transporttransport, and , and applicationapplication..

3.3. Topics covered:Topics covered:1. Physical and Data Link Layers2. Network Layer3. Transport Layer4. Application Layer

Page 30: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 2.16 TCP/IP and OSI model

Page 31: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 2.18 Relationship of layers and addresses in TCP/IP

Page 32: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Chapter 3

Data and Signals

Page 33: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

ANALOG AND DIGITALANALOG AND DIGITAL

To be transmitted, data must be transformed to electromagnetic signals.To be transmitted, data must be transformed to electromagnetic signals.

Data can be Data can be analoganalog or or digitaldigital. . Analog dataAnalog data refers to information that is refers to information that is continuous; continuous; digital datadigital data refers to information that has discrete states. refers to information that has discrete states. Analog data take on continuous values. Digital data take on discrete values.Analog data take on continuous values. Digital data take on discrete values.

Signals can be Signals can be analoganalog or or digitaldigital. . Analog signalsAnalog signals can have an infinite can have an infinite number of values in a range; number of values in a range; digital signalsdigital signals can have only a limited number can have only a limited number of values.of values.

Analog and Digital DataAnalog and Digital SignalsPeriodic and Nonperiodic Signals

Topics discussed in this section:Topics discussed in this section:

Page 34: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 3.1 Comparison of analog and digital signals

Page 35: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

In data communications, we commonly use periodic analog signals and

nonperiodic digital signals.

Periodic signals: repeat patternsPeriodic signals: repeat patternsNonperiodic signals: no patternsNonperiodic signals: no patterns

Page 36: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

PERIODIC ANALOG SIGNALSPERIODIC ANALOG SIGNALS

•Periodic analog signals can be classified as Periodic analog signals can be classified as simplesimple or or compositecomposite. . •A A simple periodic analog signalsimple periodic analog signal, a , a sine wavesine wave, cannot be , cannot be decomposed into simpler signals. decomposed into simpler signals. •A A composite periodic analog signalcomposite periodic analog signal is composed of multiple is composed of multiple sine waves.sine waves.

Sine WaveWavelengthTime and Frequency DomainComposite SignalsBandwidth

Topics discussed in this section:Topics discussed in this section:

Page 37: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 3.2 A sine wave

Peak amplitude

Frequency

Phase

Page 38: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Frequency and period are the inverse of each other.

Page 39: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Table 3.1 Units of period and frequency

Page 40: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Frequency is the rate of change with respect to time. Change in a short span of time means high frequency. Change over a long span of time means low frequency.

If a signal does not change at all, its frequency is zero. If a signal changes instantaneously, its frequency is infinite.

Page 41: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 3.5 Three sine waves with the same amplitude and frequency, but different phases

Page 42: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 3.6 Wavelength and period

Wavelength is the distance a simple signal can travel in one period.

Wavelength (w) = signal velocity x periodRecall: period = 1 / frequency

Page 43: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 3.7 The time-domain and frequency-domain plots of a sine wave

A complete sine wave in the time domain can be represented by one single spike in the frequency domain.

Page 44: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 3.8 The time domain and frequency domain of three sine waves

The frequency domain is more compact and useful when we are dealing with more than one sine wave.

Page 45: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

•A single-frequency sine wave is not useful in data communications; we need to send a composite signal.•A composite signal is made of many simple sine waves.•According to Fourier analysis, any composite signal is a combination of simple sine waves with different frequencies, amplitudes, and phases. •If the composite signal is periodic, the decomposition gives a series of signals with discrete frequencies; if the composite signal is nonperiodic, the decomposition gives a combination of sine waves with continuous frequencies.

Sine Waves and Composite Signals

Page 46: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 3.12 The bandwidth of periodic and nonperiodic composite signals

Page 47: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

DIGITAL SIGNALSDIGITAL SIGNALS

In addition to being represented by an analog signal, In addition to being represented by an analog signal, information can also be represented by a information can also be represented by a digital signaldigital signal. . For example, a 1 can be encoded as a positive voltage For example, a 1 can be encoded as a positive voltage and a 0 as zero voltage. A digital signal can have more and a 0 as zero voltage. A digital signal can have more than two levels. In this case, we can send more than 1 bit than two levels. In this case, we can send more than 1 bit for each level.for each level.

Page 48: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Bit rate: the number of bits sent in 1s, expressed in bits per second (bps).

Frequency Vs. Bit Rate

Frequency: the number of periods in 1s.

Page 49: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 3.16 Two digital signals: one with two signal levels and the other with four signal levels

Page 50: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Wavelength is the distance an analog signal can travel in one period.

Bit length is the distance one bit occupies on the transmission medium.

Wavelength Vs. Bit length

Page 51: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 3.17 The time and frequency domains of periodic and nonperiodic digital signals

A digital signal is a composite analog signal with an infinite bandwidth.

Page 52: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 3.18 Baseband transmission

Baseband transmission: sending a digital signal over a channel without changing the digital signal to an analog signal.

Page 53: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 3.19 Bandwidths of two low-pass channels

Page 54: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 3.20 Baseband transmission using a dedicated medium

Baseband transmission of a digital signal that preserves the shape of the digital signal is possible

only if we have a low-pass channel with an infinite or very wide bandwidth.

Page 55: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 3.21 Rough approximation of a digital signal using the first harmonic for worst case

Page 56: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 3.22 Simulating a digital signal with first three harmonics

Page 57: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Table 3.2 Bandwidth requirements

Page 58: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 3.23 Bandwidth of a bandpass channel

Broadband transmission: changing the digital signal to an analog signal for transmission.

Bandpass channel: a channel with a bandwidth that does not start from zero.

Page 59: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

TRANSMISSION IMPAIRMENTTRANSMISSION IMPAIRMENT

Signals travel through transmission media, which are not Signals travel through transmission media, which are not perfect. The imperfection causes signal impairment. This perfect. The imperfection causes signal impairment. This means that the signal at the beginning of the medium is means that the signal at the beginning of the medium is not the same as the signal at the end of the medium. not the same as the signal at the end of the medium. What is sent is not what is received. Three causes of What is sent is not what is received. Three causes of impairment are impairment are attenuationattenuation, , distortiondistortion, and , and noisenoise..

Page 60: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 3.26 Attenuation

Decibel: measures the relative strengths of two signals or one signal at two different points.

It’s negative if a signal is attenuated and positive if a signal is amplified.

1

210log10P

PdB

Page 61: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Sometimes the decibel is used to measure signal power in milliwatts. In this case, it is referred to as dBm and is calculated as dBm = 10 log10 Pm , where Pm is the power in milliwatts.

Example 3.29

Page 62: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 3.28 Distortion

Page 63: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 3.29 Noise

SNR = average signal power/average noise power•Thermal•Induced•Crosstalk•Impulse

SNRSNRdB 10log10

Page 64: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

The values of SNR and SNRdB for a noiseless channel are

Example 3.32

We can never achieve this ratio in real life; it is an ideal.

Page 65: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Figure 3.30 Two cases of SNR: a high SNR and a low SNR

Page 66: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

DATA RATE LIMITSDATA RATE LIMITS

A very important consideration in data communications A very important consideration in data communications is how fast we can send data, in bits per second, over a is how fast we can send data, in bits per second, over a channel. Data rate depends on three factors:channel. Data rate depends on three factors: 1.1. The bandwidth available The bandwidth available 2.2. The level of the signals we use The level of the signals we use 33. The quality of the channel (the level of noise). The quality of the channel (the level of noise)

Noiseless Channel: Nyquist Bit RateNoisy Channel: Shannon CapacityUsing Both Limits

Topics discussed in this section:Topics discussed in this section:

Page 67: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Increasing the levels of a signal may reduce the reliability of the system.

Nyquist bit rate = 2 x bandwidth x log2L

Page 68: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

In reality we can not have a noiseless channel.

Shannon capacity = bandwidth x log2(1+SNR)

Page 69: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

For practical purposes, when the SNR is very high, we can assume that SNR + 1 is almost the same as SNR. In these cases, the theoretical channel capacity can be simplified to

Example 3.40

For example, we can calculate the theoretical capacity of the previous example as

Page 70: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

The Shannon capacity gives us the upper limit; the Nyquist formula tells us

how many signal levels we need.

Page 71: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

PERFORMANCEPERFORMANCE

BandwidthThroughputLatency (Delay)Bandwidth-Delay Product

Page 72: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

In networking, we use the term bandwidth in two contexts.

❏ The first, bandwidth in hertz, refers to the range of frequencies in a composite signal or the range of frequencies that a channel can pass.

❏ The second, bandwidth in bits per second, refers to the speed of bit transmission in a channel or link.

Page 73: DATA COMMUNICATIONS  Telecommunication: communication at a distance.  Data: information presented in whatever form is agreed upon by the parties creating

Latency (Delay):•Propagation time•Transmission time•Queuing time•Processing delay