Assignment NO 1 CN
Assignment NO 1 CN
b. What are the main components of delay when we use packet switching?
1. Transmission Delay (T_trans): Time taken to push all bits of a packet into
the link. It depends on the packet size and the link's transmission rate.
Ttrans=Packet size (bits)Transmission rate (bits/second)T_{\text{trans}} = \
frac{\text{Packet size (bits)}}{\text{Transmission rate (bits/second)}}Ttrans
=Transmission rate (bits/second)Packet size (bits)
2. Propagation Delay (T_prop): Time it takes for a signal to travel across the
transmission medium from sender to receiver. It depends on the distance
between the sender and receiver and the speed of the signal in the medium.
Tprop=Distance (meters)Propagation speed (meters/second)T_{\text{prop}} =
\frac{\text{Distance (meters)}}{\text{Propagation speed
(meters/second)}}Tprop=Propagation speed (meters/second)Distance (meters)
Transmission Delay refers to the time required to send all bits of a packet into the
network. It depends on the packet's size and the data rate of the link. Larger packets
and slower links lead to higher transmission delays.
Propagation Delay is the time it takes for a signal to travel from the sender to the
receiver. It depends on the distance between the two and the speed of the transmission
medium (e.g., fiber optic or copper wire).
o Formula: Tprop=Distance (meters)Propagation speed (meters/second)T_{\
text{prop}} = \frac{\text{Distance (meters)}}{\text{Propagation speed
(meters/second)}}Tprop=Propagation speed (meters/second)Distance (meters)
Propagation delay is not affected by the length of the packet. It is only dependent on
the physical distance between the sender and receiver and the propagation speed of
the medium.
o Key point: Increasing the packet length increases the transmission delay
(because more bits need to be pushed into the link), but it does not change the
propagation delay.
Problem 2 :
Consider an application that transmits data at a steady rate (e.g., the sender generates an N-bit
unit of data every K time units).
Packet-switched network is more appropriate for this application for the following
reasons:
b. Suppose a packet-switched network is used and the only traffic in this network comes
from this application as described above. Furthermore, assume that the sum of the
application data rates is less than the capacities of each and every link. Is some form of
congestion control needed? Why?
No, congestion control is not needed in this case. Since the total data rate from the
application is less than the capacity of each link, there is no risk of congestion. The
network has sufficient capacity to handle all the traffic without exceeding the
available bandwidth.
o Congestion control typically becomes necessary when the traffic load
exceeds the network's capacity, causing delays, packet loss, and potential
network overload. Since there’s no chance of congestion in this scenario,
congestion control mechanisms are not needed.
Problem 3 :
a. Consider the difference between circuit switching and packet switching. Assume the
link’s rate is 2 Mbps and users are generating data at a rate of 100 Kbps when busy.
Users are busy only 1% of time.
o Bandwidth Efficiency: Even though users are only active 1% of the time, the
reserved bandwidth for each user is wasted during idle periods.
Packet Switching: Data is broken into packets and transmitted independently over
the network. Users share the network bandwidth, and packets from different users
interleave based on available bandwidth.
b. What is the maximum number of users that a circuit switching architecture can
support simultaneously?
To calculate the maximum number of users that can be supported by the link:
Total available bandwidthBandwidth per user=2 Mbps100 Kbps=2,000 Kbps100
Kbps=20 users\frac{\text{Total available bandwidth}}{\text{Bandwidth per user}}
= \frac{2 \, \text{Mbps}}{100 \, \text{Kbps}} = \frac{2,000 \, \text{Kbps}}{100 \, \
text{Kbps}} = 20 \, \text{users}Bandwidth per userTotal available bandwidth
=100Kbps2Mbps=100Kbps2,000Kbps=20users Therefore, 20 users can be supported
simultaneously in a circuit-switched network.
c. Write down the formula to calculate the probability of having more than 5 active
users, assuming that we have 20 users in total.
To find the probability of having more than 5 active users: P(X>5)=1−P(X≤5)P(X >
5) = 1 - P(X \leq 5)P(X>5)=1−P(X≤5) You would sum the probabilities for X=0,1,2,
…,5X = 0, 1, 2, \dots, 5X=0,1,2,…,5, and then subtract that value from 1.
d. Explain the effects of having more users in a packet switching architecture with the
above characteristics.
Increased user count in packet switching: As more users join the network, the
following effects can be expected:
1. Increased contention for resources: More users lead to more packets being
sent over the network, which can cause congestion and increased delays.
2. Increased queuing delay: More packets in the network mean more packets
waiting in buffers at routers and switches, which could increase queuing
delay.
Overall, packet-switched networks can handle more users, but the quality of service may
degrade as congestion increases due to higher demand.