Encs3320 Assignment1
Encs3320 Assignment1
Encs3320 Assignment1
Q#2: Consider store-and-forward routers. Assume sending a file of size 5 Kbyte from A to C.
Assume the packet size L=1000 Byte, data rate R=10 Mbps, and speed of light is 2.5 X10^8 m/s.
Assume each packet should contain 40-byte header. The distance between and two nodes is 200
km. Neglect processing and queueing delay
How long does it take to send the file from A to D.
A B C D
Answer:
Packet size:
File size:
3.
4.
Number of packets:
5.
1. Number of packets = File size / Data size per packet
2. Number of packets = 5120 / 960 = 5.33 packets (rounded up to 6 packets)
6.
Transmission time:
7.
8.
Propagation delay:
9.
10.
Total time:
11.
Therefore, it takes approximately 0.0144 seconds (or 14.4 milliseconds) to send the 5
Kbyte file from A to C using store-and-forward routers....
1.Calculate the total transmission time for the file.
2.Calculate the total propagation delay for the file.
3.Add the transmission time and propagation delay to get the total time
Given:
Q#3: Assume several users are sharing a 20Mbps link. Also assume that each user needs 2Mbps
when sending, but each user sends only 18% of the time.
A- When circuit switching is used, how many users can be supported?
Answer::
Given:
So, when circuit switching is used, the link can support 10 users.
Given:
Total link bandwidth = 20 Mbps
Bandwidth required per user when sending = 2 Mbps
Since the total required bandwidth (16 Mbps) is less than the available bandwidth
(20 Mbps), there will not be a queuing delay because the link can handle the
combined load of the 8 users simultaneously.
2- Assume 20 users are sharing the link, give a formula for the probability that more
than 12 users are sending data.
Answer:
Given:
Let X be the random variable representing the number of users sending data. X
follows a binomial distribution: X∼Binomial(n,p).
Thus, the formula for the probability that more than 12 users are sending data is:
P (X >12)=1−∑k=012(k20)(0.18)k(0.82)20−k
Where