Computer Networks Dr. Miled M. Tezeghdanti October 19, 2010 Dr. - - PowerPoint PPT Presentation

computer networks
SMART_READER_LITE
LIVE PREVIEW

Computer Networks Dr. Miled M. Tezeghdanti October 19, 2010 Dr. - - PowerPoint PPT Presentation

Computer Networks Dr. Miled M. Tezeghdanti October 19, 2010 Dr. Miled M. Tezeghdanti () Computer Networks October 19, 2010 1 / 79 Syllabus Basic Concepts OSI Model Data-Link Layer Local Area Networks Network Layer Transport Layer


slide-1
SLIDE 1

Computer Networks

  • Dr. Miled M. Tezeghdanti

October 19, 2010

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 1 / 79

slide-2
SLIDE 2

Syllabus

Basic Concepts OSI Model Data-Link Layer Local Area Networks Network Layer Transport Layer Application Layer

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 2 / 79

slide-3
SLIDE 3

Bibliography

Textbook

Computer Networks, Andrew S. Tanenbaum, 4th edition, Prentice Hall, 2002, ISBN-10: 0130661023, ISBN-13: 978-0130661029.

Reference

Computer Networking: A Top-Down Approach, James F. Kurose and Keith W. Ross, 5th edition, Addison Wesley, 2009, ISBN: 0-13-607967-9.

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 3 / 79

slide-4
SLIDE 4

Outline

Network Network Types Network Topology Switching Transmission Digital Encoding Modulation Multiplexing Network Delays Transmission Modes Transmission Media

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 4 / 79

slide-5
SLIDE 5

Definition

A computer network, often simply referred to as a network, is a group of computers and devices interconnected by communications channels that facilitate communications among users and allows users to share resources (from Wikipedia). Goal: Information Exchange

Data Voice Video

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 5 / 79

slide-6
SLIDE 6

Network Types

Broadcast Network

Each communication is receieved by all network users Examples: Radio Network, TV Network

Point-to-Point Network

The communication is between two network users Examples: Public Switched Telephone Network (PSTN), Internet

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 6 / 79

slide-7
SLIDE 7

Network Topology

Bus Ring Star Tree Mesh

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 7 / 79

slide-8
SLIDE 8

Bus Topology

All hosts are connected to the same bus The bus can handle a single communication at a given time Cannot be used when the number of hosts is large Each communication could be listened by each host Similar to the FSB (Front Side Bus) of a PC

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 8 / 79

slide-9
SLIDE 9

Ring Topology

All hosts are connected to the same ring Data travels in only one direction

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 9 / 79

slide-10
SLIDE 10

Star Topology

All hosts are connected to a central node Single point of failure Broadcasting Switching

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 10 / 79

slide-11
SLIDE 11

Tree Topology

There is a one and only one path between each two nodes No tolerant to failures Two isolated sub-trees in case of link failure

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 11 / 79

slide-12
SLIDE 12

Mesh Topology

The shortest path is used for the communication Tolerant to failures Economic Solution

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 12 / 79

slide-13
SLIDE 13

Switching

How is data transferred through the network? Circuit Switching Message Switching Packet Switching Cell Switching

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 13 / 79

slide-14
SLIDE 14

Switching

Circuit Switching

Public Switched Telephone Network (PSTN)

Message Switching

Mail/Email

Packet Switching

Internet

Cell Switching

Asynchronous Transfer Mode (ATM)

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 14 / 79

slide-15
SLIDE 15

Circuit Switching

End to end dedicated communication circuit Established for the call duration End to end physical circuit must be established before data transfer Example: Telephone Network

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 15 / 79

slide-16
SLIDE 16

Circuit Switching

1 2 3 4 5 6 7 8

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 16 / 79

slide-17
SLIDE 17

Circuit Switching

1 2 3 4 5 6 7 8 1 3: Circuit Setup Success

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 16 / 79

slide-18
SLIDE 18

Circuit Switching

1 2 3 4 5 6 7 8 1 3: Circuit Setup Success 4 6: Circuit Setup Success

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 16 / 79

