Winter Semester 2023-24_CSE3003_ETH_AP2023246000842_2024-01-25_Reference-Material-I.pdf

MohanGolla 34 views 102 slides Aug 15, 2024
Slide 1
Slide 1 of 102
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45
Slide 46
46
Slide 47
47
Slide 48
48
Slide 49
49
Slide 50
50
Slide 51
51
Slide 52
52
Slide 53
53
Slide 54
54
Slide 55
55
Slide 56
56
Slide 57
57
Slide 58
58
Slide 59
59
Slide 60
60
Slide 61
61
Slide 62
62
Slide 63
63
Slide 64
64
Slide 65
65
Slide 66
66
Slide 67
67
Slide 68
68
Slide 69
69
Slide 70
70
Slide 71
71
Slide 72
72
Slide 73
73
Slide 74
74
Slide 75
75
Slide 76
76
Slide 77
77
Slide 78
78
Slide 79
79
Slide 80
80
Slide 81
81
Slide 82
82
Slide 83
83
Slide 84
84
Slide 85
85
Slide 86
86
Slide 87
87
Slide 88
88
Slide 89
89
Slide 90
90
Slide 91
91
Slide 92
92
Slide 93
93
Slide 94
94
Slide 95
95
Slide 96
96
Slide 97
97
Slide 98
98
Slide 99
99
Slide 100
100
Slide 101
101
Slide 102
102

About This Presentation

mm


Slide Content

Dr Sunil Kumar Singh
Assistant Professor
School -SCOPE
VIT-AP Amaravati
[email protected]
Cabin -AB2 (124D)
Fundamentals
of
Computer Networks
Course Code: CSE3001

Contents
•Guided Media and Unguided Media
•Analog and digital communication
•Encoding mechanisms
•Packet Switching
•Circuit Switching

Transmission Media

Twisted Pair

Categories of unshielded twisted-pair
cables
CategoryBandwidth Data Rate Digital/Analog Use
1 very low < 100 kbps Analog Telephone
2 < 2 MHz 2 Mbps Analog/digital T-1 lines
3 16 MHz 10 Mbps Digital LANs
4 20 MHz 20 Mbps Digital LANs
5 100 MHz 100 Mbps Digital LANs
6 (draft)200 MHz 200 Mbps Digital LANs
7 (draft)600 MHz 600 Mbps Digital LANs

Synchronous and Asynchronous Transmission

Coaxial cable

Coaxial cable

LAN, MAN & WAN

Bending of light ray

Fiber construction

Propagation Modes

Modes of propagation

Frequency, Spectrum and Bandwidth
Time domain concepts
•Continuous signal
•Various in a smooth way over time
•Discrete signal
•Maintains a constant level then changes to
another constant level
•Periodic signal
•Pattern repeated over time
•Aperiodic signal
•Pattern not repeated over time

Continuous & Discrete Signals

Periodic & Aperiodic Signals

Sine Wave
•Peak Amplitude (A)
maximum strength of signal
volts
•Frequency (f)
Rate of change of signal
Hertz (Hz) or cycles per second
Period = time for one repetition (T)
T = 1/f
•Phase ()
Relative position in time

Varying Sine Waves

Wavelength
•Distance occupied by one cycle
•Distance between two points of corresponding phase in
two consecutive cycles
•
•Assuming signal velocity v
•= vT
•f = v
•c = 3*10
8
ms
-1
(speed of light in free space)

Frequency Domain Concepts
•Spectrum
•range of frequencies contained in signal
•Absolute bandwidth
•width of spectrum
•Effective bandwidth
•Often just bandwidth
•Narrow band of frequencies containing most of the
energy
•DC Component : Component of zero frequency
Whenthevoltagelevelinadigitalsignalisconstantforawhile,the
spectrumcreatesverylowfrequencies,calledDCcomponents,that
presentproblemsforasystemthatcannotpasslowfrequencies.

Bandwidth, Throughput and Data Rate
•WhatisBandwidth?
Bandwidthisthemeasurementoftheabilityofanelectronic
communicationsdeviceorsystemtosendandreceiveinformation.
•WhatisThroughput?
Throughputistheamountofdatathatentersandgoesthrougha
system.
•WhatisDataRate?
Datarateisthespeedatwhichdataistransferredbetweentwo
devices,measuredinmegabitspersecond(Mbpsormbps).

