Computer Network Module 1
Computer Network Module 1
(BCSE 3306)
Last Updated 14th Jan 07
Lecture Notes
Module I
Ajit K Nayak
ajit@silicon.ac.in
Department of Computer Science Engineering &
Application
Out Line of Module I
Overview of Data Communications and Networking
Physical Layer
Digital Transmission
Analog Transmission
Multiplexing
Transmission Media
Circuit switching and Telephone Network
Half-duplex: bi-directional
but not at the same time
Full-duplex: bi-directional
and simultaneously. Computer Networking / Module I / AKN / 7
Networks & Distributed processing
Interconnection of ‘Intelligent devices’ is called a
‘computer network’
In ‘Distributed processing’ a task is divided and
submitted among multiple computers using network
Network Criteria: to design an effective and efficient
network the most important criteria are
‘Performance’ depends on
No of users: large no of users may slow down the ‘response time’
due to heavy traffic
Type of transmission medium: defines the speed at which the data
can travel (speed of light is the upper bound)
Hardware: A high-speed computer with greater storage provides
better performance
Software: efficient mechanisms to transform raw data into
transmittable signal, to route the signals, to ensure error-free
Computer Networking / Module I / AKN / 8
delivery etc.
Network Criteria
Reliability depends on
Frequency of failure: all networks fail occasionally
Recovery time: how long does it takes to restore
the service
Catastrophe: networks should be protected from
ETC.
History of Internet
- read yourself
(page 15, sec 1.3)
section
Timing: refers to two characteristics. i. When data
I like J'aime
Message Philosopher
rabbits bien les
lapins
3 3
Information
L: Dutch for the remote Translator L: Dutch
Ik vind translator Ik vind
konijnen konijnen
2 2
leuk leuk
Information
Fax #--- for the remote Fax #---
L: Dutch secretary Secretary L: Dutch
Ik vind Ik vind
1 1
konijnen konijnen
leuk leuk
• Signals
• Digital Transmission
• Analog Transmission
• Multiplexing
• Transmission Media
Aperiodic Signal
Periodic Signal
Computer Networking / Module I / AKN / 55
Analog Signals
The sine wave is the most fundamental form of
a periodic signal
Represented as s(t)=Asin(2πft+Φ)
Characterstics
Amplitude: intensity of signal at any given time
Frequency: no of cycles/periods in one second,
measured in Hz
Frequency = 1/Period
Phase: describes the position of the waveform
relative to time zero
A complete cycle is 360o = 2π
Computer Networking / Module I / AKN / 56
Amplitude Period and frequency
Solution
The answer is definitely no. Although the signal can have the
same bandwidth (1000 Hz), the range does not overlap. The
medium can only pass the frequencies between 3000 and 4000
Hz; the signal is totally lost.
Computer Networking / Module I / AKN / 63
Digital Signals
Digital signals can be better described by two terms
Bit interval: time required to send a single bit
Bit rate: number of bit intervals in one second
A digital signal is a composite signal having an infinite
number of frequencies i.e. infinite bandwidth
The digital BW is bits per sec (bps)
Solution
Throughput: number of
bits passed per second at a
given point
Wavelength: is the
distance a signal can travel in
λ=c/f
Line coding
Block Coding
Sampling
Transmission Mode
Solution
At 1 Kbps:
1000 bits sent Î1001 bits receivedÎ1 extra bps
At 1 Mbps:
1,000,000 bits sent Î1,001,000 bits receivedÎ1000 extra bps
Computer Networking / Module I / AKN / 78
Line Coding Schemes
Note:
Note:
Note:
Note:
Note:
Note:
Note:
Note:
-1
-3
Steps in Transformation
¾ Division
¾ Substitution
¾ Line Coding
Note:
Note:
Solution
The human voice normally contains frequencies from 0 to
4000 Hz.
Sampling rate = 4000 x 2 = 8000 samples/s
More speed
Cost is high⇒ restricted to short distance
Computer Networking / Module I / AKN / 116
Serial Transmission
One bit follows another using same line
Note:
In synchronous transmission,
we send bits one after another without
start/stop bits or gaps.
It is the responsibility of the receiver to
group the bits.
Computer Networking / Module I / AKN / 121
Synchronous Transmission
More speed
Synchronization is necessary
Digital-to-Analog Conversion
Amplitude Shift Keying (ASK)
Frequency Shift Keying (FSK)
Phase Shift Keying (PSK)
Quadrature Amplitude Modulation
Bit/Baud Comparison
Solution
Because the transmission is full duplex, only 6000 Hz is
allocated for each direction.
BW = baud rate + fc1 − fc0
Baud rate = BW − (fc1 − fc0 ) = 6000 − 2000 = 4000
But because the baud rate is the same as the bit rate, the bit
rate is 4000 bps.
Computer Networking / Module I / AKN / 130
Phase Shift Keying
Phase of carrier signal varies
to represent a binary 1
(180o)or 0 (0o) also called 2-
PSK or binary PSK
Avoids problems of noise and
bandwidth
Can be represented in a
constallation diagram or
phase-state diagram
BW=same as of ASK
More variations in phase may
be added to represent more
than one bit
Computer Networking / Module I / AKN / 131
Other variations of PSK
4-PSK / Q-PSK, 2 bits per baud
Note:
56 K Modems
• signal not affected by
quantization noise and not
limited by shannon capacity
• sampling is done at a rate
of 8000 samples/sec with 8 bits
per sample.
• One bit is used for control thus
speed becomes 8000*7=56 kbps Computer Networking / Module I / AKN / 141
Modulation of Analog Signals
• Representation of analog information by an analog signal
• i.e. shifting the center frequency of baseband signal up to
the radio carrier
• It is needed because
• To reduce Antenna length (length α 1/f)
• helps in frequency division multiplexing
• To support medium characteristics
Methods:
Amplitude Modulation (AM)
Frequency Modulation (FM)
Phase Modulation (PM)
Computer Networking / Module I / AKN / 142
Amplitude modulation
• The carrier signal is modulated so that
its amplitude varies with the changing
amplitude of modulating signal
• Phase and frequency remains the same
• The modulating signal becomes an
envelope to the carrier
• The bandwidth of an AM signal is twice
the bandwidth of the modulating signal
• BWt = 2 × BWm
• BWt is total bandwidth
• BWm is bandwidth of modulating signal
• Multiplexing
• Transmission Media
• Switching
t
• Carrier frequencies are separated by sufficient BW to
accommodate modulated signal
•These BW ranges are channels through which the various
signal travel
• Channels must be separated by strips of unused BWs
(called Guard Bands) to prevent signals from overlapping
• Carrier frequencies must not interfere with the original
signals
Computer Networking / Module I / AKN / 149
Example 1
Assume that a voice channel occupies a bandwidth of 4 KHz. We need to
combine three voice channels into a link with a bandwidth of 12 KHz,
from 20 to 32 KHz. Show the configuration using the frequency domain
without the use of guard bands.
Solution
Shift (modulate)
each of the three
voice channels to
a different
bandwidth, as
shown in Figure
5 x 100 + 4 x 10
= 540 KHz
as shown in Figure
Solution
1. The duration of 1 bit is 1/1 Kbps, or 0.001 s (1 ms).
2. The rate of the link is 4 times the rate of connection, i.e. 4
Kbps.
3. The duration of each time slot is 1/4 th of the bit duration
before multiplexing i.e. 1/4 ms or 250 µs.
or inverse of data rate i.e. 1/4 Kbps = 250 ms.
4. The duration of a frame is same as duration of each unit,
i.e. 1 ms.
or 4 times the bit duration i.e. 4 * 250
Computer ms = 1ms
Networking / Module I / AKN / 157
Example
Four channels are multiplexed using TDM. If each channel sends 100
bytes/s and we multiplex 1 byte per channel, show the frame traveling on
the link, the size of the frame, the duration of a frame, the frame rate, and
the bit rate for the link.
Solution
Solution
Rate Voice
E Line
(Mbps) Channels
E-1 2.048 30
• Inverse multiplexing takes data from high speed line and breaks
it into portions that can be sent across several lower speed lines
• If an organisation wants to send data, audio and video, each
requires a different bandwidth
• using an agreement called Bandwidth on Demand
• The organisation can use any of the channel whenever and
however it needs them
Core: glass or plastic, cladding: covering with less dense glass or plastic
Computer Networking / Module I / AKN / 177
Propagation modes
Current technology allows two modes of propagating
light along optical channels
Light weight
Tapping is difficult
Disadvantages
Installation and Maintenance
Cost
Fast enough for interactive Fast enough for interactive Fast enough for interactive
Messages are not stored Packets may be stored until Packets may be stored until
transmitted delivered
The path is established for Route established for each Route established for entire
entire conversation packet conversation
Call set-up delay, transmission Packet transmission delay Call setup delay, packet
delay transmission delay
Busy signal if called party busy Sender may be notified if Sender notified of connection
packet not delivered denial
Overload may block call setup; Overload increases packet delay Overload may block call set-up;
no delay for established calls increases packet delay
Usually no speed or code Speed and code conversion Speed and code conversion
conversion
Fixed Bandwidth Dynamic use of bandwidth Dynamic use of bandwidth
No overhead bits after call Overhead bits in each Overhead bits in each
setup packet packet
Computer Networking / Module I / AKN / 204
End of Module I