CS201 MID TERM SOLVED MCQs || PAST PAPERS || GROUP-1 || INTRODUCTION TO PROGRAMMING || VuTech Visit Website For More Solutions www.vutechofficial.blogspot.com …
CS610 ASSIGNMENT NO. 1 SPRING 2023 || 100% RIGHT SOLUTION || COMPUTER
NETWORKS || BY VuTech
Visit Website For More Solutions www.vutechofficial.blogspot.com
KINDLY, DON’T COPY PASTE
SUBSCRIBE, SHARE, LIKE AND COMMENTS FOR MORE UPDATES
QUESTION-1
Given below is the detail of a video file which needs to be transferred
among two devices in a network where multiple devices are connected with
each other using a shared transmission media:
If this file is divided into multiple packets where each packet is 1KB in
size then how long will it take (in seconds) to transfer the entire file
over a network with a bandwidth capacity of 1Mbps?
Provide your answer with complete calculation steps and proper unit.
SOLUTION
To calculate the time required to transfer the entire file over a network
with a bandwidth capacity of 1Mbps, we need to consider the file size and
the network bandwidth.
First, we need to convert the file size and bandwidth to a consistent
unit. Since the file size is given in megabytes (MB) and the bandwidth
capacity is given in megabits per second (Mbps), we need to convert the
file size to megabits (Mb).
Next, we can calculate the total number of packets required to transfer
the file:
Total number of packets = File size / Packet size Total number of
packets = 200.0 Mb / 1KB = 200,000 packets
To calculate the time required to transfer each packet, we divide the
packet size by the network bandwidth:
Time to transfer one packet = Packet size / Bandwidth capacity Time
to transfer one packet = 1KB / 1Mbps = (1 * 8) / 1 = 8 milliseconds
(ms)
Finally, to calculate the total time required to transfer the entire
file, we multiply the time to transfer one packet by the total number of
packets:
Total transfer time = Time to transfer one packet * Total number of
packets Total transfer time = 8 ms * 200,000 packets = 1,600,000
ms
Converting milliseconds to seconds:
Total transfer time = 1,600,000 ms / 1000 = 1600 seconds
Therefore, it will take approximately 1600 seconds to transfer the entire
file over the network with a bandwidth capacity of 1Mbps.
QUESTION-2
You are required to use ping command for testing the reachability to
www.vu.edu.pk in two phases, for phase 1 you have to use ping command with
10 bytes of data for each packet and for phase 2, you need to send 10,000
bytes of data for each packet. Perform the mentioned task in your computer /
laptop, take the screenshots clearly showing ping command and the result for
both scenarios (Phase 1 and Phase 2) and paste in the MS Word file as
solution. At the end, also compare the results of both scenarios / phases,
provide the average time difference in milli-seconds in the same file and
upload the file on VU-LMS within the due date.
SOLUTION
Here are the steps on how to use the ping command to test the reachability
to www.vu.edu.pk in two phases:
Phase 1: 10 bytes of data per packet
1- Open Command Prompt.
2- Type the following command and press Enter:
ping -n 4 www.vu.edu.pk -l 10
This will send 4 pings with 10 bytes of data per packet to
www.vu.edu.pk.
3- Observe the results of the ping command. The following
information will be displayed:
- The IP address of the website
- The number of packets sent
- The number of packets received
- The round-trip time (RTT) for each packet
Phase 2: 10,000 bytes of data per packet
1- Repeat steps 1 and 2, but this time use the following
command:
ping -n 4 www.vu.edu.pk -l 10000
This will send 4 pings with 10,000 bytes of data per packet to
www.vu.edu.pk.
2- Observe the results of the ping command. The following
information will be displayed:
- The IP address of the website
- The number of packets sent
- The number of packets received
- The round-trip time (RTT) for each packet
Comparing the results of both scenarios
The results of the ping command will vary depending on your internet
connection. However, in general, you should expect to see a longer
round-trip time (RTT) for the second scenario (10,000 bytes of data per
packet) than for the first scenario (10 bytes of data per packet). This is
because it takes longer for the server to process and respond to a larger
amount of data.
Average time difference in milliseconds
To calculate the average time difference in milliseconds between the two
scenarios, you can use the following formula:
(average time for second scenario - average time for first scenario) /
2
For example, if the average time for the second scenario is 100
milliseconds and the average time for the first scenario is 50 milliseconds,
then the average time difference in milliseconds is 25 milliseconds.
Conclusion
The ping command is a useful tool for testing the reachability of a
website. By using the ping command, you can determine if a website is up and
running, and you can also get an estimate of the round-trip time (RTT)
between your computer and the website. This information can be helpful in
troubleshooting network problems.
KINDLY, DON’T COPY PASTE SUBSCRIBE, SHARE, LIKE AND COMMENTS FOR MORE UPDATES SEND WHATSAPP OR E-MAIL FOR ANY QUERY 0325-6644800 kamranhameedvu@gmail.com Visit Website For More Solutions www.vutechofficial.blogspot.com
We provide Virtual University of Pakistan Study Materials such as Solution of Assignments, GDBs, Mid Term Solved Papers, Final Term Solved Papers, Mid Term Solved MCQs, and Final Term Solved MCQs. We also provide regular Semester Quizzes, Updated Handouts, and Short Questions and Answers. We help you with your research and many other educational-related topics, as far as we know. Furthermore, Share your problem with us and Please feel free to ask any related questions.