Analog and Digital Data Transmission
•Data
Entities that convey meaning
•Signals
Electric or electromagnetic representations of data
•Transmission
Communication of data by propagation and
processing of signals

Data
•Analog
•Continuous values within some interval
•e.g. sound, video
•Digital
•Discrete values
•e.g. text, integers

Analog and Digital Signals

Analog Signals Carrying Analog
and Digital Data

Digital Signals Carrying Analog
and Digital Data

Analog Transmission
•Analog signal transmitted without regard to
content
•May be analog or digital data
•Attenuated over distance
•Use amplifiers to boost signal
•Also amplifies noise

Digital Transmission
•Concerned with content
•Integrity endangered by noise, attenuation etc.
•Repeaters used
•Repeater receives signal
•Extracts bit pattern
•Retransmits
•Attenuation is overcome
•Noise is not amplified

Advantages of Digital
Transmission
•Digital technology
Low cost LSI/VLSI technology
•Data integrity
Longer distances over lower quality lines
•Capacity utilization
High bandwidth links economical
High degree of multiplexing easier with digital
techniques
•Security & Privacy
Encryption
•Integration
Can treat analog and digital data similarly

Transmission Impairments
•Signal received may differ from signal
transmitted
•Analog -degradation of signal quality
•Digital -bit errors 0101-1101
•Caused by
•Attenuation
•Delay distortion
•Noise

Attenuation

Delay Distortion

Noise
•Additional signals inserted between transmitter and receiver
•Thermal
•Due to thermal agitation of electrons
•Uniformly distributed
•White noise
•Intermodulation
•Signals that are the sum and difference of original frequencies
sharing a medium
•Crosstalk : A signal from one line is picked up by another
•Impulse : Irregular pulses or spikes
• e.g. External electromagnetic interference
• Short duration
• High amplitude

Modem

Various Encoding Techniques

Digital Data, Digital Signal
•Digital signal
Discrete, discontinuous voltage pulses
Each pulse is a signal element
Binary data encoded into signal elements

Important Characterstics
•No. of Signal levels
•Bit rate v/s Baud rate
•DC Components
•Signal Spectrum
•Noise Immunity
•Error detection
•Synchronization
•Cost of Implementation

C=2B logM
C=Capacity of
channel
B= Bandwidth
M = No. of
voltage level

Bit rate v/s Baud rate

Comparison of Encoding Schemes (1)
•Signal Spectrum
Lack of high frequencies reduces required bandwidth
Lack of dc component allows ac coupling via transformer,
providing isolation
Concentrate power in the middle of the bandwidth
•Clocking
Synchronizing transmitter and receiver
External clock
Sync mechanism based on signal

Comparison of Encoding Schemes (2)
•Error detection
Can be built in to signal encoding
•Signal interference and noise immunity
Some codes are better than others
•Cost and complexity
Higher signal rate (& thus data rate) lead to
higher costs
Some codes require signal rate greater than data
rate

Encoding Schemes

Unipolar Encoding Schemes

Unipolar Characteristics

Nonreturn to Zero-Level (NRZ-L)
•Two different voltages for 0 and 1 bits
•Voltage constant during bit interval
no transition I.e. no return to zero voltage
•e.g. Absence of voltage for zero, constant
positive voltage for one
•More often, negative voltage for one value
and positive for the other
•This is NRZ-L

Nonreturn to Zero Inverted (NRZ-I)
Nonreturn to zero inverted on ones
Constant voltage pulse for duration of bit
Data encoded as presence or absence of signal
transition at beginning of bit time
Transition (low to high or high to low) denotes a
binary 1
No transition denotes binary 0
An example of differential encoding

NRZ

NRZ pros and cons
•Pros
•Two level
•Make good use of bandwidth
•Cons
•dc component
•Lack of synchronization
capability
•Used for magnetic recording
•Not often used for signal
transmission

RZ Encoding Scheme

RZ Characterstics

Manchester(Biphase) Encoding

Differential Manchester
(Biphase) Encoding

Characteristic of Biphase
Encoding

Biphase
•Manchester
•Transition in middle of each bit period
•Transition serves as clock and data
•Low to high represents one
•High to low represents zero
•Used by IEEE 802.3
•Differential Manchester
•Midbit transition is clocking only
•Transition at start of a bit period represents zero
•No transition at start of a bit period represents one
•Note: this is a differential encoding scheme
•Used by IEEE 802.5