slide-19
SLIDE 19

Circuit Switching

1 2 3 4 5 6 7 8 1 3: Circuit Setup Success 4 6: Circuit Setup Success 5 1: Circuit Setup Failure: User Busy

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 16 / 79

slide-20
SLIDE 20

Circuit Switching

1 2 3 4 5 6 7 8 1 3: Circuit Setup Success 4 6: Circuit Setup Success 8 2: Circuit Setup Failure: Network Busy

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 16 / 79

slide-21
SLIDE 21

Circuit Switching

1 2 3 4 5 6 7 8 1 3: Circuit Setup Success 6: Circuit Release Success 4

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 16 / 79

slide-22
SLIDE 22

Circuit Switching

1 2 3 4 5 6 7 8 1 3: Circuit Setup Success 2 7: Circuit Setup Success

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 16 / 79

slide-23
SLIDE 23

Circuit Switching

1 2 3 4 5 6 7 8 1 3: Circuit Setup Success 4 6: Circuit Setup Success 5 1: Circuit Setup Failure: User Busy 8 2: Circuit Setup Failure: Network Busy 6: Circuit Release Success 4 2 7: Circuit Setup Success

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 16 / 79

slide-24
SLIDE 24

Message Switching

Does not require circuit setup before conversation Messages are stored and then forwarded Store-and-forward No restriction on the size of transferred messages

Intermediate nodes must have huge storage space

Example: Mail/Email

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 17 / 79

slide-25
SLIDE 25

Message Switching

Internet

LAN LAN LAN LAN MAU: Mail User Agent (pine, Outlook, Mozilla, ...) MTA/MDA: Mail Transfer Agent/Mail Delivery Agent (Sendmail, Exchange, ...) LAN: Local Area Network

MUA MUA MTA/MDA MUA MUA MTA/MDA MUA MUA MTA/MDA MUA MUA MTA/MDA

Message Switching

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 18 / 79

slide-26
SLIDE 26

Message Switching

Internet

LAN LAN LAN LAN MAU: Mail User Agent (pine, Outlook, Mozilla, ...) MTA/MDA: Mail Transfer Agent/Mail Delivery Agent (Sendmail, Exchange, ...) LAN: Local Area Network

MUA MUA MTA/MDA MUA MUA MTA/MDA MUA MUA MTA/MDA MUA MUA MTA/MDA

from: h1@lan1.net to: h5@lan5.net subject: MS Email uses MS .

Message Switching

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 18 / 79

slide-27
SLIDE 27

Message Switching

Internet

LAN LAN LAN LAN MAU: Mail User Agent (pine, Outlook, Mozilla, ...) MTA/MDA: Mail Transfer Agent/Mail Delivery Agent (Sendmail, Exchange, ...) LAN: Local Area Network

MUA MUA MTA/MDA MUA MUA MTA/MDA MUA MUA MTA/MDA MUA MUA MTA/MDA

from: h1@lan1.net to: h5@lan5.net subject: MS Email uses MS .

Message Switching

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 18 / 79

slide-28
SLIDE 28

Message Switching

Internet

LAN LAN LAN LAN MAU: Mail User Agent (pine, Outlook, Mozilla, ...) MTA/MDA: Mail Transfer Agent/Mail Delivery Agent (Sendmail, Exchange, ...) LAN: Local Area Network

MUA MUA MTA/MDA MUA MUA MTA/MDA MUA MUA MTA/MDA MUA MUA MTA/MDA

to: h5@lan5.net Email uses MS from: h1@lan1.net subject: MS .

Message Switching

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 18 / 79

slide-29
SLIDE 29

Message Switching

Internet

LAN LAN LAN LAN MAU: Mail User Agent (pine, Outlook, Mozilla, ...) MTA/MDA: Mail Transfer Agent/Mail Delivery Agent (Sendmail, Exchange, ...) LAN: Local Area Network

MUA MUA MTA/MDA MUA MUA MTA/MDA MUA MUA MTA/MDA MUA MUA MTA/MDA

