Introduction To Computer Networks
Introduction To Computer Networks
Introduction to Computer
Module 1 Networks
➢ The packet switch must receive the entire packet before it can start to transmit the
first bit of the packet onto the outbound link. Instead it must store the packets' bits.
➢ Suppose the source is transmitting 3 packets of equal length of L bits and the link
has a transmission rate of R bits/sec
➢ Until the entire bits of packet #1 will reaches at the router, the router will not begin
transmission. So, the time required for the packet #1 to reach the destination is
(L/R+L/R)secs i.e. 2L/R secs.
Store-and-Forward
➢ Now for reaching all the three packets for reaching the destination is (3L/R+L/R)
secs.
➢ Here we have considered that the router has only one incoming and out going link.
➢ Now for sending one packet from source to destination over a path consists of N
links (means N-1 routers have to crossed) each of transmission rate of R bits/sec.
➢ Then the total end to end delay is
𝑳
𝒅𝒆𝒏𝒅−𝒕𝒐−𝒆𝒏𝒅 = 𝑵
𝑹
Queuing delay and Packet loss
➢ For each attached link packet switch has an output buffer (also known as output
queue) which stores packet which the router is about to send into that link.
➢ This queueing occurs when the arrival rate on the link exceeds the trasmmission
rate of the link for a period of time.
➢ Two things happens in such situations:
➢ Packet will be queued, wait to be transmitted on the link
➢ Packets can be dropped (lost) if memory (buffer) fills
Four source of Packet delay
➢ A packet starts in a host (the source e.g. A or B), passes through a series of routers,
ends its journey in another host (destination e.g. C or D). As packet travels from a
node (host or router) to the subsequent node (host or router) along this path, suffers
from several types of delay.
𝒅𝒏𝒐𝒅𝒂𝒍 = 𝒅𝒑𝒓𝒐𝒄 + 𝒅𝒒𝒖𝒆𝒖𝒆 + 𝒅𝒕𝒓𝒂𝒏𝒔 + 𝒅𝒑𝒓𝒐𝒑
Processing Delay (𝒅𝒑𝒓𝒐𝒄 ) Processing delay in high speed routers are typically on the order of
microseconds or less.
Transmission Delay (𝒅𝒕𝒓𝒂𝒏𝒔 ) If the length f packet is L bits and the transmission rate of the
link from router A to B is R bits/sec then the transmission delay is
𝐿
𝑑𝑡𝑟𝑎𝑛𝑠 = 𝑠𝑒𝑐
𝑅
It is the amount of delay or time required to push all the bits of a packet into the link.
It is order of milisecs or microsecs.
Propagation Delay (𝒅𝒑𝒓𝒐𝒑 )
The propagation delay is given by
➢ Let the tollbooth services the one car at 12 secs. On the other way in 60 secs it will be able
to service all the 10 cars.
➢ So the transmission delay of the caravan
➢ So finally the time from when the caravan is stored infront of a tollbooth until the caravan is
stored infront of the next tollbooth is the sum of the
𝑑𝑡𝑟𝑎𝑛𝑠 + 𝑑𝑝𝑟𝑜𝑝 = 60 + 2 = 62𝑚𝑖𝑛𝑠
Caravan Analogy
La/R~𝟎 La/R> 𝟏
Queuing Delay and Packet Loss
Packet Loss:
➢ Queue (buffer) has finite capacity
➢ If the queue is full, then any new packet arriving at the router will be lost or dropped.
➢ Lost packet may be retransmitted
➢ The fraction of lost packet increasing as the traffic intensity increases.
Throughput
➢ The rate (bits/sec) at which bits transferred from sender to receiver.
➢ suppose the rate of the link between server and router is 𝑅𝑠 𝑏𝑖𝑡𝑠/𝑠𝑒𝑐, and the rate of the link
between the router and the client is 𝑅𝑐 𝑏𝑖𝑡𝑠/𝑠𝑒𝑐.
➢ Two cases and occur 𝑅𝑠 < 𝑅𝑐 and 𝑅𝑠 > 𝑅𝑐
Throughput contd..
➢ 𝑅𝑠 < 𝑅𝑐 : the bits pumped by the server will flow right through the router and arrive at the
client at a rate of 𝑅𝑠 bits/sec, giving a throughput of 𝑅𝑠 bps.
➢ 𝑅𝑠 > 𝑅𝑐 : the router will not be able to forward bits as quickly as it receives them from the
server. In this case bits will only leave the router at a rate of 𝑅𝑐 bits/sec, giving a throughput
of 𝑅𝑐 bps.
➢ Because of this condition the backlog of bits at the router waiting for transmission to the
client will grow and grow –which is a most undesirable condition
Throughput= 𝒎𝒊𝒏 𝑹𝒔 , 𝑹𝒄
If there are N no. of links and transmission rates 𝒐𝒇 𝑹𝟏 , … . . 𝑹𝑵 , then the throughput will be
Throughput= 𝒎𝒊𝒏 𝑹𝟏 , 𝑹𝟐 , 𝑹𝟑 … … … 𝑹𝑵
Throughput contd..
➢ Suppose there are 10 downloads from the
server to client and these are the only traffic
in the network.
➢ All server access link have a rate of 𝑅𝑠 , and
all client access links a have a rate of 𝑅𝑐
bps.
➢ The common link has a transmission rate of
R bps.
➢ Suppose 𝑹𝒔 = 2 Mbps, 𝑹𝒄 = 1 Mbps and R
= 5 Mbps. The R will be equally shared
among the 10 links 5Mbps/10 = 500 Kbps.
Throughput= 𝟓𝟎𝟎 𝑲𝒃𝒑𝒔.