Computer Networks
- Dr. Miled M. Tezeghdanti
October 19, 2010
- Dr. Miled M. Tezeghdanti ()
Computer Networks October 19, 2010 1 / 79
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
Computer Networks October 19, 2010 1 / 79
Computer Networks October 19, 2010 2 / 79
Computer Networks, Andrew S. Tanenbaum, 4th edition, Prentice Hall, 2002, ISBN-10: 0130661023, ISBN-13: 978-0130661029.
Computer Networking: A Top-Down Approach, James F. Kurose and Keith W. Ross, 5th edition, Addison Wesley, 2009, ISBN: 0-13-607967-9.
Computer Networks October 19, 2010 3 / 79
Computer Networks October 19, 2010 4 / 79
Data Voice Video
Computer Networks October 19, 2010 5 / 79
Each communication is receieved by all network users Examples: Radio Network, TV Network
The communication is between two network users Examples: Public Switched Telephone Network (PSTN), Internet
Computer Networks October 19, 2010 6 / 79
Computer Networks October 19, 2010 7 / 79
Computer Networks October 19, 2010 8 / 79
Computer Networks October 19, 2010 9 / 79
Computer Networks October 19, 2010 10 / 79
Computer Networks October 19, 2010 11 / 79
Computer Networks October 19, 2010 12 / 79
Computer Networks October 19, 2010 13 / 79
Public Switched Telephone Network (PSTN)
Mail/Email
Internet
Asynchronous Transfer Mode (ATM)
Computer Networks October 19, 2010 14 / 79
Computer Networks October 19, 2010 15 / 79
1 2 3 4 5 6 7 8
Computer Networks October 19, 2010 16 / 79
1 2 3 4 5 6 7 8 1 3: Circuit Setup Success
Computer Networks October 19, 2010 16 / 79
1 2 3 4 5 6 7 8 1 3: Circuit Setup Success 4 6: Circuit Setup Success
Computer Networks October 19, 2010 16 / 79
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
Computer Networks October 19, 2010 16 / 79
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
Computer Networks October 19, 2010 16 / 79
1 2 3 4 5 6 7 8 1 3: Circuit Setup Success 6: Circuit Release Success 4
Computer Networks October 19, 2010 16 / 79
1 2 3 4 5 6 7 8 1 3: Circuit Setup Success 2 7: Circuit Setup Success
Computer Networks October 19, 2010 16 / 79
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
Computer Networks October 19, 2010 16 / 79
Intermediate nodes must have huge storage space
Computer Networks October 19, 2010 17 / 79
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
Computer Networks October 19, 2010 18 / 79
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
Computer Networks October 19, 2010 18 / 79
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
Computer Networks October 19, 2010 18 / 79
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
Computer Networks October 19, 2010 18 / 79
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
Computer Networks October 19, 2010 18 / 79
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
Computer Networks October 19, 2010 18 / 79
Computer Networks October 19, 2010 19 / 79
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
Computer Networks October 19, 2010 20 / 79
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
Computer Networks October 19, 2010 20 / 79
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
Computer Networks October 19, 2010 20 / 79
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
Computer Networks October 19, 2010 20 / 79
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
Computer Networks October 19, 2010 20 / 79
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 .
Computer Networks October 19, 2010 20 / 79
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 .
Computer Networks October 19, 2010 20 / 79
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
Computer Networks October 19, 2010 20 / 79
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 .
Computer Networks October 19, 2010 20 / 79
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 .
Computer Networks October 19, 2010 20 / 79
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 .
Computer Networks October 19, 2010 20 / 79
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 .
Computer Networks October 19, 2010 20 / 79
Computer Networks October 19, 2010 21 / 79
Transmission in one direction Radio, TV
Transmission in both directions, but in only one direction at a given time Walkie Talkie
Transmission in both directions simultaneously Telephone
Computer Networks October 19, 2010 22 / 79
Discrete time signal Discrete values (+5V and 5V)
Computer Networks October 19, 2010 23 / 79
Computer Networks October 19, 2010 24 / 79
Computer Networks October 19, 2010 25 / 79
∞
∞
Computer Networks October 19, 2010 26 / 79
2
2
Computer Networks October 19, 2010 27 / 79
2
2
Computer Networks October 19, 2010 28 / 79
2
Computer Networks October 19, 2010 29 / 79
∞
∞
∞
Computer Networks October 19, 2010 30 / 79
Computer Networks October 19, 2010 31 / 79
Computer Networks October 19, 2010 32 / 79
Diminution of the amplitude of the signal Depends on:
Frequency of the signal Transmission media Circuit length
Computer Networks October 19, 2010 33 / 79
Computer Networks October 19, 2010 34 / 79
Signal deformation The signal is constituted by many harmonics with different frequencies Harmonics are transmitted with different speeds Received signal will be distorted
Computer Networks October 19, 2010 35 / 79
Computer Networks October 19, 2010 36 / 79
Presence of parasite signal Gaussian Noise
Random motion of electrons Emission of electromagnetic waves
Constant signal Its power is proportional to temperature
Computer Networks October 19, 2010 37 / 79
Computer Networks October 19, 2010 38 / 79
Analog signal is used to transmit Information
Digital signal is used to transmit Information
Computer Networks October 19, 2010 39 / 79
Signal directly transmitted (base band) Analog Modulation (broadband)
Modem: modulator demodulator
Amplitude Modulation Frequency Modulation Phase Modulation Combined Modulation
Computer Networks October 19, 2010 40 / 79
Manchester Code
Bit 1: top-down transition Bit 0: bottom-up transition
Codec PCM : Pulse Code Modulation Sampling Quantization Coding
Computer Networks October 19, 2010 41 / 79
Computer Networks October 19, 2010 42 / 79
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
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
Computer Networks October 19, 2010 43 / 79
Communication by exchanging analog signals
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)
Computer Networks October 19, 2010 44 / 79
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
Computer Networks October 19, 2010 45 / 79
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)
Computer Networks October 19, 2010 46 / 79
0: Bottom-Up Transition 1: Top-Down Transition
0: -V 1: +V
0: -V 1: +V
0: Transition 1: No transition
Computer Networks October 19, 2010 47 / 79
Computer Networks October 19, 2010 48 / 79
Computer Networks October 19, 2010 49 / 79
Computer Networks October 19, 2010 50 / 79
Computer Networks October 19, 2010 51 / 79
Analog signal with a higher frequency Digital signal over analog channel
P(t) = A sin(2wFt + P)
A : amplitude F : frequency P : phase
Computer Networks October 19, 2010 52 / 79
Two different amplitudes are used to represent bit 0 and bit 1
Two different frequencies are used to represent bit 0 and bit 1
Two different phases are used to represent bit 0 and bit 1
Computer Networks October 19, 2010 53 / 79
Computer Networks October 19, 2010 54 / 79
Computer Networks October 19, 2010 55 / 79
Computer Networks October 19, 2010 56 / 79
Amplitude Modulation + Frequency Modulation Amplitude Modulation + Phase Modulation Frequency Modulation + Phase Modulation All the three methods
Computer Networks October 19, 2010 57 / 79
Computer Networks October 19, 2010 58 / 79
Number of signal transitions per second Unity: baud
Number of transmitted bits per second Unity: bit/s
Capacity(bits/s) = capacity(bauds)
Capacity(bits/s) = 2 ∗ capacity(bauds)
Computer Networks October 19, 2010 59 / 79
C = Blog2(1 + S
N )
C: Capacity B: Bandwidth SNR: Signal/Noise Ratio
N )
S N = 10( SNR
10 )
Twisted Pair SNR = 20dB Bandwidth 3000Hz
S N = 10( 20
10 ) = 102 = 100
C = 3000log2(1 + 100) C = 19963bit/s
Computer Networks October 19, 2010 60 / 79
Transmission of many signals over one transmission media
Frequency Division Multiplexing (FDM) Wave-length Division Multiplexing (WDM) Code Division Multiplexing (CDM)
Time Division Multiplexing (TDM)
Computer Networks October 19, 2010 61 / 79
Time Frequency Bandwdith Frequency Division Multiplexing
Computer Networks October 19, 2010 62 / 79
Time Frequency Bandwdith Frequency Division Multiplexing
Computer Networks October 19, 2010 62 / 79
Time Frequency Bandwdith Frequency Division Multiplexing
Computer Networks October 19, 2010 62 / 79
Time Frequency Bandwdith Frequency Division Multiplexing
Computer Networks October 19, 2010 62 / 79
Time Frequency Bandwdith Frequency Division Multiplexing
Computer Networks October 19, 2010 62 / 79
Time Frequency Bandwdith Frequency Division Multiplexing
Computer Networks October 19, 2010 62 / 79
Time Frequency Bandwdith Time Division Multiplexing
Computer Networks October 19, 2010 63 / 79
Time Frequency Bandwdith Time Division Multiplexing
Computer Networks October 19, 2010 63 / 79
Time Frequency Bandwdith Time Division Multiplexing
Computer Networks October 19, 2010 63 / 79
Time Frequency Bandwdith Time Division Multiplexing
Computer Networks October 19, 2010 63 / 79
Time Frequency Bandwdith Time Division Multiplexing
Computer Networks October 19, 2010 63 / 79
Time Frequency Bandwdith Time Division Multiplexing
Computer Networks October 19, 2010 63 / 79
Time Frequency Bandwdith Time Division Multiplexing
Computer Networks October 19, 2010 63 / 79
Time Frequency Bandwdith Time Division Multiplexing
Computer Networks October 19, 2010 63 / 79
Time Frequency Bandwdith Time Division Multiplexing
Computer Networks October 19, 2010 63 / 79
Time Frequency Bandwdith Code Division Multiplexing
Computer Networks October 19, 2010 64 / 79
Time Frequency Bandwdith Code Division Multiplexing
Computer Networks October 19, 2010 64 / 79
Time Frequency Bandwdith Code Division Multiplexing
Computer Networks October 19, 2010 64 / 79
Time Frequency Bandwdith Code Division Multiplexing
Computer Networks October 19, 2010 64 / 79
Time Frequency Bandwdith Code Division Multiplexing
Computer Networks October 19, 2010 64 / 79
Time Frequency Bandwdith Code Division Multiplexing
Computer Networks October 19, 2010 64 / 79
Time Frequency Bandwdith Code Division Multiplexing
Computer Networks October 19, 2010 64 / 79
Time Frequency Bandwdith Code Division Multiplexing
Computer Networks October 19, 2010 64 / 79
Time Frequency Bandwdith Code Division Multiplexing
Computer Networks October 19, 2010 64 / 79
Time Frequency Bandwdith Code Division Multiplexing
Computer Networks October 19, 2010 64 / 79
Time Frequency Bandwdith Code Division Multiplexing
Computer Networks October 19, 2010 64 / 79
Time Frequency Bandwdith Code Division Multiplexing
Computer Networks October 19, 2010 64 / 79
Time Frequency Bandwdith Code Division Multiplexing
Computer Networks October 19, 2010 64 / 79
Time Frequency Bandwdith Code Division Multiplexing
Computer Networks October 19, 2010 64 / 79
Computer Networks October 19, 2010 65 / 79
B
N : the number of bits in the data B : bandwidth (capacity) of the link expressed in bps (bit per second) (also b/s)
B = 64∗8 10∗106 = 512 ∗ 10−7 = 51.2µs
Computer Networks October 19, 2010 66 / 79
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.
S = 1∗103 2∗108 = 0.5 ∗ 10−5 = 0.05µs
Computer Networks October 19, 2010 67 / 79
It includes the time for reading control information It includes the time for looking up the outgoing link
Computer Networks October 19, 2010 68 / 79
106
Computer Networks October 19, 2010 69 / 79
Computer Networks October 19, 2010 70 / 79
Many bits are sent simultaneously using many parallel communication lines Data could be sent byte by byte Used for short distance links
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
Computer Networks October 19, 2010 71 / 79
Synchronization is established at the start of the exchange using Start bits and lost after the reception of the Stop bits
Computer Networks October 19, 2010 72 / 79
Character corruption does not affect previous character and next character Good for applications producing character at irregular intervals (keyboard)
Transmission success depends on the knowledge of Start bits A non negligible proportion of bits are transmitted for control purposes
Low rate
Computer Networks October 19, 2010 73 / 79
Additional line to transport clock signal Automatic Synchronization using coding Block Synchronization
SYN character (ASCII Code 22) is used
Computer Networks October 19, 2010 74 / 79
Good useful bits / transmitted bits ratio High rate
One error affects a whole block Generated characters are stored waiting for block construction
Computer Networks October 19, 2010 75 / 79
Fading/Attenuation
Function of the distance and the frequency of the signal dB/km at different frequencies
Noise Propagation
Maximal rate is limited by this frequency
Sound: 100Hz to 7kHz Telephone: 300Hz to 3400Hz Twisted pair: 300Hz to 3400Hz Video: 4MHz
Computer Networks October 19, 2010 76 / 79
Amplifier: 5km to 6km
Repeater: 2km to 3km
Cat 3(16MHz), Cat 4(20MHz), Cat 5(100MHz)
Computer Networks October 19, 2010 77 / 79
Antenna TV cable
10 000 simultaneous calls
Digital Transmission Repeater: 1km 1 to 2Gbit/s (1km)
Analog Transmission Amplifiers: some kms 300 to 450MHz (100 km)
Computer Networks October 19, 2010 78 / 79
Hundreds of Gbit/s
10s km
Computer Networks October 19, 2010 79 / 79