CN Problem Solutions
CN Problem Solutions
with 10 routers each having a queuing time of 2 µs and a processing time of 1 µs. The length
of the link is 2000 Km. The speed of light inside the link is 2 x 108 m/s. The link has a bandwidth
of 5 Mbps. Which component of the total delay is dominant? Which one is negligible?
Solution:
Propagation time = distance / propagation speed
= 1010.03 ms = 1.01003 s / 1 s
The propagation speed is 2*108 m/s. Calculate the length of bits for bandwidth of a) 1 Mbps
b) 10 Mbps c) 100 Mbps.
Solution:
propagation speed
length of bits =
bandwidth
a) For 1 Mbps
2 x 108 𝑚/𝑠 2 x 108
length of bits = 1 x 106 𝑏𝑝𝑠 = 1 x 106 = 200 𝑚
b) For 10 Mbps
2 x 108 𝑚/𝑠 2 x 108
length of bits = 10 x 106 𝑏𝑝𝑠 = 10 x 106 = 20 𝑚
Calculate the number of bits can fit on a link with 2 ms delay and bandwidth of 1 Mbps, 10
Mbps and 100 Mbps
Solution:
The formula to calculate the number of bits that can be transmitted over a link, given the
round-trip time (RTT) or delay (D) and the bandwidth (B), is:
Number of bits=B×D
where:
B is the bandwidth in bits per second (bps),
D is the round-trip time or delay in seconds.
c) For a bandwidth of 100 Mbps (100,000,000 bps) and a delay of 2 ms (0.002 seconds):
Number of bits = 100,000,000 × 0.002 = 200,000 bits
So, the number of bits that can fit on a link with a 2 ms delay for bandwidths of 1 Mbps, 10
Mbps, and 100 Mbps are 2000 bits, 20,000 bits, and 200,000 bits, respectively.
Consider a bus LAN with several equally spaced stations with a data rate of 9 Mbps and a bus
length of 1 km. What is the mean time to send a frame of 500 bits to another station, measured
from the beginning of transmission to the end of reception? Assume a propagation speed of
150 m/s. If two stations begin to monitor and transmit at the same time, how long does it need
to wait before an interference is noticed?
Solution:
To calculate the mean time to send a frame from the beginning of transmission to the end of
reception, we can use the formula:
The mean time to send a frame also includes the propagation time along the length of the bus.
The formula for propagation time (tprop) is:
The total time (T) is the sum of the transmission time and the propagation time:
Given that the data rate (Data rate) is 9Mbps, the frame size is 500bits, the bus length is
1 km, and the propagation speed is 150m/s, we can plug in these values to find T.
tprop=1000 / 150 s
Now, calculate T:
T ≈ 5.6×10-5+2 × (1000/150) ≈ 0.0133s
So, the mean time to send a frame from the beginning of transmission to the end of reception
is approximately 0.0133 seconds.
To find out how long it takes for an interference to be noticed when two stations begin to
transmit at the same time, we need to consider the round-trip time (2×tprop):
So, the time it takes for an interference to be noticed is approximately 0.0267 seconds.
Solution:
To design subnets for the given block of addresses (14.24.74.0/24) with the
requirement of three subnets (10 addresses, 60 addresses, and 120 addresses), you
can use the following approach. We'll divide the original /24 block into three subnets
of sizes 128 (2^7), 64 (2^6), and 32 (2^5) addresses respectively to accommodate
the requested sizes.
Solution:
Step 1 - Multiply the message M(x) by x3, where 3 is the number of bits in the CRC
as given by the degree of P(x).
Observe that if R(x) were in place of the appended zeros, the remainder would
become 000.
Step 3 - Add the remainder CRC(x) to the product M(x) x3 to give the code message
polynomial C(x):
Put the remainder CRC(x)=100 in place of the three zeros added in Step 1.
110010 100
Two hosts are in a CSMA/CD network and the medium has a data transfer capacity of
1Gbps. The minimum frame length is fixed to 1,000 bits and the propagation speed is
2 ×108 m/s (i) What will be the distance between the hosts ? (7) ii) If it is an Ethernet
network, what is the efficiency when the hosts have a maximum distance between
them? (8)
Solution:
To calculate the distance between the hosts in a CSMA/CD network, we can use the
following formula:
Distance=Propagation speed×Round-
trip timeDistance=Propagation speed×Round-trip time
Given:
tround-trip=1,000 / 109
tround-trip≈1μs
Distance=(2×108)×(1×10-6)
Distance=200 meters
The efficiency (E) of a CSMA/CD network can be calculated using the formula:
1
𝐸= 𝑡𝑝𝑟𝑜𝑝
1 + 5 (𝑡 )
𝑡𝑟𝑎𝑛𝑠
where:
The transmission time ( ttrans) can be calculated as the time it takes to transmit a
frame:
𝐹𝑟𝑎𝑚𝑒 𝐿𝑒𝑛𝑔𝑡ℎ
𝐸=
𝐷𝑎𝑡𝑎 𝑟𝑎𝑡𝑒
1000
𝑡𝑡𝑟𝑎𝑛𝑠 =
109
ttrans=1μs
1
𝐸=
1 µ𝑠
1 + 5 (1 µ𝑠)
1
𝐸=
6
So, the efficiency of the Ethernet network with hosts at the maximum distance is 1/6
or approximately 16.67%.
Consider sending a 3500-byte datagram that has arrived at a router R1 that needs to
be sent over a link that has an MTU size of 1000 bytes to R2. Then it has to traverse a
link with a MTU of 600 bytes. Let the identification number of the original datagram
be 465. How many fragments are delivered at the destination? Analyse the
parameters associated with each of these fragments.
Solution:
When a large datagram needs to be sent over a network with varying Maximum
Transmission Unit (MTU) sizes, it needs to be fragmented into smaller fragments.
Each fragment will have its own header information. Let's calculate the number of
fragments and analyze the parameters associated with each fragment in this
scenario.
Given:
A TCP machine is sending full windows of 65,535 bytes over a 1-Gbps network that has a
10-ms one-way delay. What is the throughput achievable? What is the efficiency of
transmission? How many bits are needed in the Advertised window field of a proposed
reliable byte stream protocol (like TCP) running over the above network, for achieving
maximum efficiency?
Solution:
To calculate the throughput, efficiency, and the number of bits needed in the
Advertised Window field, we'll use the following formulas and information:
1. Throughput (TP):TP=W/RTT where:
• W is the window size (maximum number of unacknowledged bytes in
flight),
• RTT is the Round Trip Time.
2. Efficiency (E):E=TP / Link Capacity
3. Advertised Window (AW): The Advertised Window field in a TCP header
represents the size of the receiver's buffer. It's the maximum amount of data
(in bytes) that the receiver is willing to accept.
For maximum efficiency, we need the Advertised Window to be equal to the
window size (W).
Given:
Let's calculate:
E=0.0065535
3. Number of Bits in Advertised Window (AW): For maximum efficiency, AW
should be equal to W.
AW=W=65,535 To represent this value in bits, you need ⌈log2(65535+1)⌉
bits. The "+1" is because the window size includes 0 as a valid size.
AWbits=⌈log2(65536)⌉
AWbits=16bits