from: h1@lan1.net to: h5@lan5.net subject: MS Email uses MS .

Message Switching

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 18 / 79

slide-30
SLIDE 30

Message Switching

Internet

LAN LAN LAN LAN MAU: Mail User Agent (pine, Outlook, Mozilla, ...) MTA/MDA: Mail Transfer Agent/Mail Delivery Agent (Sendmail, Exchange, ...) LAN: Local Area Network

MUA MUA MTA/MDA MUA MUA MTA/MDA MUA MUA MTA/MDA MUA MUA MTA/MDA

from: h1@lan1.net to: h5@lan5.net subject: MS Email uses MS . from: h1@lan1.net to: h5@lan5.net subject: MS Email uses MS . to: h5@lan5.net Email uses MS from: h1@lan1.net subject: MS . from: h1@lan1.net to: h5@lan5.net subject: MS Email uses MS .

Message Switching

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 18 / 79

slide-31
SLIDE 31

Packet Switching

Invented to overcome message switching problems Messages are segmented into packets Packets have a maximum size Pipeline: first packet could be transmitted before the arrival of the second one Example: Internet

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 19 / 79

slide-32
SLIDE 32

Packet Switching

from: h1@lan1.net to: h5@lan5.net subject: MS Email uses MS .

Packet Switching

Email uses MS 1−>5,4 1−>5,5 . 1−>5,3 subject: MS from: h1@lan1.net 1−>5,1 to: h5@lan5.net 1−>5,2

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 20 / 79

slide-33
SLIDE 33

Packet Switching

from: h1@lan1.net to: h5@lan5.net subject: MS Email uses MS .

Packet Switching

Email uses MS 1−>5,4 1−>5,5 . 1−>5,3 subject: MS to: h5@lan5.net 1−>5,2 from: h1@lan1.net 1−>5,1

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 20 / 79

slide-34
SLIDE 34

Packet Switching

from: h1@lan1.net to: h5@lan5.net subject: MS Email uses MS .

Packet Switching

Email uses MS 1−>5,4 1−>5,5 . 1−>5,3 subject: MS from: h1@lan1.net 1−>5,1 to: h5@lan5.net 1−>5,2

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 20 / 79

slide-35
SLIDE 35

Packet Switching

from: h1@lan1.net to: h5@lan5.net subject: MS Email uses MS .

Packet Switching

Email uses MS 1−>5,4 1−>5,5 . from: h1@lan1.net 1−>5,1 to: h5@lan5.net 1−>5,2 1−>5,3 subject: MS

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 20 / 79

slide-36
SLIDE 36

Packet Switching

from: h1@lan1.net to: h5@lan5.net subject: MS Email uses MS .

Packet Switching

1−>5,5 . from: h1@lan1.net 1−>5,1 to: h5@lan5.net 1−>5,2 1−>5,3 subject: MS Email uses MS 1−>5,4

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 20 / 79

slide-37
SLIDE 37

Packet Switching

from: h1@lan1.net to: h5@lan5.net subject: MS Email uses MS .

Packet Switching

from: h1@lan1.net 1−>5,1 to: h5@lan5.net 1−>5,2 1−>5,3 subject: MS Email uses MS 1−>5,4 1−>5,5 .

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 20 / 79

slide-38
SLIDE 38

Packet Switching

from: h1@lan1.net to: h5@lan5.net subject: MS Email uses MS .

Packet Switching

from: h1@lan1.net 1−>5,1 to: h5@lan5.net 1−>5,2 1−>5,3 subject: MS Email uses MS 1−>5,4 1−>5,5 .

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 20 / 79

slide-39
SLIDE 39

Packet Switching

from: h1@lan1.net to: h5@lan5.net subject: MS Email uses MS .

Packet Switching

from: h1@lan1.net 1−>5,1 to: h5@lan5.net 1−>5,2 1−>5,3 subject: MS 1−>5,5 . Email uses MS 1−>5,4

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 20 / 79

slide-40
SLIDE 40

Packet Switching

from: h1@lan1.net to: h5@lan5.net subject: MS Email uses MS .

Packet Switching