Biphase Pros and Cons
•Cons
•At least one transition per bit time and possibly two
•Maximum modulation rate is twice NRZ
•Requires more bandwidth
•Pros
•Synchronization on mid bit transition (self clocking)
•No dc component
•Error detection
•Absence of expected transition

Types of Bipolar encoding

Multilevel Binary
•Use more than two levels
•Bipolar-AMI (Amplitude Mark Inversion)
•zero represented by no line signal
•one represented by positive or negative pulse
•one pulses alternate in polarity
•No loss of sync if a long string of ones (zeros
still a problem)
•No net dc component
•Lower bandwidth
•Easy error detection

Pseudoternary
•One represented by absence of line signal
•Zero represented by alternating positive and
negative
•No advantage or disadvantage over bipolar-
AMI

Bipolar-AMI and Pseudoternary

Trade Off for Multilevel Binary
•Not as efficient as NRZ
•Each signal element only represents one bit
•In a 3 level system could represent log
23 = 1.58 bits
•Receiver must distinguish between three levels
(+A, -A, 0)
•Requires approx. 3dB more signal power for same probability
of bit error

2B1Q Multilevel Encoding

Switching
•Longdistancetransmissionbetweenstations(called
“enddevices”)istypicallydoneoveranetworkof
switchingnodes.
•Switchingnodesdonotconcernwithcontentofdata.
Theirpurposeistoprovideaswitchingfacilitythatwill
movethedatafromnodetonodeuntiltheyreachtheir
destination(theenddevice).
•Acollectionofnodesandconnectionsformsa
communicationsnetwork.
•Inaswitchedcommunicationsnetwork,dataentering
thenetworkfromastationareroutedtothedestination
bybeingswitchedfromnodetonode.

Types of Switching

Overview
•Networksareusedtointerconnectmanydevices.
•WehavecheckedwithLocalAreaNetworks.
•Now,wideareanetworks
•Sincetheinventionofthetelephone,circuitswitchinghas
beenthedominanttechnologyforvoicecommunications.
•Since1970,packetswitchinghasevolvedsubstantiallyfor
digitaldatacommunications.Itwasdesignedtoprovidea
moreefficientfacilitythancircuitswitchingforburstydata
traffic.
•Twotypesofpacketswitching:
•Datagram(suchastoday’sInternet)
•Virtualcircuit(suchasFrameRelay,ATM)

Simple SwitchingNetwork

Switching Nodes
•Nodesmayconnecttoothernodes,ortosome
stations.
•Networkisusuallypartiallyconnected
•However,someredundantconnectionsare
desirableforreliability
•Twodifferentswitchingtechnologies
•Circuitswitching
•Packetswitching

Circuit Switching
•Circuit switching:
There is a dedicated communication path between two stations
(end-to-end)
The path is a connected sequence of links between network
nodes. On each physical link, a logical channel is dedicated to
the connection.
•Communication via circuit switching has three phases:
Circuit establishment (link by link)
▪Routing & resource allocation (FDM or TDM)
Data transfer
Circuit disconnect
▪Deallocate the dedicated resources
•The switches must know how to find the route to the
destination and how to allocate bandwidth (channel) to
establish a connection.

Circuit SwitchingProperties
•Inefficiency
Channel capacity is dedicated for the whole duration of a
connection
If no data, capacity is wasted
•Delay
Long initial delay: circuit establishment takes time
Low data delay: after the circuit establishment, information is
transmitted at a fixed data rate with no delay other than the
propagation delay. The delay at each node is negligible.
•Developed for voice traffic (public telephone network)
but can also applied to data traffic.
For voice connections, the resulting circuit will enjoy a high
percentage of utilization because most of the time one party or
the other is talking.
But how about data connections?

Public Circuit Switched Network
Subscribers: the devices that attach to the network.
Subscriber loop: the link between the subscriber and the network.
Exchanges: the switching centers in the network.
End office: the switching center that directly supports subscribers.
Trunks: the branches between exchanges. They carry multiple voice-frequency
circuits using either FDM or synchronous TDM.

Packet Switching Principles
•Problem of circuit switching
designed for voiceservice
Resources dedicated to a particular call
For data transmission, much of the time the
connection is idle(say, web browsing)
Data rate is fixed
▪Both ends must operate at the same rate during
the entire period of connection
•Packet switching is designed to address
these problems.

