Computer Networks and The Internet
Computer Networks and The Internet
Computer Networks and The Internet
Introduction
to
Computer Networks and the Internet
Introduction 2-1
Chapter 1: roadmap
Introduction 1-2
Switching sends the data along different routes
Methods
Circuit Packet
Switching Switching
Introduction 2-3
Circuit switching
Circuit switching is when a “Dedicated Channel” needs to be
established before users can speak to each other on a call.
Circuit switching connections are classified as half
duplex or full duplex.
Half duplex communications allocate one channel and full
duplex communications allocate two channels.
Circuit switching is most commonly-used to sustain
TELEPHONE SYSTEMS so that whenever the phone is picked
up the conversation can begin.
Circuit switching is considered to be distinct from packet
switching because it provides a physical path between the
source and destination.
Introduction 2-4
Three phases of Circuit
Switching
As circuit switching is CONNECTION ORIENTED it means
we need to make connection first.
1- Circuit establishment
2- Data Transfer
3- Circuit Disconnection
Introduction 2-5
Pros and Cons of Circuit Switching
PROS CONS
Decreases the amount of Isn’t right for any other type of
delay the user connections.
experiences before and
during a call. channel is reserved for future
conversations.
Consistent bandwidth,
channels Connected oriented.
Correct sequence. Link can’t be used to send any
other data even when free.
If active users exceeds the number
of channels you have available then
calls will fail to take place or will
be dropped in the middle.
Administrators are under pressure
to make sure that channels keep
up.
In addition, even setting up calls
results in delay so the connection
needs to be fully established before
Introduction the conversation can take2-6 place.
Circuit Switching
Network Resource
i.e. Bandwidth
2-7
https://www.youtube.com/watch?v=Cug52cpjM_g
Multiplexing
Generally, a communication channel such as an optical fiber
or coaxial cable can carry only one signal at any moment in
time. This results in wastage of bandwidth.
However, we can overcome this drawback by using a
technique called MULTIPLEXING.
By using the multiplexing technique, we can easily send
multiple signals simultaneously over a communication channel
(medium).
Definition
Multiplexing is a technique which combines multiple signals
into one signal, suitable for transmission over a
communication channel such as coaxial cable or optical fiber.
Introduction 2-8
The multiplexing technique divides the communication channel into several
logical sub-channels.
Each logical sub-channel is dedicated to an individual signal.
Thus, the multiple signals are sent simultaneously over a shared
communication channel (medium).
Multiplexing has-been used for many years in long-distance telephony.
Multiplexing is done by using a device called Multiplexer or MUX.
Introduction 2-9
Time Division Multiplexing (TDM)
Time Division Multiplexing processes information of
different transmitters successively in defined time
segments for transmission over one channel.
In frequency division multiplexing, all signals of
different frequencies are transmitted simultaneously.
But in time division multiplexing, all signals operate
with the same frequency are transmitted at different
times.
.
Introduction 2-10
TDM
Example:
4 users
frequency
time
If a link transmits 8,000 frames per second and each slot consists of 8 bits, what is the
transmission rate of a circuit?
Introduction 2-13
Introduction 2-14
Frequency Division Multiplexing
Introduction 2-15
GUARD BAND
Each logical sub-channel is separated by an unused
bandwidth called Guard Band to prevent overlapping of
signals.
In other words, there exists a frequency gap between two
adjacent signals to prevent signal overlapping.
A guard band is a narrow frequency range that separates
two signal frequencies.
2-16
Circuit switching: FDM versus TDM
FDM (Frequency Division Multiplexing)
Example:
FDM 4 users
Deals with analog signals
frequency
time
Packet Switching
PROS CONS
paths to their destination unsuitable for applications
without the need for a that require minimal latency.
dedicated channel.
If there is too much traffic
With packet switching then packets will be dropped
packets can be resent if in transit.
they don’t reach their
destination.
relies on a range of complex
protocols
Introduction 2-19
Store and Forward technique
Packet Switching uses Store and Forward technique while switching the
packets
while forwarding the packet each hop first store that packet then
forward.
This technique is very beneficial because packets may get discarded at
any hop due to some reason (congestion)
More than one path is possible between a pair of source and destination.
Packets belonging to the same file may or may not travel through the
same path. If there is congestion at some path, packets are allowed to
choose different path possible over existing network.
Packet-Switched networks were designed to overcome the weaknesses of
Circuit-Switched networks since circuit-switched networks were not very
effective for small messages.
Introduction 2-20
For your information
Introduction 2-21
https://www.youtube.com/wat
Introduction 1-22
ch?v=B1tElYnFqL8
Activity -01
Consider an application that transmits data at a
steady rate (for example, the sender generates
an N-bit unit of data every k time units, where k is
small and fixed).
Also, when such an application starts, it will
continue running for a relatively long period of
time.
a. Would a packet-switched network or a circuit-
switched network be more appropriate for this
application? Why
Introduction 2-23
SOLUTION
Introduction 2-24
Numerical Problems
Introduction 2-25
Bandwidth and Transmission
rate
Bandwidth is the measure of HOW MUCH DATA a cable / network can carry at once.
Link capacity, aka link bandwidth
Transmission Rate is the number of bits of data that have been transferred per minute.
Introduction 2-26
Host: sends packets of data
host sending function:
takes application message
breaks into smaller two packets,
L bits each
chunks, known as packets,
of length L bits
transmits packet into 2 1
access network at
transmission rate R R: link transmission rate
host
link transmission rate, aka
Introduction 2-28
SOLUTION
Introduction 2-29
GIVEN:
Solution Data Size = 640,000 bits
= 0.64 Mb
link capacity = R = 1.536 Mbps
Slots = 24 ( it means 24 users)
Transmission rate = 1.536 /24 = 64Kbps
Time Taken by TDM to transmit a file = L /R
= ( 640, 000bits /64Kbps)
= 10 sec
Total Time: Establishment time + transmission time
= 10.5 secs
2-30
Numerical No. 2
Introduction 2-32
Numerical 03
Suppose users share a 3 Mbps link.
Also suppose each user requires 150 Kbps when transmitting,
a. When circuit switching is used, how many users can be
supported?
Introduction 2-33
SOLUTION
Total speed that users share = 3Mbps
Requirement of each user = 150Kbps
1Mbps = 1000 Kbps
Introduction 2-34
3Mbps = 3000 Kbps
Packet-switching: store-and-forward
L bits
per packet
3 2 1
source destination
R bps R bps
Introduction 1-36
Packet Switching: queueing delay, loss
L = 7.5 Mbits
R = 1.5 Mbps
Hint: two-hop transmission delay = 5
sec
How much delay till destination?
Introduction 2-39
Solution
L = 7.5 Mbits
R = 1.5 Mbps
Two-hop transmission delay = 5 sec
We have 3 connections so
Total Delay = L/R * 3
Introduction = 5*3 2-40
= 15sec