from: h1@lan1.net 1−>5,1 to: h5@lan5.net 1−>5,2 1−>5,3 subject: MS Email uses MS 1−>5,4 1−>5,5 .

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 20 / 79

slide-41
SLIDE 41

Packet Switching

from: h1@lan1.net to: h5@lan5.net subject: MS Email uses MS .

Packet Switching

from: h1@lan1.net 1−>5,1 to: h5@lan5.net 1−>5,2 1−>5,3 subject: MS Email uses MS 1−>5,4 1−>5,5 .

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 20 / 79

slide-42
SLIDE 42

Packet Switching

from: h1@lan1.net to: h5@lan5.net subject: MS Email uses MS .

Packet Switching

from: h1@lan1.net 1−>5,1 to: h5@lan5.net 1−>5,2 1−>5,3 subject: MS Email uses MS 1−>5,4 1−>5,5 . from: h1@lan1.net to: h5@lan5.net subject: MS Email uses MS .

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 20 / 79

slide-43
SLIDE 43

Packet Switching

from: h1@lan1.net to: h5@lan5.net subject: MS Email uses MS .

Packet Switching

from: h1@lan1.net to: h5@lan5.net subject: MS Email uses MS .

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 20 / 79

slide-44
SLIDE 44

Cell Switching

Similar to packet switching Messages/Packets are segmented into cells Cells have fixed size Padding bytes in the last cell Good for real time traffic (transmission time is fixed for each cell) Example: ATM

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 21 / 79

slide-45
SLIDE 45

Transmission Link Characteristics

Simplex

Transmission in one direction Radio, TV

Half-Duplex

Transmission in both directions, but in only one direction at a given time Walkie Talkie

Full-Duplex

Transmission in both directions simultaneously Telephone

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 22 / 79

slide-46
SLIDE 46

Signal

A signal is a varying quantity (voltage, air pressure,) that can be expressed as a continuous function of an independent variable usually time Used for data representation Digital Signal

Discrete time signal Discrete values (+5V and 5V)

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 23 / 79

slide-47
SLIDE 47

Analog Signal

Continuous time signal Amplitude varies continuously

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 24 / 79

slide-48
SLIDE 48

Digital Signal

Discrete time signal Discrete values (+5V and 5V)

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 25 / 79

slide-49
SLIDE 49

Fourier Analysis

A periodic signal g(t) with frequency f can be written as follows: g(t) = c 2 +

  • n=1

ansin(2πnft) +

  • n=1

bncos(2πnft) c = 2 T T g(t)dt an = 2 T T g(t)sin(2πnft)dt bn = 2 T T g(t)cos(2πnft)dt if the signal is not periodic, we can apply Fourier on portions of the signal.

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 26 / 79

slide-50
SLIDE 50

Fourier Analysis

an = 2 T T g(t)sin(2πnft)dt = 2 T

  • T

2

sin(2πnft)dt = 2 T

1 2πnf cos(2πnft) T

2

= 2 T

1 2πnf

  • cos(2πnf T

2 ) − cos(0)

  • = − 2

T 1 2πnf

  • cos(2πnf T

2 ) − cos(0)

  • = − 1

  • cos(nπ) − 1
  • = 1

  • 1 − cos(nπ)
  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 27 / 79

slide-51
SLIDE 51

Fourier Analysis

bn = 2 T T g(t)cos(2πnft)dt = 2 T

  • T

2

cos(2πnft)dt = 2 T

  • 1

2πnf sin(2πnft) T

2

= 2 T

  • 1

2πnf

  • sin(2πnf T

2 ) − sin(0)

  • = 2

T 1 2πnf

  • sin(2πnf T

2 ) − sin(0)

  • = 1

  • sin(nπ) − 0
  • = 0
  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 28 / 79

slide-52
SLIDE 52

Fourier Analysis

c = 2 T T g(t)dt = 2 T

  • t

T

2

= 2 T T 2 − 0

  • = 2

T T 2 = 1

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 29 / 79

slide-53
SLIDE 53

Fourier Analysis