Basic Operation
•Data are transmitted in shortpackets
Typically at the order of 1000 bytes
Longer messages are split into series of packets
Each packet contains a portion of user data plus some control
info
•Control infocontains at least
Routing (addressing) info, so as to be routed to the intended
destination
Recall the content of an IP header!
•store and forward
On each switching node, packets are received, stored briefly
(buffered) and passedon to the next node.

Use of Packets

Advantagesof Packet Switching
•Line efficiency
Single node-to-node link can be dynamically shared by many
packets over time
Packets are queued up and transmitted as fast as possible
•Data rate conversion
Each station connects to the local node at its own speed
•In circuit-switching, a connection could be blocked if
there lacks free resources. On a packet-switching
network, even with heavy traffic, packets are still
accepted, by delivery delay increases.
•Priorities can be used
On each node, packets with higher priority can beforwarded
first.They will experience less delay than lower-priority packets.

Packet Switching Technique
•Astationbreakslongmessageintopackets
•Packetsaresentouttothenetwork
sequentially,oneatatime
•Howwillthenetworkhandlethisstreamof
packetsasitattemptstoroutethem
throughthenetworkanddeliverthemto
theintendeddestination?
Twoapproaches
▪Datagramapproach
▪Virtualcircuitapproach

Datagram
•Eachpacketistreatedindependently,withno
referencetopacketsthathavegonebefore.
Eachnodechoosesthenextnodeonapacket’s
path.
•Packetscantakeanypossibleroute.
•Packetsmayarriveatthereceiveroutoforder.
•Packetsmaygomissing.
•Itisuptothereceivertore-orderpacketsand
recoverfrommissingpackets.
•Example:Internet

Datagram

Virtual Circuit
•Invirtualcircuit,apreplannedrouteis
establishedbeforeanypacketsaresent,then
allpacketsfollowthesameroute.
•Eachpacketcontainsavirtualcircuit
identifierinsteadofdestinationaddress,and
eachnodeonthepreestablishedrouteknows
wheretoforwardsuchpackets.
Thenodeneednotmakearoutingdecisionfor
eachpacket.
•Example:X.25,FrameRelay,ATM

Virtual
Circuit
•Aroutebetweenstations
issetuppriortodata
transfer.
•Allthedatapacketsthen
followthesameroute.
•Butthereisnodedicated
resourcesreservedfor
thevirtualcircuit!
Packetsneedtobe
stored-and-forwarded.

Virtual Circuits v Datagram
•Virtual circuits
Network can provide sequencing (packets arrive at the same
order) and error control (retransmission between two nodes).
Packets are forwarded more quickly
▪Based on the virtual circuit identifier
▪No routing decisions to make
Less reliable
▪If a node fails, all virtual circuits that pass through that nodefail.
•Datagram
No call setup phase
▪Good for bursty data, such as Web applications
More flexible
▪If a node fails, packets may find an alternate route
▪Routing can be used to avoid congested parts of the network

Establishment of Virtual Circuits

Comparison of
communication
switching
techniques

Delay in Transmission medium
1. Transmission Delay:
The time taken to transmit a packet from the host to the
transmission medium is called Transmission delay.
2. Propagation delay:
After the packet is transmitted to the transmission medium, it has to go
through the medium to reach the destination. Hence the time taken by
the last bit of the packet to reach the destination is called propagation
delay.
Let B bps is the bandwidth and L bit is the size of the data then transmission delay is,
Tt = L/B

Delay in Transmission medium
Q.1 For a 10Mbps Ethernet link, if the length of the packet
is 32bits, the transmission delay is ____________ (in
microseconds)
Ans: 3.2 microseconds.
Q.2. Find the propagation delay if a packet is sent through an
optical fiber and the distance between source and destination is
5000 km.
T
prop= D/S = 5×10
6
/ 2.1×10
8
= 0.0238 seconds
= 23.8 milliseconds.

Error Rate
•Data transmitted at 1.036 Mbps for 20
hours and received 1024 errors. What is
the bit error rate?
•Ans:
Error rateinMbps (A) = Number of error
bits/20*60*60 = 512/72000 = 0.0071
Bandwidth(B) = 1.036 Mbps
ErrorRate=A/B=0.0071/1.036 = 0.00686
Tags