g(t) = c 2 +

  • n=1

ansin(2πnft) +

  • n=1

bncos(2πnft) an = 1 nπ

  • 1 − cos(nπ)
  • bn = 0

c = 1 g(t) = 1 2 +

  • n=1

1 nπ

  • 1 − cos(nπ)
  • sin(2πnft) + 0

g(t) = 1 2 + 2 πsin(2πft) + 2 3πsin(6πft) + 2 5πsin(10πft) + ...

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 30 / 79

slide-54
SLIDE 54

Fourier Analysis

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 31 / 79

slide-55
SLIDE 55

Fourier Analysis

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 32 / 79

slide-56
SLIDE 56

Fading/Attenuation

Fading/Attenuation

Diminution of the amplitude of the signal Depends on:

Frequency of the signal Transmission media Circuit length

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 33 / 79

slide-57
SLIDE 57

Fading/Attenuation

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 34 / 79

slide-58
SLIDE 58

Distortion

Distortion

Signal deformation The signal is constituted by many harmonics with different frequencies Harmonics are transmitted with different speeds Received signal will be distorted

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 35 / 79

slide-59
SLIDE 59

Distortion

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 36 / 79

slide-60
SLIDE 60

Noise

Noise

Presence of parasite signal Gaussian Noise

Random motion of electrons Emission of electromagnetic waves

Constant signal Its power is proportional to temperature

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 37 / 79

slide-61
SLIDE 61

Distortion

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 38 / 79

slide-62
SLIDE 62

Signal Transmission

Analog Transmission

Analog signal is used to transmit Information

Digital Transmission

Digital signal is used to transmit Information

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 39 / 79

slide-63
SLIDE 63

Analog Transmission

Analog Signal over Analog Channel

Signal directly transmitted (base band) Analog Modulation (broadband)

Digital Signal over Analog Channel

Modem: modulator demodulator

Amplitude Modulation Frequency Modulation Phase Modulation Combined Modulation

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 40 / 79

slide-64
SLIDE 64

Digital Transmission

Digital Signal over Digital Channel

Manchester Code

Bit 1: top-down transition Bit 0: bottom-up transition

Analog Signal over Digital Channel

Codec PCM : Pulse Code Modulation Sampling Quantization Coding

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 41 / 79

slide-65
SLIDE 65

Sampling

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 42 / 79

slide-66
SLIDE 66

Nyquist Theorem

Nyquist Theorem

A signal with a maximal frequency H must be sampled at a frequency 2H Maximum rate: 2Hlog2Vbit/s V : number of discrete levels of the signal

Example:

A modem uses AM-PSK modulation (Phase Shift Key) with 8 levels, PSTN bandwidth is 3100Hz C = 2Hlog2V C = 2 ∗ 3100 ∗ log28 C = 2 ∗ 3100 ∗ 3 C = 18600bit/s

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 43 / 79

slide-67
SLIDE 67

Analog Transmission

Analog Transmission

Communication by exchanging analog signals

Amplifier to amplify the signal

Original signal can not be reconstituted Noise signal is also amplified! Signal looses its quality with distance Fading/Attenuation and noise dont affect so much voice transmission but data transmission may be seriously affected (data corruption)

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 44 / 79

slide-68
SLIDE 68

Digital Transmission

Digital signal with two states on and off Digital transmission is done by impulsions Repeater to regenerate the signal

Initial signal is reconstituted exactly Noise is eliminated Fading/Attenuation does not affect so much digital signal

An faded/attenuated signal has always a series of on and off pulses

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 45 / 79

slide-69
SLIDE 69

Digital Transmission

Radio, TV have analog transmission systems

Why use digital transmission? Cheap LSI/VLSI technology Data Integrity Efficiency

Best use of bandwidth Easy multiplexing with digital techniques

Security Cryptography and authentication Integration

Similar processing of analog and digital data

Good quality (Noise elimination)

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 46 / 79

slide-70
SLIDE 70

Digital Encoding

Manchester Encoding

0: Bottom-Up Transition 1: Top-Down Transition

Bipolar Encoding

0: -V 1: +V

NRZ Encoding (No Return to Zero)

0: -V 1: +V

NRZI Encoding (No Return to Zero Inverted)

0: Transition 1: No transition

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 47 / 79

slide-71
SLIDE 71

Manchester Encoding

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 48 / 79

slide-72
SLIDE 72

Bipolar Encoding

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 49 / 79

slide-73
SLIDE 73

NRZ Encoding

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 50 / 79

slide-74
SLIDE 74

NRZI Encoding

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 51 / 79

slide-75
SLIDE 75

Modulation

Modification of the characteristics of the carrier using the amplitude

  • f base band signal

Process allowing the transmission

Analog signal with a higher frequency Digital signal over analog channel

Carrier

P(t) = A sin(2wFt + P)

A : amplitude F : frequency P : phase

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 52 / 79

slide-76
SLIDE 76

Modulation

Amplitude Modulation

Two different amplitudes are used to represent bit 0 and bit 1

Frequency Modulation

Two different frequencies are used to represent bit 0 and bit 1

Phase Modulation

Two different phases are used to represent bit 0 and bit 1

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 53 / 79

slide-77
SLIDE 77

Amplitude Modulation

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 54 / 79

slide-78
SLIDE 78

Frequency Modulation

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 55 / 79

slide-79
SLIDE 79

Phase Modulation

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 56 / 79

slide-80
SLIDE 80

Combined Modulation

Simultaneous use of two or more of former modulation methods

Amplitude Modulation + Frequency Modulation Amplitude Modulation + Phase Modulation Frequency Modulation + Phase Modulation All the three methods

Transmission of many bits simultaneously

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 57 / 79

slide-81
SLIDE 81

Combined Modulation

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 58 / 79

slide-82
SLIDE 82

Capacity

Baud

Number of signal transitions per second Unity: baud

Bits per second

Number of transmitted bits per second Unity: bit/s

2 different levels ( 0 and 1)

Capacity(bits/s) = capacity(bauds)

4 different levels (00, 01, 10, 11)

Capacity(bits/s) = 2 ∗ capacity(bauds)

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 59 / 79

slide-83
SLIDE 83

Capacity

Shannon Theorem

C = Blog2(1 + S

N )

C: Capacity B: Bandwidth SNR: Signal/Noise Ratio

SNR = 10log10( S

N )

S N = 10( SNR

10 )

Example:

Twisted Pair SNR = 20dB Bandwidth 3000Hz

S N = 10( 20

10 ) = 102 = 100

C = 3000log2(1 + 100) C = 19963bit/s

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 60 / 79

slide-84
SLIDE 84

Multiplexing

Goal

Transmission of many signals over one transmission media

Analog Multiplexing

Frequency Division Multiplexing (FDM) Wave-length Division Multiplexing (WDM) Code Division Multiplexing (CDM)

Digital Multiplexing

Time Division Multiplexing (TDM)

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 61 / 79

slide-85
SLIDE 85

Frequency Division Multiplexing

Time Frequency Bandwdith Frequency Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 62 / 79

slide-86
SLIDE 86

Frequency Division Multiplexing

Time Frequency Bandwdith Frequency Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 62 / 79

slide-87
SLIDE 87

Frequency Division Multiplexing

Time Frequency Bandwdith Frequency Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 62 / 79

slide-88
SLIDE 88

Frequency Division Multiplexing

Time Frequency Bandwdith Frequency Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 62 / 79

slide-89
SLIDE 89

Frequency Division Multiplexing

Time Frequency Bandwdith Frequency Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 62 / 79

slide-90
SLIDE 90

Frequency Division Multiplexing

Time Frequency Bandwdith Frequency Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 62 / 79

slide-91
SLIDE 91

Time Division Multiplexing

Time Frequency Bandwdith Time Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 63 / 79

slide-92
SLIDE 92

Time Division Multiplexing

Time Frequency Bandwdith Time Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 63 / 79

slide-93
SLIDE 93

Time Division Multiplexing

Time Frequency Bandwdith Time Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 63 / 79

slide-94
SLIDE 94

Time Division Multiplexing

Time Frequency Bandwdith Time Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 63 / 79

slide-95
SLIDE 95

Time Division Multiplexing

Time Frequency Bandwdith Time Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 63 / 79

slide-96
SLIDE 96

Time Division Multiplexing

Time Frequency Bandwdith Time Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 63 / 79

slide-97
SLIDE 97

Time Division Multiplexing

Time Frequency Bandwdith Time Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 63 / 79

slide-98
SLIDE 98

Time Division Multiplexing

Time Frequency Bandwdith Time Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 63 / 79

slide-99
SLIDE 99

Time Division Multiplexing

Time Frequency Bandwdith Time Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 63 / 79

slide-100
SLIDE 100

Code Division Multiplexing - Frequency Hopping

Time Frequency Bandwdith Code Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 64 / 79

slide-101
SLIDE 101

Code Division Multiplexing - Frequency Hopping

Time Frequency Bandwdith Code Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 64 / 79

slide-102
SLIDE 102

Code Division Multiplexing - Frequency Hopping

Time Frequency Bandwdith Code Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 64 / 79

slide-103
SLIDE 103

Code Division Multiplexing - Frequency Hopping

Time Frequency Bandwdith Code Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 64 / 79

slide-104
SLIDE 104

Code Division Multiplexing - Frequency Hopping

Time Frequency Bandwdith Code Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 64 / 79

slide-105
SLIDE 105

Code Division Multiplexing - Frequency Hopping

Time Frequency Bandwdith Code Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 64 / 79

slide-106
SLIDE 106

Code Division Multiplexing - Frequency Hopping

Time Frequency Bandwdith Code Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 64 / 79

slide-107
SLIDE 107

Code Division Multiplexing - Frequency Hopping

Time Frequency Bandwdith Code Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 64 / 79

slide-108
SLIDE 108

Code Division Multiplexing - Frequency Hopping

Time Frequency Bandwdith Code Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 64 / 79

slide-109
SLIDE 109

Code Division Multiplexing - Frequency Hopping

Time Frequency Bandwdith Code Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 64 / 79

slide-110
SLIDE 110

Code Division Multiplexing - Frequency Hopping

Time Frequency Bandwdith Code Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 64 / 79

slide-111
SLIDE 111

Code Division Multiplexing - Frequency Hopping

Time Frequency Bandwdith Code Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 64 / 79

slide-112
SLIDE 112

Code Division Multiplexing - Frequency Hopping

Time Frequency Bandwdith Code Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 64 / 79

slide-113
SLIDE 113

Code Division Multiplexing - Frequency Hopping

Time Frequency Bandwdith Code Division Multiplexing

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 64 / 79

slide-114
SLIDE 114

Network Delays

Transmission Delay Propagation Delay Processing Delay Queueing Delay

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 65 / 79

slide-115
SLIDE 115

Transmission Delay

It is the amount of time required to put the data into the wire It depends on the length of the data and the bandwidth of the link DT = N

B

N : the number of bits in the data B : bandwidth (capacity) of the link expressed in bps (bit per second) (also b/s)

Example: What is the transmission delay for a 64 bytes packet over a 10Mbps link? Answer: DT = N

B = 64∗8 10∗106 = 512 ∗ 10−7 = 51.2µs

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 66 / 79

slide-116
SLIDE 116

Propagation Delay

It is the amount of time required for the signal to travel from one end

  • f the link to the other end

It depends on the length of the link and speed of the signal on the transmission media DP = L

S

L : the length of the link (unit: meter) S : the speed of the signal in the transmission media expressed in m/s The speed of light in a vaccum is 3 ∗ 108m/s. The speed of electricity in a copper media is 2 ∗ 108m/s.

Example: What is propagation delay in 1km copper cable? Answer: DP = L

S = 1∗103 2∗108 = 0.5 ∗ 10−5 = 0.05µs

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 67 / 79

slide-117
SLIDE 117

Processing Delay

It is the amount of time required by a network node to process a packet

It includes the time for reading control information It includes the time for looking up the outgoing link

It is usually negligible compared to other delays

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 68 / 79

slide-118
SLIDE 118

Queueing Delay

It is the amount of time spent by a packet inside the queue on the

  • utgoing link waiting for its turn.

It depends on the size of packets scheduled for transmission before it. It depends on the bandwith of the outgoing link Example: What is the maximum queueing delay in a 100MB queue of an outgoing link of 1Mbps? Answer: DQ = 100∗1024∗1024∗8

106

= 838.860800s

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 69 / 79

slide-119
SLIDE 119

End-to-end Delay

It is the total amount of time required for a packet to travel from the sender to the receiver It is the sum of transmission, propagation, processing, and queueing delays in each node and link on the path fromthe sender to the receiver

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 70 / 79

slide-120
SLIDE 120

Transmission Modes

Parallel Transmission

Many bits are sent simultaneously using many parallel communication lines Data could be sent byte by byte Used for short distance links

Serial Transmission

Bits are sent one after other One communication link is used Sender and receiver need to be synchronized Two approaches to resolve the problem

Asynchronous Transmission, Synchronous Transmission

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 71 / 79

slide-121
SLIDE 121

Asynchronous Transmission

Synchronization is assured at the character level Data is sent character by character (byte by byte) Each character is preceded by one or many bits (start bits) that indicate the start of the transmission and succeeded by one or many bits (stop bits) that indicate the end of the transmission Sender and receiver clocks are independents Synchronization is not always maintained between sender and receiver

Synchronization is established at the start of the exchange using Start bits and lost after the reception of the Stop bits

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 72 / 79

slide-122
SLIDE 122

Asynchronous Transmission

Advantages

Character corruption does not affect previous character and next character Good for applications producing character at irregular intervals (keyboard)

Drawbacks

Transmission success depends on the knowledge of Start bits A non negligible proportion of bits are transmitted for control purposes

  • nly (3 / 11)

Low rate

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 73 / 79

slide-123
SLIDE 123

Synchronous Transmission

Clocks of the sender and receiver must be identical

Additional line to transport clock signal Automatic Synchronization using coding Block Synchronization

Data is sent block by block Each block is preceded with one or more synchronization characters

SYN character (ASCII Code 22) is used

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 74 / 79

slide-124
SLIDE 124

Synchronous Transmission

Advantages

Good useful bits / transmitted bits ratio High rate

Drawbacks

One error affects a whole block Generated characters are stored waiting for block construction

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 75 / 79

slide-125
SLIDE 125

Transmission Media

Characteristics

Fading/Attenuation

Function of the distance and the frequency of the signal dB/km at different frequencies

Noise Propagation

Each transmission media has a limited frequency band

Maximal rate is limited by this frequency

Sound: 100Hz to 7kHz Telephone: 300Hz to 3400Hz Twisted pair: 300Hz to 3400Hz Video: 4MHz

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 76 / 79

slide-126
SLIDE 126

Twisted Pair

Analog Transmission

Amplifier: 5km to 6km

Digital Transmission

Repeater: 2km to 3km

Limited Distance Bandwidth (1MHz) Limited rate (100MHz) Unshielded Twisted Pair (UTP)

Cat 3(16MHz), Cat 4(20MHz), Cat 5(100MHz)

Shielded Twisted Pair (STP)

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 77 / 79

slide-127
SLIDE 127

Coaxial Cable

TV

Antenna TV cable

Long distance telephone transmission

10 000 simultaneous calls

Local Area Networks Base band Cable (50 ohms)

Digital Transmission Repeater: 1km 1 to 2Gbit/s (1km)

Broadband Cable (75 ohms)

Analog Transmission Amplifiers: some kms 300 to 450MHz (100 km)

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 78 / 79

slide-128
SLIDE 128

Fiber Optics

Mono-mode Fiber Multi-mode Fiber Use of light impulsions (no electrical signals) Huge capacity

Hundreds of Gbit/s

Small size Low attenuation Electromagnetic isolation Repeater

10s km

  • Dr. Miled M. Tezeghdanti ()

Computer Networks October 19, 2010 79 / 79